diff --git a/src/lib/seam/connect/models/acs/acs-access-group.ts b/src/lib/seam/connect/models/acs/acs-access-group.ts index b4397760..2e972913 100644 --- a/src/lib/seam/connect/models/acs/acs-access-group.ts +++ b/src/lib/seam/connect/models/acs/acs-access-group.ts @@ -41,14 +41,23 @@ export const unknown_issue_with_acs_access_group = 'An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group.', ) -const acs_access_group_warning = unknown_issue_with_acs_access_group.describe( - 'Warning associated with the `acs_access_group`.', -) +const acs_access_group_being_deleted = common_acs_access_group_warning + .extend({ + warning_code: z.literal('being_deleted').describe(warning_code_description), + }) + .describe( + 'Indicates that the access group is being deleted from the access system. This is a temporary state, and the access group will be deleted shortly.', + ) + +const acs_access_group_warning = z + .union([unknown_issue_with_acs_access_group, acs_access_group_being_deleted]) + .describe('Warning associated with the `acs_access_group`.') const _acs_access_group_warning_map = z.object({ unknown_issue_with_acs_access_group: unknown_issue_with_acs_access_group .optional() .nullable(), + being_deleted: acs_access_group_being_deleted.optional().nullable(), }) export type AcsAccessGroupWarningMap = z.infer< diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index cdc63033..d7d74e42 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -2227,27 +2227,58 @@ export default { description: 'Warnings associated with the `acs_access_group`.', items: { description: 'Warning associated with the `acs_access_group`.', - properties: { - created_at: { - description: - 'Date and time at which Seam created the warning.', - format: 'date-time', - type: 'string', - }, - message: { + oneOf: [ + { description: - 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', - type: 'string', + 'An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['unknown_issue_with_acs_access_group'], + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', }, - warning_code: { + { description: - 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['unknown_issue_with_acs_access_group'], - type: 'string', + 'Indicates that the access group is being deleted from the access system. This is a temporary state, and the access group will be deleted shortly.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['being_deleted'], + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', }, - }, - required: ['created_at', 'message', 'warning_code'], - type: 'object', + ], }, type: 'array', }, @@ -23421,27 +23452,58 @@ export default { description: 'Warnings associated with the `acs_access_group`.', items: { description: 'Warning associated with the `acs_access_group`.', - properties: { - created_at: { - description: - 'Date and time at which Seam created the warning.', - format: 'date-time', - type: 'string', - }, - message: { + oneOf: [ + { description: - 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', - type: 'string', + 'An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['unknown_issue_with_acs_access_group'], + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', }, - warning_code: { + { description: - 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', - enum: ['unknown_issue_with_acs_access_group'], - type: 'string', + 'Indicates that the access group is being deleted from the access system. This is a temporary state, and the access group will be deleted shortly.', + properties: { + created_at: { + description: + 'Date and time at which Seam created the warning.', + format: 'date-time', + type: 'string', + }, + message: { + description: + 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.', + type: 'string', + }, + warning_code: { + description: + 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.', + enum: ['being_deleted'], + type: 'string', + }, + }, + required: ['created_at', 'message', 'warning_code'], + type: 'object', }, - }, - required: ['created_at', 'message', 'warning_code'], - type: 'object', + ], }, type: 'array', }, @@ -32761,6 +32823,104 @@ export default { 'x-title': 'Add an ACS User to an Access Group', }, }, + '/acs/access_groups/delete': { + delete: { + description: + 'Deletes a specified [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups).', + operationId: 'acsAccessGroupsDeleteDelete', + parameters: [ + { + in: 'query', + name: 'acs_access_group_id', + required: true, + schema: { + description: 'ID of the access group that you want to delete.', + format: 'uuid', + type: 'string', + }, + }, + ], + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { ok: { type: 'boolean' } }, + required: ['ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { client_session: [] }, + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/acs/access_groups/delete', + tags: ['/acs'], + 'x-fern-sdk-group-name': ['acs', 'access_groups'], + 'x-fern-sdk-method-name': 'delete', + 'x-response-key': null, + 'x-title': 'Delete an Access Group', + }, + post: { + description: + 'Deletes a specified [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups).', + operationId: 'acsAccessGroupsDeletePost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + acs_access_group_id: { + description: + 'ID of the access group that you want to delete.', + format: 'uuid', + type: 'string', + }, + }, + required: ['acs_access_group_id'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { ok: { type: 'boolean' } }, + required: ['ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [ + { client_session: [] }, + { pat_with_workspace: [] }, + { console_session_with_workspace: [] }, + { api_key: [] }, + ], + summary: '/acs/access_groups/delete', + tags: ['/acs'], + 'x-fern-sdk-group-name': ['acs', 'access_groups'], + 'x-fern-sdk-method-name': 'delete', + 'x-response-key': null, + 'x-title': 'Delete an Access Group', + }, + }, '/acs/access_groups/get': { get: { description: diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 35e747e7..86fd7a60 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -13729,14 +13729,24 @@ export type Routes = { /** Date and time at which the access group was created. */ created_at: string /** Warnings associated with the `acs_access_group`. */ - warnings: { - /** Date and time at which Seam created the warning. */ - created_at: string - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'unknown_issue_with_acs_access_group' - }[] + warnings: ( + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'unknown_issue_with_acs_access_group' + } + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'being_deleted' + } + )[] is_managed: true }[] | undefined @@ -17878,6 +17888,19 @@ export type Routes = { jsonResponse: {} maxDuration: undefined } + '/acs/access_groups/delete': { + route: '/acs/access_groups/delete' + method: 'DELETE' | 'POST' + queryParams: {} + jsonBody: {} + commonParams: { + /** ID of the access group that you want to delete. */ + acs_access_group_id: string + } + formData: {} + jsonResponse: {} + maxDuration: undefined + } '/acs/access_groups/get': { route: '/acs/access_groups/get' method: 'GET' | 'POST' @@ -17933,14 +17956,24 @@ export type Routes = { /** Date and time at which the access group was created. */ created_at: string /** Warnings associated with the `acs_access_group`. */ - warnings: { - /** Date and time at which Seam created the warning. */ - created_at: string - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'unknown_issue_with_acs_access_group' - }[] + warnings: ( + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'unknown_issue_with_acs_access_group' + } + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'being_deleted' + } + )[] is_managed: true } } @@ -18000,14 +18033,24 @@ export type Routes = { /** Date and time at which the access group was created. */ created_at: string /** Warnings associated with the `acs_access_group`. */ - warnings: { - /** Date and time at which Seam created the warning. */ - created_at: string - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'unknown_issue_with_acs_access_group' - }[] + warnings: ( + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'unknown_issue_with_acs_access_group' + } + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'being_deleted' + } + )[] is_managed: true }[] } @@ -18519,14 +18562,24 @@ export type Routes = { /** Date and time at which the access group was created. */ created_at: string /** Warnings associated with the `acs_access_group`. */ - warnings: { - /** Date and time at which Seam created the warning. */ - created_at: string - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'unknown_issue_with_acs_access_group' - }[] + warnings: ( + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'unknown_issue_with_acs_access_group' + } + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'being_deleted' + } + )[] is_managed: false } } @@ -18584,14 +18637,24 @@ export type Routes = { /** Date and time at which the access group was created. */ created_at: string /** Warnings associated with the `acs_access_group`. */ - warnings: { - /** Date and time at which Seam created the warning. */ - created_at: string - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'unknown_issue_with_acs_access_group' - }[] + warnings: ( + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'unknown_issue_with_acs_access_group' + } + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'being_deleted' + } + )[] is_managed: false }[] } @@ -94568,14 +94631,24 @@ export type Routes = { /** Date and time at which the access group was created. */ created_at: string /** Warnings associated with the `acs_access_group`. */ - warnings: { - /** Date and time at which Seam created the warning. */ - created_at: string - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'unknown_issue_with_acs_access_group' - }[] + warnings: ( + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'unknown_issue_with_acs_access_group' + } + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'being_deleted' + } + )[] is_managed: true }[] | undefined @@ -96403,14 +96476,24 @@ export type Routes = { /** Date and time at which the access group was created. */ created_at: string /** Warnings associated with the `acs_access_group`. */ - warnings: { - /** Date and time at which Seam created the warning. */ - created_at: string - /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ - message: string - /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ - warning_code: 'unknown_issue_with_acs_access_group' - }[] + warnings: ( + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'unknown_issue_with_acs_access_group' + } + | { + /** Date and time at which Seam created the warning. */ + created_at: string + /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */ + message: string + /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ + warning_code: 'being_deleted' + } + )[] is_managed: false }[] | undefined