@timbro/invoices 0.8.3 → 0.9.0-next.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 (102) hide show
  1. package/README.md +95 -258
  2. package/dist/admin.d.ts +44 -0
  3. package/dist/admin.d.ts.map +1 -0
  4. package/dist/admin.js +16 -0
  5. package/dist/certificate-custody-import.d.ts +4 -2
  6. package/dist/certificate-custody-import.d.ts.map +1 -1
  7. package/dist/certificate-custody-import.js +1 -1
  8. package/dist/collection.d.ts +1 -1
  9. package/dist/collection.js +4 -4
  10. package/dist/fiscal-engine-runtime.manifest.json +16 -16
  11. package/dist/fiscal-engine-runtime.provenance.json +17 -17
  12. package/dist/generated/hosted/index.d.ts +4 -0
  13. package/dist/generated/hosted/index.d.ts.map +1 -0
  14. package/dist/generated/hosted/index.js +3 -0
  15. package/dist/generated/hosted/sdk.gen.d.ts +106 -0
  16. package/dist/generated/hosted/sdk.gen.d.ts.map +1 -0
  17. package/dist/generated/hosted/sdk.gen.js +1049 -0
  18. package/dist/generated/hosted/types.gen.d.ts +2425 -0
  19. package/dist/generated/hosted/types.gen.d.ts.map +1 -0
  20. package/dist/generated/hosted/types.gen.js +2 -0
  21. package/dist/generated/hosted/zod.gen.d.ts +1772 -0
  22. package/dist/generated/hosted/zod.gen.d.ts.map +1 -0
  23. package/dist/generated/hosted/zod.gen.js +2269 -0
  24. package/dist/generated/index.d.ts +3 -3
  25. package/dist/generated/index.d.ts.map +1 -1
  26. package/dist/generated/index.js +2 -2
  27. package/dist/generated/invoice-api-contract.d.ts +6348 -0
  28. package/dist/generated/invoice-api-contract.d.ts.map +1 -0
  29. package/dist/generated/invoice-api-contract.js +11004 -0
  30. package/dist/generated/problem-catalog.d.ts.map +1 -1
  31. package/dist/generated/problem-catalog.js +6 -3
  32. package/dist/generated/sdk.gen.d.ts +70 -38
  33. package/dist/generated/sdk.gen.d.ts.map +1 -1
  34. package/dist/generated/sdk.gen.js +1261 -251
  35. package/dist/generated/types.gen.d.ts +4349 -2686
  36. package/dist/generated/types.gen.d.ts.map +1 -1
  37. package/dist/generated/zod.gen.d.ts +53875 -22747
  38. package/dist/generated/zod.gen.d.ts.map +1 -1
  39. package/dist/generated/zod.gen.js +5730 -665
  40. package/dist/generated-operation-client.d.ts +1 -0
  41. package/dist/generated-operation-client.d.ts.map +1 -1
  42. package/dist/generated-operation-client.js +3 -2
  43. package/dist/generated-problem.d.ts +1 -1
  44. package/dist/generated-problem.d.ts.map +1 -1
  45. package/dist/generated-problem.js +4 -4
  46. package/dist/index.d.ts +8 -37
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +2 -12
  49. package/dist/{fiscal-error.d.ts → invoice-error.d.ts} +10 -9
  50. package/dist/invoice-error.d.ts.map +1 -0
  51. package/dist/{fiscal-error.js → invoice-error.js} +7 -4
  52. package/dist/invoice-hosted-controls.d.ts +62 -0
  53. package/dist/invoice-hosted-controls.d.ts.map +1 -0
  54. package/dist/invoice-hosted-controls.js +188 -0
  55. package/dist/invoice-receipt.d.ts +10 -0
  56. package/dist/invoice-receipt.d.ts.map +1 -0
  57. package/dist/invoice-receipt.js +49 -0
  58. package/dist/invoice-replacement.d.ts +8 -0
  59. package/dist/invoice-replacement.d.ts.map +1 -0
  60. package/dist/invoice-replacement.js +18 -0
  61. package/dist/invoice.d.ts +94 -0
  62. package/dist/invoice.d.ts.map +1 -0
  63. package/dist/invoice.js +251 -0
  64. package/dist/printed-representation.d.ts +0 -1
  65. package/dist/printed-representation.d.ts.map +1 -1
  66. package/dist/printed-representation.js +3 -3
  67. package/dist/problem-contract.d.ts +14 -117
  68. package/dist/problem-contract.d.ts.map +1 -1
  69. package/dist/public-case.d.ts +1 -1
  70. package/dist/received-documents.d.ts +13 -12
  71. package/dist/received-documents.d.ts.map +1 -1
  72. package/dist/received-documents.js +26 -20
  73. package/dist/source-connection.d.ts +5 -5
  74. package/dist/source-connection.d.ts.map +1 -1
  75. package/dist/source-connection.js +8 -9
  76. package/dist/stamp-server-http-transport.js +6 -6
  77. package/dist/timbro-client.d.ts +5 -37
  78. package/dist/timbro-client.d.ts.map +1 -1
  79. package/dist/timbro-client.js +4 -20
  80. package/dist/timbro_fiscal_engine_bg.wasm +0 -0
  81. package/dist/transport-contract.d.ts +1 -1
  82. package/dist/transport-contract.d.ts.map +1 -1
  83. package/dist/webhook-delivery.js +1 -1
  84. package/dist/webhook-event.d.ts +124 -842
  85. package/dist/webhook-event.d.ts.map +1 -1
  86. package/dist/webhook-event.js +3 -1
  87. package/dist/webhook-registration.d.ts +1 -2
  88. package/dist/webhook-registration.d.ts.map +1 -1
  89. package/dist/webhook-registration.js +1 -2
  90. package/dist/webhook-replay.d.ts +1 -2
  91. package/dist/webhook-replay.d.ts.map +1 -1
  92. package/dist/webhook-replay.js +3 -4
  93. package/dist/workspace.d.ts.map +1 -1
  94. package/dist/workspace.js +2 -2
  95. package/package.json +26 -16
  96. package/dist/fiscal-delivery.d.ts +0 -12
  97. package/dist/fiscal-delivery.d.ts.map +0 -1
  98. package/dist/fiscal-delivery.js +0 -45
  99. package/dist/fiscal-error.d.ts.map +0 -1
  100. package/dist/fiscal-receipt.d.ts +0 -19
  101. package/dist/fiscal-receipt.d.ts.map +0 -1
  102. package/dist/fiscal-receipt.js +0 -66
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "protocol": "timbro.fiscal-document-evaluation.v1",
3
- "source_digest": "3a14a22ded57ea1d5ac62e1f813a69a486eb419ea955159716eee89bf0ffd142",
4
- "provenance_sha256": "f001aa7443a5c0e453ac15cde63b8f99553b2476d96f8f0a7ceab6111b076b9c",
3
+ "source_digest": "2e80733d58f5fc82720a62e6c8c62a1abc3afe4658f2240180a862129b96ef6b",
4
+ "provenance_sha256": "b5d67422362f254dc7b5df4afcf015287812aad1a5e57bdc1055cea9eb347d1c",
5
5
  "source_inputs": [
6
6
  {
7
7
  "path": "Cargo.lock",
8
- "bytes": 147349,
9
- "sha256": "da330ce0bd29c8c5ac8e7bfbf5aa2676297d8dbaa930f62e58ce654cf93e243a"
8
+ "bytes": 147359,
9
+ "sha256": "3034480bc47c5b40da0ee466744bf09f2efd3d055f0fd122a09b11dd250bff25"
10
10
  },
11
11
  {
12
12
  "path": "Cargo.toml",
13
- "bytes": 5722,
14
- "sha256": "bc228fe7e5de1c226d528cf6a3fdf071ad9ed22028f47f70d7bb2d414dfbfcfc"
13
+ "bytes": 5780,
14
+ "sha256": "8f641b443b968b8f49309ab0485e56e8857bf538b6b3558681ffc17b192d1c38"
15
15
  },
16
16
  {
17
17
  "path": "conformance/dgii/native-schema-registry.json",
@@ -445,8 +445,8 @@
445
445
  },
446
446
  {
447
447
  "path": "crates/fiscal-document/src/commercial_document.rs",
448
- "bytes": 162863,
449
- "sha256": "7f09414a091929a7e68e324f5d84506c8f52348cb32cb44a6565231fd003fe3a"
448
+ "bytes": 163672,
449
+ "sha256": "5a40691a42a77ee023286e298be06bd6c4e39e4ace73fe8d2702c5dd70d4af76"
450
450
  },
451
451
  {
452
452
  "path": "crates/fiscal-document/src/consumer_summary.rs",
@@ -465,8 +465,8 @@
465
465
  },
466
466
  {
467
467
  "path": "crates/fiscal-document/src/lib.rs",
468
- "bytes": 5346,
469
- "sha256": "2a70f62d84361daa10fb98d1cefd962a7a877b3434290c496de1698ea179c731"
468
+ "bytes": 5371,
469
+ "sha256": "2a8cb1e435ff7454bba8eac1ff4185ef5f6f3dff571875f8bf63b1f178897bc1"
470
470
  },
471
471
  {
472
472
  "path": "crates/fiscal-document/src/printed_representation.rs",
@@ -570,8 +570,8 @@
570
570
  },
571
571
  {
572
572
  "path": "crates/fiscal-model/src/type41.rs",
573
- "bytes": 4148,
574
- "sha256": "4135207628debc2b3e555c99a1b1fd70f8c743e87bf25d76f6f44b80c3d24c64"
573
+ "bytes": 4735,
574
+ "sha256": "c8c207402b20768a2771bbdd534d8bbaff8e80867ae9dbe8800042428f4019b4"
575
575
  },
576
576
  {
577
577
  "path": "crates/fiscal-model/src/type43.rs",
@@ -610,8 +610,8 @@
610
610
  },
611
611
  {
612
612
  "path": "scripts/fiscal-engine-runtime.mjs",
613
- "bytes": 9212,
614
- "sha256": "fcc5592dba184d653dc0ea550c580c50791a3e813226ebf4d8b1d8e42d440198"
613
+ "bytes": 9217,
614
+ "sha256": "38aed201d405e0a5456561a6f571ea19bdb0a8b98f04a881c04b1ccdbd7d2e9f"
615
615
  },
616
616
  {
617
617
  "path": "scripts/verify-browser-fiscal-wasm-boundary.mjs",
@@ -630,8 +630,8 @@
630
630
  "sha256": "150a5d5edb25b66ffebc776303b1a0e9c906b003c08131b0e8249d24e01b6000"
631
631
  },
632
632
  "timbro_fiscal_engine_bg.wasm": {
633
- "bytes": 1253764,
634
- "sha256": "7ee04a40aa78841f3008f792bc41b6a1dc2f193d407f452036cca82bf5794cd6"
633
+ "bytes": 1255598,
634
+ "sha256": "03b39fc666e799a273ebd3461bbe09d6fdc752eaca563703ae426ad6cfad9263"
635
635
  }
636
636
  }
637
637
  }
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "protocol": "timbro.fiscal-engine-wasm-build.v1",
3
3
  "source": {
4
- "digest": "3a14a22ded57ea1d5ac62e1f813a69a486eb419ea955159716eee89bf0ffd142",
4
+ "digest": "2e80733d58f5fc82720a62e6c8c62a1abc3afe4658f2240180a862129b96ef6b",
5
5
  "files": [
6
6
  {
7
7
  "path": "Cargo.lock",
8
- "bytes": 147349,
9
- "sha256": "da330ce0bd29c8c5ac8e7bfbf5aa2676297d8dbaa930f62e58ce654cf93e243a"
8
+ "bytes": 147359,
9
+ "sha256": "3034480bc47c5b40da0ee466744bf09f2efd3d055f0fd122a09b11dd250bff25"
10
10
  },
11
11
  {
12
12
  "path": "Cargo.toml",
13
- "bytes": 5722,
14
- "sha256": "bc228fe7e5de1c226d528cf6a3fdf071ad9ed22028f47f70d7bb2d414dfbfcfc"
13
+ "bytes": 5780,
14
+ "sha256": "8f641b443b968b8f49309ab0485e56e8857bf538b6b3558681ffc17b192d1c38"
15
15
  },
16
16
  {
17
17
  "path": "conformance/dgii/native-schema-registry.json",
@@ -445,8 +445,8 @@
445
445
  },
446
446
  {
447
447
  "path": "crates/fiscal-document/src/commercial_document.rs",
448
- "bytes": 162863,
449
- "sha256": "7f09414a091929a7e68e324f5d84506c8f52348cb32cb44a6565231fd003fe3a"
448
+ "bytes": 163672,
449
+ "sha256": "5a40691a42a77ee023286e298be06bd6c4e39e4ace73fe8d2702c5dd70d4af76"
450
450
  },
451
451
  {
452
452
  "path": "crates/fiscal-document/src/consumer_summary.rs",
@@ -465,8 +465,8 @@
465
465
  },
466
466
  {
467
467
  "path": "crates/fiscal-document/src/lib.rs",
468
- "bytes": 5346,
469
- "sha256": "2a70f62d84361daa10fb98d1cefd962a7a877b3434290c496de1698ea179c731"
468
+ "bytes": 5371,
469
+ "sha256": "2a8cb1e435ff7454bba8eac1ff4185ef5f6f3dff571875f8bf63b1f178897bc1"
470
470
  },
471
471
  {
472
472
  "path": "crates/fiscal-document/src/printed_representation.rs",
@@ -570,8 +570,8 @@
570
570
  },
571
571
  {
572
572
  "path": "crates/fiscal-model/src/type41.rs",
573
- "bytes": 4148,
574
- "sha256": "4135207628debc2b3e555c99a1b1fd70f8c743e87bf25d76f6f44b80c3d24c64"
573
+ "bytes": 4735,
574
+ "sha256": "c8c207402b20768a2771bbdd534d8bbaff8e80867ae9dbe8800042428f4019b4"
575
575
  },
576
576
  {
577
577
  "path": "crates/fiscal-model/src/type43.rs",
@@ -610,8 +610,8 @@
610
610
  },
611
611
  {
612
612
  "path": "scripts/fiscal-engine-runtime.mjs",
613
- "bytes": 9212,
614
- "sha256": "fcc5592dba184d653dc0ea550c580c50791a3e813226ebf4d8b1d8e42d440198"
613
+ "bytes": 9217,
614
+ "sha256": "38aed201d405e0a5456561a6f571ea19bdb0a8b98f04a881c04b1ccdbd7d2e9f"
615
615
  },
616
616
  {
617
617
  "path": "scripts/verify-browser-fiscal-wasm-boundary.mjs",
@@ -667,8 +667,8 @@
667
667
  ],
668
668
  "unoptimizedWasm": {
669
669
  "path": "target/wasm-pack/fiscal-engine-web/timbro_fiscal_engine_bg.wasm",
670
- "bytes": 1853828,
671
- "sha256": "d1372ed174cb0bc310a42935b4f98577e97e74ae40313f1ba026771f2c83c836"
670
+ "bytes": 1854584,
671
+ "sha256": "de40557bc4dc565d11c768e0ba9f6c3cc362f4aeb02dddc7ee9b88be23f67a7a"
672
672
  }
673
673
  },
674
674
  "verification": {
@@ -998,8 +998,8 @@
998
998
  },
999
999
  {
1000
1000
  "path": "target/wasm-pack/fiscal-engine-web/timbro_fiscal_engine_bg.wasm",
1001
- "bytes": 1253764,
1002
- "sha256": "7ee04a40aa78841f3008f792bc41b6a1dc2f193d407f452036cca82bf5794cd6"
1001
+ "bytes": 1255598,
1002
+ "sha256": "03b39fc666e799a273ebd3461bbe09d6fdc752eaca563703ae426ad6cfad9263"
1003
1003
  },
1004
1004
  {
1005
1005
  "path": "target/wasm-pack/fiscal-engine-web/timbro_fiscal_engine_bg.wasm.d.ts",
@@ -0,0 +1,4 @@
1
+ export { configureInvoicing, createWebhookEndpoint, deleteWebhookEndpoint, importSigningCertificate, issueInvoiceKey, issueTestInvoice, listWebhookDeliveries, listWebhookEndpoints, type Options, reactivateWebhookEndpoint, replayWebhookEvents, retrieveBusiness, retrieveWebhookEndpoint, rotateWebhookEndpointSecret, suspendWebhookEndpoint, updateBusiness, } from "./sdk.gen.ts";
2
+ export type { ClientOptions, ConfigureInvoicingData, ConfigureInvoicingError, ConfigureInvoicingErrors, ConfigureInvoicingResponse, ConfigureInvoicingResponses, CreateWebhookEndpointData, CreateWebhookEndpointError, CreateWebhookEndpointErrors, CreateWebhookEndpointResponse, CreateWebhookEndpointResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointError, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponse, DeleteWebhookEndpointResponses, ImportSigningCertificateData, ImportSigningCertificateError, ImportSigningCertificateErrors, ImportSigningCertificateResponse, ImportSigningCertificateResponses, IssueInvoiceKeyData, IssueInvoiceKeyError, IssueInvoiceKeyErrors, IssueInvoiceKeyResponse, IssueInvoiceKeyResponses, IssueTestInvoiceData, IssueTestInvoiceError, IssueTestInvoiceErrors, IssueTestInvoiceResponse, IssueTestInvoiceResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesError, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponse, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsError, ListWebhookEndpointsErrors, ListWebhookEndpointsResponse, ListWebhookEndpointsResponses, MerchantBusinessFiscalBinding, MerchantBusinessFiscalSetup, MerchantBusinessFiscalSetupAvailable, MerchantBusinessFiscalSetupUnavailable, MerchantBusinessLegalIssuer, MerchantBusinessLiveFiscalSetup, MerchantBusinessLiveFiscalSetupAvailable, MerchantBusinessSigningCertificate, Problem, ReactivateWebhookEndpointData, ReactivateWebhookEndpointError, ReactivateWebhookEndpointErrors, ReactivateWebhookEndpointResponse, ReactivateWebhookEndpointResponses, ReplayWebhookEventsData, ReplayWebhookEventsError, ReplayWebhookEventsErrors, ReplayWebhookEventsResponse, ReplayWebhookEventsResponses, RetrieveBusinessData, RetrieveBusinessError, RetrieveBusinessErrors, RetrieveBusinessResponse, RetrieveBusinessResponses, RetrieveWebhookEndpointData, RetrieveWebhookEndpointError, RetrieveWebhookEndpointErrors, RetrieveWebhookEndpointResponse, RetrieveWebhookEndpointResponses, RotateWebhookEndpointSecretData, RotateWebhookEndpointSecretError, RotateWebhookEndpointSecretErrors, RotateWebhookEndpointSecretResponse, RotateWebhookEndpointSecretResponses, SuspendWebhookEndpointData, SuspendWebhookEndpointError, SuspendWebhookEndpointErrors, SuspendWebhookEndpointResponse, SuspendWebhookEndpointResponses, UpdateBusinessData, UpdateBusinessError, UpdateBusinessErrors, UpdateBusinessResponse, UpdateBusinessResponses, } from "./types.gen.ts";
3
+ export { zConfigureInvoicingBody, zConfigureInvoicingHeaders, zConfigureInvoicingResponse, zCreateWebhookEndpointBody, zCreateWebhookEndpointHeaders, zCreateWebhookEndpointResponse, zDeleteWebhookEndpointPath, zDeleteWebhookEndpointResponse, zImportSigningCertificateBody, zImportSigningCertificateResponse, zIssueInvoiceKeyBody, zIssueInvoiceKeyHeaders, zIssueInvoiceKeyResponse, zIssueTestInvoiceBody, zIssueTestInvoiceResponse, zListWebhookDeliveriesPath, zListWebhookDeliveriesQuery, zListWebhookDeliveriesResponse, zListWebhookEndpointsQuery, zListWebhookEndpointsResponse, zMerchantBusinessFiscalBinding, zMerchantBusinessFiscalSetup, zMerchantBusinessFiscalSetupAvailable, zMerchantBusinessFiscalSetupUnavailable, zMerchantBusinessLegalIssuer, zMerchantBusinessLiveFiscalSetup, zMerchantBusinessLiveFiscalSetupAvailable, zMerchantBusinessSigningCertificate, zProblem, zReactivateWebhookEndpointPath, zReactivateWebhookEndpointResponse, zReplayWebhookEventsBody, zReplayWebhookEventsHeaders, zReplayWebhookEventsPath, zReplayWebhookEventsResponse, zRetrieveBusinessResponse, zRetrieveWebhookEndpointPath, zRetrieveWebhookEndpointResponse, zRotateWebhookEndpointSecretHeaders, zRotateWebhookEndpointSecretPath, zRotateWebhookEndpointSecretResponse, zSuspendWebhookEndpointPath, zSuspendWebhookEndpointResponse, zUpdateBusinessBody, zUpdateBusinessResponse, } from "./zod.gen.ts";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/hosted/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,KAAK,OAAO,EACZ,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,sBAAsB,EACtB,u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B,GACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,iCAAiC,EACjC,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,4BAA4B,EAC5B,qCAAqC,EACrC,uCAAuC,EACvC,4BAA4B,EAC5B,gCAAgC,EAChC,yCAAyC,EACzC,mCAAmC,EACnC,QAAQ,EACR,8BAA8B,EAC9B,kCAAkC,EAClC,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,4BAA4B,EAC5B,gCAAgC,EAChC,mCAAmC,EACnC,gCAAgC,EAChC,oCAAoC,EACpC,2BAA2B,EAC3B,+BAA+B,EAC/B,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export { configureInvoicing, createWebhookEndpoint, deleteWebhookEndpoint, importSigningCertificate, issueInvoiceKey, issueTestInvoice, listWebhookDeliveries, listWebhookEndpoints, reactivateWebhookEndpoint, replayWebhookEvents, retrieveBusiness, retrieveWebhookEndpoint, rotateWebhookEndpointSecret, suspendWebhookEndpoint, updateBusiness, } from "./sdk.gen.js";
3
+ export { zConfigureInvoicingBody, zConfigureInvoicingHeaders, zConfigureInvoicingResponse, zCreateWebhookEndpointBody, zCreateWebhookEndpointHeaders, zCreateWebhookEndpointResponse, zDeleteWebhookEndpointPath, zDeleteWebhookEndpointResponse, zImportSigningCertificateBody, zImportSigningCertificateResponse, zIssueInvoiceKeyBody, zIssueInvoiceKeyHeaders, zIssueInvoiceKeyResponse, zIssueTestInvoiceBody, zIssueTestInvoiceResponse, zListWebhookDeliveriesPath, zListWebhookDeliveriesQuery, zListWebhookDeliveriesResponse, zListWebhookEndpointsQuery, zListWebhookEndpointsResponse, zMerchantBusinessFiscalBinding, zMerchantBusinessFiscalSetup, zMerchantBusinessFiscalSetupAvailable, zMerchantBusinessFiscalSetupUnavailable, zMerchantBusinessLegalIssuer, zMerchantBusinessLiveFiscalSetup, zMerchantBusinessLiveFiscalSetupAvailable, zMerchantBusinessSigningCertificate, zProblem, zReactivateWebhookEndpointPath, zReactivateWebhookEndpointResponse, zReplayWebhookEventsBody, zReplayWebhookEventsHeaders, zReplayWebhookEventsPath, zReplayWebhookEventsResponse, zRetrieveBusinessResponse, zRetrieveWebhookEndpointPath, zRetrieveWebhookEndpointResponse, zRotateWebhookEndpointSecretHeaders, zRotateWebhookEndpointSecretPath, zRotateWebhookEndpointSecretResponse, zSuspendWebhookEndpointPath, zSuspendWebhookEndpointResponse, zUpdateBusinessBody, zUpdateBusinessResponse, } from "./zod.gen.js";
@@ -0,0 +1,106 @@
1
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from "../../generated-operation-client.ts";
2
+ import type { ConfigureInvoicingData, ConfigureInvoicingErrors, ConfigureInvoicingResponses, CreateWebhookEndpointData, CreateWebhookEndpointErrors, CreateWebhookEndpointResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponses, ImportSigningCertificateData, ImportSigningCertificateErrors, ImportSigningCertificateResponses, IssueInvoiceKeyData, IssueInvoiceKeyErrors, IssueInvoiceKeyResponses, IssueTestInvoiceData, IssueTestInvoiceErrors, IssueTestInvoiceResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsErrors, ListWebhookEndpointsResponses, ReactivateWebhookEndpointData, ReactivateWebhookEndpointErrors, ReactivateWebhookEndpointResponses, ReplayWebhookEventsData, ReplayWebhookEventsErrors, ReplayWebhookEventsResponses, RetrieveBusinessData, RetrieveBusinessErrors, RetrieveBusinessResponses, RetrieveWebhookEndpointData, RetrieveWebhookEndpointErrors, RetrieveWebhookEndpointResponses, RotateWebhookEndpointSecretData, RotateWebhookEndpointSecretErrors, RotateWebhookEndpointSecretResponses, SuspendWebhookEndpointData, SuspendWebhookEndpointErrors, SuspendWebhookEndpointResponses, UpdateBusinessData, UpdateBusinessErrors, UpdateBusinessResponses } from "./types.gen.ts";
3
+ export type Options<TData extends TDataShape = TDataShape, TResponse = unknown> = Options2<TData, TResponse> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
15
+ };
16
+ /**
17
+ * Retrieve the merchant business
18
+ *
19
+ * Returns the business the credential selects, its capabilities, and the requirements that remain. A caller resumes onboarding by acting on the first requirement it owns and reading again.
20
+ */
21
+ export declare const retrieveBusiness: (options: Options<RetrieveBusinessData>) => RequestResult<RetrieveBusinessResponses, RetrieveBusinessErrors>;
22
+ /**
23
+ * Update the merchant business
24
+ *
25
+ * Replaces each member the request carries: requested capabilities, any subset of the fiscal details, or the whole payments profile. The server then provisions whatever the new state allows.
26
+ */
27
+ export declare const updateBusiness: (options: Options<UpdateBusinessData>) => RequestResult<UpdateBusinessResponses, UpdateBusinessErrors>;
28
+ /**
29
+ * Configure a Timbro invoice environment
30
+ *
31
+ * Creates or replays this tenant's exact sandbox or production Source binding. It does not assert DGII production qualification.
32
+ */
33
+ export declare const configureInvoicing: (options: Options<ConfigureInvoicingData>) => RequestResult<ConfigureInvoicingResponses, ConfigureInvoicingErrors>;
34
+ /**
35
+ * Import a signing certificate
36
+ *
37
+ * Hands the PKCS#12 archive and its password to Timbro's custody for the selected invoice environment. Custody answers the certificate it already holds as a replay and refuses a different one. A production certificate import does not assert DGII production qualification.
38
+ */
39
+ export declare const importSigningCertificate: (options: Options<ImportSigningCertificateData>) => RequestResult<ImportSigningCertificateResponses, ImportSigningCertificateErrors>;
40
+ /**
41
+ * Issue the test invoice
42
+ *
43
+ * Sends a new TesteCF document when none is processing or accepted and answers 202; otherwise answers 200 with the business unchanged. The server also sends it on its own once the certificate is active.
44
+ */
45
+ export declare const issueTestInvoice: (options: Options<IssueTestInvoiceData>) => RequestResult<IssueTestInvoiceResponses, IssueTestInvoiceErrors>;
46
+ /**
47
+ * Issue an invoice Source key
48
+ *
49
+ * Issues the environment-specific Source key an ERP uses against Timbro's invoice API. The key grants authenticated Invoice API access; certificate validity, numbering, and DGII production qualification remain separate issuance checks. This response is the only one that carries the key; the same Idempotency-Key and mode replay it.
50
+ */
51
+ export declare const issueInvoiceKey: (options: Options<IssueInvoiceKeyData>) => RequestResult<IssueInvoiceKeyResponses, IssueInvoiceKeyErrors>;
52
+ /**
53
+ * List webhook endpoints
54
+ *
55
+ * Returns the tenant's endpoints for this mode, newest first, including endpoints already deleted. No signing secret is ever part of the page.
56
+ */
57
+ export declare const listWebhookEndpoints: (options: Options<ListWebhookEndpointsData>) => RequestResult<ListWebhookEndpointsResponses, ListWebhookEndpointsErrors>;
58
+ /**
59
+ * Create a merchant webhook endpoint
60
+ *
61
+ * Registers an HTTPS endpoint for signed domain events. The signing secret is returned only in this response.
62
+ */
63
+ export declare const createWebhookEndpoint: (options: Options<CreateWebhookEndpointData>) => RequestResult<CreateWebhookEndpointResponses, CreateWebhookEndpointErrors>;
64
+ /**
65
+ * Delete a webhook endpoint
66
+ *
67
+ * Stops delivery to this endpoint permanently. No further event is queued for it and its signing secrets sign nothing again.
68
+ */
69
+ export declare const deleteWebhookEndpoint: (options: Options<DeleteWebhookEndpointData>) => RequestResult<DeleteWebhookEndpointResponses, DeleteWebhookEndpointErrors>;
70
+ /**
71
+ * Retrieve a webhook endpoint
72
+ *
73
+ * Returns the authoritative endpoint state, without its signing secret, so a lifecycle call that timed out can be settled by reading.
74
+ */
75
+ export declare const retrieveWebhookEndpoint: (options: Options<RetrieveWebhookEndpointData>) => RequestResult<RetrieveWebhookEndpointResponses, RetrieveWebhookEndpointErrors>;
76
+ /**
77
+ * List deliveries to a webhook endpoint
78
+ *
79
+ * Returns what the gateway tried to deliver to this endpoint, newest first, with the endpoint's own answer as a bounded excerpt.
80
+ */
81
+ export declare const listWebhookDeliveries: (options: Options<ListWebhookDeliveriesData>) => RequestResult<ListWebhookDeliveriesResponses, ListWebhookDeliveriesErrors>;
82
+ /**
83
+ * Replay events to a webhook endpoint
84
+ *
85
+ * Queues a new delivery for each selected event, up to 100. Each one repeats the original event id and is signed with a fresh webhook-timestamp, so a consumer that already applied the event does nothing.
86
+ */
87
+ export declare const replayWebhookEvents: (options: Options<ReplayWebhookEventsData>) => RequestResult<ReplayWebhookEventsResponses, ReplayWebhookEventsErrors>;
88
+ /**
89
+ * Rotate the signing secret of a webhook endpoint
90
+ *
91
+ * Issues a new signing secret, returned only in this response, and keeps the previous secret signing deliveries for 24 hours.
92
+ */
93
+ export declare const rotateWebhookEndpointSecret: (options: Options<RotateWebhookEndpointSecretData>) => RequestResult<RotateWebhookEndpointSecretResponses, RotateWebhookEndpointSecretErrors>;
94
+ /**
95
+ * Suspend a webhook endpoint
96
+ *
97
+ * Stops delivery attempts to this endpoint. Deliveries queued meanwhile wait for reactivation.
98
+ */
99
+ export declare const suspendWebhookEndpoint: (options: Options<SuspendWebhookEndpointData>) => RequestResult<SuspendWebhookEndpointResponses, SuspendWebhookEndpointErrors>;
100
+ /**
101
+ * Reactivate a suspended webhook endpoint
102
+ *
103
+ * Resumes delivery attempts, starting with the deliveries queued meanwhile.
104
+ */
105
+ export declare const reactivateWebhookEndpoint: (options: Options<ReactivateWebhookEndpointData>) => RequestResult<ReactivateWebhookEndpointResponses, ReactivateWebhookEndpointErrors>;
106
+ //# sourceMappingURL=sdk.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../../src/generated/hosted/sdk.gen.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,OAAO,IAAI,QAAQ,EACnB,aAAa,EACb,UAAU,EACX,MAAM,qCAAqC,CAAC;AAoB7C,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,8BAA8B,EAC9B,4BAA4B,EAC5B,8BAA8B,EAC9B,iCAAiC,EACjC,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,kCAAkC,EAClC,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,2BAA2B,EAC3B,6BAA6B,EAC7B,gCAAgC,EAChC,+BAA+B,EAC/B,iCAAiC,EACjC,oCAAoC,EACpC,0BAA0B,EAC1B,4BAA4B,EAC5B,+BAA+B,EAC/B,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,SAAS,GAAG,OAAO,IAAI,QAAQ,CACxF,KAAK,EACL,SAAS,CACV,GAAG;IACF;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,UAAU,SAAS,KAAK,GAAG,MAAM,CAAC,MAAM,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