@seamapi/types 1.332.1 → 1.334.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.
Files changed (33) hide show
  1. package/dist/connect.cjs +1541 -161
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +4917 -923
  4. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +902 -35
  5. package/lib/seam/connect/models/access-codes/managed-access-code.js +238 -6
  6. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  7. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +568 -25
  8. package/lib/seam/connect/models/acs/acs-credential.d.ts +66 -0
  9. package/lib/seam/connect/models/acs/acs-credential.js +4 -1
  10. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  11. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.d.ts +20 -0
  12. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.js +7 -0
  13. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.js.map +1 -1
  14. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +216 -0
  15. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +94 -0
  16. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +122 -0
  17. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +85 -23
  18. package/lib/seam/connect/models/connected-accounts/connected-account.js +27 -9
  19. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  20. package/lib/seam/connect/models/devices/device.d.ts +28 -7
  21. package/lib/seam/connect/models/devices/phone.d.ts +28 -7
  22. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +28 -7
  23. package/lib/seam/connect/openapi.d.ts +309 -164
  24. package/lib/seam/connect/openapi.js +1346 -104
  25. package/lib/seam/connect/openapi.js.map +1 -1
  26. package/lib/seam/connect/route-types.d.ts +2391 -310
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +282 -7
  29. package/src/lib/seam/connect/models/acs/acs-credential.ts +7 -1
  30. package/src/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.ts +12 -0
  31. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +32 -9
  32. package/src/lib/seam/connect/openapi.ts +1518 -173
  33. package/src/lib/seam/connect/route-types.ts +3016 -297
@@ -167,6 +167,25 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
167
167
  card_id?: string | undefined;
168
168
  credential_id?: string | undefined;
169
169
  }>>;
170
+ assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
171
+ override_guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
172
+ key_id: z.ZodOptional<z.ZodString>;
173
+ key_issuing_request_id: z.ZodOptional<z.ZodString>;
174
+ door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
175
+ endpoint_id: z.ZodOptional<z.ZodString>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ endpoint_id?: string | undefined;
178
+ override_guest_acs_entrance_ids?: string[] | undefined;
179
+ key_id?: string | undefined;
180
+ key_issuing_request_id?: string | undefined;
181
+ door_names?: string[] | undefined;
182
+ }, {
183
+ endpoint_id?: string | undefined;
184
+ override_guest_acs_entrance_ids?: string[] | undefined;
185
+ key_id?: string | undefined;
186
+ key_issuing_request_id?: string | undefined;
187
+ door_names?: string[] | undefined;
188
+ }>>;
170
189
  }, {
171
190
  is_managed: z.ZodLiteral<true>;
172
191
  }>, "strip", z.ZodTypeAny, {
@@ -219,6 +238,13 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
219
238
  card_id?: string | undefined;
220
239
  credential_id?: string | undefined;
221
240
  } | undefined;
241
+ assa_abloy_vostio_metadata?: {
242
+ endpoint_id?: string | undefined;
243
+ override_guest_acs_entrance_ids?: string[] | undefined;
244
+ key_id?: string | undefined;
245
+ key_issuing_request_id?: string | undefined;
246
+ door_names?: string[] | undefined;
247
+ } | undefined;
222
248
  is_one_time_use?: boolean | undefined;
223
249
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
224
250
  external_type_display_name?: string | undefined;
@@ -281,6 +307,13 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
281
307
  card_id?: string | undefined;
282
308
  credential_id?: string | undefined;
283
309
  } | undefined;
310
+ assa_abloy_vostio_metadata?: {
311
+ endpoint_id?: string | undefined;
312
+ override_guest_acs_entrance_ids?: string[] | undefined;
313
+ key_id?: string | undefined;
314
+ key_issuing_request_id?: string | undefined;
315
+ door_names?: string[] | undefined;
316
+ } | undefined;
284
317
  is_one_time_use?: boolean | undefined;
285
318
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
286
319
  external_type_display_name?: string | undefined;
@@ -432,6 +465,25 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
432
465
  card_id?: string | undefined;
433
466
  credential_id?: string | undefined;
434
467
  }>>;
468
+ assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
469
+ override_guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
470
+ key_id: z.ZodOptional<z.ZodString>;
471
+ key_issuing_request_id: z.ZodOptional<z.ZodString>;
472
+ door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
473
+ endpoint_id: z.ZodOptional<z.ZodString>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ endpoint_id?: string | undefined;
476
+ override_guest_acs_entrance_ids?: string[] | undefined;
477
+ key_id?: string | undefined;
478
+ key_issuing_request_id?: string | undefined;
479
+ door_names?: string[] | undefined;
480
+ }, {
481
+ endpoint_id?: string | undefined;
482
+ override_guest_acs_entrance_ids?: string[] | undefined;
483
+ key_id?: string | undefined;
484
+ key_issuing_request_id?: string | undefined;
485
+ door_names?: string[] | undefined;
486
+ }>>;
435
487
  }, {
436
488
  is_managed: z.ZodLiteral<false>;
437
489
  }>, "strip", z.ZodTypeAny, {
@@ -484,6 +536,13 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
484
536
  card_id?: string | undefined;
485
537
  credential_id?: string | undefined;
486
538
  } | undefined;
539
+ assa_abloy_vostio_metadata?: {
540
+ endpoint_id?: string | undefined;
541
+ override_guest_acs_entrance_ids?: string[] | undefined;
542
+ key_id?: string | undefined;
543
+ key_issuing_request_id?: string | undefined;
544
+ door_names?: string[] | undefined;
545
+ } | undefined;
487
546
  is_one_time_use?: boolean | undefined;
488
547
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
489
548
  external_type_display_name?: string | undefined;
@@ -546,6 +605,13 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
546
605
  card_id?: string | undefined;
547
606
  credential_id?: string | undefined;
548
607
  } | undefined;
608
+ assa_abloy_vostio_metadata?: {
609
+ endpoint_id?: string | undefined;
610
+ override_guest_acs_entrance_ids?: string[] | undefined;
611
+ key_id?: string | undefined;
612
+ key_issuing_request_id?: string | undefined;
613
+ door_names?: string[] | undefined;
614
+ } | undefined;
549
615
  is_one_time_use?: boolean | undefined;
550
616
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
551
617
  external_type_display_name?: string | undefined;
@@ -613,6 +679,13 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
613
679
  card_id?: string | undefined;
614
680
  credential_id?: string | undefined;
615
681
  } | undefined;
682
+ assa_abloy_vostio_metadata?: {
683
+ endpoint_id?: string | undefined;
684
+ override_guest_acs_entrance_ids?: string[] | undefined;
685
+ key_id?: string | undefined;
686
+ key_issuing_request_id?: string | undefined;
687
+ door_names?: string[] | undefined;
688
+ } | undefined;
616
689
  is_one_time_use?: boolean | undefined;
617
690
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
618
691
  external_type_display_name?: string | undefined;
@@ -675,6 +748,13 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
675
748
  card_id?: string | undefined;
676
749
  credential_id?: string | undefined;
677
750
  } | undefined;
751
+ assa_abloy_vostio_metadata?: {
752
+ endpoint_id?: string | undefined;
753
+ override_guest_acs_entrance_ids?: string[] | undefined;
754
+ key_id?: string | undefined;
755
+ key_issuing_request_id?: string | undefined;
756
+ door_names?: string[] | undefined;
757
+ } | undefined;
678
758
  is_one_time_use?: boolean | undefined;
679
759
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
680
760
  external_type_display_name?: string | undefined;
@@ -743,6 +823,13 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
743
823
  card_id?: string | undefined;
744
824
  credential_id?: string | undefined;
745
825
  } | undefined;
826
+ assa_abloy_vostio_metadata?: {
827
+ endpoint_id?: string | undefined;
828
+ override_guest_acs_entrance_ids?: string[] | undefined;
829
+ key_id?: string | undefined;
830
+ key_issuing_request_id?: string | undefined;
831
+ door_names?: string[] | undefined;
832
+ } | undefined;
746
833
  is_one_time_use?: boolean | undefined;
747
834
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
748
835
  external_type_display_name?: string | undefined;
@@ -805,6 +892,13 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
805
892
  card_id?: string | undefined;
806
893
  credential_id?: string | undefined;
807
894
  } | undefined;
895
+ assa_abloy_vostio_metadata?: {
896
+ endpoint_id?: string | undefined;
897
+ override_guest_acs_entrance_ids?: string[] | undefined;
898
+ key_id?: string | undefined;
899
+ key_issuing_request_id?: string | undefined;
900
+ door_names?: string[] | undefined;
901
+ } | undefined;
808
902
  is_one_time_use?: boolean | undefined;
809
903
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
810
904
  external_type_display_name?: string | undefined;
@@ -255,6 +255,25 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
255
255
  card_id?: string | undefined;
256
256
  credential_id?: string | undefined;
257
257
  }>>;
258
+ assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
259
+ override_guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
260
+ key_id: z.ZodOptional<z.ZodString>;
261
+ key_issuing_request_id: z.ZodOptional<z.ZodString>;
262
+ door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
263
+ endpoint_id: z.ZodOptional<z.ZodString>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ endpoint_id?: string | undefined;
266
+ override_guest_acs_entrance_ids?: string[] | undefined;
267
+ key_id?: string | undefined;
268
+ key_issuing_request_id?: string | undefined;
269
+ door_names?: string[] | undefined;
270
+ }, {
271
+ endpoint_id?: string | undefined;
272
+ override_guest_acs_entrance_ids?: string[] | undefined;
273
+ key_id?: string | undefined;
274
+ key_issuing_request_id?: string | undefined;
275
+ door_names?: string[] | undefined;
276
+ }>>;
258
277
  }, {
259
278
  is_managed: z.ZodLiteral<true>;
260
279
  }>, "strip", z.ZodTypeAny, {
@@ -307,6 +326,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
307
326
  card_id?: string | undefined;
308
327
  credential_id?: string | undefined;
309
328
  } | undefined;
329
+ assa_abloy_vostio_metadata?: {
330
+ endpoint_id?: string | undefined;
331
+ override_guest_acs_entrance_ids?: string[] | undefined;
332
+ key_id?: string | undefined;
333
+ key_issuing_request_id?: string | undefined;
334
+ door_names?: string[] | undefined;
335
+ } | undefined;
310
336
  is_one_time_use?: boolean | undefined;
311
337
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
312
338
  external_type_display_name?: string | undefined;
@@ -369,6 +395,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
369
395
  card_id?: string | undefined;
370
396
  credential_id?: string | undefined;
371
397
  } | undefined;
398
+ assa_abloy_vostio_metadata?: {
399
+ endpoint_id?: string | undefined;
400
+ override_guest_acs_entrance_ids?: string[] | undefined;
401
+ key_id?: string | undefined;
402
+ key_issuing_request_id?: string | undefined;
403
+ door_names?: string[] | undefined;
404
+ } | undefined;
372
405
  is_one_time_use?: boolean | undefined;
373
406
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
374
407
  external_type_display_name?: string | undefined;
@@ -520,6 +553,25 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
520
553
  card_id?: string | undefined;
521
554
  credential_id?: string | undefined;
522
555
  }>>;
556
+ assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
557
+ override_guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
558
+ key_id: z.ZodOptional<z.ZodString>;
559
+ key_issuing_request_id: z.ZodOptional<z.ZodString>;
560
+ door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
561
+ endpoint_id: z.ZodOptional<z.ZodString>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ endpoint_id?: string | undefined;
564
+ override_guest_acs_entrance_ids?: string[] | undefined;
565
+ key_id?: string | undefined;
566
+ key_issuing_request_id?: string | undefined;
567
+ door_names?: string[] | undefined;
568
+ }, {
569
+ endpoint_id?: string | undefined;
570
+ override_guest_acs_entrance_ids?: string[] | undefined;
571
+ key_id?: string | undefined;
572
+ key_issuing_request_id?: string | undefined;
573
+ door_names?: string[] | undefined;
574
+ }>>;
523
575
  }, {
524
576
  is_managed: z.ZodLiteral<false>;
525
577
  }>, "strip", z.ZodTypeAny, {
@@ -572,6 +624,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
572
624
  card_id?: string | undefined;
573
625
  credential_id?: string | undefined;
574
626
  } | undefined;
627
+ assa_abloy_vostio_metadata?: {
628
+ endpoint_id?: string | undefined;
629
+ override_guest_acs_entrance_ids?: string[] | undefined;
630
+ key_id?: string | undefined;
631
+ key_issuing_request_id?: string | undefined;
632
+ door_names?: string[] | undefined;
633
+ } | undefined;
575
634
  is_one_time_use?: boolean | undefined;
576
635
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
577
636
  external_type_display_name?: string | undefined;
@@ -634,6 +693,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
634
693
  card_id?: string | undefined;
635
694
  credential_id?: string | undefined;
636
695
  } | undefined;
696
+ assa_abloy_vostio_metadata?: {
697
+ endpoint_id?: string | undefined;
698
+ override_guest_acs_entrance_ids?: string[] | undefined;
699
+ key_id?: string | undefined;
700
+ key_issuing_request_id?: string | undefined;
701
+ door_names?: string[] | undefined;
702
+ } | undefined;
637
703
  is_one_time_use?: boolean | undefined;
638
704
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
639
705
  external_type_display_name?: string | undefined;
@@ -733,6 +799,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
733
799
  card_id?: string | undefined;
734
800
  credential_id?: string | undefined;
735
801
  } | undefined;
802
+ assa_abloy_vostio_metadata?: {
803
+ endpoint_id?: string | undefined;
804
+ override_guest_acs_entrance_ids?: string[] | undefined;
805
+ key_id?: string | undefined;
806
+ key_issuing_request_id?: string | undefined;
807
+ door_names?: string[] | undefined;
808
+ } | undefined;
736
809
  is_one_time_use?: boolean | undefined;
737
810
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
738
811
  external_type_display_name?: string | undefined;
@@ -795,6 +868,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
795
868
  card_id?: string | undefined;
796
869
  credential_id?: string | undefined;
797
870
  } | undefined;
871
+ assa_abloy_vostio_metadata?: {
872
+ endpoint_id?: string | undefined;
873
+ override_guest_acs_entrance_ids?: string[] | undefined;
874
+ key_id?: string | undefined;
875
+ key_issuing_request_id?: string | undefined;
876
+ door_names?: string[] | undefined;
877
+ } | undefined;
798
878
  is_one_time_use?: boolean | undefined;
799
879
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
800
880
  external_type_display_name?: string | undefined;
@@ -884,6 +964,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
884
964
  card_id?: string | undefined;
885
965
  credential_id?: string | undefined;
886
966
  } | undefined;
967
+ assa_abloy_vostio_metadata?: {
968
+ endpoint_id?: string | undefined;
969
+ override_guest_acs_entrance_ids?: string[] | undefined;
970
+ key_id?: string | undefined;
971
+ key_issuing_request_id?: string | undefined;
972
+ door_names?: string[] | undefined;
973
+ } | undefined;
887
974
  is_one_time_use?: boolean | undefined;
888
975
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
889
976
  external_type_display_name?: string | undefined;
@@ -946,6 +1033,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
946
1033
  card_id?: string | undefined;
947
1034
  credential_id?: string | undefined;
948
1035
  } | undefined;
1036
+ assa_abloy_vostio_metadata?: {
1037
+ endpoint_id?: string | undefined;
1038
+ override_guest_acs_entrance_ids?: string[] | undefined;
1039
+ key_id?: string | undefined;
1040
+ key_issuing_request_id?: string | undefined;
1041
+ door_names?: string[] | undefined;
1042
+ } | undefined;
949
1043
  is_one_time_use?: boolean | undefined;
950
1044
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
951
1045
  external_type_display_name?: string | undefined;
@@ -1040,6 +1134,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1040
1134
  card_id?: string | undefined;
1041
1135
  credential_id?: string | undefined;
1042
1136
  } | undefined;
1137
+ assa_abloy_vostio_metadata?: {
1138
+ endpoint_id?: string | undefined;
1139
+ override_guest_acs_entrance_ids?: string[] | undefined;
1140
+ key_id?: string | undefined;
1141
+ key_issuing_request_id?: string | undefined;
1142
+ door_names?: string[] | undefined;
1143
+ } | undefined;
1043
1144
  is_one_time_use?: boolean | undefined;
1044
1145
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
1045
1146
  external_type_display_name?: string | undefined;
@@ -1102,6 +1203,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1102
1203
  card_id?: string | undefined;
1103
1204
  credential_id?: string | undefined;
1104
1205
  } | undefined;
1206
+ assa_abloy_vostio_metadata?: {
1207
+ endpoint_id?: string | undefined;
1208
+ override_guest_acs_entrance_ids?: string[] | undefined;
1209
+ key_id?: string | undefined;
1210
+ key_issuing_request_id?: string | undefined;
1211
+ door_names?: string[] | undefined;
1212
+ } | undefined;
1105
1213
  is_one_time_use?: boolean | undefined;
1106
1214
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
1107
1215
  external_type_display_name?: string | undefined;
@@ -1197,6 +1305,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1197
1305
  card_id?: string | undefined;
1198
1306
  credential_id?: string | undefined;
1199
1307
  } | undefined;
1308
+ assa_abloy_vostio_metadata?: {
1309
+ endpoint_id?: string | undefined;
1310
+ override_guest_acs_entrance_ids?: string[] | undefined;
1311
+ key_id?: string | undefined;
1312
+ key_issuing_request_id?: string | undefined;
1313
+ door_names?: string[] | undefined;
1314
+ } | undefined;
1200
1315
  is_one_time_use?: boolean | undefined;
1201
1316
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
1202
1317
  external_type_display_name?: string | undefined;
@@ -1259,6 +1374,13 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1259
1374
  card_id?: string | undefined;
1260
1375
  credential_id?: string | undefined;
1261
1376
  } | undefined;
1377
+ assa_abloy_vostio_metadata?: {
1378
+ endpoint_id?: string | undefined;
1379
+ override_guest_acs_entrance_ids?: string[] | undefined;
1380
+ key_id?: string | undefined;
1381
+ key_issuing_request_id?: string | undefined;
1382
+ door_names?: string[] | undefined;
1383
+ } | undefined;
1262
1384
  is_one_time_use?: boolean | undefined;
1263
1385
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_card" | "assa_abloy_vostio_mobile_key" | undefined;
1264
1386
  external_type_display_name?: string | undefined;
@@ -1,18 +1,59 @@
1
1
  import { z } from 'zod';
2
- export declare const connected_account_error: z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const account_disconnected: z.ZodObject<z.objectUtil.extendShape<{
3
3
  message: z.ZodString;
4
4
  is_connected_account_error: z.ZodLiteral<true>;
5
5
  }, {
6
- error_code: z.ZodString;
6
+ error_code: z.ZodLiteral<"account_disconnected">;
7
7
  }>, "strip", z.ZodTypeAny, {
8
8
  message: string;
9
9
  is_connected_account_error: true;
10
- error_code: string;
10
+ error_code: "account_disconnected";
11
11
  }, {
12
12
  message: string;
13
13
  is_connected_account_error: true;
14
- error_code: string;
14
+ error_code: "account_disconnected";
15
15
  }>;
16
+ export declare const invalid_credentials: z.ZodObject<z.objectUtil.extendShape<{
17
+ message: z.ZodString;
18
+ is_connected_account_error: z.ZodLiteral<true>;
19
+ }, {
20
+ error_code: z.ZodLiteral<"invalid_credentials">;
21
+ }>, "strip", z.ZodTypeAny, {
22
+ message: string;
23
+ is_connected_account_error: true;
24
+ error_code: "invalid_credentials";
25
+ }, {
26
+ message: string;
27
+ is_connected_account_error: true;
28
+ error_code: "invalid_credentials";
29
+ }>;
30
+ export declare const connected_account_error: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
31
+ message: z.ZodString;
32
+ is_connected_account_error: z.ZodLiteral<true>;
33
+ }, {
34
+ error_code: z.ZodLiteral<"account_disconnected">;
35
+ }>, "strip", z.ZodTypeAny, {
36
+ message: string;
37
+ is_connected_account_error: true;
38
+ error_code: "account_disconnected";
39
+ }, {
40
+ message: string;
41
+ is_connected_account_error: true;
42
+ error_code: "account_disconnected";
43
+ }>, z.ZodObject<z.objectUtil.extendShape<{
44
+ message: z.ZodString;
45
+ is_connected_account_error: z.ZodLiteral<true>;
46
+ }, {
47
+ error_code: z.ZodLiteral<"invalid_credentials">;
48
+ }>, "strip", z.ZodTypeAny, {
49
+ message: string;
50
+ is_connected_account_error: true;
51
+ error_code: "invalid_credentials";
52
+ }, {
53
+ message: string;
54
+ is_connected_account_error: true;
55
+ error_code: "invalid_credentials";
56
+ }>]>;
16
57
  export type ConnectedAccountError = z.infer<typeof connected_account_error>;
17
58
  export declare const unknown_issue_with_connected_account: z.ZodObject<z.objectUtil.extendShape<{
18
59
  message: z.ZodString;
@@ -28,13 +69,13 @@ export declare const unknown_issue_with_connected_account: z.ZodObject<z.objectU
28
69
  declare const connected_account_warning: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
29
70
  message: z.ZodString;
30
71
  }, {
31
- warning_code: z.ZodString;
72
+ warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
32
73
  }>, "strip", z.ZodTypeAny, {
33
74
  message: string;
34
- warning_code: string;
75
+ warning_code: "scheduled_maintenance_window";
35
76
  }, {
36
77
  message: string;
37
- warning_code: string;
78
+ warning_code: "scheduled_maintenance_window";
38
79
  }>, z.ZodObject<z.objectUtil.extendShape<{
39
80
  message: z.ZodString;
40
81
  }, {
@@ -71,30 +112,43 @@ export declare const connected_account: z.ZodObject<{
71
112
  }>>;
72
113
  account_type: z.ZodOptional<z.ZodString>;
73
114
  account_type_display_name: z.ZodString;
74
- errors: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
115
+ errors: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
116
+ message: z.ZodString;
117
+ is_connected_account_error: z.ZodLiteral<true>;
118
+ }, {
119
+ error_code: z.ZodLiteral<"account_disconnected">;
120
+ }>, "strip", z.ZodTypeAny, {
121
+ message: string;
122
+ is_connected_account_error: true;
123
+ error_code: "account_disconnected";
124
+ }, {
125
+ message: string;
126
+ is_connected_account_error: true;
127
+ error_code: "account_disconnected";
128
+ }>, z.ZodObject<z.objectUtil.extendShape<{
75
129
  message: z.ZodString;
76
130
  is_connected_account_error: z.ZodLiteral<true>;
77
131
  }, {
78
- error_code: z.ZodString;
132
+ error_code: z.ZodLiteral<"invalid_credentials">;
79
133
  }>, "strip", z.ZodTypeAny, {
80
134
  message: string;
81
135
  is_connected_account_error: true;
82
- error_code: string;
136
+ error_code: "invalid_credentials";
83
137
  }, {
84
138
  message: string;
85
139
  is_connected_account_error: true;
86
- error_code: string;
87
- }>, "many">;
140
+ error_code: "invalid_credentials";
141
+ }>]>, "many">;
88
142
  warnings: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
89
143
  message: z.ZodString;
90
144
  }, {
91
- warning_code: z.ZodString;
145
+ warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
92
146
  }>, "strip", z.ZodTypeAny, {
93
147
  message: string;
94
- warning_code: string;
148
+ warning_code: "scheduled_maintenance_window";
95
149
  }, {
96
150
  message: string;
97
- warning_code: string;
151
+ warning_code: "scheduled_maintenance_window";
98
152
  }>, z.ZodObject<z.objectUtil.extendShape<{
99
153
  message: z.ZodString;
100
154
  }, {
@@ -110,17 +164,21 @@ export declare const connected_account: z.ZodObject<{
110
164
  automatically_manage_new_devices: z.ZodBoolean;
111
165
  }, "strip", z.ZodTypeAny, {
112
166
  account_type_display_name: string;
113
- errors: {
167
+ errors: ({
168
+ message: string;
169
+ is_connected_account_error: true;
170
+ error_code: "account_disconnected";
171
+ } | {
114
172
  message: string;
115
173
  is_connected_account_error: true;
116
- error_code: string;
117
- }[];
174
+ error_code: "invalid_credentials";
175
+ })[];
118
176
  warnings: ({
119
177
  message: string;
120
178
  warning_code: "unknown_issue_with_connected_account";
121
179
  } | {
122
180
  message: string;
123
- warning_code: string;
181
+ warning_code: "scheduled_maintenance_window";
124
182
  })[];
125
183
  custom_metadata: Record<string, string | boolean>;
126
184
  automatically_manage_new_devices: boolean;
@@ -136,17 +194,21 @@ export declare const connected_account: z.ZodObject<{
136
194
  account_type?: string | undefined;
137
195
  }, {
138
196
  account_type_display_name: string;
139
- errors: {
197
+ errors: ({
198
+ message: string;
199
+ is_connected_account_error: true;
200
+ error_code: "account_disconnected";
201
+ } | {
140
202
  message: string;
141
203
  is_connected_account_error: true;
142
- error_code: string;
143
- }[];
204
+ error_code: "invalid_credentials";
205
+ })[];
144
206
  warnings: ({
145
207
  message: string;
146
208
  warning_code: "unknown_issue_with_connected_account";
147
209
  } | {
148
210
  message: string;
149
- warning_code: string;
211
+ warning_code: "scheduled_maintenance_window";
150
212
  })[];
151
213
  custom_metadata: Record<string, string | boolean>;
152
214
  automatically_manage_new_devices: boolean;
@@ -4,13 +4,29 @@ const common_connected_account_error = z.object({
4
4
  message: z.string(),
5
5
  is_connected_account_error: z.literal(true),
6
6
  });
7
+ const error_code_description = 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.';
7
8
  const warning_code_description = 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.';
8
9
  const common_connected_account_warning = z.object({
9
10
  message: z.string(),
10
11
  });
11
- export const connected_account_error = common_connected_account_error.extend({
12
- error_code: z.string(),
13
- });
12
+ export const account_disconnected = common_connected_account_error
13
+ .extend({
14
+ error_code: z
15
+ .literal('account_disconnected')
16
+ .describe(error_code_description),
17
+ })
18
+ .describe('Account is disconnected.');
19
+ export const invalid_credentials = common_connected_account_error
20
+ .extend({
21
+ error_code: z
22
+ .literal('invalid_credentials')
23
+ .describe(error_code_description),
24
+ })
25
+ .describe('Credentials provided were invalid.');
26
+ export const connected_account_error = z.union([
27
+ account_disconnected,
28
+ invalid_credentials,
29
+ ]);
14
30
  export const unknown_issue_with_connected_account = common_connected_account_warning
15
31
  .extend({
16
32
  warning_code: z
@@ -19,13 +35,15 @@ export const unknown_issue_with_connected_account = common_connected_account_war
19
35
  })
20
36
  .describe('An unknown issue occurred while syncing the state of this connected account with the provider. ' +
21
37
  'This issue may affect the proper functioning of one or more resources in this account.');
38
+ const scheduled_maintenance_window = common_connected_account_warning
39
+ .extend({
40
+ warning_code: z
41
+ .literal('scheduled_maintenance_window')
42
+ .describe(warning_code_description),
43
+ })
44
+ .describe('Scheduled downtime for account planned.');
22
45
  const connected_account_warning = z
23
- .union([
24
- common_connected_account_warning.extend({
25
- warning_code: z.string(),
26
- }),
27
- unknown_issue_with_connected_account,
28
- ])
46
+ .union([scheduled_maintenance_window, unknown_issue_with_connected_account])
29
47
  .describe('Warning associated with the `connected_account`.');
30
48
  export const connected_account = z.object({
31
49
  connected_account_id: z.string().uuid().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5C,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,8BAA8B,CAAC,MAAM,CAAC;IAC3E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,oCAAoC,GAC/C,gCAAgC;KAC7B,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,sCAAsC,CAAC;SAC/C,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC;KACD,QAAQ,CACP,iGAAiG;IAC/F,wFAAwF,CAC3F,CAAA;AAEL,MAAM,yBAAyB,GAAG,CAAC;KAChC,KAAK,CAAC;IACL,gCAAgC,CAAC,MAAM,CAAC;QACtC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;KACzB,CAAC;IACF,oCAAoC;CACrC,CAAC;KACD,QAAQ,CAAC,kDAAkD,CAAC,CAAA;AAI/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,I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