@seamapi/types 1.788.0 → 1.790.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,24 @@ 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";
2766
+ }>, z.ZodObject<{
2767
+ type: z.ZodLiteral<"credential_deleted">;
2768
+ message: z.ZodString;
2769
+ }, "strip", z.ZodTypeAny, {
2770
+ message: string;
2771
+ type: "credential_deleted";
2772
+ }, {
2773
+ message: string;
2774
+ type: "credential_deleted";
2757
2775
  }>]>;
2758
2776
  }, "strip", z.ZodTypeAny, {
2759
2777
  status: "error";
@@ -2785,6 +2803,12 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
2785
2803
  } | {
2786
2804
  message: string;
2787
2805
  type: "encoding_interrupted";
2806
+ } | {
2807
+ message: string;
2808
+ type: "credential_being_deleted";
2809
+ } | {
2810
+ message: string;
2811
+ type: "credential_deleted";
2788
2812
  };
2789
2813
  result: null;
2790
2814
  action_type: "ENCODE_CREDENTIAL";
@@ -2818,6 +2842,12 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
2818
2842
  } | {
2819
2843
  message: string;
2820
2844
  type: "encoding_interrupted";
2845
+ } | {
2846
+ message: string;
2847
+ type: "credential_being_deleted";
2848
+ } | {
2849
+ message: string;
2850
+ type: "credential_deleted";
2821
2851
  };
2822
2852
  result: null;
2823
2853
  action_type: "ENCODE_CREDENTIAL";
@@ -1033,6 +1033,24 @@ 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";
1045
+ }>, z.ZodObject<{
1046
+ type: z.ZodLiteral<"credential_deleted">;
1047
+ message: z.ZodString;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ message: string;
1050
+ type: "credential_deleted";
1051
+ }, {
1052
+ message: string;
1053
+ type: "credential_deleted";
1036
1054
  }>]>;
1037
1055
  }, "strip", z.ZodTypeAny, {
1038
1056
  status: "error";
@@ -1064,6 +1082,12 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
1064
1082
  } | {
1065
1083
  message: string;
1066
1084
  type: "encoding_interrupted";
1085
+ } | {
1086
+ message: string;
1087
+ type: "credential_being_deleted";
1088
+ } | {
1089
+ message: string;
1090
+ type: "credential_deleted";
1067
1091
  };
1068
1092
  result: null;
1069
1093
  action_type: "ENCODE_CREDENTIAL";
@@ -1097,6 +1121,12 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
1097
1121
  } | {
1098
1122
  message: string;
1099
1123
  type: "encoding_interrupted";
1124
+ } | {
1125
+ message: string;
1126
+ type: "credential_being_deleted";
1127
+ } | {
1128
+ message: string;
1129
+ type: "credential_deleted";
1100
1130
  };
1101
1131
  result: null;
1102
1132
  action_type: "ENCODE_CREDENTIAL";
@@ -74,6 +74,26 @@ 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.');
87
+ const credential_deleted_error = z
88
+ .object({
89
+ type: z
90
+ .literal('credential_deleted')
91
+ .describe('Error type to indicate that the credential was deleted while encoding was in progress.'),
92
+ message: z
93
+ .string()
94
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
95
+ })
96
+ .describe('Error to indicate that the credential was deleted while encoding was in progress.');
77
97
  const error = z.union([
78
98
  ...common_action_attempt_errors,
79
99
  no_credential_on_encoder_error,
@@ -83,6 +103,8 @@ const error = z.union([
83
103
  encoder_communication_timeout,
84
104
  bridge_disconnected_error,
85
105
  encoding_interrupted_error,
106
+ credential_being_deleted_error,
107
+ credential_deleted_error,
86
108
  ]);
87
109
  const result = acs_credential
88
110
  .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,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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P,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,mGAAmG,CACpG,CAAA;AAEH,MAAM,0BAA0B,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,sBAAsB,CAAC;SAC/B,QAAQ,CACP,0IAA0I,CAC3I;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,qIAAqI,CACtI,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;CAC3B,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"}
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,MA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AE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,mFAAmF,CACpF,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;IAC9B,wBAAwB;CACzB,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,24 @@ 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";
10345
+ }>, z.ZodObject<{
10346
+ type: z.ZodLiteral<"credential_deleted">;
10347
+ message: z.ZodString;
10348
+ }, "strip", z.ZodTypeAny, {
10349
+ message: string;
10350
+ type: "credential_deleted";
10351
+ }, {
10352
+ message: string;
10353
+ type: "credential_deleted";
10336
10354
  }>]>;
10337
10355
  }, "strip", z.ZodTypeAny, {
10338
10356
  status: "error";
@@ -10364,6 +10382,12 @@ export declare const batch: z.ZodObject<{
10364
10382
  } | {
10365
10383
  message: string;
10366
10384
  type: "encoding_interrupted";
10385
+ } | {
10386
+ message: string;
10387
+ type: "credential_being_deleted";
10388
+ } | {
10389
+ message: string;
10390
+ type: "credential_deleted";
10367
10391
  };
10368
10392
  result: null;
10369
10393
  action_type: "ENCODE_CREDENTIAL";
@@ -10397,6 +10421,12 @@ export declare const batch: z.ZodObject<{
10397
10421
  } | {
10398
10422
  message: string;
10399
10423
  type: "encoding_interrupted";
10424
+ } | {
10425
+ message: string;
10426
+ type: "credential_being_deleted";
10427
+ } | {
10428
+ message: string;
10429
+ type: "credential_deleted";
10400
10430
  };
10401
10431
  result: null;
10402
10432
  action_type: "ENCODE_CREDENTIAL";
@@ -27236,6 +27266,12 @@ export declare const batch: z.ZodObject<{
27236
27266
  } | {
27237
27267
  message: string;
27238
27268
  type: "encoding_interrupted";
27269
+ } | {
27270
+ message: string;
27271
+ type: "credential_being_deleted";
27272
+ } | {
27273
+ message: string;
27274
+ type: "credential_deleted";
27239
27275
  };
27240
27276
  result: null;
27241
27277
  action_type: "ENCODE_CREDENTIAL";
@@ -32111,6 +32147,12 @@ export declare const batch: z.ZodObject<{
32111
32147
  } | {
32112
32148
  message: string;
32113
32149
  type: "encoding_interrupted";
32150
+ } | {
32151
+ message: string;
32152
+ type: "credential_being_deleted";
32153
+ } | {
32154
+ message: string;
32155
+ type: "credential_deleted";
32114
32156
  };
32115
32157
  result: null;
32116
32158
  action_type: "ENCODE_CREDENTIAL";
@@ -7131,6 +7131,38 @@ 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
+ },
7150
+ {
7151
+ description: 'Error to indicate that the credential was deleted while encoding was in progress.',
7152
+ properties: {
7153
+ message: {
7154
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
7155
+ type: 'string',
7156
+ },
7157
+ type: {
7158
+ description: 'Error type to indicate that the credential was deleted while encoding was in progress.',
7159
+ enum: ['credential_deleted'],
7160
+ type: 'string',
7161
+ },
7162
+ },
7163
+ required: ['type', 'message'],
7164
+ type: 'object',
7165
+ },
7134
7166
  ],
7135
7167
  },
7136
7168
  result: {