@seamapi/types 1.789.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.
@@ -10728,6 +10728,15 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<{
10728
10728
  }, {
10729
10729
  message: string;
10730
10730
  type: "credential_being_deleted";
10731
+ }>, z.ZodObject<{
10732
+ type: z.ZodLiteral<"credential_deleted">;
10733
+ message: z.ZodString;
10734
+ }, "strip", z.ZodTypeAny, {
10735
+ message: string;
10736
+ type: "credential_deleted";
10737
+ }, {
10738
+ message: string;
10739
+ type: "credential_deleted";
10731
10740
  }>]>;
10732
10741
  }, "strip", z.ZodTypeAny, {
10733
10742
  status: "error";
@@ -10762,6 +10771,9 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<{
10762
10771
  } | {
10763
10772
  message: string;
10764
10773
  type: "credential_being_deleted";
10774
+ } | {
10775
+ message: string;
10776
+ type: "credential_deleted";
10765
10777
  };
10766
10778
  result: null;
10767
10779
  action_type: "ENCODE_CREDENTIAL";
@@ -10798,6 +10810,9 @@ declare const action_attempt: z.ZodUnion<[z.ZodObject<{
10798
10810
  } | {
10799
10811
  message: string;
10800
10812
  type: "credential_being_deleted";
10813
+ } | {
10814
+ message: string;
10815
+ type: "credential_deleted";
10801
10816
  };
10802
10817
  result: null;
10803
10818
  action_type: "ENCODE_CREDENTIAL";
@@ -22358,6 +22373,15 @@ declare const batch: z.ZodObject<{
22358
22373
  }, {
22359
22374
  message: string;
22360
22375
  type: "credential_being_deleted";
22376
+ }>, z.ZodObject<{
22377
+ type: z.ZodLiteral<"credential_deleted">;
22378
+ message: z.ZodString;
22379
+ }, "strip", z.ZodTypeAny, {
22380
+ message: string;
22381
+ type: "credential_deleted";
22382
+ }, {
22383
+ message: string;
22384
+ type: "credential_deleted";
22361
22385
  }>]>;
22362
22386
  }, "strip", z.ZodTypeAny, {
22363
22387
  status: "error";
@@ -22392,6 +22416,9 @@ declare const batch: z.ZodObject<{
22392
22416
  } | {
22393
22417
  message: string;
22394
22418
  type: "credential_being_deleted";
22419
+ } | {
22420
+ message: string;
22421
+ type: "credential_deleted";
22395
22422
  };
22396
22423
  result: null;
22397
22424
  action_type: "ENCODE_CREDENTIAL";
@@ -22428,6 +22455,9 @@ declare const batch: z.ZodObject<{
22428
22455
  } | {
22429
22456
  message: string;
22430
22457
  type: "credential_being_deleted";
22458
+ } | {
22459
+ message: string;
22460
+ type: "credential_deleted";
22431
22461
  };
22432
22462
  result: null;
22433
22463
  action_type: "ENCODE_CREDENTIAL";
@@ -39270,6 +39300,9 @@ declare const batch: z.ZodObject<{
39270
39300
  } | {
39271
39301
  message: string;
39272
39302
  type: "credential_being_deleted";
39303
+ } | {
39304
+ message: string;
39305
+ type: "credential_deleted";
39273
39306
  };
39274
39307
  result: null;
39275
39308
  action_type: "ENCODE_CREDENTIAL";
@@ -44148,6 +44181,9 @@ declare const batch: z.ZodObject<{
44148
44181
  } | {
44149
44182
  message: string;
44150
44183
  type: "credential_being_deleted";
44184
+ } | {
44185
+ message: string;
44186
+ type: "credential_deleted";
44151
44187
  };
44152
44188
  result: null;
44153
44189
  action_type: "ENCODE_CREDENTIAL";
@@ -136885,6 +136921,11 @@ type Routes = {
136885
136921
  type: 'credential_being_deleted';
136886
136922
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
136887
136923
  message: string;
136924
+ } | {
136925
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
136926
+ type: 'credential_deleted';
136927
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
136928
+ message: string;
136888
136929
  };
136889
136930
  } | {
136890
136931
  /** ID of the action attempt. */
@@ -139293,6 +139334,11 @@ type Routes = {
139293
139334
  type: 'credential_being_deleted';
139294
139335
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
139295
139336
  message: string;
139337
+ } | {
139338
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
139339
+ type: 'credential_deleted';
139340
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
139341
+ message: string;
139296
139342
  };
139297
139343
  } | {
139298
139344
  /** ID of the action attempt. */
@@ -143398,6 +143444,11 @@ type Routes = {
143398
143444
  type: 'credential_being_deleted';
143399
143445
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
143400
143446
  message: string;
143447
+ } | {
143448
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
143449
+ type: 'credential_deleted';
143450
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
143451
+ message: string;
143401
143452
  };
143402
143453
  } | {
143403
143454
  /** ID of the action attempt. */
@@ -145842,6 +145893,11 @@ type Routes = {
145842
145893
  type: 'credential_being_deleted';
145843
145894
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
145844
145895
  message: string;
145896
+ } | {
145897
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
145898
+ type: 'credential_deleted';
145899
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
145900
+ message: string;
145845
145901
  };
145846
145902
  } | {
145847
145903
  /** ID of the action attempt. */
@@ -150485,6 +150541,11 @@ type Routes = {
150485
150541
  type: 'credential_being_deleted';
150486
150542
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
150487
150543
  message: string;
150544
+ } | {
150545
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
150546
+ type: 'credential_deleted';
150547
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
150548
+ message: string;
150488
150549
  };
150489
150550
  } | {
150490
150551
  /** ID of the action attempt. */
@@ -157114,6 +157175,11 @@ type Routes = {
157114
157175
  type: 'credential_being_deleted';
157115
157176
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
157116
157177
  message: string;
157178
+ } | {
157179
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
157180
+ type: 'credential_deleted';
157181
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
157182
+ message: string;
157117
157183
  };
157118
157184
  } | {
157119
157185
  /** ID of the action attempt. */
@@ -158562,6 +158628,11 @@ type Routes = {
158562
158628
  type: 'credential_being_deleted';
158563
158629
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
158564
158630
  message: string;
158631
+ } | {
158632
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
158633
+ type: 'credential_deleted';
158634
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
158635
+ message: string;
158565
158636
  };
158566
158637
  } | {
158567
158638
  /** ID of the action attempt. */
@@ -160472,6 +160543,11 @@ type Routes = {
160472
160543
  type: 'credential_being_deleted';
160473
160544
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
160474
160545
  message: string;
160546
+ } | {
160547
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
160548
+ type: 'credential_deleted';
160549
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
160550
+ message: string;
160475
160551
  };
160476
160552
  } | {
160477
160553
  /** ID of the action attempt. */
@@ -163849,6 +163925,11 @@ type Routes = {
163849
163925
  type: 'credential_being_deleted';
163850
163926
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
163851
163927
  message: string;
163928
+ } | {
163929
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
163930
+ type: 'credential_deleted';
163931
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
163932
+ message: string;
163852
163933
  };
163853
163934
  } | {
163854
163935
  /** ID of the action attempt. */
@@ -165190,6 +165271,11 @@ type Routes = {
165190
165271
  type: 'credential_being_deleted';
165191
165272
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
165192
165273
  message: string;
165274
+ } | {
165275
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
165276
+ type: 'credential_deleted';
165277
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
165278
+ message: string;
165193
165279
  };
165194
165280
  } | {
165195
165281
  /** ID of the action attempt. */
@@ -178072,6 +178158,11 @@ type Routes = {
178072
178158
  type: 'credential_being_deleted';
178073
178159
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
178074
178160
  message: string;
178161
+ } | {
178162
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
178163
+ type: 'credential_deleted';
178164
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
178165
+ message: string;
178075
178166
  };
178076
178167
  } | {
178077
178168
  /** ID of the action attempt. */
@@ -184779,6 +184870,11 @@ type Routes = {
184779
184870
  type: 'credential_being_deleted';
184780
184871
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
184781
184872
  message: string;
184873
+ } | {
184874
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
184875
+ type: 'credential_deleted';
184876
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
184877
+ message: string;
184782
184878
  };
184783
184879
  } | {
184784
184880
  /** ID of the action attempt. */
@@ -186121,6 +186217,11 @@ type Routes = {
186121
186217
  type: 'credential_being_deleted';
186122
186218
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
186123
186219
  message: string;
186220
+ } | {
186221
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
186222
+ type: 'credential_deleted';
186223
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
186224
+ message: string;
186124
186225
  };
186125
186226
  } | {
186126
186227
  /** ID of the action attempt. */
@@ -187461,6 +187562,11 @@ type Routes = {
187461
187562
  type: 'credential_being_deleted';
187462
187563
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
187463
187564
  message: string;
187565
+ } | {
187566
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
187567
+ type: 'credential_deleted';
187568
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
187569
+ message: string;
187464
187570
  };
187465
187571
  } | {
187466
187572
  /** ID of the action attempt. */
@@ -188803,6 +188909,11 @@ type Routes = {
188803
188909
  type: 'credential_being_deleted';
188804
188910
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
188805
188911
  message: string;
188912
+ } | {
188913
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
188914
+ type: 'credential_deleted';
188915
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
188916
+ message: string;
188806
188917
  };
188807
188918
  } | {
188808
188919
  /** ID of the action attempt. */
@@ -192854,6 +192965,11 @@ type Routes = {
192854
192965
  type: 'credential_being_deleted';
192855
192966
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
192856
192967
  message: string;
192968
+ } | {
192969
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
192970
+ type: 'credential_deleted';
192971
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
192972
+ message: string;
192857
192973
  };
192858
192974
  } | {
192859
192975
  /** ID of the action attempt. */
@@ -194215,6 +194331,11 @@ type Routes = {
194215
194331
  type: 'credential_being_deleted';
194216
194332
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
194217
194333
  message: string;
194334
+ } | {
194335
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
194336
+ type: 'credential_deleted';
194337
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
194338
+ message: string;
194218
194339
  };
194219
194340
  } | {
194220
194341
  /** ID of the action attempt. */
@@ -195632,6 +195753,11 @@ type Routes = {
195632
195753
  type: 'credential_being_deleted';
195633
195754
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
195634
195755
  message: string;
195756
+ } | {
195757
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
195758
+ type: 'credential_deleted';
195759
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
195760
+ message: string;
195635
195761
  };
195636
195762
  } | {
195637
195763
  /** ID of the action attempt. */
@@ -197957,6 +198083,11 @@ type Routes = {
197957
198083
  type: 'credential_being_deleted';
197958
198084
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
197959
198085
  message: string;
198086
+ } | {
198087
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
198088
+ type: 'credential_deleted';
198089
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
198090
+ message: string;
197960
198091
  };
197961
198092
  } | {
197962
198093
  /** ID of the action attempt. */
@@ -206841,6 +206972,11 @@ type Routes = {
206841
206972
  type: 'credential_being_deleted';
206842
206973
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
206843
206974
  message: string;
206975
+ } | {
206976
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
206977
+ type: 'credential_deleted';
206978
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
206979
+ message: string;
206844
206980
  };
206845
206981
  } | {
206846
206982
  /** ID of the action attempt. */
@@ -208187,6 +208323,11 @@ type Routes = {
208187
208323
  type: 'credential_being_deleted';
208188
208324
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
208189
208325
  message: string;
208326
+ } | {
208327
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
208328
+ type: 'credential_deleted';
208329
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
208330
+ message: string;
208190
208331
  };
208191
208332
  } | {
208192
208333
  /** ID of the action attempt. */
@@ -209639,6 +209780,11 @@ type Routes = {
209639
209780
  type: 'credential_being_deleted';
209640
209781
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
209641
209782
  message: string;
209783
+ } | {
209784
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
209785
+ type: 'credential_deleted';
209786
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
209787
+ message: string;
209642
209788
  };
209643
209789
  } | {
209644
209790
  /** ID of the action attempt. */
@@ -212341,6 +212487,11 @@ type Routes = {
212341
212487
  type: 'credential_being_deleted';
212342
212488
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
212343
212489
  message: string;
212490
+ } | {
212491
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
212492
+ type: 'credential_deleted';
212493
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
212494
+ message: string;
212344
212495
  };
212345
212496
  } | {
212346
212497
  /** ID of the action attempt. */
@@ -213691,6 +213842,11 @@ type Routes = {
213691
213842
  type: 'credential_being_deleted';
213692
213843
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
213693
213844
  message: string;
213845
+ } | {
213846
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
213847
+ type: 'credential_deleted';
213848
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
213849
+ message: string;
213694
213850
  };
213695
213851
  } | {
213696
213852
  /** ID of the action attempt. */
@@ -217732,6 +217888,11 @@ type Routes = {
217732
217888
  type: 'credential_being_deleted';
217733
217889
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
217734
217890
  message: string;
217891
+ } | {
217892
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
217893
+ type: 'credential_deleted';
217894
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
217895
+ message: string;
217735
217896
  };
217736
217897
  } | {
217737
217898
  /** ID of the action attempt. */
@@ -219277,6 +219438,11 @@ type Routes = {
219277
219438
  type: 'credential_being_deleted';
219278
219439
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
219279
219440
  message: string;
219441
+ } | {
219442
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
219443
+ type: 'credential_deleted';
219444
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
219445
+ message: string;
219280
219446
  };
219281
219447
  } | {
219282
219448
  /** ID of the action attempt. */
@@ -220650,6 +220816,11 @@ type Routes = {
220650
220816
  type: 'credential_being_deleted';
220651
220817
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
220652
220818
  message: string;
220819
+ } | {
220820
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
220821
+ type: 'credential_deleted';
220822
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
220823
+ message: string;
220653
220824
  };
220654
220825
  } | {
220655
220826
  /** ID of the action attempt. */
@@ -222135,6 +222306,11 @@ type Routes = {
222135
222306
  type: 'credential_being_deleted';
222136
222307
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
222137
222308
  message: string;
222309
+ } | {
222310
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
222311
+ type: 'credential_deleted';
222312
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
222313
+ message: string;
222138
222314
  };
222139
222315
  } | {
222140
222316
  /** ID of the action attempt. */
@@ -229791,6 +229967,11 @@ type Routes = {
229791
229967
  type: 'credential_being_deleted';
229792
229968
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
229793
229969
  message: string;
229970
+ } | {
229971
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
229972
+ type: 'credential_deleted';
229973
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
229974
+ message: string;
229794
229975
  };
229795
229976
  } | {
229796
229977
  /** ID of the action attempt. */
@@ -236676,6 +236857,11 @@ type Routes = {
236676
236857
  type: 'credential_being_deleted';
236677
236858
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
236678
236859
  message: string;
236860
+ } | {
236861
+ /** Error type to indicate that the credential was deleted while encoding was in progress. */
236862
+ type: 'credential_deleted';
236863
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
236864
+ message: string;
236679
236865
  };
236680
236866
  } | {
236681
236867
  /** ID of the action attempt. */
package/dist/index.cjs CHANGED
@@ -4421,6 +4421,16 @@ var credential_being_deleted_error = zod.z.object({
4421
4421
  }).describe(
4422
4422
  "Error to indicate that the credential is being deleted and can no longer be encoded."
4423
4423
  );
4424
+ var credential_deleted_error = zod.z.object({
4425
+ type: zod.z.literal("credential_deleted").describe(
4426
+ "Error type to indicate that the credential was deleted while encoding was in progress."
4427
+ ),
4428
+ message: zod.z.string().describe(
4429
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4430
+ )
4431
+ }).describe(
4432
+ "Error to indicate that the credential was deleted while encoding was in progress."
4433
+ );
4424
4434
  var error4 = zod.z.union([
4425
4435
  ...common_action_attempt_errors,
4426
4436
  no_credential_on_encoder_error,
@@ -4430,7 +4440,8 @@ var error4 = zod.z.union([
4430
4440
  encoder_communication_timeout,
4431
4441
  bridge_disconnected_error,
4432
4442
  encoding_interrupted_error,
4433
- credential_being_deleted_error
4443
+ credential_being_deleted_error,
4444
+ credential_deleted_error
4434
4445
  ]);
4435
4446
  var result4 = acs_credential.or(unmanaged_acs_credential).describe(
4436
4447
  "Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card."
@@ -13856,6 +13867,22 @@ var openapi_default = {
13856
13867
  },
13857
13868
  required: ["type", "message"],
13858
13869
  type: "object"
13870
+ },
13871
+ {
13872
+ description: "Error to indicate that the credential was deleted while encoding was in progress.",
13873
+ properties: {
13874
+ message: {
13875
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
13876
+ type: "string"
13877
+ },
13878
+ type: {
13879
+ description: "Error type to indicate that the credential was deleted while encoding was in progress.",
13880
+ enum: ["credential_deleted"],
13881
+ type: "string"
13882
+ }
13883
+ },
13884
+ required: ["type", "message"],
13885
+ type: "object"
13859
13886
  }
13860
13887
  ]
13861
13888
  },