@seamapi/types 1.277.0 → 1.278.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 +53 -11
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +285 -27
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +48 -7
- package/lib/seam/connect/models/action-attempts/encode-card.d.ts +22 -7
- package/lib/seam/connect/models/action-attempts/encode-card.js +10 -2
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-card.d.ts +26 -0
- package/lib/seam/connect/models/action-attempts/scan-card.js +5 -0
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +77 -0
- package/lib/seam/connect/openapi.js +36 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +160 -20
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/encode-card.ts +12 -2
- package/src/lib/seam/connect/models/action-attempts/scan-card.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +36 -6
- package/src/lib/seam/connect/route-types.ts +260 -80
|
@@ -195,6 +195,10 @@ export interface Routes {
|
|
|
195
195
|
} | undefined;
|
|
196
196
|
is_managed: false;
|
|
197
197
|
}) | null;
|
|
198
|
+
warnings: Array<{
|
|
199
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
200
|
+
warning_message: string;
|
|
201
|
+
}>;
|
|
198
202
|
};
|
|
199
203
|
} | {
|
|
200
204
|
/** The ID of the action attempt. */
|
|
@@ -307,7 +311,10 @@ export interface Routes {
|
|
|
307
311
|
result: null;
|
|
308
312
|
action_type: 'ENCODE_CARD';
|
|
309
313
|
error: {
|
|
310
|
-
type:
|
|
314
|
+
type: 'no_card_on_encoder';
|
|
315
|
+
message: string;
|
|
316
|
+
} | {
|
|
317
|
+
type: 'incompatible_card_format';
|
|
311
318
|
message: string;
|
|
312
319
|
};
|
|
313
320
|
} | {
|
|
@@ -988,6 +995,10 @@ export interface Routes {
|
|
|
988
995
|
} | undefined;
|
|
989
996
|
is_managed: false;
|
|
990
997
|
}) | null;
|
|
998
|
+
warnings: Array<{
|
|
999
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
1000
|
+
warning_message: string;
|
|
1001
|
+
}>;
|
|
991
1002
|
};
|
|
992
1003
|
} | {
|
|
993
1004
|
/** The ID of the action attempt. */
|
|
@@ -1100,7 +1111,10 @@ export interface Routes {
|
|
|
1100
1111
|
result: null;
|
|
1101
1112
|
action_type: 'ENCODE_CARD';
|
|
1102
1113
|
error: {
|
|
1103
|
-
type:
|
|
1114
|
+
type: 'no_card_on_encoder';
|
|
1115
|
+
message: string;
|
|
1116
|
+
} | {
|
|
1117
|
+
type: 'incompatible_card_format';
|
|
1104
1118
|
message: string;
|
|
1105
1119
|
};
|
|
1106
1120
|
} | {
|
|
@@ -1938,6 +1952,10 @@ export interface Routes {
|
|
|
1938
1952
|
} | undefined;
|
|
1939
1953
|
is_managed: false;
|
|
1940
1954
|
}) | null;
|
|
1955
|
+
warnings: Array<{
|
|
1956
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
1957
|
+
warning_message: string;
|
|
1958
|
+
}>;
|
|
1941
1959
|
};
|
|
1942
1960
|
} | {
|
|
1943
1961
|
/** The ID of the action attempt. */
|
|
@@ -2050,7 +2068,10 @@ export interface Routes {
|
|
|
2050
2068
|
result: null;
|
|
2051
2069
|
action_type: 'ENCODE_CARD';
|
|
2052
2070
|
error: {
|
|
2053
|
-
type:
|
|
2071
|
+
type: 'no_card_on_encoder';
|
|
2072
|
+
message: string;
|
|
2073
|
+
} | {
|
|
2074
|
+
type: 'incompatible_card_format';
|
|
2054
2075
|
message: string;
|
|
2055
2076
|
};
|
|
2056
2077
|
} | {
|
|
@@ -2718,6 +2739,10 @@ export interface Routes {
|
|
|
2718
2739
|
} | undefined;
|
|
2719
2740
|
is_managed: false;
|
|
2720
2741
|
}) | null;
|
|
2742
|
+
warnings: Array<{
|
|
2743
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
2744
|
+
warning_message: string;
|
|
2745
|
+
}>;
|
|
2721
2746
|
};
|
|
2722
2747
|
} | {
|
|
2723
2748
|
/** The ID of the action attempt. */
|
|
@@ -2830,7 +2855,10 @@ export interface Routes {
|
|
|
2830
2855
|
result: null;
|
|
2831
2856
|
action_type: 'ENCODE_CARD';
|
|
2832
2857
|
error: {
|
|
2833
|
-
type:
|
|
2858
|
+
type: 'no_card_on_encoder';
|
|
2859
|
+
message: string;
|
|
2860
|
+
} | {
|
|
2861
|
+
type: 'incompatible_card_format';
|
|
2834
2862
|
message: string;
|
|
2835
2863
|
};
|
|
2836
2864
|
} | {
|
|
@@ -4291,6 +4319,10 @@ export interface Routes {
|
|
|
4291
4319
|
} | undefined;
|
|
4292
4320
|
is_managed: false;
|
|
4293
4321
|
}) | null;
|
|
4322
|
+
warnings: Array<{
|
|
4323
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
4324
|
+
warning_message: string;
|
|
4325
|
+
}>;
|
|
4294
4326
|
};
|
|
4295
4327
|
} | {
|
|
4296
4328
|
/** The ID of the action attempt. */
|
|
@@ -4403,7 +4435,10 @@ export interface Routes {
|
|
|
4403
4435
|
result: null;
|
|
4404
4436
|
action_type: 'ENCODE_CARD';
|
|
4405
4437
|
error: {
|
|
4406
|
-
type:
|
|
4438
|
+
type: 'no_card_on_encoder';
|
|
4439
|
+
message: string;
|
|
4440
|
+
} | {
|
|
4441
|
+
type: 'incompatible_card_format';
|
|
4407
4442
|
message: string;
|
|
4408
4443
|
};
|
|
4409
4444
|
} | {
|
|
@@ -5413,6 +5448,10 @@ export interface Routes {
|
|
|
5413
5448
|
} | undefined;
|
|
5414
5449
|
is_managed: false;
|
|
5415
5450
|
}) | null;
|
|
5451
|
+
warnings: Array<{
|
|
5452
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
5453
|
+
warning_message: string;
|
|
5454
|
+
}>;
|
|
5416
5455
|
};
|
|
5417
5456
|
} | {
|
|
5418
5457
|
/** The ID of the action attempt. */
|
|
@@ -5525,7 +5564,10 @@ export interface Routes {
|
|
|
5525
5564
|
result: null;
|
|
5526
5565
|
action_type: 'ENCODE_CARD';
|
|
5527
5566
|
error: {
|
|
5528
|
-
type:
|
|
5567
|
+
type: 'no_card_on_encoder';
|
|
5568
|
+
message: string;
|
|
5569
|
+
} | {
|
|
5570
|
+
type: 'incompatible_card_format';
|
|
5529
5571
|
message: string;
|
|
5530
5572
|
};
|
|
5531
5573
|
} | {
|
|
@@ -7234,6 +7276,10 @@ export interface Routes {
|
|
|
7234
7276
|
} | undefined;
|
|
7235
7277
|
is_managed: false;
|
|
7236
7278
|
}) | null;
|
|
7279
|
+
warnings: Array<{
|
|
7280
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
7281
|
+
warning_message: string;
|
|
7282
|
+
}>;
|
|
7237
7283
|
};
|
|
7238
7284
|
} | {
|
|
7239
7285
|
/** The ID of the action attempt. */
|
|
@@ -7346,7 +7392,10 @@ export interface Routes {
|
|
|
7346
7392
|
result: null;
|
|
7347
7393
|
action_type: 'ENCODE_CARD';
|
|
7348
7394
|
error: {
|
|
7349
|
-
type:
|
|
7395
|
+
type: 'no_card_on_encoder';
|
|
7396
|
+
message: string;
|
|
7397
|
+
} | {
|
|
7398
|
+
type: 'incompatible_card_format';
|
|
7350
7399
|
message: string;
|
|
7351
7400
|
};
|
|
7352
7401
|
} | {
|
|
@@ -7876,6 +7925,10 @@ export interface Routes {
|
|
|
7876
7925
|
} | undefined;
|
|
7877
7926
|
is_managed: false;
|
|
7878
7927
|
}) | null;
|
|
7928
|
+
warnings: Array<{
|
|
7929
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
7930
|
+
warning_message: string;
|
|
7931
|
+
}>;
|
|
7879
7932
|
};
|
|
7880
7933
|
} | {
|
|
7881
7934
|
/** The ID of the action attempt. */
|
|
@@ -7988,7 +8041,10 @@ export interface Routes {
|
|
|
7988
8041
|
result: null;
|
|
7989
8042
|
action_type: 'ENCODE_CARD';
|
|
7990
8043
|
error: {
|
|
7991
|
-
type:
|
|
8044
|
+
type: 'no_card_on_encoder';
|
|
8045
|
+
message: string;
|
|
8046
|
+
} | {
|
|
8047
|
+
type: 'incompatible_card_format';
|
|
7992
8048
|
message: string;
|
|
7993
8049
|
};
|
|
7994
8050
|
} | {
|
|
@@ -12187,6 +12243,10 @@ export interface Routes {
|
|
|
12187
12243
|
} | undefined;
|
|
12188
12244
|
is_managed: false;
|
|
12189
12245
|
}) | null;
|
|
12246
|
+
warnings: Array<{
|
|
12247
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
12248
|
+
warning_message: string;
|
|
12249
|
+
}>;
|
|
12190
12250
|
};
|
|
12191
12251
|
} | {
|
|
12192
12252
|
/** The ID of the action attempt. */
|
|
@@ -12299,7 +12359,10 @@ export interface Routes {
|
|
|
12299
12359
|
result: null;
|
|
12300
12360
|
action_type: 'ENCODE_CARD';
|
|
12301
12361
|
error: {
|
|
12302
|
-
type:
|
|
12362
|
+
type: 'no_card_on_encoder';
|
|
12363
|
+
message: string;
|
|
12364
|
+
} | {
|
|
12365
|
+
type: 'incompatible_card_format';
|
|
12303
12366
|
message: string;
|
|
12304
12367
|
};
|
|
12305
12368
|
} | {
|
|
@@ -12830,6 +12893,10 @@ export interface Routes {
|
|
|
12830
12893
|
} | undefined;
|
|
12831
12894
|
is_managed: false;
|
|
12832
12895
|
}) | null;
|
|
12896
|
+
warnings: Array<{
|
|
12897
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
12898
|
+
warning_message: string;
|
|
12899
|
+
}>;
|
|
12833
12900
|
};
|
|
12834
12901
|
} | {
|
|
12835
12902
|
/** The ID of the action attempt. */
|
|
@@ -12942,7 +13009,10 @@ export interface Routes {
|
|
|
12942
13009
|
result: null;
|
|
12943
13010
|
action_type: 'ENCODE_CARD';
|
|
12944
13011
|
error: {
|
|
12945
|
-
type:
|
|
13012
|
+
type: 'no_card_on_encoder';
|
|
13013
|
+
message: string;
|
|
13014
|
+
} | {
|
|
13015
|
+
type: 'incompatible_card_format';
|
|
12946
13016
|
message: string;
|
|
12947
13017
|
};
|
|
12948
13018
|
} | {
|
|
@@ -14455,6 +14525,10 @@ export interface Routes {
|
|
|
14455
14525
|
} | undefined;
|
|
14456
14526
|
is_managed: false;
|
|
14457
14527
|
}) | null;
|
|
14528
|
+
warnings: Array<{
|
|
14529
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
14530
|
+
warning_message: string;
|
|
14531
|
+
}>;
|
|
14458
14532
|
};
|
|
14459
14533
|
} | {
|
|
14460
14534
|
/** The ID of the action attempt. */
|
|
@@ -14567,7 +14641,10 @@ export interface Routes {
|
|
|
14567
14641
|
result: null;
|
|
14568
14642
|
action_type: 'ENCODE_CARD';
|
|
14569
14643
|
error: {
|
|
14570
|
-
type:
|
|
14644
|
+
type: 'no_card_on_encoder';
|
|
14645
|
+
message: string;
|
|
14646
|
+
} | {
|
|
14647
|
+
type: 'incompatible_card_format';
|
|
14571
14648
|
message: string;
|
|
14572
14649
|
};
|
|
14573
14650
|
} | {
|
|
@@ -15108,6 +15185,10 @@ export interface Routes {
|
|
|
15108
15185
|
} | undefined;
|
|
15109
15186
|
is_managed: false;
|
|
15110
15187
|
}) | null;
|
|
15188
|
+
warnings: Array<{
|
|
15189
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
15190
|
+
warning_message: string;
|
|
15191
|
+
}>;
|
|
15111
15192
|
};
|
|
15112
15193
|
} | {
|
|
15113
15194
|
/** The ID of the action attempt. */
|
|
@@ -15220,7 +15301,10 @@ export interface Routes {
|
|
|
15220
15301
|
result: null;
|
|
15221
15302
|
action_type: 'ENCODE_CARD';
|
|
15222
15303
|
error: {
|
|
15223
|
-
type:
|
|
15304
|
+
type: 'no_card_on_encoder';
|
|
15305
|
+
message: string;
|
|
15306
|
+
} | {
|
|
15307
|
+
type: 'incompatible_card_format';
|
|
15224
15308
|
message: string;
|
|
15225
15309
|
};
|
|
15226
15310
|
} | {
|
|
@@ -15800,6 +15884,10 @@ export interface Routes {
|
|
|
15800
15884
|
} | undefined;
|
|
15801
15885
|
is_managed: false;
|
|
15802
15886
|
}) | null;
|
|
15887
|
+
warnings: Array<{
|
|
15888
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
15889
|
+
warning_message: string;
|
|
15890
|
+
}>;
|
|
15803
15891
|
};
|
|
15804
15892
|
} | {
|
|
15805
15893
|
/** The ID of the action attempt. */
|
|
@@ -15912,7 +16000,10 @@ export interface Routes {
|
|
|
15912
16000
|
result: null;
|
|
15913
16001
|
action_type: 'ENCODE_CARD';
|
|
15914
16002
|
error: {
|
|
15915
|
-
type:
|
|
16003
|
+
type: 'no_card_on_encoder';
|
|
16004
|
+
message: string;
|
|
16005
|
+
} | {
|
|
16006
|
+
type: 'incompatible_card_format';
|
|
15916
16007
|
message: string;
|
|
15917
16008
|
};
|
|
15918
16009
|
} | {
|
|
@@ -16625,6 +16716,10 @@ export interface Routes {
|
|
|
16625
16716
|
} | undefined;
|
|
16626
16717
|
is_managed: false;
|
|
16627
16718
|
}) | null;
|
|
16719
|
+
warnings: Array<{
|
|
16720
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
16721
|
+
warning_message: string;
|
|
16722
|
+
}>;
|
|
16628
16723
|
};
|
|
16629
16724
|
} | {
|
|
16630
16725
|
/** The ID of the action attempt. */
|
|
@@ -16737,7 +16832,10 @@ export interface Routes {
|
|
|
16737
16832
|
result: null;
|
|
16738
16833
|
action_type: 'ENCODE_CARD';
|
|
16739
16834
|
error: {
|
|
16740
|
-
type:
|
|
16835
|
+
type: 'no_card_on_encoder';
|
|
16836
|
+
message: string;
|
|
16837
|
+
} | {
|
|
16838
|
+
type: 'incompatible_card_format';
|
|
16741
16839
|
message: string;
|
|
16742
16840
|
};
|
|
16743
16841
|
} | {
|
|
@@ -17270,6 +17368,10 @@ export interface Routes {
|
|
|
17270
17368
|
} | undefined;
|
|
17271
17369
|
is_managed: false;
|
|
17272
17370
|
}) | null;
|
|
17371
|
+
warnings: Array<{
|
|
17372
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
17373
|
+
warning_message: string;
|
|
17374
|
+
}>;
|
|
17273
17375
|
};
|
|
17274
17376
|
} | {
|
|
17275
17377
|
/** The ID of the action attempt. */
|
|
@@ -17382,7 +17484,10 @@ export interface Routes {
|
|
|
17382
17484
|
result: null;
|
|
17383
17485
|
action_type: 'ENCODE_CARD';
|
|
17384
17486
|
error: {
|
|
17385
|
-
type:
|
|
17487
|
+
type: 'no_card_on_encoder';
|
|
17488
|
+
message: string;
|
|
17489
|
+
} | {
|
|
17490
|
+
type: 'incompatible_card_format';
|
|
17386
17491
|
message: string;
|
|
17387
17492
|
};
|
|
17388
17493
|
} | {
|
|
@@ -18419,6 +18524,10 @@ export interface Routes {
|
|
|
18419
18524
|
} | undefined;
|
|
18420
18525
|
is_managed: false;
|
|
18421
18526
|
}) | null;
|
|
18527
|
+
warnings: Array<{
|
|
18528
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
18529
|
+
warning_message: string;
|
|
18530
|
+
}>;
|
|
18422
18531
|
};
|
|
18423
18532
|
} | {
|
|
18424
18533
|
/** The ID of the action attempt. */
|
|
@@ -18531,7 +18640,10 @@ export interface Routes {
|
|
|
18531
18640
|
result: null;
|
|
18532
18641
|
action_type: 'ENCODE_CARD';
|
|
18533
18642
|
error: {
|
|
18534
|
-
type:
|
|
18643
|
+
type: 'no_card_on_encoder';
|
|
18644
|
+
message: string;
|
|
18645
|
+
} | {
|
|
18646
|
+
type: 'incompatible_card_format';
|
|
18535
18647
|
message: string;
|
|
18536
18648
|
};
|
|
18537
18649
|
} | {
|
|
@@ -19066,6 +19178,10 @@ export interface Routes {
|
|
|
19066
19178
|
} | undefined;
|
|
19067
19179
|
is_managed: false;
|
|
19068
19180
|
}) | null;
|
|
19181
|
+
warnings: Array<{
|
|
19182
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
19183
|
+
warning_message: string;
|
|
19184
|
+
}>;
|
|
19069
19185
|
};
|
|
19070
19186
|
} | {
|
|
19071
19187
|
/** The ID of the action attempt. */
|
|
@@ -19178,7 +19294,10 @@ export interface Routes {
|
|
|
19178
19294
|
result: null;
|
|
19179
19295
|
action_type: 'ENCODE_CARD';
|
|
19180
19296
|
error: {
|
|
19181
|
-
type:
|
|
19297
|
+
type: 'no_card_on_encoder';
|
|
19298
|
+
message: string;
|
|
19299
|
+
} | {
|
|
19300
|
+
type: 'incompatible_card_format';
|
|
19182
19301
|
message: string;
|
|
19183
19302
|
};
|
|
19184
19303
|
} | {
|
|
@@ -20652,6 +20771,10 @@ export interface Routes {
|
|
|
20652
20771
|
} | undefined;
|
|
20653
20772
|
is_managed: false;
|
|
20654
20773
|
}) | null;
|
|
20774
|
+
warnings: Array<{
|
|
20775
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
20776
|
+
warning_message: string;
|
|
20777
|
+
}>;
|
|
20655
20778
|
};
|
|
20656
20779
|
} | {
|
|
20657
20780
|
/** The ID of the action attempt. */
|
|
@@ -20764,7 +20887,10 @@ export interface Routes {
|
|
|
20764
20887
|
result: null;
|
|
20765
20888
|
action_type: 'ENCODE_CARD';
|
|
20766
20889
|
error: {
|
|
20767
|
-
type:
|
|
20890
|
+
type: 'no_card_on_encoder';
|
|
20891
|
+
message: string;
|
|
20892
|
+
} | {
|
|
20893
|
+
type: 'incompatible_card_format';
|
|
20768
20894
|
message: string;
|
|
20769
20895
|
};
|
|
20770
20896
|
} | {
|
|
@@ -21416,6 +21542,10 @@ export interface Routes {
|
|
|
21416
21542
|
} | undefined;
|
|
21417
21543
|
is_managed: false;
|
|
21418
21544
|
}) | null;
|
|
21545
|
+
warnings: Array<{
|
|
21546
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
21547
|
+
warning_message: string;
|
|
21548
|
+
}>;
|
|
21419
21549
|
};
|
|
21420
21550
|
} | {
|
|
21421
21551
|
/** The ID of the action attempt. */
|
|
@@ -21528,7 +21658,10 @@ export interface Routes {
|
|
|
21528
21658
|
result: null;
|
|
21529
21659
|
action_type: 'ENCODE_CARD';
|
|
21530
21660
|
error: {
|
|
21531
|
-
type:
|
|
21661
|
+
type: 'no_card_on_encoder';
|
|
21662
|
+
message: string;
|
|
21663
|
+
} | {
|
|
21664
|
+
type: 'incompatible_card_format';
|
|
21532
21665
|
message: string;
|
|
21533
21666
|
};
|
|
21534
21667
|
} | {
|
|
@@ -23587,6 +23720,10 @@ export interface Routes {
|
|
|
23587
23720
|
} | undefined;
|
|
23588
23721
|
is_managed: false;
|
|
23589
23722
|
}) | null;
|
|
23723
|
+
warnings: Array<{
|
|
23724
|
+
warning_code: 'acs_credential_on_encoder_out_of_sync';
|
|
23725
|
+
warning_message: string;
|
|
23726
|
+
}>;
|
|
23590
23727
|
};
|
|
23591
23728
|
} | {
|
|
23592
23729
|
/** The ID of the action attempt. */
|
|
@@ -23699,7 +23836,10 @@ export interface Routes {
|
|
|
23699
23836
|
result: null;
|
|
23700
23837
|
action_type: 'ENCODE_CARD';
|
|
23701
23838
|
error: {
|
|
23702
|
-
type:
|
|
23839
|
+
type: 'no_card_on_encoder';
|
|
23840
|
+
message: string;
|
|
23841
|
+
} | {
|
|
23842
|
+
type: 'incompatible_card_format';
|
|
23703
23843
|
message: string;
|
|
23704
23844
|
};
|
|
23705
23845
|
} | {
|
package/package.json
CHANGED
|
@@ -12,11 +12,21 @@ import {
|
|
|
12
12
|
|
|
13
13
|
const action_type = z.literal('ENCODE_CARD')
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
type: z.
|
|
15
|
+
const no_card_on_encoder_error = z.object({
|
|
16
|
+
type: z.literal('no_card_on_encoder'),
|
|
17
17
|
message: z.string(),
|
|
18
18
|
})
|
|
19
19
|
|
|
20
|
+
const incompatible_card_format_error = z.object({
|
|
21
|
+
type: z.literal('incompatible_card_format'),
|
|
22
|
+
message: z.string(),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const error = z.union([
|
|
26
|
+
no_card_on_encoder_error,
|
|
27
|
+
incompatible_card_format_error,
|
|
28
|
+
])
|
|
29
|
+
|
|
20
30
|
const result = acs_credential.or(unmanaged_acs_credential)
|
|
21
31
|
|
|
22
32
|
export const encode_card_action_attempt = z.discriminatedUnion('status', [
|
|
@@ -18,6 +18,11 @@ const error = z.object({
|
|
|
18
18
|
message: z.string(),
|
|
19
19
|
})
|
|
20
20
|
|
|
21
|
+
const warning = z.object({
|
|
22
|
+
warning_code: z.literal('acs_credential_on_encoder_out_of_sync'),
|
|
23
|
+
warning_message: z.string(),
|
|
24
|
+
})
|
|
25
|
+
|
|
21
26
|
const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential)
|
|
22
27
|
|
|
23
28
|
const result = z.object({
|
|
@@ -27,6 +32,7 @@ const result = z.object({
|
|
|
27
32
|
acs_credential_on_seam: acs_credential_on_seam
|
|
28
33
|
.nullable()
|
|
29
34
|
.describe('Matching acs_credential currently encoded on this card.'),
|
|
35
|
+
warnings: z.array(warning),
|
|
30
36
|
})
|
|
31
37
|
|
|
32
38
|
export const scan_card_action_attempt = z.discriminatedUnion('status', [
|
|
@@ -1610,10 +1610,25 @@ export default {
|
|
|
1610
1610
|
},
|
|
1611
1611
|
],
|
|
1612
1612
|
},
|
|
1613
|
+
warnings: {
|
|
1614
|
+
items: {
|
|
1615
|
+
properties: {
|
|
1616
|
+
warning_code: {
|
|
1617
|
+
enum: ['acs_credential_on_encoder_out_of_sync'],
|
|
1618
|
+
type: 'string',
|
|
1619
|
+
},
|
|
1620
|
+
warning_message: { type: 'string' },
|
|
1621
|
+
},
|
|
1622
|
+
required: ['warning_code', 'warning_message'],
|
|
1623
|
+
type: 'object',
|
|
1624
|
+
},
|
|
1625
|
+
type: 'array',
|
|
1626
|
+
},
|
|
1613
1627
|
},
|
|
1614
1628
|
required: [
|
|
1615
1629
|
'acs_credential_on_encoder',
|
|
1616
1630
|
'acs_credential_on_seam',
|
|
1631
|
+
'warnings',
|
|
1617
1632
|
],
|
|
1618
1633
|
type: 'object',
|
|
1619
1634
|
},
|
|
@@ -1942,12 +1957,27 @@ export default {
|
|
|
1942
1957
|
},
|
|
1943
1958
|
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
1944
1959
|
error: {
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1960
|
+
oneOf: [
|
|
1961
|
+
{
|
|
1962
|
+
properties: {
|
|
1963
|
+
message: { type: 'string' },
|
|
1964
|
+
type: { enum: ['no_card_on_encoder'], type: 'string' },
|
|
1965
|
+
},
|
|
1966
|
+
required: ['type', 'message'],
|
|
1967
|
+
type: 'object',
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
properties: {
|
|
1971
|
+
message: { type: 'string' },
|
|
1972
|
+
type: {
|
|
1973
|
+
enum: ['incompatible_card_format'],
|
|
1974
|
+
type: 'string',
|
|
1975
|
+
},
|
|
1976
|
+
},
|
|
1977
|
+
required: ['type', 'message'],
|
|
1978
|
+
type: 'object',
|
|
1979
|
+
},
|
|
1980
|
+
],
|
|
1951
1981
|
},
|
|
1952
1982
|
result: { nullable: true },
|
|
1953
1983
|
status: { enum: ['error'], type: 'string' },
|