From 8f08d131335ae5493098af3d34d64ae8f6b0e09a Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Mon, 6 Nov 2023 16:49:06 -0800 Subject: [PATCH] feat: add /client_sessions/revoke (#246) --- src/lib/seam/connect/openapi.ts | 63 +++++++++++++++++++++++++++++ src/lib/seam/connect/route-types.ts | 13 ++++++ 2 files changed, 76 insertions(+) diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index f6933800..2286fbea 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -4020,6 +4020,11 @@ export default { items: { type: 'string' }, type: 'array', }, + expires_at: { + format: 'date-time', + nullable: true, + type: 'string', + }, user_identifier_key: { minLength: 1, type: 'string' }, }, type: 'object', @@ -4069,6 +4074,11 @@ export default { items: { type: 'string' }, type: 'array', }, + expires_at: { + format: 'date-time', + nullable: true, + type: 'string', + }, user_identifier_key: { minLength: 1, type: 'string' }, }, type: 'object', @@ -4210,6 +4220,11 @@ export default { items: { type: 'string' }, type: 'array', }, + expires_at: { + format: 'date-time', + nullable: true, + type: 'string', + }, user_identifier_key: { minLength: 1, type: 'string' }, }, type: 'object', @@ -4259,6 +4274,11 @@ export default { items: { type: 'string' }, type: 'array', }, + expires_at: { + format: 'date-time', + nullable: true, + type: 'string', + }, user_identifier_key: { minLength: 1, type: 'string' }, }, type: 'object', @@ -4453,6 +4473,49 @@ export default { 'x-fern-sdk-return-value': 'client_sessions', }, }, + '/client_sessions/revoke': { + post: { + operationId: 'clientSessionsRevokePost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + client_session_id: { format: 'uuid', type: 'string' }, + }, + required: ['client_session_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: [ + { access_token: [], seam_workspace: [] }, + { seam_client_session_token: [] }, + { client_session_token: [] }, + ], + summary: '/client_sessions/revoke', + tags: ['/client_sessions'], + 'x-fern-sdk-group-name': ['client_sessions'], + 'x-fern-sdk-method-name': 'revoke', + }, + }, '/connect_webviews/create': { post: { operationId: 'connectWebviewsCreatePost', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index fa06c3c1..a7819f5a 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -1022,6 +1022,7 @@ export interface Routes { user_identifier_key?: string | undefined connect_webview_ids?: string[] | undefined connected_account_ids?: string[] | undefined + expires_at?: Date | undefined } commonParams: {} formData: {} @@ -1077,6 +1078,7 @@ export interface Routes { user_identifier_key?: string | undefined connect_webview_ids?: string[] | undefined connected_account_ids?: string[] | undefined + expires_at?: Date | undefined } commonParams: {} formData: {} @@ -1139,6 +1141,17 @@ export interface Routes { }> } } + '/client_sessions/revoke': { + route: '/client_sessions/revoke' + method: 'POST' + queryParams: {} + jsonBody: {} + commonParams: { + client_session_id: string + } + formData: {} + jsonResponse: {} + } '/connect_webviews/create': { route: '/connect_webviews/create' method: 'POST'