@seamapi/types 1.242.1 → 1.243.1

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 CHANGED
@@ -561,7 +561,21 @@ var device_metadata = zod.z.object({
561
561
  ttlock_metadata: zod.z.object({
562
562
  lock_id: zod.z.number(),
563
563
  lock_alias: zod.z.string(),
564
- feature_value: zod.z.string()
564
+ feature_value: zod.z.string(),
565
+ features: zod.z.object({
566
+ passcode: zod.z.boolean(),
567
+ passcode_management: zod.z.boolean(),
568
+ unlock_via_gateway: zod.z.boolean(),
569
+ lock_command: zod.z.boolean(),
570
+ incomplete_keyboard_passcode: zod.z.boolean()
571
+ }),
572
+ has_gateway: zod.z.boolean().optional(),
573
+ wireless_keypads: zod.z.array(
574
+ zod.z.object({
575
+ wireless_keypad_id: zod.z.number(),
576
+ wireless_keypad_name: zod.z.string()
577
+ })
578
+ ).optional()
565
579
  }),
566
580
  seam_bridge_metadata: zod.z.object({
567
581
  unlock_method: zod.z.enum(["bridge", "doorking"]).optional(),
@@ -1347,17 +1361,17 @@ var acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error.exten
1347
1361
  `Indicates that the user could not be subscribed on Salto KS because the subscription limit has been exceeded.`
1348
1362
  );
1349
1363
  var acs_users_failed_to_create_on_acs_system = common_acs_user_error.extend({
1350
- warning_code: zod.z.literal("failed_to_create_on_acs_system")
1364
+ error_code: zod.z.literal("failed_to_create_on_acs_system")
1351
1365
  }).describe(
1352
1366
  `Indicates that the user was not created on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`
1353
1367
  );
1354
1368
  var acs_users_failed_to_update_on_acs_system = common_acs_user_error.extend({
1355
- warning_code: zod.z.literal("failed_to_update_on_acs_system")
1369
+ error_code: zod.z.literal("failed_to_update_on_acs_system")
1356
1370
  }).describe(
1357
1371
  `Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`
1358
1372
  );
1359
1373
  var acs_users_failed_to_delete_on_acs_system = common_acs_user_error.extend({
1360
- warning_code: zod.z.literal("failed_to_delete_on_acs_system")
1374
+ error_code: zod.z.literal("failed_to_delete_on_acs_system")
1361
1375
  }).describe(
1362
1376
  `Indicates that the user was not deleted on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`
1363
1377
  );
@@ -1393,11 +1407,7 @@ zod.z.object({
1393
1407
  being_deleted: acs_users_being_deleted.optional().nullable(),
1394
1408
  salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable()
1395
1409
  });
1396
- var acs_users_warnings = zod.z.union([
1397
- acs_users_being_deleted,
1398
- acs_users_failed_to_update_on_acs_system,
1399
- acs_users_salto_ks_user_not_subscribed
1400
- ]).describe("Warning associated with the `acs_user`.");
1410
+ var acs_users_warnings = zod.z.union([acs_users_being_deleted, acs_users_salto_ks_user_not_subscribed]).describe("Warning associated with the `acs_user`.");
1401
1411
  var user_fields = zod.z.object({
1402
1412
  full_name: zod.z.string().optional(),
1403
1413
  email: zod.z.string().email().optional().describe(`
@@ -3095,16 +3105,16 @@ var openapi_default = {
3095
3105
  format: "date-time",
3096
3106
  type: "string"
3097
3107
  },
3098
- message: {
3099
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3108
+ error_code: {
3109
+ enum: ["failed_to_create_on_acs_system"],
3100
3110
  type: "string"
3101
3111
  },
3102
- warning_code: {
3103
- enum: ["failed_to_create_on_acs_system"],
3112
+ message: {
3113
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3104
3114
  type: "string"
3105
3115
  }
3106
3116
  },
3107
- required: ["created_at", "message", "warning_code"],
3117
+ required: ["created_at", "message", "error_code"],
3108
3118
  type: "object"
3109
3119
  },
3110
3120
  {
@@ -3115,16 +3125,16 @@ var openapi_default = {
3115
3125
  format: "date-time",
3116
3126
  type: "string"
3117
3127
  },
3118
- message: {
3119
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3128
+ error_code: {
3129
+ enum: ["failed_to_update_on_acs_system"],
3120
3130
  type: "string"
3121
3131
  },
3122
- warning_code: {
3123
- enum: ["failed_to_update_on_acs_system"],
3132
+ message: {
3133
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3124
3134
  type: "string"
3125
3135
  }
3126
3136
  },
3127
- required: ["created_at", "message", "warning_code"],
3137
+ required: ["created_at", "message", "error_code"],
3128
3138
  type: "object"
3129
3139
  },
3130
3140
  {
@@ -3135,16 +3145,16 @@ var openapi_default = {
3135
3145
  format: "date-time",
3136
3146
  type: "string"
3137
3147
  },
3138
- message: {
3139
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3148
+ error_code: {
3149
+ enum: ["failed_to_delete_on_acs_system"],
3140
3150
  type: "string"
3141
3151
  },
3142
- warning_code: {
3143
- enum: ["failed_to_delete_on_acs_system"],
3152
+ message: {
3153
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3144
3154
  type: "string"
3145
3155
  }
3146
3156
  },
3147
- required: ["created_at", "message", "warning_code"],
3157
+ required: ["created_at", "message", "error_code"],
3148
3158
  type: "object"
3149
3159
  }
3150
3160
  ]
@@ -3190,26 +3200,6 @@ var openapi_default = {
3190
3200
  required: ["created_at", "message", "warning_code"],
3191
3201
  type: "object"
3192
3202
  },
3193
- {
3194
- description: "Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.",
3195
- properties: {
3196
- created_at: {
3197
- description: "Date and time at which Seam created the error.",
3198
- format: "date-time",
3199
- type: "string"
3200
- },
3201
- message: {
3202
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3203
- type: "string"
3204
- },
3205
- warning_code: {
3206
- enum: ["failed_to_update_on_acs_system"],
3207
- type: "string"
3208
- }
3209
- },
3210
- required: ["created_at", "message", "warning_code"],
3211
- type: "object"
3212
- },
3213
3203
  {
3214
3204
  description: "Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn\u2019t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.",
3215
3205
  properties: {
@@ -5340,10 +5330,50 @@ var openapi_default = {
5340
5330
  ttlock_metadata: {
5341
5331
  properties: {
5342
5332
  feature_value: { type: "string" },
5333
+ features: {
5334
+ properties: {
5335
+ incomplete_keyboard_passcode: { type: "boolean" },
5336
+ lock_command: { type: "boolean" },
5337
+ passcode: { type: "boolean" },
5338
+ passcode_management: { type: "boolean" },
5339
+ unlock_via_gateway: { type: "boolean" }
5340
+ },
5341
+ required: [
5342
+ "passcode",
5343
+ "passcode_management",
5344
+ "unlock_via_gateway",
5345
+ "lock_command",
5346
+ "incomplete_keyboard_passcode"
5347
+ ],
5348
+ type: "object"
5349
+ },
5350
+ has_gateway: { type: "boolean" },
5343
5351
  lock_alias: { type: "string" },
5344
- lock_id: { format: "float", type: "number" }
5352
+ lock_id: { format: "float", type: "number" },
5353
+ wireless_keypads: {
5354
+ items: {
5355
+ properties: {
5356
+ wireless_keypad_id: {
5357
+ format: "float",
5358
+ type: "number"
5359
+ },
5360
+ wireless_keypad_name: { type: "string" }
5361
+ },
5362
+ required: [
5363
+ "wireless_keypad_id",
5364
+ "wireless_keypad_name"
5365
+ ],
5366
+ type: "object"
5367
+ },
5368
+ type: "array"
5369
+ }
5345
5370
  },
5346
- required: ["lock_id", "lock_alias", "feature_value"],
5371
+ required: [
5372
+ "lock_id",
5373
+ "lock_alias",
5374
+ "feature_value",
5375
+ "features"
5376
+ ],
5347
5377
  type: "object"
5348
5378
  },
5349
5379
  two_n_metadata: {
@@ -10256,19 +10286,19 @@ var openapi_default = {
10256
10286
  format: "date-time",
10257
10287
  type: "string"
10258
10288
  },
10259
- message: {
10260
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10289
+ error_code: {
10290
+ enum: ["failed_to_create_on_acs_system"],
10261
10291
  type: "string"
10262
10292
  },
10263
- warning_code: {
10264
- enum: ["failed_to_create_on_acs_system"],
10293
+ message: {
10294
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10265
10295
  type: "string"
10266
10296
  }
10267
10297
  },
10268
10298
  required: [
10269
10299
  "created_at",
10270
10300
  "message",
10271
- "warning_code"
10301
+ "error_code"
10272
10302
  ],
10273
10303
  type: "object"
10274
10304
  },
@@ -10280,19 +10310,19 @@ var openapi_default = {
10280
10310
  format: "date-time",
10281
10311
  type: "string"
10282
10312
  },
10283
- message: {
10284
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10313
+ error_code: {
10314
+ enum: ["failed_to_update_on_acs_system"],
10285
10315
  type: "string"
10286
10316
  },
10287
- warning_code: {
10288
- enum: ["failed_to_update_on_acs_system"],
10317
+ message: {
10318
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10289
10319
  type: "string"
10290
10320
  }
10291
10321
  },
10292
10322
  required: [
10293
10323
  "created_at",
10294
10324
  "message",
10295
- "warning_code"
10325
+ "error_code"
10296
10326
  ],
10297
10327
  type: "object"
10298
10328
  },
@@ -10304,19 +10334,19 @@ var openapi_default = {
10304
10334
  format: "date-time",
10305
10335
  type: "string"
10306
10336
  },
10307
- message: {
10308
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10337
+ error_code: {
10338
+ enum: ["failed_to_delete_on_acs_system"],
10309
10339
  type: "string"
10310
10340
  },
10311
- warning_code: {
10312
- enum: ["failed_to_delete_on_acs_system"],
10341
+ message: {
10342
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10313
10343
  type: "string"
10314
10344
  }
10315
10345
  },
10316
10346
  required: [
10317
10347
  "created_at",
10318
10348
  "message",
10319
- "warning_code"
10349
+ "error_code"
10320
10350
  ],
10321
10351
  type: "object"
10322
10352
  }
@@ -10384,30 +10414,6 @@ var openapi_default = {
10384
10414
  ],
10385
10415
  type: "object"
10386
10416
  },
10387
- {
10388
- description: "Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.",
10389
- properties: {
10390
- created_at: {
10391
- description: "Date and time at which Seam created the error.",
10392
- format: "date-time",
10393
- type: "string"
10394
- },
10395
- message: {
10396
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10397
- type: "string"
10398
- },
10399
- warning_code: {
10400
- enum: ["failed_to_update_on_acs_system"],
10401
- type: "string"
10402
- }
10403
- },
10404
- required: [
10405
- "created_at",
10406
- "message",
10407
- "warning_code"
10408
- ],
10409
- type: "object"
10410
- },
10411
10417
  {
10412
10418
  description: "Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn\u2019t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.",
10413
10419
  properties: {
@@ -10575,19 +10581,19 @@ var openapi_default = {
10575
10581
  format: "date-time",
10576
10582
  type: "string"
10577
10583
  },
10578
- message: {
10579
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10584
+ error_code: {
10585
+ enum: ["failed_to_create_on_acs_system"],
10580
10586
  type: "string"
10581
10587
  },
10582
- warning_code: {
10583
- enum: ["failed_to_create_on_acs_system"],
10588
+ message: {
10589
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10584
10590
  type: "string"
10585
10591
  }
10586
10592
  },
10587
10593
  required: [
10588
10594
  "created_at",
10589
10595
  "message",
10590
- "warning_code"
10596
+ "error_code"
10591
10597
  ],
10592
10598
  type: "object"
10593
10599
  },
@@ -10599,19 +10605,19 @@ var openapi_default = {
10599
10605
  format: "date-time",
10600
10606
  type: "string"
10601
10607
  },
10602
- message: {
10603
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10608
+ error_code: {
10609
+ enum: ["failed_to_update_on_acs_system"],
10604
10610
  type: "string"
10605
10611
  },
10606
- warning_code: {
10607
- enum: ["failed_to_update_on_acs_system"],
10612
+ message: {
10613
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10608
10614
  type: "string"
10609
10615
  }
10610
10616
  },
10611
10617
  required: [
10612
10618
  "created_at",
10613
10619
  "message",
10614
- "warning_code"
10620
+ "error_code"
10615
10621
  ],
10616
10622
  type: "object"
10617
10623
  },
@@ -10623,19 +10629,19 @@ var openapi_default = {
10623
10629
  format: "date-time",
10624
10630
  type: "string"
10625
10631
  },
10626
- message: {
10627
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10632
+ error_code: {
10633
+ enum: ["failed_to_delete_on_acs_system"],
10628
10634
  type: "string"
10629
10635
  },
10630
- warning_code: {
10631
- enum: ["failed_to_delete_on_acs_system"],
10636
+ message: {
10637
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10632
10638
  type: "string"
10633
10639
  }
10634
10640
  },
10635
10641
  required: [
10636
10642
  "created_at",
10637
10643
  "message",
10638
- "warning_code"
10644
+ "error_code"
10639
10645
  ],
10640
10646
  type: "object"
10641
10647
  }
@@ -10703,30 +10709,6 @@ var openapi_default = {
10703
10709
  ],
10704
10710
  type: "object"
10705
10711
  },
10706
- {
10707
- description: "Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.",
10708
- properties: {
10709
- created_at: {
10710
- description: "Date and time at which Seam created the error.",
10711
- format: "date-time",
10712
- type: "string"
10713
- },
10714
- message: {
10715
- description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10716
- type: "string"
10717
- },
10718
- warning_code: {
10719
- enum: ["failed_to_update_on_acs_system"],
10720
- type: "string"
10721
- }
10722
- },
10723
- required: [
10724
- "created_at",
10725
- "message",
10726
- "warning_code"
10727
- ],
10728
- type: "object"
10729
- },
10730
10712
  {
10731
10713
  description: "Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn\u2019t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.",
10732
10714
  properties: {