@timbro/invoices 0.10.3 → 0.11.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.
Files changed (49) hide show
  1. package/README.md +38 -2
  2. package/dist/admin.d.ts +1 -2
  3. package/dist/admin.d.ts.map +1 -1
  4. package/dist/generated/hosted/index.d.ts +2 -2
  5. package/dist/generated/hosted/index.d.ts.map +1 -1
  6. package/dist/generated/hosted/index.js +1 -1
  7. package/dist/generated/hosted/types.gen.d.ts +40 -2
  8. package/dist/generated/hosted/types.gen.d.ts.map +1 -1
  9. package/dist/generated/hosted/zod-response.gen.d.ts +965 -6
  10. package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -1
  11. package/dist/generated/hosted/zod-response.gen.js +66 -6
  12. package/dist/generated/hosted/zod.gen.d.ts +255 -7
  13. package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
  14. package/dist/generated/hosted/zod.gen.js +70 -7
  15. package/dist/generated/index.d.ts +3 -3
  16. package/dist/generated/index.d.ts.map +1 -1
  17. package/dist/generated/index.js +2 -2
  18. package/dist/generated/invoice-api-contract.d.ts +186 -2
  19. package/dist/generated/invoice-api-contract.d.ts.map +1 -1
  20. package/dist/generated/invoice-api-contract.js +211 -1
  21. package/dist/generated/sdk.gen.d.ts +5 -5
  22. package/dist/generated/sdk.gen.d.ts.map +1 -1
  23. package/dist/generated/sdk.gen.js +93 -93
  24. package/dist/generated/types.gen.d.ts +277 -137
  25. package/dist/generated/types.gen.d.ts.map +1 -1
  26. package/dist/generated/zod-response.gen.d.ts +2286 -2548
  27. package/dist/generated/zod-response.gen.d.ts.map +1 -1
  28. package/dist/generated/zod-response.gen.js +168 -108
  29. package/dist/generated/zod.gen.d.ts +1229 -2188
  30. package/dist/generated/zod.gen.d.ts.map +1 -1
  31. package/dist/generated/zod.gen.js +199 -113
  32. package/dist/invoice.d.ts +5 -0
  33. package/dist/invoice.d.ts.map +1 -1
  34. package/dist/invoice.js +1 -0
  35. package/dist/issuance-readiness.d.ts +9 -0
  36. package/dist/issuance-readiness.d.ts.map +1 -0
  37. package/dist/issuance-readiness.js +19 -0
  38. package/dist/timbro-client.d.ts +6 -8
  39. package/dist/timbro-client.d.ts.map +1 -1
  40. package/dist/timbro-client.js +3 -5
  41. package/dist/webhook-event.d.ts +392 -0
  42. package/dist/webhook-event.d.ts.map +1 -1
  43. package/package.json +2 -2
  44. package/dist/certificate-custody-readiness.d.ts +0 -6
  45. package/dist/certificate-custody-readiness.d.ts.map +0 -1
  46. package/dist/certificate-custody-readiness.js +0 -13
  47. package/dist/fiscal-numbering-readiness.d.ts +0 -6
  48. package/dist/fiscal-numbering-readiness.d.ts.map +0 -1
  49. package/dist/fiscal-numbering-readiness.js +0 -13
@@ -25,14 +25,6 @@ function lenientUnion(options) {
25
25
  return rest.reduce((best, match) => (propertyCount(match) > propertyCount(best) ? match : best), first);
26
26
  });
27
27
  }
28
- export const zActiveCertificateCustodyBindingResource = z.object({
29
- binding_id: z.uuid(),
30
- certificate_version: z.string().regex(/^[1-9][0-9]*$/),
31
- expected_certificate_sha256: z.string().regex(/^[0-9a-f]{64}$/),
32
- });
33
- /**
34
- * Buyer identity alternatives admitted by official conditional Type 33 and Type 34 `Comprador`.
35
- */
36
28
  export const zAffectedFiscalDocumentAttributionResource = lenientUnion([
37
29
  z.object({
38
30
  fiscal_operation_id: z.uuid(),
@@ -109,20 +101,6 @@ export const zBuyerDeliveryTerminalResultCode = z.enum([
109
101
  /**
110
102
  * Exporter classification retained as a caller declaration, not authority confirmation.
111
103
  */
112
- export const zCertificateCustodyCertificateResource = z.object({
113
- certificate_expires_at: z.iso.datetime(),
114
- certificate_sha256: z.string().regex(/^[0-9a-f]{64}$/),
115
- certificate_subject_serial_number: z
116
- .string()
117
- .regex(/^(?:[0-9]{9}|[0-9]{11}|IDCDO-(?:[0-9]{9}|[0-9]{11})|PAS[A-Z]{2}-[A-Za-z0-9]{5,20})$/),
118
- effect_replay_retention_seconds: z
119
- .int()
120
- .gte(1)
121
- .max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
122
- });
123
- /**
124
- * Signature algorithm pinned with a certificate-custody binding.
125
- */
126
104
  export const zCertificateCustodySignatureAlgorithm = z.enum(["rsa_sha256"]);
127
105
  /**
128
106
  * The wire family a Collection page announces.
@@ -246,9 +224,6 @@ export const zEngineProblem = z.object({
246
224
  path: z.string(),
247
225
  });
248
226
  export const zEngineProtocol = z.enum(["timbro.fiscal-engine.v3"]);
249
- export const zEnrolledCertificateCustodyBindingResource = z.object({
250
- binding_id: z.uuid(),
251
- });
252
227
  /**
253
228
  * One e-CF document type implemented by this engine protocol revision.
254
229
  */
@@ -319,7 +294,8 @@ export const zFiscalAuthorityRoute = z.enum([
319
294
  "consumer_summary_reception",
320
295
  ]);
321
296
  /**
322
- * Actor-facing buyer-delivery milestone projected from the immutable lifecycle event ledger.
297
+ * Whether the buyer may receive the e-CF: ready once DGII received it and answered `Aceptado` or
298
+ * `Aceptado Condicional`, projected from the immutable lifecycle event ledger.
323
299
  */
324
300
  export const zBuyerDeliveryReadinessResource = lenientUnion([
325
301
  z.object({
@@ -407,29 +383,6 @@ export const zAffectedFiscalDocumentResource = z.object({
407
383
  issued_on: z.string().regex(/^[0-9]{2}-[0-9]{2}-[0-9]{4}$/),
408
384
  issuer_tax_id: z.string().regex(/^[0-9]{9}([0-9]{2})?$/),
409
385
  });
410
- export const zCertificateCustodyReadiness = lenientUnion([
411
- z.object({
412
- environment: zFiscalEnvironment,
413
- legal_issuer_id: z.uuid(),
414
- organization_id: z.uuid(),
415
- status: z.enum(["not_configured"]),
416
- }),
417
- z.object({
418
- binding: zEnrolledCertificateCustodyBindingResource,
419
- environment: zFiscalEnvironment,
420
- legal_issuer_id: z.uuid(),
421
- organization_id: z.uuid(),
422
- status: z.enum(["awaiting_certificate_registration"]),
423
- }),
424
- z.object({
425
- binding: zActiveCertificateCustodyBindingResource,
426
- certificate: zCertificateCustodyCertificateResource,
427
- environment: zFiscalEnvironment,
428
- legal_issuer_id: z.uuid(),
429
- organization_id: z.uuid(),
430
- status: z.enum(["ready"]),
431
- }),
432
- ]);
433
386
  export const zDirectConnectionPreviewResource = z.object({
434
387
  company_id: z.string(),
435
388
  company_name: z.string(),
@@ -565,7 +518,6 @@ export const zFiscalLineTotal = z.object({
565
518
  * One ordinary fiscal line whose profile admits only the legal-tip code.
566
519
  */
567
520
  export const zFiscalNumberAuthorizationKnowledge = z.enum(["verified", "reported"]);
568
- export const zFiscalNumberAuthorizationReadinessStatus = z.enum(["ready", "action_required"]);
569
521
  /**
570
522
  * Origin of a fiscal-number authorization fact.
571
523
  */
@@ -585,16 +537,6 @@ export const zFiscalNumberAuthorizationState = z.enum([
585
537
  "exhausted",
586
538
  "conflicting",
587
539
  ]);
588
- export const zFiscalNumberAuthorizationUnavailableReason = z.enum([
589
- "authorization_missing",
590
- "authorization_not_active",
591
- "authorization_not_verified",
592
- "authorization_not_observed",
593
- "range_exhausted",
594
- "authorization_expiration_invalid",
595
- "authorization_expired",
596
- "authorization_range_overlap",
597
- ]);
598
540
  /**
599
541
  * Caller instruction that selects how a Fiscal operation obtains its e-NCF.
600
542
  *
@@ -830,7 +772,12 @@ export const zInvoiceCorrection = z.object({
830
772
  reason: z.string(),
831
773
  relationshipKind: zFiscalDocumentRelationshipKind,
832
774
  });
775
+ export const zInvoiceDeliveryAttachments = z.object({
776
+ pdf: z.boolean(),
777
+ xml: z.boolean(),
778
+ });
833
779
  export const zInvoiceDeliveryResource = z.object({
780
+ attachments: zInvoiceDeliveryAttachments,
834
781
  createdAt: z.iso.datetime(),
835
782
  id: z.uuid(),
836
783
  invoiceId: z.uuid(),
@@ -1014,6 +961,17 @@ export const zInvoiceReceiptAccess = z.object({
1014
961
  });
1015
962
  export const zInvoiceReceiptCurrency = z.enum(["DOP"]);
1016
963
  export const zInvoiceReceiptStatus = z.enum(["accepted", "acceptedWithObservations"]);
964
+ /**
965
+ * The signature facts DGII requires on every printed e-CF, read from the signed document.
966
+ *
967
+ * Print the buyer's copy after DGII accepts the Invoice; DGII sequences the printed e-CF after
968
+ * its validation result, including the Type 32 below DOP 250,000 it validates by RFCE summary.
969
+ */
970
+ export const zInvoiceSignature = z.object({
971
+ securityCode: z.string().regex(/^[A-Za-z0-9+/]{6}$/),
972
+ signedAt: z.string().regex(/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}-04:00$/),
973
+ verificationUrl: z.url().regex(/^https:\/\/(ecf|fc)\.dgii\.gov\.do\//),
974
+ });
1017
975
  export const zInvoiceSource = z.object({
1018
976
  contentSha256: z.string().regex(/^[0-9a-f]{64}$/),
1019
977
  id: z.string(),
@@ -2268,6 +2226,7 @@ export const zInvoiceType = z.enum([
2268
2226
  ]);
2269
2227
  export const zInvoiceFiscalIdentity = z.object({
2270
2228
  eNcf: z.string().regex(/^E(31|32|33|34|41|43|44|45|46|47)[0-9]{10}$/),
2229
+ signature: zInvoiceSignature.nullable(),
2271
2230
  type: zInvoiceType,
2272
2231
  });
2273
2232
  export const zInvoiceWebhookEvent = lenientUnion([
@@ -2299,6 +2258,22 @@ export const zInvoiceWebhookEvent = lenientUnion([
2299
2258
  }),
2300
2259
  type: z.enum(["invoice.ready"]),
2301
2260
  }),
2261
+ z.object({
2262
+ data: z.object({
2263
+ deliveryId: z.uuid(),
2264
+ id: z.uuid(),
2265
+ sourceConnectionId: z.uuid(),
2266
+ }),
2267
+ type: z.enum(["invoice.deliverySent"]),
2268
+ }),
2269
+ z.object({
2270
+ data: z.object({
2271
+ deliveryId: z.uuid(),
2272
+ id: z.uuid(),
2273
+ sourceConnectionId: z.uuid(),
2274
+ }),
2275
+ type: z.enum(["invoice.deliveryFailed"]),
2276
+ }),
2302
2277
  ]);
2303
2278
  export const zInvoiceXmlReadiness = lenientUnion([
2304
2279
  z.object({
@@ -2346,6 +2321,20 @@ export const zIssuanceBlocker = z.enum([
2346
2321
  "fiscal_number_before_verified_floor",
2347
2322
  "sequence_expiration_mismatch",
2348
2323
  ]);
2324
+ export const zIssuanceReadinessReason = z.enum([
2325
+ "legal_issuer_profile_incomplete",
2326
+ "signing_certificate_missing",
2327
+ "signing_certificate_expired",
2328
+ "signing_certificate_not_yet_valid",
2329
+ "authorization_missing",
2330
+ "authorization_not_active",
2331
+ "authorization_not_verified",
2332
+ "authorization_not_observed",
2333
+ "range_exhausted",
2334
+ "authorization_expiration_invalid",
2335
+ "authorization_expired",
2336
+ "authorization_range_overlap",
2337
+ ]);
2349
2338
  export const zLedgerCounter = z.string().regex(/^(0|[1-9][0-9]*)$/);
2350
2339
  export const zCertificateCustodyCertificateVersionResource = z.object({
2351
2340
  certificate_custody_certificate_version: zLedgerCounter,
@@ -2428,46 +2417,6 @@ export const zFiscalNumberAuthorizationHistoryResource = z.object({
2428
2417
  environment: zFiscalEnvironment,
2429
2418
  legal_issuer_id: z.uuid(),
2430
2419
  });
2431
- export const zFiscalNumberAuthorizationSelection = z.object({
2432
- authorization_id: z.uuid(),
2433
- ends_at: zLedgerCounter,
2434
- expires_on: z
2435
- .string()
2436
- .regex(/^\d{2}-\d{2}-\d{4}$/)
2437
- .nullable(),
2438
- next_available_sequence: zLedgerCounter,
2439
- remaining_capacity: z.number().gte(0),
2440
- starts_at: zLedgerCounter,
2441
- state: zFiscalNumberAuthorizationState,
2442
- verified_next_unused: zFiscalNumberAuthorizationNextUnused,
2443
- });
2444
- export const zFiscalNumberAuthorizationTypeReadiness = z.object({
2445
- document_type: zElectronicFiscalDocumentType,
2446
- selected: zFiscalNumberAuthorizationSelection.nullable(),
2447
- status: zFiscalNumberAuthorizationReadinessStatus,
2448
- unavailable_reason: zFiscalNumberAuthorizationUnavailableReason.nullable(),
2449
- });
2450
- export const zFiscalNumberAuthorizationDocumentReadiness = z.object({
2451
- e31: zFiscalNumberAuthorizationTypeReadiness,
2452
- e32: zFiscalNumberAuthorizationTypeReadiness,
2453
- e33: zFiscalNumberAuthorizationTypeReadiness,
2454
- e34: zFiscalNumberAuthorizationTypeReadiness,
2455
- e41: zFiscalNumberAuthorizationTypeReadiness,
2456
- e43: zFiscalNumberAuthorizationTypeReadiness,
2457
- e44: zFiscalNumberAuthorizationTypeReadiness,
2458
- e45: zFiscalNumberAuthorizationTypeReadiness,
2459
- e46: zFiscalNumberAuthorizationTypeReadiness,
2460
- e47: zFiscalNumberAuthorizationTypeReadiness,
2461
- });
2462
- export const zFiscalNumberAuthorizationReadiness = z.object({
2463
- documents: zFiscalNumberAuthorizationDocumentReadiness,
2464
- effective_on: z.iso.date(),
2465
- environment: zFiscalEnvironment,
2466
- issuer_tax_id: z.string().regex(/^[0-9]{9}([0-9]{2})?$/),
2467
- legal_issuer_id: z.uuid(),
2468
- object: z.string(),
2469
- source_connection_id: z.uuid(),
2470
- });
2471
2420
  export const zLegalIssuerVerification = z.enum(["verified", "unverified"]);
2472
2421
  export const zLegalIssuer = z.object({
2473
2422
  address: z
@@ -2593,6 +2542,23 @@ export const zNotReceivedReason = z.enum([
2593
2542
  /**
2594
2543
  * Numbering values resolved before deterministic fiscal-document construction.
2595
2544
  */
2545
+ export const zNumberingRange = z.object({
2546
+ expiresOn: z.iso.date().nullable(),
2547
+ remaining: z.int().gte(1).lte(9999999999),
2548
+ });
2549
+ export const zDocumentTypeIssuanceReadiness = lenientUnion([
2550
+ z.object({
2551
+ numbering: zNumberingRange,
2552
+ status: z.enum(["ready"]),
2553
+ type: zInvoiceType,
2554
+ }),
2555
+ z.object({
2556
+ numbering: zNumberingRange.nullable(),
2557
+ reasons: z.array(zIssuanceReadinessReason).min(1),
2558
+ status: z.enum(["actionRequired"]),
2559
+ type: zInvoiceType,
2560
+ }),
2561
+ ]);
2596
2562
  export const zOnboardingLegalIssuerIdentityOutcome = lenientUnion([
2597
2563
  z.object({
2598
2564
  status: z.enum(["not_started"]),
@@ -3001,6 +2967,41 @@ export const zSignedDocumentReadinessResource = lenientUnion([
3001
2967
  status: z.enum(["ready"]),
3002
2968
  }),
3003
2969
  ]);
2970
+ /**
2971
+ * The active signing certificate, judged at the moment of the read.
2972
+ */
2973
+ export const zSigningCertificateReadiness = lenientUnion([
2974
+ z.object({
2975
+ notAfter: z.iso.datetime(),
2976
+ notBefore: z.iso.datetime(),
2977
+ sha256: z.string().regex(/^[0-9a-f]{64}$/),
2978
+ status: z.enum(["ready"]),
2979
+ }),
2980
+ z.object({
2981
+ notAfter: z.iso.datetime(),
2982
+ notBefore: z.iso.datetime(),
2983
+ sha256: z.string().regex(/^[0-9a-f]{64}$/),
2984
+ status: z.enum(["expired"]),
2985
+ }),
2986
+ z.object({
2987
+ notAfter: z.iso.datetime(),
2988
+ notBefore: z.iso.datetime(),
2989
+ sha256: z.string().regex(/^[0-9a-f]{64}$/),
2990
+ status: z.enum(["notYetValid"]),
2991
+ }),
2992
+ z.object({
2993
+ status: z.enum(["missing"]),
2994
+ }),
2995
+ ]);
2996
+ /**
2997
+ * Whether the issuer can issue each e-CF type now in this environment.
2998
+ */
2999
+ export const zIssuanceReadiness = z.object({
3000
+ certificate: zSigningCertificateReadiness,
3001
+ documentTypes: z.array(zDocumentTypeIssuanceReadiness),
3002
+ environment: zFiscalEnvironment,
3003
+ issuerTaxId: z.string().regex(/^[0-9]{9}([0-9]{2})?$/),
3004
+ });
3004
3005
  /**
3005
3006
  * Named additional taxes supported by the common Source contract.
3006
3007
  */
@@ -4484,6 +4485,36 @@ export const zInvoiceWebhookEventEnvelope = lenientUnion([
4484
4485
  sequence: z.string().regex(/^[1-9][0-9]*$/),
4485
4486
  type: z.enum(["invoice.ready"]),
4486
4487
  }),
4488
+ z.object({
4489
+ apiVersion: z.string().refine((text) => Array.from(text).length >= 1),
4490
+ data: z.object({
4491
+ deliveryId: z.uuid(),
4492
+ id: z.uuid(),
4493
+ sourceConnectionId: z.uuid(),
4494
+ }),
4495
+ environment: zFiscalEnvironment,
4496
+ id: z.uuid(),
4497
+ object: zWebhookEventObject,
4498
+ occurredAt: z.iso.datetime(),
4499
+ organizationId: z.uuid(),
4500
+ sequence: z.string().regex(/^[1-9][0-9]*$/),
4501
+ type: z.enum(["invoice.deliverySent"]),
4502
+ }),
4503
+ z.object({
4504
+ apiVersion: z.string().refine((text) => Array.from(text).length >= 1),
4505
+ data: z.object({
4506
+ deliveryId: z.uuid(),
4507
+ id: z.uuid(),
4508
+ sourceConnectionId: z.uuid(),
4509
+ }),
4510
+ environment: zFiscalEnvironment,
4511
+ id: z.uuid(),
4512
+ object: zWebhookEventObject,
4513
+ occurredAt: z.iso.datetime(),
4514
+ organizationId: z.uuid(),
4515
+ sequence: z.string().regex(/^[1-9][0-9]*$/),
4516
+ type: z.enum(["invoice.deliveryFailed"]),
4517
+ }),
4487
4518
  ]);
4488
4519
  export const zReceptionWebhookEventEnvelope = lenientUnion([
4489
4520
  z.object({
@@ -4617,6 +4648,36 @@ export const zWebhookEventEnvelope = lenientUnion([
4617
4648
  sequence: z.string().regex(/^[1-9][0-9]*$/),
4618
4649
  type: z.enum(["invoice.ready"]),
4619
4650
  }),
4651
+ z.object({
4652
+ apiVersion: z.string().refine((text) => Array.from(text).length >= 1),
4653
+ data: z.object({
4654
+ deliveryId: z.uuid(),
4655
+ id: z.uuid(),
4656
+ sourceConnectionId: z.uuid(),
4657
+ }),
4658
+ environment: zFiscalEnvironment,
4659
+ id: z.uuid(),
4660
+ object: zWebhookEventObject,
4661
+ occurredAt: z.iso.datetime(),
4662
+ organizationId: z.uuid(),
4663
+ sequence: z.string().regex(/^[1-9][0-9]*$/),
4664
+ type: z.enum(["invoice.deliverySent"]),
4665
+ }),
4666
+ z.object({
4667
+ apiVersion: z.string().refine((text) => Array.from(text).length >= 1),
4668
+ data: z.object({
4669
+ deliveryId: z.uuid(),
4670
+ id: z.uuid(),
4671
+ sourceConnectionId: z.uuid(),
4672
+ }),
4673
+ environment: zFiscalEnvironment,
4674
+ id: z.uuid(),
4675
+ object: zWebhookEventObject,
4676
+ occurredAt: z.iso.datetime(),
4677
+ organizationId: z.uuid(),
4678
+ sequence: z.string().regex(/^[1-9][0-9]*$/),
4679
+ type: z.enum(["invoice.deliveryFailed"]),
4680
+ }),
4620
4681
  z.object({
4621
4682
  apiVersion: z.string().refine((text) => Array.from(text).length >= 1),
4622
4683
  data: z.object({
@@ -4886,6 +4947,7 @@ export const zDownloadHostedInvoicePdfResponse = zFiscalArtifactBytes;
4886
4947
  export const zDownloadHostedInvoiceXmlResponse = zFiscalArtifactBytes;
4887
4948
  export const zShareHostedInvoiceReceiptResponse = zInvoiceReceiptAccess;
4888
4949
  export const zReplaceHostedInvoiceResponse = zInvoiceResource;
4950
+ export const zRetrieveHostedIssuanceReadinessResponse = zIssuanceReadiness;
4889
4951
  export const zListFiscalOperationsResponse = zSourceFiscalOperationPage;
4890
4952
  /**
4891
4953
  * One immutable Source sales or correction command. A Source connection credential sends the command alone. A trusted first-party service sends it inside request beside checkout_tenant_id and environment, which name the hosted binding selecting the Source connection.
@@ -4895,19 +4957,11 @@ export const zFindFiscalOperationBySourceResponse = zFiscalOperationResource;
4895
4957
  export const zFindFiscalOperationResponse = zFiscalOperationResource;
4896
4958
  export const zFindFiscalArtifactResponse = zFiscalArtifactBytes;
4897
4959
  export const zReadFiscalOperationTimingResponse = zFiscalOperationTimingReport;
4898
- /**
4899
- * The authenticated tenant's certificate-custody readiness resource.
4900
- */
4901
- export const zReadCertificateCustodyReadinessResponse = zCertificateCustodyReadiness;
4902
4960
  export const zCreateDirectConnectionRequestResponse = zDirectConnectionRequestResource;
4903
4961
  export const zCancelDirectConnectionRequestResponse = z.void();
4904
4962
  export const zPollDirectConnectionRequestResponse = zDirectConnectionPollResource;
4905
4963
  export const zReadElectronicFiscalDocumentEligibilityResponse = zElectronicFiscalDocumentEligibilityResource;
4906
4964
  export const zRetrieveFiscalDeliveryPrintedRepresentationResponse = z.instanceof(Uint8Array);
4907
- /**
4908
- * Current central fiscal-number ranges and actionable availability for the authenticated Source connection's issuer and environment.
4909
- */
4910
- export const zReadFiscalNumberAuthorizationReadinessResponse = zFiscalNumberAuthorizationReadiness;
4911
4965
  export const zImportHostedCertificateCustodyResponse = zHostedImportResponse;
4912
4966
  export const zIssueHostedInvoiceCredentialResponse = zHostedInvoiceCredentialResponse;
4913
4967
  export const zAcceptInvitationResponse = zMembershipAcceptance;
@@ -4923,6 +4977,10 @@ export const zDownloadInvoicePdfResponse = zFiscalArtifactBytes;
4923
4977
  export const zDownloadInvoiceXmlResponse = zFiscalArtifactBytes;
4924
4978
  export const zShareInvoiceReceiptResponse = zInvoiceReceiptAccess;
4925
4979
  export const zReplaceInvoiceResponse = zInvoiceResource;
4980
+ /**
4981
+ * Whether the Source connection's issuer can issue each e-CF type now, with every blocking reason.
4982
+ */
4983
+ export const zRetrieveIssuanceReadinessResponse = zIssuanceReadiness;
4926
4984
  export const zCreateOrganizationResponse = zOrganizationResource;
4927
4985
  export const zReadAuditEventsResponse = zAuditEventPage;
4928
4986
  export const zListCertificateCustodyBindingsResponse = zCertificateCustodyBindingPage;
@@ -4985,6 +5043,8 @@ export const recognizedWebhookEventTypes = [
4985
5043
  "fiscal_reception.not_received",
4986
5044
  "fiscal_reception.received",
4987
5045
  "invoice.accepted",
5046
+ "invoice.deliveryFailed",
5047
+ "invoice.deliverySent",
4988
5048
  "invoice.operatorRequired",
4989
5049
  "invoice.ready",
4990
5050
  "invoice.rejected",