summaryrefslogtreecommitdiff
path: root/internal/api/model
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/model')
-rw-r--r--internal/api/model/interactionpolicy.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/api/model/interactionpolicy.go b/internal/api/model/interactionpolicy.go
index 7c5df09e8..c43142d58 100644
--- a/internal/api/model/interactionpolicy.go
+++ b/internal/api/model/interactionpolicy.go
@@ -48,9 +48,16 @@ const (
//
// swagger:model interactionPolicyRules
type PolicyRules struct {
+ // Policy entries for accounts that will receive automatic approval for this type of interaction.
+ AutomaticApproval []PolicyValue `form:"automatic_approval" json:"automatic_approval"`
+ // Policy entries for accounts that require manual approval for this type of interaction.
+ ManualApproval []PolicyValue `form:"manual_approval" json:"manual_approval"`
+
// Policy entries for accounts that can always do this type of interaction.
+ // Deprecated: Use "automatic_approval" instead.
Always []PolicyValue `form:"always" json:"always"`
// Policy entries for accounts that require approval to do this type of interaction.
+ // Deprecated: Use "manual_approval" instead.
WithApproval []PolicyValue `form:"with_approval" json:"with_approval"`
}