Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/lib/seam/connect/models/acs/acs-access-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down
228 changes: 194 additions & 34 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down Expand Up @@ -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',
},
Expand Down Expand Up @@ -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:
Expand Down
Loading