@timbro/invoices 0.7.0-next.30

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 (144) hide show
  1. package/README.md +308 -0
  2. package/dist/artifact-headers.d.ts +9 -0
  3. package/dist/artifact-headers.d.ts.map +1 -0
  4. package/dist/artifact-headers.js +43 -0
  5. package/dist/certificate-custody-import.d.ts +13 -0
  6. package/dist/certificate-custody-import.d.ts.map +1 -0
  7. package/dist/certificate-custody-import.js +30 -0
  8. package/dist/certificate-custody-readiness.d.ts +6 -0
  9. package/dist/certificate-custody-readiness.d.ts.map +1 -0
  10. package/dist/certificate-custody-readiness.js +13 -0
  11. package/dist/collection.d.ts +13 -0
  12. package/dist/collection.d.ts.map +1 -0
  13. package/dist/collection.js +21 -0
  14. package/dist/direct-connection.d.ts +74 -0
  15. package/dist/direct-connection.d.ts.map +1 -0
  16. package/dist/direct-connection.js +192 -0
  17. package/dist/document-node.d.ts +15 -0
  18. package/dist/document-node.d.ts.map +1 -0
  19. package/dist/document-node.js +67 -0
  20. package/dist/document-worker-protocol.d.ts +30 -0
  21. package/dist/document-worker-protocol.d.ts.map +1 -0
  22. package/dist/document-worker-protocol.js +103 -0
  23. package/dist/document-worker.d.ts +2 -0
  24. package/dist/document-worker.d.ts.map +1 -0
  25. package/dist/document-worker.js +71 -0
  26. package/dist/document.d.ts +38 -0
  27. package/dist/document.d.ts.map +1 -0
  28. package/dist/document.js +204 -0
  29. package/dist/fiscal-delivery.d.ts +12 -0
  30. package/dist/fiscal-delivery.d.ts.map +1 -0
  31. package/dist/fiscal-delivery.js +45 -0
  32. package/dist/fiscal-engine-runtime.manifest.json +637 -0
  33. package/dist/fiscal-engine-runtime.provenance.json +1010 -0
  34. package/dist/fiscal-error.d.ts +23 -0
  35. package/dist/fiscal-error.d.ts.map +1 -0
  36. package/dist/fiscal-error.js +36 -0
  37. package/dist/fiscal-numbering-readiness.d.ts +6 -0
  38. package/dist/fiscal-numbering-readiness.d.ts.map +1 -0
  39. package/dist/fiscal-numbering-readiness.js +13 -0
  40. package/dist/fiscal-operation-timing.d.ts +9 -0
  41. package/dist/fiscal-operation-timing.d.ts.map +1 -0
  42. package/dist/fiscal-operation-timing.js +22 -0
  43. package/dist/fiscal-operation.d.ts +112 -0
  44. package/dist/fiscal-operation.d.ts.map +1 -0
  45. package/dist/fiscal-operation.js +193 -0
  46. package/dist/fiscal-receipt.d.ts +19 -0
  47. package/dist/fiscal-receipt.d.ts.map +1 -0
  48. package/dist/fiscal-receipt.js +66 -0
  49. package/dist/generated/index.d.ts +5 -0
  50. package/dist/generated/index.d.ts.map +1 -0
  51. package/dist/generated/index.js +4 -0
  52. package/dist/generated/problem-catalog.d.ts +7 -0
  53. package/dist/generated/problem-catalog.d.ts.map +1 -0
  54. package/dist/generated/problem-catalog.js +198 -0
  55. package/dist/generated/sdk.gen.d.ts +240 -0
  56. package/dist/generated/sdk.gen.d.ts.map +1 -0
  57. package/dist/generated/sdk.gen.js +4486 -0
  58. package/dist/generated/types.gen.d.ts +6906 -0
  59. package/dist/generated/types.gen.d.ts.map +1 -0
  60. package/dist/generated/types.gen.js +2 -0
  61. package/dist/generated/zod.gen.d.ts +146666 -0
  62. package/dist/generated/zod.gen.d.ts.map +1 -0
  63. package/dist/generated/zod.gen.js +25077 -0
  64. package/dist/generated-operation-client.d.ts +47 -0
  65. package/dist/generated-operation-client.d.ts.map +1 -0
  66. package/dist/generated-operation-client.js +112 -0
  67. package/dist/generated-problem.d.ts +12 -0
  68. package/dist/generated-problem.d.ts.map +1 -0
  69. package/dist/generated-problem.js +37 -0
  70. package/dist/hosted-tenant.d.ts +38 -0
  71. package/dist/hosted-tenant.d.ts.map +1 -0
  72. package/dist/hosted-tenant.js +67 -0
  73. package/dist/hosted-workspace-transport.d.ts +15 -0
  74. package/dist/hosted-workspace-transport.d.ts.map +1 -0
  75. package/dist/hosted-workspace-transport.js +15 -0
  76. package/dist/idempotency-key.d.ts +3 -0
  77. package/dist/idempotency-key.d.ts.map +1 -0
  78. package/dist/idempotency-key.js +11 -0
  79. package/dist/index.d.ts +42 -0
  80. package/dist/index.d.ts.map +1 -0
  81. package/dist/index.js +14 -0
  82. package/dist/printed-representation.d.ts +23 -0
  83. package/dist/printed-representation.d.ts.map +1 -0
  84. package/dist/printed-representation.js +135 -0
  85. package/dist/problem-contract.d.ts +265 -0
  86. package/dist/problem-contract.d.ts.map +1 -0
  87. package/dist/problem-contract.js +25 -0
  88. package/dist/public-case.d.ts +15 -0
  89. package/dist/public-case.d.ts.map +1 -0
  90. package/dist/public-case.js +26 -0
  91. package/dist/received-documents.d.ts +35 -0
  92. package/dist/received-documents.d.ts.map +1 -0
  93. package/dist/received-documents.js +83 -0
  94. package/dist/sha256.d.ts +2 -0
  95. package/dist/sha256.d.ts.map +1 -0
  96. package/dist/sha256.js +6 -0
  97. package/dist/signed-document.d.ts +15 -0
  98. package/dist/signed-document.d.ts.map +1 -0
  99. package/dist/signed-document.js +57 -0
  100. package/dist/source-command-validation.d.ts +3 -0
  101. package/dist/source-command-validation.d.ts.map +1 -0
  102. package/dist/source-command-validation.js +14 -0
  103. package/dist/source-connection-activation.d.ts +18 -0
  104. package/dist/source-connection-activation.d.ts.map +1 -0
  105. package/dist/source-connection-activation.js +41 -0
  106. package/dist/source-connection-transport.d.ts +8 -0
  107. package/dist/source-connection-transport.d.ts.map +1 -0
  108. package/dist/source-connection-transport.js +8 -0
  109. package/dist/source-connection.d.ts +18 -0
  110. package/dist/source-connection.d.ts.map +1 -0
  111. package/dist/source-connection.js +35 -0
  112. package/dist/stamp-server-http-transport.d.ts +23 -0
  113. package/dist/stamp-server-http-transport.d.ts.map +1 -0
  114. package/dist/stamp-server-http-transport.js +179 -0
  115. package/dist/timbro-client.d.ts +124 -0
  116. package/dist/timbro-client.d.ts.map +1 -0
  117. package/dist/timbro-client.js +72 -0
  118. package/dist/timbro_fiscal_engine.js +239 -0
  119. package/dist/timbro_fiscal_engine_bg.wasm +0 -0
  120. package/dist/transport-contract.d.ts +16 -0
  121. package/dist/transport-contract.d.ts.map +1 -0
  122. package/dist/transport-contract.js +1 -0
  123. package/dist/webhook-delivery.d.ts +14 -0
  124. package/dist/webhook-delivery.d.ts.map +1 -0
  125. package/dist/webhook-delivery.js +32 -0
  126. package/dist/webhook-event.d.ts +2711 -0
  127. package/dist/webhook-event.d.ts.map +1 -0
  128. package/dist/webhook-event.js +15 -0
  129. package/dist/webhook-registration.d.ts +12 -0
  130. package/dist/webhook-registration.d.ts.map +1 -0
  131. package/dist/webhook-registration.js +37 -0
  132. package/dist/webhook-replay.d.ts +12 -0
  133. package/dist/webhook-replay.d.ts.map +1 -0
  134. package/dist/webhook-replay.js +27 -0
  135. package/dist/webhook-verification.d.ts +25 -0
  136. package/dist/webhook-verification.d.ts.map +1 -0
  137. package/dist/webhook-verification.js +53 -0
  138. package/dist/workspace-session-transport.d.ts +8 -0
  139. package/dist/workspace-session-transport.d.ts.map +1 -0
  140. package/dist/workspace-session-transport.js +11 -0
  141. package/dist/workspace.d.ts +74 -0
  142. package/dist/workspace.d.ts.map +1 -0
  143. package/dist/workspace.js +278 -0
  144. package/package.json +73 -0
@@ -0,0 +1,4486 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { zAcceptInvitationResponse, zApproveDirectConnectionRequestResponse, zAuthorizeAuthorityRejectedReplacementResponse, zBeginVercelSourceProviderInstallationResponse, zCancelDirectConnectionRequestResponse, zCloseWorkspaceSessionResponse, zCompleteLegalIssuerProfileResponse, zCompleteSourceConnectionActivationVerificationResponse, zCompleteVercelSourceProviderInstallationResponse, zConfirmDirectConnectionResponse, zCreateCertificateCustodyBindingResponse, zCreateDirectConnectionRequestResponse, zCreateFiscalDeliveryResponse, zCreateFiscalOperationResponse, zCreateHostedTenantResponse, zCreateHostedTenantWebhookSecretRotationResponse, zCreateOrganizationResponse, zCreateSourceConnectionResponse, zDeclareReceptionMountResponse, zFindFiscalArtifactResponse, zFindFiscalOperationBySourceResponse, zFindFiscalOperationResponse, zGetSourceReceivedDocumentResponse, zHealthLiveResponse, zHealthReadyResponse, zImportHostedCertificateCustodyResponse, zInspectFiscalNumberAuthorizationHistoryResponse, zInviteMemberResponse, zIssueHostedSandboxSourceCredentialResponse, zListAuthorizedVercelProjectsResponse, zListCertificateCustodyBindingsResponse, zListFiscalOperationsResponse, zListInvitationsResponse, zListLegalIssuersResponse, zListOrganizationFiscalOperationsResponse, zListReceivedDocumentsResponse, zListSourceConnectionsResponse, zListSourceProviderAuthorizationsResponse, zListSourceReceivedDocumentsResponse, zListWebhookDeliveriesResponse, zOpenWorkspaceSessionResponse, zPollDirectConnectionRequestResponse, zPreviewDirectConnectionRequestResponse, zProblemBody, zReadAuditEventsResponse, zReadAuthorizedVercelProjectQualificationResponse, zReadCertificateCustodyBindingResponse, zReadCertificateCustodyReadinessResponse, zReadCurrentUserAccountResponse, zReadElectronicFiscalDocumentEligibilityResponse, zReadFiscalNumberAuthorizationReadinessResponse, zReadFiscalOperationTimingResponse, zReadOnboardingLegalIssuerIdentityResponse, zReadOnboardingReadinessResponse, zReadOnboardingServiceScopeResponse, zReadOrganizationFiscalOperationResponse, zReadReceivedDocumentResponse, zReadSourceConnectionResponse, zReadSourceProviderAuthorizationResponse, zRecordCommercialResponseResponse, zRecoverSourceConnectionActivationResponse, zRegisterFiscalNumberAuthorizationResponse, zRegisterLegalIssuerResponse, zRegisterUserAccountResponse, zRegisterWebhookEndpointResponse, zReleaseHostedTenantResponse, zReplayWebhookEventsResponse, zRespondToReceivedDocumentResponse, zRetrieveFiscalDeliveryPrintedRepresentationResponse, zRetrieveFiscalDeliveryResponse, zRetrieveFiscalReceiptPrintedRepresentationResponse, zRetrieveFiscalReceiptResponse, zRetrieveWorkspaceFiscalArtifactResponse, zRevokeCertificateCustodyCertificateVersionResponse, zShareFiscalReceiptResponse, zUpdateOnboardingLegalIssuerIdentityResponse, zUpdateOnboardingServiceScopeResponse, } from "./zod.gen.js";
3
+ export const healthLive = (options) => options.client.get({
4
+ response_decoder: (response) => {
5
+ switch (response.status) {
6
+ case 200:
7
+ return {
8
+ status: 200,
9
+ headers: response.headers,
10
+ body: zHealthLiveResponse.parse(response.body),
11
+ };
12
+ default:
13
+ return {
14
+ status: "unexpected",
15
+ status_code: response.status,
16
+ headers: response.headers,
17
+ body: response.body,
18
+ };
19
+ }
20
+ },
21
+ url: "/health/live",
22
+ ...options,
23
+ });
24
+ export const healthReady = (options) => options.client.get({
25
+ response_decoder: (response) => {
26
+ switch (response.status) {
27
+ case 200:
28
+ return {
29
+ status: 200,
30
+ headers: response.headers,
31
+ body: zHealthReadyResponse.parse(response.body),
32
+ };
33
+ case 503:
34
+ return {
35
+ status: 503,
36
+ headers: response.headers,
37
+ body: zHealthReadyResponse.parse(response.body),
38
+ };
39
+ default:
40
+ return {
41
+ status: "unexpected",
42
+ status_code: response.status,
43
+ headers: response.headers,
44
+ body: response.body,
45
+ };
46
+ }
47
+ },
48
+ url: "/health/ready",
49
+ ...options,
50
+ });
51
+ export const createHostedTenant = (options) => options.client.post({
52
+ response_decoder: (response) => {
53
+ switch (response.status) {
54
+ case 200:
55
+ return {
56
+ status: 200,
57
+ headers: response.headers,
58
+ body: zCreateHostedTenantResponse.parse(response.body),
59
+ };
60
+ case 201:
61
+ return {
62
+ status: 201,
63
+ headers: response.headers,
64
+ body: zCreateHostedTenantResponse.parse(response.body),
65
+ };
66
+ case 400:
67
+ return {
68
+ status: 400,
69
+ headers: response.headers,
70
+ body: zProblemBody.parse(response.body),
71
+ };
72
+ case 401:
73
+ return {
74
+ status: 401,
75
+ headers: response.headers,
76
+ body: zProblemBody.parse(response.body),
77
+ };
78
+ case 403:
79
+ return {
80
+ status: 403,
81
+ headers: response.headers,
82
+ body: zProblemBody.parse(response.body),
83
+ };
84
+ case 409:
85
+ return {
86
+ status: 409,
87
+ headers: response.headers,
88
+ body: zProblemBody.parse(response.body),
89
+ };
90
+ case 413:
91
+ return {
92
+ status: 413,
93
+ headers: response.headers,
94
+ body: zProblemBody.parse(response.body),
95
+ };
96
+ case 415:
97
+ return {
98
+ status: 415,
99
+ headers: response.headers,
100
+ body: zProblemBody.parse(response.body),
101
+ };
102
+ case 422:
103
+ return {
104
+ status: 422,
105
+ headers: response.headers,
106
+ body: zProblemBody.parse(response.body),
107
+ };
108
+ case 500:
109
+ return {
110
+ status: 500,
111
+ headers: response.headers,
112
+ body: zProblemBody.parse(response.body),
113
+ };
114
+ default:
115
+ return {
116
+ status: "unexpected",
117
+ status_code: response.status,
118
+ headers: response.headers,
119
+ body: response.body,
120
+ };
121
+ }
122
+ },
123
+ url: "/hosted/tenants",
124
+ ...options,
125
+ headers: {
126
+ "Content-Type": "application/json",
127
+ ...options.headers,
128
+ },
129
+ });
130
+ export const releaseHostedTenant = (options) => options.client.post({
131
+ response_decoder: (response) => {
132
+ switch (response.status) {
133
+ case 200:
134
+ return {
135
+ status: 200,
136
+ headers: response.headers,
137
+ body: zReleaseHostedTenantResponse.parse(response.body),
138
+ };
139
+ case 400:
140
+ return {
141
+ status: 400,
142
+ headers: response.headers,
143
+ body: zProblemBody.parse(response.body),
144
+ };
145
+ case 401:
146
+ return {
147
+ status: 401,
148
+ headers: response.headers,
149
+ body: zProblemBody.parse(response.body),
150
+ };
151
+ case 404:
152
+ return {
153
+ status: 404,
154
+ headers: response.headers,
155
+ body: zProblemBody.parse(response.body),
156
+ };
157
+ case 409:
158
+ return {
159
+ status: 409,
160
+ headers: response.headers,
161
+ body: zProblemBody.parse(response.body),
162
+ };
163
+ case 413:
164
+ return {
165
+ status: 413,
166
+ headers: response.headers,
167
+ body: zProblemBody.parse(response.body),
168
+ };
169
+ case 415:
170
+ return {
171
+ status: 415,
172
+ headers: response.headers,
173
+ body: zProblemBody.parse(response.body),
174
+ };
175
+ case 500:
176
+ return {
177
+ status: 500,
178
+ headers: response.headers,
179
+ body: zProblemBody.parse(response.body),
180
+ };
181
+ default:
182
+ return {
183
+ status: "unexpected",
184
+ status_code: response.status,
185
+ headers: response.headers,
186
+ body: response.body,
187
+ };
188
+ }
189
+ },
190
+ url: "/hosted/tenants/releases",
191
+ ...options,
192
+ headers: {
193
+ "Content-Type": "application/json",
194
+ ...options.headers,
195
+ },
196
+ });
197
+ export const createHostedTenantWebhookSecretRotation = (options) => options.client.post({
198
+ response_decoder: (response) => {
199
+ switch (response.status) {
200
+ case 200:
201
+ return {
202
+ status: 200,
203
+ headers: response.headers,
204
+ body: zCreateHostedTenantWebhookSecretRotationResponse.parse(response.body),
205
+ };
206
+ case 201:
207
+ return {
208
+ status: 201,
209
+ headers: response.headers,
210
+ body: zCreateHostedTenantWebhookSecretRotationResponse.parse(response.body),
211
+ };
212
+ case 400:
213
+ return {
214
+ status: 400,
215
+ headers: response.headers,
216
+ body: zProblemBody.parse(response.body),
217
+ };
218
+ case 401:
219
+ return {
220
+ status: 401,
221
+ headers: response.headers,
222
+ body: zProblemBody.parse(response.body),
223
+ };
224
+ case 403:
225
+ return {
226
+ status: 403,
227
+ headers: response.headers,
228
+ body: zProblemBody.parse(response.body),
229
+ };
230
+ case 404:
231
+ return {
232
+ status: 404,
233
+ headers: response.headers,
234
+ body: zProblemBody.parse(response.body),
235
+ };
236
+ case 500:
237
+ return {
238
+ status: 500,
239
+ headers: response.headers,
240
+ body: zProblemBody.parse(response.body),
241
+ };
242
+ default:
243
+ return {
244
+ status: "unexpected",
245
+ status_code: response.status,
246
+ headers: response.headers,
247
+ body: response.body,
248
+ };
249
+ }
250
+ },
251
+ url: "/hosted/tenants/{source_connection_id}/webhook-secret-rotations",
252
+ ...options,
253
+ });
254
+ export const readCertificateCustodyReadiness = (options) => options.client.get({
255
+ response_decoder: (response) => {
256
+ switch (response.status) {
257
+ case 200:
258
+ return {
259
+ status: 200,
260
+ headers: response.headers,
261
+ body: zReadCertificateCustodyReadinessResponse.parse(response.body),
262
+ };
263
+ case 401:
264
+ return {
265
+ status: 401,
266
+ headers: response.headers,
267
+ body: zProblemBody.parse(response.body),
268
+ };
269
+ case 403:
270
+ return {
271
+ status: 403,
272
+ headers: response.headers,
273
+ body: zProblemBody.parse(response.body),
274
+ };
275
+ case 500:
276
+ return {
277
+ status: 500,
278
+ headers: response.headers,
279
+ body: zProblemBody.parse(response.body),
280
+ };
281
+ default:
282
+ return {
283
+ status: "unexpected",
284
+ status_code: response.status,
285
+ headers: response.headers,
286
+ body: response.body,
287
+ };
288
+ }
289
+ },
290
+ url: "/v1/certificate-custody/readiness",
291
+ ...options,
292
+ });
293
+ export const createDirectConnectionRequest = (options) => options.client.post({
294
+ response_decoder: (response) => {
295
+ switch (response.status) {
296
+ case 201:
297
+ return {
298
+ status: 201,
299
+ headers: response.headers,
300
+ body: zCreateDirectConnectionRequestResponse.parse(response.body),
301
+ };
302
+ case 400:
303
+ return {
304
+ status: 400,
305
+ headers: response.headers,
306
+ body: zProblemBody.parse(response.body),
307
+ };
308
+ case 409:
309
+ return {
310
+ status: 409,
311
+ headers: response.headers,
312
+ body: zProblemBody.parse(response.body),
313
+ };
314
+ case 413:
315
+ return {
316
+ status: 413,
317
+ headers: response.headers,
318
+ body: zProblemBody.parse(response.body),
319
+ };
320
+ case 415:
321
+ return {
322
+ status: 415,
323
+ headers: response.headers,
324
+ body: zProblemBody.parse(response.body),
325
+ };
326
+ case 500:
327
+ return {
328
+ status: 500,
329
+ headers: response.headers,
330
+ body: zProblemBody.parse(response.body),
331
+ };
332
+ default:
333
+ return {
334
+ status: "unexpected",
335
+ status_code: response.status,
336
+ headers: response.headers,
337
+ body: response.body,
338
+ };
339
+ }
340
+ },
341
+ url: "/v1/direct-connection-requests",
342
+ ...options,
343
+ headers: {
344
+ "Content-Type": "application/json",
345
+ ...options.headers,
346
+ },
347
+ });
348
+ export const cancelDirectConnectionRequest = (options) => options.client.post({
349
+ response_decoder: (response) => {
350
+ switch (response.status) {
351
+ case 204:
352
+ return {
353
+ status: 204,
354
+ headers: response.headers,
355
+ body: zCancelDirectConnectionRequestResponse.parse(response.body),
356
+ };
357
+ case 401:
358
+ return {
359
+ status: 401,
360
+ headers: response.headers,
361
+ body: zProblemBody.parse(response.body),
362
+ };
363
+ case 409:
364
+ return {
365
+ status: 409,
366
+ headers: response.headers,
367
+ body: zProblemBody.parse(response.body),
368
+ };
369
+ case 500:
370
+ return {
371
+ status: 500,
372
+ headers: response.headers,
373
+ body: zProblemBody.parse(response.body),
374
+ };
375
+ default:
376
+ return {
377
+ status: "unexpected",
378
+ status_code: response.status,
379
+ headers: response.headers,
380
+ body: response.body,
381
+ };
382
+ }
383
+ },
384
+ url: "/v1/direct-connection-requests/{request_id}/cancel",
385
+ ...options,
386
+ });
387
+ export const pollDirectConnectionRequest = (options) => options.client.get({
388
+ response_decoder: (response) => {
389
+ switch (response.status) {
390
+ case 200:
391
+ return {
392
+ status: 200,
393
+ headers: response.headers,
394
+ body: zPollDirectConnectionRequestResponse.parse(response.body),
395
+ };
396
+ case 401:
397
+ return {
398
+ status: 401,
399
+ headers: response.headers,
400
+ body: zProblemBody.parse(response.body),
401
+ };
402
+ case 404:
403
+ return {
404
+ status: 404,
405
+ headers: response.headers,
406
+ body: zProblemBody.parse(response.body),
407
+ };
408
+ case 500:
409
+ return {
410
+ status: 500,
411
+ headers: response.headers,
412
+ body: zProblemBody.parse(response.body),
413
+ };
414
+ default:
415
+ return {
416
+ status: "unexpected",
417
+ status_code: response.status,
418
+ headers: response.headers,
419
+ body: response.body,
420
+ };
421
+ }
422
+ },
423
+ url: "/v1/direct-connection-requests/{request_id}/poll",
424
+ ...options,
425
+ });
426
+ export const readElectronicFiscalDocumentEligibility = (options) => options.client.get({
427
+ response_decoder: (response) => {
428
+ switch (response.status) {
429
+ case 200:
430
+ return {
431
+ status: 200,
432
+ headers: response.headers,
433
+ body: zReadElectronicFiscalDocumentEligibilityResponse.parse(response.body),
434
+ };
435
+ case 400:
436
+ return {
437
+ status: 400,
438
+ headers: response.headers,
439
+ body: zProblemBody.parse(response.body),
440
+ };
441
+ case 401:
442
+ return {
443
+ status: 401,
444
+ headers: response.headers,
445
+ body: zProblemBody.parse(response.body),
446
+ };
447
+ case 403:
448
+ return {
449
+ status: 403,
450
+ headers: response.headers,
451
+ body: zProblemBody.parse(response.body),
452
+ };
453
+ case 500:
454
+ return {
455
+ status: 500,
456
+ headers: response.headers,
457
+ body: zProblemBody.parse(response.body),
458
+ };
459
+ default:
460
+ return {
461
+ status: "unexpected",
462
+ status_code: response.status,
463
+ headers: response.headers,
464
+ body: response.body,
465
+ };
466
+ }
467
+ },
468
+ url: "/v1/electronic-fiscal-document-eligibility",
469
+ ...options,
470
+ });
471
+ export const createFiscalDelivery = (options) => options.client.post({
472
+ response_decoder: (response) => {
473
+ switch (response.status) {
474
+ case 200:
475
+ return {
476
+ status: 200,
477
+ headers: response.headers,
478
+ body: zCreateFiscalDeliveryResponse.parse(response.body),
479
+ };
480
+ case 201:
481
+ return {
482
+ status: 201,
483
+ headers: response.headers,
484
+ body: zCreateFiscalDeliveryResponse.parse(response.body),
485
+ };
486
+ case 400:
487
+ return {
488
+ status: 400,
489
+ headers: response.headers,
490
+ body: zProblemBody.parse(response.body),
491
+ };
492
+ case 401:
493
+ return {
494
+ status: 401,
495
+ headers: response.headers,
496
+ body: zProblemBody.parse(response.body),
497
+ };
498
+ case 403:
499
+ return {
500
+ status: 403,
501
+ headers: response.headers,
502
+ body: zProblemBody.parse(response.body),
503
+ };
504
+ case 404:
505
+ return {
506
+ status: 404,
507
+ headers: response.headers,
508
+ body: zProblemBody.parse(response.body),
509
+ };
510
+ case 409:
511
+ return {
512
+ status: 409,
513
+ headers: response.headers,
514
+ body: zProblemBody.parse(response.body),
515
+ };
516
+ case 413:
517
+ return {
518
+ status: 413,
519
+ headers: response.headers,
520
+ body: zProblemBody.parse(response.body),
521
+ };
522
+ case 415:
523
+ return {
524
+ status: 415,
525
+ headers: response.headers,
526
+ body: zProblemBody.parse(response.body),
527
+ };
528
+ case 500:
529
+ return {
530
+ status: 500,
531
+ headers: response.headers,
532
+ body: zProblemBody.parse(response.body),
533
+ };
534
+ case 503:
535
+ return {
536
+ status: 503,
537
+ headers: response.headers,
538
+ body: zProblemBody.parse(response.body),
539
+ };
540
+ default:
541
+ return {
542
+ status: "unexpected",
543
+ status_code: response.status,
544
+ headers: response.headers,
545
+ body: response.body,
546
+ };
547
+ }
548
+ },
549
+ url: "/v1/fiscal-deliveries",
550
+ ...options,
551
+ headers: {
552
+ "Content-Type": "application/json",
553
+ ...options.headers,
554
+ },
555
+ });
556
+ export const retrieveFiscalDeliveryPrintedRepresentation = (options) => options.client.get({
557
+ response_decoder: (response) => {
558
+ switch (response.status) {
559
+ case 200:
560
+ return {
561
+ status: 200,
562
+ headers: response.headers,
563
+ body: zRetrieveFiscalDeliveryPrintedRepresentationResponse.parse(response.body),
564
+ };
565
+ case 404:
566
+ return {
567
+ status: 404,
568
+ headers: response.headers,
569
+ body: zProblemBody.parse(response.body),
570
+ };
571
+ case 409:
572
+ return {
573
+ status: 409,
574
+ headers: response.headers,
575
+ body: zProblemBody.parse(response.body),
576
+ };
577
+ case 500:
578
+ return {
579
+ status: 500,
580
+ headers: response.headers,
581
+ body: zProblemBody.parse(response.body),
582
+ };
583
+ case 503:
584
+ return {
585
+ status: 503,
586
+ headers: response.headers,
587
+ body: zProblemBody.parse(response.body),
588
+ };
589
+ default:
590
+ return {
591
+ status: "unexpected",
592
+ status_code: response.status,
593
+ headers: response.headers,
594
+ body: response.body,
595
+ };
596
+ }
597
+ },
598
+ url: "/v1/fiscal-deliveries/access/{token}/printed-representation",
599
+ ...options,
600
+ });
601
+ export const retrieveFiscalDelivery = (options) => options.client.get({
602
+ response_decoder: (response) => {
603
+ switch (response.status) {
604
+ case 200:
605
+ return {
606
+ status: 200,
607
+ headers: response.headers,
608
+ body: zRetrieveFiscalDeliveryResponse.parse(response.body),
609
+ };
610
+ case 401:
611
+ return {
612
+ status: 401,
613
+ headers: response.headers,
614
+ body: zProblemBody.parse(response.body),
615
+ };
616
+ case 403:
617
+ return {
618
+ status: 403,
619
+ headers: response.headers,
620
+ body: zProblemBody.parse(response.body),
621
+ };
622
+ case 404:
623
+ return {
624
+ status: 404,
625
+ headers: response.headers,
626
+ body: zProblemBody.parse(response.body),
627
+ };
628
+ case 500:
629
+ return {
630
+ status: 500,
631
+ headers: response.headers,
632
+ body: zProblemBody.parse(response.body),
633
+ };
634
+ case 503:
635
+ return {
636
+ status: 503,
637
+ headers: response.headers,
638
+ body: zProblemBody.parse(response.body),
639
+ };
640
+ default:
641
+ return {
642
+ status: "unexpected",
643
+ status_code: response.status,
644
+ headers: response.headers,
645
+ body: response.body,
646
+ };
647
+ }
648
+ },
649
+ url: "/v1/fiscal-deliveries/{fiscal_delivery_id}",
650
+ ...options,
651
+ });
652
+ export const readFiscalNumberAuthorizationReadiness = (options) => options.client.get({
653
+ response_decoder: (response) => {
654
+ switch (response.status) {
655
+ case 200:
656
+ return {
657
+ status: 200,
658
+ headers: response.headers,
659
+ body: zReadFiscalNumberAuthorizationReadinessResponse.parse(response.body),
660
+ };
661
+ case 401:
662
+ return {
663
+ status: 401,
664
+ headers: response.headers,
665
+ body: zProblemBody.parse(response.body),
666
+ };
667
+ case 403:
668
+ return {
669
+ status: 403,
670
+ headers: response.headers,
671
+ body: zProblemBody.parse(response.body),
672
+ };
673
+ case 500:
674
+ return {
675
+ status: 500,
676
+ headers: response.headers,
677
+ body: zProblemBody.parse(response.body),
678
+ };
679
+ default:
680
+ return {
681
+ status: "unexpected",
682
+ status_code: response.status,
683
+ headers: response.headers,
684
+ body: response.body,
685
+ };
686
+ }
687
+ },
688
+ url: "/v1/fiscal-number-authorizations/readiness",
689
+ ...options,
690
+ });
691
+ /**
692
+ * Lists Fiscal operations visible to the authenticated Source connection.
693
+ */
694
+ export const listFiscalOperations = (options) => options.client.get({
695
+ response_decoder: (response) => {
696
+ switch (response.status) {
697
+ case 200:
698
+ return {
699
+ status: 200,
700
+ headers: response.headers,
701
+ body: zListFiscalOperationsResponse.parse(response.body),
702
+ };
703
+ case 400:
704
+ return {
705
+ status: 400,
706
+ headers: response.headers,
707
+ body: zProblemBody.parse(response.body),
708
+ };
709
+ case 401:
710
+ return {
711
+ status: 401,
712
+ headers: response.headers,
713
+ body: zProblemBody.parse(response.body),
714
+ };
715
+ case 403:
716
+ return {
717
+ status: 403,
718
+ headers: response.headers,
719
+ body: zProblemBody.parse(response.body),
720
+ };
721
+ case 500:
722
+ return {
723
+ status: 500,
724
+ headers: response.headers,
725
+ body: zProblemBody.parse(response.body),
726
+ };
727
+ default:
728
+ return {
729
+ status: "unexpected",
730
+ status_code: response.status,
731
+ headers: response.headers,
732
+ body: response.body,
733
+ };
734
+ }
735
+ },
736
+ url: "/v1/fiscal-operations",
737
+ ...options,
738
+ });
739
+ export const createFiscalOperation = (options) => options.client.post({
740
+ response_decoder: (response) => {
741
+ switch (response.status) {
742
+ case 200:
743
+ return {
744
+ status: 200,
745
+ headers: response.headers,
746
+ body: zCreateFiscalOperationResponse.parse(response.body),
747
+ };
748
+ case 202:
749
+ return {
750
+ status: 202,
751
+ headers: response.headers,
752
+ body: zCreateFiscalOperationResponse.parse(response.body),
753
+ };
754
+ case 400:
755
+ return {
756
+ status: 400,
757
+ headers: response.headers,
758
+ body: zProblemBody.parse(response.body),
759
+ };
760
+ case 401:
761
+ return {
762
+ status: 401,
763
+ headers: response.headers,
764
+ body: zProblemBody.parse(response.body),
765
+ };
766
+ case 403:
767
+ return {
768
+ status: 403,
769
+ headers: response.headers,
770
+ body: zProblemBody.parse(response.body),
771
+ };
772
+ case 404:
773
+ return {
774
+ status: 404,
775
+ headers: response.headers,
776
+ body: zProblemBody.parse(response.body),
777
+ };
778
+ case 408:
779
+ return {
780
+ status: 408,
781
+ headers: response.headers,
782
+ body: zProblemBody.parse(response.body),
783
+ };
784
+ case 409:
785
+ return {
786
+ status: 409,
787
+ headers: response.headers,
788
+ body: zProblemBody.parse(response.body),
789
+ };
790
+ case 413:
791
+ return {
792
+ status: 413,
793
+ headers: response.headers,
794
+ body: zProblemBody.parse(response.body),
795
+ };
796
+ case 415:
797
+ return {
798
+ status: 415,
799
+ headers: response.headers,
800
+ body: zProblemBody.parse(response.body),
801
+ };
802
+ case 422:
803
+ return {
804
+ status: 422,
805
+ headers: response.headers,
806
+ body: zProblemBody.parse(response.body),
807
+ };
808
+ case 500:
809
+ return {
810
+ status: 500,
811
+ headers: response.headers,
812
+ body: zProblemBody.parse(response.body),
813
+ };
814
+ case 503:
815
+ return {
816
+ status: 503,
817
+ headers: response.headers,
818
+ body: zProblemBody.parse(response.body),
819
+ };
820
+ default:
821
+ return {
822
+ status: "unexpected",
823
+ status_code: response.status,
824
+ headers: response.headers,
825
+ body: response.body,
826
+ };
827
+ }
828
+ },
829
+ url: "/v1/fiscal-operations",
830
+ ...options,
831
+ headers: {
832
+ "Content-Type": "application/json",
833
+ ...options.headers,
834
+ },
835
+ });
836
+ export const findFiscalOperationBySource = (options) => options.client.get({
837
+ response_decoder: (response) => {
838
+ switch (response.status) {
839
+ case 200:
840
+ return {
841
+ status: 200,
842
+ headers: response.headers,
843
+ body: zFindFiscalOperationBySourceResponse.parse(response.body),
844
+ };
845
+ case 400:
846
+ return {
847
+ status: 400,
848
+ headers: response.headers,
849
+ body: zProblemBody.parse(response.body),
850
+ };
851
+ case 401:
852
+ return {
853
+ status: 401,
854
+ headers: response.headers,
855
+ body: zProblemBody.parse(response.body),
856
+ };
857
+ case 403:
858
+ return {
859
+ status: 403,
860
+ headers: response.headers,
861
+ body: zProblemBody.parse(response.body),
862
+ };
863
+ case 404:
864
+ return {
865
+ status: 404,
866
+ headers: response.headers,
867
+ body: zProblemBody.parse(response.body),
868
+ };
869
+ case 500:
870
+ return {
871
+ status: 500,
872
+ headers: response.headers,
873
+ body: zProblemBody.parse(response.body),
874
+ };
875
+ default:
876
+ return {
877
+ status: "unexpected",
878
+ status_code: response.status,
879
+ headers: response.headers,
880
+ body: response.body,
881
+ };
882
+ }
883
+ },
884
+ url: "/v1/fiscal-operations/by-source/{source_id}/versions/{source_version}",
885
+ ...options,
886
+ });
887
+ export const findFiscalOperation = (options) => options.client.get({
888
+ response_decoder: (response) => {
889
+ switch (response.status) {
890
+ case 200:
891
+ return {
892
+ status: 200,
893
+ headers: response.headers,
894
+ body: zFindFiscalOperationResponse.parse(response.body),
895
+ };
896
+ case 400:
897
+ return {
898
+ status: 400,
899
+ headers: response.headers,
900
+ body: zProblemBody.parse(response.body),
901
+ };
902
+ case 401:
903
+ return {
904
+ status: 401,
905
+ headers: response.headers,
906
+ body: zProblemBody.parse(response.body),
907
+ };
908
+ case 403:
909
+ return {
910
+ status: 403,
911
+ headers: response.headers,
912
+ body: zProblemBody.parse(response.body),
913
+ };
914
+ case 404:
915
+ return {
916
+ status: 404,
917
+ headers: response.headers,
918
+ body: zProblemBody.parse(response.body),
919
+ };
920
+ case 500:
921
+ return {
922
+ status: 500,
923
+ headers: response.headers,
924
+ body: zProblemBody.parse(response.body),
925
+ };
926
+ default:
927
+ return {
928
+ status: "unexpected",
929
+ status_code: response.status,
930
+ headers: response.headers,
931
+ body: response.body,
932
+ };
933
+ }
934
+ },
935
+ url: "/v1/fiscal-operations/{operation_id}",
936
+ ...options,
937
+ });
938
+ export const findFiscalArtifact = (options) => options.client.get({
939
+ response_decoder: (response) => {
940
+ switch (response.status) {
941
+ case 200:
942
+ return {
943
+ status: 200,
944
+ headers: response.headers,
945
+ body: zFindFiscalArtifactResponse.parse(response.body),
946
+ };
947
+ case 400:
948
+ return {
949
+ status: 400,
950
+ headers: response.headers,
951
+ body: zProblemBody.parse(response.body),
952
+ };
953
+ case 401:
954
+ return {
955
+ status: 401,
956
+ headers: response.headers,
957
+ body: zProblemBody.parse(response.body),
958
+ };
959
+ case 403:
960
+ return {
961
+ status: 403,
962
+ headers: response.headers,
963
+ body: zProblemBody.parse(response.body),
964
+ };
965
+ case 404:
966
+ return {
967
+ status: 404,
968
+ headers: response.headers,
969
+ body: zProblemBody.parse(response.body),
970
+ };
971
+ case 500:
972
+ return {
973
+ status: 500,
974
+ headers: response.headers,
975
+ body: zProblemBody.parse(response.body),
976
+ };
977
+ default:
978
+ return {
979
+ status: "unexpected",
980
+ status_code: response.status,
981
+ headers: response.headers,
982
+ body: response.body,
983
+ };
984
+ }
985
+ },
986
+ url: "/v1/fiscal-operations/{operation_id}/artifacts/{artifact_kind}",
987
+ ...options,
988
+ });
989
+ export const shareFiscalReceipt = (options) => options.client.post({
990
+ response_decoder: (response) => {
991
+ switch (response.status) {
992
+ case 200:
993
+ return {
994
+ status: 200,
995
+ headers: response.headers,
996
+ body: zShareFiscalReceiptResponse.parse(response.body),
997
+ };
998
+ case 400:
999
+ return {
1000
+ status: 400,
1001
+ headers: response.headers,
1002
+ body: zProblemBody.parse(response.body),
1003
+ };
1004
+ case 401:
1005
+ return {
1006
+ status: 401,
1007
+ headers: response.headers,
1008
+ body: zProblemBody.parse(response.body),
1009
+ };
1010
+ case 403:
1011
+ return {
1012
+ status: 403,
1013
+ headers: response.headers,
1014
+ body: zProblemBody.parse(response.body),
1015
+ };
1016
+ case 404:
1017
+ return {
1018
+ status: 404,
1019
+ headers: response.headers,
1020
+ body: zProblemBody.parse(response.body),
1021
+ };
1022
+ case 409:
1023
+ return {
1024
+ status: 409,
1025
+ headers: response.headers,
1026
+ body: zProblemBody.parse(response.body),
1027
+ };
1028
+ case 500:
1029
+ return {
1030
+ status: 500,
1031
+ headers: response.headers,
1032
+ body: zProblemBody.parse(response.body),
1033
+ };
1034
+ case 503:
1035
+ return {
1036
+ status: 503,
1037
+ headers: response.headers,
1038
+ body: zProblemBody.parse(response.body),
1039
+ };
1040
+ default:
1041
+ return {
1042
+ status: "unexpected",
1043
+ status_code: response.status,
1044
+ headers: response.headers,
1045
+ body: response.body,
1046
+ };
1047
+ }
1048
+ },
1049
+ url: "/v1/fiscal-operations/{operation_id}/receipt-access",
1050
+ ...options,
1051
+ });
1052
+ export const readFiscalOperationTiming = (options) => options.client.get({
1053
+ response_decoder: (response) => {
1054
+ switch (response.status) {
1055
+ case 200:
1056
+ return {
1057
+ status: 200,
1058
+ headers: response.headers,
1059
+ body: zReadFiscalOperationTimingResponse.parse(response.body),
1060
+ };
1061
+ case 400:
1062
+ return {
1063
+ status: 400,
1064
+ headers: response.headers,
1065
+ body: zProblemBody.parse(response.body),
1066
+ };
1067
+ case 401:
1068
+ return {
1069
+ status: 401,
1070
+ headers: response.headers,
1071
+ body: zProblemBody.parse(response.body),
1072
+ };
1073
+ case 403:
1074
+ return {
1075
+ status: 403,
1076
+ headers: response.headers,
1077
+ body: zProblemBody.parse(response.body),
1078
+ };
1079
+ case 404:
1080
+ return {
1081
+ status: 404,
1082
+ headers: response.headers,
1083
+ body: zProblemBody.parse(response.body),
1084
+ };
1085
+ case 500:
1086
+ return {
1087
+ status: 500,
1088
+ headers: response.headers,
1089
+ body: zProblemBody.parse(response.body),
1090
+ };
1091
+ default:
1092
+ return {
1093
+ status: "unexpected",
1094
+ status_code: response.status,
1095
+ headers: response.headers,
1096
+ body: response.body,
1097
+ };
1098
+ }
1099
+ },
1100
+ url: "/v1/fiscal-operations/{operation_id}/timing",
1101
+ ...options,
1102
+ });
1103
+ export const retrieveFiscalReceipt = (options) => options.client.get({
1104
+ response_decoder: (response) => {
1105
+ switch (response.status) {
1106
+ case 200:
1107
+ return {
1108
+ status: 200,
1109
+ headers: response.headers,
1110
+ body: zRetrieveFiscalReceiptResponse.parse(response.body),
1111
+ };
1112
+ case 404:
1113
+ return {
1114
+ status: 404,
1115
+ headers: response.headers,
1116
+ body: zProblemBody.parse(response.body),
1117
+ };
1118
+ case 500:
1119
+ return {
1120
+ status: 500,
1121
+ headers: response.headers,
1122
+ body: zProblemBody.parse(response.body),
1123
+ };
1124
+ default:
1125
+ return {
1126
+ status: "unexpected",
1127
+ status_code: response.status,
1128
+ headers: response.headers,
1129
+ body: response.body,
1130
+ };
1131
+ }
1132
+ },
1133
+ url: "/v1/fiscal-receipts/{receipt_id}",
1134
+ ...options,
1135
+ });
1136
+ export const retrieveFiscalReceiptPrintedRepresentation = (options) => options.client.get({
1137
+ response_decoder: (response) => {
1138
+ switch (response.status) {
1139
+ case 200:
1140
+ return {
1141
+ status: 200,
1142
+ headers: response.headers,
1143
+ body: zRetrieveFiscalReceiptPrintedRepresentationResponse.parse(response.body),
1144
+ };
1145
+ case 404:
1146
+ return {
1147
+ status: 404,
1148
+ headers: response.headers,
1149
+ body: zProblemBody.parse(response.body),
1150
+ };
1151
+ case 500:
1152
+ return {
1153
+ status: 500,
1154
+ headers: response.headers,
1155
+ body: zProblemBody.parse(response.body),
1156
+ };
1157
+ case 503:
1158
+ return {
1159
+ status: 503,
1160
+ headers: response.headers,
1161
+ body: zProblemBody.parse(response.body),
1162
+ };
1163
+ default:
1164
+ return {
1165
+ status: "unexpected",
1166
+ status_code: response.status,
1167
+ headers: response.headers,
1168
+ body: response.body,
1169
+ };
1170
+ }
1171
+ },
1172
+ url: "/v1/fiscal-receipts/{receipt_id}/printed-representation",
1173
+ ...options,
1174
+ });
1175
+ export const importHostedCertificateCustody = (options) => options.client.post({
1176
+ response_decoder: (response) => {
1177
+ switch (response.status) {
1178
+ case 200:
1179
+ return {
1180
+ status: 200,
1181
+ headers: response.headers,
1182
+ body: zImportHostedCertificateCustodyResponse.parse(response.body),
1183
+ };
1184
+ case 400:
1185
+ return {
1186
+ status: 400,
1187
+ headers: response.headers,
1188
+ body: zProblemBody.parse(response.body),
1189
+ };
1190
+ case 401:
1191
+ return {
1192
+ status: 401,
1193
+ headers: response.headers,
1194
+ body: zProblemBody.parse(response.body),
1195
+ };
1196
+ case 403:
1197
+ return {
1198
+ status: 403,
1199
+ headers: response.headers,
1200
+ body: zProblemBody.parse(response.body),
1201
+ };
1202
+ case 404:
1203
+ return {
1204
+ status: 404,
1205
+ headers: response.headers,
1206
+ body: zProblemBody.parse(response.body),
1207
+ };
1208
+ case 409:
1209
+ return {
1210
+ status: 409,
1211
+ headers: response.headers,
1212
+ body: zProblemBody.parse(response.body),
1213
+ };
1214
+ case 413:
1215
+ return {
1216
+ status: 413,
1217
+ headers: response.headers,
1218
+ body: zProblemBody.parse(response.body),
1219
+ };
1220
+ case 415:
1221
+ return {
1222
+ status: 415,
1223
+ headers: response.headers,
1224
+ body: zProblemBody.parse(response.body),
1225
+ };
1226
+ case 422:
1227
+ return {
1228
+ status: 422,
1229
+ headers: response.headers,
1230
+ body: zProblemBody.parse(response.body),
1231
+ };
1232
+ case 500:
1233
+ return {
1234
+ status: 500,
1235
+ headers: response.headers,
1236
+ body: zProblemBody.parse(response.body),
1237
+ };
1238
+ case 503:
1239
+ return {
1240
+ status: 503,
1241
+ headers: response.headers,
1242
+ body: zProblemBody.parse(response.body),
1243
+ };
1244
+ default:
1245
+ return {
1246
+ status: "unexpected",
1247
+ status_code: response.status,
1248
+ headers: response.headers,
1249
+ body: response.body,
1250
+ };
1251
+ }
1252
+ },
1253
+ url: "/v1/hosted/certificate-custody/import",
1254
+ ...options,
1255
+ headers: {
1256
+ "Content-Type": "application/json",
1257
+ ...options.headers,
1258
+ },
1259
+ });
1260
+ export const issueHostedSandboxSourceCredential = (options) => options.client.post({
1261
+ response_decoder: (response) => {
1262
+ switch (response.status) {
1263
+ case 201:
1264
+ return {
1265
+ status: 201,
1266
+ headers: response.headers,
1267
+ body: zIssueHostedSandboxSourceCredentialResponse.parse(response.body),
1268
+ };
1269
+ case 400:
1270
+ return {
1271
+ status: 400,
1272
+ headers: response.headers,
1273
+ body: zProblemBody.parse(response.body),
1274
+ };
1275
+ case 401:
1276
+ return {
1277
+ status: 401,
1278
+ headers: response.headers,
1279
+ body: zProblemBody.parse(response.body),
1280
+ };
1281
+ case 403:
1282
+ return {
1283
+ status: 403,
1284
+ headers: response.headers,
1285
+ body: zProblemBody.parse(response.body),
1286
+ };
1287
+ case 404:
1288
+ return {
1289
+ status: 404,
1290
+ headers: response.headers,
1291
+ body: zProblemBody.parse(response.body),
1292
+ };
1293
+ case 409:
1294
+ return {
1295
+ status: 409,
1296
+ headers: response.headers,
1297
+ body: zProblemBody.parse(response.body),
1298
+ };
1299
+ case 413:
1300
+ return {
1301
+ status: 413,
1302
+ headers: response.headers,
1303
+ body: zProblemBody.parse(response.body),
1304
+ };
1305
+ case 415:
1306
+ return {
1307
+ status: 415,
1308
+ headers: response.headers,
1309
+ body: zProblemBody.parse(response.body),
1310
+ };
1311
+ case 500:
1312
+ return {
1313
+ status: 500,
1314
+ headers: response.headers,
1315
+ body: zProblemBody.parse(response.body),
1316
+ };
1317
+ default:
1318
+ return {
1319
+ status: "unexpected",
1320
+ status_code: response.status,
1321
+ headers: response.headers,
1322
+ body: response.body,
1323
+ };
1324
+ }
1325
+ },
1326
+ url: "/v1/hosted/source-connections/sandbox-credentials",
1327
+ ...options,
1328
+ headers: {
1329
+ "Content-Type": "application/json",
1330
+ ...options.headers,
1331
+ },
1332
+ });
1333
+ export const acceptInvitation = (options) => options.client.post({
1334
+ response_decoder: (response) => {
1335
+ switch (response.status) {
1336
+ case 200:
1337
+ return {
1338
+ status: 200,
1339
+ headers: response.headers,
1340
+ body: zAcceptInvitationResponse.parse(response.body),
1341
+ };
1342
+ case 400:
1343
+ return {
1344
+ status: 400,
1345
+ headers: response.headers,
1346
+ body: zProblemBody.parse(response.body),
1347
+ };
1348
+ case 401:
1349
+ return {
1350
+ status: 401,
1351
+ headers: response.headers,
1352
+ body: zProblemBody.parse(response.body),
1353
+ };
1354
+ case 404:
1355
+ return {
1356
+ status: 404,
1357
+ headers: response.headers,
1358
+ body: zProblemBody.parse(response.body),
1359
+ };
1360
+ case 409:
1361
+ return {
1362
+ status: 409,
1363
+ headers: response.headers,
1364
+ body: zProblemBody.parse(response.body),
1365
+ };
1366
+ case 410:
1367
+ return {
1368
+ status: 410,
1369
+ headers: response.headers,
1370
+ body: zProblemBody.parse(response.body),
1371
+ };
1372
+ case 413:
1373
+ return {
1374
+ status: 413,
1375
+ headers: response.headers,
1376
+ body: zProblemBody.parse(response.body),
1377
+ };
1378
+ case 415:
1379
+ return {
1380
+ status: 415,
1381
+ headers: response.headers,
1382
+ body: zProblemBody.parse(response.body),
1383
+ };
1384
+ case 500:
1385
+ return {
1386
+ status: 500,
1387
+ headers: response.headers,
1388
+ body: zProblemBody.parse(response.body),
1389
+ };
1390
+ default:
1391
+ return {
1392
+ status: "unexpected",
1393
+ status_code: response.status,
1394
+ headers: response.headers,
1395
+ body: response.body,
1396
+ };
1397
+ }
1398
+ },
1399
+ url: "/v1/invitations/accept",
1400
+ ...options,
1401
+ headers: {
1402
+ "Content-Type": "application/json",
1403
+ ...options.headers,
1404
+ },
1405
+ });
1406
+ export const readOpenApiDocument = (options) => options.client.get({
1407
+ response_decoder: (response) => {
1408
+ switch (response.status) {
1409
+ case 200:
1410
+ return { status: 200, headers: response.headers, body: response.body };
1411
+ default:
1412
+ return {
1413
+ status: "unexpected",
1414
+ status_code: response.status,
1415
+ headers: response.headers,
1416
+ body: response.body,
1417
+ };
1418
+ }
1419
+ },
1420
+ url: "/v1/openapi.json",
1421
+ ...options,
1422
+ });
1423
+ export const createOrganization = (options) => options.client.post({
1424
+ response_decoder: (response) => {
1425
+ switch (response.status) {
1426
+ case 201:
1427
+ return {
1428
+ status: 201,
1429
+ headers: response.headers,
1430
+ body: zCreateOrganizationResponse.parse(response.body),
1431
+ };
1432
+ case 400:
1433
+ return {
1434
+ status: 400,
1435
+ headers: response.headers,
1436
+ body: zProblemBody.parse(response.body),
1437
+ };
1438
+ case 401:
1439
+ return {
1440
+ status: 401,
1441
+ headers: response.headers,
1442
+ body: zProblemBody.parse(response.body),
1443
+ };
1444
+ case 409:
1445
+ return {
1446
+ status: 409,
1447
+ headers: response.headers,
1448
+ body: zProblemBody.parse(response.body),
1449
+ };
1450
+ case 413:
1451
+ return {
1452
+ status: 413,
1453
+ headers: response.headers,
1454
+ body: zProblemBody.parse(response.body),
1455
+ };
1456
+ case 415:
1457
+ return {
1458
+ status: 415,
1459
+ headers: response.headers,
1460
+ body: zProblemBody.parse(response.body),
1461
+ };
1462
+ case 500:
1463
+ return {
1464
+ status: 500,
1465
+ headers: response.headers,
1466
+ body: zProblemBody.parse(response.body),
1467
+ };
1468
+ default:
1469
+ return {
1470
+ status: "unexpected",
1471
+ status_code: response.status,
1472
+ headers: response.headers,
1473
+ body: response.body,
1474
+ };
1475
+ }
1476
+ },
1477
+ url: "/v1/organizations",
1478
+ ...options,
1479
+ headers: {
1480
+ "Content-Type": "application/json",
1481
+ ...options.headers,
1482
+ },
1483
+ });
1484
+ export const readAuditEvents = (options) => options.client.get({
1485
+ response_decoder: (response) => {
1486
+ switch (response.status) {
1487
+ case 200:
1488
+ return {
1489
+ status: 200,
1490
+ headers: response.headers,
1491
+ body: zReadAuditEventsResponse.parse(response.body),
1492
+ };
1493
+ case 400:
1494
+ return {
1495
+ status: 400,
1496
+ headers: response.headers,
1497
+ body: zProblemBody.parse(response.body),
1498
+ };
1499
+ case 401:
1500
+ return {
1501
+ status: 401,
1502
+ headers: response.headers,
1503
+ body: zProblemBody.parse(response.body),
1504
+ };
1505
+ case 403:
1506
+ return {
1507
+ status: 403,
1508
+ headers: response.headers,
1509
+ body: zProblemBody.parse(response.body),
1510
+ };
1511
+ case 404:
1512
+ return {
1513
+ status: 404,
1514
+ headers: response.headers,
1515
+ body: zProblemBody.parse(response.body),
1516
+ };
1517
+ case 500:
1518
+ return {
1519
+ status: 500,
1520
+ headers: response.headers,
1521
+ body: zProblemBody.parse(response.body),
1522
+ };
1523
+ default:
1524
+ return {
1525
+ status: "unexpected",
1526
+ status_code: response.status,
1527
+ headers: response.headers,
1528
+ body: response.body,
1529
+ };
1530
+ }
1531
+ },
1532
+ url: "/v1/organizations/{organization_id}/audit-events",
1533
+ ...options,
1534
+ });
1535
+ export const listCertificateCustodyBindings = (options) => options.client.get({
1536
+ response_decoder: (response) => {
1537
+ switch (response.status) {
1538
+ case 200:
1539
+ return {
1540
+ status: 200,
1541
+ headers: response.headers,
1542
+ body: zListCertificateCustodyBindingsResponse.parse(response.body),
1543
+ };
1544
+ case 400:
1545
+ return {
1546
+ status: 400,
1547
+ headers: response.headers,
1548
+ body: zProblemBody.parse(response.body),
1549
+ };
1550
+ case 401:
1551
+ return {
1552
+ status: 401,
1553
+ headers: response.headers,
1554
+ body: zProblemBody.parse(response.body),
1555
+ };
1556
+ case 404:
1557
+ return {
1558
+ status: 404,
1559
+ headers: response.headers,
1560
+ body: zProblemBody.parse(response.body),
1561
+ };
1562
+ case 500:
1563
+ return {
1564
+ status: 500,
1565
+ headers: response.headers,
1566
+ body: zProblemBody.parse(response.body),
1567
+ };
1568
+ default:
1569
+ return {
1570
+ status: "unexpected",
1571
+ status_code: response.status,
1572
+ headers: response.headers,
1573
+ body: response.body,
1574
+ };
1575
+ }
1576
+ },
1577
+ url: "/v1/organizations/{organization_id}/certificate-custody/bindings",
1578
+ ...options,
1579
+ });
1580
+ export const createCertificateCustodyBinding = (options) => options.client.post({
1581
+ response_decoder: (response) => {
1582
+ switch (response.status) {
1583
+ case 200:
1584
+ return {
1585
+ status: 200,
1586
+ headers: response.headers,
1587
+ body: zCreateCertificateCustodyBindingResponse.parse(response.body),
1588
+ };
1589
+ case 201:
1590
+ return {
1591
+ status: 201,
1592
+ headers: response.headers,
1593
+ body: zCreateCertificateCustodyBindingResponse.parse(response.body),
1594
+ };
1595
+ case 400:
1596
+ return {
1597
+ status: 400,
1598
+ headers: response.headers,
1599
+ body: zProblemBody.parse(response.body),
1600
+ };
1601
+ case 401:
1602
+ return {
1603
+ status: 401,
1604
+ headers: response.headers,
1605
+ body: zProblemBody.parse(response.body),
1606
+ };
1607
+ case 403:
1608
+ return {
1609
+ status: 403,
1610
+ headers: response.headers,
1611
+ body: zProblemBody.parse(response.body),
1612
+ };
1613
+ case 404:
1614
+ return {
1615
+ status: 404,
1616
+ headers: response.headers,
1617
+ body: zProblemBody.parse(response.body),
1618
+ };
1619
+ case 409:
1620
+ return {
1621
+ status: 409,
1622
+ headers: response.headers,
1623
+ body: zProblemBody.parse(response.body),
1624
+ };
1625
+ case 413:
1626
+ return {
1627
+ status: 413,
1628
+ headers: response.headers,
1629
+ body: zProblemBody.parse(response.body),
1630
+ };
1631
+ case 415:
1632
+ return {
1633
+ status: 415,
1634
+ headers: response.headers,
1635
+ body: zProblemBody.parse(response.body),
1636
+ };
1637
+ case 500:
1638
+ return {
1639
+ status: 500,
1640
+ headers: response.headers,
1641
+ body: zProblemBody.parse(response.body),
1642
+ };
1643
+ default:
1644
+ return {
1645
+ status: "unexpected",
1646
+ status_code: response.status,
1647
+ headers: response.headers,
1648
+ body: response.body,
1649
+ };
1650
+ }
1651
+ },
1652
+ url: "/v1/organizations/{organization_id}/certificate-custody/bindings",
1653
+ ...options,
1654
+ headers: {
1655
+ "Content-Type": "application/json",
1656
+ ...options.headers,
1657
+ },
1658
+ });
1659
+ export const readCertificateCustodyBinding = (options) => options.client.get({
1660
+ response_decoder: (response) => {
1661
+ switch (response.status) {
1662
+ case 200:
1663
+ return {
1664
+ status: 200,
1665
+ headers: response.headers,
1666
+ body: zReadCertificateCustodyBindingResponse.parse(response.body),
1667
+ };
1668
+ case 400:
1669
+ return {
1670
+ status: 400,
1671
+ headers: response.headers,
1672
+ body: zProblemBody.parse(response.body),
1673
+ };
1674
+ case 401:
1675
+ return {
1676
+ status: 401,
1677
+ headers: response.headers,
1678
+ body: zProblemBody.parse(response.body),
1679
+ };
1680
+ case 404:
1681
+ return {
1682
+ status: 404,
1683
+ headers: response.headers,
1684
+ body: zProblemBody.parse(response.body),
1685
+ };
1686
+ case 500:
1687
+ return {
1688
+ status: 500,
1689
+ headers: response.headers,
1690
+ body: zProblemBody.parse(response.body),
1691
+ };
1692
+ default:
1693
+ return {
1694
+ status: "unexpected",
1695
+ status_code: response.status,
1696
+ headers: response.headers,
1697
+ body: response.body,
1698
+ };
1699
+ }
1700
+ },
1701
+ url: "/v1/organizations/{organization_id}/certificate-custody/bindings/{certificate_custody_binding_id}",
1702
+ ...options,
1703
+ });
1704
+ export const revokeCertificateCustodyCertificateVersion = (options) => options.client.post({
1705
+ response_decoder: (response) => {
1706
+ switch (response.status) {
1707
+ case 200:
1708
+ return {
1709
+ status: 200,
1710
+ headers: response.headers,
1711
+ body: zRevokeCertificateCustodyCertificateVersionResponse.parse(response.body),
1712
+ };
1713
+ case 400:
1714
+ return {
1715
+ status: 400,
1716
+ headers: response.headers,
1717
+ body: zProblemBody.parse(response.body),
1718
+ };
1719
+ case 401:
1720
+ return {
1721
+ status: 401,
1722
+ headers: response.headers,
1723
+ body: zProblemBody.parse(response.body),
1724
+ };
1725
+ case 403:
1726
+ return {
1727
+ status: 403,
1728
+ headers: response.headers,
1729
+ body: zProblemBody.parse(response.body),
1730
+ };
1731
+ case 404:
1732
+ return {
1733
+ status: 404,
1734
+ headers: response.headers,
1735
+ body: zProblemBody.parse(response.body),
1736
+ };
1737
+ case 409:
1738
+ return {
1739
+ status: 409,
1740
+ headers: response.headers,
1741
+ body: zProblemBody.parse(response.body),
1742
+ };
1743
+ case 413:
1744
+ return {
1745
+ status: 413,
1746
+ headers: response.headers,
1747
+ body: zProblemBody.parse(response.body),
1748
+ };
1749
+ case 415:
1750
+ return {
1751
+ status: 415,
1752
+ headers: response.headers,
1753
+ body: zProblemBody.parse(response.body),
1754
+ };
1755
+ case 500:
1756
+ return {
1757
+ status: 500,
1758
+ headers: response.headers,
1759
+ body: zProblemBody.parse(response.body),
1760
+ };
1761
+ default:
1762
+ return {
1763
+ status: "unexpected",
1764
+ status_code: response.status,
1765
+ headers: response.headers,
1766
+ body: response.body,
1767
+ };
1768
+ }
1769
+ },
1770
+ url: "/v1/organizations/{organization_id}/certificate-custody/bindings/{certificate_custody_binding_id}/revocations",
1771
+ ...options,
1772
+ headers: {
1773
+ "Content-Type": "application/json",
1774
+ ...options.headers,
1775
+ },
1776
+ });
1777
+ export const previewDirectConnectionRequest = (options) => options.client.get({
1778
+ response_decoder: (response) => {
1779
+ switch (response.status) {
1780
+ case 200:
1781
+ return {
1782
+ status: 200,
1783
+ headers: response.headers,
1784
+ body: zPreviewDirectConnectionRequestResponse.parse(response.body),
1785
+ };
1786
+ case 401:
1787
+ return {
1788
+ status: 401,
1789
+ headers: response.headers,
1790
+ body: zProblemBody.parse(response.body),
1791
+ };
1792
+ case 403:
1793
+ return {
1794
+ status: 403,
1795
+ headers: response.headers,
1796
+ body: zProblemBody.parse(response.body),
1797
+ };
1798
+ case 404:
1799
+ return {
1800
+ status: 404,
1801
+ headers: response.headers,
1802
+ body: zProblemBody.parse(response.body),
1803
+ };
1804
+ case 500:
1805
+ return {
1806
+ status: 500,
1807
+ headers: response.headers,
1808
+ body: zProblemBody.parse(response.body),
1809
+ };
1810
+ default:
1811
+ return {
1812
+ status: "unexpected",
1813
+ status_code: response.status,
1814
+ headers: response.headers,
1815
+ body: response.body,
1816
+ };
1817
+ }
1818
+ },
1819
+ url: "/v1/organizations/{organization_id}/direct-connection-requests/{user_code}",
1820
+ ...options,
1821
+ });
1822
+ export const approveDirectConnectionRequest = (options) => options.client.post({
1823
+ response_decoder: (response) => {
1824
+ switch (response.status) {
1825
+ case 201:
1826
+ return {
1827
+ status: 201,
1828
+ headers: response.headers,
1829
+ body: zApproveDirectConnectionRequestResponse.parse(response.body),
1830
+ };
1831
+ case 401:
1832
+ return {
1833
+ status: 401,
1834
+ headers: response.headers,
1835
+ body: zProblemBody.parse(response.body),
1836
+ };
1837
+ case 403:
1838
+ return {
1839
+ status: 403,
1840
+ headers: response.headers,
1841
+ body: zProblemBody.parse(response.body),
1842
+ };
1843
+ case 404:
1844
+ return {
1845
+ status: 404,
1846
+ headers: response.headers,
1847
+ body: zProblemBody.parse(response.body),
1848
+ };
1849
+ case 409:
1850
+ return {
1851
+ status: 409,
1852
+ headers: response.headers,
1853
+ body: zProblemBody.parse(response.body),
1854
+ };
1855
+ case 413:
1856
+ return {
1857
+ status: 413,
1858
+ headers: response.headers,
1859
+ body: zProblemBody.parse(response.body),
1860
+ };
1861
+ case 415:
1862
+ return {
1863
+ status: 415,
1864
+ headers: response.headers,
1865
+ body: zProblemBody.parse(response.body),
1866
+ };
1867
+ case 500:
1868
+ return {
1869
+ status: 500,
1870
+ headers: response.headers,
1871
+ body: zProblemBody.parse(response.body),
1872
+ };
1873
+ default:
1874
+ return {
1875
+ status: "unexpected",
1876
+ status_code: response.status,
1877
+ headers: response.headers,
1878
+ body: response.body,
1879
+ };
1880
+ }
1881
+ },
1882
+ url: "/v1/organizations/{organization_id}/direct-connection-requests/{user_code}/approval",
1883
+ ...options,
1884
+ headers: {
1885
+ "Content-Type": "application/json",
1886
+ ...options.headers,
1887
+ },
1888
+ });
1889
+ export const inspectFiscalNumberAuthorizationHistory = (options) => options.client.get({
1890
+ response_decoder: (response) => {
1891
+ switch (response.status) {
1892
+ case 200:
1893
+ return {
1894
+ status: 200,
1895
+ headers: response.headers,
1896
+ body: zInspectFiscalNumberAuthorizationHistoryResponse.parse(response.body),
1897
+ };
1898
+ case 400:
1899
+ return {
1900
+ status: 400,
1901
+ headers: response.headers,
1902
+ body: zProblemBody.parse(response.body),
1903
+ };
1904
+ case 401:
1905
+ return {
1906
+ status: 401,
1907
+ headers: response.headers,
1908
+ body: zProblemBody.parse(response.body),
1909
+ };
1910
+ case 403:
1911
+ return {
1912
+ status: 403,
1913
+ headers: response.headers,
1914
+ body: zProblemBody.parse(response.body),
1915
+ };
1916
+ case 404:
1917
+ return {
1918
+ status: 404,
1919
+ headers: response.headers,
1920
+ body: zProblemBody.parse(response.body),
1921
+ };
1922
+ case 500:
1923
+ return {
1924
+ status: 500,
1925
+ headers: response.headers,
1926
+ body: zProblemBody.parse(response.body),
1927
+ };
1928
+ default:
1929
+ return {
1930
+ status: "unexpected",
1931
+ status_code: response.status,
1932
+ headers: response.headers,
1933
+ body: response.body,
1934
+ };
1935
+ }
1936
+ },
1937
+ url: "/v1/organizations/{organization_id}/fiscal-number-authorizations",
1938
+ ...options,
1939
+ });
1940
+ export const registerFiscalNumberAuthorization = (options) => options.client.post({
1941
+ response_decoder: (response) => {
1942
+ switch (response.status) {
1943
+ case 200:
1944
+ return {
1945
+ status: 200,
1946
+ headers: response.headers,
1947
+ body: zRegisterFiscalNumberAuthorizationResponse.parse(response.body),
1948
+ };
1949
+ case 201:
1950
+ return {
1951
+ status: 201,
1952
+ headers: response.headers,
1953
+ body: zRegisterFiscalNumberAuthorizationResponse.parse(response.body),
1954
+ };
1955
+ case 400:
1956
+ return {
1957
+ status: 400,
1958
+ headers: response.headers,
1959
+ body: zProblemBody.parse(response.body),
1960
+ };
1961
+ case 401:
1962
+ return {
1963
+ status: 401,
1964
+ headers: response.headers,
1965
+ body: zProblemBody.parse(response.body),
1966
+ };
1967
+ case 403:
1968
+ return {
1969
+ status: 403,
1970
+ headers: response.headers,
1971
+ body: zProblemBody.parse(response.body),
1972
+ };
1973
+ case 404:
1974
+ return {
1975
+ status: 404,
1976
+ headers: response.headers,
1977
+ body: zProblemBody.parse(response.body),
1978
+ };
1979
+ case 409:
1980
+ return {
1981
+ status: 409,
1982
+ headers: response.headers,
1983
+ body: zProblemBody.parse(response.body),
1984
+ };
1985
+ case 413:
1986
+ return {
1987
+ status: 413,
1988
+ headers: response.headers,
1989
+ body: zProblemBody.parse(response.body),
1990
+ };
1991
+ case 415:
1992
+ return {
1993
+ status: 415,
1994
+ headers: response.headers,
1995
+ body: zProblemBody.parse(response.body),
1996
+ };
1997
+ case 500:
1998
+ return {
1999
+ status: 500,
2000
+ headers: response.headers,
2001
+ body: zProblemBody.parse(response.body),
2002
+ };
2003
+ default:
2004
+ return {
2005
+ status: "unexpected",
2006
+ status_code: response.status,
2007
+ headers: response.headers,
2008
+ body: response.body,
2009
+ };
2010
+ }
2011
+ },
2012
+ url: "/v1/organizations/{organization_id}/fiscal-number-authorizations",
2013
+ ...options,
2014
+ headers: {
2015
+ "Content-Type": "application/json",
2016
+ ...options.headers,
2017
+ },
2018
+ });
2019
+ export const listOrganizationFiscalOperations = (options) => options.client.get({
2020
+ response_decoder: (response) => {
2021
+ switch (response.status) {
2022
+ case 200:
2023
+ return {
2024
+ status: 200,
2025
+ headers: response.headers,
2026
+ body: zListOrganizationFiscalOperationsResponse.parse(response.body),
2027
+ };
2028
+ case 400:
2029
+ return {
2030
+ status: 400,
2031
+ headers: response.headers,
2032
+ body: zProblemBody.parse(response.body),
2033
+ };
2034
+ case 401:
2035
+ return {
2036
+ status: 401,
2037
+ headers: response.headers,
2038
+ body: zProblemBody.parse(response.body),
2039
+ };
2040
+ case 404:
2041
+ return {
2042
+ status: 404,
2043
+ headers: response.headers,
2044
+ body: zProblemBody.parse(response.body),
2045
+ };
2046
+ case 500:
2047
+ return {
2048
+ status: 500,
2049
+ headers: response.headers,
2050
+ body: zProblemBody.parse(response.body),
2051
+ };
2052
+ default:
2053
+ return {
2054
+ status: "unexpected",
2055
+ status_code: response.status,
2056
+ headers: response.headers,
2057
+ body: response.body,
2058
+ };
2059
+ }
2060
+ },
2061
+ url: "/v1/organizations/{organization_id}/fiscal-operations",
2062
+ ...options,
2063
+ });
2064
+ export const readOrganizationFiscalOperation = (options) => options.client.get({
2065
+ response_decoder: (response) => {
2066
+ switch (response.status) {
2067
+ case 200:
2068
+ return {
2069
+ status: 200,
2070
+ headers: response.headers,
2071
+ body: zReadOrganizationFiscalOperationResponse.parse(response.body),
2072
+ };
2073
+ case 400:
2074
+ return {
2075
+ status: 400,
2076
+ headers: response.headers,
2077
+ body: zProblemBody.parse(response.body),
2078
+ };
2079
+ case 401:
2080
+ return {
2081
+ status: 401,
2082
+ headers: response.headers,
2083
+ body: zProblemBody.parse(response.body),
2084
+ };
2085
+ case 404:
2086
+ return {
2087
+ status: 404,
2088
+ headers: response.headers,
2089
+ body: zProblemBody.parse(response.body),
2090
+ };
2091
+ case 500:
2092
+ return {
2093
+ status: 500,
2094
+ headers: response.headers,
2095
+ body: zProblemBody.parse(response.body),
2096
+ };
2097
+ default:
2098
+ return {
2099
+ status: "unexpected",
2100
+ status_code: response.status,
2101
+ headers: response.headers,
2102
+ body: response.body,
2103
+ };
2104
+ }
2105
+ },
2106
+ url: "/v1/organizations/{organization_id}/fiscal-operations/{fiscal_operation_id}",
2107
+ ...options,
2108
+ });
2109
+ export const retrieveWorkspaceFiscalArtifact = (options) => options.client.get({
2110
+ response_decoder: (response) => {
2111
+ switch (response.status) {
2112
+ case 200:
2113
+ return {
2114
+ status: 200,
2115
+ headers: response.headers,
2116
+ body: zRetrieveWorkspaceFiscalArtifactResponse.parse(response.body),
2117
+ };
2118
+ case 400:
2119
+ return {
2120
+ status: 400,
2121
+ headers: response.headers,
2122
+ body: zProblemBody.parse(response.body),
2123
+ };
2124
+ case 401:
2125
+ return {
2126
+ status: 401,
2127
+ headers: response.headers,
2128
+ body: zProblemBody.parse(response.body),
2129
+ };
2130
+ case 404:
2131
+ return {
2132
+ status: 404,
2133
+ headers: response.headers,
2134
+ body: zProblemBody.parse(response.body),
2135
+ };
2136
+ case 500:
2137
+ return {
2138
+ status: 500,
2139
+ headers: response.headers,
2140
+ body: zProblemBody.parse(response.body),
2141
+ };
2142
+ case 503:
2143
+ return {
2144
+ status: 503,
2145
+ headers: response.headers,
2146
+ body: zProblemBody.parse(response.body),
2147
+ };
2148
+ default:
2149
+ return {
2150
+ status: "unexpected",
2151
+ status_code: response.status,
2152
+ headers: response.headers,
2153
+ body: response.body,
2154
+ };
2155
+ }
2156
+ },
2157
+ url: "/v1/organizations/{organization_id}/fiscal-operations/{fiscal_operation_id}/artifacts/{artifact_kind}",
2158
+ ...options,
2159
+ });
2160
+ export const authorizeAuthorityRejectedReplacement = (options) => options.client.post({
2161
+ response_decoder: (response) => {
2162
+ switch (response.status) {
2163
+ case 200:
2164
+ return {
2165
+ status: 200,
2166
+ headers: response.headers,
2167
+ body: zAuthorizeAuthorityRejectedReplacementResponse.parse(response.body),
2168
+ };
2169
+ case 201:
2170
+ return {
2171
+ status: 201,
2172
+ headers: response.headers,
2173
+ body: zAuthorizeAuthorityRejectedReplacementResponse.parse(response.body),
2174
+ };
2175
+ case 401:
2176
+ return {
2177
+ status: 401,
2178
+ headers: response.headers,
2179
+ body: zProblemBody.parse(response.body),
2180
+ };
2181
+ case 403:
2182
+ return {
2183
+ status: 403,
2184
+ headers: response.headers,
2185
+ body: zProblemBody.parse(response.body),
2186
+ };
2187
+ case 404:
2188
+ return {
2189
+ status: 404,
2190
+ headers: response.headers,
2191
+ body: zProblemBody.parse(response.body),
2192
+ };
2193
+ case 409:
2194
+ return {
2195
+ status: 409,
2196
+ headers: response.headers,
2197
+ body: zProblemBody.parse(response.body),
2198
+ };
2199
+ case 413:
2200
+ return {
2201
+ status: 413,
2202
+ headers: response.headers,
2203
+ body: zProblemBody.parse(response.body),
2204
+ };
2205
+ case 415:
2206
+ return {
2207
+ status: 415,
2208
+ headers: response.headers,
2209
+ body: zProblemBody.parse(response.body),
2210
+ };
2211
+ case 500:
2212
+ return {
2213
+ status: 500,
2214
+ headers: response.headers,
2215
+ body: zProblemBody.parse(response.body),
2216
+ };
2217
+ default:
2218
+ return {
2219
+ status: "unexpected",
2220
+ status_code: response.status,
2221
+ headers: response.headers,
2222
+ body: response.body,
2223
+ };
2224
+ }
2225
+ },
2226
+ url: "/v1/organizations/{organization_id}/fiscal-operations/{fiscal_operation_id}/replacement-authorization",
2227
+ ...options,
2228
+ headers: {
2229
+ "Content-Type": "application/json",
2230
+ ...options.headers,
2231
+ },
2232
+ });
2233
+ export const listInvitations = (options) => options.client.get({
2234
+ response_decoder: (response) => {
2235
+ switch (response.status) {
2236
+ case 200:
2237
+ return {
2238
+ status: 200,
2239
+ headers: response.headers,
2240
+ body: zListInvitationsResponse.parse(response.body),
2241
+ };
2242
+ case 400:
2243
+ return {
2244
+ status: 400,
2245
+ headers: response.headers,
2246
+ body: zProblemBody.parse(response.body),
2247
+ };
2248
+ case 401:
2249
+ return {
2250
+ status: 401,
2251
+ headers: response.headers,
2252
+ body: zProblemBody.parse(response.body),
2253
+ };
2254
+ case 403:
2255
+ return {
2256
+ status: 403,
2257
+ headers: response.headers,
2258
+ body: zProblemBody.parse(response.body),
2259
+ };
2260
+ case 404:
2261
+ return {
2262
+ status: 404,
2263
+ headers: response.headers,
2264
+ body: zProblemBody.parse(response.body),
2265
+ };
2266
+ case 500:
2267
+ return {
2268
+ status: 500,
2269
+ headers: response.headers,
2270
+ body: zProblemBody.parse(response.body),
2271
+ };
2272
+ default:
2273
+ return {
2274
+ status: "unexpected",
2275
+ status_code: response.status,
2276
+ headers: response.headers,
2277
+ body: response.body,
2278
+ };
2279
+ }
2280
+ },
2281
+ url: "/v1/organizations/{organization_id}/invitations",
2282
+ ...options,
2283
+ });
2284
+ export const inviteMember = (options) => options.client.post({
2285
+ response_decoder: (response) => {
2286
+ switch (response.status) {
2287
+ case 201:
2288
+ return {
2289
+ status: 201,
2290
+ headers: response.headers,
2291
+ body: zInviteMemberResponse.parse(response.body),
2292
+ };
2293
+ case 400:
2294
+ return {
2295
+ status: 400,
2296
+ headers: response.headers,
2297
+ body: zProblemBody.parse(response.body),
2298
+ };
2299
+ case 401:
2300
+ return {
2301
+ status: 401,
2302
+ headers: response.headers,
2303
+ body: zProblemBody.parse(response.body),
2304
+ };
2305
+ case 403:
2306
+ return {
2307
+ status: 403,
2308
+ headers: response.headers,
2309
+ body: zProblemBody.parse(response.body),
2310
+ };
2311
+ case 404:
2312
+ return {
2313
+ status: 404,
2314
+ headers: response.headers,
2315
+ body: zProblemBody.parse(response.body),
2316
+ };
2317
+ case 413:
2318
+ return {
2319
+ status: 413,
2320
+ headers: response.headers,
2321
+ body: zProblemBody.parse(response.body),
2322
+ };
2323
+ case 415:
2324
+ return {
2325
+ status: 415,
2326
+ headers: response.headers,
2327
+ body: zProblemBody.parse(response.body),
2328
+ };
2329
+ case 500:
2330
+ return {
2331
+ status: 500,
2332
+ headers: response.headers,
2333
+ body: zProblemBody.parse(response.body),
2334
+ };
2335
+ default:
2336
+ return {
2337
+ status: "unexpected",
2338
+ status_code: response.status,
2339
+ headers: response.headers,
2340
+ body: response.body,
2341
+ };
2342
+ }
2343
+ },
2344
+ url: "/v1/organizations/{organization_id}/invitations",
2345
+ ...options,
2346
+ headers: {
2347
+ "Content-Type": "application/json",
2348
+ ...options.headers,
2349
+ },
2350
+ });
2351
+ export const listLegalIssuers = (options) => options.client.get({
2352
+ response_decoder: (response) => {
2353
+ switch (response.status) {
2354
+ case 200:
2355
+ return {
2356
+ status: 200,
2357
+ headers: response.headers,
2358
+ body: zListLegalIssuersResponse.parse(response.body),
2359
+ };
2360
+ case 400:
2361
+ return {
2362
+ status: 400,
2363
+ headers: response.headers,
2364
+ body: zProblemBody.parse(response.body),
2365
+ };
2366
+ case 401:
2367
+ return {
2368
+ status: 401,
2369
+ headers: response.headers,
2370
+ body: zProblemBody.parse(response.body),
2371
+ };
2372
+ case 404:
2373
+ return {
2374
+ status: 404,
2375
+ headers: response.headers,
2376
+ body: zProblemBody.parse(response.body),
2377
+ };
2378
+ case 500:
2379
+ return {
2380
+ status: 500,
2381
+ headers: response.headers,
2382
+ body: zProblemBody.parse(response.body),
2383
+ };
2384
+ default:
2385
+ return {
2386
+ status: "unexpected",
2387
+ status_code: response.status,
2388
+ headers: response.headers,
2389
+ body: response.body,
2390
+ };
2391
+ }
2392
+ },
2393
+ url: "/v1/organizations/{organization_id}/legal-issuers",
2394
+ ...options,
2395
+ });
2396
+ export const registerLegalIssuer = (options) => options.client.post({
2397
+ response_decoder: (response) => {
2398
+ switch (response.status) {
2399
+ case 201:
2400
+ return {
2401
+ status: 201,
2402
+ headers: response.headers,
2403
+ body: zRegisterLegalIssuerResponse.parse(response.body),
2404
+ };
2405
+ case 400:
2406
+ return {
2407
+ status: 400,
2408
+ headers: response.headers,
2409
+ body: zProblemBody.parse(response.body),
2410
+ };
2411
+ case 401:
2412
+ return {
2413
+ status: 401,
2414
+ headers: response.headers,
2415
+ body: zProblemBody.parse(response.body),
2416
+ };
2417
+ case 403:
2418
+ return {
2419
+ status: 403,
2420
+ headers: response.headers,
2421
+ body: zProblemBody.parse(response.body),
2422
+ };
2423
+ case 404:
2424
+ return {
2425
+ status: 404,
2426
+ headers: response.headers,
2427
+ body: zProblemBody.parse(response.body),
2428
+ };
2429
+ case 409:
2430
+ return {
2431
+ status: 409,
2432
+ headers: response.headers,
2433
+ body: zProblemBody.parse(response.body),
2434
+ };
2435
+ case 413:
2436
+ return {
2437
+ status: 413,
2438
+ headers: response.headers,
2439
+ body: zProblemBody.parse(response.body),
2440
+ };
2441
+ case 415:
2442
+ return {
2443
+ status: 415,
2444
+ headers: response.headers,
2445
+ body: zProblemBody.parse(response.body),
2446
+ };
2447
+ case 500:
2448
+ return {
2449
+ status: 500,
2450
+ headers: response.headers,
2451
+ body: zProblemBody.parse(response.body),
2452
+ };
2453
+ default:
2454
+ return {
2455
+ status: "unexpected",
2456
+ status_code: response.status,
2457
+ headers: response.headers,
2458
+ body: response.body,
2459
+ };
2460
+ }
2461
+ },
2462
+ url: "/v1/organizations/{organization_id}/legal-issuers",
2463
+ ...options,
2464
+ headers: {
2465
+ "Content-Type": "application/json",
2466
+ ...options.headers,
2467
+ },
2468
+ });
2469
+ export const completeLegalIssuerProfile = (options) => options.client.put({
2470
+ response_decoder: (response) => {
2471
+ switch (response.status) {
2472
+ case 200:
2473
+ return {
2474
+ status: 200,
2475
+ headers: response.headers,
2476
+ body: zCompleteLegalIssuerProfileResponse.parse(response.body),
2477
+ };
2478
+ case 400:
2479
+ return {
2480
+ status: 400,
2481
+ headers: response.headers,
2482
+ body: zProblemBody.parse(response.body),
2483
+ };
2484
+ case 401:
2485
+ return {
2486
+ status: 401,
2487
+ headers: response.headers,
2488
+ body: zProblemBody.parse(response.body),
2489
+ };
2490
+ case 403:
2491
+ return {
2492
+ status: 403,
2493
+ headers: response.headers,
2494
+ body: zProblemBody.parse(response.body),
2495
+ };
2496
+ case 404:
2497
+ return {
2498
+ status: 404,
2499
+ headers: response.headers,
2500
+ body: zProblemBody.parse(response.body),
2501
+ };
2502
+ case 409:
2503
+ return {
2504
+ status: 409,
2505
+ headers: response.headers,
2506
+ body: zProblemBody.parse(response.body),
2507
+ };
2508
+ case 413:
2509
+ return {
2510
+ status: 413,
2511
+ headers: response.headers,
2512
+ body: zProblemBody.parse(response.body),
2513
+ };
2514
+ case 415:
2515
+ return {
2516
+ status: 415,
2517
+ headers: response.headers,
2518
+ body: zProblemBody.parse(response.body),
2519
+ };
2520
+ case 500:
2521
+ return {
2522
+ status: 500,
2523
+ headers: response.headers,
2524
+ body: zProblemBody.parse(response.body),
2525
+ };
2526
+ default:
2527
+ return {
2528
+ status: "unexpected",
2529
+ status_code: response.status,
2530
+ headers: response.headers,
2531
+ body: response.body,
2532
+ };
2533
+ }
2534
+ },
2535
+ url: "/v1/organizations/{organization_id}/legal-issuers/{legal_issuer_id}",
2536
+ ...options,
2537
+ headers: {
2538
+ "Content-Type": "application/json",
2539
+ ...options.headers,
2540
+ },
2541
+ });
2542
+ export const readOnboardingReadiness = (options) => options.client.get({
2543
+ response_decoder: (response) => {
2544
+ switch (response.status) {
2545
+ case 200:
2546
+ return {
2547
+ status: 200,
2548
+ headers: response.headers,
2549
+ body: zReadOnboardingReadinessResponse.parse(response.body),
2550
+ };
2551
+ case 400:
2552
+ return {
2553
+ status: 400,
2554
+ headers: response.headers,
2555
+ body: zProblemBody.parse(response.body),
2556
+ };
2557
+ case 401:
2558
+ return {
2559
+ status: 401,
2560
+ headers: response.headers,
2561
+ body: zProblemBody.parse(response.body),
2562
+ };
2563
+ case 404:
2564
+ return {
2565
+ status: 404,
2566
+ headers: response.headers,
2567
+ body: zProblemBody.parse(response.body),
2568
+ };
2569
+ case 500:
2570
+ return {
2571
+ status: 500,
2572
+ headers: response.headers,
2573
+ body: zProblemBody.parse(response.body),
2574
+ };
2575
+ default:
2576
+ return {
2577
+ status: "unexpected",
2578
+ status_code: response.status,
2579
+ headers: response.headers,
2580
+ body: response.body,
2581
+ };
2582
+ }
2583
+ },
2584
+ url: "/v1/organizations/{organization_id}/onboarding",
2585
+ ...options,
2586
+ });
2587
+ export const readOnboardingLegalIssuerIdentity = (options) => options.client.get({
2588
+ response_decoder: (response) => {
2589
+ switch (response.status) {
2590
+ case 200:
2591
+ return {
2592
+ status: 200,
2593
+ headers: response.headers,
2594
+ body: zReadOnboardingLegalIssuerIdentityResponse.parse(response.body),
2595
+ };
2596
+ case 400:
2597
+ return {
2598
+ status: 400,
2599
+ headers: response.headers,
2600
+ body: zProblemBody.parse(response.body),
2601
+ };
2602
+ case 401:
2603
+ return {
2604
+ status: 401,
2605
+ headers: response.headers,
2606
+ body: zProblemBody.parse(response.body),
2607
+ };
2608
+ case 403:
2609
+ return {
2610
+ status: 403,
2611
+ headers: response.headers,
2612
+ body: zProblemBody.parse(response.body),
2613
+ };
2614
+ case 404:
2615
+ return {
2616
+ status: 404,
2617
+ headers: response.headers,
2618
+ body: zProblemBody.parse(response.body),
2619
+ };
2620
+ case 500:
2621
+ return {
2622
+ status: 500,
2623
+ headers: response.headers,
2624
+ body: zProblemBody.parse(response.body),
2625
+ };
2626
+ default:
2627
+ return {
2628
+ status: "unexpected",
2629
+ status_code: response.status,
2630
+ headers: response.headers,
2631
+ body: response.body,
2632
+ };
2633
+ }
2634
+ },
2635
+ url: "/v1/organizations/{organization_id}/onboarding/legal-issuer-identity",
2636
+ ...options,
2637
+ });
2638
+ export const updateOnboardingLegalIssuerIdentity = (options) => options.client.put({
2639
+ response_decoder: (response) => {
2640
+ switch (response.status) {
2641
+ case 200:
2642
+ return {
2643
+ status: 200,
2644
+ headers: response.headers,
2645
+ body: zUpdateOnboardingLegalIssuerIdentityResponse.parse(response.body),
2646
+ };
2647
+ case 400:
2648
+ return {
2649
+ status: 400,
2650
+ headers: response.headers,
2651
+ body: zProblemBody.parse(response.body),
2652
+ };
2653
+ case 401:
2654
+ return {
2655
+ status: 401,
2656
+ headers: response.headers,
2657
+ body: zProblemBody.parse(response.body),
2658
+ };
2659
+ case 403:
2660
+ return {
2661
+ status: 403,
2662
+ headers: response.headers,
2663
+ body: zProblemBody.parse(response.body),
2664
+ };
2665
+ case 404:
2666
+ return {
2667
+ status: 404,
2668
+ headers: response.headers,
2669
+ body: zProblemBody.parse(response.body),
2670
+ };
2671
+ case 413:
2672
+ return {
2673
+ status: 413,
2674
+ headers: response.headers,
2675
+ body: zProblemBody.parse(response.body),
2676
+ };
2677
+ case 415:
2678
+ return {
2679
+ status: 415,
2680
+ headers: response.headers,
2681
+ body: zProblemBody.parse(response.body),
2682
+ };
2683
+ case 422:
2684
+ return {
2685
+ status: 422,
2686
+ headers: response.headers,
2687
+ body: zProblemBody.parse(response.body),
2688
+ };
2689
+ case 500:
2690
+ return {
2691
+ status: 500,
2692
+ headers: response.headers,
2693
+ body: zProblemBody.parse(response.body),
2694
+ };
2695
+ default:
2696
+ return {
2697
+ status: "unexpected",
2698
+ status_code: response.status,
2699
+ headers: response.headers,
2700
+ body: response.body,
2701
+ };
2702
+ }
2703
+ },
2704
+ url: "/v1/organizations/{organization_id}/onboarding/legal-issuer-identity",
2705
+ ...options,
2706
+ headers: {
2707
+ "Content-Type": "application/json",
2708
+ ...options.headers,
2709
+ },
2710
+ });
2711
+ export const readOnboardingServiceScope = (options) => options.client.get({
2712
+ response_decoder: (response) => {
2713
+ switch (response.status) {
2714
+ case 200:
2715
+ return {
2716
+ status: 200,
2717
+ headers: response.headers,
2718
+ body: zReadOnboardingServiceScopeResponse.parse(response.body),
2719
+ };
2720
+ case 400:
2721
+ return {
2722
+ status: 400,
2723
+ headers: response.headers,
2724
+ body: zProblemBody.parse(response.body),
2725
+ };
2726
+ case 401:
2727
+ return {
2728
+ status: 401,
2729
+ headers: response.headers,
2730
+ body: zProblemBody.parse(response.body),
2731
+ };
2732
+ case 403:
2733
+ return {
2734
+ status: 403,
2735
+ headers: response.headers,
2736
+ body: zProblemBody.parse(response.body),
2737
+ };
2738
+ case 404:
2739
+ return {
2740
+ status: 404,
2741
+ headers: response.headers,
2742
+ body: zProblemBody.parse(response.body),
2743
+ };
2744
+ case 500:
2745
+ return {
2746
+ status: 500,
2747
+ headers: response.headers,
2748
+ body: zProblemBody.parse(response.body),
2749
+ };
2750
+ default:
2751
+ return {
2752
+ status: "unexpected",
2753
+ status_code: response.status,
2754
+ headers: response.headers,
2755
+ body: response.body,
2756
+ };
2757
+ }
2758
+ },
2759
+ url: "/v1/organizations/{organization_id}/onboarding/service-scope",
2760
+ ...options,
2761
+ });
2762
+ export const updateOnboardingServiceScope = (options) => options.client.put({
2763
+ response_decoder: (response) => {
2764
+ switch (response.status) {
2765
+ case 200:
2766
+ return {
2767
+ status: 200,
2768
+ headers: response.headers,
2769
+ body: zUpdateOnboardingServiceScopeResponse.parse(response.body),
2770
+ };
2771
+ case 400:
2772
+ return {
2773
+ status: 400,
2774
+ headers: response.headers,
2775
+ body: zProblemBody.parse(response.body),
2776
+ };
2777
+ case 401:
2778
+ return {
2779
+ status: 401,
2780
+ headers: response.headers,
2781
+ body: zProblemBody.parse(response.body),
2782
+ };
2783
+ case 403:
2784
+ return {
2785
+ status: 403,
2786
+ headers: response.headers,
2787
+ body: zProblemBody.parse(response.body),
2788
+ };
2789
+ case 404:
2790
+ return {
2791
+ status: 404,
2792
+ headers: response.headers,
2793
+ body: zProblemBody.parse(response.body),
2794
+ };
2795
+ case 413:
2796
+ return {
2797
+ status: 413,
2798
+ headers: response.headers,
2799
+ body: zProblemBody.parse(response.body),
2800
+ };
2801
+ case 415:
2802
+ return {
2803
+ status: 415,
2804
+ headers: response.headers,
2805
+ body: zProblemBody.parse(response.body),
2806
+ };
2807
+ case 500:
2808
+ return {
2809
+ status: 500,
2810
+ headers: response.headers,
2811
+ body: zProblemBody.parse(response.body),
2812
+ };
2813
+ default:
2814
+ return {
2815
+ status: "unexpected",
2816
+ status_code: response.status,
2817
+ headers: response.headers,
2818
+ body: response.body,
2819
+ };
2820
+ }
2821
+ },
2822
+ url: "/v1/organizations/{organization_id}/onboarding/service-scope",
2823
+ ...options,
2824
+ headers: {
2825
+ "Content-Type": "application/json",
2826
+ ...options.headers,
2827
+ },
2828
+ });
2829
+ export const listReceivedDocuments = (options) => options.client.get({
2830
+ response_decoder: (response) => {
2831
+ switch (response.status) {
2832
+ case 200:
2833
+ return {
2834
+ status: 200,
2835
+ headers: response.headers,
2836
+ body: zListReceivedDocumentsResponse.parse(response.body),
2837
+ };
2838
+ case 400:
2839
+ return {
2840
+ status: 400,
2841
+ headers: response.headers,
2842
+ body: zProblemBody.parse(response.body),
2843
+ };
2844
+ case 401:
2845
+ return {
2846
+ status: 401,
2847
+ headers: response.headers,
2848
+ body: zProblemBody.parse(response.body),
2849
+ };
2850
+ case 404:
2851
+ return {
2852
+ status: 404,
2853
+ headers: response.headers,
2854
+ body: zProblemBody.parse(response.body),
2855
+ };
2856
+ case 500:
2857
+ return {
2858
+ status: 500,
2859
+ headers: response.headers,
2860
+ body: zProblemBody.parse(response.body),
2861
+ };
2862
+ default:
2863
+ return {
2864
+ status: "unexpected",
2865
+ status_code: response.status,
2866
+ headers: response.headers,
2867
+ body: response.body,
2868
+ };
2869
+ }
2870
+ },
2871
+ url: "/v1/organizations/{organization_id}/received-documents",
2872
+ ...options,
2873
+ });
2874
+ export const readReceivedDocument = (options) => options.client.get({
2875
+ response_decoder: (response) => {
2876
+ switch (response.status) {
2877
+ case 200:
2878
+ return {
2879
+ status: 200,
2880
+ headers: response.headers,
2881
+ body: zReadReceivedDocumentResponse.parse(response.body),
2882
+ };
2883
+ case 400:
2884
+ return {
2885
+ status: 400,
2886
+ headers: response.headers,
2887
+ body: zProblemBody.parse(response.body),
2888
+ };
2889
+ case 401:
2890
+ return {
2891
+ status: 401,
2892
+ headers: response.headers,
2893
+ body: zProblemBody.parse(response.body),
2894
+ };
2895
+ case 404:
2896
+ return {
2897
+ status: 404,
2898
+ headers: response.headers,
2899
+ body: zProblemBody.parse(response.body),
2900
+ };
2901
+ case 500:
2902
+ return {
2903
+ status: 500,
2904
+ headers: response.headers,
2905
+ body: zProblemBody.parse(response.body),
2906
+ };
2907
+ default:
2908
+ return {
2909
+ status: "unexpected",
2910
+ status_code: response.status,
2911
+ headers: response.headers,
2912
+ body: response.body,
2913
+ };
2914
+ }
2915
+ },
2916
+ url: "/v1/organizations/{organization_id}/received-documents/{fiscal_reception_id}",
2917
+ ...options,
2918
+ });
2919
+ export const recordCommercialResponse = (options) => options.client.post({
2920
+ response_decoder: (response) => {
2921
+ switch (response.status) {
2922
+ case 200:
2923
+ return {
2924
+ status: 200,
2925
+ headers: response.headers,
2926
+ body: zRecordCommercialResponseResponse.parse(response.body),
2927
+ };
2928
+ case 400:
2929
+ return {
2930
+ status: 400,
2931
+ headers: response.headers,
2932
+ body: zProblemBody.parse(response.body),
2933
+ };
2934
+ case 401:
2935
+ return {
2936
+ status: 401,
2937
+ headers: response.headers,
2938
+ body: zProblemBody.parse(response.body),
2939
+ };
2940
+ case 403:
2941
+ return {
2942
+ status: 403,
2943
+ headers: response.headers,
2944
+ body: zProblemBody.parse(response.body),
2945
+ };
2946
+ case 404:
2947
+ return {
2948
+ status: 404,
2949
+ headers: response.headers,
2950
+ body: zProblemBody.parse(response.body),
2951
+ };
2952
+ case 409:
2953
+ return {
2954
+ status: 409,
2955
+ headers: response.headers,
2956
+ body: zProblemBody.parse(response.body),
2957
+ };
2958
+ case 413:
2959
+ return {
2960
+ status: 413,
2961
+ headers: response.headers,
2962
+ body: zProblemBody.parse(response.body),
2963
+ };
2964
+ case 415:
2965
+ return {
2966
+ status: 415,
2967
+ headers: response.headers,
2968
+ body: zProblemBody.parse(response.body),
2969
+ };
2970
+ case 500:
2971
+ return {
2972
+ status: 500,
2973
+ headers: response.headers,
2974
+ body: zProblemBody.parse(response.body),
2975
+ };
2976
+ default:
2977
+ return {
2978
+ status: "unexpected",
2979
+ status_code: response.status,
2980
+ headers: response.headers,
2981
+ body: response.body,
2982
+ };
2983
+ }
2984
+ },
2985
+ url: "/v1/organizations/{organization_id}/received-documents/{fiscal_reception_id}/commercial-response",
2986
+ ...options,
2987
+ headers: {
2988
+ "Content-Type": "application/json",
2989
+ ...options.headers,
2990
+ },
2991
+ });
2992
+ export const declareReceptionMount = (options) => options.client.post({
2993
+ response_decoder: (response) => {
2994
+ switch (response.status) {
2995
+ case 200:
2996
+ return {
2997
+ status: 200,
2998
+ headers: response.headers,
2999
+ body: zDeclareReceptionMountResponse.parse(response.body),
3000
+ };
3001
+ case 400:
3002
+ return {
3003
+ status: 400,
3004
+ headers: response.headers,
3005
+ body: zProblemBody.parse(response.body),
3006
+ };
3007
+ case 401:
3008
+ return {
3009
+ status: 401,
3010
+ headers: response.headers,
3011
+ body: zProblemBody.parse(response.body),
3012
+ };
3013
+ case 403:
3014
+ return {
3015
+ status: 403,
3016
+ headers: response.headers,
3017
+ body: zProblemBody.parse(response.body),
3018
+ };
3019
+ case 404:
3020
+ return {
3021
+ status: 404,
3022
+ headers: response.headers,
3023
+ body: zProblemBody.parse(response.body),
3024
+ };
3025
+ case 409:
3026
+ return {
3027
+ status: 409,
3028
+ headers: response.headers,
3029
+ body: zProblemBody.parse(response.body),
3030
+ };
3031
+ case 413:
3032
+ return {
3033
+ status: 413,
3034
+ headers: response.headers,
3035
+ body: zProblemBody.parse(response.body),
3036
+ };
3037
+ case 415:
3038
+ return {
3039
+ status: 415,
3040
+ headers: response.headers,
3041
+ body: zProblemBody.parse(response.body),
3042
+ };
3043
+ case 500:
3044
+ return {
3045
+ status: 500,
3046
+ headers: response.headers,
3047
+ body: zProblemBody.parse(response.body),
3048
+ };
3049
+ default:
3050
+ return {
3051
+ status: "unexpected",
3052
+ status_code: response.status,
3053
+ headers: response.headers,
3054
+ body: response.body,
3055
+ };
3056
+ }
3057
+ },
3058
+ url: "/v1/organizations/{organization_id}/reception-mounts",
3059
+ ...options,
3060
+ headers: {
3061
+ "Content-Type": "application/json",
3062
+ ...options.headers,
3063
+ },
3064
+ });
3065
+ export const listSourceConnections = (options) => options.client.get({
3066
+ response_decoder: (response) => {
3067
+ switch (response.status) {
3068
+ case 200:
3069
+ return {
3070
+ status: 200,
3071
+ headers: response.headers,
3072
+ body: zListSourceConnectionsResponse.parse(response.body),
3073
+ };
3074
+ case 400:
3075
+ return {
3076
+ status: 400,
3077
+ headers: response.headers,
3078
+ body: zProblemBody.parse(response.body),
3079
+ };
3080
+ case 401:
3081
+ return {
3082
+ status: 401,
3083
+ headers: response.headers,
3084
+ body: zProblemBody.parse(response.body),
3085
+ };
3086
+ case 404:
3087
+ return {
3088
+ status: 404,
3089
+ headers: response.headers,
3090
+ body: zProblemBody.parse(response.body),
3091
+ };
3092
+ case 500:
3093
+ return {
3094
+ status: 500,
3095
+ headers: response.headers,
3096
+ body: zProblemBody.parse(response.body),
3097
+ };
3098
+ default:
3099
+ return {
3100
+ status: "unexpected",
3101
+ status_code: response.status,
3102
+ headers: response.headers,
3103
+ body: response.body,
3104
+ };
3105
+ }
3106
+ },
3107
+ url: "/v1/organizations/{organization_id}/source-connections",
3108
+ ...options,
3109
+ });
3110
+ export const createSourceConnection = (options) => options.client.post({
3111
+ response_decoder: (response) => {
3112
+ switch (response.status) {
3113
+ case 200:
3114
+ return {
3115
+ status: 200,
3116
+ headers: response.headers,
3117
+ body: zCreateSourceConnectionResponse.parse(response.body),
3118
+ };
3119
+ case 201:
3120
+ return {
3121
+ status: 201,
3122
+ headers: response.headers,
3123
+ body: zCreateSourceConnectionResponse.parse(response.body),
3124
+ };
3125
+ case 400:
3126
+ return {
3127
+ status: 400,
3128
+ headers: response.headers,
3129
+ body: zProblemBody.parse(response.body),
3130
+ };
3131
+ case 401:
3132
+ return {
3133
+ status: 401,
3134
+ headers: response.headers,
3135
+ body: zProblemBody.parse(response.body),
3136
+ };
3137
+ case 403:
3138
+ return {
3139
+ status: 403,
3140
+ headers: response.headers,
3141
+ body: zProblemBody.parse(response.body),
3142
+ };
3143
+ case 404:
3144
+ return {
3145
+ status: 404,
3146
+ headers: response.headers,
3147
+ body: zProblemBody.parse(response.body),
3148
+ };
3149
+ case 409:
3150
+ return {
3151
+ status: 409,
3152
+ headers: response.headers,
3153
+ body: zProblemBody.parse(response.body),
3154
+ };
3155
+ case 413:
3156
+ return {
3157
+ status: 413,
3158
+ headers: response.headers,
3159
+ body: zProblemBody.parse(response.body),
3160
+ };
3161
+ case 415:
3162
+ return {
3163
+ status: 415,
3164
+ headers: response.headers,
3165
+ body: zProblemBody.parse(response.body),
3166
+ };
3167
+ case 500:
3168
+ return {
3169
+ status: 500,
3170
+ headers: response.headers,
3171
+ body: zProblemBody.parse(response.body),
3172
+ };
3173
+ case 503:
3174
+ return {
3175
+ status: 503,
3176
+ headers: response.headers,
3177
+ body: zProblemBody.parse(response.body),
3178
+ };
3179
+ default:
3180
+ return {
3181
+ status: "unexpected",
3182
+ status_code: response.status,
3183
+ headers: response.headers,
3184
+ body: response.body,
3185
+ };
3186
+ }
3187
+ },
3188
+ url: "/v1/organizations/{organization_id}/source-connections",
3189
+ ...options,
3190
+ headers: {
3191
+ "Content-Type": "application/json",
3192
+ ...options.headers,
3193
+ },
3194
+ });
3195
+ export const readSourceConnection = (options) => options.client.get({
3196
+ response_decoder: (response) => {
3197
+ switch (response.status) {
3198
+ case 200:
3199
+ return {
3200
+ status: 200,
3201
+ headers: response.headers,
3202
+ body: zReadSourceConnectionResponse.parse(response.body),
3203
+ };
3204
+ case 400:
3205
+ return {
3206
+ status: 400,
3207
+ headers: response.headers,
3208
+ body: zProblemBody.parse(response.body),
3209
+ };
3210
+ case 401:
3211
+ return {
3212
+ status: 401,
3213
+ headers: response.headers,
3214
+ body: zProblemBody.parse(response.body),
3215
+ };
3216
+ case 404:
3217
+ return {
3218
+ status: 404,
3219
+ headers: response.headers,
3220
+ body: zProblemBody.parse(response.body),
3221
+ };
3222
+ case 500:
3223
+ return {
3224
+ status: 500,
3225
+ headers: response.headers,
3226
+ body: zProblemBody.parse(response.body),
3227
+ };
3228
+ default:
3229
+ return {
3230
+ status: "unexpected",
3231
+ status_code: response.status,
3232
+ headers: response.headers,
3233
+ body: response.body,
3234
+ };
3235
+ }
3236
+ },
3237
+ url: "/v1/organizations/{organization_id}/source-connections/{source_connection_id}",
3238
+ ...options,
3239
+ });
3240
+ export const recoverSourceConnectionActivation = (options) => options.client.post({
3241
+ response_decoder: (response) => {
3242
+ switch (response.status) {
3243
+ case 200:
3244
+ return {
3245
+ status: 200,
3246
+ headers: response.headers,
3247
+ body: zRecoverSourceConnectionActivationResponse.parse(response.body),
3248
+ };
3249
+ case 202:
3250
+ return {
3251
+ status: 202,
3252
+ headers: response.headers,
3253
+ body: zRecoverSourceConnectionActivationResponse.parse(response.body),
3254
+ };
3255
+ case 400:
3256
+ return {
3257
+ status: 400,
3258
+ headers: response.headers,
3259
+ body: zProblemBody.parse(response.body),
3260
+ };
3261
+ case 401:
3262
+ return {
3263
+ status: 401,
3264
+ headers: response.headers,
3265
+ body: zProblemBody.parse(response.body),
3266
+ };
3267
+ case 403:
3268
+ return {
3269
+ status: 403,
3270
+ headers: response.headers,
3271
+ body: zProblemBody.parse(response.body),
3272
+ };
3273
+ case 404:
3274
+ return {
3275
+ status: 404,
3276
+ headers: response.headers,
3277
+ body: zProblemBody.parse(response.body),
3278
+ };
3279
+ case 409:
3280
+ return {
3281
+ status: 409,
3282
+ headers: response.headers,
3283
+ body: zProblemBody.parse(response.body),
3284
+ };
3285
+ case 500:
3286
+ return {
3287
+ status: 500,
3288
+ headers: response.headers,
3289
+ body: zProblemBody.parse(response.body),
3290
+ };
3291
+ case 503:
3292
+ return {
3293
+ status: 503,
3294
+ headers: response.headers,
3295
+ body: zProblemBody.parse(response.body),
3296
+ };
3297
+ default:
3298
+ return {
3299
+ status: "unexpected",
3300
+ status_code: response.status,
3301
+ headers: response.headers,
3302
+ body: response.body,
3303
+ };
3304
+ }
3305
+ },
3306
+ url: "/v1/organizations/{organization_id}/source-connections/{source_connection_id}/activation-recovery",
3307
+ ...options,
3308
+ });
3309
+ export const listSourceProviderAuthorizations = (options) => options.client.get({
3310
+ response_decoder: (response) => {
3311
+ switch (response.status) {
3312
+ case 200:
3313
+ return {
3314
+ status: 200,
3315
+ headers: response.headers,
3316
+ body: zListSourceProviderAuthorizationsResponse.parse(response.body),
3317
+ };
3318
+ case 400:
3319
+ return {
3320
+ status: 400,
3321
+ headers: response.headers,
3322
+ body: zProblemBody.parse(response.body),
3323
+ };
3324
+ case 401:
3325
+ return {
3326
+ status: 401,
3327
+ headers: response.headers,
3328
+ body: zProblemBody.parse(response.body),
3329
+ };
3330
+ case 404:
3331
+ return {
3332
+ status: 404,
3333
+ headers: response.headers,
3334
+ body: zProblemBody.parse(response.body),
3335
+ };
3336
+ case 500:
3337
+ return {
3338
+ status: 500,
3339
+ headers: response.headers,
3340
+ body: zProblemBody.parse(response.body),
3341
+ };
3342
+ default:
3343
+ return {
3344
+ status: "unexpected",
3345
+ status_code: response.status,
3346
+ headers: response.headers,
3347
+ body: response.body,
3348
+ };
3349
+ }
3350
+ },
3351
+ url: "/v1/organizations/{organization_id}/source-provider-authorizations",
3352
+ ...options,
3353
+ });
3354
+ export const beginVercelSourceProviderInstallation = (options) => options.client.post({
3355
+ response_decoder: (response) => {
3356
+ switch (response.status) {
3357
+ case 201:
3358
+ return {
3359
+ status: 201,
3360
+ headers: response.headers,
3361
+ body: zBeginVercelSourceProviderInstallationResponse.parse(response.body),
3362
+ };
3363
+ case 400:
3364
+ return {
3365
+ status: 400,
3366
+ headers: response.headers,
3367
+ body: zProblemBody.parse(response.body),
3368
+ };
3369
+ case 401:
3370
+ return {
3371
+ status: 401,
3372
+ headers: response.headers,
3373
+ body: zProblemBody.parse(response.body),
3374
+ };
3375
+ case 403:
3376
+ return {
3377
+ status: 403,
3378
+ headers: response.headers,
3379
+ body: zProblemBody.parse(response.body),
3380
+ };
3381
+ case 404:
3382
+ return {
3383
+ status: 404,
3384
+ headers: response.headers,
3385
+ body: zProblemBody.parse(response.body),
3386
+ };
3387
+ case 500:
3388
+ return {
3389
+ status: 500,
3390
+ headers: response.headers,
3391
+ body: zProblemBody.parse(response.body),
3392
+ };
3393
+ case 503:
3394
+ return {
3395
+ status: 503,
3396
+ headers: response.headers,
3397
+ body: zProblemBody.parse(response.body),
3398
+ };
3399
+ default:
3400
+ return {
3401
+ status: "unexpected",
3402
+ status_code: response.status,
3403
+ headers: response.headers,
3404
+ body: response.body,
3405
+ };
3406
+ }
3407
+ },
3408
+ url: "/v1/organizations/{organization_id}/source-provider-authorizations/vercel/installation-requests",
3409
+ ...options,
3410
+ });
3411
+ export const readSourceProviderAuthorization = (options) => options.client.get({
3412
+ response_decoder: (response) => {
3413
+ switch (response.status) {
3414
+ case 200:
3415
+ return {
3416
+ status: 200,
3417
+ headers: response.headers,
3418
+ body: zReadSourceProviderAuthorizationResponse.parse(response.body),
3419
+ };
3420
+ case 400:
3421
+ return {
3422
+ status: 400,
3423
+ headers: response.headers,
3424
+ body: zProblemBody.parse(response.body),
3425
+ };
3426
+ case 401:
3427
+ return {
3428
+ status: 401,
3429
+ headers: response.headers,
3430
+ body: zProblemBody.parse(response.body),
3431
+ };
3432
+ case 404:
3433
+ return {
3434
+ status: 404,
3435
+ headers: response.headers,
3436
+ body: zProblemBody.parse(response.body),
3437
+ };
3438
+ case 500:
3439
+ return {
3440
+ status: 500,
3441
+ headers: response.headers,
3442
+ body: zProblemBody.parse(response.body),
3443
+ };
3444
+ default:
3445
+ return {
3446
+ status: "unexpected",
3447
+ status_code: response.status,
3448
+ headers: response.headers,
3449
+ body: response.body,
3450
+ };
3451
+ }
3452
+ },
3453
+ url: "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}",
3454
+ ...options,
3455
+ });
3456
+ export const listAuthorizedVercelProjects = (options) => options.client.get({
3457
+ response_decoder: (response) => {
3458
+ switch (response.status) {
3459
+ case 200:
3460
+ return {
3461
+ status: 200,
3462
+ headers: response.headers,
3463
+ body: zListAuthorizedVercelProjectsResponse.parse(response.body),
3464
+ };
3465
+ case 400:
3466
+ return {
3467
+ status: 400,
3468
+ headers: response.headers,
3469
+ body: zProblemBody.parse(response.body),
3470
+ };
3471
+ case 401:
3472
+ return {
3473
+ status: 401,
3474
+ headers: response.headers,
3475
+ body: zProblemBody.parse(response.body),
3476
+ };
3477
+ case 403:
3478
+ return {
3479
+ status: 403,
3480
+ headers: response.headers,
3481
+ body: zProblemBody.parse(response.body),
3482
+ };
3483
+ case 404:
3484
+ return {
3485
+ status: 404,
3486
+ headers: response.headers,
3487
+ body: zProblemBody.parse(response.body),
3488
+ };
3489
+ case 409:
3490
+ return {
3491
+ status: 409,
3492
+ headers: response.headers,
3493
+ body: zProblemBody.parse(response.body),
3494
+ };
3495
+ case 500:
3496
+ return {
3497
+ status: 500,
3498
+ headers: response.headers,
3499
+ body: zProblemBody.parse(response.body),
3500
+ };
3501
+ case 503:
3502
+ return {
3503
+ status: 503,
3504
+ headers: response.headers,
3505
+ body: zProblemBody.parse(response.body),
3506
+ };
3507
+ default:
3508
+ return {
3509
+ status: "unexpected",
3510
+ status_code: response.status,
3511
+ headers: response.headers,
3512
+ body: response.body,
3513
+ };
3514
+ }
3515
+ },
3516
+ url: "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}/vercel/projects",
3517
+ ...options,
3518
+ });
3519
+ export const readAuthorizedVercelProjectQualification = (options) => options.client.get({
3520
+ response_decoder: (response) => {
3521
+ switch (response.status) {
3522
+ case 200:
3523
+ return {
3524
+ status: 200,
3525
+ headers: response.headers,
3526
+ body: zReadAuthorizedVercelProjectQualificationResponse.parse(response.body),
3527
+ };
3528
+ case 400:
3529
+ return {
3530
+ status: 400,
3531
+ headers: response.headers,
3532
+ body: zProblemBody.parse(response.body),
3533
+ };
3534
+ case 401:
3535
+ return {
3536
+ status: 401,
3537
+ headers: response.headers,
3538
+ body: zProblemBody.parse(response.body),
3539
+ };
3540
+ case 403:
3541
+ return {
3542
+ status: 403,
3543
+ headers: response.headers,
3544
+ body: zProblemBody.parse(response.body),
3545
+ };
3546
+ case 404:
3547
+ return {
3548
+ status: 404,
3549
+ headers: response.headers,
3550
+ body: zProblemBody.parse(response.body),
3551
+ };
3552
+ case 409:
3553
+ return {
3554
+ status: 409,
3555
+ headers: response.headers,
3556
+ body: zProblemBody.parse(response.body),
3557
+ };
3558
+ case 500:
3559
+ return {
3560
+ status: 500,
3561
+ headers: response.headers,
3562
+ body: zProblemBody.parse(response.body),
3563
+ };
3564
+ case 503:
3565
+ return {
3566
+ status: 503,
3567
+ headers: response.headers,
3568
+ body: zProblemBody.parse(response.body),
3569
+ };
3570
+ default:
3571
+ return {
3572
+ status: "unexpected",
3573
+ status_code: response.status,
3574
+ headers: response.headers,
3575
+ body: response.body,
3576
+ };
3577
+ }
3578
+ },
3579
+ url: "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}/vercel/projects/{provider_target_id}/qualification",
3580
+ ...options,
3581
+ });
3582
+ /**
3583
+ * Lists inbound documents in the namespace carried by the authenticated Source credential.
3584
+ *
3585
+ * The Organization, Legal issuer, and Fiscal environment are all taken from the credential's
3586
+ * resolved row. A caller cannot widen the query by supplying another tenant or issuer in the
3587
+ * URL because this route has no such path parameters.
3588
+ */
3589
+ export const listSourceReceivedDocuments = (options) => options.client.get({
3590
+ response_decoder: (response) => {
3591
+ switch (response.status) {
3592
+ case 200:
3593
+ return {
3594
+ status: 200,
3595
+ headers: response.headers,
3596
+ body: zListSourceReceivedDocumentsResponse.parse(response.body),
3597
+ };
3598
+ case 400:
3599
+ return {
3600
+ status: 400,
3601
+ headers: response.headers,
3602
+ body: zProblemBody.parse(response.body),
3603
+ };
3604
+ case 401:
3605
+ return {
3606
+ status: 401,
3607
+ headers: response.headers,
3608
+ body: zProblemBody.parse(response.body),
3609
+ };
3610
+ case 403:
3611
+ return {
3612
+ status: 403,
3613
+ headers: response.headers,
3614
+ body: zProblemBody.parse(response.body),
3615
+ };
3616
+ case 500:
3617
+ return {
3618
+ status: 500,
3619
+ headers: response.headers,
3620
+ body: zProblemBody.parse(response.body),
3621
+ };
3622
+ default:
3623
+ return {
3624
+ status: "unexpected",
3625
+ status_code: response.status,
3626
+ headers: response.headers,
3627
+ body: response.body,
3628
+ };
3629
+ }
3630
+ },
3631
+ url: "/v1/received-documents",
3632
+ ...options,
3633
+ });
3634
+ export const getSourceReceivedDocument = (options) => options.client.get({
3635
+ response_decoder: (response) => {
3636
+ switch (response.status) {
3637
+ case 200:
3638
+ return {
3639
+ status: 200,
3640
+ headers: response.headers,
3641
+ body: zGetSourceReceivedDocumentResponse.parse(response.body),
3642
+ };
3643
+ case 401:
3644
+ return {
3645
+ status: 401,
3646
+ headers: response.headers,
3647
+ body: zProblemBody.parse(response.body),
3648
+ };
3649
+ case 404:
3650
+ return {
3651
+ status: 404,
3652
+ headers: response.headers,
3653
+ body: zProblemBody.parse(response.body),
3654
+ };
3655
+ case 500:
3656
+ return {
3657
+ status: 500,
3658
+ headers: response.headers,
3659
+ body: zProblemBody.parse(response.body),
3660
+ };
3661
+ default:
3662
+ return {
3663
+ status: "unexpected",
3664
+ status_code: response.status,
3665
+ headers: response.headers,
3666
+ body: response.body,
3667
+ };
3668
+ }
3669
+ },
3670
+ url: "/v1/received-documents/{fiscal_reception_id}",
3671
+ ...options,
3672
+ });
3673
+ export const respondToReceivedDocument = (options) => options.client.post({
3674
+ response_decoder: (response) => {
3675
+ switch (response.status) {
3676
+ case 200:
3677
+ return {
3678
+ status: 200,
3679
+ headers: response.headers,
3680
+ body: zRespondToReceivedDocumentResponse.parse(response.body),
3681
+ };
3682
+ case 400:
3683
+ return {
3684
+ status: 400,
3685
+ headers: response.headers,
3686
+ body: zProblemBody.parse(response.body),
3687
+ };
3688
+ case 401:
3689
+ return {
3690
+ status: 401,
3691
+ headers: response.headers,
3692
+ body: zProblemBody.parse(response.body),
3693
+ };
3694
+ case 404:
3695
+ return {
3696
+ status: 404,
3697
+ headers: response.headers,
3698
+ body: zProblemBody.parse(response.body),
3699
+ };
3700
+ case 409:
3701
+ return {
3702
+ status: 409,
3703
+ headers: response.headers,
3704
+ body: zProblemBody.parse(response.body),
3705
+ };
3706
+ case 413:
3707
+ return {
3708
+ status: 413,
3709
+ headers: response.headers,
3710
+ body: zProblemBody.parse(response.body),
3711
+ };
3712
+ case 415:
3713
+ return {
3714
+ status: 415,
3715
+ headers: response.headers,
3716
+ body: zProblemBody.parse(response.body),
3717
+ };
3718
+ case 500:
3719
+ return {
3720
+ status: 500,
3721
+ headers: response.headers,
3722
+ body: zProblemBody.parse(response.body),
3723
+ };
3724
+ default:
3725
+ return {
3726
+ status: "unexpected",
3727
+ status_code: response.status,
3728
+ headers: response.headers,
3729
+ body: response.body,
3730
+ };
3731
+ }
3732
+ },
3733
+ url: "/v1/received-documents/{fiscal_reception_id}/commercial-response",
3734
+ ...options,
3735
+ headers: {
3736
+ "Content-Type": "application/json",
3737
+ ...options.headers,
3738
+ },
3739
+ });
3740
+ export const downloadSourceReceivedDocumentSignedXml = (options) => options.client.get({
3741
+ response_decoder: (response) => {
3742
+ switch (response.status) {
3743
+ case 200:
3744
+ return { status: 200, headers: response.headers, body: response.body };
3745
+ case 401:
3746
+ return {
3747
+ status: 401,
3748
+ headers: response.headers,
3749
+ body: zProblemBody.parse(response.body),
3750
+ };
3751
+ case 404:
3752
+ return {
3753
+ status: 404,
3754
+ headers: response.headers,
3755
+ body: zProblemBody.parse(response.body),
3756
+ };
3757
+ case 422:
3758
+ return {
3759
+ status: 422,
3760
+ headers: response.headers,
3761
+ body: zProblemBody.parse(response.body),
3762
+ };
3763
+ case 500:
3764
+ return {
3765
+ status: 500,
3766
+ headers: response.headers,
3767
+ body: zProblemBody.parse(response.body),
3768
+ };
3769
+ case 503:
3770
+ return {
3771
+ status: 503,
3772
+ headers: response.headers,
3773
+ body: zProblemBody.parse(response.body),
3774
+ };
3775
+ default:
3776
+ return {
3777
+ status: "unexpected",
3778
+ status_code: response.status,
3779
+ headers: response.headers,
3780
+ body: response.body,
3781
+ };
3782
+ }
3783
+ },
3784
+ url: "/v1/received-documents/{fiscal_reception_id}/signed-document",
3785
+ ...options,
3786
+ });
3787
+ export const completeSourceConnectionActivationVerification = (options) => options.client.post({
3788
+ response_decoder: (response) => {
3789
+ switch (response.status) {
3790
+ case 204:
3791
+ return {
3792
+ status: 204,
3793
+ headers: response.headers,
3794
+ body: zCompleteSourceConnectionActivationVerificationResponse.parse(response.body),
3795
+ };
3796
+ case 400:
3797
+ return {
3798
+ status: 400,
3799
+ headers: response.headers,
3800
+ body: zProblemBody.parse(response.body),
3801
+ };
3802
+ case 401:
3803
+ return {
3804
+ status: 401,
3805
+ headers: response.headers,
3806
+ body: zProblemBody.parse(response.body),
3807
+ };
3808
+ case 409:
3809
+ return {
3810
+ status: 409,
3811
+ headers: response.headers,
3812
+ body: zProblemBody.parse(response.body),
3813
+ };
3814
+ case 413:
3815
+ return {
3816
+ status: 413,
3817
+ headers: response.headers,
3818
+ body: zProblemBody.parse(response.body),
3819
+ };
3820
+ case 415:
3821
+ return {
3822
+ status: 415,
3823
+ headers: response.headers,
3824
+ body: zProblemBody.parse(response.body),
3825
+ };
3826
+ case 500:
3827
+ return {
3828
+ status: 500,
3829
+ headers: response.headers,
3830
+ body: zProblemBody.parse(response.body),
3831
+ };
3832
+ case 503:
3833
+ return {
3834
+ status: 503,
3835
+ headers: response.headers,
3836
+ body: zProblemBody.parse(response.body),
3837
+ };
3838
+ default:
3839
+ return {
3840
+ status: "unexpected",
3841
+ status_code: response.status,
3842
+ headers: response.headers,
3843
+ body: response.body,
3844
+ };
3845
+ }
3846
+ },
3847
+ url: "/v1/source-connections/{source_connection_id}/activation-verifications",
3848
+ ...options,
3849
+ headers: {
3850
+ "Content-Type": "application/json",
3851
+ ...options.headers,
3852
+ },
3853
+ });
3854
+ export const confirmDirectConnection = (options) => options.client.post({
3855
+ response_decoder: (response) => {
3856
+ switch (response.status) {
3857
+ case 200:
3858
+ return {
3859
+ status: 200,
3860
+ headers: response.headers,
3861
+ body: zConfirmDirectConnectionResponse.parse(response.body),
3862
+ };
3863
+ case 401:
3864
+ return {
3865
+ status: 401,
3866
+ headers: response.headers,
3867
+ body: zProblemBody.parse(response.body),
3868
+ };
3869
+ case 404:
3870
+ return {
3871
+ status: 404,
3872
+ headers: response.headers,
3873
+ body: zProblemBody.parse(response.body),
3874
+ };
3875
+ case 500:
3876
+ return {
3877
+ status: 500,
3878
+ headers: response.headers,
3879
+ body: zProblemBody.parse(response.body),
3880
+ };
3881
+ default:
3882
+ return {
3883
+ status: "unexpected",
3884
+ status_code: response.status,
3885
+ headers: response.headers,
3886
+ body: response.body,
3887
+ };
3888
+ }
3889
+ },
3890
+ url: "/v1/source-connections/{source_connection_id}/confirm",
3891
+ ...options,
3892
+ });
3893
+ export const completeVercelSourceProviderInstallation = (options) => options.client.post({
3894
+ response_decoder: (response) => {
3895
+ switch (response.status) {
3896
+ case 200:
3897
+ return {
3898
+ status: 200,
3899
+ headers: response.headers,
3900
+ body: zCompleteVercelSourceProviderInstallationResponse.parse(response.body),
3901
+ };
3902
+ case 400:
3903
+ return {
3904
+ status: 400,
3905
+ headers: response.headers,
3906
+ body: zProblemBody.parse(response.body),
3907
+ };
3908
+ case 401:
3909
+ return {
3910
+ status: 401,
3911
+ headers: response.headers,
3912
+ body: zProblemBody.parse(response.body),
3913
+ };
3914
+ case 403:
3915
+ return {
3916
+ status: 403,
3917
+ headers: response.headers,
3918
+ body: zProblemBody.parse(response.body),
3919
+ };
3920
+ case 409:
3921
+ return {
3922
+ status: 409,
3923
+ headers: response.headers,
3924
+ body: zProblemBody.parse(response.body),
3925
+ };
3926
+ case 410:
3927
+ return {
3928
+ status: 410,
3929
+ headers: response.headers,
3930
+ body: zProblemBody.parse(response.body),
3931
+ };
3932
+ case 413:
3933
+ return {
3934
+ status: 413,
3935
+ headers: response.headers,
3936
+ body: zProblemBody.parse(response.body),
3937
+ };
3938
+ case 415:
3939
+ return {
3940
+ status: 415,
3941
+ headers: response.headers,
3942
+ body: zProblemBody.parse(response.body),
3943
+ };
3944
+ case 500:
3945
+ return {
3946
+ status: 500,
3947
+ headers: response.headers,
3948
+ body: zProblemBody.parse(response.body),
3949
+ };
3950
+ case 503:
3951
+ return {
3952
+ status: 503,
3953
+ headers: response.headers,
3954
+ body: zProblemBody.parse(response.body),
3955
+ };
3956
+ default:
3957
+ return {
3958
+ status: "unexpected",
3959
+ status_code: response.status,
3960
+ headers: response.headers,
3961
+ body: response.body,
3962
+ };
3963
+ }
3964
+ },
3965
+ url: "/v1/source-provider-authorizations/vercel/installation-completions",
3966
+ ...options,
3967
+ headers: {
3968
+ "Content-Type": "application/json",
3969
+ ...options.headers,
3970
+ },
3971
+ });
3972
+ export const registerUserAccount = (options) => options.client.post({
3973
+ response_decoder: (response) => {
3974
+ switch (response.status) {
3975
+ case 201:
3976
+ return {
3977
+ status: 201,
3978
+ headers: response.headers,
3979
+ body: zRegisterUserAccountResponse.parse(response.body),
3980
+ };
3981
+ case 400:
3982
+ return {
3983
+ status: 400,
3984
+ headers: response.headers,
3985
+ body: zProblemBody.parse(response.body),
3986
+ };
3987
+ case 409:
3988
+ return {
3989
+ status: 409,
3990
+ headers: response.headers,
3991
+ body: zProblemBody.parse(response.body),
3992
+ };
3993
+ case 413:
3994
+ return {
3995
+ status: 413,
3996
+ headers: response.headers,
3997
+ body: zProblemBody.parse(response.body),
3998
+ };
3999
+ case 415:
4000
+ return {
4001
+ status: 415,
4002
+ headers: response.headers,
4003
+ body: zProblemBody.parse(response.body),
4004
+ };
4005
+ case 500:
4006
+ return {
4007
+ status: 500,
4008
+ headers: response.headers,
4009
+ body: zProblemBody.parse(response.body),
4010
+ };
4011
+ default:
4012
+ return {
4013
+ status: "unexpected",
4014
+ status_code: response.status,
4015
+ headers: response.headers,
4016
+ body: response.body,
4017
+ };
4018
+ }
4019
+ },
4020
+ url: "/v1/user-accounts",
4021
+ ...options,
4022
+ headers: {
4023
+ "Content-Type": "application/json",
4024
+ ...options.headers,
4025
+ },
4026
+ });
4027
+ export const readCurrentUserAccount = (options) => options.client.get({
4028
+ response_decoder: (response) => {
4029
+ switch (response.status) {
4030
+ case 200:
4031
+ return {
4032
+ status: 200,
4033
+ headers: response.headers,
4034
+ body: zReadCurrentUserAccountResponse.parse(response.body),
4035
+ };
4036
+ case 401:
4037
+ return {
4038
+ status: 401,
4039
+ headers: response.headers,
4040
+ body: zProblemBody.parse(response.body),
4041
+ };
4042
+ case 500:
4043
+ return {
4044
+ status: 500,
4045
+ headers: response.headers,
4046
+ body: zProblemBody.parse(response.body),
4047
+ };
4048
+ default:
4049
+ return {
4050
+ status: "unexpected",
4051
+ status_code: response.status,
4052
+ headers: response.headers,
4053
+ body: response.body,
4054
+ };
4055
+ }
4056
+ },
4057
+ url: "/v1/user-accounts/current",
4058
+ ...options,
4059
+ });
4060
+ export const registerWebhookEndpoint = (options) => options.client.post({
4061
+ response_decoder: (response) => {
4062
+ switch (response.status) {
4063
+ case 200:
4064
+ return {
4065
+ status: 200,
4066
+ headers: response.headers,
4067
+ body: zRegisterWebhookEndpointResponse.parse(response.body),
4068
+ };
4069
+ case 201:
4070
+ return {
4071
+ status: 201,
4072
+ headers: response.headers,
4073
+ body: zRegisterWebhookEndpointResponse.parse(response.body),
4074
+ };
4075
+ case 400:
4076
+ return {
4077
+ status: 400,
4078
+ headers: response.headers,
4079
+ body: zProblemBody.parse(response.body),
4080
+ };
4081
+ case 401:
4082
+ return {
4083
+ status: 401,
4084
+ headers: response.headers,
4085
+ body: zProblemBody.parse(response.body),
4086
+ };
4087
+ case 403:
4088
+ return {
4089
+ status: 403,
4090
+ headers: response.headers,
4091
+ body: zProblemBody.parse(response.body),
4092
+ };
4093
+ case 409:
4094
+ return {
4095
+ status: 409,
4096
+ headers: response.headers,
4097
+ body: zProblemBody.parse(response.body),
4098
+ };
4099
+ case 413:
4100
+ return {
4101
+ status: 413,
4102
+ headers: response.headers,
4103
+ body: zProblemBody.parse(response.body),
4104
+ };
4105
+ case 415:
4106
+ return {
4107
+ status: 415,
4108
+ headers: response.headers,
4109
+ body: zProblemBody.parse(response.body),
4110
+ };
4111
+ case 500:
4112
+ return {
4113
+ status: 500,
4114
+ headers: response.headers,
4115
+ body: zProblemBody.parse(response.body),
4116
+ };
4117
+ default:
4118
+ return {
4119
+ status: "unexpected",
4120
+ status_code: response.status,
4121
+ headers: response.headers,
4122
+ body: response.body,
4123
+ };
4124
+ }
4125
+ },
4126
+ url: "/v1/webhook-endpoints",
4127
+ ...options,
4128
+ headers: {
4129
+ "Content-Type": "application/json",
4130
+ ...options.headers,
4131
+ },
4132
+ });
4133
+ export const listWebhookDeliveries = (options) => options.client.get({
4134
+ response_decoder: (response) => {
4135
+ switch (response.status) {
4136
+ case 200:
4137
+ return {
4138
+ status: 200,
4139
+ headers: response.headers,
4140
+ body: zListWebhookDeliveriesResponse.parse(response.body),
4141
+ };
4142
+ case 400:
4143
+ return {
4144
+ status: 400,
4145
+ headers: response.headers,
4146
+ body: zProblemBody.parse(response.body),
4147
+ };
4148
+ case 401:
4149
+ return {
4150
+ status: 401,
4151
+ headers: response.headers,
4152
+ body: zProblemBody.parse(response.body),
4153
+ };
4154
+ case 403:
4155
+ return {
4156
+ status: 403,
4157
+ headers: response.headers,
4158
+ body: zProblemBody.parse(response.body),
4159
+ };
4160
+ case 404:
4161
+ return {
4162
+ status: 404,
4163
+ headers: response.headers,
4164
+ body: zProblemBody.parse(response.body),
4165
+ };
4166
+ case 500:
4167
+ return {
4168
+ status: 500,
4169
+ headers: response.headers,
4170
+ body: zProblemBody.parse(response.body),
4171
+ };
4172
+ default:
4173
+ return {
4174
+ status: "unexpected",
4175
+ status_code: response.status,
4176
+ headers: response.headers,
4177
+ body: response.body,
4178
+ };
4179
+ }
4180
+ },
4181
+ url: "/v1/webhook-endpoints/{webhook_endpoint_id}/deliveries",
4182
+ ...options,
4183
+ });
4184
+ export const replayWebhookEvents = (options) => options.client.post({
4185
+ response_decoder: (response) => {
4186
+ switch (response.status) {
4187
+ case 200:
4188
+ return {
4189
+ status: 200,
4190
+ headers: response.headers,
4191
+ body: zReplayWebhookEventsResponse.parse(response.body),
4192
+ };
4193
+ case 201:
4194
+ return {
4195
+ status: 201,
4196
+ headers: response.headers,
4197
+ body: zReplayWebhookEventsResponse.parse(response.body),
4198
+ };
4199
+ case 400:
4200
+ return {
4201
+ status: 400,
4202
+ headers: response.headers,
4203
+ body: zProblemBody.parse(response.body),
4204
+ };
4205
+ case 401:
4206
+ return {
4207
+ status: 401,
4208
+ headers: response.headers,
4209
+ body: zProblemBody.parse(response.body),
4210
+ };
4211
+ case 403:
4212
+ return {
4213
+ status: 403,
4214
+ headers: response.headers,
4215
+ body: zProblemBody.parse(response.body),
4216
+ };
4217
+ case 404:
4218
+ return {
4219
+ status: 404,
4220
+ headers: response.headers,
4221
+ body: zProblemBody.parse(response.body),
4222
+ };
4223
+ case 409:
4224
+ return {
4225
+ status: 409,
4226
+ headers: response.headers,
4227
+ body: zProblemBody.parse(response.body),
4228
+ };
4229
+ case 413:
4230
+ return {
4231
+ status: 413,
4232
+ headers: response.headers,
4233
+ body: zProblemBody.parse(response.body),
4234
+ };
4235
+ case 415:
4236
+ return {
4237
+ status: 415,
4238
+ headers: response.headers,
4239
+ body: zProblemBody.parse(response.body),
4240
+ };
4241
+ case 500:
4242
+ return {
4243
+ status: 500,
4244
+ headers: response.headers,
4245
+ body: zProblemBody.parse(response.body),
4246
+ };
4247
+ default:
4248
+ return {
4249
+ status: "unexpected",
4250
+ status_code: response.status,
4251
+ headers: response.headers,
4252
+ body: response.body,
4253
+ };
4254
+ }
4255
+ },
4256
+ url: "/v1/webhook-endpoints/{webhook_endpoint_id}/replays",
4257
+ ...options,
4258
+ headers: {
4259
+ "Content-Type": "application/json",
4260
+ ...options.headers,
4261
+ },
4262
+ });
4263
+ export const openWorkspaceSession = (options) => options.client.post({
4264
+ response_decoder: (response) => {
4265
+ switch (response.status) {
4266
+ case 200:
4267
+ return {
4268
+ status: 200,
4269
+ headers: response.headers,
4270
+ body: zOpenWorkspaceSessionResponse.parse(response.body),
4271
+ };
4272
+ case 400:
4273
+ return {
4274
+ status: 400,
4275
+ headers: response.headers,
4276
+ body: zProblemBody.parse(response.body),
4277
+ };
4278
+ case 401:
4279
+ return {
4280
+ status: 401,
4281
+ headers: response.headers,
4282
+ body: zProblemBody.parse(response.body),
4283
+ };
4284
+ case 413:
4285
+ return {
4286
+ status: 413,
4287
+ headers: response.headers,
4288
+ body: zProblemBody.parse(response.body),
4289
+ };
4290
+ case 415:
4291
+ return {
4292
+ status: 415,
4293
+ headers: response.headers,
4294
+ body: zProblemBody.parse(response.body),
4295
+ };
4296
+ case 500:
4297
+ return {
4298
+ status: 500,
4299
+ headers: response.headers,
4300
+ body: zProblemBody.parse(response.body),
4301
+ };
4302
+ default:
4303
+ return {
4304
+ status: "unexpected",
4305
+ status_code: response.status,
4306
+ headers: response.headers,
4307
+ body: response.body,
4308
+ };
4309
+ }
4310
+ },
4311
+ url: "/v1/workspace-sessions",
4312
+ ...options,
4313
+ headers: {
4314
+ "Content-Type": "application/json",
4315
+ ...options.headers,
4316
+ },
4317
+ });
4318
+ export const closeWorkspaceSession = (options) => options.client.delete({
4319
+ response_decoder: (response) => {
4320
+ switch (response.status) {
4321
+ case 204:
4322
+ return {
4323
+ status: 204,
4324
+ headers: response.headers,
4325
+ body: zCloseWorkspaceSessionResponse.parse(response.body),
4326
+ };
4327
+ case 401:
4328
+ return {
4329
+ status: 401,
4330
+ headers: response.headers,
4331
+ body: zProblemBody.parse(response.body),
4332
+ };
4333
+ case 500:
4334
+ return {
4335
+ status: 500,
4336
+ headers: response.headers,
4337
+ body: zProblemBody.parse(response.body),
4338
+ };
4339
+ default:
4340
+ return {
4341
+ status: "unexpected",
4342
+ status_code: response.status,
4343
+ headers: response.headers,
4344
+ body: response.body,
4345
+ };
4346
+ }
4347
+ },
4348
+ url: "/v1/workspace-sessions/current",
4349
+ ...options,
4350
+ });
4351
+ export const healthLivePathTemplate = "/health/live";
4352
+ export const healthReadyPathTemplate = "/health/ready";
4353
+ export const createHostedTenantPathTemplate = "/hosted/tenants";
4354
+ export const releaseHostedTenantPathTemplate = "/hosted/tenants/releases";
4355
+ export const createHostedTenantWebhookSecretRotationPathTemplate = "/hosted/tenants/{source_connection_id}/webhook-secret-rotations";
4356
+ export const readCertificateCustodyReadinessPathTemplate = "/v1/certificate-custody/readiness";
4357
+ export const createDirectConnectionRequestPathTemplate = "/v1/direct-connection-requests";
4358
+ export const cancelDirectConnectionRequestPathTemplate = "/v1/direct-connection-requests/{request_id}/cancel";
4359
+ export const pollDirectConnectionRequestPathTemplate = "/v1/direct-connection-requests/{request_id}/poll";
4360
+ export const readElectronicFiscalDocumentEligibilityPathTemplate = "/v1/electronic-fiscal-document-eligibility";
4361
+ export const createFiscalDeliveryPathTemplate = "/v1/fiscal-deliveries";
4362
+ export const retrieveFiscalDeliveryPrintedRepresentationPathTemplate = "/v1/fiscal-deliveries/access/{token}/printed-representation";
4363
+ export const retrieveFiscalDeliveryPathTemplate = "/v1/fiscal-deliveries/{fiscal_delivery_id}";
4364
+ export const readFiscalNumberAuthorizationReadinessPathTemplate = "/v1/fiscal-number-authorizations/readiness";
4365
+ export const listFiscalOperationsPathTemplate = "/v1/fiscal-operations";
4366
+ export const createFiscalOperationPathTemplate = "/v1/fiscal-operations";
4367
+ export const findFiscalOperationBySourcePathTemplate = "/v1/fiscal-operations/by-source/{source_id}/versions/{source_version}";
4368
+ export const findFiscalOperationPathTemplate = "/v1/fiscal-operations/{operation_id}";
4369
+ export const findFiscalArtifactPathTemplate = "/v1/fiscal-operations/{operation_id}/artifacts/{artifact_kind}";
4370
+ export const shareFiscalReceiptPathTemplate = "/v1/fiscal-operations/{operation_id}/receipt-access";
4371
+ export const readFiscalOperationTimingPathTemplate = "/v1/fiscal-operations/{operation_id}/timing";
4372
+ export const retrieveFiscalReceiptPathTemplate = "/v1/fiscal-receipts/{receipt_id}";
4373
+ export const retrieveFiscalReceiptPrintedRepresentationPathTemplate = "/v1/fiscal-receipts/{receipt_id}/printed-representation";
4374
+ export const importHostedCertificateCustodyPathTemplate = "/v1/hosted/certificate-custody/import";
4375
+ export const issueHostedSandboxSourceCredentialPathTemplate = "/v1/hosted/source-connections/sandbox-credentials";
4376
+ export const acceptInvitationPathTemplate = "/v1/invitations/accept";
4377
+ export const readOpenApiDocumentPathTemplate = "/v1/openapi.json";
4378
+ export const createOrganizationPathTemplate = "/v1/organizations";
4379
+ export const readAuditEventsPathTemplate = "/v1/organizations/{organization_id}/audit-events";
4380
+ export const listCertificateCustodyBindingsPathTemplate = "/v1/organizations/{organization_id}/certificate-custody/bindings";
4381
+ export const createCertificateCustodyBindingPathTemplate = "/v1/organizations/{organization_id}/certificate-custody/bindings";
4382
+ export const readCertificateCustodyBindingPathTemplate = "/v1/organizations/{organization_id}/certificate-custody/bindings/{certificate_custody_binding_id}";
4383
+ export const revokeCertificateCustodyCertificateVersionPathTemplate = "/v1/organizations/{organization_id}/certificate-custody/bindings/{certificate_custody_binding_id}/revocations";
4384
+ export const previewDirectConnectionRequestPathTemplate = "/v1/organizations/{organization_id}/direct-connection-requests/{user_code}";
4385
+ export const approveDirectConnectionRequestPathTemplate = "/v1/organizations/{organization_id}/direct-connection-requests/{user_code}/approval";
4386
+ export const inspectFiscalNumberAuthorizationHistoryPathTemplate = "/v1/organizations/{organization_id}/fiscal-number-authorizations";
4387
+ export const registerFiscalNumberAuthorizationPathTemplate = "/v1/organizations/{organization_id}/fiscal-number-authorizations";
4388
+ export const listOrganizationFiscalOperationsPathTemplate = "/v1/organizations/{organization_id}/fiscal-operations";
4389
+ export const readOrganizationFiscalOperationPathTemplate = "/v1/organizations/{organization_id}/fiscal-operations/{fiscal_operation_id}";
4390
+ export const retrieveWorkspaceFiscalArtifactPathTemplate = "/v1/organizations/{organization_id}/fiscal-operations/{fiscal_operation_id}/artifacts/{artifact_kind}";
4391
+ export const authorizeAuthorityRejectedReplacementPathTemplate = "/v1/organizations/{organization_id}/fiscal-operations/{fiscal_operation_id}/replacement-authorization";
4392
+ export const listInvitationsPathTemplate = "/v1/organizations/{organization_id}/invitations";
4393
+ export const inviteMemberPathTemplate = "/v1/organizations/{organization_id}/invitations";
4394
+ export const listLegalIssuersPathTemplate = "/v1/organizations/{organization_id}/legal-issuers";
4395
+ export const registerLegalIssuerPathTemplate = "/v1/organizations/{organization_id}/legal-issuers";
4396
+ export const completeLegalIssuerProfilePathTemplate = "/v1/organizations/{organization_id}/legal-issuers/{legal_issuer_id}";
4397
+ export const readOnboardingReadinessPathTemplate = "/v1/organizations/{organization_id}/onboarding";
4398
+ export const readOnboardingLegalIssuerIdentityPathTemplate = "/v1/organizations/{organization_id}/onboarding/legal-issuer-identity";
4399
+ export const updateOnboardingLegalIssuerIdentityPathTemplate = "/v1/organizations/{organization_id}/onboarding/legal-issuer-identity";
4400
+ export const readOnboardingServiceScopePathTemplate = "/v1/organizations/{organization_id}/onboarding/service-scope";
4401
+ export const updateOnboardingServiceScopePathTemplate = "/v1/organizations/{organization_id}/onboarding/service-scope";
4402
+ export const listReceivedDocumentsPathTemplate = "/v1/organizations/{organization_id}/received-documents";
4403
+ export const readReceivedDocumentPathTemplate = "/v1/organizations/{organization_id}/received-documents/{fiscal_reception_id}";
4404
+ export const recordCommercialResponsePathTemplate = "/v1/organizations/{organization_id}/received-documents/{fiscal_reception_id}/commercial-response";
4405
+ export const declareReceptionMountPathTemplate = "/v1/organizations/{organization_id}/reception-mounts";
4406
+ export const listSourceConnectionsPathTemplate = "/v1/organizations/{organization_id}/source-connections";
4407
+ export const createSourceConnectionPathTemplate = "/v1/organizations/{organization_id}/source-connections";
4408
+ export const readSourceConnectionPathTemplate = "/v1/organizations/{organization_id}/source-connections/{source_connection_id}";
4409
+ export const recoverSourceConnectionActivationPathTemplate = "/v1/organizations/{organization_id}/source-connections/{source_connection_id}/activation-recovery";
4410
+ export const listSourceProviderAuthorizationsPathTemplate = "/v1/organizations/{organization_id}/source-provider-authorizations";
4411
+ export const beginVercelSourceProviderInstallationPathTemplate = "/v1/organizations/{organization_id}/source-provider-authorizations/vercel/installation-requests";
4412
+ export const readSourceProviderAuthorizationPathTemplate = "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}";
4413
+ export const listAuthorizedVercelProjectsPathTemplate = "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}/vercel/projects";
4414
+ export const readAuthorizedVercelProjectQualificationPathTemplate = "/v1/organizations/{organization_id}/source-provider-authorizations/{source_provider_authorization_id}/vercel/projects/{provider_target_id}/qualification";
4415
+ export const listSourceReceivedDocumentsPathTemplate = "/v1/received-documents";
4416
+ export const getSourceReceivedDocumentPathTemplate = "/v1/received-documents/{fiscal_reception_id}";
4417
+ export const respondToReceivedDocumentPathTemplate = "/v1/received-documents/{fiscal_reception_id}/commercial-response";
4418
+ export const downloadSourceReceivedDocumentSignedXmlPathTemplate = "/v1/received-documents/{fiscal_reception_id}/signed-document";
4419
+ export const completeSourceConnectionActivationVerificationPathTemplate = "/v1/source-connections/{source_connection_id}/activation-verifications";
4420
+ export const confirmDirectConnectionPathTemplate = "/v1/source-connections/{source_connection_id}/confirm";
4421
+ export const completeVercelSourceProviderInstallationPathTemplate = "/v1/source-provider-authorizations/vercel/installation-completions";
4422
+ export const registerUserAccountPathTemplate = "/v1/user-accounts";
4423
+ export const readCurrentUserAccountPathTemplate = "/v1/user-accounts/current";
4424
+ export const registerWebhookEndpointPathTemplate = "/v1/webhook-endpoints";
4425
+ export const listWebhookDeliveriesPathTemplate = "/v1/webhook-endpoints/{webhook_endpoint_id}/deliveries";
4426
+ export const replayWebhookEventsPathTemplate = "/v1/webhook-endpoints/{webhook_endpoint_id}/replays";
4427
+ export const openWorkspaceSessionPathTemplate = "/v1/workspace-sessions";
4428
+ export const closeWorkspaceSessionPathTemplate = "/v1/workspace-sessions/current";
4429
+ export const findFiscalArtifactResponseHeaders = {
4430
+ artifactCreatedAt: {
4431
+ name: "timbro-artifact-created-at",
4432
+ },
4433
+ artifactId: {
4434
+ name: "timbro-artifact-id",
4435
+ },
4436
+ artifactSha256: {
4437
+ name: "timbro-artifact-sha256",
4438
+ pattern: "^[0-9a-f]{64}$",
4439
+ },
4440
+ certificateSha256: {
4441
+ name: "timbro-certificate-sha256",
4442
+ pattern: "^[0-9a-f]{64}$",
4443
+ },
4444
+ fiscalDocumentType: {
4445
+ name: "timbro-fiscal-document-type",
4446
+ },
4447
+ fiscalNumber: {
4448
+ name: "timbro-fiscal-number",
4449
+ pattern: "^E(31|32|33|34|41|43|44|45|46|47)[0-9]{10}$",
4450
+ },
4451
+ fiscalOperationId: {
4452
+ name: "timbro-fiscal-operation-id",
4453
+ },
4454
+ pageCount: {
4455
+ name: "timbro-page-count",
4456
+ },
4457
+ paginationPlanSha256: {
4458
+ name: "timbro-pagination-plan-sha256",
4459
+ pattern: "^[0-9a-f]{64}$",
4460
+ },
4461
+ pdfSha256: {
4462
+ name: "timbro-pdf-sha256",
4463
+ pattern: "^[0-9a-f]{64}$",
4464
+ },
4465
+ printedRepresentationProfile: {
4466
+ name: "timbro-printed-representation-profile",
4467
+ },
4468
+ printedRepresentationProfileVersion: {
4469
+ name: "timbro-printed-representation-profile-version",
4470
+ },
4471
+ rendererIdentity: {
4472
+ name: "timbro-renderer-identity",
4473
+ pattern: "^\\S(?:.*\\S)?$",
4474
+ minLength: 1,
4475
+ maxLength: 200,
4476
+ },
4477
+ securityCode: {
4478
+ name: "timbro-security-code",
4479
+ minLength: 6,
4480
+ maxLength: 6,
4481
+ },
4482
+ signedSourceSha256: {
4483
+ name: "timbro-signed-source-sha256",
4484
+ pattern: "^[0-9a-f]{64}$",
4485
+ },
4486
+ };