@seamapi/types 1.770.0 → 1.771.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.
- package/dist/connect.cjs +724 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1262 -1
- package/dist/index.cjs +724 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +15 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +15 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.js +11 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +21 -0
- package/lib/seam/connect/openapi.d.ts +952 -0
- package/lib/seam/connect/openapi.js +712 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +274 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +18 -0
- package/src/lib/seam/connect/openapi.ts +779 -1
- package/src/lib/seam/connect/route-types.ts +345 -1
|
@@ -2745,6 +2745,15 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
2745
2745
|
}, {
|
|
2746
2746
|
message: string;
|
|
2747
2747
|
type: "bridge_disconnected";
|
|
2748
|
+
}>, z.ZodObject<{
|
|
2749
|
+
type: z.ZodLiteral<"encoding_interrupted">;
|
|
2750
|
+
message: z.ZodString;
|
|
2751
|
+
}, "strip", z.ZodTypeAny, {
|
|
2752
|
+
message: string;
|
|
2753
|
+
type: "encoding_interrupted";
|
|
2754
|
+
}, {
|
|
2755
|
+
message: string;
|
|
2756
|
+
type: "encoding_interrupted";
|
|
2748
2757
|
}>]>;
|
|
2749
2758
|
}, "strip", z.ZodTypeAny, {
|
|
2750
2759
|
status: "error";
|
|
@@ -2773,6 +2782,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
2773
2782
|
} | {
|
|
2774
2783
|
message: string;
|
|
2775
2784
|
type: "bridge_disconnected";
|
|
2785
|
+
} | {
|
|
2786
|
+
message: string;
|
|
2787
|
+
type: "encoding_interrupted";
|
|
2776
2788
|
};
|
|
2777
2789
|
result: null;
|
|
2778
2790
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -2803,6 +2815,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
2803
2815
|
} | {
|
|
2804
2816
|
message: string;
|
|
2805
2817
|
type: "bridge_disconnected";
|
|
2818
|
+
} | {
|
|
2819
|
+
message: string;
|
|
2820
|
+
type: "encoding_interrupted";
|
|
2806
2821
|
};
|
|
2807
2822
|
result: null;
|
|
2808
2823
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -1024,6 +1024,15 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
1024
1024
|
}, {
|
|
1025
1025
|
message: string;
|
|
1026
1026
|
type: "bridge_disconnected";
|
|
1027
|
+
}>, z.ZodObject<{
|
|
1028
|
+
type: z.ZodLiteral<"encoding_interrupted">;
|
|
1029
|
+
message: z.ZodString;
|
|
1030
|
+
}, "strip", z.ZodTypeAny, {
|
|
1031
|
+
message: string;
|
|
1032
|
+
type: "encoding_interrupted";
|
|
1033
|
+
}, {
|
|
1034
|
+
message: string;
|
|
1035
|
+
type: "encoding_interrupted";
|
|
1027
1036
|
}>]>;
|
|
1028
1037
|
}, "strip", z.ZodTypeAny, {
|
|
1029
1038
|
status: "error";
|
|
@@ -1052,6 +1061,9 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
1052
1061
|
} | {
|
|
1053
1062
|
message: string;
|
|
1054
1063
|
type: "bridge_disconnected";
|
|
1064
|
+
} | {
|
|
1065
|
+
message: string;
|
|
1066
|
+
type: "encoding_interrupted";
|
|
1055
1067
|
};
|
|
1056
1068
|
result: null;
|
|
1057
1069
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -1082,6 +1094,9 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
1082
1094
|
} | {
|
|
1083
1095
|
message: string;
|
|
1084
1096
|
type: "bridge_disconnected";
|
|
1097
|
+
} | {
|
|
1098
|
+
message: string;
|
|
1099
|
+
type: "encoding_interrupted";
|
|
1085
1100
|
};
|
|
1086
1101
|
result: null;
|
|
1087
1102
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -64,6 +64,16 @@ const bridge_disconnected_error = z
|
|
|
64
64
|
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
65
65
|
})
|
|
66
66
|
.describe('Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.');
|
|
67
|
+
const encoding_interrupted_error = z
|
|
68
|
+
.object({
|
|
69
|
+
type: z
|
|
70
|
+
.literal('encoding_interrupted')
|
|
71
|
+
.describe('Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.'),
|
|
72
|
+
message: z
|
|
73
|
+
.string()
|
|
74
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
75
|
+
})
|
|
76
|
+
.describe('Error to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.');
|
|
67
77
|
const error = z.union([
|
|
68
78
|
...common_action_attempt_errors,
|
|
69
79
|
no_credential_on_encoder_error,
|
|
@@ -72,6 +82,7 @@ const error = z.union([
|
|
|
72
82
|
encoder_not_online_error,
|
|
73
83
|
encoder_timeout_error,
|
|
74
84
|
bridge_disconnected_error,
|
|
85
|
+
encoding_interrupted_error,
|
|
75
86
|
]);
|
|
76
87
|
const result = acs_credential
|
|
77
88
|
.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,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;CACJ,CAAC;KACD,QAAQ,CAAC,mDAAmD,CAAC,CAAA;AAEhE,MAAM,qBAAqB,GAAG,CAAC;KAC5B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,uBAAuB,CAAC;SAChC,QAAQ,CACP,uEAAuE,CACxE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,kEAAkE,CAAC,CAAA;AAE/E,MAAM,yBAAyB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,qBAAqB,CAAC;SAC9B,QAAQ,CACP,wGAAwG,CACzG;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,mGAAmG,CACpG,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;IAC7B,wBAAwB;IACxB,qBAAqB;IACrB,yBAAyB;
|
|
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,O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export declare const batch: z.ZodObject<{
|
|
|
10285
10285
|
}, {
|
|
10286
10286
|
message: string;
|
|
10287
10287
|
type: "bridge_disconnected";
|
|
10288
|
+
}>, z.ZodObject<{
|
|
10289
|
+
type: z.ZodLiteral<"encoding_interrupted">;
|
|
10290
|
+
message: z.ZodString;
|
|
10291
|
+
}, "strip", z.ZodTypeAny, {
|
|
10292
|
+
message: string;
|
|
10293
|
+
type: "encoding_interrupted";
|
|
10294
|
+
}, {
|
|
10295
|
+
message: string;
|
|
10296
|
+
type: "encoding_interrupted";
|
|
10288
10297
|
}>]>;
|
|
10289
10298
|
}, "strip", z.ZodTypeAny, {
|
|
10290
10299
|
status: "error";
|
|
@@ -10313,6 +10322,9 @@ export declare const batch: z.ZodObject<{
|
|
|
10313
10322
|
} | {
|
|
10314
10323
|
message: string;
|
|
10315
10324
|
type: "bridge_disconnected";
|
|
10325
|
+
} | {
|
|
10326
|
+
message: string;
|
|
10327
|
+
type: "encoding_interrupted";
|
|
10316
10328
|
};
|
|
10317
10329
|
result: null;
|
|
10318
10330
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -10343,6 +10355,9 @@ export declare const batch: z.ZodObject<{
|
|
|
10343
10355
|
} | {
|
|
10344
10356
|
message: string;
|
|
10345
10357
|
type: "bridge_disconnected";
|
|
10358
|
+
} | {
|
|
10359
|
+
message: string;
|
|
10360
|
+
type: "encoding_interrupted";
|
|
10346
10361
|
};
|
|
10347
10362
|
result: null;
|
|
10348
10363
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -27137,6 +27152,9 @@ export declare const batch: z.ZodObject<{
|
|
|
27137
27152
|
} | {
|
|
27138
27153
|
message: string;
|
|
27139
27154
|
type: "bridge_disconnected";
|
|
27155
|
+
} | {
|
|
27156
|
+
message: string;
|
|
27157
|
+
type: "encoding_interrupted";
|
|
27140
27158
|
};
|
|
27141
27159
|
result: null;
|
|
27142
27160
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -31995,6 +32013,9 @@ export declare const batch: z.ZodObject<{
|
|
|
31995
32013
|
} | {
|
|
31996
32014
|
message: string;
|
|
31997
32015
|
type: "bridge_disconnected";
|
|
32016
|
+
} | {
|
|
32017
|
+
message: string;
|
|
32018
|
+
type: "encoding_interrupted";
|
|
31998
32019
|
};
|
|
31999
32020
|
result: null;
|
|
32000
32021
|
action_type: "ENCODE_CREDENTIAL";
|