@seamapi/types 1.588.0 → 1.590.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.
@@ -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. */
@@ -31186,12 +31194,14 @@ export type Routes = {
31186
31194
  connected_account_id: string;
31187
31195
  /** Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices). */
31188
31196
  automatically_manage_new_devices?: boolean | undefined;
31189
- /** Custom metadata that you want to associate with 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). */
31197
+ /** 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). */
31190
31198
  custom_metadata?: {
31191
31199
  [x: string]: string | boolean | null;
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;
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. */
31204
+ customer_key?: string | undefined;
31195
31205
  };
31196
31206
  commonParams: {};
31197
31207
  formData: {};
@@ -58588,6 +58598,52 @@ export type Routes = {
58588
58598
  formData: {};
58589
58599
  jsonResponse: {};
58590
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
+ };
58591
58647
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
58592
58648
  route: '/seam/instant_key/v1/client_sessions/exchange_short_code';
58593
58649
  method: 'POST';
@@ -59261,6 +59317,10 @@ export type Routes = {
59261
59317
  device_count: number;
59262
59318
  /** Number of entrances in the space. */
59263
59319
  acs_entrance_count: number;
59320
+ /** */
59321
+ parent_space_id?: string | undefined;
59322
+ /** */
59323
+ parent_space_key?: string | undefined;
59264
59324
  };
59265
59325
  };
59266
59326
  };
@@ -59308,6 +59368,10 @@ export type Routes = {
59308
59368
  device_count: number;
59309
59369
  /** Number of entrances in the space. */
59310
59370
  acs_entrance_count: number;
59371
+ /** */
59372
+ parent_space_id?: string | undefined;
59373
+ /** */
59374
+ parent_space_key?: string | undefined;
59311
59375
  };
59312
59376
  };
59313
59377
  };
@@ -59346,6 +59410,10 @@ export type Routes = {
59346
59410
  device_count: number;
59347
59411
  /** Number of entrances in the space. */
59348
59412
  acs_entrance_count: number;
59413
+ /** */
59414
+ parent_space_id?: string | undefined;
59415
+ /** */
59416
+ parent_space_key?: string | undefined;
59349
59417
  }[] | undefined;
59350
59418
  devices?: {
59351
59419
  /** ID of the device. */
@@ -60953,6 +61021,10 @@ export type Routes = {
60953
61021
  device_count: number;
60954
61022
  /** Number of entrances in the space. */
60955
61023
  acs_entrance_count: number;
61024
+ /** */
61025
+ parent_space_id?: string | undefined;
61026
+ /** */
61027
+ parent_space_key?: string | undefined;
60956
61028
  }[];
60957
61029
  };
60958
61030
  };
@@ -61023,6 +61095,10 @@ export type Routes = {
61023
61095
  device_count: number;
61024
61096
  /** Number of entrances in the space. */
61025
61097
  acs_entrance_count: number;
61098
+ /** */
61099
+ parent_space_id?: string | undefined;
61100
+ /** */
61101
+ parent_space_key?: string | undefined;
61026
61102
  };
61027
61103
  };
61028
61104
  };
@@ -80390,6 +80466,10 @@ export type Routes = {
80390
80466
  device_count: number;
80391
80467
  /** Number of entrances in the space. */
80392
80468
  acs_entrance_count: number;
80469
+ /** */
80470
+ parent_space_id?: string | undefined;
80471
+ /** */
80472
+ parent_space_key?: string | undefined;
80393
80473
  }[] | undefined;
80394
80474
  devices?: {
80395
80475
  /** ID of the device. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.588.0",
3
+ "version": "1.590.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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',
@@ -40267,9 +40276,15 @@ export default {
40267
40276
  ],
40268
40277
  },
40269
40278
  description:
40270
- 'Custom metadata that you want to associate with 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).',
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).',
40271
40280
  type: 'object',
40272
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. ',
40285
+ minLength: 1,
40286
+ type: 'string',
40287
+ },
40273
40288
  },
40274
40289
  required: ['connected_account_id'],
40275
40290
  type: 'object',
@@ -52674,6 +52689,82 @@ export default {
52674
52689
  'x-undocumented': 'Internal endpoint for customer portals.',
52675
52690
  },
52676
52691
  },
52692
+ '/seam/customer/v1/spaces/create': {
52693
+ post: {
52694
+ description: 'Creates a new space with optional parent space support.',
52695
+ operationId: 'seamCustomerV1SpacesCreatePost',
52696
+ requestBody: {
52697
+ content: {
52698
+ 'application/json': {
52699
+ schema: {
52700
+ properties: {
52701
+ acs_entrance_ids: {
52702
+ description:
52703
+ 'IDs of the entrances that you want to add to the new space.',
52704
+ items: { format: 'uuid', type: 'string' },
52705
+ type: 'array',
52706
+ },
52707
+ device_ids: {
52708
+ description:
52709
+ 'IDs of the devices that you want to add to the new space.',
52710
+ items: { format: 'uuid', type: 'string' },
52711
+ type: 'array',
52712
+ },
52713
+ name: {
52714
+ description: 'Name of the space that you want to create.',
52715
+ type: 'string',
52716
+ },
52717
+ parent_space_key: {
52718
+ description:
52719
+ 'Space key of the parent space for this space.',
52720
+ type: 'string',
52721
+ },
52722
+ parent_space_name: {
52723
+ description: 'Name of the parent space for this space.',
52724
+ type: 'string',
52725
+ },
52726
+ space_key: {
52727
+ description:
52728
+ 'Unique key for the space within the workspace.',
52729
+ type: 'string',
52730
+ },
52731
+ },
52732
+ required: ['name'],
52733
+ type: 'object',
52734
+ },
52735
+ },
52736
+ },
52737
+ },
52738
+ responses: {
52739
+ 200: {
52740
+ content: {
52741
+ 'application/json': {
52742
+ schema: {
52743
+ properties: {
52744
+ ok: { type: 'boolean' },
52745
+ space: { $ref: '#/components/schemas/space' },
52746
+ },
52747
+ required: ['space', 'ok'],
52748
+ type: 'object',
52749
+ },
52750
+ },
52751
+ },
52752
+ description: 'OK',
52753
+ },
52754
+ 400: { description: 'Bad Request' },
52755
+ 401: { description: 'Unauthorized' },
52756
+ },
52757
+ security: [{ client_session_with_customer: [] }],
52758
+ summary: '/seam/customer/v1/spaces/create',
52759
+ tags: [],
52760
+ 'x-draft': 'Early access.',
52761
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
52762
+ 'x-fern-sdk-method-name': 'create',
52763
+ 'x-fern-sdk-return-value': 'space',
52764
+ 'x-response-key': 'space',
52765
+ 'x-title': 'Create a Space',
52766
+ },
52767
+ },
52677
52768
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
52678
52769
  post: {
52679
52770
  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?:
@@ -36243,7 +36251,7 @@ export type Routes = {
36243
36251
  connected_account_id: string
36244
36252
  /** Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices). */
36245
36253
  automatically_manage_new_devices?: boolean | undefined
36246
- /** Custom metadata that you want to associate with 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). */
36254
+ /** 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). */
36247
36255
  custom_metadata?:
36248
36256
  | {
36249
36257
  [x: string]: string | boolean | null
@@ -36253,6 +36261,8 @@ export type Routes = {
36253
36261
  accepted_capabilities?:
36254
36262
  | ('lock' | 'thermostat' | 'noise_sensor' | 'access_control')[]
36255
36263
  | undefined
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. */
36265
+ customer_key?: string | undefined
36256
36266
  }
36257
36267
  commonParams: {}
36258
36268
  formData: {}
@@ -69837,6 +69847,52 @@ export type Routes = {
69837
69847
  formData: {}
69838
69848
  jsonResponse: {}
69839
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
+ }
69840
69896
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
69841
69897
  route: '/seam/instant_key/v1/client_sessions/exchange_short_code'
69842
69898
  method: 'POST'
@@ -70601,6 +70657,10 @@ export type Routes = {
70601
70657
  device_count: number
70602
70658
  /** Number of entrances in the space. */
70603
70659
  acs_entrance_count: number
70660
+ /** */
70661
+ parent_space_id?: string | undefined
70662
+ /** */
70663
+ parent_space_key?: string | undefined
70604
70664
  }
70605
70665
  }
70606
70666
  }
@@ -70650,6 +70710,10 @@ export type Routes = {
70650
70710
  device_count: number
70651
70711
  /** Number of entrances in the space. */
70652
70712
  acs_entrance_count: number
70713
+ /** */
70714
+ parent_space_id?: string | undefined
70715
+ /** */
70716
+ parent_space_key?: string | undefined
70653
70717
  }
70654
70718
  }
70655
70719
  }
@@ -70705,6 +70769,10 @@ export type Routes = {
70705
70769
  device_count: number
70706
70770
  /** Number of entrances in the space. */
70707
70771
  acs_entrance_count: number
70772
+ /** */
70773
+ parent_space_id?: string | undefined
70774
+ /** */
70775
+ parent_space_key?: string | undefined
70708
70776
  }[]
70709
70777
  | undefined
70710
70778
  devices?:
@@ -72749,6 +72817,10 @@ export type Routes = {
72749
72817
  device_count: number
72750
72818
  /** Number of entrances in the space. */
72751
72819
  acs_entrance_count: number
72820
+ /** */
72821
+ parent_space_id?: string | undefined
72822
+ /** */
72823
+ parent_space_key?: string | undefined
72752
72824
  }[]
72753
72825
  }
72754
72826
  }
@@ -72819,6 +72891,10 @@ export type Routes = {
72819
72891
  device_count: number
72820
72892
  /** Number of entrances in the space. */
72821
72893
  acs_entrance_count: number
72894
+ /** */
72895
+ parent_space_id?: string | undefined
72896
+ /** */
72897
+ parent_space_key?: string | undefined
72822
72898
  }
72823
72899
  }
72824
72900
  }
@@ -95651,6 +95727,10 @@ export type Routes = {
95651
95727
  device_count: number
95652
95728
  /** Number of entrances in the space. */
95653
95729
  acs_entrance_count: number
95730
+ /** */
95731
+ parent_space_id?: string | undefined
95732
+ /** */
95733
+ parent_space_key?: string | undefined
95654
95734
  }[]
95655
95735
  | undefined
95656
95736
  devices?: