@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.
@@ -575,7 +575,21 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
575
575
  is_latest_desired_state_synced_with_provider?: boolean | undefined;
576
576
  latest_desired_state_synced_with_provider_at?: string | undefined;
577
577
  }>]>>;
578
+ warnings: z.ZodArray<z.ZodObject<{
579
+ warning_code: z.ZodLiteral<"acs_credential_on_encoder_out_of_sync">;
580
+ warning_message: z.ZodString;
581
+ }, "strip", z.ZodTypeAny, {
582
+ warning_code: "acs_credential_on_encoder_out_of_sync";
583
+ warning_message: string;
584
+ }, {
585
+ warning_code: "acs_credential_on_encoder_out_of_sync";
586
+ warning_message: string;
587
+ }>, "many">;
578
588
  }, "strip", z.ZodTypeAny, {
589
+ warnings: {
590
+ warning_code: "acs_credential_on_encoder_out_of_sync";
591
+ warning_message: string;
592
+ }[];
579
593
  acs_credential_on_encoder: {
580
594
  created_at: string | null;
581
595
  starts_at: string | null;
@@ -679,6 +693,10 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
679
693
  latest_desired_state_synced_with_provider_at?: string | undefined;
680
694
  } | null;
681
695
  }, {
696
+ warnings: {
697
+ warning_code: "acs_credential_on_encoder_out_of_sync";
698
+ warning_message: string;
699
+ }[];
682
700
  acs_credential_on_encoder: {
683
701
  created_at: string | null;
684
702
  starts_at: string | null;
@@ -787,6 +805,10 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
787
805
  status: "success";
788
806
  action_attempt_id: string;
789
807
  result: {
808
+ warnings: {
809
+ warning_code: "acs_credential_on_encoder_out_of_sync";
810
+ warning_message: string;
811
+ }[];
790
812
  acs_credential_on_encoder: {
791
813
  created_at: string | null;
792
814
  starts_at: string | null;
@@ -896,6 +918,10 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
896
918
  status: "success";
897
919
  action_attempt_id: string;
898
920
  result: {
921
+ warnings: {
922
+ warning_code: "acs_credential_on_encoder_out_of_sync";
923
+ warning_message: string;
924
+ }[];
899
925
  acs_credential_on_encoder: {
900
926
  created_at: string | null;
901
927
  starts_at: string | null;
@@ -1548,19 +1574,31 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
1548
1574
  result: z.ZodNull;
1549
1575
  }>, {
1550
1576
  action_type: z.ZodLiteral<"ENCODE_CARD">;
1551
- error: z.ZodObject<{
1552
- type: z.ZodString;
1577
+ error: z.ZodUnion<[z.ZodObject<{
1578
+ type: z.ZodLiteral<"no_card_on_encoder">;
1553
1579
  message: z.ZodString;
1554
1580
  }, "strip", z.ZodTypeAny, {
1555
- type: string;
1581
+ type: "no_card_on_encoder";
1556
1582
  message: string;
1557
1583
  }, {
1558
- type: string;
1584
+ type: "no_card_on_encoder";
1559
1585
  message: string;
1560
- }>;
1586
+ }>, z.ZodObject<{
1587
+ type: z.ZodLiteral<"incompatible_card_format">;
1588
+ message: z.ZodString;
1589
+ }, "strip", z.ZodTypeAny, {
1590
+ type: "incompatible_card_format";
1591
+ message: string;
1592
+ }, {
1593
+ type: "incompatible_card_format";
1594
+ message: string;
1595
+ }>]>;
1561
1596
  }>, "strip", z.ZodTypeAny, {
1562
1597
  error: {
1563
- type: string;
1598
+ type: "no_card_on_encoder";
1599
+ message: string;
1600
+ } | {
1601
+ type: "incompatible_card_format";
1564
1602
  message: string;
1565
1603
  };
1566
1604
  status: "error";
@@ -1569,7 +1607,10 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
1569
1607
  action_type: "ENCODE_CARD";
1570
1608
  }, {
1571
1609
  error: {
1572
- type: string;
1610
+ type: "no_card_on_encoder";
1611
+ message: string;
1612
+ } | {
1613
+ type: "incompatible_card_format";
1573
1614
  message: string;
1574
1615
  };
1575
1616
  status: "error";
@@ -511,19 +511,31 @@ export declare const encode_card_action_attempt: z.ZodDiscriminatedUnion<"status
511
511
  result: z.ZodNull;
512
512
  }>, {
513
513
  action_type: z.ZodLiteral<"ENCODE_CARD">;
514
- error: z.ZodObject<{
515
- type: z.ZodString;
514
+ error: z.ZodUnion<[z.ZodObject<{
515
+ type: z.ZodLiteral<"no_card_on_encoder">;
516
516
  message: z.ZodString;
517
517
  }, "strip", z.ZodTypeAny, {
518
- type: string;
518
+ type: "no_card_on_encoder";
519
519
  message: string;
520
520
  }, {
521
- type: string;
521
+ type: "no_card_on_encoder";
522
522
  message: string;
523
- }>;
523
+ }>, z.ZodObject<{
524
+ type: z.ZodLiteral<"incompatible_card_format">;
525
+ message: z.ZodString;
526
+ }, "strip", z.ZodTypeAny, {
527
+ type: "incompatible_card_format";
528
+ message: string;
529
+ }, {
530
+ type: "incompatible_card_format";
531
+ message: string;
532
+ }>]>;
524
533
  }>, "strip", z.ZodTypeAny, {
525
534
  error: {
526
- type: string;
535
+ type: "no_card_on_encoder";
536
+ message: string;
537
+ } | {
538
+ type: "incompatible_card_format";
527
539
  message: string;
528
540
  };
529
541
  status: "error";
@@ -532,7 +544,10 @@ export declare const encode_card_action_attempt: z.ZodDiscriminatedUnion<"status
532
544
  action_type: "ENCODE_CARD";
533
545
  }, {
534
546
  error: {
535
- type: string;
547
+ type: "no_card_on_encoder";
548
+ message: string;
549
+ } | {
550
+ type: "incompatible_card_format";
536
551
  message: string;
537
552
  };
538
553
  status: "error";
@@ -2,10 +2,18 @@ import { z } from 'zod';
2
2
  import { acs_credential, unmanaged_acs_credential, } from '../acs/acs-credential.js';
3
3
  import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
4
4
  const action_type = z.literal('ENCODE_CARD');
5
- const error = z.object({
6
- type: z.string(), // TODO This should be typed properly with the possible errors
5
+ const no_card_on_encoder_error = z.object({
6
+ type: z.literal('no_card_on_encoder'),
7
7
  message: z.string(),
8
8
  });
9
+ const incompatible_card_format_error = z.object({
10
+ type: z.literal('incompatible_card_format'),
11
+ message: z.string(),
12
+ });
13
+ const error = z.union([
14
+ no_card_on_encoder_error,
15
+ incompatible_card_format_error,
16
+ ]);
9
17
  const result = acs_credential.or(unmanaged_acs_credential);
10
18
  export const encode_card_action_attempt = z.discriminatedUnion('status', [
11
19
  common_pending_action_attempt
@@ -1 +1 @@
1
- {"version":3,"file":"encode-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-card.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,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;AAE5C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,8DAA8D;IAChF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACvE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;IACxD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,qDAAqD,CAAC;IAClE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC,CAAA"}
1
+ {"version":3,"file":"encode-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-card.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,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;AAE5C,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,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,wBAAwB;IACxB,8BAA8B;CAC/B,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACvE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;IACxD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,qDAAqD,CAAC;IAClE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC,CAAA"}
@@ -419,7 +419,21 @@ export declare const scan_card_action_attempt: z.ZodDiscriminatedUnion<"status",
419
419
  is_latest_desired_state_synced_with_provider?: boolean | undefined;
420
420
  latest_desired_state_synced_with_provider_at?: string | undefined;
421
421
  }>]>>;
422
+ warnings: z.ZodArray<z.ZodObject<{
423
+ warning_code: z.ZodLiteral<"acs_credential_on_encoder_out_of_sync">;
424
+ warning_message: z.ZodString;
425
+ }, "strip", z.ZodTypeAny, {
426
+ warning_code: "acs_credential_on_encoder_out_of_sync";
427
+ warning_message: string;
428
+ }, {
429
+ warning_code: "acs_credential_on_encoder_out_of_sync";
430
+ warning_message: string;
431
+ }>, "many">;
422
432
  }, "strip", z.ZodTypeAny, {
433
+ warnings: {
434
+ warning_code: "acs_credential_on_encoder_out_of_sync";
435
+ warning_message: string;
436
+ }[];
423
437
  acs_credential_on_encoder: {
424
438
  created_at: string | null;
425
439
  starts_at: string | null;
@@ -523,6 +537,10 @@ export declare const scan_card_action_attempt: z.ZodDiscriminatedUnion<"status",
523
537
  latest_desired_state_synced_with_provider_at?: string | undefined;
524
538
  } | null;
525
539
  }, {
540
+ warnings: {
541
+ warning_code: "acs_credential_on_encoder_out_of_sync";
542
+ warning_message: string;
543
+ }[];
526
544
  acs_credential_on_encoder: {
527
545
  created_at: string | null;
528
546
  starts_at: string | null;
@@ -631,6 +649,10 @@ export declare const scan_card_action_attempt: z.ZodDiscriminatedUnion<"status",
631
649
  status: "success";
632
650
  action_attempt_id: string;
633
651
  result: {
652
+ warnings: {
653
+ warning_code: "acs_credential_on_encoder_out_of_sync";
654
+ warning_message: string;
655
+ }[];
634
656
  acs_credential_on_encoder: {
635
657
  created_at: string | null;
636
658
  starts_at: string | null;
@@ -740,6 +762,10 @@ export declare const scan_card_action_attempt: z.ZodDiscriminatedUnion<"status",
740
762
  status: "success";
741
763
  action_attempt_id: string;
742
764
  result: {
765
+ warnings: {
766
+ warning_code: "acs_credential_on_encoder_out_of_sync";
767
+ warning_message: string;
768
+ }[];
743
769
  acs_credential_on_encoder: {
744
770
  created_at: string | null;
745
771
  starts_at: string | null;
@@ -6,12 +6,17 @@ const error = z.object({
6
6
  type: z.literal('no_card_on_encoder'),
7
7
  message: z.string(),
8
8
  });
9
+ const warning = z.object({
10
+ warning_code: z.literal('acs_credential_on_encoder_out_of_sync'),
11
+ warning_message: z.string(),
12
+ });
9
13
  const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential);
10
14
  const result = z.object({
11
15
  acs_credential_on_encoder: acs_credential_on_encoder.describe('Snapshot of the card data read from the physical encoder.'),
12
16
  acs_credential_on_seam: acs_credential_on_seam
13
17
  .nullable()
14
18
  .describe('Matching acs_credential currently encoded on this card.'),
19
+ warnings: z.array(warning),
15
20
  });
16
21
  export const scan_card_action_attempt = z.discriminatedUnion('status', [
17
22
  common_pending_action_attempt
@@ -1 +1 @@
1
- {"version":3,"file":"scan-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/scan-card.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,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;AAE1C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1E,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,yBAAyB,EAAE,yBAAyB,CAAC,QAAQ,CAC3D,2DAA2D,CAC5D;IACD,sBAAsB,EAAE,sBAAsB;SAC3C,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;CACvE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,0CAA0C,CAAC;IACvD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,oDAAoD,CAAC;IACjE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA"}
1
+ {"version":3,"file":"scan-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/scan-card.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,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;AAE1C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAAC;IAChE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1E,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,yBAAyB,EAAE,yBAAyB,CAAC,QAAQ,CAC3D,2DAA2D,CAC5D;IACD,sBAAsB,EAAE,sBAAsB;SAC3C,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;CAC3B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,0CAA0C,CAAC;IACvD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,oDAAoD,CAAC;IACjE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA"}
@@ -937,6 +937,7 @@ declare const _default: {
937
937
  properties?: never;
938
938
  required?: never;
939
939
  type?: never;
940
+ oneOf?: never;
940
941
  };
941
942
  result: {
942
943
  nullable: boolean;
@@ -970,11 +971,13 @@ declare const _default: {
970
971
  properties?: never;
971
972
  required?: never;
972
973
  type?: never;
974
+ oneOf?: never;
973
975
  };
974
976
  result: {
975
977
  properties: {
976
978
  acs_credential_on_encoder?: never;
977
979
  acs_credential_on_seam?: never;
980
+ warnings?: never;
978
981
  access_code?: never;
979
982
  noise_threshold?: never;
980
983
  };
@@ -1016,6 +1019,7 @@ declare const _default: {
1016
1019
  required: string[];
1017
1020
  type: string;
1018
1021
  nullable?: never;
1022
+ oneOf?: never;
1019
1023
  };
1020
1024
  result: {
1021
1025
  nullable: boolean;
@@ -1049,6 +1053,7 @@ declare const _default: {
1049
1053
  properties?: never;
1050
1054
  required?: never;
1051
1055
  type?: never;
1056
+ oneOf?: never;
1052
1057
  };
1053
1058
  result: {
1054
1059
  properties: {
@@ -1300,6 +1305,22 @@ declare const _default: {
1300
1305
  type: string;
1301
1306
  }[];
1302
1307
  };
1308
+ warnings: {
1309
+ items: {
1310
+ properties: {
1311
+ warning_code: {
1312
+ enum: string[];
1313
+ type: string;
1314
+ };
1315
+ warning_message: {
1316
+ type: string;
1317
+ };
1318
+ };
1319
+ required: string[];
1320
+ type: string;
1321
+ };
1322
+ type: string;
1323
+ };
1303
1324
  access_code?: never;
1304
1325
  noise_threshold?: never;
1305
1326
  };
@@ -1341,6 +1362,7 @@ declare const _default: {
1341
1362
  required: string[];
1342
1363
  type: string;
1343
1364
  nullable?: never;
1365
+ oneOf?: never;
1344
1366
  };
1345
1367
  result: {
1346
1368
  nullable: boolean;
@@ -1374,6 +1396,7 @@ declare const _default: {
1374
1396
  properties?: never;
1375
1397
  required?: never;
1376
1398
  type?: never;
1399
+ oneOf?: never;
1377
1400
  };
1378
1401
  result: {
1379
1402
  oneOf: {
@@ -1546,6 +1569,52 @@ declare const _default: {
1546
1569
  };
1547
1570
  required: string[];
1548
1571
  type: string;
1572
+ } | {
1573
+ description: string;
1574
+ properties: {
1575
+ action_attempt_id: {
1576
+ description: string;
1577
+ format: string;
1578
+ type: string;
1579
+ 'x-title': string;
1580
+ };
1581
+ action_type: {
1582
+ enum: string[];
1583
+ type: string;
1584
+ };
1585
+ error: {
1586
+ oneOf: {
1587
+ properties: {
1588
+ message: {
1589
+ type: string;
1590
+ };
1591
+ type: {
1592
+ enum: string[];
1593
+ type: string;
1594
+ };
1595
+ };
1596
+ required: string[];
1597
+ type: string;
1598
+ }[];
1599
+ nullable?: never;
1600
+ properties?: never;
1601
+ required?: never;
1602
+ type?: never;
1603
+ };
1604
+ result: {
1605
+ nullable: boolean;
1606
+ properties?: never;
1607
+ type?: never;
1608
+ required?: never;
1609
+ oneOf?: never;
1610
+ };
1611
+ status: {
1612
+ enum: string[];
1613
+ type: string;
1614
+ };
1615
+ };
1616
+ required: string[];
1617
+ type: string;
1549
1618
  } | {
1550
1619
  properties: {
1551
1620
  action_attempt_id: {
@@ -1563,6 +1632,7 @@ declare const _default: {
1563
1632
  properties?: never;
1564
1633
  required?: never;
1565
1634
  type?: never;
1635
+ oneOf?: never;
1566
1636
  };
1567
1637
  result: {
1568
1638
  nullable: boolean;
@@ -1596,11 +1666,13 @@ declare const _default: {
1596
1666
  properties?: never;
1597
1667
  required?: never;
1598
1668
  type?: never;
1669
+ oneOf?: never;
1599
1670
  };
1600
1671
  result: {
1601
1672
  properties: {
1602
1673
  acs_credential_on_encoder?: never;
1603
1674
  acs_credential_on_seam?: never;
1675
+ warnings?: never;
1604
1676
  access_code?: never;
1605
1677
  noise_threshold?: never;
1606
1678
  };
@@ -1642,6 +1714,7 @@ declare const _default: {
1642
1714
  required: string[];
1643
1715
  type: string;
1644
1716
  nullable?: never;
1717
+ oneOf?: never;
1645
1718
  };
1646
1719
  result: {
1647
1720
  nullable: boolean;
@@ -1675,12 +1748,14 @@ declare const _default: {
1675
1748
  properties?: never;
1676
1749
  required?: never;
1677
1750
  type?: never;
1751
+ oneOf?: never;
1678
1752
  };
1679
1753
  result: {
1680
1754
  properties: {
1681
1755
  access_code: {};
1682
1756
  acs_credential_on_encoder?: never;
1683
1757
  acs_credential_on_seam?: never;
1758
+ warnings?: never;
1684
1759
  noise_threshold?: never;
1685
1760
  };
1686
1761
  type: string;
@@ -1713,12 +1788,14 @@ declare const _default: {
1713
1788
  properties?: never;
1714
1789
  required?: never;
1715
1790
  type?: never;
1791
+ oneOf?: never;
1716
1792
  };
1717
1793
  result: {
1718
1794
  properties: {
1719
1795
  noise_threshold: {};
1720
1796
  acs_credential_on_encoder?: never;
1721
1797
  acs_credential_on_seam?: never;
1798
+ warnings?: never;
1722
1799
  access_code?: never;
1723
1800
  };
1724
1801
  type: string;
@@ -1520,10 +1520,25 @@ export default {
1520
1520
  },
1521
1521
  ],
1522
1522
  },
1523
+ warnings: {
1524
+ items: {
1525
+ properties: {
1526
+ warning_code: {
1527
+ enum: ['acs_credential_on_encoder_out_of_sync'],
1528
+ type: 'string',
1529
+ },
1530
+ warning_message: { type: 'string' },
1531
+ },
1532
+ required: ['warning_code', 'warning_message'],
1533
+ type: 'object',
1534
+ },
1535
+ type: 'array',
1536
+ },
1523
1537
  },
1524
1538
  required: [
1525
1539
  'acs_credential_on_encoder',
1526
1540
  'acs_credential_on_seam',
1541
+ 'warnings',
1527
1542
  ],
1528
1543
  type: 'object',
1529
1544
  },
@@ -1852,12 +1867,27 @@ export default {
1852
1867
  },
1853
1868
  action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1854
1869
  error: {
1855
- properties: {
1856
- message: { type: 'string' },
1857
- type: { type: 'string' },
1858
- },
1859
- required: ['type', 'message'],
1860
- type: 'object',
1870
+ oneOf: [
1871
+ {
1872
+ properties: {
1873
+ message: { type: 'string' },
1874
+ type: { enum: ['no_card_on_encoder'], type: 'string' },
1875
+ },
1876
+ required: ['type', 'message'],
1877
+ type: 'object',
1878
+ },
1879
+ {
1880
+ properties: {
1881
+ message: { type: 'string' },
1882
+ type: {
1883
+ enum: ['incompatible_card_format'],
1884
+ type: 'string',
1885
+ },
1886
+ },
1887
+ required: ['type', 'message'],
1888
+ type: 'object',
1889
+ },
1890
+ ],
1861
1891
  },
1862
1892
  result: { nullable: true },
1863
1893
  status: { enum: ['error'], type: 'string' },