@seamapi/types 1.241.0 → 1.242.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 CHANGED
@@ -1326,62 +1326,67 @@ var common_acs_user_error = zod.z.object({
1326
1326
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
1327
1327
  )
1328
1328
  });
1329
- var acs_users_user_deleted_externally = common_acs_user_error.extend({
1330
- error_code: zod.z.literal("user_deleted_externally")
1329
+ var acs_users_deleted_externally = common_acs_user_error.extend({
1330
+ error_code: zod.z.literal("deleted_externally")
1331
1331
  }).describe(
1332
- `Indicates that the user was deleted from the ACS system outside of Seam.`
1332
+ `Indicates that the ACS user was deleted from the ACS system outside of Seam.`
1333
1333
  );
1334
1334
  var acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error.extend({
1335
1335
  error_code: zod.z.literal("salto_ks_subscription_limit_exceeded")
1336
1336
  }).describe(
1337
1337
  `Indicates that the user could not be subscribed on Salto KS because the subscription limit has been exceeded.`
1338
1338
  );
1339
- var acs_users_salto_site_user_limit_reached = common_acs_user_error.extend({
1340
- error_code: zod.z.literal("salto_site_user_limit_reached")
1341
- });
1339
+ var acs_users_failed_to_create_on_acs_system = common_acs_user_error.extend({
1340
+ warning_code: zod.z.literal("failed_to_create_on_acs_system")
1341
+ }).describe(
1342
+ `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.`
1343
+ );
1344
+ var acs_users_failed_to_update_on_acs_system = common_acs_user_error.extend({
1345
+ warning_code: zod.z.literal("failed_to_update_on_acs_system")
1346
+ }).describe(
1347
+ `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.`
1348
+ );
1349
+ var acs_users_failed_to_delete_on_acs_system = common_acs_user_error.extend({
1350
+ warning_code: zod.z.literal("failed_to_delete_on_acs_system")
1351
+ }).describe(
1352
+ `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.`
1353
+ );
1342
1354
  var acs_user_errors = zod.z.union([
1343
- acs_users_user_deleted_externally,
1355
+ acs_users_deleted_externally,
1344
1356
  acs_users_salto_ks_subscription_limit_exceeded,
1345
- acs_users_salto_site_user_limit_reached
1357
+ acs_users_failed_to_create_on_acs_system,
1358
+ acs_users_failed_to_update_on_acs_system,
1359
+ acs_users_failed_to_delete_on_acs_system
1346
1360
  ]).describe("Error associated with the `acs_user`.");
1347
1361
  zod.z.object({
1348
- user_deleted_externally: acs_users_user_deleted_externally.optional().nullable(),
1362
+ deleted_externally: acs_users_deleted_externally.optional().nullable(),
1349
1363
  salto_ks_subscription_limit_exceeded: acs_users_salto_ks_subscription_limit_exceeded.optional().nullable(),
1350
- salto_site_user_limit_reached: acs_users_salto_site_user_limit_reached.optional().nullable()
1364
+ failed_to_create_on_acs_system: acs_users_failed_to_create_on_acs_system.optional().nullable(),
1365
+ failed_to_update_on_acs_system: acs_users_failed_to_update_on_acs_system.optional().nullable(),
1366
+ failed_to_delete_on_acs_system: acs_users_failed_to_delete_on_acs_system.optional().nullable()
1351
1367
  });
1352
- var common_acs_users_warning = zod.z.object({
1368
+ var common_acs_user_warning = zod.z.object({
1353
1369
  created_at: zod.z.string().datetime(),
1354
1370
  message: zod.z.string()
1355
1371
  });
1356
- var acs_users_being_deleted = common_acs_users_warning.extend({
1372
+ var acs_users_being_deleted = common_acs_user_warning.extend({
1357
1373
  warning_code: zod.z.literal("being_deleted")
1358
1374
  }).describe(
1359
1375
  `Indicates that the user is being deleted from the ACS system. This is a temporary state, and the user will be deleted shortly.`
1360
1376
  );
1361
- var acs_users_salto_ks_user_not_subscribed = common_acs_users_warning.extend({
1377
+ var acs_users_salto_ks_user_not_subscribed = common_acs_user_warning.extend({
1362
1378
  warning_code: zod.z.literal("salto_ks_user_not_subscribed")
1363
1379
  }).describe(
1364
1380
  `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.`
1365
1381
  );
1366
- var acs_users_failed_to_update_on_acs_system = common_acs_users_warning.extend({
1367
- warning_code: zod.z.literal("failed_to_update_on_acs_system")
1368
- }).describe(
1369
- `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.`
1370
- );
1371
- var acs_users_salto_site_user_suspended = common_acs_users_warning.extend({
1372
- warning_code: zod.z.literal("salto_site_user_suspended")
1373
- });
1374
1382
  zod.z.object({
1375
1383
  being_deleted: acs_users_being_deleted.optional().nullable(),
1376
- failed_to_update_on_acs_system: acs_users_failed_to_update_on_acs_system.optional().nullable(),
1377
- salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable(),
1378
- salto_site_user_suspended: acs_users_salto_site_user_suspended.optional().nullable()
1384
+ salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable()
1379
1385
  });
1380
1386
  var acs_users_warnings = zod.z.union([
1381
1387
  acs_users_being_deleted,
1382
1388
  acs_users_failed_to_update_on_acs_system,
1383
- acs_users_salto_ks_user_not_subscribed,
1384
- acs_users_salto_site_user_suspended
1389
+ acs_users_salto_ks_user_not_subscribed
1385
1390
  ]).describe("Warning associated with the `acs_user`.");
1386
1391
  var user_fields = zod.z.object({
1387
1392
  full_name: zod.z.string().optional(),
@@ -3013,7 +3018,7 @@ var openapi_default = {
3013
3018
  description: "Error associated with the `acs_user`.",
3014
3019
  oneOf: [
3015
3020
  {
3016
- description: "Indicates that the user was deleted from the ACS system outside of Seam.",
3021
+ description: "Indicates that the ACS user was deleted from the ACS system outside of Seam.",
3017
3022
  properties: {
3018
3023
  created_at: {
3019
3024
  description: "Date and time at which Seam created the error.",
@@ -3021,7 +3026,7 @@ var openapi_default = {
3021
3026
  type: "string"
3022
3027
  },
3023
3028
  error_code: {
3024
- enum: ["user_deleted_externally"],
3029
+ enum: ["deleted_externally"],
3025
3030
  type: "string"
3026
3031
  },
3027
3032
  message: {
@@ -3053,22 +3058,63 @@ var openapi_default = {
3053
3058
  type: "object"
3054
3059
  },
3055
3060
  {
3061
+ description: "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.",
3056
3062
  properties: {
3057
3063
  created_at: {
3058
3064
  description: "Date and time at which Seam created the error.",
3059
3065
  format: "date-time",
3060
3066
  type: "string"
3061
3067
  },
3062
- error_code: {
3063
- enum: ["salto_site_user_limit_reached"],
3068
+ message: {
3069
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3070
+ type: "string"
3071
+ },
3072
+ warning_code: {
3073
+ enum: ["failed_to_create_on_acs_system"],
3074
+ type: "string"
3075
+ }
3076
+ },
3077
+ required: ["created_at", "message", "warning_code"],
3078
+ type: "object"
3079
+ },
3080
+ {
3081
+ 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.",
3082
+ properties: {
3083
+ created_at: {
3084
+ description: "Date and time at which Seam created the error.",
3085
+ format: "date-time",
3064
3086
  type: "string"
3065
3087
  },
3066
3088
  message: {
3067
3089
  description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3068
3090
  type: "string"
3091
+ },
3092
+ warning_code: {
3093
+ enum: ["failed_to_update_on_acs_system"],
3094
+ type: "string"
3069
3095
  }
3070
3096
  },
3071
- required: ["created_at", "message", "error_code"],
3097
+ required: ["created_at", "message", "warning_code"],
3098
+ type: "object"
3099
+ },
3100
+ {
3101
+ description: "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.",
3102
+ properties: {
3103
+ created_at: {
3104
+ description: "Date and time at which Seam created the error.",
3105
+ format: "date-time",
3106
+ type: "string"
3107
+ },
3108
+ message: {
3109
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3110
+ type: "string"
3111
+ },
3112
+ warning_code: {
3113
+ enum: ["failed_to_delete_on_acs_system"],
3114
+ type: "string"
3115
+ }
3116
+ },
3117
+ required: ["created_at", "message", "warning_code"],
3072
3118
  type: "object"
3073
3119
  }
3074
3120
  ]
@@ -3117,8 +3163,15 @@ var openapi_default = {
3117
3163
  {
3118
3164
  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.",
3119
3165
  properties: {
3120
- created_at: { format: "date-time", type: "string" },
3121
- message: { type: "string" },
3166
+ created_at: {
3167
+ description: "Date and time at which Seam created the error.",
3168
+ format: "date-time",
3169
+ type: "string"
3170
+ },
3171
+ message: {
3172
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
3173
+ type: "string"
3174
+ },
3122
3175
  warning_code: {
3123
3176
  enum: ["failed_to_update_on_acs_system"],
3124
3177
  type: "string"
@@ -3139,18 +3192,6 @@ var openapi_default = {
3139
3192
  },
3140
3193
  required: ["created_at", "message", "warning_code"],
3141
3194
  type: "object"
3142
- },
3143
- {
3144
- properties: {
3145
- created_at: { format: "date-time", type: "string" },
3146
- message: { type: "string" },
3147
- warning_code: {
3148
- enum: ["salto_site_user_suspended"],
3149
- type: "string"
3150
- }
3151
- },
3152
- required: ["created_at", "message", "warning_code"],
3153
- type: "object"
3154
3195
  }
3155
3196
  ]
3156
3197
  },
@@ -10117,7 +10158,7 @@ var openapi_default = {
10117
10158
  description: "Error associated with the `acs_user`.",
10118
10159
  oneOf: [
10119
10160
  {
10120
- description: "Indicates that the user was deleted from the ACS system outside of Seam.",
10161
+ description: "Indicates that the ACS user was deleted from the ACS system outside of Seam.",
10121
10162
  properties: {
10122
10163
  created_at: {
10123
10164
  description: "Date and time at which Seam created the error.",
@@ -10125,7 +10166,7 @@ var openapi_default = {
10125
10166
  type: "string"
10126
10167
  },
10127
10168
  error_code: {
10128
- enum: ["user_deleted_externally"],
10169
+ enum: ["deleted_externally"],
10129
10170
  type: "string"
10130
10171
  },
10131
10172
  message: {
@@ -10167,25 +10208,74 @@ var openapi_default = {
10167
10208
  type: "object"
10168
10209
  },
10169
10210
  {
10211
+ description: "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.",
10170
10212
  properties: {
10171
10213
  created_at: {
10172
10214
  description: "Date and time at which Seam created the error.",
10173
10215
  format: "date-time",
10174
10216
  type: "string"
10175
10217
  },
10176
- error_code: {
10177
- enum: ["salto_site_user_limit_reached"],
10218
+ message: {
10219
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10220
+ type: "string"
10221
+ },
10222
+ warning_code: {
10223
+ enum: ["failed_to_create_on_acs_system"],
10224
+ type: "string"
10225
+ }
10226
+ },
10227
+ required: [
10228
+ "created_at",
10229
+ "message",
10230
+ "warning_code"
10231
+ ],
10232
+ type: "object"
10233
+ },
10234
+ {
10235
+ 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.",
10236
+ properties: {
10237
+ created_at: {
10238
+ description: "Date and time at which Seam created the error.",
10239
+ format: "date-time",
10178
10240
  type: "string"
10179
10241
  },
10180
10242
  message: {
10181
10243
  description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10182
10244
  type: "string"
10245
+ },
10246
+ warning_code: {
10247
+ enum: ["failed_to_update_on_acs_system"],
10248
+ type: "string"
10183
10249
  }
10184
10250
  },
10185
10251
  required: [
10186
10252
  "created_at",
10187
10253
  "message",
10188
- "error_code"
10254
+ "warning_code"
10255
+ ],
10256
+ type: "object"
10257
+ },
10258
+ {
10259
+ description: "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.",
10260
+ properties: {
10261
+ created_at: {
10262
+ description: "Date and time at which Seam created the error.",
10263
+ format: "date-time",
10264
+ type: "string"
10265
+ },
10266
+ message: {
10267
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10268
+ type: "string"
10269
+ },
10270
+ warning_code: {
10271
+ enum: ["failed_to_delete_on_acs_system"],
10272
+ type: "string"
10273
+ }
10274
+ },
10275
+ required: [
10276
+ "created_at",
10277
+ "message",
10278
+ "warning_code"
10189
10279
  ],
10190
10280
  type: "object"
10191
10281
  }
@@ -10257,10 +10347,14 @@ var openapi_default = {
10257
10347
  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.",
10258
10348
  properties: {
10259
10349
  created_at: {
10350
+ description: "Date and time at which Seam created the error.",
10260
10351
  format: "date-time",
10261
10352
  type: "string"
10262
10353
  },
10263
- message: { type: "string" },
10354
+ message: {
10355
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10356
+ type: "string"
10357
+ },
10264
10358
  warning_code: {
10265
10359
  enum: ["failed_to_update_on_acs_system"],
10266
10360
  type: "string"
@@ -10292,25 +10386,6 @@ var openapi_default = {
10292
10386
  "warning_code"
10293
10387
  ],
10294
10388
  type: "object"
10295
- },
10296
- {
10297
- properties: {
10298
- created_at: {
10299
- format: "date-time",
10300
- type: "string"
10301
- },
10302
- message: { type: "string" },
10303
- warning_code: {
10304
- enum: ["salto_site_user_suspended"],
10305
- type: "string"
10306
- }
10307
- },
10308
- required: [
10309
- "created_at",
10310
- "message",
10311
- "warning_code"
10312
- ],
10313
- type: "object"
10314
10389
  }
10315
10390
  ]
10316
10391
  },
@@ -10402,7 +10477,7 @@ var openapi_default = {
10402
10477
  description: "Error associated with the `acs_user`.",
10403
10478
  oneOf: [
10404
10479
  {
10405
- description: "Indicates that the user was deleted from the ACS system outside of Seam.",
10480
+ description: "Indicates that the ACS user was deleted from the ACS system outside of Seam.",
10406
10481
  properties: {
10407
10482
  created_at: {
10408
10483
  description: "Date and time at which Seam created the error.",
@@ -10410,7 +10485,7 @@ var openapi_default = {
10410
10485
  type: "string"
10411
10486
  },
10412
10487
  error_code: {
10413
- enum: ["user_deleted_externally"],
10488
+ enum: ["deleted_externally"],
10414
10489
  type: "string"
10415
10490
  },
10416
10491
  message: {
@@ -10452,25 +10527,74 @@ var openapi_default = {
10452
10527
  type: "object"
10453
10528
  },
10454
10529
  {
10530
+ description: "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.",
10455
10531
  properties: {
10456
10532
  created_at: {
10457
10533
  description: "Date and time at which Seam created the error.",
10458
10534
  format: "date-time",
10459
10535
  type: "string"
10460
10536
  },
10461
- error_code: {
10462
- enum: ["salto_site_user_limit_reached"],
10537
+ message: {
10538
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10539
+ type: "string"
10540
+ },
10541
+ warning_code: {
10542
+ enum: ["failed_to_create_on_acs_system"],
10543
+ type: "string"
10544
+ }
10545
+ },
10546
+ required: [
10547
+ "created_at",
10548
+ "message",
10549
+ "warning_code"
10550
+ ],
10551
+ type: "object"
10552
+ },
10553
+ {
10554
+ 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.",
10555
+ properties: {
10556
+ created_at: {
10557
+ description: "Date and time at which Seam created the error.",
10558
+ format: "date-time",
10463
10559
  type: "string"
10464
10560
  },
10465
10561
  message: {
10466
10562
  description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10467
10563
  type: "string"
10564
+ },
10565
+ warning_code: {
10566
+ enum: ["failed_to_update_on_acs_system"],
10567
+ type: "string"
10468
10568
  }
10469
10569
  },
10470
10570
  required: [
10471
10571
  "created_at",
10472
10572
  "message",
10473
- "error_code"
10573
+ "warning_code"
10574
+ ],
10575
+ type: "object"
10576
+ },
10577
+ {
10578
+ description: "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.",
10579
+ properties: {
10580
+ created_at: {
10581
+ description: "Date and time at which Seam created the error.",
10582
+ format: "date-time",
10583
+ type: "string"
10584
+ },
10585
+ message: {
10586
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10587
+ type: "string"
10588
+ },
10589
+ warning_code: {
10590
+ enum: ["failed_to_delete_on_acs_system"],
10591
+ type: "string"
10592
+ }
10593
+ },
10594
+ required: [
10595
+ "created_at",
10596
+ "message",
10597
+ "warning_code"
10474
10598
  ],
10475
10599
  type: "object"
10476
10600
  }
@@ -10542,10 +10666,14 @@ var openapi_default = {
10542
10666
  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.",
10543
10667
  properties: {
10544
10668
  created_at: {
10669
+ description: "Date and time at which Seam created the error.",
10545
10670
  format: "date-time",
10546
10671
  type: "string"
10547
10672
  },
10548
- message: { type: "string" },
10673
+ message: {
10674
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
10675
+ type: "string"
10676
+ },
10549
10677
  warning_code: {
10550
10678
  enum: ["failed_to_update_on_acs_system"],
10551
10679
  type: "string"
@@ -10577,25 +10705,6 @@ var openapi_default = {
10577
10705
  "warning_code"
10578
10706
  ],
10579
10707
  type: "object"
10580
- },
10581
- {
10582
- properties: {
10583
- created_at: {
10584
- format: "date-time",
10585
- type: "string"
10586
- },
10587
- message: { type: "string" },
10588
- warning_code: {
10589
- enum: ["salto_site_user_suspended"],
10590
- type: "string"
10591
- }
10592
- },
10593
- required: [
10594
- "created_at",
10595
- "message",
10596
- "warning_code"
10597
- ],
10598
- type: "object"
10599
10708
  }
10600
10709
  ]
10601
10710
  },