Skip to content

Commit

Permalink
feat: add /workspaces/create (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Nov 29, 2023
1 parent 1473152 commit f646376
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
57 changes: 57 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
23 changes: 23 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit f646376

Please sign in to comment.