@timbro/invoices 0.8.2 → 0.9.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +95 -258
  2. package/dist/admin.d.ts +44 -0
  3. package/dist/admin.d.ts.map +1 -0
  4. package/dist/admin.js +16 -0
  5. package/dist/certificate-custody-import.d.ts +4 -2
  6. package/dist/certificate-custody-import.d.ts.map +1 -1
  7. package/dist/certificate-custody-import.js +1 -1
  8. package/dist/collection.d.ts +1 -1
  9. package/dist/collection.js +4 -4
  10. package/dist/fiscal-engine-runtime.manifest.json +16 -16
  11. package/dist/fiscal-engine-runtime.provenance.json +17 -17
  12. package/dist/generated/hosted/index.d.ts +4 -0
  13. package/dist/generated/hosted/index.d.ts.map +1 -0
  14. package/dist/generated/hosted/index.js +3 -0
  15. package/dist/generated/hosted/sdk.gen.d.ts +106 -0
  16. package/dist/generated/hosted/sdk.gen.d.ts.map +1 -0
  17. package/dist/generated/hosted/sdk.gen.js +1049 -0
  18. package/dist/generated/hosted/types.gen.d.ts +2425 -0
  19. package/dist/generated/hosted/types.gen.d.ts.map +1 -0
  20. package/dist/generated/hosted/types.gen.js +2 -0
  21. package/dist/generated/hosted/zod.gen.d.ts +1772 -0
  22. package/dist/generated/hosted/zod.gen.d.ts.map +1 -0
  23. package/dist/generated/hosted/zod.gen.js +2269 -0
  24. package/dist/generated/index.d.ts +3 -3
  25. package/dist/generated/index.d.ts.map +1 -1
  26. package/dist/generated/index.js +2 -2
  27. package/dist/generated/invoice-api-contract.d.ts +6348 -0
  28. package/dist/generated/invoice-api-contract.d.ts.map +1 -0
  29. package/dist/generated/invoice-api-contract.js +11004 -0
  30. package/dist/generated/problem-catalog.d.ts.map +1 -1
  31. package/dist/generated/problem-catalog.js +9 -3
  32. package/dist/generated/sdk.gen.d.ts +70 -38
  33. package/dist/generated/sdk.gen.d.ts.map +1 -1
  34. package/dist/generated/sdk.gen.js +1261 -251
  35. package/dist/generated/types.gen.d.ts +4349 -2686
  36. package/dist/generated/types.gen.d.ts.map +1 -1
  37. package/dist/generated/zod.gen.d.ts +53878 -22744
  38. package/dist/generated/zod.gen.d.ts.map +1 -1
  39. package/dist/generated/zod.gen.js +5733 -665
  40. package/dist/generated-operation-client.d.ts +1 -0
  41. package/dist/generated-operation-client.d.ts.map +1 -1
  42. package/dist/generated-operation-client.js +3 -2
  43. package/dist/generated-problem.d.ts +1 -1
  44. package/dist/generated-problem.d.ts.map +1 -1
  45. package/dist/generated-problem.js +4 -4
  46. package/dist/index.d.ts +8 -37
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +2 -12
  49. package/dist/{fiscal-error.d.ts → invoice-error.d.ts} +10 -9
  50. package/dist/invoice-error.d.ts.map +1 -0
  51. package/dist/{fiscal-error.js → invoice-error.js} +7 -4
  52. package/dist/invoice-hosted-controls.d.ts +62 -0
  53. package/dist/invoice-hosted-controls.d.ts.map +1 -0
  54. package/dist/invoice-hosted-controls.js +188 -0
  55. package/dist/invoice-receipt.d.ts +10 -0
  56. package/dist/invoice-receipt.d.ts.map +1 -0
  57. package/dist/invoice-receipt.js +49 -0
  58. package/dist/invoice-replacement.d.ts +8 -0
  59. package/dist/invoice-replacement.d.ts.map +1 -0
  60. package/dist/invoice-replacement.js +18 -0
  61. package/dist/invoice.d.ts +94 -0
  62. package/dist/invoice.d.ts.map +1 -0
  63. package/dist/invoice.js +251 -0
  64. package/dist/printed-representation.d.ts +0 -1
  65. package/dist/printed-representation.d.ts.map +1 -1
  66. package/dist/printed-representation.js +3 -3
  67. package/dist/problem-contract.d.ts +17 -114
  68. package/dist/problem-contract.d.ts.map +1 -1
  69. package/dist/public-case.d.ts +1 -1
  70. package/dist/received-documents.d.ts +13 -12
  71. package/dist/received-documents.d.ts.map +1 -1
  72. package/dist/received-documents.js +26 -20
  73. package/dist/source-connection.d.ts +5 -5
  74. package/dist/source-connection.d.ts.map +1 -1
  75. package/dist/source-connection.js +8 -9
  76. package/dist/stamp-server-http-transport.js +6 -6
  77. package/dist/timbro-client.d.ts +5 -37
  78. package/dist/timbro-client.d.ts.map +1 -1
  79. package/dist/timbro-client.js +4 -20
  80. package/dist/timbro_fiscal_engine_bg.wasm +0 -0
  81. package/dist/transport-contract.d.ts +1 -1
  82. package/dist/transport-contract.d.ts.map +1 -1
  83. package/dist/webhook-delivery.js +1 -1
  84. package/dist/webhook-event.d.ts +124 -842
  85. package/dist/webhook-event.d.ts.map +1 -1
  86. package/dist/webhook-event.js +3 -1
  87. package/dist/webhook-registration.d.ts +1 -2
  88. package/dist/webhook-registration.d.ts.map +1 -1
  89. package/dist/webhook-registration.js +1 -2
  90. package/dist/webhook-replay.d.ts +1 -2
  91. package/dist/webhook-replay.d.ts.map +1 -1
  92. package/dist/webhook-replay.js +3 -4
  93. package/dist/workspace.d.ts.map +1 -1
  94. package/dist/workspace.js +2 -2
  95. package/package.json +26 -16
  96. package/dist/fiscal-delivery.d.ts +0 -12
  97. package/dist/fiscal-delivery.d.ts.map +0 -1
  98. package/dist/fiscal-delivery.js +0 -45
  99. package/dist/fiscal-error.d.ts.map +0 -1
  100. package/dist/fiscal-receipt.d.ts +0 -19
  101. package/dist/fiscal-receipt.d.ts.map +0 -1
  102. package/dist/fiscal-receipt.js +0 -66
@@ -1,202 +1,9 @@
1
1
  import { z } from "zod";
2
2
  export declare const webhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
3
+ apiVersion: z.ZodString;
3
4
  data: z.ZodObject<{
4
- fiscal_operation_id: z.ZodUUID;
5
- }, z.core.$strict>;
6
- environment: z.ZodEnum<{
7
- certification: "certification";
8
- production: "production";
9
- sandbox: "sandbox";
10
- }>;
11
- id: z.ZodUUID;
12
- object: z.ZodEnum<{
13
- event: "event";
14
- }>;
15
- occurred_at: z.ZodISODateTime;
16
- organization_id: z.ZodUUID;
17
- sequence: z.ZodString;
18
- type: z.ZodEnum<{
19
- "fiscal_document.artifacts_updated": "fiscal_document.artifacts_updated";
20
- }>;
21
- }, z.core.$strict>, z.ZodObject<{
22
- data: z.ZodObject<{
23
- fiscal_operation_id: z.ZodUUID;
24
- }, z.core.$strict>;
25
- environment: z.ZodEnum<{
26
- certification: "certification";
27
- production: "production";
28
- sandbox: "sandbox";
29
- }>;
30
- id: z.ZodUUID;
31
- object: z.ZodEnum<{
32
- event: "event";
33
- }>;
34
- occurred_at: z.ZodISODateTime;
35
- organization_id: z.ZodUUID;
36
- sequence: z.ZodString;
37
- type: z.ZodEnum<{
38
- "fiscal_document.ready": "fiscal_document.ready";
39
- }>;
40
- }, z.core.$strict>, z.ZodObject<{
41
- data: z.ZodObject<{
42
- fiscal_operation_id: z.ZodUUID;
43
- terminality: z.ZodEnum<{
44
- terminal: "terminal";
45
- }>;
46
- }, z.core.$strict>;
47
- environment: z.ZodEnum<{
48
- certification: "certification";
49
- production: "production";
50
- sandbox: "sandbox";
51
- }>;
52
- id: z.ZodUUID;
53
- object: z.ZodEnum<{
54
- event: "event";
55
- }>;
56
- occurred_at: z.ZodISODateTime;
57
- organization_id: z.ZodUUID;
58
- sequence: z.ZodString;
59
- type: z.ZodEnum<{
60
- "fiscal_operation.rejected": "fiscal_operation.rejected";
61
- }>;
62
- }, z.core.$strict>, z.ZodObject<{
63
- data: z.ZodObject<{
64
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
65
- document_type: z.ZodEnum<{
66
- 31: "31";
67
- }>;
68
- fiscal_number: z.ZodString;
69
- }, z.core.$strict>, z.ZodObject<{
70
- document_type: z.ZodEnum<{
71
- 32: "32";
72
- }>;
73
- fiscal_number: z.ZodString;
74
- }, z.core.$strict>, z.ZodObject<{
75
- document_type: z.ZodEnum<{
76
- 33: "33";
77
- }>;
78
- fiscal_number: z.ZodString;
79
- }, z.core.$strict>, z.ZodObject<{
80
- document_type: z.ZodEnum<{
81
- 34: "34";
82
- }>;
83
- fiscal_number: z.ZodString;
84
- }, z.core.$strict>, z.ZodObject<{
85
- document_type: z.ZodEnum<{
86
- 41: "41";
87
- }>;
88
- fiscal_number: z.ZodString;
89
- }, z.core.$strict>, z.ZodObject<{
90
- document_type: z.ZodEnum<{
91
- 43: "43";
92
- }>;
93
- fiscal_number: z.ZodString;
94
- }, z.core.$strict>, z.ZodObject<{
95
- document_type: z.ZodEnum<{
96
- 44: "44";
97
- }>;
98
- fiscal_number: z.ZodString;
99
- }, z.core.$strict>, z.ZodObject<{
100
- document_type: z.ZodEnum<{
101
- 45: "45";
102
- }>;
103
- fiscal_number: z.ZodString;
104
- }, z.core.$strict>, z.ZodObject<{
105
- document_type: z.ZodEnum<{
106
- 46: "46";
107
- }>;
108
- fiscal_number: z.ZodString;
109
- }, z.core.$strict>, z.ZodObject<{
110
- document_type: z.ZodEnum<{
111
- 47: "47";
112
- }>;
113
- fiscal_number: z.ZodString;
114
- }, z.core.$strict>]>;
115
- fiscal_operation_id: z.ZodUUID;
116
- stage: z.ZodEnum<{
117
- admitted: "admitted";
118
- authority_processing: "authority_processing";
119
- consumer_summary_signed: "consumer_summary_signed";
120
- signed: "signed";
121
- submitted: "submitted";
122
- }>;
123
- terminality: z.ZodEnum<{
124
- pending: "pending";
125
- }>;
126
- }, z.core.$strict>;
127
- environment: z.ZodEnum<{
128
- certification: "certification";
129
- production: "production";
130
- sandbox: "sandbox";
131
- }>;
132
- id: z.ZodUUID;
133
- object: z.ZodEnum<{
134
- event: "event";
135
- }>;
136
- occurred_at: z.ZodISODateTime;
137
- organization_id: z.ZodUUID;
138
- sequence: z.ZodString;
139
- type: z.ZodEnum<{
140
- "fiscal_operation.processing": "fiscal_operation.processing";
141
- }>;
142
- }, z.core.$strict>, z.ZodObject<{
143
- data: z.ZodObject<{
144
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
145
- document_type: z.ZodEnum<{
146
- 31: "31";
147
- }>;
148
- fiscal_number: z.ZodString;
149
- }, z.core.$strict>, z.ZodObject<{
150
- document_type: z.ZodEnum<{
151
- 32: "32";
152
- }>;
153
- fiscal_number: z.ZodString;
154
- }, z.core.$strict>, z.ZodObject<{
155
- document_type: z.ZodEnum<{
156
- 33: "33";
157
- }>;
158
- fiscal_number: z.ZodString;
159
- }, z.core.$strict>, z.ZodObject<{
160
- document_type: z.ZodEnum<{
161
- 34: "34";
162
- }>;
163
- fiscal_number: z.ZodString;
164
- }, z.core.$strict>, z.ZodObject<{
165
- document_type: z.ZodEnum<{
166
- 41: "41";
167
- }>;
168
- fiscal_number: z.ZodString;
169
- }, z.core.$strict>, z.ZodObject<{
170
- document_type: z.ZodEnum<{
171
- 43: "43";
172
- }>;
173
- fiscal_number: z.ZodString;
174
- }, z.core.$strict>, z.ZodObject<{
175
- document_type: z.ZodEnum<{
176
- 44: "44";
177
- }>;
178
- fiscal_number: z.ZodString;
179
- }, z.core.$strict>, z.ZodObject<{
180
- document_type: z.ZodEnum<{
181
- 45: "45";
182
- }>;
183
- fiscal_number: z.ZodString;
184
- }, z.core.$strict>, z.ZodObject<{
185
- document_type: z.ZodEnum<{
186
- 46: "46";
187
- }>;
188
- fiscal_number: z.ZodString;
189
- }, z.core.$strict>, z.ZodObject<{
190
- document_type: z.ZodEnum<{
191
- 47: "47";
192
- }>;
193
- fiscal_number: z.ZodString;
194
- }, z.core.$strict>]>;
195
- fiscal_operation_id: z.ZodUUID;
196
- terminality: z.ZodEnum<{
197
- operator_required: "operator_required";
198
- pending: "pending";
199
- }>;
5
+ id: z.ZodUUID;
6
+ sourceConnectionId: z.ZodUUID;
200
7
  }, z.core.$strict>;
201
8
  environment: z.ZodEnum<{
202
9
  certification: "certification";
@@ -207,69 +14,17 @@ export declare const webhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
207
14
  object: z.ZodEnum<{
208
15
  event: "event";
209
16
  }>;
210
- occurred_at: z.ZodISODateTime;
211
- organization_id: z.ZodUUID;
17
+ occurredAt: z.ZodISODateTime;
18
+ organizationId: z.ZodUUID;
212
19
  sequence: z.ZodString;
213
20
  type: z.ZodEnum<{
214
- "fiscal_operation.submission_outcome_unknown": "fiscal_operation.submission_outcome_unknown";
21
+ "invoice.accepted": "invoice.accepted";
215
22
  }>;
216
23
  }, z.core.$strict>, z.ZodObject<{
24
+ apiVersion: z.ZodString;
217
25
  data: z.ZodObject<{
218
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
219
- document_type: z.ZodEnum<{
220
- 31: "31";
221
- }>;
222
- fiscal_number: z.ZodString;
223
- }, z.core.$strict>, z.ZodObject<{
224
- document_type: z.ZodEnum<{
225
- 32: "32";
226
- }>;
227
- fiscal_number: z.ZodString;
228
- }, z.core.$strict>, z.ZodObject<{
229
- document_type: z.ZodEnum<{
230
- 33: "33";
231
- }>;
232
- fiscal_number: z.ZodString;
233
- }, z.core.$strict>, z.ZodObject<{
234
- document_type: z.ZodEnum<{
235
- 34: "34";
236
- }>;
237
- fiscal_number: z.ZodString;
238
- }, z.core.$strict>, z.ZodObject<{
239
- document_type: z.ZodEnum<{
240
- 41: "41";
241
- }>;
242
- fiscal_number: z.ZodString;
243
- }, z.core.$strict>, z.ZodObject<{
244
- document_type: z.ZodEnum<{
245
- 43: "43";
246
- }>;
247
- fiscal_number: z.ZodString;
248
- }, z.core.$strict>, z.ZodObject<{
249
- document_type: z.ZodEnum<{
250
- 44: "44";
251
- }>;
252
- fiscal_number: z.ZodString;
253
- }, z.core.$strict>, z.ZodObject<{
254
- document_type: z.ZodEnum<{
255
- 45: "45";
256
- }>;
257
- fiscal_number: z.ZodString;
258
- }, z.core.$strict>, z.ZodObject<{
259
- document_type: z.ZodEnum<{
260
- 46: "46";
261
- }>;
262
- fiscal_number: z.ZodString;
263
- }, z.core.$strict>, z.ZodObject<{
264
- document_type: z.ZodEnum<{
265
- 47: "47";
266
- }>;
267
- fiscal_number: z.ZodString;
268
- }, z.core.$strict>]>;
269
- fiscal_operation_id: z.ZodUUID;
270
- terminality: z.ZodEnum<{
271
- terminal: "terminal";
272
- }>;
26
+ id: z.ZodUUID;
27
+ sourceConnectionId: z.ZodUUID;
273
28
  }, z.core.$strict>;
274
29
  environment: z.ZodEnum<{
275
30
  certification: "certification";
@@ -280,69 +35,17 @@ export declare const webhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
280
35
  object: z.ZodEnum<{
281
36
  event: "event";
282
37
  }>;
283
- occurred_at: z.ZodISODateTime;
284
- organization_id: z.ZodUUID;
38
+ occurredAt: z.ZodISODateTime;
39
+ organizationId: z.ZodUUID;
285
40
  sequence: z.ZodString;
286
41
  type: z.ZodEnum<{
287
- "fiscal_operation.authority_accepted": "fiscal_operation.authority_accepted";
42
+ "invoice.rejected": "invoice.rejected";
288
43
  }>;
289
44
  }, z.core.$strict>, z.ZodObject<{
45
+ apiVersion: z.ZodString;
290
46
  data: z.ZodObject<{
291
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
292
- document_type: z.ZodEnum<{
293
- 31: "31";
294
- }>;
295
- fiscal_number: z.ZodString;
296
- }, z.core.$strict>, z.ZodObject<{
297
- document_type: z.ZodEnum<{
298
- 32: "32";
299
- }>;
300
- fiscal_number: z.ZodString;
301
- }, z.core.$strict>, z.ZodObject<{
302
- document_type: z.ZodEnum<{
303
- 33: "33";
304
- }>;
305
- fiscal_number: z.ZodString;
306
- }, z.core.$strict>, z.ZodObject<{
307
- document_type: z.ZodEnum<{
308
- 34: "34";
309
- }>;
310
- fiscal_number: z.ZodString;
311
- }, z.core.$strict>, z.ZodObject<{
312
- document_type: z.ZodEnum<{
313
- 41: "41";
314
- }>;
315
- fiscal_number: z.ZodString;
316
- }, z.core.$strict>, z.ZodObject<{
317
- document_type: z.ZodEnum<{
318
- 43: "43";
319
- }>;
320
- fiscal_number: z.ZodString;
321
- }, z.core.$strict>, z.ZodObject<{
322
- document_type: z.ZodEnum<{
323
- 44: "44";
324
- }>;
325
- fiscal_number: z.ZodString;
326
- }, z.core.$strict>, z.ZodObject<{
327
- document_type: z.ZodEnum<{
328
- 45: "45";
329
- }>;
330
- fiscal_number: z.ZodString;
331
- }, z.core.$strict>, z.ZodObject<{
332
- document_type: z.ZodEnum<{
333
- 46: "46";
334
- }>;
335
- fiscal_number: z.ZodString;
336
- }, z.core.$strict>, z.ZodObject<{
337
- document_type: z.ZodEnum<{
338
- 47: "47";
339
- }>;
340
- fiscal_number: z.ZodString;
341
- }, z.core.$strict>]>;
342
- fiscal_operation_id: z.ZodUUID;
343
- terminality: z.ZodEnum<{
344
- terminal: "terminal";
345
- }>;
47
+ id: z.ZodUUID;
48
+ sourceConnectionId: z.ZodUUID;
346
49
  }, z.core.$strict>;
347
50
  environment: z.ZodEnum<{
348
51
  certification: "certification";
@@ -353,142 +56,17 @@ export declare const webhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
353
56
  object: z.ZodEnum<{
354
57
  event: "event";
355
58
  }>;
356
- occurred_at: z.ZodISODateTime;
357
- organization_id: z.ZodUUID;
59
+ occurredAt: z.ZodISODateTime;
60
+ organizationId: z.ZodUUID;
358
61
  sequence: z.ZodString;
359
62
  type: z.ZodEnum<{
360
- "fiscal_operation.authority_accepted_with_findings": "fiscal_operation.authority_accepted_with_findings";
63
+ "invoice.operatorRequired": "invoice.operatorRequired";
361
64
  }>;
362
65
  }, z.core.$strict>, z.ZodObject<{
66
+ apiVersion: z.ZodString;
363
67
  data: z.ZodObject<{
364
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
365
- document_type: z.ZodEnum<{
366
- 31: "31";
367
- }>;
368
- fiscal_number: z.ZodString;
369
- }, z.core.$strict>, z.ZodObject<{
370
- document_type: z.ZodEnum<{
371
- 32: "32";
372
- }>;
373
- fiscal_number: z.ZodString;
374
- }, z.core.$strict>, z.ZodObject<{
375
- document_type: z.ZodEnum<{
376
- 33: "33";
377
- }>;
378
- fiscal_number: z.ZodString;
379
- }, z.core.$strict>, z.ZodObject<{
380
- document_type: z.ZodEnum<{
381
- 34: "34";
382
- }>;
383
- fiscal_number: z.ZodString;
384
- }, z.core.$strict>, z.ZodObject<{
385
- document_type: z.ZodEnum<{
386
- 41: "41";
387
- }>;
388
- fiscal_number: z.ZodString;
389
- }, z.core.$strict>, z.ZodObject<{
390
- document_type: z.ZodEnum<{
391
- 43: "43";
392
- }>;
393
- fiscal_number: z.ZodString;
394
- }, z.core.$strict>, z.ZodObject<{
395
- document_type: z.ZodEnum<{
396
- 44: "44";
397
- }>;
398
- fiscal_number: z.ZodString;
399
- }, z.core.$strict>, z.ZodObject<{
400
- document_type: z.ZodEnum<{
401
- 45: "45";
402
- }>;
403
- fiscal_number: z.ZodString;
404
- }, z.core.$strict>, z.ZodObject<{
405
- document_type: z.ZodEnum<{
406
- 46: "46";
407
- }>;
408
- fiscal_number: z.ZodString;
409
- }, z.core.$strict>, z.ZodObject<{
410
- document_type: z.ZodEnum<{
411
- 47: "47";
412
- }>;
413
- fiscal_number: z.ZodString;
414
- }, z.core.$strict>]>;
415
- fiscal_operation_id: z.ZodUUID;
416
- terminality: z.ZodEnum<{
417
- operator_required: "operator_required";
418
- }>;
419
- }, z.core.$strict>;
420
- environment: z.ZodEnum<{
421
- certification: "certification";
422
- production: "production";
423
- sandbox: "sandbox";
424
- }>;
425
- id: z.ZodUUID;
426
- object: z.ZodEnum<{
427
- event: "event";
428
- }>;
429
- occurred_at: z.ZodISODateTime;
430
- organization_id: z.ZodUUID;
431
- sequence: z.ZodString;
432
- type: z.ZodEnum<{
433
- "fiscal_operation.authority_rejected": "fiscal_operation.authority_rejected";
434
- }>;
435
- }, z.core.$strict>, z.ZodObject<{
436
- data: z.ZodObject<{
437
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
438
- document_type: z.ZodEnum<{
439
- 31: "31";
440
- }>;
441
- fiscal_number: z.ZodString;
442
- }, z.core.$strict>, z.ZodObject<{
443
- document_type: z.ZodEnum<{
444
- 32: "32";
445
- }>;
446
- fiscal_number: z.ZodString;
447
- }, z.core.$strict>, z.ZodObject<{
448
- document_type: z.ZodEnum<{
449
- 33: "33";
450
- }>;
451
- fiscal_number: z.ZodString;
452
- }, z.core.$strict>, z.ZodObject<{
453
- document_type: z.ZodEnum<{
454
- 34: "34";
455
- }>;
456
- fiscal_number: z.ZodString;
457
- }, z.core.$strict>, z.ZodObject<{
458
- document_type: z.ZodEnum<{
459
- 41: "41";
460
- }>;
461
- fiscal_number: z.ZodString;
462
- }, z.core.$strict>, z.ZodObject<{
463
- document_type: z.ZodEnum<{
464
- 43: "43";
465
- }>;
466
- fiscal_number: z.ZodString;
467
- }, z.core.$strict>, z.ZodObject<{
468
- document_type: z.ZodEnum<{
469
- 44: "44";
470
- }>;
471
- fiscal_number: z.ZodString;
472
- }, z.core.$strict>, z.ZodObject<{
473
- document_type: z.ZodEnum<{
474
- 45: "45";
475
- }>;
476
- fiscal_number: z.ZodString;
477
- }, z.core.$strict>, z.ZodObject<{
478
- document_type: z.ZodEnum<{
479
- 46: "46";
480
- }>;
481
- fiscal_number: z.ZodString;
482
- }, z.core.$strict>, z.ZodObject<{
483
- document_type: z.ZodEnum<{
484
- 47: "47";
485
- }>;
486
- fiscal_number: z.ZodString;
487
- }, z.core.$strict>]>;
488
- fiscal_operation_id: z.ZodUUID;
489
- terminality: z.ZodEnum<{
490
- operator_required: "operator_required";
491
- }>;
68
+ id: z.ZodUUID;
69
+ sourceConnectionId: z.ZodUUID;
492
70
  }, z.core.$strict>;
493
71
  environment: z.ZodEnum<{
494
72
  certification: "certification";
@@ -499,13 +77,14 @@ export declare const webhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
499
77
  object: z.ZodEnum<{
500
78
  event: "event";
501
79
  }>;
502
- occurred_at: z.ZodISODateTime;
503
- organization_id: z.ZodUUID;
80
+ occurredAt: z.ZodISODateTime;
81
+ organizationId: z.ZodUUID;
504
82
  sequence: z.ZodString;
505
83
  type: z.ZodEnum<{
506
- "fiscal_operation.intervention_required": "fiscal_operation.intervention_required";
84
+ "invoice.ready": "invoice.ready";
507
85
  }>;
508
86
  }, z.core.$strict>, z.ZodObject<{
87
+ apiVersion: z.ZodString;
509
88
  data: z.ZodObject<{
510
89
  fiscal_operation_id: z.ZodUUID;
511
90
  fiscal_operation_outcome: z.ZodUnion<readonly [z.ZodObject<{
@@ -882,13 +461,14 @@ export declare const webhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
882
461
  object: z.ZodEnum<{
883
462
  event: "event";
884
463
  }>;
885
- occurred_at: z.ZodISODateTime;
886
- organization_id: z.ZodUUID;
464
+ occurredAt: z.ZodISODateTime;
465
+ organizationId: z.ZodUUID;
887
466
  sequence: z.ZodString;
888
467
  type: z.ZodEnum<{
889
468
  "fiscal_operation.commercially_accepted": "fiscal_operation.commercially_accepted";
890
469
  }>;
891
470
  }, z.core.$strict>, z.ZodObject<{
471
+ apiVersion: z.ZodString;
892
472
  data: z.ZodObject<{
893
473
  fiscal_operation_id: z.ZodUUID;
894
474
  fiscal_operation_outcome: z.ZodUnion<readonly [z.ZodObject<{
@@ -1265,13 +845,14 @@ export declare const webhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
1265
845
  object: z.ZodEnum<{
1266
846
  event: "event";
1267
847
  }>;
1268
- occurred_at: z.ZodISODateTime;
1269
- organization_id: z.ZodUUID;
848
+ occurredAt: z.ZodISODateTime;
849
+ organizationId: z.ZodUUID;
1270
850
  sequence: z.ZodString;
1271
851
  type: z.ZodEnum<{
1272
852
  "fiscal_operation.commercially_rejected": "fiscal_operation.commercially_rejected";
1273
853
  }>;
1274
854
  }, z.core.$strict>, z.ZodObject<{
855
+ apiVersion: z.ZodString;
1275
856
  data: z.ZodObject<{
1276
857
  activation_attempt_id: z.ZodUUID;
1277
858
  challenge: z.ZodString;
@@ -1289,8 +870,8 @@ export declare const webhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
1289
870
  object: z.ZodEnum<{
1290
871
  event: "event";
1291
872
  }>;
1292
- occurred_at: z.ZodISODateTime;
1293
- organization_id: z.ZodUUID;
873
+ occurredAt: z.ZodISODateTime;
874
+ organizationId: z.ZodUUID;
1294
875
  sequence: z.ZodString;
1295
876
  type: z.ZodEnum<{
1296
877
  "source_connection.verification_requested": "source_connection.verification_requested";
@@ -1351,31 +932,44 @@ export declare const receptionWebhookEventSchema: z.ZodUnion<readonly [z.ZodObje
1351
932
  "fiscal_reception.not_received": "fiscal_reception.not_received";
1352
933
  }>;
1353
934
  }, z.core.$strict>]>;
1354
- export type WebhookEvent = z.infer<typeof webhookEventSchema>;
1355
- export type ReceptionWebhookEvent = z.infer<typeof receptionWebhookEventSchema>;
1356
- /** Every notification an endpoint is delivered, told apart by its event type. */
1357
- export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
935
+ export declare const invoiceWebhookEventSchema: z.ZodUnion<readonly [z.ZodObject<{
1358
936
  data: z.ZodObject<{
1359
- fiscal_operation_id: z.ZodUUID;
937
+ id: z.ZodUUID;
938
+ sourceConnectionId: z.ZodUUID;
1360
939
  }, z.core.$strict>;
1361
- environment: z.ZodEnum<{
1362
- certification: "certification";
1363
- production: "production";
1364
- sandbox: "sandbox";
940
+ type: z.ZodEnum<{
941
+ "invoice.accepted": "invoice.accepted";
1365
942
  }>;
1366
- id: z.ZodUUID;
1367
- object: z.ZodEnum<{
1368
- event: "event";
943
+ }, z.core.$strict>, z.ZodObject<{
944
+ data: z.ZodObject<{
945
+ id: z.ZodUUID;
946
+ sourceConnectionId: z.ZodUUID;
947
+ }, z.core.$strict>;
948
+ type: z.ZodEnum<{
949
+ "invoice.rejected": "invoice.rejected";
1369
950
  }>;
1370
- occurred_at: z.ZodISODateTime;
1371
- organization_id: z.ZodUUID;
1372
- sequence: z.ZodString;
951
+ }, z.core.$strict>, z.ZodObject<{
952
+ data: z.ZodObject<{
953
+ id: z.ZodUUID;
954
+ sourceConnectionId: z.ZodUUID;
955
+ }, z.core.$strict>;
1373
956
  type: z.ZodEnum<{
1374
- "fiscal_document.artifacts_updated": "fiscal_document.artifacts_updated";
957
+ "invoice.operatorRequired": "invoice.operatorRequired";
1375
958
  }>;
1376
959
  }, z.core.$strict>, z.ZodObject<{
1377
960
  data: z.ZodObject<{
1378
- fiscal_operation_id: z.ZodUUID;
961
+ id: z.ZodUUID;
962
+ sourceConnectionId: z.ZodUUID;
963
+ }, z.core.$strict>;
964
+ type: z.ZodEnum<{
965
+ "invoice.ready": "invoice.ready";
966
+ }>;
967
+ }, z.core.$strict>]>;
968
+ export declare const invoiceWebhookEventEnvelopeSchema: z.ZodUnion<readonly [z.ZodObject<{
969
+ apiVersion: z.ZodString;
970
+ data: z.ZodObject<{
971
+ id: z.ZodUUID;
972
+ sourceConnectionId: z.ZodUUID;
1379
973
  }, z.core.$strict>;
1380
974
  environment: z.ZodEnum<{
1381
975
  certification: "certification";
@@ -1386,18 +980,17 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
1386
980
  object: z.ZodEnum<{
1387
981
  event: "event";
1388
982
  }>;
1389
- occurred_at: z.ZodISODateTime;
1390
- organization_id: z.ZodUUID;
983
+ occurredAt: z.ZodISODateTime;
984
+ organizationId: z.ZodUUID;
1391
985
  sequence: z.ZodString;
1392
986
  type: z.ZodEnum<{
1393
- "fiscal_document.ready": "fiscal_document.ready";
987
+ "invoice.accepted": "invoice.accepted";
1394
988
  }>;
1395
989
  }, z.core.$strict>, z.ZodObject<{
990
+ apiVersion: z.ZodString;
1396
991
  data: z.ZodObject<{
1397
- fiscal_operation_id: z.ZodUUID;
1398
- terminality: z.ZodEnum<{
1399
- terminal: "terminal";
1400
- }>;
992
+ id: z.ZodUUID;
993
+ sourceConnectionId: z.ZodUUID;
1401
994
  }, z.core.$strict>;
1402
995
  environment: z.ZodEnum<{
1403
996
  certification: "certification";
@@ -1408,76 +1001,17 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
1408
1001
  object: z.ZodEnum<{
1409
1002
  event: "event";
1410
1003
  }>;
1411
- occurred_at: z.ZodISODateTime;
1412
- organization_id: z.ZodUUID;
1004
+ occurredAt: z.ZodISODateTime;
1005
+ organizationId: z.ZodUUID;
1413
1006
  sequence: z.ZodString;
1414
1007
  type: z.ZodEnum<{
1415
- "fiscal_operation.rejected": "fiscal_operation.rejected";
1008
+ "invoice.rejected": "invoice.rejected";
1416
1009
  }>;
1417
1010
  }, z.core.$strict>, z.ZodObject<{
1011
+ apiVersion: z.ZodString;
1418
1012
  data: z.ZodObject<{
1419
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
1420
- document_type: z.ZodEnum<{
1421
- 31: "31";
1422
- }>;
1423
- fiscal_number: z.ZodString;
1424
- }, z.core.$strict>, z.ZodObject<{
1425
- document_type: z.ZodEnum<{
1426
- 32: "32";
1427
- }>;
1428
- fiscal_number: z.ZodString;
1429
- }, z.core.$strict>, z.ZodObject<{
1430
- document_type: z.ZodEnum<{
1431
- 33: "33";
1432
- }>;
1433
- fiscal_number: z.ZodString;
1434
- }, z.core.$strict>, z.ZodObject<{
1435
- document_type: z.ZodEnum<{
1436
- 34: "34";
1437
- }>;
1438
- fiscal_number: z.ZodString;
1439
- }, z.core.$strict>, z.ZodObject<{
1440
- document_type: z.ZodEnum<{
1441
- 41: "41";
1442
- }>;
1443
- fiscal_number: z.ZodString;
1444
- }, z.core.$strict>, z.ZodObject<{
1445
- document_type: z.ZodEnum<{
1446
- 43: "43";
1447
- }>;
1448
- fiscal_number: z.ZodString;
1449
- }, z.core.$strict>, z.ZodObject<{
1450
- document_type: z.ZodEnum<{
1451
- 44: "44";
1452
- }>;
1453
- fiscal_number: z.ZodString;
1454
- }, z.core.$strict>, z.ZodObject<{
1455
- document_type: z.ZodEnum<{
1456
- 45: "45";
1457
- }>;
1458
- fiscal_number: z.ZodString;
1459
- }, z.core.$strict>, z.ZodObject<{
1460
- document_type: z.ZodEnum<{
1461
- 46: "46";
1462
- }>;
1463
- fiscal_number: z.ZodString;
1464
- }, z.core.$strict>, z.ZodObject<{
1465
- document_type: z.ZodEnum<{
1466
- 47: "47";
1467
- }>;
1468
- fiscal_number: z.ZodString;
1469
- }, z.core.$strict>]>;
1470
- fiscal_operation_id: z.ZodUUID;
1471
- stage: z.ZodEnum<{
1472
- admitted: "admitted";
1473
- authority_processing: "authority_processing";
1474
- consumer_summary_signed: "consumer_summary_signed";
1475
- signed: "signed";
1476
- submitted: "submitted";
1477
- }>;
1478
- terminality: z.ZodEnum<{
1479
- pending: "pending";
1480
- }>;
1013
+ id: z.ZodUUID;
1014
+ sourceConnectionId: z.ZodUUID;
1481
1015
  }, z.core.$strict>;
1482
1016
  environment: z.ZodEnum<{
1483
1017
  certification: "certification";
@@ -1488,70 +1022,17 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
1488
1022
  object: z.ZodEnum<{
1489
1023
  event: "event";
1490
1024
  }>;
1491
- occurred_at: z.ZodISODateTime;
1492
- organization_id: z.ZodUUID;
1025
+ occurredAt: z.ZodISODateTime;
1026
+ organizationId: z.ZodUUID;
1493
1027
  sequence: z.ZodString;
1494
1028
  type: z.ZodEnum<{
1495
- "fiscal_operation.processing": "fiscal_operation.processing";
1029
+ "invoice.operatorRequired": "invoice.operatorRequired";
1496
1030
  }>;
1497
1031
  }, z.core.$strict>, z.ZodObject<{
1032
+ apiVersion: z.ZodString;
1498
1033
  data: z.ZodObject<{
1499
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
1500
- document_type: z.ZodEnum<{
1501
- 31: "31";
1502
- }>;
1503
- fiscal_number: z.ZodString;
1504
- }, z.core.$strict>, z.ZodObject<{
1505
- document_type: z.ZodEnum<{
1506
- 32: "32";
1507
- }>;
1508
- fiscal_number: z.ZodString;
1509
- }, z.core.$strict>, z.ZodObject<{
1510
- document_type: z.ZodEnum<{
1511
- 33: "33";
1512
- }>;
1513
- fiscal_number: z.ZodString;
1514
- }, z.core.$strict>, z.ZodObject<{
1515
- document_type: z.ZodEnum<{
1516
- 34: "34";
1517
- }>;
1518
- fiscal_number: z.ZodString;
1519
- }, z.core.$strict>, z.ZodObject<{
1520
- document_type: z.ZodEnum<{
1521
- 41: "41";
1522
- }>;
1523
- fiscal_number: z.ZodString;
1524
- }, z.core.$strict>, z.ZodObject<{
1525
- document_type: z.ZodEnum<{
1526
- 43: "43";
1527
- }>;
1528
- fiscal_number: z.ZodString;
1529
- }, z.core.$strict>, z.ZodObject<{
1530
- document_type: z.ZodEnum<{
1531
- 44: "44";
1532
- }>;
1533
- fiscal_number: z.ZodString;
1534
- }, z.core.$strict>, z.ZodObject<{
1535
- document_type: z.ZodEnum<{
1536
- 45: "45";
1537
- }>;
1538
- fiscal_number: z.ZodString;
1539
- }, z.core.$strict>, z.ZodObject<{
1540
- document_type: z.ZodEnum<{
1541
- 46: "46";
1542
- }>;
1543
- fiscal_number: z.ZodString;
1544
- }, z.core.$strict>, z.ZodObject<{
1545
- document_type: z.ZodEnum<{
1546
- 47: "47";
1547
- }>;
1548
- fiscal_number: z.ZodString;
1549
- }, z.core.$strict>]>;
1550
- fiscal_operation_id: z.ZodUUID;
1551
- terminality: z.ZodEnum<{
1552
- operator_required: "operator_required";
1553
- pending: "pending";
1554
- }>;
1034
+ id: z.ZodUUID;
1035
+ sourceConnectionId: z.ZodUUID;
1555
1036
  }, z.core.$strict>;
1556
1037
  environment: z.ZodEnum<{
1557
1038
  certification: "certification";
@@ -1562,69 +1043,23 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
1562
1043
  object: z.ZodEnum<{
1563
1044
  event: "event";
1564
1045
  }>;
1565
- occurred_at: z.ZodISODateTime;
1566
- organization_id: z.ZodUUID;
1046
+ occurredAt: z.ZodISODateTime;
1047
+ organizationId: z.ZodUUID;
1567
1048
  sequence: z.ZodString;
1568
1049
  type: z.ZodEnum<{
1569
- "fiscal_operation.submission_outcome_unknown": "fiscal_operation.submission_outcome_unknown";
1050
+ "invoice.ready": "invoice.ready";
1570
1051
  }>;
1571
- }, z.core.$strict>, z.ZodObject<{
1052
+ }, z.core.$strict>]>;
1053
+ export type WebhookEvent = z.infer<typeof webhookEventSchema>;
1054
+ export type ReceptionWebhookEvent = z.infer<typeof receptionWebhookEventSchema>;
1055
+ export type InvoiceWebhookEvent = z.infer<typeof invoiceWebhookEventSchema>;
1056
+ export type InvoiceWebhookEventEnvelope = z.infer<typeof invoiceWebhookEventEnvelopeSchema>;
1057
+ /** Every notification an endpoint is delivered, told apart by its event type. */
1058
+ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1059
+ apiVersion: z.ZodString;
1572
1060
  data: z.ZodObject<{
1573
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
1574
- document_type: z.ZodEnum<{
1575
- 31: "31";
1576
- }>;
1577
- fiscal_number: z.ZodString;
1578
- }, z.core.$strict>, z.ZodObject<{
1579
- document_type: z.ZodEnum<{
1580
- 32: "32";
1581
- }>;
1582
- fiscal_number: z.ZodString;
1583
- }, z.core.$strict>, z.ZodObject<{
1584
- document_type: z.ZodEnum<{
1585
- 33: "33";
1586
- }>;
1587
- fiscal_number: z.ZodString;
1588
- }, z.core.$strict>, z.ZodObject<{
1589
- document_type: z.ZodEnum<{
1590
- 34: "34";
1591
- }>;
1592
- fiscal_number: z.ZodString;
1593
- }, z.core.$strict>, z.ZodObject<{
1594
- document_type: z.ZodEnum<{
1595
- 41: "41";
1596
- }>;
1597
- fiscal_number: z.ZodString;
1598
- }, z.core.$strict>, z.ZodObject<{
1599
- document_type: z.ZodEnum<{
1600
- 43: "43";
1601
- }>;
1602
- fiscal_number: z.ZodString;
1603
- }, z.core.$strict>, z.ZodObject<{
1604
- document_type: z.ZodEnum<{
1605
- 44: "44";
1606
- }>;
1607
- fiscal_number: z.ZodString;
1608
- }, z.core.$strict>, z.ZodObject<{
1609
- document_type: z.ZodEnum<{
1610
- 45: "45";
1611
- }>;
1612
- fiscal_number: z.ZodString;
1613
- }, z.core.$strict>, z.ZodObject<{
1614
- document_type: z.ZodEnum<{
1615
- 46: "46";
1616
- }>;
1617
- fiscal_number: z.ZodString;
1618
- }, z.core.$strict>, z.ZodObject<{
1619
- document_type: z.ZodEnum<{
1620
- 47: "47";
1621
- }>;
1622
- fiscal_number: z.ZodString;
1623
- }, z.core.$strict>]>;
1624
- fiscal_operation_id: z.ZodUUID;
1625
- terminality: z.ZodEnum<{
1626
- terminal: "terminal";
1627
- }>;
1061
+ id: z.ZodUUID;
1062
+ sourceConnectionId: z.ZodUUID;
1628
1063
  }, z.core.$strict>;
1629
1064
  environment: z.ZodEnum<{
1630
1065
  certification: "certification";
@@ -1635,69 +1070,17 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
1635
1070
  object: z.ZodEnum<{
1636
1071
  event: "event";
1637
1072
  }>;
1638
- occurred_at: z.ZodISODateTime;
1639
- organization_id: z.ZodUUID;
1073
+ occurredAt: z.ZodISODateTime;
1074
+ organizationId: z.ZodUUID;
1640
1075
  sequence: z.ZodString;
1641
1076
  type: z.ZodEnum<{
1642
- "fiscal_operation.authority_accepted": "fiscal_operation.authority_accepted";
1077
+ "invoice.accepted": "invoice.accepted";
1643
1078
  }>;
1644
1079
  }, z.core.$strict>, z.ZodObject<{
1080
+ apiVersion: z.ZodString;
1645
1081
  data: z.ZodObject<{
1646
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
1647
- document_type: z.ZodEnum<{
1648
- 31: "31";
1649
- }>;
1650
- fiscal_number: z.ZodString;
1651
- }, z.core.$strict>, z.ZodObject<{
1652
- document_type: z.ZodEnum<{
1653
- 32: "32";
1654
- }>;
1655
- fiscal_number: z.ZodString;
1656
- }, z.core.$strict>, z.ZodObject<{
1657
- document_type: z.ZodEnum<{
1658
- 33: "33";
1659
- }>;
1660
- fiscal_number: z.ZodString;
1661
- }, z.core.$strict>, z.ZodObject<{
1662
- document_type: z.ZodEnum<{
1663
- 34: "34";
1664
- }>;
1665
- fiscal_number: z.ZodString;
1666
- }, z.core.$strict>, z.ZodObject<{
1667
- document_type: z.ZodEnum<{
1668
- 41: "41";
1669
- }>;
1670
- fiscal_number: z.ZodString;
1671
- }, z.core.$strict>, z.ZodObject<{
1672
- document_type: z.ZodEnum<{
1673
- 43: "43";
1674
- }>;
1675
- fiscal_number: z.ZodString;
1676
- }, z.core.$strict>, z.ZodObject<{
1677
- document_type: z.ZodEnum<{
1678
- 44: "44";
1679
- }>;
1680
- fiscal_number: z.ZodString;
1681
- }, z.core.$strict>, z.ZodObject<{
1682
- document_type: z.ZodEnum<{
1683
- 45: "45";
1684
- }>;
1685
- fiscal_number: z.ZodString;
1686
- }, z.core.$strict>, z.ZodObject<{
1687
- document_type: z.ZodEnum<{
1688
- 46: "46";
1689
- }>;
1690
- fiscal_number: z.ZodString;
1691
- }, z.core.$strict>, z.ZodObject<{
1692
- document_type: z.ZodEnum<{
1693
- 47: "47";
1694
- }>;
1695
- fiscal_number: z.ZodString;
1696
- }, z.core.$strict>]>;
1697
- fiscal_operation_id: z.ZodUUID;
1698
- terminality: z.ZodEnum<{
1699
- terminal: "terminal";
1700
- }>;
1082
+ id: z.ZodUUID;
1083
+ sourceConnectionId: z.ZodUUID;
1701
1084
  }, z.core.$strict>;
1702
1085
  environment: z.ZodEnum<{
1703
1086
  certification: "certification";
@@ -1708,69 +1091,17 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
1708
1091
  object: z.ZodEnum<{
1709
1092
  event: "event";
1710
1093
  }>;
1711
- occurred_at: z.ZodISODateTime;
1712
- organization_id: z.ZodUUID;
1094
+ occurredAt: z.ZodISODateTime;
1095
+ organizationId: z.ZodUUID;
1713
1096
  sequence: z.ZodString;
1714
1097
  type: z.ZodEnum<{
1715
- "fiscal_operation.authority_accepted_with_findings": "fiscal_operation.authority_accepted_with_findings";
1098
+ "invoice.rejected": "invoice.rejected";
1716
1099
  }>;
1717
1100
  }, z.core.$strict>, z.ZodObject<{
1101
+ apiVersion: z.ZodString;
1718
1102
  data: z.ZodObject<{
1719
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
1720
- document_type: z.ZodEnum<{
1721
- 31: "31";
1722
- }>;
1723
- fiscal_number: z.ZodString;
1724
- }, z.core.$strict>, z.ZodObject<{
1725
- document_type: z.ZodEnum<{
1726
- 32: "32";
1727
- }>;
1728
- fiscal_number: z.ZodString;
1729
- }, z.core.$strict>, z.ZodObject<{
1730
- document_type: z.ZodEnum<{
1731
- 33: "33";
1732
- }>;
1733
- fiscal_number: z.ZodString;
1734
- }, z.core.$strict>, z.ZodObject<{
1735
- document_type: z.ZodEnum<{
1736
- 34: "34";
1737
- }>;
1738
- fiscal_number: z.ZodString;
1739
- }, z.core.$strict>, z.ZodObject<{
1740
- document_type: z.ZodEnum<{
1741
- 41: "41";
1742
- }>;
1743
- fiscal_number: z.ZodString;
1744
- }, z.core.$strict>, z.ZodObject<{
1745
- document_type: z.ZodEnum<{
1746
- 43: "43";
1747
- }>;
1748
- fiscal_number: z.ZodString;
1749
- }, z.core.$strict>, z.ZodObject<{
1750
- document_type: z.ZodEnum<{
1751
- 44: "44";
1752
- }>;
1753
- fiscal_number: z.ZodString;
1754
- }, z.core.$strict>, z.ZodObject<{
1755
- document_type: z.ZodEnum<{
1756
- 45: "45";
1757
- }>;
1758
- fiscal_number: z.ZodString;
1759
- }, z.core.$strict>, z.ZodObject<{
1760
- document_type: z.ZodEnum<{
1761
- 46: "46";
1762
- }>;
1763
- fiscal_number: z.ZodString;
1764
- }, z.core.$strict>, z.ZodObject<{
1765
- document_type: z.ZodEnum<{
1766
- 47: "47";
1767
- }>;
1768
- fiscal_number: z.ZodString;
1769
- }, z.core.$strict>]>;
1770
- fiscal_operation_id: z.ZodUUID;
1771
- terminality: z.ZodEnum<{
1772
- operator_required: "operator_required";
1773
- }>;
1103
+ id: z.ZodUUID;
1104
+ sourceConnectionId: z.ZodUUID;
1774
1105
  }, z.core.$strict>;
1775
1106
  environment: z.ZodEnum<{
1776
1107
  certification: "certification";
@@ -1781,69 +1112,17 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
1781
1112
  object: z.ZodEnum<{
1782
1113
  event: "event";
1783
1114
  }>;
1784
- occurred_at: z.ZodISODateTime;
1785
- organization_id: z.ZodUUID;
1115
+ occurredAt: z.ZodISODateTime;
1116
+ organizationId: z.ZodUUID;
1786
1117
  sequence: z.ZodString;
1787
1118
  type: z.ZodEnum<{
1788
- "fiscal_operation.authority_rejected": "fiscal_operation.authority_rejected";
1119
+ "invoice.operatorRequired": "invoice.operatorRequired";
1789
1120
  }>;
1790
1121
  }, z.core.$strict>, z.ZodObject<{
1122
+ apiVersion: z.ZodString;
1791
1123
  data: z.ZodObject<{
1792
- fiscal_identity: z.ZodUnion<readonly [z.ZodObject<{
1793
- document_type: z.ZodEnum<{
1794
- 31: "31";
1795
- }>;
1796
- fiscal_number: z.ZodString;
1797
- }, z.core.$strict>, z.ZodObject<{
1798
- document_type: z.ZodEnum<{
1799
- 32: "32";
1800
- }>;
1801
- fiscal_number: z.ZodString;
1802
- }, z.core.$strict>, z.ZodObject<{
1803
- document_type: z.ZodEnum<{
1804
- 33: "33";
1805
- }>;
1806
- fiscal_number: z.ZodString;
1807
- }, z.core.$strict>, z.ZodObject<{
1808
- document_type: z.ZodEnum<{
1809
- 34: "34";
1810
- }>;
1811
- fiscal_number: z.ZodString;
1812
- }, z.core.$strict>, z.ZodObject<{
1813
- document_type: z.ZodEnum<{
1814
- 41: "41";
1815
- }>;
1816
- fiscal_number: z.ZodString;
1817
- }, z.core.$strict>, z.ZodObject<{
1818
- document_type: z.ZodEnum<{
1819
- 43: "43";
1820
- }>;
1821
- fiscal_number: z.ZodString;
1822
- }, z.core.$strict>, z.ZodObject<{
1823
- document_type: z.ZodEnum<{
1824
- 44: "44";
1825
- }>;
1826
- fiscal_number: z.ZodString;
1827
- }, z.core.$strict>, z.ZodObject<{
1828
- document_type: z.ZodEnum<{
1829
- 45: "45";
1830
- }>;
1831
- fiscal_number: z.ZodString;
1832
- }, z.core.$strict>, z.ZodObject<{
1833
- document_type: z.ZodEnum<{
1834
- 46: "46";
1835
- }>;
1836
- fiscal_number: z.ZodString;
1837
- }, z.core.$strict>, z.ZodObject<{
1838
- document_type: z.ZodEnum<{
1839
- 47: "47";
1840
- }>;
1841
- fiscal_number: z.ZodString;
1842
- }, z.core.$strict>]>;
1843
- fiscal_operation_id: z.ZodUUID;
1844
- terminality: z.ZodEnum<{
1845
- operator_required: "operator_required";
1846
- }>;
1124
+ id: z.ZodUUID;
1125
+ sourceConnectionId: z.ZodUUID;
1847
1126
  }, z.core.$strict>;
1848
1127
  environment: z.ZodEnum<{
1849
1128
  certification: "certification";
@@ -1854,13 +1133,14 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
1854
1133
  object: z.ZodEnum<{
1855
1134
  event: "event";
1856
1135
  }>;
1857
- occurred_at: z.ZodISODateTime;
1858
- organization_id: z.ZodUUID;
1136
+ occurredAt: z.ZodISODateTime;
1137
+ organizationId: z.ZodUUID;
1859
1138
  sequence: z.ZodString;
1860
1139
  type: z.ZodEnum<{
1861
- "fiscal_operation.intervention_required": "fiscal_operation.intervention_required";
1140
+ "invoice.ready": "invoice.ready";
1862
1141
  }>;
1863
1142
  }, z.core.$strict>, z.ZodObject<{
1143
+ apiVersion: z.ZodString;
1864
1144
  data: z.ZodObject<{
1865
1145
  fiscal_operation_id: z.ZodUUID;
1866
1146
  fiscal_operation_outcome: z.ZodUnion<readonly [z.ZodObject<{
@@ -2237,13 +1517,14 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
2237
1517
  object: z.ZodEnum<{
2238
1518
  event: "event";
2239
1519
  }>;
2240
- occurred_at: z.ZodISODateTime;
2241
- organization_id: z.ZodUUID;
1520
+ occurredAt: z.ZodISODateTime;
1521
+ organizationId: z.ZodUUID;
2242
1522
  sequence: z.ZodString;
2243
1523
  type: z.ZodEnum<{
2244
1524
  "fiscal_operation.commercially_accepted": "fiscal_operation.commercially_accepted";
2245
1525
  }>;
2246
1526
  }, z.core.$strict>, z.ZodObject<{
1527
+ apiVersion: z.ZodString;
2247
1528
  data: z.ZodObject<{
2248
1529
  fiscal_operation_id: z.ZodUUID;
2249
1530
  fiscal_operation_outcome: z.ZodUnion<readonly [z.ZodObject<{
@@ -2620,13 +1901,14 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
2620
1901
  object: z.ZodEnum<{
2621
1902
  event: "event";
2622
1903
  }>;
2623
- occurred_at: z.ZodISODateTime;
2624
- organization_id: z.ZodUUID;
1904
+ occurredAt: z.ZodISODateTime;
1905
+ organizationId: z.ZodUUID;
2625
1906
  sequence: z.ZodString;
2626
1907
  type: z.ZodEnum<{
2627
1908
  "fiscal_operation.commercially_rejected": "fiscal_operation.commercially_rejected";
2628
1909
  }>;
2629
1910
  }, z.core.$strict>, z.ZodObject<{
1911
+ apiVersion: z.ZodString;
2630
1912
  data: z.ZodObject<{
2631
1913
  activation_attempt_id: z.ZodUUID;
2632
1914
  challenge: z.ZodString;
@@ -2644,8 +1926,8 @@ export declare const deliveredWebhookEventSchema: z.ZodUnion<readonly [z.ZodUnio
2644
1926
  object: z.ZodEnum<{
2645
1927
  event: "event";
2646
1928
  }>;
2647
- occurred_at: z.ZodISODateTime;
2648
- organization_id: z.ZodUUID;
1929
+ occurredAt: z.ZodISODateTime;
1930
+ organizationId: z.ZodUUID;
2649
1931
  sequence: z.ZodString;
2650
1932
  type: z.ZodEnum<{
2651
1933
  "source_connection.verification_requested": "source_connection.verification_requested";