Skip to content

Commit e5181d1

Browse files
authored
1 parent a3df1d4 commit e5181d1

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

src/lib/seam/connect/openapi.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28308,6 +28308,64 @@ export default {
2830828308
'x-undocumented': 'Seam Bridge Client only.',
2830928309
},
2831028310
},
28311+
'/seam/instant_key/v1/client_sessions/exchange_short_code': {
28312+
post: {
28313+
description:
28314+
'Exchanges a short code for a Client Session Token (CST).\nThis endpoint is used by mobile apps to securely retrieve a client session token \nusing a short code obtained from an instant key URL.',
28315+
operationId: 'seamInstantKeyV1ClientSessionsExchangeShortCodePost',
28316+
requestBody: {
28317+
content: {
28318+
'application/json': {
28319+
schema: {
28320+
properties: {
28321+
short_code: {
28322+
description:
28323+
'The short code to exchange for a client session token',
28324+
type: 'string',
28325+
},
28326+
},
28327+
required: ['short_code'],
28328+
type: 'object',
28329+
},
28330+
},
28331+
},
28332+
},
28333+
responses: {
28334+
200: {
28335+
content: {
28336+
'application/json': {
28337+
schema: {
28338+
properties: {
28339+
client_session: {
28340+
$ref: '#/components/schemas/client_session',
28341+
},
28342+
ok: { type: 'boolean' },
28343+
},
28344+
required: ['client_session', 'ok'],
28345+
type: 'object',
28346+
},
28347+
},
28348+
},
28349+
description: 'OK',
28350+
},
28351+
400: { description: 'Bad Request' },
28352+
401: { description: 'Unauthorized' },
28353+
},
28354+
security: [{ certified_client: [] }],
28355+
summary: '/seam/instant_key/v1/client_sessions/exchange_short_code',
28356+
tags: ['/client_sessions'],
28357+
'x-fern-sdk-group-name': [
28358+
'seam',
28359+
'instant_key',
28360+
'v1',
28361+
'client_sessions',
28362+
],
28363+
'x-fern-sdk-method-name': 'exchange_short_code',
28364+
'x-fern-sdk-return-value': 'client_session',
28365+
'x-response-key': 'client_session',
28366+
'x-title': 'Exchange Instant Key Short Code',
28367+
},
28368+
},
2831128369
'/thermostats/activate_climate_preset': {
2831228370
post: {
2831328371
description:

src/lib/seam/connect/route-types.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37176,6 +37176,32 @@ export interface Routes {
3717637176
}>
3717737177
}
3717837178
}
37179+
'/seam/instant_key/v1/client_sessions/exchange_short_code': {
37180+
route: '/seam/instant_key/v1/client_sessions/exchange_short_code'
37181+
method: 'POST'
37182+
queryParams: {}
37183+
jsonBody: {
37184+
/** The short code to exchange for a client session token */
37185+
short_code: string
37186+
}
37187+
commonParams: {}
37188+
formData: {}
37189+
jsonResponse: {
37190+
/** */
37191+
client_session: {
37192+
client_session_id: string
37193+
workspace_id: string
37194+
created_at: string
37195+
expires_at: string
37196+
token: string
37197+
user_identifier_key: string | null
37198+
device_count: number
37199+
connected_account_ids: string[]
37200+
connect_webview_ids: string[]
37201+
user_identity_ids: string[]
37202+
}
37203+
}
37204+
}
3717937205
'/thermostats/activate_climate_preset': {
3718037206
route: '/thermostats/activate_climate_preset'
3718137207
method: 'POST'

0 commit comments

Comments
 (0)