@seamapi/types 1.185.0 → 1.186.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.
@@ -2963,16 +2963,23 @@ declare const _default: {
2963
2963
  };
2964
2964
  errors: {
2965
2965
  items: {
2966
- properties: {
2967
- error_code: {
2968
- type: string;
2969
- };
2970
- message: {
2971
- type: string;
2966
+ oneOf: {
2967
+ properties: {
2968
+ created_at: {
2969
+ format: string;
2970
+ type: string;
2971
+ };
2972
+ error_code: {
2973
+ enum: string[];
2974
+ type: string;
2975
+ };
2976
+ message: {
2977
+ type: string;
2978
+ };
2972
2979
  };
2973
- };
2974
- required: string[];
2975
- type: string;
2980
+ required: string[];
2981
+ type: string;
2982
+ }[];
2976
2983
  };
2977
2984
  type: string;
2978
2985
  };
@@ -3003,15 +3010,7 @@ declare const _default: {
3003
3010
  };
3004
3011
  warnings: {
3005
3012
  items: {
3006
- properties: {
3007
- message: {
3008
- type: string;
3009
- };
3010
- warning_code: {
3011
- type: string;
3012
- };
3013
- };
3014
- required: string[];
3013
+ properties: {};
3015
3014
  type: string;
3016
3015
  };
3017
3016
  type: string;
@@ -22138,13 +22137,15 @@ interface Routes {
22138
22137
  image_url: string;
22139
22138
  image_alt_text: string;
22140
22139
  errors: Array<{
22141
- error_code: string;
22140
+ created_at: string;
22142
22141
  message: string;
22143
- }>;
22144
- warnings: Array<{
22145
- warning_code: string;
22142
+ error_code: 'seam_bridge_disconnected';
22143
+ } | {
22144
+ created_at: string;
22146
22145
  message: string;
22146
+ error_code: 'visionline_instance_unreachable';
22147
22147
  }>;
22148
+ warnings: Array<{}>;
22148
22149
  can_automate_enrollment?: boolean | undefined;
22149
22150
  can_create_acs_access_groups?: boolean | undefined;
22150
22151
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
@@ -22185,13 +22186,15 @@ interface Routes {
22185
22186
  image_url: string;
22186
22187
  image_alt_text: string;
22187
22188
  errors: Array<{
22188
- error_code: string;
22189
+ created_at: string;
22189
22190
  message: string;
22190
- }>;
22191
- warnings: Array<{
22192
- warning_code: string;
22191
+ error_code: 'seam_bridge_disconnected';
22192
+ } | {
22193
+ created_at: string;
22193
22194
  message: string;
22195
+ error_code: 'visionline_instance_unreachable';
22194
22196
  }>;
22197
+ warnings: Array<{}>;
22195
22198
  can_automate_enrollment?: boolean | undefined;
22196
22199
  can_create_acs_access_groups?: boolean | undefined;
22197
22200
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
@@ -22232,13 +22235,15 @@ interface Routes {
22232
22235
  image_url: string;
22233
22236
  image_alt_text: string;
22234
22237
  errors: Array<{
22235
- error_code: string;
22238
+ created_at: string;
22236
22239
  message: string;
22237
- }>;
22238
- warnings: Array<{
22239
- warning_code: string;
22240
+ error_code: 'seam_bridge_disconnected';
22241
+ } | {
22242
+ created_at: string;
22240
22243
  message: string;
22244
+ error_code: 'visionline_instance_unreachable';
22241
22245
  }>;
22246
+ warnings: Array<{}>;
22242
22247
  can_automate_enrollment?: boolean | undefined;
22243
22248
  can_create_acs_access_groups?: boolean | undefined;
22244
22249
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
@@ -36454,13 +36459,15 @@ interface Routes {
36454
36459
  image_url: string;
36455
36460
  image_alt_text: string;
36456
36461
  errors: Array<{
36457
- error_code: string;
36462
+ created_at: string;
36458
36463
  message: string;
36459
- }>;
36460
- warnings: Array<{
36461
- warning_code: string;
36464
+ error_code: 'seam_bridge_disconnected';
36465
+ } | {
36466
+ created_at: string;
36462
36467
  message: string;
36468
+ error_code: 'visionline_instance_unreachable';
36463
36469
  }>;
36470
+ warnings: Array<{}>;
36464
36471
  can_automate_enrollment?: boolean | undefined;
36465
36472
  can_create_acs_access_groups?: boolean | undefined;
36466
36473
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
@@ -18,29 +18,88 @@ export declare const acs_system_capability_flags: z.ZodObject<{
18
18
  export declare const acs_system_external_type_values: readonly ["pti_site", "alta_org", "salto_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building"];
19
19
  export declare const acs_system_external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building"]>>;
20
20
  export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>;
21
+ declare const acs_system_error_map: z.ZodObject<{
22
+ seam_bridge_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<{
23
+ message: z.ZodString;
24
+ created_at: z.ZodString;
25
+ error_code: z.ZodLiteral<"seam_bridge_disconnected">;
26
+ }, "strip", z.ZodTypeAny, {
27
+ message: string;
28
+ created_at: string;
29
+ error_code: "seam_bridge_disconnected";
30
+ }, {
31
+ message: string;
32
+ created_at: string;
33
+ error_code: "seam_bridge_disconnected";
34
+ }>>>;
35
+ visionline_instance_unreachable: z.ZodNullable<z.ZodOptional<z.ZodObject<{
36
+ message: z.ZodString;
37
+ created_at: z.ZodString;
38
+ error_code: z.ZodLiteral<"visionline_instance_unreachable">;
39
+ }, "strip", z.ZodTypeAny, {
40
+ message: string;
41
+ created_at: string;
42
+ error_code: "visionline_instance_unreachable";
43
+ }, {
44
+ message: string;
45
+ created_at: string;
46
+ error_code: "visionline_instance_unreachable";
47
+ }>>>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ seam_bridge_disconnected?: {
50
+ message: string;
51
+ created_at: string;
52
+ error_code: "seam_bridge_disconnected";
53
+ } | null | undefined;
54
+ visionline_instance_unreachable?: {
55
+ message: string;
56
+ created_at: string;
57
+ error_code: "visionline_instance_unreachable";
58
+ } | null | undefined;
59
+ }, {
60
+ seam_bridge_disconnected?: {
61
+ message: string;
62
+ created_at: string;
63
+ error_code: "seam_bridge_disconnected";
64
+ } | null | undefined;
65
+ visionline_instance_unreachable?: {
66
+ message: string;
67
+ created_at: string;
68
+ error_code: "visionline_instance_unreachable";
69
+ } | null | undefined;
70
+ }>;
71
+ export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>;
72
+ declare const acs_system_warning_map: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
73
+ export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>;
21
74
  export declare const acs_system: z.ZodObject<{
22
75
  name: z.ZodString;
23
76
  created_at: z.ZodString;
24
- errors: z.ZodArray<z.ZodObject<{
25
- error_code: z.ZodString;
77
+ errors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
26
78
  message: z.ZodString;
79
+ created_at: z.ZodString;
80
+ error_code: z.ZodLiteral<"seam_bridge_disconnected">;
27
81
  }, "strip", z.ZodTypeAny, {
28
82
  message: string;
29
- error_code: string;
83
+ created_at: string;
84
+ error_code: "seam_bridge_disconnected";
30
85
  }, {
31
86
  message: string;
32
- error_code: string;
33
- }>, "many">;
34
- warnings: z.ZodArray<z.ZodObject<{
35
- warning_code: z.ZodString;
87
+ created_at: string;
88
+ error_code: "seam_bridge_disconnected";
89
+ }>, z.ZodObject<{
36
90
  message: z.ZodString;
91
+ created_at: z.ZodString;
92
+ error_code: z.ZodLiteral<"visionline_instance_unreachable">;
37
93
  }, "strip", z.ZodTypeAny, {
38
94
  message: string;
39
- warning_code: string;
95
+ created_at: string;
96
+ error_code: "visionline_instance_unreachable";
40
97
  }, {
41
98
  message: string;
42
- warning_code: string;
43
- }>, "many">;
99
+ created_at: string;
100
+ error_code: "visionline_instance_unreachable";
101
+ }>]>, "many">;
102
+ warnings: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
44
103
  acs_system_id: z.ZodString;
45
104
  workspace_id: z.ZodString;
46
105
  external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building"]>>;
@@ -57,14 +116,16 @@ export declare const acs_system: z.ZodObject<{
57
116
  }, "strip", z.ZodTypeAny, {
58
117
  name: string;
59
118
  created_at: string;
60
- errors: {
119
+ errors: ({
61
120
  message: string;
62
- error_code: string;
63
- }[];
64
- warnings: {
121
+ created_at: string;
122
+ error_code: "seam_bridge_disconnected";
123
+ } | {
65
124
  message: string;
66
- warning_code: string;
67
- }[];
125
+ created_at: string;
126
+ error_code: "visionline_instance_unreachable";
127
+ })[];
128
+ warnings: {}[];
68
129
  acs_system_id: string;
69
130
  workspace_id: string;
70
131
  connected_account_ids: string[];
@@ -81,14 +142,16 @@ export declare const acs_system: z.ZodObject<{
81
142
  }, {
82
143
  name: string;
83
144
  created_at: string;
84
- errors: {
145
+ errors: ({
85
146
  message: string;
86
- error_code: string;
87
- }[];
88
- warnings: {
147
+ created_at: string;
148
+ error_code: "seam_bridge_disconnected";
149
+ } | {
89
150
  message: string;
90
- warning_code: string;
91
- }[];
151
+ created_at: string;
152
+ error_code: "visionline_instance_unreachable";
153
+ })[];
154
+ warnings: {}[];
92
155
  acs_system_id: string;
93
156
  workspace_id: string;
94
157
  connected_account_ids: string[];
@@ -104,3 +167,4 @@ export declare const acs_system: z.ZodObject<{
104
167
  can_add_acs_users_to_acs_access_groups?: boolean | undefined;
105
168
  }>;
106
169
  export type AcsSystem = z.output<typeof acs_system>;
170
+ export {};
@@ -19,6 +19,28 @@ export const acs_system_external_type_values = [
19
19
  export const acs_system_external_type = z
20
20
  .enum(acs_system_external_type_values)
21
21
  .optional();
22
+ const common_acs_system_error = z.object({
23
+ created_at: z.string().datetime(),
24
+ message: z.string(),
25
+ });
26
+ const seam_bridge_disconnected = common_acs_system_error.extend({
27
+ error_code: z.literal('seam_bridge_disconnected'),
28
+ });
29
+ const visionline_instance_unreachable = common_acs_system_error.extend({
30
+ error_code: z.literal('visionline_instance_unreachable'),
31
+ });
32
+ const acs_system_error = z.union([
33
+ seam_bridge_disconnected,
34
+ visionline_instance_unreachable,
35
+ ]);
36
+ const acs_system_error_map = z.object({
37
+ seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
38
+ visionline_instance_unreachable: visionline_instance_unreachable
39
+ .optional()
40
+ .nullable(),
41
+ });
42
+ const acs_system_warning = z.object({});
43
+ const acs_system_warning_map = z.object({});
22
44
  export const acs_system = z
23
45
  .object({
24
46
  acs_system_id: z.string().uuid(),
@@ -40,14 +62,8 @@ export const acs_system = z
40
62
  connected_account_ids: z.array(z.string()),
41
63
  image_url: z.string(),
42
64
  image_alt_text: z.string(),
43
- errors: z.array(z.object({
44
- error_code: z.string(),
45
- message: z.string(),
46
- })),
47
- warnings: z.array(z.object({
48
- warning_code: z.string(),
49
- message: z.string(),
50
- })),
65
+ errors: z.array(acs_system_error),
66
+ warnings: z.array(acs_system_warning),
51
67
  })
52
68
  .merge(acs_system_capability_flags);
53
69
  //# sourceMappingURL=acs-system.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"acs-system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/C,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpD,2CAA2C,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnE,sCAAsC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,UAAU;IACV,UAAU;IACV,YAAY;IACZ,eAAe;IACf,qCAAqC;IACrC,mBAAmB;IACnB,+BAA+B;IAC/B,gBAAgB;CACR,CAAA;AAEV,oEAAoE;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,IAAI,CAAC,+BAA+B,CAAC;KACrC,QAAQ,EAAE,CAAA;AAIb,MAAM,CAAC,MA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AAE,+BAA+B;SAC7D,QAAQ,EAAE;SACV,QAAQ,EAAE;CACd,CAAC,CAAA;AAIF,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAEvC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAI3C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,aAAa,EAAE,wBAAwB;IACvC,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,WAAW,EAAE,wBAAwB,CAAC,QAAQ,CAAC;;;;OAI5C,CAAC;IACJ,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;OAItD,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;CACtC,CAAC;KACD,KAAK,CAAC,2BAA2B,CAAC,CAAA"}
@@ -454,16 +454,23 @@ declare const _default: {
454
454
  };
455
455
  errors: {
456
456
  items: {
457
- properties: {
458
- error_code: {
459
- type: string;
460
- };
461
- message: {
462
- type: string;
457
+ oneOf: {
458
+ properties: {
459
+ created_at: {
460
+ format: string;
461
+ type: string;
462
+ };
463
+ error_code: {
464
+ enum: string[];
465
+ type: string;
466
+ };
467
+ message: {
468
+ type: string;
469
+ };
463
470
  };
464
- };
465
- required: string[];
466
- type: string;
471
+ required: string[];
472
+ type: string;
473
+ }[];
467
474
  };
468
475
  type: string;
469
476
  };
@@ -494,15 +501,7 @@ declare const _default: {
494
501
  };
495
502
  warnings: {
496
503
  items: {
497
- properties: {
498
- message: {
499
- type: string;
500
- };
501
- warning_code: {
502
- type: string;
503
- };
504
- };
505
- required: string[];
504
+ properties: {};
506
505
  type: string;
507
506
  };
508
507
  type: string;
@@ -386,12 +386,32 @@ export default {
386
386
  created_at: { format: 'date-time', type: 'string' },
387
387
  errors: {
388
388
  items: {
389
- properties: {
390
- error_code: { type: 'string' },
391
- message: { type: 'string' },
392
- },
393
- required: ['error_code', 'message'],
394
- type: 'object',
389
+ oneOf: [
390
+ {
391
+ properties: {
392
+ created_at: { format: 'date-time', type: 'string' },
393
+ error_code: {
394
+ enum: ['seam_bridge_disconnected'],
395
+ type: 'string',
396
+ },
397
+ message: { type: 'string' },
398
+ },
399
+ required: ['created_at', 'message', 'error_code'],
400
+ type: 'object',
401
+ },
402
+ {
403
+ properties: {
404
+ created_at: { format: 'date-time', type: 'string' },
405
+ error_code: {
406
+ enum: ['visionline_instance_unreachable'],
407
+ type: 'string',
408
+ },
409
+ message: { type: 'string' },
410
+ },
411
+ required: ['created_at', 'message', 'error_code'],
412
+ type: 'object',
413
+ },
414
+ ],
395
415
  },
396
416
  type: 'array',
397
417
  },
@@ -431,14 +451,7 @@ export default {
431
451
  type: 'string',
432
452
  },
433
453
  warnings: {
434
- items: {
435
- properties: {
436
- message: { type: 'string' },
437
- warning_code: { type: 'string' },
438
- },
439
- required: ['warning_code', 'message'],
440
- type: 'object',
441
- },
454
+ items: { properties: {}, type: 'object' },
442
455
  type: 'array',
443
456
  },
444
457
  workspace_id: { format: 'uuid', type: 'string' },