@seamapi/types 1.502.0 → 1.503.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.
@@ -1301,6 +1301,8 @@ export type Routes = {
1301
1301
 
1302
1302
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
1303
1303
  access_code: {
1304
+ /** Unique identifier for the Seam workspace associated with the access code. */
1305
+ workspace_id: string;
1304
1306
  /** Unique identifier for a group of access codes that share the same code. */
1305
1307
  common_code_key: string | null;
1306
1308
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -1855,6 +1857,8 @@ export type Routes = {
1855
1857
  formData: {};
1856
1858
  jsonResponse: {
1857
1859
  access_codes: {
1860
+ /** Unique identifier for the Seam workspace associated with the access code. */
1861
+ workspace_id: string;
1858
1862
  /** Unique identifier for a group of access codes that share the same code. */
1859
1863
  common_code_key: string | null;
1860
1864
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -3663,6 +3667,8 @@ export type Routes = {
3663
3667
 
3664
3668
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
3665
3669
  access_code: {
3670
+ /** Unique identifier for the Seam workspace associated with the access code. */
3671
+ workspace_id: string;
3666
3672
  /** Unique identifier for a group of access codes that share the same code. */
3667
3673
  common_code_key: string | null;
3668
3674
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -4190,6 +4196,8 @@ export type Routes = {
4190
4196
  formData: {};
4191
4197
  jsonResponse: {
4192
4198
  access_codes: {
4199
+ /** Unique identifier for the Seam workspace associated with the access code. */
4200
+ workspace_id: string;
4193
4201
  /** Unique identifier for a group of access codes that share the same code. */
4194
4202
  common_code_key: string | null;
4195
4203
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -4724,6 +4732,8 @@ export type Routes = {
4724
4732
 
4725
4733
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
4726
4734
  backup_access_code: {
4735
+ /** Unique identifier for the Seam workspace associated with the access code. */
4736
+ workspace_id: string;
4727
4737
  /** Unique identifier for a group of access codes that share the same code. */
4728
4738
  common_code_key: string | null;
4729
4739
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -5236,6 +5246,8 @@ export type Routes = {
5236
5246
 
5237
5247
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
5238
5248
  access_code: {
5249
+ /** Unique identifier for the Seam workspace associated with the access code. */
5250
+ workspace_id: string;
5239
5251
  /** Unique identifier for a group of access codes that share the same code. */
5240
5252
  common_code_key: string | null;
5241
5253
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -5787,6 +5799,8 @@ export type Routes = {
5787
5799
 
5788
5800
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks) */
5789
5801
  access_code: {
5802
+ /** Unique identifier for the Seam workspace associated with the access code. */
5803
+ workspace_id: string;
5790
5804
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
5791
5805
  type: 'time_bound' | 'ongoing';
5792
5806
  /** Unique identifier for the access code. */
@@ -7582,6 +7596,8 @@ export type Routes = {
7582
7596
 
7583
7597
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks) */
7584
7598
  access_code: {
7599
+ /** Unique identifier for the Seam workspace associated with the access code. */
7600
+ workspace_id: string;
7585
7601
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
7586
7602
  type: 'time_bound' | 'ongoing';
7587
7603
  /** Unique identifier for the access code. */
@@ -8088,6 +8104,8 @@ export type Routes = {
8088
8104
  formData: {};
8089
8105
  jsonResponse: {
8090
8106
  access_codes: {
8107
+ /** Unique identifier for the Seam workspace associated with the access code. */
8108
+ workspace_id: string;
8091
8109
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
8092
8110
  type: 'time_bound' | 'ongoing';
8093
8111
  /** Unique identifier for the access code. */
@@ -19030,6 +19048,8 @@ export type Routes = {
19030
19048
  } | undefined;
19031
19049
  }[] | undefined;
19032
19050
  access_codes?: {
19051
+ /** Unique identifier for the Seam workspace associated with the access code. */
19052
+ workspace_id: string;
19033
19053
  /** Unique identifier for a group of access codes that share the same code. */
19034
19054
  common_code_key: string | null;
19035
19055
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -19535,6 +19555,8 @@ export type Routes = {
19535
19555
  is_offline_access_code: boolean;
19536
19556
  }[] | undefined;
19537
19557
  unmanaged_access_codes?: {
19558
+ /** Unique identifier for the Seam workspace associated with the access code. */
19559
+ workspace_id: string;
19538
19560
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
19539
19561
  type: 'time_bound' | 'ongoing';
19540
19562
  /** Unique identifier for the access code. */
@@ -84435,6 +84457,8 @@ export type Routes = {
84435
84457
  } | undefined;
84436
84458
  }[] | undefined;
84437
84459
  access_codes?: {
84460
+ /** Unique identifier for the Seam workspace associated with the access code. */
84461
+ workspace_id: string;
84438
84462
  /** Unique identifier for a group of access codes that share the same code. */
84439
84463
  common_code_key: string | null;
84440
84464
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -84940,6 +84964,8 @@ export type Routes = {
84940
84964
  is_offline_access_code: boolean;
84941
84965
  }[] | undefined;
84942
84966
  unmanaged_access_codes?: {
84967
+ /** Unique identifier for the Seam workspace associated with the access code. */
84968
+ workspace_id: string;
84943
84969
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
84944
84970
  type: 'time_bound' | 'ongoing';
84945
84971
  /** Unique identifier for the access code. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.502.0",
3
+ "version": "1.503.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -495,6 +495,12 @@ const _access_code_warning_map = z.object({
495
495
  export type AccessCodeWarningMap = z.infer<typeof _access_code_warning_map>
496
496
 
497
497
  export const access_code = z.object({
498
+ workspace_id: z
499
+ .string()
500
+ .uuid()
501
+ .describe(
502
+ 'Unique identifier for the Seam workspace associated with the access code.',
503
+ ),
498
504
  common_code_key: z
499
505
  .string()
500
506
  .nullable()
@@ -4,6 +4,7 @@ import { access_code } from './managed-access-code.js'
4
4
 
5
5
  export const unmanaged_access_code = access_code
6
6
  .pick({
7
+ workspace_id: true,
7
8
  type: true,
8
9
  access_code_id: true,
9
10
  device_id: true,
@@ -1792,8 +1792,15 @@ export default {
1792
1792
  thermostats: { name: 'Thermostats' },
1793
1793
  },
1794
1794
  },
1795
+ workspace_id: {
1796
+ description:
1797
+ 'Unique identifier for the Seam workspace associated with the access code.',
1798
+ format: 'uuid',
1799
+ type: 'string',
1800
+ },
1795
1801
  },
1796
1802
  required: [
1803
+ 'workspace_id',
1797
1804
  'common_code_key',
1798
1805
  'type',
1799
1806
  'access_code_id',
@@ -22266,8 +22273,15 @@ export default {
22266
22273
  thermostats: { name: 'Thermostats' },
22267
22274
  },
22268
22275
  },
22276
+ workspace_id: {
22277
+ description:
22278
+ 'Unique identifier for the Seam workspace associated with the access code.',
22279
+ format: 'uuid',
22280
+ type: 'string',
22281
+ },
22269
22282
  },
22270
22283
  required: [
22284
+ 'workspace_id',
22271
22285
  'type',
22272
22286
  'access_code_id',
22273
22287
  'device_id',
@@ -1482,6 +1482,8 @@ export type Routes = {
1482
1482
 
1483
1483
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
1484
1484
  access_code: {
1485
+ /** Unique identifier for the Seam workspace associated with the access code. */
1486
+ workspace_id: string
1485
1487
  /** Unique identifier for a group of access codes that share the same code. */
1486
1488
  common_code_key: string | null
1487
1489
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -2091,6 +2093,8 @@ export type Routes = {
2091
2093
  formData: {}
2092
2094
  jsonResponse: {
2093
2095
  access_codes: {
2096
+ /** Unique identifier for the Seam workspace associated with the access code. */
2097
+ workspace_id: string
2094
2098
  /** Unique identifier for a group of access codes that share the same code. */
2095
2099
  common_code_key: string | null
2096
2100
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -4135,6 +4139,8 @@ export type Routes = {
4135
4139
 
4136
4140
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
4137
4141
  access_code: {
4142
+ /** Unique identifier for the Seam workspace associated with the access code. */
4143
+ workspace_id: string
4138
4144
  /** Unique identifier for a group of access codes that share the same code. */
4139
4145
  common_code_key: string | null
4140
4146
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -4717,6 +4723,8 @@ export type Routes = {
4717
4723
  formData: {}
4718
4724
  jsonResponse: {
4719
4725
  access_codes: {
4726
+ /** Unique identifier for the Seam workspace associated with the access code. */
4727
+ workspace_id: string
4720
4728
  /** Unique identifier for a group of access codes that share the same code. */
4721
4729
  common_code_key: string | null
4722
4730
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -5306,6 +5314,8 @@ export type Routes = {
5306
5314
 
5307
5315
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
5308
5316
  backup_access_code: {
5317
+ /** Unique identifier for the Seam workspace associated with the access code. */
5318
+ workspace_id: string
5309
5319
  /** Unique identifier for a group of access codes that share the same code. */
5310
5320
  common_code_key: string | null
5311
5321
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -5873,6 +5883,8 @@ export type Routes = {
5873
5883
 
5874
5884
  In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#offline-access-codes). Offline access (PIN) codes are designed for door locks that might not always maintain an internet connection. For this type of access code, the device manufacturer uses encryption keys (tokens) to create server-based registries of algorithmically-generated offline PIN codes. Because the tokens remain synchronized with the managed devices, the locks do not require an active internet connection—and you do not need to be near the locks—to create an offline access code. Then, owners or managers can share these offline codes with users through a variety of mechanisms, such as messaging applications. That is, lock users do not need to install a smartphone application to receive an offline access code. */
5875
5885
  access_code: {
5886
+ /** Unique identifier for the Seam workspace associated with the access code. */
5887
+ workspace_id: string
5876
5888
  /** Unique identifier for a group of access codes that share the same code. */
5877
5889
  common_code_key: string | null
5878
5890
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -6479,6 +6491,8 @@ export type Routes = {
6479
6491
 
6480
6492
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks) */
6481
6493
  access_code: {
6494
+ /** Unique identifier for the Seam workspace associated with the access code. */
6495
+ workspace_id: string
6482
6496
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
6483
6497
  type: 'time_bound' | 'ongoing'
6484
6498
  /** Unique identifier for the access code. */
@@ -8510,6 +8524,8 @@ export type Routes = {
8510
8524
 
8511
8525
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks) */
8512
8526
  access_code: {
8527
+ /** Unique identifier for the Seam workspace associated with the access code. */
8528
+ workspace_id: string
8513
8529
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
8514
8530
  type: 'time_bound' | 'ongoing'
8515
8531
  /** Unique identifier for the access code. */
@@ -9071,6 +9087,8 @@ export type Routes = {
9071
9087
  formData: {}
9072
9088
  jsonResponse: {
9073
9089
  access_codes: {
9090
+ /** Unique identifier for the Seam workspace associated with the access code. */
9091
+ workspace_id: string
9074
9092
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
9075
9093
  type: 'time_bound' | 'ongoing'
9076
9094
  /** Unique identifier for the access code. */
@@ -22132,6 +22150,8 @@ export type Routes = {
22132
22150
  | undefined
22133
22151
  access_codes?:
22134
22152
  | {
22153
+ /** Unique identifier for the Seam workspace associated with the access code. */
22154
+ workspace_id: string
22135
22155
  /** Unique identifier for a group of access codes that share the same code. */
22136
22156
  common_code_key: string | null
22137
22157
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -22694,6 +22714,8 @@ export type Routes = {
22694
22714
  | undefined
22695
22715
  unmanaged_access_codes?:
22696
22716
  | {
22717
+ /** Unique identifier for the Seam workspace associated with the access code. */
22718
+ workspace_id: string
22697
22719
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
22698
22720
  type: 'time_bound' | 'ongoing'
22699
22721
  /** Unique identifier for the access code. */
@@ -100394,6 +100416,8 @@ export type Routes = {
100394
100416
  | undefined
100395
100417
  access_codes?:
100396
100418
  | {
100419
+ /** Unique identifier for the Seam workspace associated with the access code. */
100420
+ workspace_id: string
100397
100421
  /** Unique identifier for a group of access codes that share the same code. */
100398
100422
  common_code_key: string | null
100399
100423
  /** Indicates whether the code is set on the device according to a preconfigured schedule. */
@@ -100956,6 +100980,8 @@ export type Routes = {
100956
100980
  | undefined
100957
100981
  unmanaged_access_codes?:
100958
100982
  | {
100983
+ /** Unique identifier for the Seam workspace associated with the access code. */
100984
+ workspace_id: string
100959
100985
  /** Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration. */
100960
100986
  type: 'time_bound' | 'ongoing'
100961
100987
  /** Unique identifier for the access code. */