Skip to content

Commit 31249ce

Browse files
authored
feat: Sync with Seam API via b753299c490075c92ec4e42dcd8b4b7f6dff3308 (#2774)
1 parent f7f6d38 commit 31249ce

File tree

2 files changed

+227
-0
lines changed

2 files changed

+227
-0
lines changed

src/lib/seam/connect/openapi.ts

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61305,6 +61305,190 @@ export default {
6130561305
'x-undocumented': 'Seam Bridge Client only.',
6130661306
},
6130761307
},
61308+
'/seam/connect_webview/v1/get_current_pane': {
61309+
get: {
61310+
description:
61311+
'Returns the current render pane for a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews).',
61312+
operationId: 'seamConnectWebviewV1GetCurrentPaneGet',
61313+
parameters: [
61314+
{
61315+
in: 'query',
61316+
name: 'connect_webview_id',
61317+
required: true,
61318+
schema: { format: 'uuid', type: 'string' },
61319+
},
61320+
],
61321+
responses: {
61322+
200: {
61323+
content: {
61324+
'application/json': {
61325+
schema: {
61326+
properties: {
61327+
ok: { type: 'boolean' },
61328+
pane: { $ref: '#/components/schemas/access_code' },
61329+
},
61330+
required: ['ok'],
61331+
type: 'object',
61332+
},
61333+
},
61334+
},
61335+
description: 'OK',
61336+
},
61337+
400: { description: 'Bad Request' },
61338+
401: { description: 'Unauthorized' },
61339+
},
61340+
security: [{ console_session_with_workspace: [] }],
61341+
summary: '/seam/connect_webview/v1/get_current_pane',
61342+
tags: [],
61343+
'x-fern-sdk-group-name': ['seam', 'connect_webview', 'v1'],
61344+
'x-fern-sdk-method-name': 'get_current_pane',
61345+
'x-fern-sdk-return-value': 'pane',
61346+
'x-response-key': 'pane',
61347+
'x-title': 'Get Current Pane',
61348+
'x-undocumented':
61349+
'Internal endpoint for driving Connect Webview flows programmatically.',
61350+
},
61351+
post: {
61352+
description:
61353+
'Returns the current render pane for a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews).',
61354+
operationId: 'seamConnectWebviewV1GetCurrentPanePost',
61355+
requestBody: {
61356+
content: {
61357+
'application/json': {
61358+
schema: {
61359+
properties: {
61360+
connect_webview_id: { format: 'uuid', type: 'string' },
61361+
},
61362+
required: ['connect_webview_id'],
61363+
type: 'object',
61364+
},
61365+
},
61366+
},
61367+
},
61368+
responses: {
61369+
200: {
61370+
content: {
61371+
'application/json': {
61372+
schema: {
61373+
properties: {
61374+
ok: { type: 'boolean' },
61375+
pane: { $ref: '#/components/schemas/access_code' },
61376+
},
61377+
required: ['ok'],
61378+
type: 'object',
61379+
},
61380+
},
61381+
},
61382+
description: 'OK',
61383+
},
61384+
400: { description: 'Bad Request' },
61385+
401: { description: 'Unauthorized' },
61386+
},
61387+
security: [{ console_session_with_workspace: [] }],
61388+
summary: '/seam/connect_webview/v1/get_current_pane',
61389+
tags: [],
61390+
'x-fern-sdk-group-name': ['seam', 'connect_webview', 'v1'],
61391+
'x-fern-sdk-method-name': 'get_current_pane',
61392+
'x-fern-sdk-return-value': 'pane',
61393+
'x-response-key': 'pane',
61394+
'x-title': 'Get Current Pane',
61395+
'x-undocumented':
61396+
'Internal endpoint for driving Connect Webview flows programmatically.',
61397+
},
61398+
},
61399+
'/seam/connect_webview/v1/reset': {
61400+
post: {
61401+
description:
61402+
'Resets an errored [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) so its login flow can be retried.',
61403+
operationId: 'seamConnectWebviewV1ResetPost',
61404+
requestBody: {
61405+
content: {
61406+
'application/json': {
61407+
schema: {
61408+
properties: {
61409+
connect_webview_id: { format: 'uuid', type: 'string' },
61410+
},
61411+
required: ['connect_webview_id'],
61412+
type: 'object',
61413+
},
61414+
},
61415+
},
61416+
},
61417+
responses: {
61418+
200: {
61419+
content: {
61420+
'application/json': {
61421+
schema: {
61422+
properties: { ok: { type: 'boolean' } },
61423+
required: ['ok'],
61424+
type: 'object',
61425+
},
61426+
},
61427+
},
61428+
description: 'OK',
61429+
},
61430+
400: { description: 'Bad Request' },
61431+
401: { description: 'Unauthorized' },
61432+
},
61433+
security: [{ console_session_with_workspace: [] }],
61434+
summary: '/seam/connect_webview/v1/reset',
61435+
tags: [],
61436+
'x-fern-sdk-group-name': ['seam', 'connect_webview', 'v1'],
61437+
'x-fern-sdk-method-name': 'reset',
61438+
'x-fern-sdk-return-value': 'ok',
61439+
'x-response-key': 'ok',
61440+
'x-title': 'Reset Connect Webview',
61441+
'x-undocumented':
61442+
'Internal endpoint for driving Connect Webview flows programmatically.',
61443+
},
61444+
},
61445+
'/seam/connect_webview/v1/submit': {
61446+
post: {
61447+
description:
61448+
'Submits pane arguments to advance a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) login state machine.',
61449+
operationId: 'seamConnectWebviewV1SubmitPost',
61450+
requestBody: {
61451+
content: {
61452+
'application/json': {
61453+
schema: {
61454+
properties: {
61455+
connect_webview_id: { format: 'uuid', type: 'string' },
61456+
submit_args: {},
61457+
},
61458+
required: ['connect_webview_id'],
61459+
type: 'object',
61460+
},
61461+
},
61462+
},
61463+
},
61464+
responses: {
61465+
200: {
61466+
content: {
61467+
'application/json': {
61468+
schema: {
61469+
properties: { ok: { type: 'boolean' } },
61470+
required: ['ok'],
61471+
type: 'object',
61472+
},
61473+
},
61474+
},
61475+
description: 'OK',
61476+
},
61477+
400: { description: 'Bad Request' },
61478+
401: { description: 'Unauthorized' },
61479+
},
61480+
security: [{ console_session_with_workspace: [] }],
61481+
summary: '/seam/connect_webview/v1/submit',
61482+
tags: [],
61483+
'x-fern-sdk-group-name': ['seam', 'connect_webview', 'v1'],
61484+
'x-fern-sdk-method-name': 'submit',
61485+
'x-fern-sdk-return-value': 'ok',
61486+
'x-response-key': 'ok',
61487+
'x-title': 'Submit Connect Webview Pane',
61488+
'x-undocumented':
61489+
'Internal endpoint for driving Connect Webview flows programmatically.',
61490+
},
61491+
},
6130861492
'/seam/console/v1/get_resource_locator': {
6130961493
get: {
6131061494
description:

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73323,6 +73323,49 @@ export type Routes = {
7332373323
}
7332473324
maxDuration: undefined
7332573325
}
73326+
'/seam/connect_webview/v1/get_current_pane': {
73327+
route: '/seam/connect_webview/v1/get_current_pane'
73328+
method: 'GET' | 'POST'
73329+
queryParams: {}
73330+
jsonBody: {}
73331+
commonParams: {
73332+
connect_webview_id: string
73333+
}
73334+
formData: {}
73335+
jsonResponse: {
73336+
pane?: any
73337+
}
73338+
maxDuration: undefined
73339+
}
73340+
'/seam/connect_webview/v1/reset': {
73341+
route: '/seam/connect_webview/v1/reset'
73342+
method: 'POST'
73343+
queryParams: {}
73344+
jsonBody: {
73345+
connect_webview_id: string
73346+
}
73347+
commonParams: {}
73348+
formData: {}
73349+
jsonResponse: {
73350+
ok: boolean
73351+
}
73352+
maxDuration: undefined
73353+
}
73354+
'/seam/connect_webview/v1/submit': {
73355+
route: '/seam/connect_webview/v1/submit'
73356+
method: 'POST'
73357+
queryParams: {}
73358+
jsonBody: {
73359+
connect_webview_id: string
73360+
submit_args?: any
73361+
}
73362+
commonParams: {}
73363+
formData: {}
73364+
jsonResponse: {
73365+
ok: boolean
73366+
}
73367+
maxDuration: undefined
73368+
}
7332673369
'/seam/console/v1/get_resource_locator': {
7332773370
route: '/seam/console/v1/get_resource_locator'
7332873371
method: 'GET' | 'POST'

0 commit comments

Comments
 (0)