@seamapi/types 1.714.0 → 1.716.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.714.0",
3
+ "version": "1.716.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -708,6 +708,24 @@ export const device_metadata = z
708
708
  .describe(`IANA timezone for the Ultraloq device.`),
709
709
  })
710
710
  .describe(`Metadata for an Ultraloq device.`),
711
+
712
+ korelock_metadata: z
713
+ .object({
714
+ device_id: z.string().describe(`Device ID for a Korelock device.`),
715
+ device_name: z.string().describe(`Device name for a Korelock device.`),
716
+ model_code: z.string().describe(`Model code for a Korelock device.`),
717
+ serial_number: z
718
+ .string()
719
+ .describe(`Serial number for a Korelock device.`),
720
+ firmware_version: z
721
+ .string()
722
+ .describe(`Firmware version for a Korelock device.`),
723
+ wifi_signal_strength: z
724
+ .number()
725
+ .describe(`WiFi signal strength (0-1) for a Korelock device.`),
726
+ })
727
+ .partial()
728
+ .describe(`Metadata for a Korelock device.`),
711
729
  })
712
730
  .partial().describe(`
713
731
  ---
@@ -52,6 +52,7 @@ export const DEVICE_PROVIDERS = {
52
52
  SENSI: 'sensi',
53
53
  KWIKSET2: 'kwikset2',
54
54
  KEYNEST: 'keynest',
55
+ KORELOCK: 'korelock',
55
56
  DORMAKABA_AMBIANCE: 'dormakaba_ambiance',
56
57
  ULTRALOQ: 'ultraloq',
57
58
  } as const
@@ -30,6 +30,7 @@ export const LOCK_DEVICE_TYPE = {
30
30
  TEDEE_LOCK: 'tedee_lock',
31
31
  AKILES_LOCK: 'akiles_lock',
32
32
  ULTRALOQ_LOCK: 'ultraloq_lock',
33
+ KORELOCK_LOCK: 'korelock_lock',
33
34
  } as const
34
35
 
35
36
  type LockDeviceTypeFromMapping =
@@ -9770,6 +9770,7 @@ export default {
9770
9770
  'tedee_lock',
9771
9771
  'akiles_lock',
9772
9772
  'ultraloq_lock',
9773
+ 'korelock_lock',
9773
9774
  ],
9774
9775
  type: 'string',
9775
9776
  },
@@ -11244,6 +11245,39 @@ export default {
11244
11245
  },
11245
11246
  type: 'object',
11246
11247
  },
11248
+ korelock_metadata: {
11249
+ description: 'Metadata for a Korelock device.',
11250
+ properties: {
11251
+ device_id: {
11252
+ description: 'Device ID for a Korelock device.',
11253
+ type: 'string',
11254
+ },
11255
+ device_name: {
11256
+ description: 'Device name for a Korelock device.',
11257
+ type: 'string',
11258
+ },
11259
+ firmware_version: {
11260
+ description:
11261
+ 'Firmware version for a Korelock device.',
11262
+ type: 'string',
11263
+ },
11264
+ model_code: {
11265
+ description: 'Model code for a Korelock device.',
11266
+ type: 'string',
11267
+ },
11268
+ serial_number: {
11269
+ description: 'Serial number for a Korelock device.',
11270
+ type: 'string',
11271
+ },
11272
+ wifi_signal_strength: {
11273
+ description:
11274
+ 'WiFi signal strength (0-1) for a Korelock device.',
11275
+ format: 'float',
11276
+ type: 'number',
11277
+ },
11278
+ },
11279
+ type: 'object',
11280
+ },
11247
11281
  kwikset_metadata: {
11248
11282
  description: 'Metadata for a Kwikset device.',
11249
11283
  properties: {
@@ -13611,6 +13645,7 @@ export default {
13611
13645
  'sensi',
13612
13646
  'kwikset2',
13613
13647
  'keynest',
13648
+ 'korelock',
13614
13649
  'dormakaba_ambiance',
13615
13650
  'ultraloq',
13616
13651
  ],
@@ -25118,6 +25153,7 @@ export default {
25118
25153
  'tedee_lock',
25119
25154
  'akiles_lock',
25120
25155
  'ultraloq_lock',
25156
+ 'korelock_lock',
25121
25157
  ],
25122
25158
  type: 'string',
25123
25159
  },
@@ -27026,23 +27062,6 @@ export default {
27026
27062
  'Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.',
27027
27063
  type: 'boolean',
27028
27064
  },
27029
- is_offline_access_code: {
27030
- description:
27031
- 'Indicates whether the access code is an [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes).',
27032
- type: 'boolean',
27033
- },
27034
- is_one_time_use: {
27035
- description:
27036
- 'Indicates whether the [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) is a single-use access code.',
27037
- type: 'boolean',
27038
- },
27039
- max_time_rounding: {
27040
- default: '1hour',
27041
- description:
27042
- 'Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.',
27043
- enum: ['1hour', '1day', '1h', '1d'],
27044
- type: 'string',
27045
- },
27046
27065
  name: {
27047
27066
  description:
27048
27067
  "Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.\n\n Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.\n\n To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.\n\n To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).",
@@ -27055,7 +27074,7 @@ export default {
27055
27074
  },
27056
27075
  preferred_code_length: {
27057
27076
  description:
27058
- 'Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length.',
27077
+ 'Preferred code length. If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length.',
27059
27078
  format: 'float',
27060
27079
  type: 'number',
27061
27080
  },
@@ -27064,16 +27083,6 @@ export default {
27064
27083
  'Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
27065
27084
  type: 'string',
27066
27085
  },
27067
- use_backup_access_code_pool: {
27068
- description:
27069
- 'Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api/access_codes/pull_backup_access_code).',
27070
- type: 'boolean',
27071
- },
27072
- use_offline_access_code: {
27073
- deprecated: true,
27074
- type: 'boolean',
27075
- 'x-deprecated': 'Use `is_offline_access_code` instead.',
27076
- },
27077
27086
  },
27078
27087
  required: ['device_ids'],
27079
27088
  type: 'object',
@@ -27166,23 +27175,6 @@ export default {
27166
27175
  'Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`.',
27167
27176
  type: 'boolean',
27168
27177
  },
27169
- is_offline_access_code: {
27170
- description:
27171
- 'Indicates whether the access code is an [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes).',
27172
- type: 'boolean',
27173
- },
27174
- is_one_time_use: {
27175
- description:
27176
- 'Indicates whether the [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) is a single-use access code.',
27177
- type: 'boolean',
27178
- },
27179
- max_time_rounding: {
27180
- default: '1hour',
27181
- description:
27182
- 'Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.',
27183
- enum: ['1hour', '1day', '1h', '1d'],
27184
- type: 'string',
27185
- },
27186
27178
  name: {
27187
27179
  description:
27188
27180
  "Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.\n\n Note that the name provided on Seam is used to identify the code on Seam and is not necessarily the name that will appear in the lock provider's app or on the device. This is because lock providers may have constraints on names, such as length, uniqueness, or characters that can be used. In addition, some lock providers may break down names into components such as `first_name` and `last_name`.\n\n To provide a consistent experience, Seam identifies the code on Seam by its name but may modify the name that appears on the lock provider's app or on the device. For example, Seam may add additional characters or truncate the name to meet provider constraints.\n\n To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components).",
@@ -27195,7 +27187,7 @@ export default {
27195
27187
  },
27196
27188
  preferred_code_length: {
27197
27189
  description:
27198
- 'Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length.',
27190
+ 'Preferred code length. If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length.',
27199
27191
  format: 'float',
27200
27192
  type: 'number',
27201
27193
  },
@@ -27204,16 +27196,6 @@ export default {
27204
27196
  'Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
27205
27197
  type: 'string',
27206
27198
  },
27207
- use_backup_access_code_pool: {
27208
- description:
27209
- 'Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api/access_codes/pull_backup_access_code).',
27210
- type: 'boolean',
27211
- },
27212
- use_offline_access_code: {
27213
- deprecated: true,
27214
- type: 'boolean',
27215
- 'x-deprecated': 'Use `is_offline_access_code` instead.',
27216
- },
27217
27199
  },
27218
27200
  required: ['device_ids'],
27219
27201
  type: 'object',
@@ -40932,6 +40914,7 @@ export default {
40932
40914
  'sensi',
40933
40915
  'kwikset2',
40934
40916
  'keynest',
40917
+ 'korelock',
40935
40918
  'dormakaba_ambiance',
40936
40919
  'ultraloq',
40937
40920
  'yale_access',
@@ -44837,6 +44820,7 @@ export default {
44837
44820
  'tedee_lock',
44838
44821
  'akiles_lock',
44839
44822
  'ultraloq_lock',
44823
+ 'korelock_lock',
44840
44824
  ],
44841
44825
  type: 'string',
44842
44826
  },
@@ -44909,6 +44893,7 @@ export default {
44909
44893
  'tedee_lock',
44910
44894
  'akiles_lock',
44911
44895
  'ultraloq_lock',
44896
+ 'korelock_lock',
44912
44897
  ],
44913
44898
  type: 'string',
44914
44899
  },
@@ -44982,14 +44967,15 @@ export default {
44982
44967
  'akiles',
44983
44968
  'ecobee',
44984
44969
  'honeywell_resideo',
44970
+ 'keynest',
44971
+ 'korelock',
44985
44972
  'kwikset2',
44986
44973
  'minut',
44987
44974
  'nest',
44988
44975
  'noiseaware',
44989
- 'tado',
44990
44976
  'sensi',
44991
44977
  'smartthings',
44992
- 'keynest',
44978
+ 'tado',
44993
44979
  'ultraloq',
44994
44980
  ],
44995
44981
  type: 'string',
@@ -45278,6 +45264,7 @@ export default {
45278
45264
  'tedee_lock',
45279
45265
  'akiles_lock',
45280
45266
  'ultraloq_lock',
45267
+ 'korelock_lock',
45281
45268
  ],
45282
45269
  type: 'string',
45283
45270
  },
@@ -45348,6 +45335,7 @@ export default {
45348
45335
  'tedee_lock',
45349
45336
  'akiles_lock',
45350
45337
  'ultraloq_lock',
45338
+ 'korelock_lock',
45351
45339
  ],
45352
45340
  type: 'string',
45353
45341
  },
@@ -45483,14 +45471,15 @@ export default {
45483
45471
  'akiles',
45484
45472
  'ecobee',
45485
45473
  'honeywell_resideo',
45474
+ 'keynest',
45475
+ 'korelock',
45486
45476
  'kwikset2',
45487
45477
  'minut',
45488
45478
  'nest',
45489
45479
  'noiseaware',
45490
- 'tado',
45491
45480
  'sensi',
45492
45481
  'smartthings',
45493
- 'keynest',
45482
+ 'tado',
45494
45483
  'ultraloq',
45495
45484
  ],
45496
45485
  type: 'string',
@@ -46709,6 +46698,7 @@ export default {
46709
46698
  'tedee_lock',
46710
46699
  'akiles_lock',
46711
46700
  'ultraloq_lock',
46701
+ 'korelock_lock',
46712
46702
  ],
46713
46703
  type: 'string',
46714
46704
  },
@@ -46781,6 +46771,7 @@ export default {
46781
46771
  'tedee_lock',
46782
46772
  'akiles_lock',
46783
46773
  'ultraloq_lock',
46774
+ 'korelock_lock',
46784
46775
  ],
46785
46776
  type: 'string',
46786
46777
  },
@@ -46854,14 +46845,15 @@ export default {
46854
46845
  'akiles',
46855
46846
  'ecobee',
46856
46847
  'honeywell_resideo',
46848
+ 'keynest',
46849
+ 'korelock',
46857
46850
  'kwikset2',
46858
46851
  'minut',
46859
46852
  'nest',
46860
46853
  'noiseaware',
46861
- 'tado',
46862
46854
  'sensi',
46863
46855
  'smartthings',
46864
- 'keynest',
46856
+ 'tado',
46865
46857
  'ultraloq',
46866
46858
  ],
46867
46859
  type: 'string',
@@ -47149,6 +47141,7 @@ export default {
47149
47141
  'tedee_lock',
47150
47142
  'akiles_lock',
47151
47143
  'ultraloq_lock',
47144
+ 'korelock_lock',
47152
47145
  ],
47153
47146
  type: 'string',
47154
47147
  },
@@ -47219,6 +47212,7 @@ export default {
47219
47212
  'tedee_lock',
47220
47213
  'akiles_lock',
47221
47214
  'ultraloq_lock',
47215
+ 'korelock_lock',
47222
47216
  ],
47223
47217
  type: 'string',
47224
47218
  },
@@ -47354,14 +47348,15 @@ export default {
47354
47348
  'akiles',
47355
47349
  'ecobee',
47356
47350
  'honeywell_resideo',
47351
+ 'keynest',
47352
+ 'korelock',
47357
47353
  'kwikset2',
47358
47354
  'minut',
47359
47355
  'nest',
47360
47356
  'noiseaware',
47361
- 'tado',
47362
47357
  'sensi',
47363
47358
  'smartthings',
47364
- 'keynest',
47359
+ 'tado',
47365
47360
  'ultraloq',
47366
47361
  ],
47367
47362
  type: 'string',
@@ -49348,6 +49343,7 @@ export default {
49348
49343
  'tedee_lock',
49349
49344
  'akiles_lock',
49350
49345
  'ultraloq_lock',
49346
+ 'korelock_lock',
49351
49347
  ],
49352
49348
  type: 'string',
49353
49349
  },
@@ -49388,6 +49384,7 @@ export default {
49388
49384
  'tedee_lock',
49389
49385
  'akiles_lock',
49390
49386
  'ultraloq_lock',
49387
+ 'korelock_lock',
49391
49388
  ],
49392
49389
  type: 'string',
49393
49390
  },
@@ -49426,6 +49423,7 @@ export default {
49426
49423
  'dormakaba_oracode',
49427
49424
  'tedee',
49428
49425
  'akiles',
49426
+ 'korelock',
49429
49427
  'kwikset2',
49430
49428
  'smartthings',
49431
49429
  'ultraloq',
@@ -49715,6 +49713,7 @@ export default {
49715
49713
  'tedee_lock',
49716
49714
  'akiles_lock',
49717
49715
  'ultraloq_lock',
49716
+ 'korelock_lock',
49718
49717
  ],
49719
49718
  type: 'string',
49720
49719
  },
@@ -49752,6 +49751,7 @@ export default {
49752
49751
  'tedee_lock',
49753
49752
  'akiles_lock',
49754
49753
  'ultraloq_lock',
49754
+ 'korelock_lock',
49755
49755
  ],
49756
49756
  type: 'string',
49757
49757
  },
@@ -49850,6 +49850,7 @@ export default {
49850
49850
  'dormakaba_oracode',
49851
49851
  'tedee',
49852
49852
  'akiles',
49853
+ 'korelock',
49853
49854
  'kwikset2',
49854
49855
  'smartthings',
49855
49856
  'ultraloq',
@@ -62700,9 +62701,9 @@ export default {
62700
62701
  'ecobee',
62701
62702
  'honeywell_resideo',
62702
62703
  'nest',
62703
- 'tado',
62704
62704
  'sensi',
62705
62705
  'smartthings',
62706
+ 'tado',
62706
62707
  ],
62707
62708
  type: 'string',
62708
62709
  },
@@ -63057,9 +63058,9 @@ export default {
63057
63058
  'ecobee',
63058
63059
  'honeywell_resideo',
63059
63060
  'nest',
63060
- 'tado',
63061
63061
  'sensi',
63062
63062
  'smartthings',
63063
+ 'tado',
63063
63064
  ],
63064
63065
  type: 'string',
63065
63066
  },