@seamapi/types 1.589.0 → 1.591.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +181 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +293 -3
- package/dist/index.cjs +181 -3
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +50 -0
- package/lib/seam/connect/models/spaces/space.d.ts +6 -0
- package/lib/seam/connect/models/spaces/space.js +10 -0
- package/lib/seam/connect/models/spaces/space.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +196 -0
- package/lib/seam/connect/openapi.js +170 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +81 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/models/spaces/space.ts +10 -0
- package/src/lib/seam/connect/openapi.ts +181 -2
- package/src/lib/seam/connect/route-types.ts +81 -3
|
@@ -10083,6 +10083,10 @@ export type Routes = {
|
|
|
10083
10083
|
device_count: number;
|
|
10084
10084
|
/** Number of entrances in the space. */
|
|
10085
10085
|
acs_entrance_count: number;
|
|
10086
|
+
/** */
|
|
10087
|
+
parent_space_id?: string | undefined;
|
|
10088
|
+
/** */
|
|
10089
|
+
parent_space_key?: string | undefined;
|
|
10086
10090
|
}[] | undefined;
|
|
10087
10091
|
devices?: {
|
|
10088
10092
|
/** ID of the device. */
|
|
@@ -13394,6 +13398,10 @@ export type Routes = {
|
|
|
13394
13398
|
device_count: number;
|
|
13395
13399
|
/** Number of entrances in the space. */
|
|
13396
13400
|
acs_entrance_count: number;
|
|
13401
|
+
/** */
|
|
13402
|
+
parent_space_id?: string | undefined;
|
|
13403
|
+
/** */
|
|
13404
|
+
parent_space_key?: string | undefined;
|
|
13397
13405
|
}[] | undefined;
|
|
13398
13406
|
devices?: {
|
|
13399
13407
|
/** ID of the device. */
|
|
@@ -30604,7 +30612,7 @@ export type Routes = {
|
|
|
30604
30612
|
custom_redirect_url?: string | undefined;
|
|
30605
30613
|
/** Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the `custom_redirect_url`. */
|
|
30606
30614
|
custom_redirect_failure_url?: string | undefined;
|
|
30607
|
-
/**
|
|
30615
|
+
/** Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error. */
|
|
30608
30616
|
customer_key?: string | undefined;
|
|
30609
30617
|
/** Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/latest/api/devices/list_device_providers) with no filters. */
|
|
30610
30618
|
accepted_providers?: ('hotek' | 'dormakaba_community' | 'legic_connect' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'salto_ks' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'tedee' | 'honeywell_resideo' | 'latch' | 'akiles' | 'assa_abloy_vostio' | 'assa_abloy_vostio_credential_service' | 'tado' | 'salto_space' | 'sensi' | 'kwikset2' | 'keynest' | 'dormakaba_ambiance' | 'yale_access' | 'hid_cm' | 'google_nest')[] | undefined;
|
|
@@ -31179,7 +31187,7 @@ export type Routes = {
|
|
|
31179
31187
|
};
|
|
31180
31188
|
'/connected_accounts/update': {
|
|
31181
31189
|
route: '/connected_accounts/update';
|
|
31182
|
-
method: 'POST';
|
|
31190
|
+
method: 'PATCH' | 'POST';
|
|
31183
31191
|
queryParams: {};
|
|
31184
31192
|
jsonBody: {
|
|
31185
31193
|
/** ID of the connected account that you want to update. */
|
|
@@ -31192,7 +31200,7 @@ export type Routes = {
|
|
|
31192
31200
|
} | undefined;
|
|
31193
31201
|
/** List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`. */
|
|
31194
31202
|
accepted_capabilities?: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control')[] | undefined;
|
|
31195
|
-
/** The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer.
|
|
31203
|
+
/** The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer. */
|
|
31196
31204
|
customer_key?: string | undefined;
|
|
31197
31205
|
};
|
|
31198
31206
|
commonParams: {};
|
|
@@ -58590,6 +58598,52 @@ export type Routes = {
|
|
|
58590
58598
|
formData: {};
|
|
58591
58599
|
jsonResponse: {};
|
|
58592
58600
|
};
|
|
58601
|
+
'/seam/customer/v1/spaces/create': {
|
|
58602
|
+
route: '/seam/customer/v1/spaces/create';
|
|
58603
|
+
method: 'POST';
|
|
58604
|
+
queryParams: {};
|
|
58605
|
+
jsonBody: {
|
|
58606
|
+
/** Name of the space that you want to create. */
|
|
58607
|
+
name: string;
|
|
58608
|
+
/** Unique key for the space within the workspace. */
|
|
58609
|
+
space_key?: string | undefined;
|
|
58610
|
+
/** IDs of the devices that you want to add to the new space. */
|
|
58611
|
+
device_ids?: string[] | undefined;
|
|
58612
|
+
/** IDs of the entrances that you want to add to the new space. */
|
|
58613
|
+
acs_entrance_ids?: string[] | undefined;
|
|
58614
|
+
/** Space key of the parent space for this space. */
|
|
58615
|
+
parent_space_key?: string | undefined;
|
|
58616
|
+
/** Name of the parent space for this space. */
|
|
58617
|
+
parent_space_name?: string | undefined;
|
|
58618
|
+
};
|
|
58619
|
+
commonParams: {};
|
|
58620
|
+
formData: {};
|
|
58621
|
+
jsonResponse: {
|
|
58622
|
+
/** Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient. */
|
|
58623
|
+
space: {
|
|
58624
|
+
/** ID of the space. */
|
|
58625
|
+
space_id: string;
|
|
58626
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
|
|
58627
|
+
workspace_id: string;
|
|
58628
|
+
/** Unique key for the space within the workspace. */
|
|
58629
|
+
space_key?: string | undefined;
|
|
58630
|
+
/** Name of the space. */
|
|
58631
|
+
name: string;
|
|
58632
|
+
/** Display name for the space. */
|
|
58633
|
+
display_name: string;
|
|
58634
|
+
/** Date and time at which the space was created. */
|
|
58635
|
+
created_at: string;
|
|
58636
|
+
/** Number of devices in the space. */
|
|
58637
|
+
device_count: number;
|
|
58638
|
+
/** Number of entrances in the space. */
|
|
58639
|
+
acs_entrance_count: number;
|
|
58640
|
+
/** */
|
|
58641
|
+
parent_space_id?: string | undefined;
|
|
58642
|
+
/** */
|
|
58643
|
+
parent_space_key?: string | undefined;
|
|
58644
|
+
};
|
|
58645
|
+
};
|
|
58646
|
+
};
|
|
58593
58647
|
'/seam/instant_key/v1/client_sessions/exchange_short_code': {
|
|
58594
58648
|
route: '/seam/instant_key/v1/client_sessions/exchange_short_code';
|
|
58595
58649
|
method: 'POST';
|
|
@@ -59263,6 +59317,10 @@ export type Routes = {
|
|
|
59263
59317
|
device_count: number;
|
|
59264
59318
|
/** Number of entrances in the space. */
|
|
59265
59319
|
acs_entrance_count: number;
|
|
59320
|
+
/** */
|
|
59321
|
+
parent_space_id?: string | undefined;
|
|
59322
|
+
/** */
|
|
59323
|
+
parent_space_key?: string | undefined;
|
|
59266
59324
|
};
|
|
59267
59325
|
};
|
|
59268
59326
|
};
|
|
@@ -59310,6 +59368,10 @@ export type Routes = {
|
|
|
59310
59368
|
device_count: number;
|
|
59311
59369
|
/** Number of entrances in the space. */
|
|
59312
59370
|
acs_entrance_count: number;
|
|
59371
|
+
/** */
|
|
59372
|
+
parent_space_id?: string | undefined;
|
|
59373
|
+
/** */
|
|
59374
|
+
parent_space_key?: string | undefined;
|
|
59313
59375
|
};
|
|
59314
59376
|
};
|
|
59315
59377
|
};
|
|
@@ -59348,6 +59410,10 @@ export type Routes = {
|
|
|
59348
59410
|
device_count: number;
|
|
59349
59411
|
/** Number of entrances in the space. */
|
|
59350
59412
|
acs_entrance_count: number;
|
|
59413
|
+
/** */
|
|
59414
|
+
parent_space_id?: string | undefined;
|
|
59415
|
+
/** */
|
|
59416
|
+
parent_space_key?: string | undefined;
|
|
59351
59417
|
}[] | undefined;
|
|
59352
59418
|
devices?: {
|
|
59353
59419
|
/** ID of the device. */
|
|
@@ -60955,6 +61021,10 @@ export type Routes = {
|
|
|
60955
61021
|
device_count: number;
|
|
60956
61022
|
/** Number of entrances in the space. */
|
|
60957
61023
|
acs_entrance_count: number;
|
|
61024
|
+
/** */
|
|
61025
|
+
parent_space_id?: string | undefined;
|
|
61026
|
+
/** */
|
|
61027
|
+
parent_space_key?: string | undefined;
|
|
60958
61028
|
}[];
|
|
60959
61029
|
};
|
|
60960
61030
|
};
|
|
@@ -61025,6 +61095,10 @@ export type Routes = {
|
|
|
61025
61095
|
device_count: number;
|
|
61026
61096
|
/** Number of entrances in the space. */
|
|
61027
61097
|
acs_entrance_count: number;
|
|
61098
|
+
/** */
|
|
61099
|
+
parent_space_id?: string | undefined;
|
|
61100
|
+
/** */
|
|
61101
|
+
parent_space_key?: string | undefined;
|
|
61028
61102
|
};
|
|
61029
61103
|
};
|
|
61030
61104
|
};
|
|
@@ -80392,6 +80466,10 @@ export type Routes = {
|
|
|
80392
80466
|
device_count: number;
|
|
80393
80467
|
/** Number of entrances in the space. */
|
|
80394
80468
|
acs_entrance_count: number;
|
|
80469
|
+
/** */
|
|
80470
|
+
parent_space_id?: string | undefined;
|
|
80471
|
+
/** */
|
|
80472
|
+
parent_space_key?: string | undefined;
|
|
80395
80473
|
}[] | undefined;
|
|
80396
80474
|
devices?: {
|
|
80397
80475
|
/** ID of the device. */
|
package/package.json
CHANGED
|
@@ -20,6 +20,16 @@ export const space = z.object({
|
|
|
20
20
|
.describe('Date and time at which the space was created.'),
|
|
21
21
|
device_count: z.number().describe('Number of devices in the space.'),
|
|
22
22
|
acs_entrance_count: z.number().describe('Number of entrances in the space.'),
|
|
23
|
+
parent_space_id: z.string().uuid().optional().describe(`
|
|
24
|
+
---
|
|
25
|
+
undocumented: Only used internally.
|
|
26
|
+
---
|
|
27
|
+
`),
|
|
28
|
+
parent_space_key: z.string().optional().describe(`
|
|
29
|
+
---
|
|
30
|
+
undocumented: Only used internally.
|
|
31
|
+
---
|
|
32
|
+
`),
|
|
23
33
|
}).describe(`
|
|
24
34
|
---
|
|
25
35
|
draft: Early access.
|
|
@@ -20775,6 +20775,15 @@ export default {
|
|
|
20775
20775
|
type: 'string',
|
|
20776
20776
|
},
|
|
20777
20777
|
name: { description: 'Name of the space.', type: 'string' },
|
|
20778
|
+
parent_space_id: {
|
|
20779
|
+
format: 'uuid',
|
|
20780
|
+
type: 'string',
|
|
20781
|
+
'x-undocumented': 'Only used internally.',
|
|
20782
|
+
},
|
|
20783
|
+
parent_space_key: {
|
|
20784
|
+
type: 'string',
|
|
20785
|
+
'x-undocumented': 'Only used internally.',
|
|
20786
|
+
},
|
|
20778
20787
|
space_id: {
|
|
20779
20788
|
description: 'ID of the space.',
|
|
20780
20789
|
format: 'uuid',
|
|
@@ -39273,7 +39282,7 @@ export default {
|
|
|
39273
39282
|
},
|
|
39274
39283
|
customer_key: {
|
|
39275
39284
|
description:
|
|
39276
|
-
'
|
|
39285
|
+
'Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error.',
|
|
39277
39286
|
type: 'string',
|
|
39278
39287
|
},
|
|
39279
39288
|
device_selection_mode: {
|
|
@@ -40222,6 +40231,100 @@ export default {
|
|
|
40222
40231
|
},
|
|
40223
40232
|
},
|
|
40224
40233
|
'/connected_accounts/update': {
|
|
40234
|
+
patch: {
|
|
40235
|
+
description:
|
|
40236
|
+
'Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
40237
|
+
operationId: 'connectedAccountsUpdatePatch',
|
|
40238
|
+
requestBody: {
|
|
40239
|
+
content: {
|
|
40240
|
+
'application/json': {
|
|
40241
|
+
schema: {
|
|
40242
|
+
properties: {
|
|
40243
|
+
accepted_capabilities: {
|
|
40244
|
+
description:
|
|
40245
|
+
'List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`.',
|
|
40246
|
+
items: {
|
|
40247
|
+
description:
|
|
40248
|
+
'\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n',
|
|
40249
|
+
enum: [
|
|
40250
|
+
'lock',
|
|
40251
|
+
'thermostat',
|
|
40252
|
+
'noise_sensor',
|
|
40253
|
+
'access_control',
|
|
40254
|
+
],
|
|
40255
|
+
type: 'string',
|
|
40256
|
+
},
|
|
40257
|
+
type: 'array',
|
|
40258
|
+
},
|
|
40259
|
+
automatically_manage_new_devices: {
|
|
40260
|
+
description:
|
|
40261
|
+
'Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices).',
|
|
40262
|
+
type: 'boolean',
|
|
40263
|
+
},
|
|
40264
|
+
connected_account_id: {
|
|
40265
|
+
description:
|
|
40266
|
+
'ID of the connected account that you want to update.',
|
|
40267
|
+
format: 'uuid',
|
|
40268
|
+
type: 'string',
|
|
40269
|
+
},
|
|
40270
|
+
custom_metadata: {
|
|
40271
|
+
additionalProperties: {
|
|
40272
|
+
nullable: true,
|
|
40273
|
+
oneOf: [
|
|
40274
|
+
{ maxLength: 500, type: 'string' },
|
|
40275
|
+
{ type: 'boolean' },
|
|
40276
|
+
],
|
|
40277
|
+
},
|
|
40278
|
+
description:
|
|
40279
|
+
'Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/latest/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata).',
|
|
40280
|
+
type: 'object',
|
|
40281
|
+
},
|
|
40282
|
+
customer_key: {
|
|
40283
|
+
description:
|
|
40284
|
+
'The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.',
|
|
40285
|
+
minLength: 1,
|
|
40286
|
+
type: 'string',
|
|
40287
|
+
},
|
|
40288
|
+
},
|
|
40289
|
+
required: ['connected_account_id'],
|
|
40290
|
+
type: 'object',
|
|
40291
|
+
},
|
|
40292
|
+
},
|
|
40293
|
+
},
|
|
40294
|
+
},
|
|
40295
|
+
responses: {
|
|
40296
|
+
200: {
|
|
40297
|
+
content: {
|
|
40298
|
+
'application/json': {
|
|
40299
|
+
schema: {
|
|
40300
|
+
properties: {
|
|
40301
|
+
connected_account: {
|
|
40302
|
+
$ref: '#/components/schemas/connected_account',
|
|
40303
|
+
},
|
|
40304
|
+
ok: { type: 'boolean' },
|
|
40305
|
+
},
|
|
40306
|
+
required: ['connected_account', 'ok'],
|
|
40307
|
+
type: 'object',
|
|
40308
|
+
},
|
|
40309
|
+
},
|
|
40310
|
+
},
|
|
40311
|
+
description: 'OK',
|
|
40312
|
+
},
|
|
40313
|
+
400: { description: 'Bad Request' },
|
|
40314
|
+
401: { description: 'Unauthorized' },
|
|
40315
|
+
},
|
|
40316
|
+
security: [
|
|
40317
|
+
{ pat_with_workspace: [] },
|
|
40318
|
+
{ console_session_with_workspace: [] },
|
|
40319
|
+
{ api_key: [] },
|
|
40320
|
+
],
|
|
40321
|
+
summary: '/connected_accounts/update',
|
|
40322
|
+
tags: ['/connected_accounts'],
|
|
40323
|
+
'x-fern-sdk-group-name': ['connected_accounts'],
|
|
40324
|
+
'x-fern-sdk-method-name': 'update',
|
|
40325
|
+
'x-response-key': null,
|
|
40326
|
+
'x-title': 'Update a Connected Account',
|
|
40327
|
+
},
|
|
40225
40328
|
post: {
|
|
40226
40329
|
description:
|
|
40227
40330
|
'Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
@@ -40272,7 +40375,7 @@ export default {
|
|
|
40272
40375
|
},
|
|
40273
40376
|
customer_key: {
|
|
40274
40377
|
description:
|
|
40275
|
-
'The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. ',
|
|
40378
|
+
'The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.',
|
|
40276
40379
|
minLength: 1,
|
|
40277
40380
|
type: 'string',
|
|
40278
40381
|
},
|
|
@@ -52680,6 +52783,82 @@ export default {
|
|
|
52680
52783
|
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
52681
52784
|
},
|
|
52682
52785
|
},
|
|
52786
|
+
'/seam/customer/v1/spaces/create': {
|
|
52787
|
+
post: {
|
|
52788
|
+
description: 'Creates a new space with optional parent space support.',
|
|
52789
|
+
operationId: 'seamCustomerV1SpacesCreatePost',
|
|
52790
|
+
requestBody: {
|
|
52791
|
+
content: {
|
|
52792
|
+
'application/json': {
|
|
52793
|
+
schema: {
|
|
52794
|
+
properties: {
|
|
52795
|
+
acs_entrance_ids: {
|
|
52796
|
+
description:
|
|
52797
|
+
'IDs of the entrances that you want to add to the new space.',
|
|
52798
|
+
items: { format: 'uuid', type: 'string' },
|
|
52799
|
+
type: 'array',
|
|
52800
|
+
},
|
|
52801
|
+
device_ids: {
|
|
52802
|
+
description:
|
|
52803
|
+
'IDs of the devices that you want to add to the new space.',
|
|
52804
|
+
items: { format: 'uuid', type: 'string' },
|
|
52805
|
+
type: 'array',
|
|
52806
|
+
},
|
|
52807
|
+
name: {
|
|
52808
|
+
description: 'Name of the space that you want to create.',
|
|
52809
|
+
type: 'string',
|
|
52810
|
+
},
|
|
52811
|
+
parent_space_key: {
|
|
52812
|
+
description:
|
|
52813
|
+
'Space key of the parent space for this space.',
|
|
52814
|
+
type: 'string',
|
|
52815
|
+
},
|
|
52816
|
+
parent_space_name: {
|
|
52817
|
+
description: 'Name of the parent space for this space.',
|
|
52818
|
+
type: 'string',
|
|
52819
|
+
},
|
|
52820
|
+
space_key: {
|
|
52821
|
+
description:
|
|
52822
|
+
'Unique key for the space within the workspace.',
|
|
52823
|
+
type: 'string',
|
|
52824
|
+
},
|
|
52825
|
+
},
|
|
52826
|
+
required: ['name'],
|
|
52827
|
+
type: 'object',
|
|
52828
|
+
},
|
|
52829
|
+
},
|
|
52830
|
+
},
|
|
52831
|
+
},
|
|
52832
|
+
responses: {
|
|
52833
|
+
200: {
|
|
52834
|
+
content: {
|
|
52835
|
+
'application/json': {
|
|
52836
|
+
schema: {
|
|
52837
|
+
properties: {
|
|
52838
|
+
ok: { type: 'boolean' },
|
|
52839
|
+
space: { $ref: '#/components/schemas/space' },
|
|
52840
|
+
},
|
|
52841
|
+
required: ['space', 'ok'],
|
|
52842
|
+
type: 'object',
|
|
52843
|
+
},
|
|
52844
|
+
},
|
|
52845
|
+
},
|
|
52846
|
+
description: 'OK',
|
|
52847
|
+
},
|
|
52848
|
+
400: { description: 'Bad Request' },
|
|
52849
|
+
401: { description: 'Unauthorized' },
|
|
52850
|
+
},
|
|
52851
|
+
security: [{ client_session_with_customer: [] }],
|
|
52852
|
+
summary: '/seam/customer/v1/spaces/create',
|
|
52853
|
+
tags: [],
|
|
52854
|
+
'x-draft': 'Early access.',
|
|
52855
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
|
|
52856
|
+
'x-fern-sdk-method-name': 'create',
|
|
52857
|
+
'x-fern-sdk-return-value': 'space',
|
|
52858
|
+
'x-response-key': 'space',
|
|
52859
|
+
'x-title': 'Create a Space',
|
|
52860
|
+
},
|
|
52861
|
+
},
|
|
52683
52862
|
'/seam/instant_key/v1/client_sessions/exchange_short_code': {
|
|
52684
52863
|
post: {
|
|
52685
52864
|
description:
|
|
@@ -11353,6 +11353,10 @@ export type Routes = {
|
|
|
11353
11353
|
device_count: number
|
|
11354
11354
|
/** Number of entrances in the space. */
|
|
11355
11355
|
acs_entrance_count: number
|
|
11356
|
+
/** */
|
|
11357
|
+
parent_space_id?: string | undefined
|
|
11358
|
+
/** */
|
|
11359
|
+
parent_space_key?: string | undefined
|
|
11356
11360
|
}[]
|
|
11357
11361
|
| undefined
|
|
11358
11362
|
devices?:
|
|
@@ -15339,6 +15343,10 @@ export type Routes = {
|
|
|
15339
15343
|
device_count: number
|
|
15340
15344
|
/** Number of entrances in the space. */
|
|
15341
15345
|
acs_entrance_count: number
|
|
15346
|
+
/** */
|
|
15347
|
+
parent_space_id?: string | undefined
|
|
15348
|
+
/** */
|
|
15349
|
+
parent_space_key?: string | undefined
|
|
15342
15350
|
}[]
|
|
15343
15351
|
| undefined
|
|
15344
15352
|
devices?:
|
|
@@ -35540,7 +35548,7 @@ export type Routes = {
|
|
|
35540
35548
|
custom_redirect_url?: string | undefined
|
|
35541
35549
|
/** Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the `custom_redirect_url`. */
|
|
35542
35550
|
custom_redirect_failure_url?: string | undefined
|
|
35543
|
-
/**
|
|
35551
|
+
/** Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error. */
|
|
35544
35552
|
customer_key?: string | undefined
|
|
35545
35553
|
/** Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/latest/api/devices/list_device_providers) with no filters. */
|
|
35546
35554
|
accepted_providers?:
|
|
@@ -36236,7 +36244,7 @@ export type Routes = {
|
|
|
36236
36244
|
}
|
|
36237
36245
|
'/connected_accounts/update': {
|
|
36238
36246
|
route: '/connected_accounts/update'
|
|
36239
|
-
method: 'POST'
|
|
36247
|
+
method: 'PATCH' | 'POST'
|
|
36240
36248
|
queryParams: {}
|
|
36241
36249
|
jsonBody: {
|
|
36242
36250
|
/** ID of the connected account that you want to update. */
|
|
@@ -36253,7 +36261,7 @@ export type Routes = {
|
|
|
36253
36261
|
accepted_capabilities?:
|
|
36254
36262
|
| ('lock' | 'thermostat' | 'noise_sensor' | 'access_control')[]
|
|
36255
36263
|
| undefined
|
|
36256
|
-
/** The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer.
|
|
36264
|
+
/** The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer. */
|
|
36257
36265
|
customer_key?: string | undefined
|
|
36258
36266
|
}
|
|
36259
36267
|
commonParams: {}
|
|
@@ -69839,6 +69847,52 @@ export type Routes = {
|
|
|
69839
69847
|
formData: {}
|
|
69840
69848
|
jsonResponse: {}
|
|
69841
69849
|
}
|
|
69850
|
+
'/seam/customer/v1/spaces/create': {
|
|
69851
|
+
route: '/seam/customer/v1/spaces/create'
|
|
69852
|
+
method: 'POST'
|
|
69853
|
+
queryParams: {}
|
|
69854
|
+
jsonBody: {
|
|
69855
|
+
/** Name of the space that you want to create. */
|
|
69856
|
+
name: string
|
|
69857
|
+
/** Unique key for the space within the workspace. */
|
|
69858
|
+
space_key?: string | undefined
|
|
69859
|
+
/** IDs of the devices that you want to add to the new space. */
|
|
69860
|
+
device_ids?: string[] | undefined
|
|
69861
|
+
/** IDs of the entrances that you want to add to the new space. */
|
|
69862
|
+
acs_entrance_ids?: string[] | undefined
|
|
69863
|
+
/** Space key of the parent space for this space. */
|
|
69864
|
+
parent_space_key?: string | undefined
|
|
69865
|
+
/** Name of the parent space for this space. */
|
|
69866
|
+
parent_space_name?: string | undefined
|
|
69867
|
+
}
|
|
69868
|
+
commonParams: {}
|
|
69869
|
+
formData: {}
|
|
69870
|
+
jsonResponse: {
|
|
69871
|
+
/** Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient. */
|
|
69872
|
+
space: {
|
|
69873
|
+
/** ID of the space. */
|
|
69874
|
+
space_id: string
|
|
69875
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
|
|
69876
|
+
workspace_id: string
|
|
69877
|
+
/** Unique key for the space within the workspace. */
|
|
69878
|
+
space_key?: string | undefined
|
|
69879
|
+
/** Name of the space. */
|
|
69880
|
+
name: string
|
|
69881
|
+
/** Display name for the space. */
|
|
69882
|
+
display_name: string
|
|
69883
|
+
/** Date and time at which the space was created. */
|
|
69884
|
+
created_at: string
|
|
69885
|
+
/** Number of devices in the space. */
|
|
69886
|
+
device_count: number
|
|
69887
|
+
/** Number of entrances in the space. */
|
|
69888
|
+
acs_entrance_count: number
|
|
69889
|
+
/** */
|
|
69890
|
+
parent_space_id?: string | undefined
|
|
69891
|
+
/** */
|
|
69892
|
+
parent_space_key?: string | undefined
|
|
69893
|
+
}
|
|
69894
|
+
}
|
|
69895
|
+
}
|
|
69842
69896
|
'/seam/instant_key/v1/client_sessions/exchange_short_code': {
|
|
69843
69897
|
route: '/seam/instant_key/v1/client_sessions/exchange_short_code'
|
|
69844
69898
|
method: 'POST'
|
|
@@ -70603,6 +70657,10 @@ export type Routes = {
|
|
|
70603
70657
|
device_count: number
|
|
70604
70658
|
/** Number of entrances in the space. */
|
|
70605
70659
|
acs_entrance_count: number
|
|
70660
|
+
/** */
|
|
70661
|
+
parent_space_id?: string | undefined
|
|
70662
|
+
/** */
|
|
70663
|
+
parent_space_key?: string | undefined
|
|
70606
70664
|
}
|
|
70607
70665
|
}
|
|
70608
70666
|
}
|
|
@@ -70652,6 +70710,10 @@ export type Routes = {
|
|
|
70652
70710
|
device_count: number
|
|
70653
70711
|
/** Number of entrances in the space. */
|
|
70654
70712
|
acs_entrance_count: number
|
|
70713
|
+
/** */
|
|
70714
|
+
parent_space_id?: string | undefined
|
|
70715
|
+
/** */
|
|
70716
|
+
parent_space_key?: string | undefined
|
|
70655
70717
|
}
|
|
70656
70718
|
}
|
|
70657
70719
|
}
|
|
@@ -70707,6 +70769,10 @@ export type Routes = {
|
|
|
70707
70769
|
device_count: number
|
|
70708
70770
|
/** Number of entrances in the space. */
|
|
70709
70771
|
acs_entrance_count: number
|
|
70772
|
+
/** */
|
|
70773
|
+
parent_space_id?: string | undefined
|
|
70774
|
+
/** */
|
|
70775
|
+
parent_space_key?: string | undefined
|
|
70710
70776
|
}[]
|
|
70711
70777
|
| undefined
|
|
70712
70778
|
devices?:
|
|
@@ -72751,6 +72817,10 @@ export type Routes = {
|
|
|
72751
72817
|
device_count: number
|
|
72752
72818
|
/** Number of entrances in the space. */
|
|
72753
72819
|
acs_entrance_count: number
|
|
72820
|
+
/** */
|
|
72821
|
+
parent_space_id?: string | undefined
|
|
72822
|
+
/** */
|
|
72823
|
+
parent_space_key?: string | undefined
|
|
72754
72824
|
}[]
|
|
72755
72825
|
}
|
|
72756
72826
|
}
|
|
@@ -72821,6 +72891,10 @@ export type Routes = {
|
|
|
72821
72891
|
device_count: number
|
|
72822
72892
|
/** Number of entrances in the space. */
|
|
72823
72893
|
acs_entrance_count: number
|
|
72894
|
+
/** */
|
|
72895
|
+
parent_space_id?: string | undefined
|
|
72896
|
+
/** */
|
|
72897
|
+
parent_space_key?: string | undefined
|
|
72824
72898
|
}
|
|
72825
72899
|
}
|
|
72826
72900
|
}
|
|
@@ -95653,6 +95727,10 @@ export type Routes = {
|
|
|
95653
95727
|
device_count: number
|
|
95654
95728
|
/** Number of entrances in the space. */
|
|
95655
95729
|
acs_entrance_count: number
|
|
95730
|
+
/** */
|
|
95731
|
+
parent_space_id?: string | undefined
|
|
95732
|
+
/** */
|
|
95733
|
+
parent_space_key?: string | undefined
|
|
95656
95734
|
}[]
|
|
95657
95735
|
| undefined
|
|
95658
95736
|
devices?:
|