From 8d27af8450edc5b92c74f7d503ecbbcc2cbc8602 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Tue, 28 Nov 2023 22:51:54 +0000 Subject: [PATCH] Update via seamapi/seam-connect@2135b11f08fa565d818729b9ffd84d7ef8b271f8 --- src/lib/seam/connect/openapi.ts | 57 +++++++++++++++++++++++++++++ src/lib/seam/connect/route-types.ts | 23 ++++++++++++ 2 files changed, 80 insertions(+) diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 51479094..3546d3a5 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -1891,6 +1891,11 @@ export default { scheme: 'bearer', type: 'http', }, + pat_without_workspace: { + bearerFormat: 'API Token', + scheme: 'bearer', + type: 'http', + }, seam_client_session_token: { in: 'header', name: 'seam-client-session-token', @@ -9699,6 +9704,58 @@ export default { 'x-fern-sdk-return-value': 'webhooks', }, }, + '/workspaces/create': { + post: { + operationId: 'workspacesCreatePost', + requestBody: { + content: { + 'application/json': { + schema: { + properties: { + connect_partner_name: { + description: 'The name shown inside the connect webview', + type: 'string', + }, + is_sandbox: { default: false, type: 'boolean' }, + webview_logo_shape: { + enum: ['circle', 'square'], + type: 'string', + }, + webview_primary_button_color: { type: 'string' }, + workspace_name: { type: 'string' }, + }, + required: ['workspace_name', 'connect_partner_name'], + type: 'object', + }, + }, + }, + }, + responses: { + 200: { + content: { + 'application/json': { + schema: { + properties: { + ok: { type: 'boolean' }, + workspace: { $ref: '#/components/schemas/workspace' }, + }, + required: ['workspace', 'ok'], + type: 'object', + }, + }, + }, + description: 'OK', + }, + 400: { description: 'Bad Request' }, + 401: { description: 'Unauthorized' }, + }, + security: [{ pat_without_workspace: [] }], + summary: '/workspaces/create', + tags: ['/workspaces'], + 'x-fern-sdk-group-name': ['workspaces'], + 'x-fern-sdk-method-name': 'create', + }, + }, '/workspaces/get': { get: { operationId: 'workspacesGetGet', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 8848539d..b7ddd69f 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -8895,6 +8895,29 @@ export interface Routes { }> } } + '/workspaces/create': { + route: '/workspaces/create' + method: 'POST' + queryParams: {} + jsonBody: { + workspace_name: string + /** The name shown inside the connect webview */ + connect_partner_name: string + is_sandbox?: boolean + webview_primary_button_color?: string | undefined + webview_logo_shape?: ('circle' | 'square') | undefined + } + commonParams: {} + formData: {} + jsonResponse: { + workspace: { + workspace_id: string + name: string + connect_partner_name: string | null + is_sandbox: boolean + } + } + } '/workspaces/get': { route: '/workspaces/get' method: 'GET' | 'POST'