@seamapi/types 1.222.0 → 1.223.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.
@@ -2808,9 +2808,23 @@ export interface Routes {
2808
2808
  message: string;
2809
2809
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2810
2810
  error_code: 'visionline_instance_unreachable';
2811
+ } | {
2812
+ /** Date and time at which Seam created the error. */
2813
+ created_at: string;
2814
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2815
+ message: string;
2816
+ /** You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
2817
+ error_code: 'salto_site_user_limit_reached';
2818
+ }>;
2819
+ /** Warnings associated with the `acs_system`. */
2820
+ warnings: Array<{
2821
+ /** Date and time at which Seam created the warning. */
2822
+ created_at: string;
2823
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2824
+ message: string;
2825
+ /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
2826
+ warning_code: 'salto_site_user_limit_almost_reached';
2811
2827
  }>;
2812
- /** */
2813
- warnings: Array<{}>;
2814
2828
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
2815
2829
  can_automate_enrollment?: boolean | undefined;
2816
2830
  /** Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems). */
@@ -2878,9 +2892,23 @@ export interface Routes {
2878
2892
  message: string;
2879
2893
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2880
2894
  error_code: 'visionline_instance_unreachable';
2895
+ } | {
2896
+ /** Date and time at which Seam created the error. */
2897
+ created_at: string;
2898
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2899
+ message: string;
2900
+ /** You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
2901
+ error_code: 'salto_site_user_limit_reached';
2902
+ }>;
2903
+ /** Warnings associated with the `acs_system`. */
2904
+ warnings: Array<{
2905
+ /** Date and time at which Seam created the warning. */
2906
+ created_at: string;
2907
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2908
+ message: string;
2909
+ /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
2910
+ warning_code: 'salto_site_user_limit_almost_reached';
2881
2911
  }>;
2882
- /** */
2883
- warnings: Array<{}>;
2884
2912
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
2885
2913
  can_automate_enrollment?: boolean | undefined;
2886
2914
  /** Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems). */
@@ -2948,9 +2976,23 @@ export interface Routes {
2948
2976
  message: string;
2949
2977
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2950
2978
  error_code: 'visionline_instance_unreachable';
2979
+ } | {
2980
+ /** Date and time at which Seam created the error. */
2981
+ created_at: string;
2982
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2983
+ message: string;
2984
+ /** You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
2985
+ error_code: 'salto_site_user_limit_reached';
2986
+ }>;
2987
+ /** Warnings associated with the `acs_system`. */
2988
+ warnings: Array<{
2989
+ /** Date and time at which Seam created the warning. */
2990
+ created_at: string;
2991
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2992
+ message: string;
2993
+ /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
2994
+ warning_code: 'salto_site_user_limit_almost_reached';
2951
2995
  }>;
2952
- /** */
2953
- warnings: Array<{}>;
2954
2996
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
2955
2997
  can_automate_enrollment?: boolean | undefined;
2956
2998
  /** Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems). */
@@ -15570,9 +15612,23 @@ export interface Routes {
15570
15612
  message: string;
15571
15613
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
15572
15614
  error_code: 'visionline_instance_unreachable';
15615
+ } | {
15616
+ /** Date and time at which Seam created the error. */
15617
+ created_at: string;
15618
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
15619
+ message: string;
15620
+ /** You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
15621
+ error_code: 'salto_site_user_limit_reached';
15622
+ }>;
15623
+ /** Warnings associated with the `acs_system`. */
15624
+ warnings: Array<{
15625
+ /** Date and time at which Seam created the warning. */
15626
+ created_at: string;
15627
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
15628
+ message: string;
15629
+ /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
15630
+ warning_code: 'salto_site_user_limit_almost_reached';
15573
15631
  }>;
15574
- /** */
15575
- warnings: Array<{}>;
15576
15632
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
15577
15633
  can_automate_enrollment?: boolean | undefined;
15578
15634
  /** Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.222.0",
3
+ "version": "1.223.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -92,7 +92,7 @@
92
92
  "zod": "^3.21.4"
93
93
  },
94
94
  "devDependencies": {
95
- "@seamapi/blueprint": "^0.12.0",
95
+ "@seamapi/blueprint": "^0.13.0",
96
96
  "@types/node": "^20.8.10",
97
97
  "concurrently": "^8.2.0",
98
98
  "del-cli": "^5.0.0",
@@ -73,8 +73,20 @@ const visionline_instance_unreachable = common_acs_system_error.extend({
73
73
  For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
74
74
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`)
75
75
 
76
+ const salto_site_user_limit_reached = common_acs_system_error.extend({
77
+ error_code: z
78
+ .literal('salto_site_user_limit_reached')
79
+ .describe(
80
+ 'You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit.',
81
+ ),
82
+ })
83
+
76
84
  const acs_system_error = z
77
- .union([seam_bridge_disconnected, visionline_instance_unreachable])
85
+ .union([
86
+ seam_bridge_disconnected,
87
+ visionline_instance_unreachable,
88
+ salto_site_user_limit_reached,
89
+ ])
78
90
  .describe('Error associated with the `acs_system`.')
79
91
 
80
92
  const acs_system_error_map = z.object({
@@ -82,13 +94,44 @@ const acs_system_error_map = z.object({
82
94
  visionline_instance_unreachable: visionline_instance_unreachable
83
95
  .optional()
84
96
  .nullable(),
97
+ salto_site_user_limit_reached: salto_site_user_limit_reached
98
+ .optional()
99
+ .nullable(),
85
100
  })
86
101
 
87
102
  export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>
88
103
 
89
- const acs_system_warning = z.object({})
104
+ const common_acs_system_warning = z.object({
105
+ created_at: z
106
+ .string()
107
+ .datetime()
108
+ .describe('Date and time at which Seam created the warning.'),
109
+ message: z
110
+ .string()
111
+ .describe(
112
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
113
+ ),
114
+ })
115
+
116
+ const salto_site_user_limit_almost_reached = common_acs_system_warning.extend({
117
+ warning_code: z
118
+ .literal('salto_site_user_limit_almost_reached')
119
+ .describe(
120
+ 'You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit.',
121
+ ),
122
+ })
123
+
124
+ const acs_system_warning =
125
+ // z.union([
126
+ salto_site_user_limit_almost_reached
127
+ // ])
128
+ .describe('Warning associated with the `acs_system`.')
90
129
 
91
- const acs_system_warning_map = z.object({})
130
+ const acs_system_warning_map = z.object({
131
+ salto_site_user_limit_almost_reached: salto_site_user_limit_almost_reached
132
+ .optional()
133
+ .nullable(),
134
+ })
92
135
 
93
136
  export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
94
137
 
@@ -150,13 +193,9 @@ export const acs_system = z
150
193
  errors: z
151
194
  .array(acs_system_error)
152
195
  .describe('Errors associated with the `acs_system`.'),
153
- warnings: z.array(acs_system_warning).describe(
154
- `
155
- ---
156
- undocumented: Currently, no warnings defined for \`acs_system\`s.
157
- ---
158
- `,
159
- ),
196
+ warnings: z
197
+ .array(acs_system_warning)
198
+ .describe('Warnings associated with the `acs_system`.'),
160
199
  })
161
200
  .merge(acs_system_capability_flags)
162
201
  .describe(
@@ -533,6 +533,29 @@ export default {
533
533
  required: ['created_at', 'message', 'error_code'],
534
534
  type: 'object',
535
535
  },
536
+ {
537
+ properties: {
538
+ created_at: {
539
+ description:
540
+ 'Date and time at which Seam created the error.',
541
+ format: 'date-time',
542
+ type: 'string',
543
+ },
544
+ error_code: {
545
+ description:
546
+ 'You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit.',
547
+ enum: ['salto_site_user_limit_reached'],
548
+ type: 'string',
549
+ },
550
+ message: {
551
+ description:
552
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
553
+ type: 'string',
554
+ },
555
+ },
556
+ required: ['created_at', 'message', 'error_code'],
557
+ type: 'object',
558
+ },
536
559
  ],
537
560
  },
538
561
  type: 'array',
@@ -596,10 +619,32 @@ export default {
596
619
  type: 'object',
597
620
  },
598
621
  warnings: {
599
- items: { properties: {}, type: 'object' },
622
+ description: 'Warnings associated with the `acs_system`.',
623
+ items: {
624
+ description: 'Warning associated with the `acs_system`.',
625
+ properties: {
626
+ created_at: {
627
+ description:
628
+ 'Date and time at which Seam created the warning.',
629
+ format: 'date-time',
630
+ type: 'string',
631
+ },
632
+ message: {
633
+ description:
634
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
635
+ type: 'string',
636
+ },
637
+ warning_code: {
638
+ description:
639
+ 'You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit.',
640
+ enum: ['salto_site_user_limit_almost_reached'],
641
+ type: 'string',
642
+ },
643
+ },
644
+ required: ['created_at', 'message', 'warning_code'],
645
+ type: 'object',
646
+ },
600
647
  type: 'array',
601
- 'x-undocumented':
602
- 'Currently, no warnings defined for `acs_system`s.',
603
648
  },
604
649
  workspace_id: {
605
650
  description:
@@ -3178,9 +3178,24 @@ export interface Routes {
3178
3178
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
3179
3179
  error_code: 'visionline_instance_unreachable'
3180
3180
  }
3181
+ | {
3182
+ /** Date and time at which Seam created the error. */
3183
+ created_at: string
3184
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3185
+ message: string
3186
+ /** You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
3187
+ error_code: 'salto_site_user_limit_reached'
3188
+ }
3181
3189
  >
3182
- /** */
3183
- warnings: Array<{}>
3190
+ /** Warnings associated with the `acs_system`. */
3191
+ warnings: Array<{
3192
+ /** Date and time at which Seam created the warning. */
3193
+ created_at: string
3194
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
3195
+ message: string
3196
+ /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
3197
+ warning_code: 'salto_site_user_limit_almost_reached'
3198
+ }>
3184
3199
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
3185
3200
  can_automate_enrollment?: boolean | undefined
3186
3201
  /** Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems). */
@@ -3275,9 +3290,24 @@ export interface Routes {
3275
3290
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
3276
3291
  error_code: 'visionline_instance_unreachable'
3277
3292
  }
3293
+ | {
3294
+ /** Date and time at which Seam created the error. */
3295
+ created_at: string
3296
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3297
+ message: string
3298
+ /** You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
3299
+ error_code: 'salto_site_user_limit_reached'
3300
+ }
3278
3301
  >
3279
- /** */
3280
- warnings: Array<{}>
3302
+ /** Warnings associated with the `acs_system`. */
3303
+ warnings: Array<{
3304
+ /** Date and time at which Seam created the warning. */
3305
+ created_at: string
3306
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
3307
+ message: string
3308
+ /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
3309
+ warning_code: 'salto_site_user_limit_almost_reached'
3310
+ }>
3281
3311
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
3282
3312
  can_automate_enrollment?: boolean | undefined
3283
3313
  /** Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems). */
@@ -3372,9 +3402,24 @@ export interface Routes {
3372
3402
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
3373
3403
  error_code: 'visionline_instance_unreachable'
3374
3404
  }
3405
+ | {
3406
+ /** Date and time at which Seam created the error. */
3407
+ created_at: string
3408
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
3409
+ message: string
3410
+ /** You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
3411
+ error_code: 'salto_site_user_limit_reached'
3412
+ }
3375
3413
  >
3376
- /** */
3377
- warnings: Array<{}>
3414
+ /** Warnings associated with the `acs_system`. */
3415
+ warnings: Array<{
3416
+ /** Date and time at which Seam created the warning. */
3417
+ created_at: string
3418
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
3419
+ message: string
3420
+ /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
3421
+ warning_code: 'salto_site_user_limit_almost_reached'
3422
+ }>
3378
3423
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
3379
3424
  can_automate_enrollment?: boolean | undefined
3380
3425
  /** Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems). */
@@ -20331,9 +20376,24 @@ export interface Routes {
20331
20376
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
20332
20377
  error_code: 'visionline_instance_unreachable'
20333
20378
  }
20379
+ | {
20380
+ /** Date and time at which Seam created the error. */
20381
+ created_at: string
20382
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
20383
+ message: string
20384
+ /** You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
20385
+ error_code: 'salto_site_user_limit_reached'
20386
+ }
20334
20387
  >
20335
- /** */
20336
- warnings: Array<{}>
20388
+ /** Warnings associated with the `acs_system`. */
20389
+ warnings: Array<{
20390
+ /** Date and time at which Seam created the warning. */
20391
+ created_at: string
20392
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
20393
+ message: string
20394
+ /** You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit. */
20395
+ warning_code: 'salto_site_user_limit_almost_reached'
20396
+ }>
20337
20397
  /** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
20338
20398
  can_automate_enrollment?: boolean | undefined
20339
20399
  /** Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems). */