Skip to content

Commit

Permalink
feat: add /client_sessions/revoke (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Nov 7, 2023
1 parent 67ae3f9 commit 8f08d13
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
63 changes: 63 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
13 changes: 13 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down Expand Up @@ -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: {}
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 8f08d13

Please sign in to comment.