@seamapi/types 1.336.1 → 1.337.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 +17 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +78 -0
- 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 +5 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/openapi.js +11 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +63 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +11 -0
- package/src/lib/seam/connect/route-types.ts +84 -0
package/dist/connect.d.cts
CHANGED
|
@@ -6589,6 +6589,15 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
|
|
|
6589
6589
|
}, {
|
|
6590
6590
|
message: string;
|
|
6591
6591
|
type: "incompatible_card_format";
|
|
6592
|
+
}>, z.ZodObject<{
|
|
6593
|
+
type: z.ZodLiteral<"credential_cannot_be_reissued">;
|
|
6594
|
+
message: z.ZodString;
|
|
6595
|
+
}, "strip", z.ZodTypeAny, {
|
|
6596
|
+
message: string;
|
|
6597
|
+
type: "credential_cannot_be_reissued";
|
|
6598
|
+
}, {
|
|
6599
|
+
message: string;
|
|
6600
|
+
type: "credential_cannot_be_reissued";
|
|
6592
6601
|
}>]>;
|
|
6593
6602
|
}>, "strip", z.ZodTypeAny, {
|
|
6594
6603
|
status: "error";
|
|
@@ -6605,6 +6614,9 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
|
|
|
6605
6614
|
} | {
|
|
6606
6615
|
message: string;
|
|
6607
6616
|
type: "incompatible_card_format";
|
|
6617
|
+
} | {
|
|
6618
|
+
message: string;
|
|
6619
|
+
type: "credential_cannot_be_reissued";
|
|
6608
6620
|
};
|
|
6609
6621
|
result: null;
|
|
6610
6622
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -6623,6 +6635,9 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z
|
|
|
6623
6635
|
} | {
|
|
6624
6636
|
message: string;
|
|
6625
6637
|
type: "incompatible_card_format";
|
|
6638
|
+
} | {
|
|
6639
|
+
message: string;
|
|
6640
|
+
type: "credential_cannot_be_reissued";
|
|
6626
6641
|
};
|
|
6627
6642
|
result: null;
|
|
6628
6643
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -41124,6 +41139,9 @@ interface Routes {
|
|
|
41124
41139
|
} | {
|
|
41125
41140
|
type: 'incompatible_card_format';
|
|
41126
41141
|
message: string;
|
|
41142
|
+
} | {
|
|
41143
|
+
type: 'credential_cannot_be_reissued';
|
|
41144
|
+
message: string;
|
|
41127
41145
|
};
|
|
41128
41146
|
} | {
|
|
41129
41147
|
/** The ID of the action attempt. */
|
|
@@ -42531,6 +42549,9 @@ interface Routes {
|
|
|
42531
42549
|
} | {
|
|
42532
42550
|
type: 'incompatible_card_format';
|
|
42533
42551
|
message: string;
|
|
42552
|
+
} | {
|
|
42553
|
+
type: 'credential_cannot_be_reissued';
|
|
42554
|
+
message: string;
|
|
42534
42555
|
};
|
|
42535
42556
|
} | {
|
|
42536
42557
|
/** The ID of the action attempt. */
|
|
@@ -44744,6 +44765,9 @@ interface Routes {
|
|
|
44744
44765
|
} | {
|
|
44745
44766
|
type: 'incompatible_card_format';
|
|
44746
44767
|
message: string;
|
|
44768
|
+
} | {
|
|
44769
|
+
type: 'credential_cannot_be_reissued';
|
|
44770
|
+
message: string;
|
|
44747
44771
|
};
|
|
44748
44772
|
} | {
|
|
44749
44773
|
/** The ID of the action attempt. */
|
|
@@ -46138,6 +46162,9 @@ interface Routes {
|
|
|
46138
46162
|
} | {
|
|
46139
46163
|
type: 'incompatible_card_format';
|
|
46140
46164
|
message: string;
|
|
46165
|
+
} | {
|
|
46166
|
+
type: 'credential_cannot_be_reissued';
|
|
46167
|
+
message: string;
|
|
46141
46168
|
};
|
|
46142
46169
|
} | {
|
|
46143
46170
|
/** The ID of the action attempt. */
|
|
@@ -48730,6 +48757,9 @@ interface Routes {
|
|
|
48730
48757
|
} | {
|
|
48731
48758
|
type: 'incompatible_card_format';
|
|
48732
48759
|
message: string;
|
|
48760
|
+
} | {
|
|
48761
|
+
type: 'credential_cannot_be_reissued';
|
|
48762
|
+
message: string;
|
|
48733
48763
|
};
|
|
48734
48764
|
} | {
|
|
48735
48765
|
/** The ID of the action attempt. */
|
|
@@ -49642,6 +49672,9 @@ interface Routes {
|
|
|
49642
49672
|
} | {
|
|
49643
49673
|
type: 'incompatible_card_format';
|
|
49644
49674
|
message: string;
|
|
49675
|
+
} | {
|
|
49676
|
+
type: 'credential_cannot_be_reissued';
|
|
49677
|
+
message: string;
|
|
49645
49678
|
};
|
|
49646
49679
|
} | {
|
|
49647
49680
|
/** The ID of the action attempt. */
|
|
@@ -51969,6 +52002,9 @@ interface Routes {
|
|
|
51969
52002
|
} | {
|
|
51970
52003
|
type: 'incompatible_card_format';
|
|
51971
52004
|
message: string;
|
|
52005
|
+
} | {
|
|
52006
|
+
type: 'credential_cannot_be_reissued';
|
|
52007
|
+
message: string;
|
|
51972
52008
|
};
|
|
51973
52009
|
} | {
|
|
51974
52010
|
/** The ID of the action attempt. */
|
|
@@ -52833,6 +52869,9 @@ interface Routes {
|
|
|
52833
52869
|
} | {
|
|
52834
52870
|
type: 'incompatible_card_format';
|
|
52835
52871
|
message: string;
|
|
52872
|
+
} | {
|
|
52873
|
+
type: 'credential_cannot_be_reissued';
|
|
52874
|
+
message: string;
|
|
52836
52875
|
};
|
|
52837
52876
|
} | {
|
|
52838
52877
|
/** The ID of the action attempt. */
|
|
@@ -61098,6 +61137,9 @@ interface Routes {
|
|
|
61098
61137
|
} | {
|
|
61099
61138
|
type: 'incompatible_card_format';
|
|
61100
61139
|
message: string;
|
|
61140
|
+
} | {
|
|
61141
|
+
type: 'credential_cannot_be_reissued';
|
|
61142
|
+
message: string;
|
|
61101
61143
|
};
|
|
61102
61144
|
} | {
|
|
61103
61145
|
/** The ID of the action attempt. */
|
|
@@ -61964,6 +62006,9 @@ interface Routes {
|
|
|
61964
62006
|
} | {
|
|
61965
62007
|
type: 'incompatible_card_format';
|
|
61966
62008
|
message: string;
|
|
62009
|
+
} | {
|
|
62010
|
+
type: 'credential_cannot_be_reissued';
|
|
62011
|
+
message: string;
|
|
61967
62012
|
};
|
|
61968
62013
|
} | {
|
|
61969
62014
|
/** The ID of the action attempt. */
|
|
@@ -64195,6 +64240,9 @@ interface Routes {
|
|
|
64195
64240
|
} | {
|
|
64196
64241
|
type: 'incompatible_card_format';
|
|
64197
64242
|
message: string;
|
|
64243
|
+
} | {
|
|
64244
|
+
type: 'credential_cannot_be_reissued';
|
|
64245
|
+
message: string;
|
|
64198
64246
|
};
|
|
64199
64247
|
} | {
|
|
64200
64248
|
/** The ID of the action attempt. */
|
|
@@ -65072,6 +65120,9 @@ interface Routes {
|
|
|
65072
65120
|
} | {
|
|
65073
65121
|
type: 'incompatible_card_format';
|
|
65074
65122
|
message: string;
|
|
65123
|
+
} | {
|
|
65124
|
+
type: 'credential_cannot_be_reissued';
|
|
65125
|
+
message: string;
|
|
65075
65126
|
};
|
|
65076
65127
|
} | {
|
|
65077
65128
|
/** The ID of the action attempt. */
|
|
@@ -65988,6 +66039,9 @@ interface Routes {
|
|
|
65988
66039
|
} | {
|
|
65989
66040
|
type: 'incompatible_card_format';
|
|
65990
66041
|
message: string;
|
|
66042
|
+
} | {
|
|
66043
|
+
type: 'credential_cannot_be_reissued';
|
|
66044
|
+
message: string;
|
|
65991
66045
|
};
|
|
65992
66046
|
} | {
|
|
65993
66047
|
/** The ID of the action attempt. */
|
|
@@ -67287,6 +67341,9 @@ interface Routes {
|
|
|
67287
67341
|
} | {
|
|
67288
67342
|
type: 'incompatible_card_format';
|
|
67289
67343
|
message: string;
|
|
67344
|
+
} | {
|
|
67345
|
+
type: 'credential_cannot_be_reissued';
|
|
67346
|
+
message: string;
|
|
67290
67347
|
};
|
|
67291
67348
|
} | {
|
|
67292
67349
|
/** The ID of the action attempt. */
|
|
@@ -68159,6 +68216,9 @@ interface Routes {
|
|
|
68159
68216
|
} | {
|
|
68160
68217
|
type: 'incompatible_card_format';
|
|
68161
68218
|
message: string;
|
|
68219
|
+
} | {
|
|
68220
|
+
type: 'credential_cannot_be_reissued';
|
|
68221
|
+
message: string;
|
|
68162
68222
|
};
|
|
68163
68223
|
} | {
|
|
68164
68224
|
/** The ID of the action attempt. */
|
|
@@ -69736,6 +69796,9 @@ interface Routes {
|
|
|
69736
69796
|
} | {
|
|
69737
69797
|
type: 'incompatible_card_format';
|
|
69738
69798
|
message: string;
|
|
69799
|
+
} | {
|
|
69800
|
+
type: 'credential_cannot_be_reissued';
|
|
69801
|
+
message: string;
|
|
69739
69802
|
};
|
|
69740
69803
|
} | {
|
|
69741
69804
|
/** The ID of the action attempt. */
|
|
@@ -70612,6 +70675,9 @@ interface Routes {
|
|
|
70612
70675
|
} | {
|
|
70613
70676
|
type: 'incompatible_card_format';
|
|
70614
70677
|
message: string;
|
|
70678
|
+
} | {
|
|
70679
|
+
type: 'credential_cannot_be_reissued';
|
|
70680
|
+
message: string;
|
|
70615
70681
|
};
|
|
70616
70682
|
} | {
|
|
70617
70683
|
/** The ID of the action attempt. */
|
|
@@ -72805,6 +72871,9 @@ interface Routes {
|
|
|
72805
72871
|
} | {
|
|
72806
72872
|
type: 'incompatible_card_format';
|
|
72807
72873
|
message: string;
|
|
72874
|
+
} | {
|
|
72875
|
+
type: 'credential_cannot_be_reissued';
|
|
72876
|
+
message: string;
|
|
72808
72877
|
};
|
|
72809
72878
|
} | {
|
|
72810
72879
|
/** The ID of the action attempt. */
|
|
@@ -73857,6 +73926,9 @@ interface Routes {
|
|
|
73857
73926
|
} | {
|
|
73858
73927
|
type: 'incompatible_card_format';
|
|
73859
73928
|
message: string;
|
|
73929
|
+
} | {
|
|
73930
|
+
type: 'credential_cannot_be_reissued';
|
|
73931
|
+
message: string;
|
|
73860
73932
|
};
|
|
73861
73933
|
} | {
|
|
73862
73934
|
/** The ID of the action attempt. */
|
|
@@ -74752,6 +74824,9 @@ interface Routes {
|
|
|
74752
74824
|
} | {
|
|
74753
74825
|
type: 'incompatible_card_format';
|
|
74754
74826
|
message: string;
|
|
74827
|
+
} | {
|
|
74828
|
+
type: 'credential_cannot_be_reissued';
|
|
74829
|
+
message: string;
|
|
74755
74830
|
};
|
|
74756
74831
|
} | {
|
|
74757
74832
|
/** The ID of the action attempt. */
|
|
@@ -77625,6 +77700,9 @@ interface Routes {
|
|
|
77625
77700
|
} | {
|
|
77626
77701
|
type: 'incompatible_card_format';
|
|
77627
77702
|
message: string;
|
|
77703
|
+
} | {
|
|
77704
|
+
type: 'credential_cannot_be_reissued';
|
|
77705
|
+
message: string;
|
|
77628
77706
|
};
|
|
77629
77707
|
} | {
|
|
77630
77708
|
/** The ID of the action attempt. */
|
|
@@ -2576,6 +2576,15 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2576
2576
|
}, {
|
|
2577
2577
|
type: "incompatible_card_format";
|
|
2578
2578
|
message: string;
|
|
2579
|
+
}>, z.ZodObject<{
|
|
2580
|
+
type: z.ZodLiteral<"credential_cannot_be_reissued">;
|
|
2581
|
+
message: z.ZodString;
|
|
2582
|
+
}, "strip", z.ZodTypeAny, {
|
|
2583
|
+
type: "credential_cannot_be_reissued";
|
|
2584
|
+
message: string;
|
|
2585
|
+
}, {
|
|
2586
|
+
type: "credential_cannot_be_reissued";
|
|
2587
|
+
message: string;
|
|
2579
2588
|
}>]>;
|
|
2580
2589
|
}>, "strip", z.ZodTypeAny, {
|
|
2581
2590
|
error: {
|
|
@@ -2590,6 +2599,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2590
2599
|
} | {
|
|
2591
2600
|
type: "incompatible_card_format";
|
|
2592
2601
|
message: string;
|
|
2602
|
+
} | {
|
|
2603
|
+
type: "credential_cannot_be_reissued";
|
|
2604
|
+
message: string;
|
|
2593
2605
|
};
|
|
2594
2606
|
status: "error";
|
|
2595
2607
|
action_attempt_id: string;
|
|
@@ -2608,6 +2620,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2608
2620
|
} | {
|
|
2609
2621
|
type: "incompatible_card_format";
|
|
2610
2622
|
message: string;
|
|
2623
|
+
} | {
|
|
2624
|
+
type: "credential_cannot_be_reissued";
|
|
2625
|
+
message: string;
|
|
2611
2626
|
};
|
|
2612
2627
|
status: "error";
|
|
2613
2628
|
action_attempt_id: string;
|
|
@@ -957,6 +957,15 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
957
957
|
}, {
|
|
958
958
|
type: "incompatible_card_format";
|
|
959
959
|
message: string;
|
|
960
|
+
}>, z.ZodObject<{
|
|
961
|
+
type: z.ZodLiteral<"credential_cannot_be_reissued">;
|
|
962
|
+
message: z.ZodString;
|
|
963
|
+
}, "strip", z.ZodTypeAny, {
|
|
964
|
+
type: "credential_cannot_be_reissued";
|
|
965
|
+
message: string;
|
|
966
|
+
}, {
|
|
967
|
+
type: "credential_cannot_be_reissued";
|
|
968
|
+
message: string;
|
|
960
969
|
}>]>;
|
|
961
970
|
}>, "strip", z.ZodTypeAny, {
|
|
962
971
|
error: {
|
|
@@ -971,6 +980,9 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
971
980
|
} | {
|
|
972
981
|
type: "incompatible_card_format";
|
|
973
982
|
message: string;
|
|
983
|
+
} | {
|
|
984
|
+
type: "credential_cannot_be_reissued";
|
|
985
|
+
message: string;
|
|
974
986
|
};
|
|
975
987
|
status: "error";
|
|
976
988
|
action_attempt_id: string;
|
|
@@ -989,6 +1001,9 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
989
1001
|
} | {
|
|
990
1002
|
type: "incompatible_card_format";
|
|
991
1003
|
message: string;
|
|
1004
|
+
} | {
|
|
1005
|
+
type: "credential_cannot_be_reissued";
|
|
1006
|
+
message: string;
|
|
992
1007
|
};
|
|
993
1008
|
status: "error";
|
|
994
1009
|
action_attempt_id: string;
|
|
@@ -10,10 +10,15 @@ const incompatible_card_format_error = z.object({
|
|
|
10
10
|
type: z.literal('incompatible_card_format'),
|
|
11
11
|
message: z.string(),
|
|
12
12
|
});
|
|
13
|
+
const credential_cannot_be_reissued = z.object({
|
|
14
|
+
type: z.literal('credential_cannot_be_reissued'),
|
|
15
|
+
message: z.string(),
|
|
16
|
+
});
|
|
13
17
|
const error = z.union([
|
|
14
18
|
...common_action_attempt_errors,
|
|
15
19
|
no_credential_on_encoder_error,
|
|
16
20
|
incompatible_card_format_error,
|
|
21
|
+
credential_cannot_be_reissued,
|
|
17
22
|
]);
|
|
18
23
|
const result = acs_credential.or(unmanaged_acs_credential);
|
|
19
24
|
export const encode_credential_action_attempt = z.discriminatedUnion('status', [
|
|
@@ -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,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAElD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;
|
|
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,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAElD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;CAC9B,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2DAA2D,CAAC;IACxE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,wDAAwD,CAAC;CACtE,CAAC,CAAA"}
|
|
@@ -3864,6 +3864,17 @@ export default {
|
|
|
3864
3864
|
required: ['type', 'message'],
|
|
3865
3865
|
type: 'object',
|
|
3866
3866
|
},
|
|
3867
|
+
{
|
|
3868
|
+
properties: {
|
|
3869
|
+
message: { type: 'string' },
|
|
3870
|
+
type: {
|
|
3871
|
+
enum: ['credential_cannot_be_reissued'],
|
|
3872
|
+
type: 'string',
|
|
3873
|
+
},
|
|
3874
|
+
},
|
|
3875
|
+
required: ['type', 'message'],
|
|
3876
|
+
type: 'object',
|
|
3877
|
+
},
|
|
3867
3878
|
],
|
|
3868
3879
|
},
|
|
3869
3880
|
result: { nullable: true },
|