@seamapi/types 1.238.0 → 1.240.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.
@@ -2245,6 +2245,10 @@ export interface Routes {
2245
2245
  created_at: string;
2246
2246
  message: string;
2247
2247
  warning_code: 'being_deleted';
2248
+ } | {
2249
+ created_at: string;
2250
+ message: string;
2251
+ warning_code: 'failed_to_update_acs_user_on_acs_system';
2248
2252
  } | {
2249
2253
  created_at: string;
2250
2254
  message: string;
@@ -3057,6 +3061,13 @@ export interface Routes {
3057
3061
  message: string;
3058
3062
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
3059
3063
  error_code: 'salto_site_user_limit_reached';
3064
+ } | {
3065
+ /** Date and time at which Seam created the error. */
3066
+ created_at: string;
3067
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3068
+ message: string;
3069
+ /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
3070
+ error_code: 'salto_seam_integration_blocked';
3060
3071
  }>;
3061
3072
  /** Warnings associated with the `acs_system`. */
3062
3073
  warnings: Array<{
@@ -3141,6 +3152,13 @@ export interface Routes {
3141
3152
  message: string;
3142
3153
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
3143
3154
  error_code: 'salto_site_user_limit_reached';
3155
+ } | {
3156
+ /** Date and time at which Seam created the error. */
3157
+ created_at: string;
3158
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3159
+ message: string;
3160
+ /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
3161
+ error_code: 'salto_seam_integration_blocked';
3144
3162
  }>;
3145
3163
  /** Warnings associated with the `acs_system`. */
3146
3164
  warnings: Array<{
@@ -3225,6 +3243,13 @@ export interface Routes {
3225
3243
  message: string;
3226
3244
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
3227
3245
  error_code: 'salto_site_user_limit_reached';
3246
+ } | {
3247
+ /** Date and time at which Seam created the error. */
3248
+ created_at: string;
3249
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3250
+ message: string;
3251
+ /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
3252
+ error_code: 'salto_seam_integration_blocked';
3228
3253
  }>;
3229
3254
  /** Warnings associated with the `acs_system`. */
3230
3255
  warnings: Array<{
@@ -3304,6 +3329,10 @@ export interface Routes {
3304
3329
  created_at: string;
3305
3330
  message: string;
3306
3331
  warning_code: 'being_deleted';
3332
+ } | {
3333
+ created_at: string;
3334
+ message: string;
3335
+ warning_code: 'failed_to_update_acs_user_on_acs_system';
3307
3336
  } | {
3308
3337
  created_at: string;
3309
3338
  message: string;
@@ -3369,6 +3398,10 @@ export interface Routes {
3369
3398
  created_at: string;
3370
3399
  message: string;
3371
3400
  warning_code: 'being_deleted';
3401
+ } | {
3402
+ created_at: string;
3403
+ message: string;
3404
+ warning_code: 'failed_to_update_acs_user_on_acs_system';
3372
3405
  } | {
3373
3406
  created_at: string;
3374
3407
  message: string;
@@ -3428,6 +3461,10 @@ export interface Routes {
3428
3461
  created_at: string;
3429
3462
  message: string;
3430
3463
  warning_code: 'being_deleted';
3464
+ } | {
3465
+ created_at: string;
3466
+ message: string;
3467
+ warning_code: 'failed_to_update_acs_user_on_acs_system';
3431
3468
  } | {
3432
3469
  created_at: string;
3433
3470
  message: string;
@@ -3552,6 +3589,10 @@ export interface Routes {
3552
3589
  created_at: string;
3553
3590
  message: string;
3554
3591
  warning_code: 'being_deleted';
3592
+ } | {
3593
+ created_at: string;
3594
+ message: string;
3595
+ warning_code: 'failed_to_update_acs_user_on_acs_system';
3555
3596
  } | {
3556
3597
  created_at: string;
3557
3598
  message: string;
@@ -3610,6 +3651,10 @@ export interface Routes {
3610
3651
  created_at: string;
3611
3652
  message: string;
3612
3653
  warning_code: 'being_deleted';
3654
+ } | {
3655
+ created_at: string;
3656
+ message: string;
3657
+ warning_code: 'failed_to_update_acs_user_on_acs_system';
3613
3658
  } | {
3614
3659
  created_at: string;
3615
3660
  message: string;
@@ -14546,6 +14591,13 @@ export interface Routes {
14546
14591
  message: string;
14547
14592
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
14548
14593
  error_code: 'salto_site_user_limit_reached';
14594
+ } | {
14595
+ /** Date and time at which Seam created the error. */
14596
+ created_at: string;
14597
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
14598
+ message: string;
14599
+ /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
14600
+ error_code: 'salto_seam_integration_blocked';
14549
14601
  }>;
14550
14602
  /** Warnings associated with the `acs_system`. */
14551
14603
  warnings: Array<{
@@ -14601,6 +14653,10 @@ export interface Routes {
14601
14653
  created_at: string;
14602
14654
  message: string;
14603
14655
  warning_code: 'being_deleted';
14656
+ } | {
14657
+ created_at: string;
14658
+ message: string;
14659
+ warning_code: 'failed_to_update_acs_user_on_acs_system';
14604
14660
  } | {
14605
14661
  created_at: string;
14606
14662
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.238.0",
3
+ "version": "1.240.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -81,11 +81,19 @@ const salto_site_user_limit_reached = common_acs_system_error.extend({
81
81
  ),
82
82
  })
83
83
 
84
+ const salto_seam_integration_blocked = common_acs_system_error.extend({
85
+ error_code: z
86
+ .literal('salto_seam_integration_blocked')
87
+ .describe(
88
+ "Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block",
89
+ ),
90
+ })
84
91
  const acs_system_error = z
85
92
  .union([
86
93
  seam_bridge_disconnected,
87
94
  visionline_instance_unreachable,
88
95
  salto_site_user_limit_reached,
96
+ salto_seam_integration_blocked,
89
97
  ])
90
98
  .describe('Error associated with the `acs_system`.')
91
99
 
@@ -97,6 +105,9 @@ const acs_system_error_map = z.object({
97
105
  salto_site_user_limit_reached: salto_site_user_limit_reached
98
106
  .optional()
99
107
  .nullable(),
108
+ salto_seam_integration_blocked: salto_seam_integration_blocked
109
+ .optional()
110
+ .nullable(),
100
111
  })
101
112
 
102
113
  export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>
@@ -26,6 +26,11 @@ const acs_users_salto_ks_user_not_subscribed = common_acs_users_warning.extend({
26
26
  warning_code: z.literal('salto_ks_user_not_subscribed'),
27
27
  })
28
28
 
29
+ const acs_users_failed_to_update_acs_user_on_acs_system =
30
+ common_acs_users_warning.extend({
31
+ warning_code: z.literal('failed_to_update_acs_user_on_acs_system'),
32
+ })
33
+
29
34
  // TODO: Some acs_users already have this warning, so we need to keep it here until we migrate
30
35
  const acs_users_salto_site_user_suspended = common_acs_users_warning.extend({
31
36
  warning_code: z.literal('salto_site_user_suspended'),
@@ -33,6 +38,8 @@ const acs_users_salto_site_user_suspended = common_acs_users_warning.extend({
33
38
 
34
39
  export const acs_users_warning_map = z.object({
35
40
  being_deleted: acs_users_being_deleted.optional().nullable(),
41
+ failed_to_update_acs_user_on_acs_system:
42
+ acs_users_failed_to_update_acs_user_on_acs_system.optional().nullable(),
36
43
  salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed
37
44
  .optional()
38
45
  .nullable(),
@@ -43,6 +50,7 @@ export const acs_users_warning_map = z.object({
43
50
 
44
51
  export const acs_users_warning = z.union([
45
52
  acs_users_being_deleted,
53
+ acs_users_failed_to_update_acs_user_on_acs_system,
46
54
  acs_users_salto_ks_user_not_subscribed,
47
55
  acs_users_salto_site_user_suspended,
48
56
  ])
@@ -104,6 +104,7 @@ export const PROVIDER_CATEGORY_MAP = {
104
104
  'visionline',
105
105
  'assa_abloy_credential_service',
106
106
  'latch',
107
+ 'salto',
107
108
  ],
108
109
 
109
110
  internal_beta: ALL_DEVICE_PROVIDERS,
@@ -564,6 +564,29 @@ export default {
564
564
  required: ['created_at', 'message', 'error_code'],
565
565
  type: 'object',
566
566
  },
567
+ {
568
+ properties: {
569
+ created_at: {
570
+ description:
571
+ 'Date and time at which Seam created the error.',
572
+ format: 'date-time',
573
+ type: 'string',
574
+ },
575
+ error_code: {
576
+ description:
577
+ "Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block",
578
+ enum: ['salto_seam_integration_blocked'],
579
+ type: 'string',
580
+ },
581
+ message: {
582
+ description:
583
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
584
+ type: 'string',
585
+ },
586
+ },
587
+ required: ['created_at', 'message', 'error_code'],
588
+ type: 'object',
589
+ },
567
590
  ],
568
591
  },
569
592
  type: 'array',
@@ -733,6 +756,18 @@ export default {
733
756
  required: ['created_at', 'message', 'warning_code'],
734
757
  type: 'object',
735
758
  },
759
+ {
760
+ properties: {
761
+ created_at: { format: 'date-time', type: 'string' },
762
+ message: { type: 'string' },
763
+ warning_code: {
764
+ enum: ['failed_to_update_acs_user_on_acs_system'],
765
+ type: 'string',
766
+ },
767
+ },
768
+ required: ['created_at', 'message', 'warning_code'],
769
+ type: 'object',
770
+ },
736
771
  {
737
772
  properties: {
738
773
  created_at: { format: 'date-time', type: 'string' },
@@ -7719,6 +7754,27 @@ export default {
7719
7754
  ],
7720
7755
  type: 'object',
7721
7756
  },
7757
+ {
7758
+ properties: {
7759
+ created_at: {
7760
+ format: 'date-time',
7761
+ type: 'string',
7762
+ },
7763
+ message: { type: 'string' },
7764
+ warning_code: {
7765
+ enum: [
7766
+ 'failed_to_update_acs_user_on_acs_system',
7767
+ ],
7768
+ type: 'string',
7769
+ },
7770
+ },
7771
+ required: [
7772
+ 'created_at',
7773
+ 'message',
7774
+ 'warning_code',
7775
+ ],
7776
+ type: 'object',
7777
+ },
7722
7778
  {
7723
7779
  properties: {
7724
7780
  created_at: {
@@ -7908,6 +7964,27 @@ export default {
7908
7964
  ],
7909
7965
  type: 'object',
7910
7966
  },
7967
+ {
7968
+ properties: {
7969
+ created_at: {
7970
+ format: 'date-time',
7971
+ type: 'string',
7972
+ },
7973
+ message: { type: 'string' },
7974
+ warning_code: {
7975
+ enum: [
7976
+ 'failed_to_update_acs_user_on_acs_system',
7977
+ ],
7978
+ type: 'string',
7979
+ },
7980
+ },
7981
+ required: [
7982
+ 'created_at',
7983
+ 'message',
7984
+ 'warning_code',
7985
+ ],
7986
+ type: 'object',
7987
+ },
7911
7988
  {
7912
7989
  properties: {
7913
7990
  created_at: {
@@ -2496,6 +2496,11 @@ export interface Routes {
2496
2496
  message: string
2497
2497
  warning_code: 'being_deleted'
2498
2498
  }
2499
+ | {
2500
+ created_at: string
2501
+ message: string
2502
+ warning_code: 'failed_to_update_acs_user_on_acs_system'
2503
+ }
2499
2504
  | {
2500
2505
  created_at: string
2501
2506
  message: string
@@ -3490,6 +3495,14 @@ export interface Routes {
3490
3495
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
3491
3496
  error_code: 'salto_site_user_limit_reached'
3492
3497
  }
3498
+ | {
3499
+ /** Date and time at which Seam created the error. */
3500
+ created_at: string
3501
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3502
+ message: string
3503
+ /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
3504
+ error_code: 'salto_seam_integration_blocked'
3505
+ }
3493
3506
  >
3494
3507
  /** Warnings associated with the `acs_system`. */
3495
3508
  warnings: Array<{
@@ -3602,6 +3615,14 @@ export interface Routes {
3602
3615
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
3603
3616
  error_code: 'salto_site_user_limit_reached'
3604
3617
  }
3618
+ | {
3619
+ /** Date and time at which Seam created the error. */
3620
+ created_at: string
3621
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3622
+ message: string
3623
+ /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
3624
+ error_code: 'salto_seam_integration_blocked'
3625
+ }
3605
3626
  >
3606
3627
  /** Warnings associated with the `acs_system`. */
3607
3628
  warnings: Array<{
@@ -3714,6 +3735,14 @@ export interface Routes {
3714
3735
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
3715
3736
  error_code: 'salto_site_user_limit_reached'
3716
3737
  }
3738
+ | {
3739
+ /** Date and time at which Seam created the error. */
3740
+ created_at: string
3741
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3742
+ message: string
3743
+ /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
3744
+ error_code: 'salto_seam_integration_blocked'
3745
+ }
3717
3746
  >
3718
3747
  /** Warnings associated with the `acs_system`. */
3719
3748
  warnings: Array<{
@@ -3807,6 +3836,11 @@ export interface Routes {
3807
3836
  message: string
3808
3837
  warning_code: 'being_deleted'
3809
3838
  }
3839
+ | {
3840
+ created_at: string
3841
+ message: string
3842
+ warning_code: 'failed_to_update_acs_user_on_acs_system'
3843
+ }
3810
3844
  | {
3811
3845
  created_at: string
3812
3846
  message: string
@@ -3886,6 +3920,11 @@ export interface Routes {
3886
3920
  message: string
3887
3921
  warning_code: 'being_deleted'
3888
3922
  }
3923
+ | {
3924
+ created_at: string
3925
+ message: string
3926
+ warning_code: 'failed_to_update_acs_user_on_acs_system'
3927
+ }
3889
3928
  | {
3890
3929
  created_at: string
3891
3930
  message: string
@@ -3959,6 +3998,11 @@ export interface Routes {
3959
3998
  message: string
3960
3999
  warning_code: 'being_deleted'
3961
4000
  }
4001
+ | {
4002
+ created_at: string
4003
+ message: string
4004
+ warning_code: 'failed_to_update_acs_user_on_acs_system'
4005
+ }
3962
4006
  | {
3963
4007
  created_at: string
3964
4008
  message: string
@@ -4108,6 +4152,11 @@ export interface Routes {
4108
4152
  message: string
4109
4153
  warning_code: 'being_deleted'
4110
4154
  }
4155
+ | {
4156
+ created_at: string
4157
+ message: string
4158
+ warning_code: 'failed_to_update_acs_user_on_acs_system'
4159
+ }
4111
4160
  | {
4112
4161
  created_at: string
4113
4162
  message: string
@@ -4180,6 +4229,11 @@ export interface Routes {
4180
4229
  message: string
4181
4230
  warning_code: 'being_deleted'
4182
4231
  }
4232
+ | {
4233
+ created_at: string
4234
+ message: string
4235
+ warning_code: 'failed_to_update_acs_user_on_acs_system'
4236
+ }
4183
4237
  | {
4184
4238
  created_at: string
4185
4239
  message: string
@@ -18567,6 +18621,14 @@ export interface Routes {
18567
18621
  /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
18568
18622
  error_code: 'salto_site_user_limit_reached'
18569
18623
  }
18624
+ | {
18625
+ /** Date and time at which Seam created the error. */
18626
+ created_at: string
18627
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
18628
+ message: string
18629
+ /** Indicates that the Seam Integration user site is blocked. This means that Seam does not have permission to access Salto resources. Go to Salto Dashboard to remove 'Seam Integration' block */
18630
+ error_code: 'salto_seam_integration_blocked'
18631
+ }
18570
18632
  >
18571
18633
  /** Warnings associated with the `acs_system`. */
18572
18634
  warnings: Array<{
@@ -18634,6 +18696,11 @@ export interface Routes {
18634
18696
  message: string
18635
18697
  warning_code: 'being_deleted'
18636
18698
  }
18699
+ | {
18700
+ created_at: string
18701
+ message: string
18702
+ warning_code: 'failed_to_update_acs_user_on_acs_system'
18703
+ }
18637
18704
  | {
18638
18705
  created_at: string
18639
18706
  message: string