diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 5cd6196c..7b62b4a5 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -3374,8 +3374,37 @@ export default { content: { 'application/json': { schema: { - properties: { ok: { type: 'boolean' } }, - required: ['ok'], + properties: { + acs_credential: { + properties: { + acs_credential_id: { format: 'uuid', type: 'string' }, + acs_system_id: { format: 'uuid', type: 'string' }, + acs_user_id: { format: 'uuid', type: 'string' }, + code: { nullable: true, type: 'string' }, + created_at: { format: 'date-time', type: 'string' }, + display_name: { minLength: 1, type: 'string' }, + external_type: { + enum: ['pti_card', 'brivo_credential'], + type: 'string', + }, + external_type_display_name: { type: 'string' }, + workspace_id: { format: 'uuid', type: 'string' }, + }, + required: [ + 'acs_credential_id', + 'acs_system_id', + 'display_name', + 'code', + 'external_type', + 'external_type_display_name', + 'created_at', + 'workspace_id', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['acs_credential', 'ok'], type: 'object', }, }, @@ -3415,8 +3444,37 @@ export default { content: { 'application/json': { schema: { - properties: { ok: { type: 'boolean' } }, - required: ['ok'], + properties: { + acs_credential: { + properties: { + acs_credential_id: { format: 'uuid', type: 'string' }, + acs_system_id: { format: 'uuid', type: 'string' }, + acs_user_id: { format: 'uuid', type: 'string' }, + code: { nullable: true, type: 'string' }, + created_at: { format: 'date-time', type: 'string' }, + display_name: { minLength: 1, type: 'string' }, + external_type: { + enum: ['pti_card', 'brivo_credential'], + type: 'string', + }, + external_type_display_name: { type: 'string' }, + workspace_id: { format: 'uuid', type: 'string' }, + }, + required: [ + 'acs_credential_id', + 'acs_system_id', + 'display_name', + 'code', + 'external_type', + 'external_type_display_name', + 'created_at', + 'workspace_id', + ], + type: 'object', + }, + ok: { type: 'boolean' }, + }, + required: ['acs_credential', 'ok'], type: 'object', }, }, diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index ecbac854..44e27fb1 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -721,7 +721,19 @@ export interface Routes { } commonParams: {} formData: {} - jsonResponse: {} + jsonResponse: { + acs_credential: { + acs_credential_id: string + acs_user_id?: string | undefined + acs_system_id: string + display_name: string + code: string | null + external_type: 'pti_card' | 'brivo_credential' + external_type_display_name: string + created_at: string + workspace_id: string + } + } } '/acs/systems/get': { route: '/acs/systems/get'