Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
232 changes: 232 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73771,6 +73771,122 @@ export default {
'x-title': 'Add Entrances to a Space',
},
},
'/spaces/add_connected_account': {
post: {
description:
'Adds a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) to a specific space.',
operationId: 'spacesAddConnectedAccountPost',
requestBody: {
content: {
'application/json': {
schema: {
properties: {
connected_account_id: {
description:
'ID of the connected account that you want to add to the space.',
format: 'uuid',
type: 'string',
},
space_id: {
description:
'ID of the space to which you want to add the connected account.',
format: 'uuid',
type: 'string',
},
},
required: ['space_id', 'connected_account_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: [
{ pat_with_workspace: [] },
{ console_session_with_workspace: [] },
{ api_key: [] },
{ client_session_with_customer: [] },
],
summary: '/spaces/add_connected_account',
tags: [],
'x-fern-sdk-group-name': ['spaces'],
'x-fern-sdk-method-name': 'add_connected_account',
'x-response-key': null,
'x-title': 'Add a Connected Account to a Space',
},
put: {
description:
'Adds a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) to a specific space.',
operationId: 'spacesAddConnectedAccountPut',
requestBody: {
content: {
'application/json': {
schema: {
properties: {
connected_account_id: {
description:
'ID of the connected account that you want to add to the space.',
format: 'uuid',
type: 'string',
},
space_id: {
description:
'ID of the space to which you want to add the connected account.',
format: 'uuid',
type: 'string',
},
},
required: ['space_id', 'connected_account_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: [
{ pat_with_workspace: [] },
{ console_session_with_workspace: [] },
{ api_key: [] },
{ client_session_with_customer: [] },
],
summary: '/spaces/add_connected_account',
tags: [],
'x-fern-sdk-group-name': ['spaces'],
'x-fern-sdk-method-name': 'add_connected_account',
'x-response-key': null,
'x-title': 'Add a Connected Account to a Space',
},
},
'/spaces/add_devices': {
post: {
description: 'Adds devices to a specific space.',
Expand Down Expand Up @@ -74765,6 +74881,122 @@ export default {
'x-title': 'Remove Entrances from a Space',
},
},
'/spaces/remove_connected_account': {
delete: {
description:
'Removes a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) from a specific space.',
operationId: 'spacesRemoveConnectedAccountDelete',
parameters: [
{
in: 'query',
name: 'space_id',
required: true,
schema: {
description:
'ID of the space from which you want to remove the connected account.',
format: 'uuid',
type: 'string',
},
},
{
in: 'query',
name: 'connected_account_id',
required: true,
schema: {
description:
'ID of the connected account that you want to remove from the space.',
format: 'uuid',
type: 'string',
},
},
],
responses: {
200: {
content: {
'application/json': {
schema: {
properties: { ok: { type: 'boolean' } },
required: ['ok'],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
security: [
{ pat_with_workspace: [] },
{ console_session_with_workspace: [] },
{ api_key: [] },
{ client_session_with_customer: [] },
],
summary: '/spaces/remove_connected_account',
tags: [],
'x-fern-sdk-group-name': ['spaces'],
'x-fern-sdk-method-name': 'remove_connected_account',
'x-response-key': null,
'x-title': 'Remove a Connected Account from a Space',
},
post: {
description:
'Removes a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) from a specific space.',
operationId: 'spacesRemoveConnectedAccountPost',
requestBody: {
content: {
'application/json': {
schema: {
properties: {
connected_account_id: {
description:
'ID of the connected account that you want to remove from the space.',
format: 'uuid',
type: 'string',
},
space_id: {
description:
'ID of the space from which you want to remove the connected account.',
format: 'uuid',
type: 'string',
},
},
required: ['space_id', 'connected_account_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: [
{ pat_with_workspace: [] },
{ console_session_with_workspace: [] },
{ api_key: [] },
{ client_session_with_customer: [] },
],
summary: '/spaces/remove_connected_account',
tags: [],
'x-fern-sdk-group-name': ['spaces'],
'x-fern-sdk-method-name': 'remove_connected_account',
'x-response-key': null,
'x-title': 'Remove a Connected Account from a Space',
},
},
'/spaces/remove_devices': {
delete: {
description: 'Removes devices from a specific space.',
Expand Down
30 changes: 30 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81995,6 +81995,21 @@ export type Routes = {
jsonResponse: {}
maxDuration: undefined
}
'/spaces/add_connected_account': {
route: '/spaces/add_connected_account'
method: 'POST' | 'PUT'
queryParams: {}
jsonBody: {
/** ID of the space to which you want to add the connected account. */
space_id: string
/** ID of the connected account that you want to add to the space. */
connected_account_id: string
}
commonParams: {}
formData: {}
jsonResponse: {}
maxDuration: undefined
}
'/spaces/add_devices': {
route: '/spaces/add_devices'
method: 'POST' | 'PUT'
Expand Down Expand Up @@ -84597,6 +84612,21 @@ export type Routes = {
jsonResponse: {}
maxDuration: undefined
}
'/spaces/remove_connected_account': {
route: '/spaces/remove_connected_account'
method: 'POST' | 'DELETE'
queryParams: {}
jsonBody: {}
commonParams: {
/** ID of the space from which you want to remove the connected account. */
space_id: string
/** ID of the connected account that you want to remove from the space. */
connected_account_id: string
}
formData: {}
jsonResponse: {}
maxDuration: undefined
}
'/spaces/remove_devices': {
route: '/spaces/remove_devices'
method: 'POST' | 'DELETE'
Expand Down
Loading