diff --git a/reference/admin.yaml b/reference/admin.yaml index 8a4e58748..be398c495 100644 --- a/reference/admin.yaml +++ b/reference/admin.yaml @@ -15153,6 +15153,19 @@ components: description: | String denoting the full name of an employee. example: Jon Snow + delegation_access_scope: + type: array + description: | + List of scopes for the delegate. + items: + type: string + enum: + - ALL + - SUBMIT + - APPROVE + example: + - SUBMIT + - APPROVE delegatees: type: object additionalProperties: false @@ -15196,17 +15209,9 @@ components: Date and time till which the delegation is active. If null, delegation is active indefinitely. nullable: true scopes: - type: array + allOf: + - $ref: '#/components/schemas/delegation_access_scope' nullable: true - items: - type: string - enum: - - ALL - - SUBMIT - - APPROVE - example: - - SUBMIT - - APPROVE category_out_embed: type: object nullable: true @@ -15736,6 +15741,10 @@ components: description: | Date and time till which the delegation is active. If null, delegation is active indefinitely. nullable: true + scopes: + allOf: + - $ref: '#/components/schemas/delegation_access_scope' + nullable: true invitation_in: type: object additionalProperties: false diff --git a/reference/approver.yaml b/reference/approver.yaml index d68ad9315..72d10921d 100644 --- a/reference/approver.yaml +++ b/reference/approver.yaml @@ -9411,6 +9411,19 @@ components: description: | String denoting the full name of an employee. example: Jon Snow + delegation_access_scope: + type: array + description: | + List of scopes for the delegate. + items: + type: string + enum: + - ALL + - SUBMIT + - APPROVE + example: + - SUBMIT + - APPROVE delegatees: type: object additionalProperties: false @@ -9454,17 +9467,9 @@ components: Date and time till which the delegation is active. If null, delegation is active indefinitely. nullable: true scopes: - type: array + allOf: + - $ref: '#/components/schemas/delegation_access_scope' nullable: true - items: - type: string - enum: - - ALL - - SUBMIT - - APPROVE - example: - - SUBMIT - - APPROVE employee_out: type: object additionalProperties: false diff --git a/reference/manager.yaml b/reference/manager.yaml index 3a6b9e41b..d0dc25f41 100644 --- a/reference/manager.yaml +++ b/reference/manager.yaml @@ -1590,6 +1590,19 @@ components: description: | String denoting the full name of an employee. example: Jon Snow + delegation_access_scope: + type: array + description: | + List of scopes for the delegate. + items: + type: string + enum: + - ALL + - SUBMIT + - APPROVE + example: + - SUBMIT + - APPROVE delegatees: type: object additionalProperties: false @@ -1633,17 +1646,9 @@ components: Date and time till which the delegation is active. If null, delegation is active indefinitely. nullable: true scopes: - type: array + allOf: + - $ref: '#/components/schemas/delegation_access_scope' nullable: true - items: - type: string - enum: - - ALL - - SUBMIT - - APPROVE - example: - - SUBMIT - - APPROVE category_out_embed: type: object nullable: true diff --git a/reference/spender.yaml b/reference/spender.yaml index 3df1b9274..56bf201f4 100644 --- a/reference/spender.yaml +++ b/reference/spender.yaml @@ -14620,6 +14620,19 @@ components: description: | String denoting the full name of an employee. example: Jon Snow + delegation_access_scope: + type: array + description: | + List of scopes for the delegate. + items: + type: string + enum: + - ALL + - SUBMIT + - APPROVE + example: + - SUBMIT + - APPROVE delegatees: type: object additionalProperties: false @@ -14663,17 +14676,9 @@ components: Date and time till which the delegation is active. If null, delegation is active indefinitely. nullable: true scopes: - type: array + allOf: + - $ref: '#/components/schemas/delegation_access_scope' nullable: true - items: - type: string - enum: - - ALL - - SUBMIT - - APPROVE - example: - - SUBMIT - - APPROVE spender_employee_out: type: object additionalProperties: false @@ -15088,6 +15093,10 @@ components: description: | Date and time till which the delegation is active. If null, delegation is active indefinitely. nullable: true + scopes: + allOf: + - $ref: '#/components/schemas/delegation_access_scope' + nullable: true spender_delegatees_post_out: type: object additionalProperties: false diff --git a/src/components/schemas/employee.yaml b/src/components/schemas/employee.yaml index a8f54b335..b80725aed 100644 --- a/src/components/schemas/employee.yaml +++ b/src/components/schemas/employee.yaml @@ -801,6 +801,10 @@ spender_delegatees_post_in: description: | Date and time till which the delegation is active. If null, delegation is active indefinitely. nullable: True + scopes: + allOf: + - $ref: './fields.yaml#/delegation_access_scope' + nullable: True spender_delegatees_post_out: type: object diff --git a/src/components/schemas/fields.yaml b/src/components/schemas/fields.yaml index bdd21ec78..8d97403fb 100644 --- a/src/components/schemas/fields.yaml +++ b/src/components/schemas/fields.yaml @@ -346,6 +346,15 @@ contains_operator: Value signifying the operator for the field example: IN +delegation_access_scope: + type: array + description: | + List of scopes for the delegate. + items: + type: string + enum: [ALL, SUBMIT, APPROVE] + example: ["SUBMIT", "APPROVE"] + expense_policy_rule_embed: type: object additionalProperties: false @@ -1646,15 +1655,9 @@ delegatees: Date and time till which the delegation is active. If null, delegation is active indefinitely. nullable: True scopes: - type: array + allOf: + - $ref: './fields.yaml#/delegation_access_scope' nullable: True - items: - type: string - enum: - - ALL - - SUBMIT - - APPROVE - example: ["SUBMIT", "APPROVE"] locale: type: object @@ -1982,6 +1985,11 @@ delegatee: description: | Date and time till which the delegation is active. If null, delegation is active indefinitely. nullable: True + scopes: + allOf: + - $ref: './fields.yaml#/delegation_access_scope' + nullable: True + subscribed_resources: type: array