@seamapi/types 1.768.1 → 1.769.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.
@@ -1653,6 +1653,24 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
1653
1653
  }, {
1654
1654
  message: string;
1655
1655
  type: "encoder_not_online";
1656
+ }>, z.ZodObject<{
1657
+ type: z.ZodLiteral<"encoder_timeout_error">;
1658
+ message: z.ZodString;
1659
+ }, "strip", z.ZodTypeAny, {
1660
+ message: string;
1661
+ type: "encoder_timeout_error";
1662
+ }, {
1663
+ message: string;
1664
+ type: "encoder_timeout_error";
1665
+ }>, z.ZodObject<{
1666
+ type: z.ZodLiteral<"bridge_disconnected">;
1667
+ message: z.ZodString;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ message: string;
1670
+ type: "bridge_disconnected";
1671
+ }, {
1672
+ message: string;
1673
+ type: "bridge_disconnected";
1656
1674
  }>]>;
1657
1675
  }, "strip", z.ZodTypeAny, {
1658
1676
  status: "error";
@@ -1669,6 +1687,12 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
1669
1687
  } | {
1670
1688
  message: string;
1671
1689
  type: "encoder_not_online";
1690
+ } | {
1691
+ message: string;
1692
+ type: "encoder_timeout_error";
1693
+ } | {
1694
+ message: string;
1695
+ type: "bridge_disconnected";
1672
1696
  };
1673
1697
  result: null;
1674
1698
  action_type: "SCAN_CREDENTIAL";
@@ -1687,6 +1711,12 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
1687
1711
  } | {
1688
1712
  message: string;
1689
1713
  type: "encoder_not_online";
1714
+ } | {
1715
+ message: string;
1716
+ type: "encoder_timeout_error";
1717
+ } | {
1718
+ message: string;
1719
+ type: "bridge_disconnected";
1690
1720
  };
1691
1721
  result: null;
1692
1722
  action_type: "SCAN_CREDENTIAL";
@@ -2697,6 +2727,24 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
2697
2727
  }, {
2698
2728
  message: string;
2699
2729
  type: "encoder_not_online";
2730
+ }>, z.ZodObject<{
2731
+ type: z.ZodLiteral<"encoder_timeout_error">;
2732
+ message: z.ZodString;
2733
+ }, "strip", z.ZodTypeAny, {
2734
+ message: string;
2735
+ type: "encoder_timeout_error";
2736
+ }, {
2737
+ message: string;
2738
+ type: "encoder_timeout_error";
2739
+ }>, z.ZodObject<{
2740
+ type: z.ZodLiteral<"bridge_disconnected">;
2741
+ message: z.ZodString;
2742
+ }, "strip", z.ZodTypeAny, {
2743
+ message: string;
2744
+ type: "bridge_disconnected";
2745
+ }, {
2746
+ message: string;
2747
+ type: "bridge_disconnected";
2700
2748
  }>]>;
2701
2749
  }, "strip", z.ZodTypeAny, {
2702
2750
  status: "error";
@@ -2719,6 +2767,12 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
2719
2767
  } | {
2720
2768
  message: string;
2721
2769
  type: "encoder_not_online";
2770
+ } | {
2771
+ message: string;
2772
+ type: "encoder_timeout_error";
2773
+ } | {
2774
+ message: string;
2775
+ type: "bridge_disconnected";
2722
2776
  };
2723
2777
  result: null;
2724
2778
  action_type: "ENCODE_CREDENTIAL";
@@ -2743,6 +2797,12 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
2743
2797
  } | {
2744
2798
  message: string;
2745
2799
  type: "encoder_not_online";
2800
+ } | {
2801
+ message: string;
2802
+ type: "encoder_timeout_error";
2803
+ } | {
2804
+ message: string;
2805
+ type: "bridge_disconnected";
2746
2806
  };
2747
2807
  result: null;
2748
2808
  action_type: "ENCODE_CREDENTIAL";
@@ -1006,6 +1006,24 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
1006
1006
  }, {
1007
1007
  message: string;
1008
1008
  type: "encoder_not_online";
1009
+ }>, z.ZodObject<{
1010
+ type: z.ZodLiteral<"encoder_timeout_error">;
1011
+ message: z.ZodString;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ message: string;
1014
+ type: "encoder_timeout_error";
1015
+ }, {
1016
+ message: string;
1017
+ type: "encoder_timeout_error";
1018
+ }>, z.ZodObject<{
1019
+ type: z.ZodLiteral<"bridge_disconnected">;
1020
+ message: z.ZodString;
1021
+ }, "strip", z.ZodTypeAny, {
1022
+ message: string;
1023
+ type: "bridge_disconnected";
1024
+ }, {
1025
+ message: string;
1026
+ type: "bridge_disconnected";
1009
1027
  }>]>;
1010
1028
  }, "strip", z.ZodTypeAny, {
1011
1029
  status: "error";
@@ -1028,6 +1046,12 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
1028
1046
  } | {
1029
1047
  message: string;
1030
1048
  type: "encoder_not_online";
1049
+ } | {
1050
+ message: string;
1051
+ type: "encoder_timeout_error";
1052
+ } | {
1053
+ message: string;
1054
+ type: "bridge_disconnected";
1031
1055
  };
1032
1056
  result: null;
1033
1057
  action_type: "ENCODE_CREDENTIAL";
@@ -1052,6 +1076,12 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
1052
1076
  } | {
1053
1077
  message: string;
1054
1078
  type: "encoder_not_online";
1079
+ } | {
1080
+ message: string;
1081
+ type: "encoder_timeout_error";
1082
+ } | {
1083
+ message: string;
1084
+ type: "bridge_disconnected";
1055
1085
  };
1056
1086
  result: null;
1057
1087
  action_type: "ENCODE_CREDENTIAL";
@@ -44,12 +44,34 @@ const encoder_not_online_error = z
44
44
  .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
45
45
  })
46
46
  .describe('Error to indicate that the encoder is not online.');
47
+ const encoder_timeout_error = z
48
+ .object({
49
+ type: z
50
+ .literal('encoder_timeout_error')
51
+ .describe('Error type to indicate that communication with the encoder timed out.'),
52
+ message: z
53
+ .string()
54
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
55
+ })
56
+ .describe('Error to indicate that communication with the encoder timed out.');
57
+ const bridge_disconnected_error = z
58
+ .object({
59
+ type: z
60
+ .literal('bridge_disconnected')
61
+ .describe('Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.'),
62
+ message: z
63
+ .string()
64
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
65
+ })
66
+ .describe('Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.');
47
67
  const error = z.union([
48
68
  ...common_action_attempt_errors,
49
69
  no_credential_on_encoder_error,
50
70
  incompatible_card_format_error,
51
71
  credential_cannot_be_reissued,
52
72
  encoder_not_online_error,
73
+ encoder_timeout_error,
74
+ bridge_disconnected_error,
53
75
  ]);
54
76
  const result = acs_credential
55
77
  .or(unmanaged_acs_credential)
@@ -1 +1 @@
1
- {"version":3,"file":"encode-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,mBAAmB,CAAC;KAC5B,QAAQ,CACP,uGAAuG,CACxG,CAAA;AAEH,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,+DAA+D,CAAC,CAAA;AAE5E,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CAAC,qDAAqD,CAAC;IAClE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SAC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CAAC,CAAA"}
1
+ {"version":3,"file":"encode-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,mBAAmB,CAAC;KAC5B,QAAQ,CACP,uGAAuG,CACxG,CAAA;AAEH,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,+DAA+D,CAAC,CAAA;AAE5E,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CAAC,qDAAqD,CAAC;IAClE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,gDAAgD,CAAC,CAAA;AAE7D,MAAM,6BAA6B,GAAG,CAAC;KACpC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,+BAA+B,CAAC;SACxC,QAAQ,CACP,yEAAyE,CAC1E;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,oEAAoE,CACrE,CAAA;AAEH,MAAM,wBAAwB,GAAG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B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CACP,2EAA2E,CAC5E;IACH,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CACP,wEAAwE,CACzE;CACJ,CAAC,CAAA"}
@@ -1483,6 +1483,24 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1483
1483
  }, {
1484
1484
  message: string;
1485
1485
  type: "encoder_not_online";
1486
+ }>, z.ZodObject<{
1487
+ type: z.ZodLiteral<"encoder_timeout_error">;
1488
+ message: z.ZodString;
1489
+ }, "strip", z.ZodTypeAny, {
1490
+ message: string;
1491
+ type: "encoder_timeout_error";
1492
+ }, {
1493
+ message: string;
1494
+ type: "encoder_timeout_error";
1495
+ }>, z.ZodObject<{
1496
+ type: z.ZodLiteral<"bridge_disconnected">;
1497
+ message: z.ZodString;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ message: string;
1500
+ type: "bridge_disconnected";
1501
+ }, {
1502
+ message: string;
1503
+ type: "bridge_disconnected";
1486
1504
  }>]>;
1487
1505
  }, "strip", z.ZodTypeAny, {
1488
1506
  status: "error";
@@ -1499,6 +1517,12 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1499
1517
  } | {
1500
1518
  message: string;
1501
1519
  type: "encoder_not_online";
1520
+ } | {
1521
+ message: string;
1522
+ type: "encoder_timeout_error";
1523
+ } | {
1524
+ message: string;
1525
+ type: "bridge_disconnected";
1502
1526
  };
1503
1527
  result: null;
1504
1528
  action_type: "SCAN_CREDENTIAL";
@@ -1517,6 +1541,12 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
1517
1541
  } | {
1518
1542
  message: string;
1519
1543
  type: "encoder_not_online";
1544
+ } | {
1545
+ message: string;
1546
+ type: "encoder_timeout_error";
1547
+ } | {
1548
+ message: string;
1549
+ type: "bridge_disconnected";
1520
1550
  };
1521
1551
  result: null;
1522
1552
  action_type: "SCAN_CREDENTIAL";
@@ -24,10 +24,32 @@ const encoder_not_online_error = z
24
24
  .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
25
25
  })
26
26
  .describe('Error to indicate that the encoder is not online.');
27
+ const encoder_timeout_error = z
28
+ .object({
29
+ type: z
30
+ .literal('encoder_timeout_error')
31
+ .describe('Error type to indicate that communication with the encoder timed out.'),
32
+ message: z
33
+ .string()
34
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
35
+ })
36
+ .describe('Error to indicate that communication with the encoder timed out.');
37
+ const bridge_disconnected_error = z
38
+ .object({
39
+ type: z
40
+ .literal('bridge_disconnected')
41
+ .describe('Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.'),
42
+ message: z
43
+ .string()
44
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
45
+ })
46
+ .describe('Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.');
27
47
  const error = z.union([
28
48
  ...common_action_attempt_errors,
29
49
  no_credential_on_encoder_error,
30
50
  encoder_not_online_error,
51
+ encoder_timeout_error,
52
+ bridge_disconnected_error,
31
53
  ]);
32
54
  const warning = z
33
55
  .object({
@@ -1 +1 @@
1
- {"version":3,"file":"scan-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/scan-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,iBAAiB,CAAC;KAC1B,QAAQ,CAAC,8DAA8D,CAAC,CAAA;AAE3E,MAAM,8BAA8B,GAAG,CAAC;KAC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zE;IACH,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,OAAO,CAAC;SACd,QAAQ,CACP,4LAA4L,CAC7L;CACJ,CAAC;KACD,QAAQ,CACP,4NAA4N,CAC7N,CAAA;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC3E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,0DAA0D,CAAC;IACvE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,uDAAuD,CAAC;CACrE,CAAC,CAAA"}
1
+ {"version":3,"file":"scan-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/scan-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,iBAAiB,CAAC;KAC1B,QAAQ,CAAC,8DAA8D,CAAC,CAAA;AAE3E,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,+DAA+D,CAAC,CAAA;AAE5E,MAAM,wB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,QAAQ,CAAC,2CAA2C,CAAC,CAAA;AAExD,MAAM,sBAAsB,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1E,MAAM,MAAM,GAAG,CAAC;KACb,MAAM,CAAC;IACN,yBAAyB,EAAE,yBAAyB;SACjD,QAAQ,EAAE;SACV,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,sBAAsB,EAAE,sBAAsB;SAC3C,QAAQ,EAAE;SACV,QAAQ,CACP,wEAAwE,CACzE;IACH,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,OAAO,CAAC;SACd,QAAQ,CACP,4LAA4L,CAC7L;CACJ,CAAC;KACD,QAAQ,CACP,4NAA4N,CAC7N,CAAA;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC3E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,0DAA0D,CAAC;IACvE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,uDAAuD,CAAC;CACrE,CAAC,CAAA"}
@@ -9193,6 +9193,24 @@ export declare const batch: z.ZodObject<{
9193
9193
  }, {
9194
9194
  message: string;
9195
9195
  type: "encoder_not_online";
9196
+ }>, z.ZodObject<{
9197
+ type: z.ZodLiteral<"encoder_timeout_error">;
9198
+ message: z.ZodString;
9199
+ }, "strip", z.ZodTypeAny, {
9200
+ message: string;
9201
+ type: "encoder_timeout_error";
9202
+ }, {
9203
+ message: string;
9204
+ type: "encoder_timeout_error";
9205
+ }>, z.ZodObject<{
9206
+ type: z.ZodLiteral<"bridge_disconnected">;
9207
+ message: z.ZodString;
9208
+ }, "strip", z.ZodTypeAny, {
9209
+ message: string;
9210
+ type: "bridge_disconnected";
9211
+ }, {
9212
+ message: string;
9213
+ type: "bridge_disconnected";
9196
9214
  }>]>;
9197
9215
  }, "strip", z.ZodTypeAny, {
9198
9216
  status: "error";
@@ -9209,6 +9227,12 @@ export declare const batch: z.ZodObject<{
9209
9227
  } | {
9210
9228
  message: string;
9211
9229
  type: "encoder_not_online";
9230
+ } | {
9231
+ message: string;
9232
+ type: "encoder_timeout_error";
9233
+ } | {
9234
+ message: string;
9235
+ type: "bridge_disconnected";
9212
9236
  };
9213
9237
  result: null;
9214
9238
  action_type: "SCAN_CREDENTIAL";
@@ -9227,6 +9251,12 @@ export declare const batch: z.ZodObject<{
9227
9251
  } | {
9228
9252
  message: string;
9229
9253
  type: "encoder_not_online";
9254
+ } | {
9255
+ message: string;
9256
+ type: "encoder_timeout_error";
9257
+ } | {
9258
+ message: string;
9259
+ type: "bridge_disconnected";
9230
9260
  };
9231
9261
  result: null;
9232
9262
  action_type: "SCAN_CREDENTIAL";
@@ -10237,6 +10267,24 @@ export declare const batch: z.ZodObject<{
10237
10267
  }, {
10238
10268
  message: string;
10239
10269
  type: "encoder_not_online";
10270
+ }>, z.ZodObject<{
10271
+ type: z.ZodLiteral<"encoder_timeout_error">;
10272
+ message: z.ZodString;
10273
+ }, "strip", z.ZodTypeAny, {
10274
+ message: string;
10275
+ type: "encoder_timeout_error";
10276
+ }, {
10277
+ message: string;
10278
+ type: "encoder_timeout_error";
10279
+ }>, z.ZodObject<{
10280
+ type: z.ZodLiteral<"bridge_disconnected">;
10281
+ message: z.ZodString;
10282
+ }, "strip", z.ZodTypeAny, {
10283
+ message: string;
10284
+ type: "bridge_disconnected";
10285
+ }, {
10286
+ message: string;
10287
+ type: "bridge_disconnected";
10240
10288
  }>]>;
10241
10289
  }, "strip", z.ZodTypeAny, {
10242
10290
  status: "error";
@@ -10259,6 +10307,12 @@ export declare const batch: z.ZodObject<{
10259
10307
  } | {
10260
10308
  message: string;
10261
10309
  type: "encoder_not_online";
10310
+ } | {
10311
+ message: string;
10312
+ type: "encoder_timeout_error";
10313
+ } | {
10314
+ message: string;
10315
+ type: "bridge_disconnected";
10262
10316
  };
10263
10317
  result: null;
10264
10318
  action_type: "ENCODE_CREDENTIAL";
@@ -10283,6 +10337,12 @@ export declare const batch: z.ZodObject<{
10283
10337
  } | {
10284
10338
  message: string;
10285
10339
  type: "encoder_not_online";
10340
+ } | {
10341
+ message: string;
10342
+ type: "encoder_timeout_error";
10343
+ } | {
10344
+ message: string;
10345
+ type: "bridge_disconnected";
10286
10346
  };
10287
10347
  result: null;
10288
10348
  action_type: "ENCODE_CREDENTIAL";
@@ -27071,6 +27131,12 @@ export declare const batch: z.ZodObject<{
27071
27131
  } | {
27072
27132
  message: string;
27073
27133
  type: "encoder_not_online";
27134
+ } | {
27135
+ message: string;
27136
+ type: "encoder_timeout_error";
27137
+ } | {
27138
+ message: string;
27139
+ type: "bridge_disconnected";
27074
27140
  };
27075
27141
  result: null;
27076
27142
  action_type: "ENCODE_CREDENTIAL";
@@ -27337,6 +27403,12 @@ export declare const batch: z.ZodObject<{
27337
27403
  } | {
27338
27404
  message: string;
27339
27405
  type: "encoder_not_online";
27406
+ } | {
27407
+ message: string;
27408
+ type: "encoder_timeout_error";
27409
+ } | {
27410
+ message: string;
27411
+ type: "bridge_disconnected";
27340
27412
  };
27341
27413
  result: null;
27342
27414
  action_type: "SCAN_CREDENTIAL";
@@ -31917,6 +31989,12 @@ export declare const batch: z.ZodObject<{
31917
31989
  } | {
31918
31990
  message: string;
31919
31991
  type: "encoder_not_online";
31992
+ } | {
31993
+ message: string;
31994
+ type: "encoder_timeout_error";
31995
+ } | {
31996
+ message: string;
31997
+ type: "bridge_disconnected";
31920
31998
  };
31921
31999
  result: null;
31922
32000
  action_type: "ENCODE_CREDENTIAL";
@@ -32183,6 +32261,12 @@ export declare const batch: z.ZodObject<{
32183
32261
  } | {
32184
32262
  message: string;
32185
32263
  type: "encoder_not_online";
32264
+ } | {
32265
+ message: string;
32266
+ type: "encoder_timeout_error";
32267
+ } | {
32268
+ message: string;
32269
+ type: "bridge_disconnected";
32186
32270
  };
32187
32271
  result: null;
32188
32272
  action_type: "SCAN_CREDENTIAL";
@@ -6047,6 +6047,38 @@ export default {
6047
6047
  required: ['type', 'message'],
6048
6048
  type: 'object',
6049
6049
  },
6050
+ {
6051
+ description: 'Error to indicate that communication with the encoder timed out.',
6052
+ properties: {
6053
+ message: {
6054
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
6055
+ type: 'string',
6056
+ },
6057
+ type: {
6058
+ description: 'Error type to indicate that communication with the encoder timed out.',
6059
+ enum: ['encoder_timeout_error'],
6060
+ type: 'string',
6061
+ },
6062
+ },
6063
+ required: ['type', 'message'],
6064
+ type: 'object',
6065
+ },
6066
+ {
6067
+ description: 'Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.',
6068
+ properties: {
6069
+ message: {
6070
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
6071
+ type: 'string',
6072
+ },
6073
+ type: {
6074
+ description: 'Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.',
6075
+ enum: ['bridge_disconnected'],
6076
+ type: 'string',
6077
+ },
6078
+ },
6079
+ required: ['type', 'message'],
6080
+ type: 'object',
6081
+ },
6050
6082
  ],
6051
6083
  },
6052
6084
  result: {
@@ -7019,6 +7051,38 @@ export default {
7019
7051
  required: ['type', 'message'],
7020
7052
  type: 'object',
7021
7053
  },
7054
+ {
7055
+ description: 'Error to indicate that communication with the encoder timed out.',
7056
+ properties: {
7057
+ message: {
7058
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
7059
+ type: 'string',
7060
+ },
7061
+ type: {
7062
+ description: 'Error type to indicate that communication with the encoder timed out.',
7063
+ enum: ['encoder_timeout_error'],
7064
+ type: 'string',
7065
+ },
7066
+ },
7067
+ required: ['type', 'message'],
7068
+ type: 'object',
7069
+ },
7070
+ {
7071
+ description: 'Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.',
7072
+ properties: {
7073
+ message: {
7074
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
7075
+ type: 'string',
7076
+ },
7077
+ type: {
7078
+ description: 'Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.',
7079
+ enum: ['bridge_disconnected'],
7080
+ type: 'string',
7081
+ },
7082
+ },
7083
+ required: ['type', 'message'],
7084
+ type: 'object',
7085
+ },
7022
7086
  ],
7023
7087
  },
7024
7088
  result: {