@seamapi/types 1.788.0 → 1.789.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.
@@ -2754,6 +2754,15 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
2754
2754
  }, {
2755
2755
  message: string;
2756
2756
  type: "encoding_interrupted";
2757
+ }>, z.ZodObject<{
2758
+ type: z.ZodLiteral<"credential_being_deleted">;
2759
+ message: z.ZodString;
2760
+ }, "strip", z.ZodTypeAny, {
2761
+ message: string;
2762
+ type: "credential_being_deleted";
2763
+ }, {
2764
+ message: string;
2765
+ type: "credential_being_deleted";
2757
2766
  }>]>;
2758
2767
  }, "strip", z.ZodTypeAny, {
2759
2768
  status: "error";
@@ -2785,6 +2794,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
2785
2794
  } | {
2786
2795
  message: string;
2787
2796
  type: "encoding_interrupted";
2797
+ } | {
2798
+ message: string;
2799
+ type: "credential_being_deleted";
2788
2800
  };
2789
2801
  result: null;
2790
2802
  action_type: "ENCODE_CREDENTIAL";
@@ -2818,6 +2830,9 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
2818
2830
  } | {
2819
2831
  message: string;
2820
2832
  type: "encoding_interrupted";
2833
+ } | {
2834
+ message: string;
2835
+ type: "credential_being_deleted";
2821
2836
  };
2822
2837
  result: null;
2823
2838
  action_type: "ENCODE_CREDENTIAL";
@@ -1033,6 +1033,15 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
1033
1033
  }, {
1034
1034
  message: string;
1035
1035
  type: "encoding_interrupted";
1036
+ }>, z.ZodObject<{
1037
+ type: z.ZodLiteral<"credential_being_deleted">;
1038
+ message: z.ZodString;
1039
+ }, "strip", z.ZodTypeAny, {
1040
+ message: string;
1041
+ type: "credential_being_deleted";
1042
+ }, {
1043
+ message: string;
1044
+ type: "credential_being_deleted";
1036
1045
  }>]>;
1037
1046
  }, "strip", z.ZodTypeAny, {
1038
1047
  status: "error";
@@ -1064,6 +1073,9 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
1064
1073
  } | {
1065
1074
  message: string;
1066
1075
  type: "encoding_interrupted";
1076
+ } | {
1077
+ message: string;
1078
+ type: "credential_being_deleted";
1067
1079
  };
1068
1080
  result: null;
1069
1081
  action_type: "ENCODE_CREDENTIAL";
@@ -1097,6 +1109,9 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
1097
1109
  } | {
1098
1110
  message: string;
1099
1111
  type: "encoding_interrupted";
1112
+ } | {
1113
+ message: string;
1114
+ type: "credential_being_deleted";
1100
1115
  };
1101
1116
  result: null;
1102
1117
  action_type: "ENCODE_CREDENTIAL";
@@ -74,6 +74,16 @@ const encoding_interrupted_error = z
74
74
  .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
75
75
  })
76
76
  .describe('Error to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.');
77
+ const credential_being_deleted_error = z
78
+ .object({
79
+ type: z
80
+ .literal('credential_being_deleted')
81
+ .describe('Error type to indicate that the credential is being deleted and can no longer be encoded.'),
82
+ message: z
83
+ .string()
84
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
85
+ })
86
+ .describe('Error to indicate that the credential is being deleted and can no longer be encoded.');
77
87
  const error = z.union([
78
88
  ...common_action_attempt_errors,
79
89
  no_credential_on_encoder_error,
@@ -83,6 +93,7 @@ const error = z.union([
83
93
  encoder_communication_timeout,
84
94
  bridge_disconnected_error,
85
95
  encoding_interrupted_error,
96
+ credential_being_deleted_error,
86
97
  ]);
87
98
  const result = acs_credential
88
99
  .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,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SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CACP,4EAA4E,CAC7E;IACH,+BAA+B;SAC5B,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"}
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,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,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,qIAAqI,CACtI,CAAA;AAEH,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,2FAA2F,CAC5F;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,sFAAsF,CACvF,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;IAC7B,wBAAwB;IACxB,6BAA6B;IAC7B,yBAAyB;IACzB,0BAA0B;IAC1B,8BAA8B;CAC/B,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,cAAc;KAC1B,EAAE,CAAC,wBAAwB,CAAC;KAC5B,QAAQ,CACP,4HAA4H,CAC7H,CAAA;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CACP,4EAA4E,CAC7E;IACH,+BAA+B;SAC5B,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"}
@@ -10333,6 +10333,15 @@ export declare const batch: z.ZodObject<{
10333
10333
  }, {
10334
10334
  message: string;
10335
10335
  type: "encoding_interrupted";
10336
+ }>, z.ZodObject<{
10337
+ type: z.ZodLiteral<"credential_being_deleted">;
10338
+ message: z.ZodString;
10339
+ }, "strip", z.ZodTypeAny, {
10340
+ message: string;
10341
+ type: "credential_being_deleted";
10342
+ }, {
10343
+ message: string;
10344
+ type: "credential_being_deleted";
10336
10345
  }>]>;
10337
10346
  }, "strip", z.ZodTypeAny, {
10338
10347
  status: "error";
@@ -10364,6 +10373,9 @@ export declare const batch: z.ZodObject<{
10364
10373
  } | {
10365
10374
  message: string;
10366
10375
  type: "encoding_interrupted";
10376
+ } | {
10377
+ message: string;
10378
+ type: "credential_being_deleted";
10367
10379
  };
10368
10380
  result: null;
10369
10381
  action_type: "ENCODE_CREDENTIAL";
@@ -10397,6 +10409,9 @@ export declare const batch: z.ZodObject<{
10397
10409
  } | {
10398
10410
  message: string;
10399
10411
  type: "encoding_interrupted";
10412
+ } | {
10413
+ message: string;
10414
+ type: "credential_being_deleted";
10400
10415
  };
10401
10416
  result: null;
10402
10417
  action_type: "ENCODE_CREDENTIAL";
@@ -27236,6 +27251,9 @@ export declare const batch: z.ZodObject<{
27236
27251
  } | {
27237
27252
  message: string;
27238
27253
  type: "encoding_interrupted";
27254
+ } | {
27255
+ message: string;
27256
+ type: "credential_being_deleted";
27239
27257
  };
27240
27258
  result: null;
27241
27259
  action_type: "ENCODE_CREDENTIAL";
@@ -32111,6 +32129,9 @@ export declare const batch: z.ZodObject<{
32111
32129
  } | {
32112
32130
  message: string;
32113
32131
  type: "encoding_interrupted";
32132
+ } | {
32133
+ message: string;
32134
+ type: "credential_being_deleted";
32114
32135
  };
32115
32136
  result: null;
32116
32137
  action_type: "ENCODE_CREDENTIAL";
@@ -7131,6 +7131,22 @@ export default {
7131
7131
  required: ['type', 'message'],
7132
7132
  type: 'object',
7133
7133
  },
7134
+ {
7135
+ description: 'Error to indicate that the credential is being deleted and can no longer be encoded.',
7136
+ properties: {
7137
+ message: {
7138
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
7139
+ type: 'string',
7140
+ },
7141
+ type: {
7142
+ description: 'Error type to indicate that the credential is being deleted and can no longer be encoded.',
7143
+ enum: ['credential_being_deleted'],
7144
+ type: 'string',
7145
+ },
7146
+ },
7147
+ required: ['type', 'message'],
7148
+ type: 'object',
7149
+ },
7134
7150
  ],
7135
7151
  },
7136
7152
  result: {