@voyant-travel/distribution 0.109.8

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 (168) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +42 -0
  3. package/dist/booking-extension.d.ts +168 -0
  4. package/dist/booking-extension.d.ts.map +1 -0
  5. package/dist/booking-extension.js +102 -0
  6. package/dist/channel-push/admin-routes.d.ts +31 -0
  7. package/dist/channel-push/admin-routes.d.ts.map +1 -0
  8. package/dist/channel-push/admin-routes.js +165 -0
  9. package/dist/channel-push/availability-push.d.ts +76 -0
  10. package/dist/channel-push/availability-push.d.ts.map +1 -0
  11. package/dist/channel-push/availability-push.js +236 -0
  12. package/dist/channel-push/booking-push-helpers.d.ts +36 -0
  13. package/dist/channel-push/booking-push-helpers.d.ts.map +1 -0
  14. package/dist/channel-push/booking-push-helpers.js +169 -0
  15. package/dist/channel-push/booking-push.d.ts +108 -0
  16. package/dist/channel-push/booking-push.d.ts.map +1 -0
  17. package/dist/channel-push/booking-push.js +335 -0
  18. package/dist/channel-push/boundary-sql.d.ts +23 -0
  19. package/dist/channel-push/boundary-sql.d.ts.map +1 -0
  20. package/dist/channel-push/boundary-sql.js +75 -0
  21. package/dist/channel-push/content-push.d.ts +60 -0
  22. package/dist/channel-push/content-push.d.ts.map +1 -0
  23. package/dist/channel-push/content-push.js +252 -0
  24. package/dist/channel-push/index.d.ts +15 -0
  25. package/dist/channel-push/index.d.ts.map +1 -0
  26. package/dist/channel-push/index.js +18 -0
  27. package/dist/channel-push/plugin.d.ts +18 -0
  28. package/dist/channel-push/plugin.d.ts.map +1 -0
  29. package/dist/channel-push/plugin.js +21 -0
  30. package/dist/channel-push/reconciler.d.ts +85 -0
  31. package/dist/channel-push/reconciler.d.ts.map +1 -0
  32. package/dist/channel-push/reconciler.js +179 -0
  33. package/dist/channel-push/subscriber.d.ts +40 -0
  34. package/dist/channel-push/subscriber.d.ts.map +1 -0
  35. package/dist/channel-push/subscriber.js +199 -0
  36. package/dist/channel-push/types.d.ts +43 -0
  37. package/dist/channel-push/types.d.ts.map +1 -0
  38. package/dist/channel-push/types.js +32 -0
  39. package/dist/channel-push/workflows.d.ts +56 -0
  40. package/dist/channel-push/workflows.d.ts.map +1 -0
  41. package/dist/channel-push/workflows.js +100 -0
  42. package/dist/external-refs/index.d.ts +11 -0
  43. package/dist/external-refs/index.d.ts.map +1 -0
  44. package/dist/external-refs/index.js +12 -0
  45. package/dist/external-refs/routes.d.ts +253 -0
  46. package/dist/external-refs/routes.d.ts.map +1 -0
  47. package/dist/external-refs/routes.js +52 -0
  48. package/dist/external-refs/schema.d.ts +251 -0
  49. package/dist/external-refs/schema.d.ts.map +1 -0
  50. package/dist/external-refs/schema.js +32 -0
  51. package/dist/external-refs/service.d.ts +82 -0
  52. package/dist/external-refs/service.d.ts.map +1 -0
  53. package/dist/external-refs/service.js +112 -0
  54. package/dist/external-refs/validation.d.ts +91 -0
  55. package/dist/external-refs/validation.d.ts.map +1 -0
  56. package/dist/external-refs/validation.js +40 -0
  57. package/dist/index.d.ts +21 -0
  58. package/dist/index.d.ts.map +1 -0
  59. package/dist/index.js +20 -0
  60. package/dist/interface-types.d.ts +128 -0
  61. package/dist/interface-types.d.ts.map +1 -0
  62. package/dist/interface-types.js +1 -0
  63. package/dist/interface.d.ts +10 -0
  64. package/dist/interface.d.ts.map +1 -0
  65. package/dist/interface.js +286 -0
  66. package/dist/rate-limit.d.ts +69 -0
  67. package/dist/rate-limit.d.ts.map +1 -0
  68. package/dist/rate-limit.js +135 -0
  69. package/dist/routes/batch.d.ts +200 -0
  70. package/dist/routes/batch.d.ts.map +1 -0
  71. package/dist/routes/batch.js +52 -0
  72. package/dist/routes/env.d.ts +8 -0
  73. package/dist/routes/env.d.ts.map +1 -0
  74. package/dist/routes/env.js +1 -0
  75. package/dist/routes/inventory.d.ts +604 -0
  76. package/dist/routes/inventory.d.ts.map +1 -0
  77. package/dist/routes/inventory.js +138 -0
  78. package/dist/routes/settlements.d.ts +1649 -0
  79. package/dist/routes/settlements.d.ts.map +1 -0
  80. package/dist/routes/settlements.js +265 -0
  81. package/dist/routes.d.ts +3909 -0
  82. package/dist/routes.d.ts.map +1 -0
  83. package/dist/routes.js +323 -0
  84. package/dist/schema-automation.d.ts +680 -0
  85. package/dist/schema-automation.d.ts.map +1 -0
  86. package/dist/schema-automation.js +76 -0
  87. package/dist/schema-core.d.ts +1674 -0
  88. package/dist/schema-core.d.ts.map +1 -0
  89. package/dist/schema-core.js +227 -0
  90. package/dist/schema-finance.d.ts +1372 -0
  91. package/dist/schema-finance.d.ts.map +1 -0
  92. package/dist/schema-finance.js +153 -0
  93. package/dist/schema-inventory.d.ts +855 -0
  94. package/dist/schema-inventory.d.ts.map +1 -0
  95. package/dist/schema-inventory.js +102 -0
  96. package/dist/schema-push-intents.d.ts +387 -0
  97. package/dist/schema-push-intents.d.ts.map +1 -0
  98. package/dist/schema-push-intents.js +77 -0
  99. package/dist/schema-relations.d.ts +95 -0
  100. package/dist/schema-relations.d.ts.map +1 -0
  101. package/dist/schema-relations.js +196 -0
  102. package/dist/schema-shared.d.ts +24 -0
  103. package/dist/schema-shared.d.ts.map +1 -0
  104. package/dist/schema-shared.js +123 -0
  105. package/dist/schema.d.ts +9 -0
  106. package/dist/schema.d.ts.map +1 -0
  107. package/dist/schema.js +8 -0
  108. package/dist/service/channels.d.ts +167 -0
  109. package/dist/service/channels.d.ts.map +1 -0
  110. package/dist/service/channels.js +305 -0
  111. package/dist/service/commercial.d.ts +385 -0
  112. package/dist/service/commercial.d.ts.map +1 -0
  113. package/dist/service/commercial.js +248 -0
  114. package/dist/service/helpers.d.ts +10 -0
  115. package/dist/service/helpers.d.ts.map +1 -0
  116. package/dist/service/helpers.js +7 -0
  117. package/dist/service/inventory.d.ts +193 -0
  118. package/dist/service/inventory.d.ts.map +1 -0
  119. package/dist/service/inventory.js +154 -0
  120. package/dist/service/settlement-policies.d.ts +325 -0
  121. package/dist/service/settlement-policies.d.ts.map +1 -0
  122. package/dist/service/settlement-policies.js +272 -0
  123. package/dist/service/settlements.d.ts +357 -0
  124. package/dist/service/settlements.d.ts.map +1 -0
  125. package/dist/service/settlements.js +319 -0
  126. package/dist/service/types.d.ts +60 -0
  127. package/dist/service/types.d.ts.map +1 -0
  128. package/dist/service/types.js +1 -0
  129. package/dist/service.d.ts +1418 -0
  130. package/dist/service.d.ts.map +1 -0
  131. package/dist/service.js +17 -0
  132. package/dist/suppliers/index.d.ts +15 -0
  133. package/dist/suppliers/index.d.ts.map +1 -0
  134. package/dist/suppliers/index.js +23 -0
  135. package/dist/suppliers/routes.d.ts +1202 -0
  136. package/dist/suppliers/routes.d.ts.map +1 -0
  137. package/dist/suppliers/routes.js +290 -0
  138. package/dist/suppliers/schema.d.ts +1272 -0
  139. package/dist/suppliers/schema.d.ts.map +1 -0
  140. package/dist/suppliers/schema.js +219 -0
  141. package/dist/suppliers/service-aggregates.d.ts +23 -0
  142. package/dist/suppliers/service-aggregates.d.ts.map +1 -0
  143. package/dist/suppliers/service-aggregates.js +51 -0
  144. package/dist/suppliers/service-core.d.ts +89 -0
  145. package/dist/suppliers/service-core.d.ts.map +1 -0
  146. package/dist/suppliers/service-core.js +164 -0
  147. package/dist/suppliers/service-identity.d.ts +162 -0
  148. package/dist/suppliers/service-identity.d.ts.map +1 -0
  149. package/dist/suppliers/service-identity.js +101 -0
  150. package/dist/suppliers/service-operations.d.ts +1500 -0
  151. package/dist/suppliers/service-operations.d.ts.map +1 -0
  152. package/dist/suppliers/service-operations.js +157 -0
  153. package/dist/suppliers/service-shared.d.ts +45 -0
  154. package/dist/suppliers/service-shared.d.ts.map +1 -0
  155. package/dist/suppliers/service-shared.js +294 -0
  156. package/dist/suppliers/service.d.ts +41 -0
  157. package/dist/suppliers/service.d.ts.map +1 -0
  158. package/dist/suppliers/service.js +40 -0
  159. package/dist/suppliers/validation.d.ts +2 -0
  160. package/dist/suppliers/validation.d.ts.map +1 -0
  161. package/dist/suppliers/validation.js +1 -0
  162. package/dist/validation.d.ts +1371 -0
  163. package/dist/validation.d.ts.map +1 -0
  164. package/dist/validation.js +445 -0
  165. package/dist/webhook-deliveries.d.ts +86 -0
  166. package/dist/webhook-deliveries.d.ts.map +1 -0
  167. package/dist/webhook-deliveries.js +296 -0
  168. package/package.json +71 -0
@@ -0,0 +1,3909 @@
1
+ import type { DistributionRouteEnv } from "./routes/env.js";
2
+ export declare const distributionRoutes: import("hono/hono-base").HonoBase<DistributionRouteEnv, ({
3
+ "/channels": {
4
+ $get: {
5
+ input: {};
6
+ output: {
7
+ data: {
8
+ id: string;
9
+ name: string;
10
+ description: string | null;
11
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner" | "connect";
12
+ status: "active" | "inactive" | "pending" | "archived";
13
+ metadata: {
14
+ [x: string]: import("hono/utils/types").JSONValue;
15
+ } | null;
16
+ rateLimitRps: number | null;
17
+ rateLimitBurst: number | null;
18
+ rateLimitPriorityGates: {
19
+ [x: string]: number;
20
+ } | null;
21
+ createdAt: string;
22
+ updatedAt: string;
23
+ website: string | null;
24
+ contactName: string | null;
25
+ contactEmail: string | null;
26
+ }[];
27
+ total: number;
28
+ limit: number;
29
+ offset: number;
30
+ };
31
+ outputFormat: "json";
32
+ status: import("hono/utils/http-status").ContentfulStatusCode;
33
+ };
34
+ };
35
+ } & {
36
+ "/channels": {
37
+ $post: {
38
+ input: {};
39
+ output: {
40
+ data: {
41
+ id: string;
42
+ name: string;
43
+ description: string | null;
44
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner" | "connect";
45
+ status: "active" | "inactive" | "pending" | "archived";
46
+ metadata: {
47
+ [x: string]: import("hono/utils/types").JSONValue;
48
+ } | null;
49
+ rateLimitRps: number | null;
50
+ rateLimitBurst: number | null;
51
+ rateLimitPriorityGates: {
52
+ [x: string]: number;
53
+ } | null;
54
+ createdAt: string;
55
+ updatedAt: string;
56
+ website: string | null;
57
+ contactName: string | null;
58
+ contactEmail: string | null;
59
+ } | null;
60
+ };
61
+ outputFormat: "json";
62
+ status: 201;
63
+ };
64
+ };
65
+ } & {
66
+ "/channels/batch-update": {
67
+ $post: {
68
+ input: {};
69
+ output: {
70
+ data: {
71
+ id: string;
72
+ name: string;
73
+ description: string | null;
74
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner" | "connect";
75
+ status: "active" | "inactive" | "pending" | "archived";
76
+ metadata: {
77
+ [x: string]: import("hono/utils/types").JSONValue;
78
+ } | null;
79
+ rateLimitRps: number | null;
80
+ rateLimitBurst: number | null;
81
+ rateLimitPriorityGates: {
82
+ [x: string]: number;
83
+ } | null;
84
+ createdAt: string;
85
+ updatedAt: string;
86
+ website: string | null;
87
+ contactName: string | null;
88
+ contactEmail: string | null;
89
+ }[];
90
+ total: number;
91
+ succeeded: number;
92
+ failed: {
93
+ id: string;
94
+ error: string;
95
+ }[];
96
+ };
97
+ outputFormat: "json";
98
+ status: import("hono/utils/http-status").ContentfulStatusCode;
99
+ };
100
+ };
101
+ } & {
102
+ "/channels/batch-delete": {
103
+ $post: {
104
+ input: {};
105
+ output: {
106
+ deletedIds: string[];
107
+ total: number;
108
+ succeeded: number;
109
+ failed: {
110
+ id: string;
111
+ error: string;
112
+ }[];
113
+ };
114
+ outputFormat: "json";
115
+ status: import("hono/utils/http-status").ContentfulStatusCode;
116
+ };
117
+ };
118
+ } & {
119
+ "/channels/:id": {
120
+ $get: {
121
+ input: {
122
+ param: {
123
+ id: string;
124
+ };
125
+ };
126
+ output: {
127
+ error: string;
128
+ };
129
+ outputFormat: "json";
130
+ status: 404;
131
+ } | {
132
+ input: {
133
+ param: {
134
+ id: string;
135
+ };
136
+ };
137
+ output: {
138
+ data: {
139
+ id: string;
140
+ name: string;
141
+ description: string | null;
142
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner" | "connect";
143
+ status: "active" | "inactive" | "pending" | "archived";
144
+ metadata: {
145
+ [x: string]: import("hono/utils/types").JSONValue;
146
+ } | null;
147
+ rateLimitRps: number | null;
148
+ rateLimitBurst: number | null;
149
+ rateLimitPriorityGates: {
150
+ [x: string]: number;
151
+ } | null;
152
+ createdAt: string;
153
+ updatedAt: string;
154
+ website: string | null;
155
+ contactName: string | null;
156
+ contactEmail: string | null;
157
+ };
158
+ };
159
+ outputFormat: "json";
160
+ status: import("hono/utils/http-status").ContentfulStatusCode;
161
+ };
162
+ };
163
+ } & {
164
+ "/channels/:id": {
165
+ $patch: {
166
+ input: {
167
+ param: {
168
+ id: string;
169
+ };
170
+ };
171
+ output: {
172
+ error: string;
173
+ };
174
+ outputFormat: "json";
175
+ status: 404;
176
+ } | {
177
+ input: {
178
+ param: {
179
+ id: string;
180
+ };
181
+ };
182
+ output: {
183
+ data: {
184
+ id: string;
185
+ name: string;
186
+ description: string | null;
187
+ kind: "direct" | "affiliate" | "ota" | "reseller" | "marketplace" | "api_partner" | "connect";
188
+ status: "active" | "inactive" | "pending" | "archived";
189
+ metadata: {
190
+ [x: string]: import("hono/utils/types").JSONValue;
191
+ } | null;
192
+ rateLimitRps: number | null;
193
+ rateLimitBurst: number | null;
194
+ rateLimitPriorityGates: {
195
+ [x: string]: number;
196
+ } | null;
197
+ createdAt: string;
198
+ updatedAt: string;
199
+ website: string | null;
200
+ contactName: string | null;
201
+ contactEmail: string | null;
202
+ };
203
+ };
204
+ outputFormat: "json";
205
+ status: import("hono/utils/http-status").ContentfulStatusCode;
206
+ };
207
+ };
208
+ } & {
209
+ "/channels/:id": {
210
+ $delete: {
211
+ input: {
212
+ param: {
213
+ id: string;
214
+ };
215
+ };
216
+ output: {
217
+ error: string;
218
+ };
219
+ outputFormat: "json";
220
+ status: 404;
221
+ } | {
222
+ input: {
223
+ param: {
224
+ id: string;
225
+ };
226
+ };
227
+ output: {
228
+ success: true;
229
+ };
230
+ outputFormat: "json";
231
+ status: import("hono/utils/http-status").ContentfulStatusCode;
232
+ };
233
+ };
234
+ } & {
235
+ "/channels/:id/contact-points": {
236
+ $get: {
237
+ input: {
238
+ param: {
239
+ id: string;
240
+ };
241
+ };
242
+ output: {
243
+ error: string;
244
+ };
245
+ outputFormat: "json";
246
+ status: 404;
247
+ } | {
248
+ input: {
249
+ param: {
250
+ id: string;
251
+ };
252
+ };
253
+ output: {
254
+ data: {
255
+ id: string;
256
+ entityType: string;
257
+ entityId: string;
258
+ kind: "other" | "website" | "email" | "phone" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
259
+ label: string | null;
260
+ value: string;
261
+ normalizedValue: string | null;
262
+ isPrimary: boolean;
263
+ notes: string | null;
264
+ metadata: {
265
+ [x: string]: import("hono/utils/types").JSONValue;
266
+ } | null;
267
+ createdAt: string;
268
+ updatedAt: string;
269
+ }[];
270
+ };
271
+ outputFormat: "json";
272
+ status: import("hono/utils/http-status").ContentfulStatusCode;
273
+ };
274
+ };
275
+ } & {
276
+ "/channels/:id/contact-points": {
277
+ $post: {
278
+ input: {
279
+ param: {
280
+ id: string;
281
+ };
282
+ };
283
+ output: {
284
+ error: string;
285
+ };
286
+ outputFormat: "json";
287
+ status: 404;
288
+ } | {
289
+ input: {
290
+ param: {
291
+ id: string;
292
+ };
293
+ };
294
+ output: {
295
+ data: {
296
+ createdAt: string;
297
+ updatedAt: string;
298
+ metadata: {
299
+ [x: string]: import("hono/utils/types").JSONValue;
300
+ } | null;
301
+ value: string;
302
+ id: string;
303
+ kind: "other" | "website" | "email" | "phone" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
304
+ notes: string | null;
305
+ entityType: string;
306
+ entityId: string;
307
+ isPrimary: boolean;
308
+ label: string | null;
309
+ normalizedValue: string | null;
310
+ };
311
+ };
312
+ outputFormat: "json";
313
+ status: 201;
314
+ };
315
+ };
316
+ } & {
317
+ "/channel-contact-points/:contactPointId": {
318
+ $patch: {
319
+ input: {
320
+ param: {
321
+ contactPointId: string;
322
+ };
323
+ };
324
+ output: {
325
+ error: string;
326
+ };
327
+ outputFormat: "json";
328
+ status: 404;
329
+ } | {
330
+ input: {
331
+ param: {
332
+ contactPointId: string;
333
+ };
334
+ };
335
+ output: {
336
+ data: {
337
+ id: string;
338
+ entityType: string;
339
+ entityId: string;
340
+ kind: "other" | "website" | "email" | "phone" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
341
+ label: string | null;
342
+ value: string;
343
+ normalizedValue: string | null;
344
+ isPrimary: boolean;
345
+ notes: string | null;
346
+ metadata: {
347
+ [x: string]: import("hono/utils/types").JSONValue;
348
+ } | null;
349
+ createdAt: string;
350
+ updatedAt: string;
351
+ };
352
+ };
353
+ outputFormat: "json";
354
+ status: import("hono/utils/http-status").ContentfulStatusCode;
355
+ };
356
+ };
357
+ } & {
358
+ "/channel-contact-points/:contactPointId": {
359
+ $delete: {
360
+ input: {
361
+ param: {
362
+ contactPointId: string;
363
+ };
364
+ };
365
+ output: {
366
+ error: string;
367
+ };
368
+ outputFormat: "json";
369
+ status: 404;
370
+ } | {
371
+ input: {
372
+ param: {
373
+ contactPointId: string;
374
+ };
375
+ };
376
+ output: {
377
+ success: true;
378
+ };
379
+ outputFormat: "json";
380
+ status: import("hono/utils/http-status").ContentfulStatusCode;
381
+ };
382
+ };
383
+ } & {
384
+ "/channels/:id/contacts": {
385
+ $get: {
386
+ input: {
387
+ param: {
388
+ id: string;
389
+ };
390
+ };
391
+ output: {
392
+ error: string;
393
+ };
394
+ outputFormat: "json";
395
+ status: 404;
396
+ } | {
397
+ input: {
398
+ param: {
399
+ id: string;
400
+ };
401
+ };
402
+ output: {
403
+ data: {
404
+ id: string;
405
+ entityType: string;
406
+ entityId: string;
407
+ role: "primary" | "other" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting" | "legal";
408
+ name: string;
409
+ title: string | null;
410
+ email: string | null;
411
+ phone: string | null;
412
+ isPrimary: boolean;
413
+ notes: string | null;
414
+ metadata: {
415
+ [x: string]: import("hono/utils/types").JSONValue;
416
+ } | null;
417
+ createdAt: string;
418
+ updatedAt: string;
419
+ }[];
420
+ };
421
+ outputFormat: "json";
422
+ status: import("hono/utils/http-status").ContentfulStatusCode;
423
+ };
424
+ };
425
+ } & {
426
+ "/channels/:id/contacts": {
427
+ $post: {
428
+ input: {
429
+ param: {
430
+ id: string;
431
+ };
432
+ };
433
+ output: {
434
+ error: string;
435
+ };
436
+ outputFormat: "json";
437
+ status: 404;
438
+ } | {
439
+ input: {
440
+ param: {
441
+ id: string;
442
+ };
443
+ };
444
+ output: {
445
+ data: {
446
+ name: string;
447
+ createdAt: string;
448
+ updatedAt: string;
449
+ metadata: {
450
+ [x: string]: import("hono/utils/types").JSONValue;
451
+ } | null;
452
+ id: string;
453
+ title: string | null;
454
+ notes: string | null;
455
+ entityType: string;
456
+ entityId: string;
457
+ isPrimary: boolean;
458
+ email: string | null;
459
+ phone: string | null;
460
+ role: "primary" | "other" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting" | "legal";
461
+ };
462
+ };
463
+ outputFormat: "json";
464
+ status: 201;
465
+ };
466
+ };
467
+ } & {
468
+ "/channel-contacts/:contactId": {
469
+ $patch: {
470
+ input: {
471
+ param: {
472
+ contactId: string;
473
+ };
474
+ };
475
+ output: {
476
+ error: string;
477
+ };
478
+ outputFormat: "json";
479
+ status: 404;
480
+ } | {
481
+ input: {
482
+ param: {
483
+ contactId: string;
484
+ };
485
+ };
486
+ output: {
487
+ data: {
488
+ id: string;
489
+ entityType: string;
490
+ entityId: string;
491
+ role: "primary" | "other" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting" | "legal";
492
+ name: string;
493
+ title: string | null;
494
+ email: string | null;
495
+ phone: string | null;
496
+ isPrimary: boolean;
497
+ notes: string | null;
498
+ metadata: {
499
+ [x: string]: import("hono/utils/types").JSONValue;
500
+ } | null;
501
+ createdAt: string;
502
+ updatedAt: string;
503
+ };
504
+ };
505
+ outputFormat: "json";
506
+ status: import("hono/utils/http-status").ContentfulStatusCode;
507
+ };
508
+ };
509
+ } & {
510
+ "/channel-contacts/:contactId": {
511
+ $delete: {
512
+ input: {
513
+ param: {
514
+ contactId: string;
515
+ };
516
+ };
517
+ output: {
518
+ error: string;
519
+ };
520
+ outputFormat: "json";
521
+ status: 404;
522
+ } | {
523
+ input: {
524
+ param: {
525
+ contactId: string;
526
+ };
527
+ };
528
+ output: {
529
+ success: true;
530
+ };
531
+ outputFormat: "json";
532
+ status: import("hono/utils/http-status").ContentfulStatusCode;
533
+ };
534
+ };
535
+ } & {
536
+ "/contracts": {
537
+ $get: {
538
+ input: {};
539
+ output: {
540
+ data: {
541
+ id: string;
542
+ channelId: string;
543
+ supplierId: string | null;
544
+ status: "active" | "draft" | "expired" | "terminated";
545
+ startsAt: string;
546
+ endsAt: string | null;
547
+ paymentOwner: "operator" | "channel" | "split";
548
+ cancellationOwner: "operator" | "channel" | "mixed";
549
+ settlementTerms: string | null;
550
+ notes: string | null;
551
+ rateLimitRps: number | null;
552
+ rateLimitBurst: number | null;
553
+ rateLimitPriorityGates: {
554
+ [x: string]: number;
555
+ } | null;
556
+ policy: {
557
+ [x: string]: import("hono/utils/types").JSONValue;
558
+ } | null;
559
+ createdAt: string;
560
+ updatedAt: string;
561
+ }[];
562
+ total: number;
563
+ limit: number;
564
+ offset: number;
565
+ };
566
+ outputFormat: "json";
567
+ status: import("hono/utils/http-status").ContentfulStatusCode;
568
+ };
569
+ };
570
+ } & {
571
+ "/contracts": {
572
+ $post: {
573
+ input: {};
574
+ output: {
575
+ data: {
576
+ paymentOwner: "operator" | "channel" | "split";
577
+ createdAt: string;
578
+ updatedAt: string;
579
+ id: string;
580
+ status: "active" | "draft" | "expired" | "terminated";
581
+ rateLimitRps: number | null;
582
+ rateLimitBurst: number | null;
583
+ rateLimitPriorityGates: {
584
+ [x: string]: number;
585
+ } | null;
586
+ channelId: string;
587
+ policy: {
588
+ [x: string]: import("hono/utils/types").JSONValue;
589
+ } | null;
590
+ supplierId: string | null;
591
+ startsAt: string;
592
+ endsAt: string | null;
593
+ cancellationOwner: "operator" | "channel" | "mixed";
594
+ settlementTerms: string | null;
595
+ notes: string | null;
596
+ } | undefined;
597
+ };
598
+ outputFormat: "json";
599
+ status: 201;
600
+ };
601
+ };
602
+ } & {
603
+ "/contracts/batch-update": {
604
+ $post: {
605
+ input: {};
606
+ output: {
607
+ data: {
608
+ id: string;
609
+ channelId: string;
610
+ supplierId: string | null;
611
+ status: "active" | "draft" | "expired" | "terminated";
612
+ startsAt: string;
613
+ endsAt: string | null;
614
+ paymentOwner: "operator" | "channel" | "split";
615
+ cancellationOwner: "operator" | "channel" | "mixed";
616
+ settlementTerms: string | null;
617
+ notes: string | null;
618
+ rateLimitRps: number | null;
619
+ rateLimitBurst: number | null;
620
+ rateLimitPriorityGates: {
621
+ [x: string]: number;
622
+ } | null;
623
+ policy: {
624
+ [x: string]: import("hono/utils/types").JSONValue;
625
+ } | null;
626
+ createdAt: string;
627
+ updatedAt: string;
628
+ }[];
629
+ total: number;
630
+ succeeded: number;
631
+ failed: {
632
+ id: string;
633
+ error: string;
634
+ }[];
635
+ };
636
+ outputFormat: "json";
637
+ status: import("hono/utils/http-status").ContentfulStatusCode;
638
+ };
639
+ };
640
+ } & {
641
+ "/contracts/batch-delete": {
642
+ $post: {
643
+ input: {};
644
+ output: {
645
+ deletedIds: string[];
646
+ total: number;
647
+ succeeded: number;
648
+ failed: {
649
+ id: string;
650
+ error: string;
651
+ }[];
652
+ };
653
+ outputFormat: "json";
654
+ status: import("hono/utils/http-status").ContentfulStatusCode;
655
+ };
656
+ };
657
+ } & {
658
+ "/contracts/:id": {
659
+ $get: {
660
+ input: {
661
+ param: {
662
+ id: string;
663
+ };
664
+ };
665
+ output: {
666
+ error: string;
667
+ };
668
+ outputFormat: "json";
669
+ status: 404;
670
+ } | {
671
+ input: {
672
+ param: {
673
+ id: string;
674
+ };
675
+ };
676
+ output: {
677
+ data: {
678
+ id: string;
679
+ channelId: string;
680
+ supplierId: string | null;
681
+ status: "active" | "draft" | "expired" | "terminated";
682
+ startsAt: string;
683
+ endsAt: string | null;
684
+ paymentOwner: "operator" | "channel" | "split";
685
+ cancellationOwner: "operator" | "channel" | "mixed";
686
+ settlementTerms: string | null;
687
+ notes: string | null;
688
+ rateLimitRps: number | null;
689
+ rateLimitBurst: number | null;
690
+ rateLimitPriorityGates: {
691
+ [x: string]: number;
692
+ } | null;
693
+ policy: {
694
+ [x: string]: import("hono/utils/types").JSONValue;
695
+ } | null;
696
+ createdAt: string;
697
+ updatedAt: string;
698
+ };
699
+ };
700
+ outputFormat: "json";
701
+ status: import("hono/utils/http-status").ContentfulStatusCode;
702
+ };
703
+ };
704
+ } & {
705
+ "/contracts/:id": {
706
+ $patch: {
707
+ input: {
708
+ param: {
709
+ id: string;
710
+ };
711
+ };
712
+ output: {
713
+ error: string;
714
+ };
715
+ outputFormat: "json";
716
+ status: 404;
717
+ } | {
718
+ input: {
719
+ param: {
720
+ id: string;
721
+ };
722
+ };
723
+ output: {
724
+ data: {
725
+ id: string;
726
+ channelId: string;
727
+ supplierId: string | null;
728
+ status: "active" | "draft" | "expired" | "terminated";
729
+ startsAt: string;
730
+ endsAt: string | null;
731
+ paymentOwner: "operator" | "channel" | "split";
732
+ cancellationOwner: "operator" | "channel" | "mixed";
733
+ settlementTerms: string | null;
734
+ notes: string | null;
735
+ rateLimitRps: number | null;
736
+ rateLimitBurst: number | null;
737
+ rateLimitPriorityGates: {
738
+ [x: string]: number;
739
+ } | null;
740
+ policy: {
741
+ [x: string]: import("hono/utils/types").JSONValue;
742
+ } | null;
743
+ createdAt: string;
744
+ updatedAt: string;
745
+ };
746
+ };
747
+ outputFormat: "json";
748
+ status: import("hono/utils/http-status").ContentfulStatusCode;
749
+ };
750
+ };
751
+ } & {
752
+ "/contracts/:id": {
753
+ $delete: {
754
+ input: {
755
+ param: {
756
+ id: string;
757
+ };
758
+ };
759
+ output: {
760
+ error: string;
761
+ };
762
+ outputFormat: "json";
763
+ status: 404;
764
+ } | {
765
+ input: {
766
+ param: {
767
+ id: string;
768
+ };
769
+ };
770
+ output: {
771
+ success: true;
772
+ };
773
+ outputFormat: "json";
774
+ status: import("hono/utils/http-status").ContentfulStatusCode;
775
+ };
776
+ };
777
+ } & {
778
+ "/commission-rules": {
779
+ $get: {
780
+ input: {};
781
+ output: {
782
+ data: {
783
+ id: string;
784
+ contractId: string;
785
+ scope: "booking" | "product" | "rate" | "category";
786
+ productId: string | null;
787
+ externalRateId: string | null;
788
+ externalCategoryId: string | null;
789
+ commissionType: "fixed" | "percentage";
790
+ amountCents: number | null;
791
+ percentBasisPoints: number | null;
792
+ validFrom: string | null;
793
+ validTo: string | null;
794
+ createdAt: string;
795
+ updatedAt: string;
796
+ }[];
797
+ total: number;
798
+ limit: number;
799
+ offset: number;
800
+ };
801
+ outputFormat: "json";
802
+ status: import("hono/utils/http-status").ContentfulStatusCode;
803
+ };
804
+ };
805
+ } & {
806
+ "/commission-rules": {
807
+ $post: {
808
+ input: {};
809
+ output: {
810
+ data: {
811
+ createdAt: string;
812
+ updatedAt: string;
813
+ id: string;
814
+ productId: string | null;
815
+ externalRateId: string | null;
816
+ externalCategoryId: string | null;
817
+ contractId: string;
818
+ validFrom: string | null;
819
+ validTo: string | null;
820
+ scope: "booking" | "product" | "rate" | "category";
821
+ commissionType: "fixed" | "percentage";
822
+ amountCents: number | null;
823
+ percentBasisPoints: number | null;
824
+ } | undefined;
825
+ };
826
+ outputFormat: "json";
827
+ status: 201;
828
+ };
829
+ };
830
+ } & {
831
+ "/commission-rules/batch-update": {
832
+ $post: {
833
+ input: {};
834
+ output: {
835
+ data: {
836
+ id: string;
837
+ contractId: string;
838
+ scope: "booking" | "product" | "rate" | "category";
839
+ productId: string | null;
840
+ externalRateId: string | null;
841
+ externalCategoryId: string | null;
842
+ commissionType: "fixed" | "percentage";
843
+ amountCents: number | null;
844
+ percentBasisPoints: number | null;
845
+ validFrom: string | null;
846
+ validTo: string | null;
847
+ createdAt: string;
848
+ updatedAt: string;
849
+ }[];
850
+ total: number;
851
+ succeeded: number;
852
+ failed: {
853
+ id: string;
854
+ error: string;
855
+ }[];
856
+ };
857
+ outputFormat: "json";
858
+ status: import("hono/utils/http-status").ContentfulStatusCode;
859
+ };
860
+ };
861
+ } & {
862
+ "/commission-rules/batch-delete": {
863
+ $post: {
864
+ input: {};
865
+ output: {
866
+ deletedIds: string[];
867
+ total: number;
868
+ succeeded: number;
869
+ failed: {
870
+ id: string;
871
+ error: string;
872
+ }[];
873
+ };
874
+ outputFormat: "json";
875
+ status: import("hono/utils/http-status").ContentfulStatusCode;
876
+ };
877
+ };
878
+ } & {
879
+ "/commission-rules/:id": {
880
+ $get: {
881
+ input: {
882
+ param: {
883
+ id: string;
884
+ };
885
+ };
886
+ output: {
887
+ error: string;
888
+ };
889
+ outputFormat: "json";
890
+ status: 404;
891
+ } | {
892
+ input: {
893
+ param: {
894
+ id: string;
895
+ };
896
+ };
897
+ output: {
898
+ data: {
899
+ id: string;
900
+ contractId: string;
901
+ scope: "booking" | "product" | "rate" | "category";
902
+ productId: string | null;
903
+ externalRateId: string | null;
904
+ externalCategoryId: string | null;
905
+ commissionType: "fixed" | "percentage";
906
+ amountCents: number | null;
907
+ percentBasisPoints: number | null;
908
+ validFrom: string | null;
909
+ validTo: string | null;
910
+ createdAt: string;
911
+ updatedAt: string;
912
+ };
913
+ };
914
+ outputFormat: "json";
915
+ status: import("hono/utils/http-status").ContentfulStatusCode;
916
+ };
917
+ };
918
+ } & {
919
+ "/commission-rules/:id": {
920
+ $patch: {
921
+ input: {
922
+ param: {
923
+ id: string;
924
+ };
925
+ };
926
+ output: {
927
+ error: string;
928
+ };
929
+ outputFormat: "json";
930
+ status: 404;
931
+ } | {
932
+ input: {
933
+ param: {
934
+ id: string;
935
+ };
936
+ };
937
+ output: {
938
+ data: {
939
+ id: string;
940
+ contractId: string;
941
+ scope: "booking" | "product" | "rate" | "category";
942
+ productId: string | null;
943
+ externalRateId: string | null;
944
+ externalCategoryId: string | null;
945
+ commissionType: "fixed" | "percentage";
946
+ amountCents: number | null;
947
+ percentBasisPoints: number | null;
948
+ validFrom: string | null;
949
+ validTo: string | null;
950
+ createdAt: string;
951
+ updatedAt: string;
952
+ };
953
+ };
954
+ outputFormat: "json";
955
+ status: import("hono/utils/http-status").ContentfulStatusCode;
956
+ };
957
+ };
958
+ } & {
959
+ "/commission-rules/:id": {
960
+ $delete: {
961
+ input: {
962
+ param: {
963
+ id: string;
964
+ };
965
+ };
966
+ output: {
967
+ error: string;
968
+ };
969
+ outputFormat: "json";
970
+ status: 404;
971
+ } | {
972
+ input: {
973
+ param: {
974
+ id: string;
975
+ };
976
+ };
977
+ output: {
978
+ success: true;
979
+ };
980
+ outputFormat: "json";
981
+ status: import("hono/utils/http-status").ContentfulStatusCode;
982
+ };
983
+ };
984
+ } & {
985
+ "/product-mappings": {
986
+ $get: {
987
+ input: {};
988
+ output: {
989
+ data: {
990
+ id: string;
991
+ channelId: string;
992
+ productId: string;
993
+ externalProductId: string | null;
994
+ externalRateId: string | null;
995
+ externalCategoryId: string | null;
996
+ active: boolean;
997
+ sourceKind: string | null;
998
+ sourceConnectionId: string | null;
999
+ pushBookings: boolean;
1000
+ pushAvailability: boolean;
1001
+ pushContent: boolean;
1002
+ policy: {
1003
+ [x: string]: import("hono/utils/types").JSONValue;
1004
+ } | null;
1005
+ lastPushedContentHash: string | null;
1006
+ lastPushedContentAt: string | null;
1007
+ createdAt: string;
1008
+ updatedAt: string;
1009
+ }[];
1010
+ total: number;
1011
+ limit: number;
1012
+ offset: number;
1013
+ };
1014
+ outputFormat: "json";
1015
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1016
+ };
1017
+ };
1018
+ } & {
1019
+ "/product-mappings": {
1020
+ $post: {
1021
+ input: {};
1022
+ output: {
1023
+ data: {
1024
+ createdAt: string;
1025
+ updatedAt: string;
1026
+ id: string;
1027
+ active: boolean;
1028
+ channelId: string;
1029
+ sourceKind: string | null;
1030
+ sourceConnectionId: string | null;
1031
+ productId: string;
1032
+ externalProductId: string | null;
1033
+ externalRateId: string | null;
1034
+ externalCategoryId: string | null;
1035
+ pushBookings: boolean;
1036
+ pushAvailability: boolean;
1037
+ pushContent: boolean;
1038
+ policy: {
1039
+ [x: string]: import("hono/utils/types").JSONValue;
1040
+ } | null;
1041
+ lastPushedContentHash: string | null;
1042
+ lastPushedContentAt: string | null;
1043
+ } | undefined;
1044
+ };
1045
+ outputFormat: "json";
1046
+ status: 201;
1047
+ };
1048
+ };
1049
+ } & {
1050
+ "/product-mappings/batch-update": {
1051
+ $post: {
1052
+ input: {};
1053
+ output: {
1054
+ data: {
1055
+ id: string;
1056
+ channelId: string;
1057
+ productId: string;
1058
+ externalProductId: string | null;
1059
+ externalRateId: string | null;
1060
+ externalCategoryId: string | null;
1061
+ active: boolean;
1062
+ sourceKind: string | null;
1063
+ sourceConnectionId: string | null;
1064
+ pushBookings: boolean;
1065
+ pushAvailability: boolean;
1066
+ pushContent: boolean;
1067
+ policy: {
1068
+ [x: string]: import("hono/utils/types").JSONValue;
1069
+ } | null;
1070
+ lastPushedContentHash: string | null;
1071
+ lastPushedContentAt: string | null;
1072
+ createdAt: string;
1073
+ updatedAt: string;
1074
+ }[];
1075
+ total: number;
1076
+ succeeded: number;
1077
+ failed: {
1078
+ id: string;
1079
+ error: string;
1080
+ }[];
1081
+ };
1082
+ outputFormat: "json";
1083
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1084
+ };
1085
+ };
1086
+ } & {
1087
+ "/product-mappings/batch-delete": {
1088
+ $post: {
1089
+ input: {};
1090
+ output: {
1091
+ deletedIds: string[];
1092
+ total: number;
1093
+ succeeded: number;
1094
+ failed: {
1095
+ id: string;
1096
+ error: string;
1097
+ }[];
1098
+ };
1099
+ outputFormat: "json";
1100
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1101
+ };
1102
+ };
1103
+ } & {
1104
+ "/product-mappings/:id": {
1105
+ $get: {
1106
+ input: {
1107
+ param: {
1108
+ id: string;
1109
+ };
1110
+ };
1111
+ output: {
1112
+ error: string;
1113
+ };
1114
+ outputFormat: "json";
1115
+ status: 404;
1116
+ } | {
1117
+ input: {
1118
+ param: {
1119
+ id: string;
1120
+ };
1121
+ };
1122
+ output: {
1123
+ data: {
1124
+ id: string;
1125
+ channelId: string;
1126
+ productId: string;
1127
+ externalProductId: string | null;
1128
+ externalRateId: string | null;
1129
+ externalCategoryId: string | null;
1130
+ active: boolean;
1131
+ sourceKind: string | null;
1132
+ sourceConnectionId: string | null;
1133
+ pushBookings: boolean;
1134
+ pushAvailability: boolean;
1135
+ pushContent: boolean;
1136
+ policy: {
1137
+ [x: string]: import("hono/utils/types").JSONValue;
1138
+ } | null;
1139
+ lastPushedContentHash: string | null;
1140
+ lastPushedContentAt: string | null;
1141
+ createdAt: string;
1142
+ updatedAt: string;
1143
+ };
1144
+ };
1145
+ outputFormat: "json";
1146
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1147
+ };
1148
+ };
1149
+ } & {
1150
+ "/product-mappings/:id": {
1151
+ $patch: {
1152
+ input: {
1153
+ param: {
1154
+ id: string;
1155
+ };
1156
+ };
1157
+ output: {
1158
+ error: string;
1159
+ };
1160
+ outputFormat: "json";
1161
+ status: 404;
1162
+ } | {
1163
+ input: {
1164
+ param: {
1165
+ id: string;
1166
+ };
1167
+ };
1168
+ output: {
1169
+ data: {
1170
+ id: string;
1171
+ channelId: string;
1172
+ productId: string;
1173
+ externalProductId: string | null;
1174
+ externalRateId: string | null;
1175
+ externalCategoryId: string | null;
1176
+ active: boolean;
1177
+ sourceKind: string | null;
1178
+ sourceConnectionId: string | null;
1179
+ pushBookings: boolean;
1180
+ pushAvailability: boolean;
1181
+ pushContent: boolean;
1182
+ policy: {
1183
+ [x: string]: import("hono/utils/types").JSONValue;
1184
+ } | null;
1185
+ lastPushedContentHash: string | null;
1186
+ lastPushedContentAt: string | null;
1187
+ createdAt: string;
1188
+ updatedAt: string;
1189
+ };
1190
+ };
1191
+ outputFormat: "json";
1192
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1193
+ };
1194
+ };
1195
+ } & {
1196
+ "/product-mappings/:id": {
1197
+ $delete: {
1198
+ input: {
1199
+ param: {
1200
+ id: string;
1201
+ };
1202
+ };
1203
+ output: {
1204
+ error: string;
1205
+ };
1206
+ outputFormat: "json";
1207
+ status: 404;
1208
+ } | {
1209
+ input: {
1210
+ param: {
1211
+ id: string;
1212
+ };
1213
+ };
1214
+ output: {
1215
+ success: true;
1216
+ };
1217
+ outputFormat: "json";
1218
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1219
+ };
1220
+ };
1221
+ } & {
1222
+ "/booking-links": {
1223
+ $get: {
1224
+ input: {};
1225
+ output: {
1226
+ data: {
1227
+ id: string;
1228
+ channelId: string;
1229
+ bookingId: string;
1230
+ bookingItemId: string | null;
1231
+ externalBookingId: string | null;
1232
+ externalReference: string | null;
1233
+ externalStatus: string | null;
1234
+ bookedAtExternal: string | null;
1235
+ lastSyncedAt: string | null;
1236
+ sourceKind: string | null;
1237
+ sourceConnectionId: string | null;
1238
+ pushStatus: string;
1239
+ pushAttempts: number;
1240
+ lastPushAt: string | null;
1241
+ lastError: string | null;
1242
+ pushedPayloadHash: string | null;
1243
+ idempotencyKey: string | null;
1244
+ createdAt: string;
1245
+ updatedAt: string;
1246
+ }[];
1247
+ total: number;
1248
+ limit: number;
1249
+ offset: number;
1250
+ };
1251
+ outputFormat: "json";
1252
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1253
+ };
1254
+ };
1255
+ } & {
1256
+ "/booking-links": {
1257
+ $post: {
1258
+ input: {};
1259
+ output: {
1260
+ data: {
1261
+ bookingId: string;
1262
+ createdAt: string;
1263
+ updatedAt: string;
1264
+ idempotencyKey: string | null;
1265
+ id: string;
1266
+ channelId: string;
1267
+ bookingItemId: string | null;
1268
+ externalBookingId: string | null;
1269
+ externalReference: string | null;
1270
+ externalStatus: string | null;
1271
+ bookedAtExternal: string | null;
1272
+ lastSyncedAt: string | null;
1273
+ sourceKind: string | null;
1274
+ sourceConnectionId: string | null;
1275
+ pushStatus: string;
1276
+ pushAttempts: number;
1277
+ lastPushAt: string | null;
1278
+ lastError: string | null;
1279
+ pushedPayloadHash: string | null;
1280
+ } | undefined;
1281
+ };
1282
+ outputFormat: "json";
1283
+ status: 201;
1284
+ };
1285
+ };
1286
+ } & {
1287
+ "/booking-links/batch-update": {
1288
+ $post: {
1289
+ input: {};
1290
+ output: {
1291
+ data: {
1292
+ id: string;
1293
+ channelId: string;
1294
+ bookingId: string;
1295
+ bookingItemId: string | null;
1296
+ externalBookingId: string | null;
1297
+ externalReference: string | null;
1298
+ externalStatus: string | null;
1299
+ bookedAtExternal: string | null;
1300
+ lastSyncedAt: string | null;
1301
+ sourceKind: string | null;
1302
+ sourceConnectionId: string | null;
1303
+ pushStatus: string;
1304
+ pushAttempts: number;
1305
+ lastPushAt: string | null;
1306
+ lastError: string | null;
1307
+ pushedPayloadHash: string | null;
1308
+ idempotencyKey: string | null;
1309
+ createdAt: string;
1310
+ updatedAt: string;
1311
+ }[];
1312
+ total: number;
1313
+ succeeded: number;
1314
+ failed: {
1315
+ id: string;
1316
+ error: string;
1317
+ }[];
1318
+ };
1319
+ outputFormat: "json";
1320
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1321
+ };
1322
+ };
1323
+ } & {
1324
+ "/booking-links/batch-delete": {
1325
+ $post: {
1326
+ input: {};
1327
+ output: {
1328
+ deletedIds: string[];
1329
+ total: number;
1330
+ succeeded: number;
1331
+ failed: {
1332
+ id: string;
1333
+ error: string;
1334
+ }[];
1335
+ };
1336
+ outputFormat: "json";
1337
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1338
+ };
1339
+ };
1340
+ } & {
1341
+ "/booking-links/:id": {
1342
+ $get: {
1343
+ input: {
1344
+ param: {
1345
+ id: string;
1346
+ };
1347
+ };
1348
+ output: {
1349
+ error: string;
1350
+ };
1351
+ outputFormat: "json";
1352
+ status: 404;
1353
+ } | {
1354
+ input: {
1355
+ param: {
1356
+ id: string;
1357
+ };
1358
+ };
1359
+ output: {
1360
+ data: {
1361
+ id: string;
1362
+ channelId: string;
1363
+ bookingId: string;
1364
+ bookingItemId: string | null;
1365
+ externalBookingId: string | null;
1366
+ externalReference: string | null;
1367
+ externalStatus: string | null;
1368
+ bookedAtExternal: string | null;
1369
+ lastSyncedAt: string | null;
1370
+ sourceKind: string | null;
1371
+ sourceConnectionId: string | null;
1372
+ pushStatus: string;
1373
+ pushAttempts: number;
1374
+ lastPushAt: string | null;
1375
+ lastError: string | null;
1376
+ pushedPayloadHash: string | null;
1377
+ idempotencyKey: string | null;
1378
+ createdAt: string;
1379
+ updatedAt: string;
1380
+ };
1381
+ };
1382
+ outputFormat: "json";
1383
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1384
+ };
1385
+ };
1386
+ } & {
1387
+ "/booking-links/:id": {
1388
+ $patch: {
1389
+ input: {
1390
+ param: {
1391
+ id: string;
1392
+ };
1393
+ };
1394
+ output: {
1395
+ error: string;
1396
+ };
1397
+ outputFormat: "json";
1398
+ status: 404;
1399
+ } | {
1400
+ input: {
1401
+ param: {
1402
+ id: string;
1403
+ };
1404
+ };
1405
+ output: {
1406
+ data: {
1407
+ id: string;
1408
+ channelId: string;
1409
+ bookingId: string;
1410
+ bookingItemId: string | null;
1411
+ externalBookingId: string | null;
1412
+ externalReference: string | null;
1413
+ externalStatus: string | null;
1414
+ bookedAtExternal: string | null;
1415
+ lastSyncedAt: string | null;
1416
+ sourceKind: string | null;
1417
+ sourceConnectionId: string | null;
1418
+ pushStatus: string;
1419
+ pushAttempts: number;
1420
+ lastPushAt: string | null;
1421
+ lastError: string | null;
1422
+ pushedPayloadHash: string | null;
1423
+ idempotencyKey: string | null;
1424
+ createdAt: string;
1425
+ updatedAt: string;
1426
+ };
1427
+ };
1428
+ outputFormat: "json";
1429
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1430
+ };
1431
+ };
1432
+ } & {
1433
+ "/booking-links/:id": {
1434
+ $delete: {
1435
+ input: {
1436
+ param: {
1437
+ id: string;
1438
+ };
1439
+ };
1440
+ output: {
1441
+ error: string;
1442
+ };
1443
+ outputFormat: "json";
1444
+ status: 404;
1445
+ } | {
1446
+ input: {
1447
+ param: {
1448
+ id: string;
1449
+ };
1450
+ };
1451
+ output: {
1452
+ success: true;
1453
+ };
1454
+ outputFormat: "json";
1455
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1456
+ };
1457
+ };
1458
+ } & {
1459
+ "/webhook-events": {
1460
+ $get: {
1461
+ input: {};
1462
+ output: {
1463
+ data: {
1464
+ id: string;
1465
+ channelId: string;
1466
+ eventType: string;
1467
+ externalEventId: string | null;
1468
+ payload: {
1469
+ [x: string]: import("hono/utils/types").JSONValue;
1470
+ };
1471
+ receivedAt: string;
1472
+ processedAt: string | null;
1473
+ status: "pending" | "failed" | "processed" | "ignored";
1474
+ errorMessage: string | null;
1475
+ createdAt: string;
1476
+ }[];
1477
+ total: number;
1478
+ limit: number;
1479
+ offset: number;
1480
+ };
1481
+ outputFormat: "json";
1482
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1483
+ };
1484
+ };
1485
+ } & {
1486
+ "/webhook-events": {
1487
+ $post: {
1488
+ input: {};
1489
+ output: {
1490
+ data: {
1491
+ createdAt: string;
1492
+ id: string;
1493
+ status: "pending" | "failed" | "processed" | "ignored";
1494
+ channelId: string;
1495
+ errorMessage: string | null;
1496
+ eventType: string;
1497
+ externalEventId: string | null;
1498
+ payload: {
1499
+ [x: string]: import("hono/utils/types").JSONValue;
1500
+ };
1501
+ receivedAt: string;
1502
+ processedAt: string | null;
1503
+ } | undefined;
1504
+ };
1505
+ outputFormat: "json";
1506
+ status: 201;
1507
+ };
1508
+ };
1509
+ } & {
1510
+ "/webhook-events/batch-update": {
1511
+ $post: {
1512
+ input: {};
1513
+ output: {
1514
+ data: {
1515
+ id: string;
1516
+ channelId: string;
1517
+ eventType: string;
1518
+ externalEventId: string | null;
1519
+ payload: {
1520
+ [x: string]: import("hono/utils/types").JSONValue;
1521
+ };
1522
+ receivedAt: string;
1523
+ processedAt: string | null;
1524
+ status: "pending" | "failed" | "processed" | "ignored";
1525
+ errorMessage: string | null;
1526
+ createdAt: string;
1527
+ }[];
1528
+ total: number;
1529
+ succeeded: number;
1530
+ failed: {
1531
+ id: string;
1532
+ error: string;
1533
+ }[];
1534
+ };
1535
+ outputFormat: "json";
1536
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1537
+ };
1538
+ };
1539
+ } & {
1540
+ "/webhook-events/batch-delete": {
1541
+ $post: {
1542
+ input: {};
1543
+ output: {
1544
+ deletedIds: string[];
1545
+ total: number;
1546
+ succeeded: number;
1547
+ failed: {
1548
+ id: string;
1549
+ error: string;
1550
+ }[];
1551
+ };
1552
+ outputFormat: "json";
1553
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1554
+ };
1555
+ };
1556
+ } & {
1557
+ "/webhook-events/:id": {
1558
+ $get: {
1559
+ input: {
1560
+ param: {
1561
+ id: string;
1562
+ };
1563
+ };
1564
+ output: {
1565
+ error: string;
1566
+ };
1567
+ outputFormat: "json";
1568
+ status: 404;
1569
+ } | {
1570
+ input: {
1571
+ param: {
1572
+ id: string;
1573
+ };
1574
+ };
1575
+ output: {
1576
+ data: {
1577
+ id: string;
1578
+ channelId: string;
1579
+ eventType: string;
1580
+ externalEventId: string | null;
1581
+ payload: {
1582
+ [x: string]: import("hono/utils/types").JSONValue;
1583
+ };
1584
+ receivedAt: string;
1585
+ processedAt: string | null;
1586
+ status: "pending" | "failed" | "processed" | "ignored";
1587
+ errorMessage: string | null;
1588
+ createdAt: string;
1589
+ };
1590
+ };
1591
+ outputFormat: "json";
1592
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1593
+ };
1594
+ };
1595
+ } & {
1596
+ "/webhook-events/:id": {
1597
+ $patch: {
1598
+ input: {
1599
+ param: {
1600
+ id: string;
1601
+ };
1602
+ };
1603
+ output: {
1604
+ error: string;
1605
+ };
1606
+ outputFormat: "json";
1607
+ status: 404;
1608
+ } | {
1609
+ input: {
1610
+ param: {
1611
+ id: string;
1612
+ };
1613
+ };
1614
+ output: {
1615
+ data: {
1616
+ id: string;
1617
+ channelId: string;
1618
+ eventType: string;
1619
+ externalEventId: string | null;
1620
+ payload: {
1621
+ [x: string]: import("hono/utils/types").JSONValue;
1622
+ };
1623
+ receivedAt: string;
1624
+ processedAt: string | null;
1625
+ status: "pending" | "failed" | "processed" | "ignored";
1626
+ errorMessage: string | null;
1627
+ createdAt: string;
1628
+ };
1629
+ };
1630
+ outputFormat: "json";
1631
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1632
+ };
1633
+ };
1634
+ } & {
1635
+ "/webhook-events/:id": {
1636
+ $delete: {
1637
+ input: {
1638
+ param: {
1639
+ id: string;
1640
+ };
1641
+ };
1642
+ output: {
1643
+ error: string;
1644
+ };
1645
+ outputFormat: "json";
1646
+ status: 404;
1647
+ } | {
1648
+ input: {
1649
+ param: {
1650
+ id: string;
1651
+ };
1652
+ };
1653
+ output: {
1654
+ success: true;
1655
+ };
1656
+ outputFormat: "json";
1657
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1658
+ };
1659
+ };
1660
+ }) | import("hono/types").MergeSchemaPath<{
1661
+ "/inventory-allotments": {
1662
+ $get: {
1663
+ input: {};
1664
+ output: {
1665
+ data: {
1666
+ id: string;
1667
+ channelId: string;
1668
+ contractId: string | null;
1669
+ productId: string;
1670
+ optionId: string | null;
1671
+ startTimeId: string | null;
1672
+ validFrom: string | null;
1673
+ validTo: string | null;
1674
+ guaranteedCapacity: number | null;
1675
+ maxCapacity: number | null;
1676
+ active: boolean;
1677
+ notes: string | null;
1678
+ createdAt: string;
1679
+ updatedAt: string;
1680
+ }[];
1681
+ total: number;
1682
+ limit: number;
1683
+ offset: number;
1684
+ };
1685
+ outputFormat: "json";
1686
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1687
+ };
1688
+ };
1689
+ } & {
1690
+ "/inventory-allotments": {
1691
+ $post: {
1692
+ input: {};
1693
+ output: {
1694
+ data: {
1695
+ createdAt: string;
1696
+ updatedAt: string;
1697
+ id: string;
1698
+ active: boolean;
1699
+ channelId: string;
1700
+ productId: string;
1701
+ notes: string | null;
1702
+ contractId: string | null;
1703
+ optionId: string | null;
1704
+ startTimeId: string | null;
1705
+ validFrom: string | null;
1706
+ validTo: string | null;
1707
+ guaranteedCapacity: number | null;
1708
+ maxCapacity: number | null;
1709
+ } | undefined;
1710
+ };
1711
+ outputFormat: "json";
1712
+ status: 201;
1713
+ };
1714
+ };
1715
+ } & {
1716
+ "/inventory-allotments/batch-update": {
1717
+ $post: {
1718
+ input: {};
1719
+ output: {
1720
+ data: {
1721
+ id: string;
1722
+ channelId: string;
1723
+ contractId: string | null;
1724
+ productId: string;
1725
+ optionId: string | null;
1726
+ startTimeId: string | null;
1727
+ validFrom: string | null;
1728
+ validTo: string | null;
1729
+ guaranteedCapacity: number | null;
1730
+ maxCapacity: number | null;
1731
+ active: boolean;
1732
+ notes: string | null;
1733
+ createdAt: string;
1734
+ updatedAt: string;
1735
+ }[];
1736
+ total: number;
1737
+ succeeded: number;
1738
+ failed: {
1739
+ id: string;
1740
+ error: string;
1741
+ }[];
1742
+ };
1743
+ outputFormat: "json";
1744
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1745
+ };
1746
+ };
1747
+ } & {
1748
+ "/inventory-allotments/batch-delete": {
1749
+ $post: {
1750
+ input: {};
1751
+ output: {
1752
+ deletedIds: string[];
1753
+ total: number;
1754
+ succeeded: number;
1755
+ failed: {
1756
+ id: string;
1757
+ error: string;
1758
+ }[];
1759
+ };
1760
+ outputFormat: "json";
1761
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1762
+ };
1763
+ };
1764
+ } & {
1765
+ "/inventory-allotments/:id": {
1766
+ $get: {
1767
+ input: {
1768
+ param: {
1769
+ id: string;
1770
+ };
1771
+ };
1772
+ output: {
1773
+ error: string;
1774
+ };
1775
+ outputFormat: "json";
1776
+ status: 404;
1777
+ } | {
1778
+ input: {
1779
+ param: {
1780
+ id: string;
1781
+ };
1782
+ };
1783
+ output: {
1784
+ data: {
1785
+ id: string;
1786
+ channelId: string;
1787
+ contractId: string | null;
1788
+ productId: string;
1789
+ optionId: string | null;
1790
+ startTimeId: string | null;
1791
+ validFrom: string | null;
1792
+ validTo: string | null;
1793
+ guaranteedCapacity: number | null;
1794
+ maxCapacity: number | null;
1795
+ active: boolean;
1796
+ notes: string | null;
1797
+ createdAt: string;
1798
+ updatedAt: string;
1799
+ };
1800
+ };
1801
+ outputFormat: "json";
1802
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1803
+ };
1804
+ };
1805
+ } & {
1806
+ "/inventory-allotments/:id": {
1807
+ $patch: {
1808
+ input: {
1809
+ param: {
1810
+ id: string;
1811
+ };
1812
+ };
1813
+ output: {
1814
+ error: string;
1815
+ };
1816
+ outputFormat: "json";
1817
+ status: 404;
1818
+ } | {
1819
+ input: {
1820
+ param: {
1821
+ id: string;
1822
+ };
1823
+ };
1824
+ output: {
1825
+ data: {
1826
+ id: string;
1827
+ channelId: string;
1828
+ contractId: string | null;
1829
+ productId: string;
1830
+ optionId: string | null;
1831
+ startTimeId: string | null;
1832
+ validFrom: string | null;
1833
+ validTo: string | null;
1834
+ guaranteedCapacity: number | null;
1835
+ maxCapacity: number | null;
1836
+ active: boolean;
1837
+ notes: string | null;
1838
+ createdAt: string;
1839
+ updatedAt: string;
1840
+ };
1841
+ };
1842
+ outputFormat: "json";
1843
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1844
+ };
1845
+ };
1846
+ } & {
1847
+ "/inventory-allotments/:id": {
1848
+ $delete: {
1849
+ input: {
1850
+ param: {
1851
+ id: string;
1852
+ };
1853
+ };
1854
+ output: {
1855
+ error: string;
1856
+ };
1857
+ outputFormat: "json";
1858
+ status: 404;
1859
+ } | {
1860
+ input: {
1861
+ param: {
1862
+ id: string;
1863
+ };
1864
+ };
1865
+ output: {
1866
+ success: true;
1867
+ };
1868
+ outputFormat: "json";
1869
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1870
+ };
1871
+ };
1872
+ } & {
1873
+ "/inventory-allotment-targets": {
1874
+ $get: {
1875
+ input: {};
1876
+ output: {
1877
+ data: {
1878
+ id: string;
1879
+ allotmentId: string;
1880
+ slotId: string | null;
1881
+ startTimeId: string | null;
1882
+ dateLocal: string | null;
1883
+ guaranteedCapacity: number | null;
1884
+ maxCapacity: number | null;
1885
+ soldCapacity: number | null;
1886
+ remainingCapacity: number | null;
1887
+ active: boolean;
1888
+ createdAt: string;
1889
+ updatedAt: string;
1890
+ }[];
1891
+ total: number;
1892
+ limit: number;
1893
+ offset: number;
1894
+ };
1895
+ outputFormat: "json";
1896
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1897
+ };
1898
+ };
1899
+ } & {
1900
+ "/inventory-allotment-targets": {
1901
+ $post: {
1902
+ input: {};
1903
+ output: {
1904
+ data: {
1905
+ createdAt: string;
1906
+ updatedAt: string;
1907
+ id: string;
1908
+ active: boolean;
1909
+ startTimeId: string | null;
1910
+ guaranteedCapacity: number | null;
1911
+ maxCapacity: number | null;
1912
+ slotId: string | null;
1913
+ allotmentId: string;
1914
+ dateLocal: string | null;
1915
+ soldCapacity: number | null;
1916
+ remainingCapacity: number | null;
1917
+ } | undefined;
1918
+ };
1919
+ outputFormat: "json";
1920
+ status: 201;
1921
+ };
1922
+ };
1923
+ } & {
1924
+ "/inventory-allotment-targets/batch-update": {
1925
+ $post: {
1926
+ input: {};
1927
+ output: {
1928
+ data: {
1929
+ id: string;
1930
+ allotmentId: string;
1931
+ slotId: string | null;
1932
+ startTimeId: string | null;
1933
+ dateLocal: string | null;
1934
+ guaranteedCapacity: number | null;
1935
+ maxCapacity: number | null;
1936
+ soldCapacity: number | null;
1937
+ remainingCapacity: number | null;
1938
+ active: boolean;
1939
+ createdAt: string;
1940
+ updatedAt: string;
1941
+ }[];
1942
+ total: number;
1943
+ succeeded: number;
1944
+ failed: {
1945
+ id: string;
1946
+ error: string;
1947
+ }[];
1948
+ };
1949
+ outputFormat: "json";
1950
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1951
+ };
1952
+ };
1953
+ } & {
1954
+ "/inventory-allotment-targets/batch-delete": {
1955
+ $post: {
1956
+ input: {};
1957
+ output: {
1958
+ deletedIds: string[];
1959
+ total: number;
1960
+ succeeded: number;
1961
+ failed: {
1962
+ id: string;
1963
+ error: string;
1964
+ }[];
1965
+ };
1966
+ outputFormat: "json";
1967
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1968
+ };
1969
+ };
1970
+ } & {
1971
+ "/inventory-allotment-targets/:id": {
1972
+ $get: {
1973
+ input: {
1974
+ param: {
1975
+ id: string;
1976
+ };
1977
+ };
1978
+ output: {
1979
+ error: string;
1980
+ };
1981
+ outputFormat: "json";
1982
+ status: 404;
1983
+ } | {
1984
+ input: {
1985
+ param: {
1986
+ id: string;
1987
+ };
1988
+ };
1989
+ output: {
1990
+ data: {
1991
+ id: string;
1992
+ allotmentId: string;
1993
+ slotId: string | null;
1994
+ startTimeId: string | null;
1995
+ dateLocal: string | null;
1996
+ guaranteedCapacity: number | null;
1997
+ maxCapacity: number | null;
1998
+ soldCapacity: number | null;
1999
+ remainingCapacity: number | null;
2000
+ active: boolean;
2001
+ createdAt: string;
2002
+ updatedAt: string;
2003
+ };
2004
+ };
2005
+ outputFormat: "json";
2006
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2007
+ };
2008
+ };
2009
+ } & {
2010
+ "/inventory-allotment-targets/:id": {
2011
+ $patch: {
2012
+ input: {
2013
+ param: {
2014
+ id: string;
2015
+ };
2016
+ };
2017
+ output: {
2018
+ error: string;
2019
+ };
2020
+ outputFormat: "json";
2021
+ status: 404;
2022
+ } | {
2023
+ input: {
2024
+ param: {
2025
+ id: string;
2026
+ };
2027
+ };
2028
+ output: {
2029
+ data: {
2030
+ id: string;
2031
+ allotmentId: string;
2032
+ slotId: string | null;
2033
+ startTimeId: string | null;
2034
+ dateLocal: string | null;
2035
+ guaranteedCapacity: number | null;
2036
+ maxCapacity: number | null;
2037
+ soldCapacity: number | null;
2038
+ remainingCapacity: number | null;
2039
+ active: boolean;
2040
+ createdAt: string;
2041
+ updatedAt: string;
2042
+ };
2043
+ };
2044
+ outputFormat: "json";
2045
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2046
+ };
2047
+ };
2048
+ } & {
2049
+ "/inventory-allotment-targets/:id": {
2050
+ $delete: {
2051
+ input: {
2052
+ param: {
2053
+ id: string;
2054
+ };
2055
+ };
2056
+ output: {
2057
+ error: string;
2058
+ };
2059
+ outputFormat: "json";
2060
+ status: 404;
2061
+ } | {
2062
+ input: {
2063
+ param: {
2064
+ id: string;
2065
+ };
2066
+ };
2067
+ output: {
2068
+ success: true;
2069
+ };
2070
+ outputFormat: "json";
2071
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2072
+ };
2073
+ };
2074
+ } & {
2075
+ "/inventory-release-rules": {
2076
+ $get: {
2077
+ input: {};
2078
+ output: {
2079
+ data: {
2080
+ id: string;
2081
+ allotmentId: string;
2082
+ releaseMode: "manual" | "automatic";
2083
+ releaseDaysBeforeStart: number | null;
2084
+ releaseHoursBeforeStart: number | null;
2085
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
2086
+ notes: string | null;
2087
+ createdAt: string;
2088
+ updatedAt: string;
2089
+ }[];
2090
+ total: number;
2091
+ limit: number;
2092
+ offset: number;
2093
+ };
2094
+ outputFormat: "json";
2095
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2096
+ };
2097
+ };
2098
+ } & {
2099
+ "/inventory-release-rules": {
2100
+ $post: {
2101
+ input: {};
2102
+ output: {
2103
+ data: {
2104
+ createdAt: string;
2105
+ updatedAt: string;
2106
+ id: string;
2107
+ notes: string | null;
2108
+ allotmentId: string;
2109
+ releaseMode: "manual" | "automatic";
2110
+ releaseDaysBeforeStart: number | null;
2111
+ releaseHoursBeforeStart: number | null;
2112
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
2113
+ } | undefined;
2114
+ };
2115
+ outputFormat: "json";
2116
+ status: 201;
2117
+ };
2118
+ };
2119
+ } & {
2120
+ "/inventory-release-rules/batch-update": {
2121
+ $post: {
2122
+ input: {};
2123
+ output: {
2124
+ data: {
2125
+ id: string;
2126
+ allotmentId: string;
2127
+ releaseMode: "manual" | "automatic";
2128
+ releaseDaysBeforeStart: number | null;
2129
+ releaseHoursBeforeStart: number | null;
2130
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
2131
+ notes: string | null;
2132
+ createdAt: string;
2133
+ updatedAt: string;
2134
+ }[];
2135
+ total: number;
2136
+ succeeded: number;
2137
+ failed: {
2138
+ id: string;
2139
+ error: string;
2140
+ }[];
2141
+ };
2142
+ outputFormat: "json";
2143
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2144
+ };
2145
+ };
2146
+ } & {
2147
+ "/inventory-release-rules/batch-delete": {
2148
+ $post: {
2149
+ input: {};
2150
+ output: {
2151
+ deletedIds: string[];
2152
+ total: number;
2153
+ succeeded: number;
2154
+ failed: {
2155
+ id: string;
2156
+ error: string;
2157
+ }[];
2158
+ };
2159
+ outputFormat: "json";
2160
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2161
+ };
2162
+ };
2163
+ } & {
2164
+ "/inventory-release-rules/:id": {
2165
+ $get: {
2166
+ input: {
2167
+ param: {
2168
+ id: string;
2169
+ };
2170
+ };
2171
+ output: {
2172
+ error: string;
2173
+ };
2174
+ outputFormat: "json";
2175
+ status: 404;
2176
+ } | {
2177
+ input: {
2178
+ param: {
2179
+ id: string;
2180
+ };
2181
+ };
2182
+ output: {
2183
+ data: {
2184
+ id: string;
2185
+ allotmentId: string;
2186
+ releaseMode: "manual" | "automatic";
2187
+ releaseDaysBeforeStart: number | null;
2188
+ releaseHoursBeforeStart: number | null;
2189
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
2190
+ notes: string | null;
2191
+ createdAt: string;
2192
+ updatedAt: string;
2193
+ };
2194
+ };
2195
+ outputFormat: "json";
2196
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2197
+ };
2198
+ };
2199
+ } & {
2200
+ "/inventory-release-rules/:id": {
2201
+ $patch: {
2202
+ input: {
2203
+ param: {
2204
+ id: string;
2205
+ };
2206
+ };
2207
+ output: {
2208
+ error: string;
2209
+ };
2210
+ outputFormat: "json";
2211
+ status: 404;
2212
+ } | {
2213
+ input: {
2214
+ param: {
2215
+ id: string;
2216
+ };
2217
+ };
2218
+ output: {
2219
+ data: {
2220
+ id: string;
2221
+ allotmentId: string;
2222
+ releaseMode: "manual" | "automatic";
2223
+ releaseDaysBeforeStart: number | null;
2224
+ releaseHoursBeforeStart: number | null;
2225
+ unsoldAction: "release_to_general_pool" | "expire" | "retain";
2226
+ notes: string | null;
2227
+ createdAt: string;
2228
+ updatedAt: string;
2229
+ };
2230
+ };
2231
+ outputFormat: "json";
2232
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2233
+ };
2234
+ };
2235
+ } & {
2236
+ "/inventory-release-rules/:id": {
2237
+ $delete: {
2238
+ input: {
2239
+ param: {
2240
+ id: string;
2241
+ };
2242
+ };
2243
+ output: {
2244
+ error: string;
2245
+ };
2246
+ outputFormat: "json";
2247
+ status: 404;
2248
+ } | {
2249
+ input: {
2250
+ param: {
2251
+ id: string;
2252
+ };
2253
+ };
2254
+ output: {
2255
+ success: true;
2256
+ };
2257
+ outputFormat: "json";
2258
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2259
+ };
2260
+ };
2261
+ }, "/"> | import("hono/types").MergeSchemaPath<{
2262
+ "/settlement-runs": {
2263
+ $get: {
2264
+ input: {};
2265
+ output: {
2266
+ data: {
2267
+ id: string;
2268
+ channelId: string;
2269
+ contractId: string | null;
2270
+ status: "void" | "draft" | "open" | "posted" | "paid";
2271
+ currencyCode: string | null;
2272
+ periodStart: string | null;
2273
+ periodEnd: string | null;
2274
+ statementReference: string | null;
2275
+ generatedAt: string | null;
2276
+ postedAt: string | null;
2277
+ paidAt: string | null;
2278
+ notes: string | null;
2279
+ metadata: {
2280
+ [x: string]: import("hono/utils/types").JSONValue;
2281
+ } | null;
2282
+ createdAt: string;
2283
+ updatedAt: string;
2284
+ }[];
2285
+ total: number;
2286
+ limit: number;
2287
+ offset: number;
2288
+ };
2289
+ outputFormat: "json";
2290
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2291
+ };
2292
+ };
2293
+ } & {
2294
+ "/settlement-runs": {
2295
+ $post: {
2296
+ input: {};
2297
+ output: {
2298
+ data: {
2299
+ createdAt: string;
2300
+ updatedAt: string;
2301
+ metadata: {
2302
+ [x: string]: import("hono/utils/types").JSONValue;
2303
+ } | null;
2304
+ id: string;
2305
+ status: "void" | "draft" | "open" | "posted" | "paid";
2306
+ channelId: string;
2307
+ notes: string | null;
2308
+ contractId: string | null;
2309
+ paidAt: string | null;
2310
+ currencyCode: string | null;
2311
+ periodStart: string | null;
2312
+ periodEnd: string | null;
2313
+ statementReference: string | null;
2314
+ generatedAt: string | null;
2315
+ postedAt: string | null;
2316
+ } | undefined;
2317
+ };
2318
+ outputFormat: "json";
2319
+ status: 201;
2320
+ };
2321
+ };
2322
+ } & {
2323
+ "/settlement-runs/:id": {
2324
+ $get: {
2325
+ input: {
2326
+ param: {
2327
+ id: string;
2328
+ };
2329
+ };
2330
+ output: {
2331
+ error: string;
2332
+ };
2333
+ outputFormat: "json";
2334
+ status: 404;
2335
+ } | {
2336
+ input: {
2337
+ param: {
2338
+ id: string;
2339
+ };
2340
+ };
2341
+ output: {
2342
+ data: {
2343
+ id: string;
2344
+ channelId: string;
2345
+ contractId: string | null;
2346
+ status: "void" | "draft" | "open" | "posted" | "paid";
2347
+ currencyCode: string | null;
2348
+ periodStart: string | null;
2349
+ periodEnd: string | null;
2350
+ statementReference: string | null;
2351
+ generatedAt: string | null;
2352
+ postedAt: string | null;
2353
+ paidAt: string | null;
2354
+ notes: string | null;
2355
+ metadata: {
2356
+ [x: string]: import("hono/utils/types").JSONValue;
2357
+ } | null;
2358
+ createdAt: string;
2359
+ updatedAt: string;
2360
+ };
2361
+ };
2362
+ outputFormat: "json";
2363
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2364
+ };
2365
+ };
2366
+ } & {
2367
+ "/settlement-runs/:id": {
2368
+ $patch: {
2369
+ input: {
2370
+ param: {
2371
+ id: string;
2372
+ };
2373
+ };
2374
+ output: {
2375
+ error: string;
2376
+ };
2377
+ outputFormat: "json";
2378
+ status: 404;
2379
+ } | {
2380
+ input: {
2381
+ param: {
2382
+ id: string;
2383
+ };
2384
+ };
2385
+ output: {
2386
+ data: {
2387
+ id: string;
2388
+ channelId: string;
2389
+ contractId: string | null;
2390
+ status: "void" | "draft" | "open" | "posted" | "paid";
2391
+ currencyCode: string | null;
2392
+ periodStart: string | null;
2393
+ periodEnd: string | null;
2394
+ statementReference: string | null;
2395
+ generatedAt: string | null;
2396
+ postedAt: string | null;
2397
+ paidAt: string | null;
2398
+ notes: string | null;
2399
+ metadata: {
2400
+ [x: string]: import("hono/utils/types").JSONValue;
2401
+ } | null;
2402
+ createdAt: string;
2403
+ updatedAt: string;
2404
+ };
2405
+ };
2406
+ outputFormat: "json";
2407
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2408
+ };
2409
+ };
2410
+ } & {
2411
+ "/settlement-runs/:id": {
2412
+ $delete: {
2413
+ input: {
2414
+ param: {
2415
+ id: string;
2416
+ };
2417
+ };
2418
+ output: {
2419
+ error: string;
2420
+ };
2421
+ outputFormat: "json";
2422
+ status: 404;
2423
+ } | {
2424
+ input: {
2425
+ param: {
2426
+ id: string;
2427
+ };
2428
+ };
2429
+ output: {
2430
+ success: true;
2431
+ };
2432
+ outputFormat: "json";
2433
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2434
+ };
2435
+ };
2436
+ } & {
2437
+ "/settlement-items": {
2438
+ $get: {
2439
+ input: {};
2440
+ output: {
2441
+ data: {
2442
+ id: string;
2443
+ settlementRunId: string;
2444
+ bookingLinkId: string | null;
2445
+ bookingId: string | null;
2446
+ commissionRuleId: string | null;
2447
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
2448
+ grossAmountCents: number;
2449
+ commissionAmountCents: number;
2450
+ netRemittanceAmountCents: number;
2451
+ currencyCode: string | null;
2452
+ remittanceDueAt: string | null;
2453
+ paidAt: string | null;
2454
+ notes: string | null;
2455
+ createdAt: string;
2456
+ updatedAt: string;
2457
+ }[];
2458
+ total: number;
2459
+ limit: number;
2460
+ offset: number;
2461
+ };
2462
+ outputFormat: "json";
2463
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2464
+ };
2465
+ };
2466
+ } & {
2467
+ "/settlement-items": {
2468
+ $post: {
2469
+ input: {};
2470
+ output: {
2471
+ data: {
2472
+ bookingId: string | null;
2473
+ createdAt: string;
2474
+ updatedAt: string;
2475
+ id: string;
2476
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
2477
+ notes: string | null;
2478
+ paidAt: string | null;
2479
+ currencyCode: string | null;
2480
+ settlementRunId: string;
2481
+ bookingLinkId: string | null;
2482
+ commissionRuleId: string | null;
2483
+ grossAmountCents: number;
2484
+ commissionAmountCents: number;
2485
+ netRemittanceAmountCents: number;
2486
+ remittanceDueAt: string | null;
2487
+ } | undefined;
2488
+ };
2489
+ outputFormat: "json";
2490
+ status: 201;
2491
+ };
2492
+ };
2493
+ } & {
2494
+ "/settlement-items/:id": {
2495
+ $get: {
2496
+ input: {
2497
+ param: {
2498
+ id: string;
2499
+ };
2500
+ };
2501
+ output: {
2502
+ error: string;
2503
+ };
2504
+ outputFormat: "json";
2505
+ status: 404;
2506
+ } | {
2507
+ input: {
2508
+ param: {
2509
+ id: string;
2510
+ };
2511
+ };
2512
+ output: {
2513
+ data: {
2514
+ id: string;
2515
+ settlementRunId: string;
2516
+ bookingLinkId: string | null;
2517
+ bookingId: string | null;
2518
+ commissionRuleId: string | null;
2519
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
2520
+ grossAmountCents: number;
2521
+ commissionAmountCents: number;
2522
+ netRemittanceAmountCents: number;
2523
+ currencyCode: string | null;
2524
+ remittanceDueAt: string | null;
2525
+ paidAt: string | null;
2526
+ notes: string | null;
2527
+ createdAt: string;
2528
+ updatedAt: string;
2529
+ };
2530
+ };
2531
+ outputFormat: "json";
2532
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2533
+ };
2534
+ };
2535
+ } & {
2536
+ "/settlement-items/:id": {
2537
+ $patch: {
2538
+ input: {
2539
+ param: {
2540
+ id: string;
2541
+ };
2542
+ };
2543
+ output: {
2544
+ error: string;
2545
+ };
2546
+ outputFormat: "json";
2547
+ status: 404;
2548
+ } | {
2549
+ input: {
2550
+ param: {
2551
+ id: string;
2552
+ };
2553
+ };
2554
+ output: {
2555
+ data: {
2556
+ id: string;
2557
+ settlementRunId: string;
2558
+ bookingLinkId: string | null;
2559
+ bookingId: string | null;
2560
+ commissionRuleId: string | null;
2561
+ status: "void" | "pending" | "paid" | "approved" | "disputed";
2562
+ grossAmountCents: number;
2563
+ commissionAmountCents: number;
2564
+ netRemittanceAmountCents: number;
2565
+ currencyCode: string | null;
2566
+ remittanceDueAt: string | null;
2567
+ paidAt: string | null;
2568
+ notes: string | null;
2569
+ createdAt: string;
2570
+ updatedAt: string;
2571
+ };
2572
+ };
2573
+ outputFormat: "json";
2574
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2575
+ };
2576
+ };
2577
+ } & {
2578
+ "/settlement-items/:id": {
2579
+ $delete: {
2580
+ input: {
2581
+ param: {
2582
+ id: string;
2583
+ };
2584
+ };
2585
+ output: {
2586
+ error: string;
2587
+ };
2588
+ outputFormat: "json";
2589
+ status: 404;
2590
+ } | {
2591
+ input: {
2592
+ param: {
2593
+ id: string;
2594
+ };
2595
+ };
2596
+ output: {
2597
+ success: true;
2598
+ };
2599
+ outputFormat: "json";
2600
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2601
+ };
2602
+ };
2603
+ } & {
2604
+ "/reconciliation-runs": {
2605
+ $get: {
2606
+ input: {};
2607
+ output: {
2608
+ data: {
2609
+ id: string;
2610
+ channelId: string;
2611
+ contractId: string | null;
2612
+ status: "archived" | "draft" | "completed" | "running";
2613
+ periodStart: string | null;
2614
+ periodEnd: string | null;
2615
+ externalReportReference: string | null;
2616
+ startedAt: string | null;
2617
+ completedAt: string | null;
2618
+ notes: string | null;
2619
+ metadata: {
2620
+ [x: string]: import("hono/utils/types").JSONValue;
2621
+ } | null;
2622
+ createdAt: string;
2623
+ updatedAt: string;
2624
+ }[];
2625
+ total: number;
2626
+ limit: number;
2627
+ offset: number;
2628
+ };
2629
+ outputFormat: "json";
2630
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2631
+ };
2632
+ };
2633
+ } & {
2634
+ "/reconciliation-runs": {
2635
+ $post: {
2636
+ input: {};
2637
+ output: {
2638
+ data: {
2639
+ createdAt: string;
2640
+ updatedAt: string;
2641
+ metadata: {
2642
+ [x: string]: import("hono/utils/types").JSONValue;
2643
+ } | null;
2644
+ id: string;
2645
+ status: "archived" | "draft" | "completed" | "running";
2646
+ channelId: string;
2647
+ startedAt: string | null;
2648
+ notes: string | null;
2649
+ contractId: string | null;
2650
+ completedAt: string | null;
2651
+ periodStart: string | null;
2652
+ periodEnd: string | null;
2653
+ externalReportReference: string | null;
2654
+ } | undefined;
2655
+ };
2656
+ outputFormat: "json";
2657
+ status: 201;
2658
+ };
2659
+ };
2660
+ } & {
2661
+ "/reconciliation-runs/:id": {
2662
+ $get: {
2663
+ input: {
2664
+ param: {
2665
+ id: string;
2666
+ };
2667
+ };
2668
+ output: {
2669
+ error: string;
2670
+ };
2671
+ outputFormat: "json";
2672
+ status: 404;
2673
+ } | {
2674
+ input: {
2675
+ param: {
2676
+ id: string;
2677
+ };
2678
+ };
2679
+ output: {
2680
+ data: {
2681
+ id: string;
2682
+ channelId: string;
2683
+ contractId: string | null;
2684
+ status: "archived" | "draft" | "completed" | "running";
2685
+ periodStart: string | null;
2686
+ periodEnd: string | null;
2687
+ externalReportReference: string | null;
2688
+ startedAt: string | null;
2689
+ completedAt: string | null;
2690
+ notes: string | null;
2691
+ metadata: {
2692
+ [x: string]: import("hono/utils/types").JSONValue;
2693
+ } | null;
2694
+ createdAt: string;
2695
+ updatedAt: string;
2696
+ };
2697
+ };
2698
+ outputFormat: "json";
2699
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2700
+ };
2701
+ };
2702
+ } & {
2703
+ "/reconciliation-runs/:id": {
2704
+ $patch: {
2705
+ input: {
2706
+ param: {
2707
+ id: string;
2708
+ };
2709
+ };
2710
+ output: {
2711
+ error: string;
2712
+ };
2713
+ outputFormat: "json";
2714
+ status: 404;
2715
+ } | {
2716
+ input: {
2717
+ param: {
2718
+ id: string;
2719
+ };
2720
+ };
2721
+ output: {
2722
+ data: {
2723
+ id: string;
2724
+ channelId: string;
2725
+ contractId: string | null;
2726
+ status: "archived" | "draft" | "completed" | "running";
2727
+ periodStart: string | null;
2728
+ periodEnd: string | null;
2729
+ externalReportReference: string | null;
2730
+ startedAt: string | null;
2731
+ completedAt: string | null;
2732
+ notes: string | null;
2733
+ metadata: {
2734
+ [x: string]: import("hono/utils/types").JSONValue;
2735
+ } | null;
2736
+ createdAt: string;
2737
+ updatedAt: string;
2738
+ };
2739
+ };
2740
+ outputFormat: "json";
2741
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2742
+ };
2743
+ };
2744
+ } & {
2745
+ "/reconciliation-runs/:id": {
2746
+ $delete: {
2747
+ input: {
2748
+ param: {
2749
+ id: string;
2750
+ };
2751
+ };
2752
+ output: {
2753
+ error: string;
2754
+ };
2755
+ outputFormat: "json";
2756
+ status: 404;
2757
+ } | {
2758
+ input: {
2759
+ param: {
2760
+ id: string;
2761
+ };
2762
+ };
2763
+ output: {
2764
+ success: true;
2765
+ };
2766
+ outputFormat: "json";
2767
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2768
+ };
2769
+ };
2770
+ } & {
2771
+ "/reconciliation-items": {
2772
+ $get: {
2773
+ input: {};
2774
+ output: {
2775
+ data: {
2776
+ id: string;
2777
+ reconciliationRunId: string;
2778
+ bookingLinkId: string | null;
2779
+ bookingId: string | null;
2780
+ externalBookingId: string | null;
2781
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
2782
+ severity: "error" | "info" | "warning";
2783
+ resolutionStatus: "ignored" | "open" | "resolved";
2784
+ notes: string | null;
2785
+ resolvedAt: string | null;
2786
+ createdAt: string;
2787
+ updatedAt: string;
2788
+ }[];
2789
+ total: number;
2790
+ limit: number;
2791
+ offset: number;
2792
+ };
2793
+ outputFormat: "json";
2794
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2795
+ };
2796
+ };
2797
+ } & {
2798
+ "/reconciliation-items": {
2799
+ $post: {
2800
+ input: {};
2801
+ output: {
2802
+ data: {
2803
+ bookingId: string | null;
2804
+ createdAt: string;
2805
+ updatedAt: string;
2806
+ id: string;
2807
+ externalBookingId: string | null;
2808
+ notes: string | null;
2809
+ bookingLinkId: string | null;
2810
+ reconciliationRunId: string;
2811
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
2812
+ resolutionStatus: "ignored" | "open" | "resolved";
2813
+ severity: "error" | "info" | "warning";
2814
+ resolvedAt: string | null;
2815
+ } | undefined;
2816
+ };
2817
+ outputFormat: "json";
2818
+ status: 201;
2819
+ };
2820
+ };
2821
+ } & {
2822
+ "/reconciliation-items/:id": {
2823
+ $get: {
2824
+ input: {
2825
+ param: {
2826
+ id: string;
2827
+ };
2828
+ };
2829
+ output: {
2830
+ error: string;
2831
+ };
2832
+ outputFormat: "json";
2833
+ status: 404;
2834
+ } | {
2835
+ input: {
2836
+ param: {
2837
+ id: string;
2838
+ };
2839
+ };
2840
+ output: {
2841
+ data: {
2842
+ id: string;
2843
+ reconciliationRunId: string;
2844
+ bookingLinkId: string | null;
2845
+ bookingId: string | null;
2846
+ externalBookingId: string | null;
2847
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
2848
+ severity: "error" | "info" | "warning";
2849
+ resolutionStatus: "ignored" | "open" | "resolved";
2850
+ notes: string | null;
2851
+ resolvedAt: string | null;
2852
+ createdAt: string;
2853
+ updatedAt: string;
2854
+ };
2855
+ };
2856
+ outputFormat: "json";
2857
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2858
+ };
2859
+ };
2860
+ } & {
2861
+ "/reconciliation-items/:id": {
2862
+ $patch: {
2863
+ input: {
2864
+ param: {
2865
+ id: string;
2866
+ };
2867
+ };
2868
+ output: {
2869
+ error: string;
2870
+ };
2871
+ outputFormat: "json";
2872
+ status: 404;
2873
+ } | {
2874
+ input: {
2875
+ param: {
2876
+ id: string;
2877
+ };
2878
+ };
2879
+ output: {
2880
+ data: {
2881
+ id: string;
2882
+ reconciliationRunId: string;
2883
+ bookingLinkId: string | null;
2884
+ bookingId: string | null;
2885
+ externalBookingId: string | null;
2886
+ issueType: "other" | "missing_booking" | "status_mismatch" | "amount_mismatch" | "cancel_mismatch" | "missing_payout";
2887
+ severity: "error" | "info" | "warning";
2888
+ resolutionStatus: "ignored" | "open" | "resolved";
2889
+ notes: string | null;
2890
+ resolvedAt: string | null;
2891
+ createdAt: string;
2892
+ updatedAt: string;
2893
+ };
2894
+ };
2895
+ outputFormat: "json";
2896
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2897
+ };
2898
+ };
2899
+ } & {
2900
+ "/reconciliation-items/:id": {
2901
+ $delete: {
2902
+ input: {
2903
+ param: {
2904
+ id: string;
2905
+ };
2906
+ };
2907
+ output: {
2908
+ error: string;
2909
+ };
2910
+ outputFormat: "json";
2911
+ status: 404;
2912
+ } | {
2913
+ input: {
2914
+ param: {
2915
+ id: string;
2916
+ };
2917
+ };
2918
+ output: {
2919
+ success: true;
2920
+ };
2921
+ outputFormat: "json";
2922
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2923
+ };
2924
+ };
2925
+ } & {
2926
+ "/inventory-release-executions": {
2927
+ $get: {
2928
+ input: {};
2929
+ output: {
2930
+ data: {
2931
+ id: string;
2932
+ allotmentId: string;
2933
+ releaseRuleId: string | null;
2934
+ targetId: string | null;
2935
+ slotId: string | null;
2936
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
2937
+ status: "pending" | "failed" | "skipped" | "completed";
2938
+ releasedCapacity: number | null;
2939
+ executedAt: string | null;
2940
+ notes: string | null;
2941
+ metadata: {
2942
+ [x: string]: import("hono/utils/types").JSONValue;
2943
+ } | null;
2944
+ createdAt: string;
2945
+ updatedAt: string;
2946
+ }[];
2947
+ total: number;
2948
+ limit: number;
2949
+ offset: number;
2950
+ };
2951
+ outputFormat: "json";
2952
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2953
+ };
2954
+ };
2955
+ } & {
2956
+ "/inventory-release-executions": {
2957
+ $post: {
2958
+ input: {};
2959
+ output: {
2960
+ data: {
2961
+ createdAt: string;
2962
+ updatedAt: string;
2963
+ metadata: {
2964
+ [x: string]: import("hono/utils/types").JSONValue;
2965
+ } | null;
2966
+ id: string;
2967
+ status: "pending" | "failed" | "skipped" | "completed";
2968
+ notes: string | null;
2969
+ slotId: string | null;
2970
+ allotmentId: string;
2971
+ releaseRuleId: string | null;
2972
+ targetId: string | null;
2973
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
2974
+ releasedCapacity: number | null;
2975
+ executedAt: string | null;
2976
+ } | undefined;
2977
+ };
2978
+ outputFormat: "json";
2979
+ status: 201;
2980
+ };
2981
+ };
2982
+ } & {
2983
+ "/inventory-release-executions/:id": {
2984
+ $get: {
2985
+ input: {
2986
+ param: {
2987
+ id: string;
2988
+ };
2989
+ };
2990
+ output: {
2991
+ error: string;
2992
+ };
2993
+ outputFormat: "json";
2994
+ status: 404;
2995
+ } | {
2996
+ input: {
2997
+ param: {
2998
+ id: string;
2999
+ };
3000
+ };
3001
+ output: {
3002
+ data: {
3003
+ id: string;
3004
+ allotmentId: string;
3005
+ releaseRuleId: string | null;
3006
+ targetId: string | null;
3007
+ slotId: string | null;
3008
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
3009
+ status: "pending" | "failed" | "skipped" | "completed";
3010
+ releasedCapacity: number | null;
3011
+ executedAt: string | null;
3012
+ notes: string | null;
3013
+ metadata: {
3014
+ [x: string]: import("hono/utils/types").JSONValue;
3015
+ } | null;
3016
+ createdAt: string;
3017
+ updatedAt: string;
3018
+ };
3019
+ };
3020
+ outputFormat: "json";
3021
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3022
+ };
3023
+ };
3024
+ } & {
3025
+ "/inventory-release-executions/:id": {
3026
+ $patch: {
3027
+ input: {
3028
+ param: {
3029
+ id: string;
3030
+ };
3031
+ };
3032
+ output: {
3033
+ error: string;
3034
+ };
3035
+ outputFormat: "json";
3036
+ status: 404;
3037
+ } | {
3038
+ input: {
3039
+ param: {
3040
+ id: string;
3041
+ };
3042
+ };
3043
+ output: {
3044
+ data: {
3045
+ id: string;
3046
+ allotmentId: string;
3047
+ releaseRuleId: string | null;
3048
+ targetId: string | null;
3049
+ slotId: string | null;
3050
+ actionTaken: "expired" | "released" | "retained" | "manual_override";
3051
+ status: "pending" | "failed" | "skipped" | "completed";
3052
+ releasedCapacity: number | null;
3053
+ executedAt: string | null;
3054
+ notes: string | null;
3055
+ metadata: {
3056
+ [x: string]: import("hono/utils/types").JSONValue;
3057
+ } | null;
3058
+ createdAt: string;
3059
+ updatedAt: string;
3060
+ };
3061
+ };
3062
+ outputFormat: "json";
3063
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3064
+ };
3065
+ };
3066
+ } & {
3067
+ "/inventory-release-executions/:id": {
3068
+ $delete: {
3069
+ input: {
3070
+ param: {
3071
+ id: string;
3072
+ };
3073
+ };
3074
+ output: {
3075
+ error: string;
3076
+ };
3077
+ outputFormat: "json";
3078
+ status: 404;
3079
+ } | {
3080
+ input: {
3081
+ param: {
3082
+ id: string;
3083
+ };
3084
+ };
3085
+ output: {
3086
+ success: true;
3087
+ };
3088
+ outputFormat: "json";
3089
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3090
+ };
3091
+ };
3092
+ } & {
3093
+ "/settlement-policies": {
3094
+ $get: {
3095
+ input: {};
3096
+ output: {
3097
+ data: {
3098
+ id: string;
3099
+ channelId: string;
3100
+ contractId: string | null;
3101
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3102
+ autoGenerate: boolean;
3103
+ approvalRequired: boolean;
3104
+ remittanceDaysAfterPeriodEnd: number | null;
3105
+ minimumPayoutAmountCents: number | null;
3106
+ currencyCode: string | null;
3107
+ active: boolean;
3108
+ notes: string | null;
3109
+ metadata: {
3110
+ [x: string]: import("hono/utils/types").JSONValue;
3111
+ } | null;
3112
+ createdAt: string;
3113
+ updatedAt: string;
3114
+ }[];
3115
+ total: number;
3116
+ limit: number;
3117
+ offset: number;
3118
+ };
3119
+ outputFormat: "json";
3120
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3121
+ };
3122
+ };
3123
+ } & {
3124
+ "/settlement-policies": {
3125
+ $post: {
3126
+ input: {};
3127
+ output: {
3128
+ data: {
3129
+ createdAt: string;
3130
+ updatedAt: string;
3131
+ metadata: {
3132
+ [x: string]: import("hono/utils/types").JSONValue;
3133
+ } | null;
3134
+ id: string;
3135
+ active: boolean;
3136
+ channelId: string;
3137
+ notes: string | null;
3138
+ contractId: string | null;
3139
+ currencyCode: string | null;
3140
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3141
+ autoGenerate: boolean;
3142
+ approvalRequired: boolean;
3143
+ remittanceDaysAfterPeriodEnd: number | null;
3144
+ minimumPayoutAmountCents: number | null;
3145
+ } | undefined;
3146
+ };
3147
+ outputFormat: "json";
3148
+ status: 201;
3149
+ };
3150
+ };
3151
+ } & {
3152
+ "/settlement-policies/:id": {
3153
+ $get: {
3154
+ input: {
3155
+ param: {
3156
+ id: string;
3157
+ };
3158
+ };
3159
+ output: {
3160
+ error: string;
3161
+ };
3162
+ outputFormat: "json";
3163
+ status: 404;
3164
+ } | {
3165
+ input: {
3166
+ param: {
3167
+ id: string;
3168
+ };
3169
+ };
3170
+ output: {
3171
+ data: {
3172
+ id: string;
3173
+ channelId: string;
3174
+ contractId: string | null;
3175
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3176
+ autoGenerate: boolean;
3177
+ approvalRequired: boolean;
3178
+ remittanceDaysAfterPeriodEnd: number | null;
3179
+ minimumPayoutAmountCents: number | null;
3180
+ currencyCode: string | null;
3181
+ active: boolean;
3182
+ notes: string | null;
3183
+ metadata: {
3184
+ [x: string]: import("hono/utils/types").JSONValue;
3185
+ } | null;
3186
+ createdAt: string;
3187
+ updatedAt: string;
3188
+ };
3189
+ };
3190
+ outputFormat: "json";
3191
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3192
+ };
3193
+ };
3194
+ } & {
3195
+ "/settlement-policies/:id": {
3196
+ $patch: {
3197
+ input: {
3198
+ param: {
3199
+ id: string;
3200
+ };
3201
+ };
3202
+ output: {
3203
+ error: string;
3204
+ };
3205
+ outputFormat: "json";
3206
+ status: 404;
3207
+ } | {
3208
+ input: {
3209
+ param: {
3210
+ id: string;
3211
+ };
3212
+ };
3213
+ output: {
3214
+ data: {
3215
+ id: string;
3216
+ channelId: string;
3217
+ contractId: string | null;
3218
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3219
+ autoGenerate: boolean;
3220
+ approvalRequired: boolean;
3221
+ remittanceDaysAfterPeriodEnd: number | null;
3222
+ minimumPayoutAmountCents: number | null;
3223
+ currencyCode: string | null;
3224
+ active: boolean;
3225
+ notes: string | null;
3226
+ metadata: {
3227
+ [x: string]: import("hono/utils/types").JSONValue;
3228
+ } | null;
3229
+ createdAt: string;
3230
+ updatedAt: string;
3231
+ };
3232
+ };
3233
+ outputFormat: "json";
3234
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3235
+ };
3236
+ };
3237
+ } & {
3238
+ "/settlement-policies/:id": {
3239
+ $delete: {
3240
+ input: {
3241
+ param: {
3242
+ id: string;
3243
+ };
3244
+ };
3245
+ output: {
3246
+ error: string;
3247
+ };
3248
+ outputFormat: "json";
3249
+ status: 404;
3250
+ } | {
3251
+ input: {
3252
+ param: {
3253
+ id: string;
3254
+ };
3255
+ };
3256
+ output: {
3257
+ success: true;
3258
+ };
3259
+ outputFormat: "json";
3260
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3261
+ };
3262
+ };
3263
+ } & {
3264
+ "/reconciliation-policies": {
3265
+ $get: {
3266
+ input: {};
3267
+ output: {
3268
+ data: {
3269
+ id: string;
3270
+ channelId: string;
3271
+ contractId: string | null;
3272
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3273
+ autoRun: boolean;
3274
+ compareGrossAmounts: boolean;
3275
+ compareStatuses: boolean;
3276
+ compareCancellations: boolean;
3277
+ amountToleranceCents: number | null;
3278
+ active: boolean;
3279
+ notes: string | null;
3280
+ metadata: {
3281
+ [x: string]: import("hono/utils/types").JSONValue;
3282
+ } | null;
3283
+ createdAt: string;
3284
+ updatedAt: string;
3285
+ }[];
3286
+ total: number;
3287
+ limit: number;
3288
+ offset: number;
3289
+ };
3290
+ outputFormat: "json";
3291
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3292
+ };
3293
+ };
3294
+ } & {
3295
+ "/reconciliation-policies": {
3296
+ $post: {
3297
+ input: {};
3298
+ output: {
3299
+ data: {
3300
+ createdAt: string;
3301
+ updatedAt: string;
3302
+ metadata: {
3303
+ [x: string]: import("hono/utils/types").JSONValue;
3304
+ } | null;
3305
+ id: string;
3306
+ active: boolean;
3307
+ channelId: string;
3308
+ notes: string | null;
3309
+ contractId: string | null;
3310
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3311
+ autoRun: boolean;
3312
+ compareGrossAmounts: boolean;
3313
+ compareStatuses: boolean;
3314
+ compareCancellations: boolean;
3315
+ amountToleranceCents: number | null;
3316
+ } | undefined;
3317
+ };
3318
+ outputFormat: "json";
3319
+ status: 201;
3320
+ };
3321
+ };
3322
+ } & {
3323
+ "/reconciliation-policies/:id": {
3324
+ $get: {
3325
+ input: {
3326
+ param: {
3327
+ id: string;
3328
+ };
3329
+ };
3330
+ output: {
3331
+ error: string;
3332
+ };
3333
+ outputFormat: "json";
3334
+ status: 404;
3335
+ } | {
3336
+ input: {
3337
+ param: {
3338
+ id: string;
3339
+ };
3340
+ };
3341
+ output: {
3342
+ data: {
3343
+ id: string;
3344
+ channelId: string;
3345
+ contractId: string | null;
3346
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3347
+ autoRun: boolean;
3348
+ compareGrossAmounts: boolean;
3349
+ compareStatuses: boolean;
3350
+ compareCancellations: boolean;
3351
+ amountToleranceCents: number | null;
3352
+ active: boolean;
3353
+ notes: string | null;
3354
+ metadata: {
3355
+ [x: string]: import("hono/utils/types").JSONValue;
3356
+ } | null;
3357
+ createdAt: string;
3358
+ updatedAt: string;
3359
+ };
3360
+ };
3361
+ outputFormat: "json";
3362
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3363
+ };
3364
+ };
3365
+ } & {
3366
+ "/reconciliation-policies/:id": {
3367
+ $patch: {
3368
+ input: {
3369
+ param: {
3370
+ id: string;
3371
+ };
3372
+ };
3373
+ output: {
3374
+ error: string;
3375
+ };
3376
+ outputFormat: "json";
3377
+ status: 404;
3378
+ } | {
3379
+ input: {
3380
+ param: {
3381
+ id: string;
3382
+ };
3383
+ };
3384
+ output: {
3385
+ data: {
3386
+ id: string;
3387
+ channelId: string;
3388
+ contractId: string | null;
3389
+ frequency: "manual" | "daily" | "weekly" | "monthly";
3390
+ autoRun: boolean;
3391
+ compareGrossAmounts: boolean;
3392
+ compareStatuses: boolean;
3393
+ compareCancellations: boolean;
3394
+ amountToleranceCents: number | null;
3395
+ active: boolean;
3396
+ notes: string | null;
3397
+ metadata: {
3398
+ [x: string]: import("hono/utils/types").JSONValue;
3399
+ } | null;
3400
+ createdAt: string;
3401
+ updatedAt: string;
3402
+ };
3403
+ };
3404
+ outputFormat: "json";
3405
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3406
+ };
3407
+ };
3408
+ } & {
3409
+ "/reconciliation-policies/:id": {
3410
+ $delete: {
3411
+ input: {
3412
+ param: {
3413
+ id: string;
3414
+ };
3415
+ };
3416
+ output: {
3417
+ error: string;
3418
+ };
3419
+ outputFormat: "json";
3420
+ status: 404;
3421
+ } | {
3422
+ input: {
3423
+ param: {
3424
+ id: string;
3425
+ };
3426
+ };
3427
+ output: {
3428
+ success: true;
3429
+ };
3430
+ outputFormat: "json";
3431
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3432
+ };
3433
+ };
3434
+ } & {
3435
+ "/release-schedules": {
3436
+ $get: {
3437
+ input: {};
3438
+ output: {
3439
+ data: {
3440
+ id: string;
3441
+ releaseRuleId: string;
3442
+ scheduleKind: "manual" | "daily" | "hourly";
3443
+ nextRunAt: string | null;
3444
+ lastRunAt: string | null;
3445
+ active: boolean;
3446
+ notes: string | null;
3447
+ metadata: {
3448
+ [x: string]: import("hono/utils/types").JSONValue;
3449
+ } | null;
3450
+ createdAt: string;
3451
+ updatedAt: string;
3452
+ }[];
3453
+ total: number;
3454
+ limit: number;
3455
+ offset: number;
3456
+ };
3457
+ outputFormat: "json";
3458
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3459
+ };
3460
+ };
3461
+ } & {
3462
+ "/release-schedules": {
3463
+ $post: {
3464
+ input: {};
3465
+ output: {
3466
+ data: {
3467
+ createdAt: string;
3468
+ updatedAt: string;
3469
+ metadata: {
3470
+ [x: string]: import("hono/utils/types").JSONValue;
3471
+ } | null;
3472
+ id: string;
3473
+ active: boolean;
3474
+ notes: string | null;
3475
+ releaseRuleId: string;
3476
+ scheduleKind: "manual" | "daily" | "hourly";
3477
+ nextRunAt: string | null;
3478
+ lastRunAt: string | null;
3479
+ } | undefined;
3480
+ };
3481
+ outputFormat: "json";
3482
+ status: 201;
3483
+ };
3484
+ };
3485
+ } & {
3486
+ "/release-schedules/:id": {
3487
+ $get: {
3488
+ input: {
3489
+ param: {
3490
+ id: string;
3491
+ };
3492
+ };
3493
+ output: {
3494
+ error: string;
3495
+ };
3496
+ outputFormat: "json";
3497
+ status: 404;
3498
+ } | {
3499
+ input: {
3500
+ param: {
3501
+ id: string;
3502
+ };
3503
+ };
3504
+ output: {
3505
+ data: {
3506
+ id: string;
3507
+ releaseRuleId: string;
3508
+ scheduleKind: "manual" | "daily" | "hourly";
3509
+ nextRunAt: string | null;
3510
+ lastRunAt: string | null;
3511
+ active: boolean;
3512
+ notes: string | null;
3513
+ metadata: {
3514
+ [x: string]: import("hono/utils/types").JSONValue;
3515
+ } | null;
3516
+ createdAt: string;
3517
+ updatedAt: string;
3518
+ };
3519
+ };
3520
+ outputFormat: "json";
3521
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3522
+ };
3523
+ };
3524
+ } & {
3525
+ "/release-schedules/:id": {
3526
+ $patch: {
3527
+ input: {
3528
+ param: {
3529
+ id: string;
3530
+ };
3531
+ };
3532
+ output: {
3533
+ error: string;
3534
+ };
3535
+ outputFormat: "json";
3536
+ status: 404;
3537
+ } | {
3538
+ input: {
3539
+ param: {
3540
+ id: string;
3541
+ };
3542
+ };
3543
+ output: {
3544
+ data: {
3545
+ id: string;
3546
+ releaseRuleId: string;
3547
+ scheduleKind: "manual" | "daily" | "hourly";
3548
+ nextRunAt: string | null;
3549
+ lastRunAt: string | null;
3550
+ active: boolean;
3551
+ notes: string | null;
3552
+ metadata: {
3553
+ [x: string]: import("hono/utils/types").JSONValue;
3554
+ } | null;
3555
+ createdAt: string;
3556
+ updatedAt: string;
3557
+ };
3558
+ };
3559
+ outputFormat: "json";
3560
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3561
+ };
3562
+ };
3563
+ } & {
3564
+ "/release-schedules/:id": {
3565
+ $delete: {
3566
+ input: {
3567
+ param: {
3568
+ id: string;
3569
+ };
3570
+ };
3571
+ output: {
3572
+ error: string;
3573
+ };
3574
+ outputFormat: "json";
3575
+ status: 404;
3576
+ } | {
3577
+ input: {
3578
+ param: {
3579
+ id: string;
3580
+ };
3581
+ };
3582
+ output: {
3583
+ success: true;
3584
+ };
3585
+ outputFormat: "json";
3586
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3587
+ };
3588
+ };
3589
+ } & {
3590
+ "/remittance-exceptions": {
3591
+ $get: {
3592
+ input: {};
3593
+ output: {
3594
+ data: {
3595
+ id: string;
3596
+ channelId: string;
3597
+ settlementItemId: string | null;
3598
+ reconciliationItemId: string | null;
3599
+ exceptionType: string;
3600
+ severity: "error" | "info" | "warning";
3601
+ status: "ignored" | "open" | "resolved" | "investigating";
3602
+ openedAt: string;
3603
+ resolvedAt: string | null;
3604
+ notes: string | null;
3605
+ metadata: {
3606
+ [x: string]: import("hono/utils/types").JSONValue;
3607
+ } | null;
3608
+ createdAt: string;
3609
+ updatedAt: string;
3610
+ }[];
3611
+ total: number;
3612
+ limit: number;
3613
+ offset: number;
3614
+ };
3615
+ outputFormat: "json";
3616
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3617
+ };
3618
+ };
3619
+ } & {
3620
+ "/remittance-exceptions": {
3621
+ $post: {
3622
+ input: {};
3623
+ output: {
3624
+ data: {
3625
+ createdAt: string;
3626
+ updatedAt: string;
3627
+ metadata: {
3628
+ [x: string]: import("hono/utils/types").JSONValue;
3629
+ } | null;
3630
+ id: string;
3631
+ status: "ignored" | "open" | "resolved" | "investigating";
3632
+ channelId: string;
3633
+ notes: string | null;
3634
+ severity: "error" | "info" | "warning";
3635
+ resolvedAt: string | null;
3636
+ settlementItemId: string | null;
3637
+ reconciliationItemId: string | null;
3638
+ exceptionType: string;
3639
+ openedAt: string;
3640
+ } | undefined;
3641
+ };
3642
+ outputFormat: "json";
3643
+ status: 201;
3644
+ };
3645
+ };
3646
+ } & {
3647
+ "/remittance-exceptions/:id": {
3648
+ $get: {
3649
+ input: {
3650
+ param: {
3651
+ id: string;
3652
+ };
3653
+ };
3654
+ output: {
3655
+ error: string;
3656
+ };
3657
+ outputFormat: "json";
3658
+ status: 404;
3659
+ } | {
3660
+ input: {
3661
+ param: {
3662
+ id: string;
3663
+ };
3664
+ };
3665
+ output: {
3666
+ data: {
3667
+ id: string;
3668
+ channelId: string;
3669
+ settlementItemId: string | null;
3670
+ reconciliationItemId: string | null;
3671
+ exceptionType: string;
3672
+ severity: "error" | "info" | "warning";
3673
+ status: "ignored" | "open" | "resolved" | "investigating";
3674
+ openedAt: string;
3675
+ resolvedAt: string | null;
3676
+ notes: string | null;
3677
+ metadata: {
3678
+ [x: string]: import("hono/utils/types").JSONValue;
3679
+ } | null;
3680
+ createdAt: string;
3681
+ updatedAt: string;
3682
+ };
3683
+ };
3684
+ outputFormat: "json";
3685
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3686
+ };
3687
+ };
3688
+ } & {
3689
+ "/remittance-exceptions/:id": {
3690
+ $patch: {
3691
+ input: {
3692
+ param: {
3693
+ id: string;
3694
+ };
3695
+ };
3696
+ output: {
3697
+ error: string;
3698
+ };
3699
+ outputFormat: "json";
3700
+ status: 404;
3701
+ } | {
3702
+ input: {
3703
+ param: {
3704
+ id: string;
3705
+ };
3706
+ };
3707
+ output: {
3708
+ data: {
3709
+ id: string;
3710
+ channelId: string;
3711
+ settlementItemId: string | null;
3712
+ reconciliationItemId: string | null;
3713
+ exceptionType: string;
3714
+ severity: "error" | "info" | "warning";
3715
+ status: "ignored" | "open" | "resolved" | "investigating";
3716
+ openedAt: string;
3717
+ resolvedAt: string | null;
3718
+ notes: string | null;
3719
+ metadata: {
3720
+ [x: string]: import("hono/utils/types").JSONValue;
3721
+ } | null;
3722
+ createdAt: string;
3723
+ updatedAt: string;
3724
+ };
3725
+ };
3726
+ outputFormat: "json";
3727
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3728
+ };
3729
+ };
3730
+ } & {
3731
+ "/remittance-exceptions/:id": {
3732
+ $delete: {
3733
+ input: {
3734
+ param: {
3735
+ id: string;
3736
+ };
3737
+ };
3738
+ output: {
3739
+ error: string;
3740
+ };
3741
+ outputFormat: "json";
3742
+ status: 404;
3743
+ } | {
3744
+ input: {
3745
+ param: {
3746
+ id: string;
3747
+ };
3748
+ };
3749
+ output: {
3750
+ success: true;
3751
+ };
3752
+ outputFormat: "json";
3753
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3754
+ };
3755
+ };
3756
+ } & {
3757
+ "/settlement-approvals": {
3758
+ $get: {
3759
+ input: {};
3760
+ output: {
3761
+ data: {
3762
+ id: string;
3763
+ settlementRunId: string;
3764
+ approverUserId: string | null;
3765
+ status: "pending" | "approved" | "rejected";
3766
+ decidedAt: string | null;
3767
+ notes: string | null;
3768
+ metadata: {
3769
+ [x: string]: import("hono/utils/types").JSONValue;
3770
+ } | null;
3771
+ createdAt: string;
3772
+ updatedAt: string;
3773
+ }[];
3774
+ total: number;
3775
+ limit: number;
3776
+ offset: number;
3777
+ };
3778
+ outputFormat: "json";
3779
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3780
+ };
3781
+ };
3782
+ } & {
3783
+ "/settlement-approvals": {
3784
+ $post: {
3785
+ input: {};
3786
+ output: {
3787
+ data: {
3788
+ createdAt: string;
3789
+ updatedAt: string;
3790
+ metadata: {
3791
+ [x: string]: import("hono/utils/types").JSONValue;
3792
+ } | null;
3793
+ id: string;
3794
+ status: "pending" | "approved" | "rejected";
3795
+ notes: string | null;
3796
+ settlementRunId: string;
3797
+ approverUserId: string | null;
3798
+ decidedAt: string | null;
3799
+ } | undefined;
3800
+ };
3801
+ outputFormat: "json";
3802
+ status: 201;
3803
+ };
3804
+ };
3805
+ } & {
3806
+ "/settlement-approvals/:id": {
3807
+ $get: {
3808
+ input: {
3809
+ param: {
3810
+ id: string;
3811
+ };
3812
+ };
3813
+ output: {
3814
+ error: string;
3815
+ };
3816
+ outputFormat: "json";
3817
+ status: 404;
3818
+ } | {
3819
+ input: {
3820
+ param: {
3821
+ id: string;
3822
+ };
3823
+ };
3824
+ output: {
3825
+ data: {
3826
+ id: string;
3827
+ settlementRunId: string;
3828
+ approverUserId: string | null;
3829
+ status: "pending" | "approved" | "rejected";
3830
+ decidedAt: string | null;
3831
+ notes: string | null;
3832
+ metadata: {
3833
+ [x: string]: import("hono/utils/types").JSONValue;
3834
+ } | null;
3835
+ createdAt: string;
3836
+ updatedAt: string;
3837
+ };
3838
+ };
3839
+ outputFormat: "json";
3840
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3841
+ };
3842
+ };
3843
+ } & {
3844
+ "/settlement-approvals/:id": {
3845
+ $patch: {
3846
+ input: {
3847
+ param: {
3848
+ id: string;
3849
+ };
3850
+ };
3851
+ output: {
3852
+ error: string;
3853
+ };
3854
+ outputFormat: "json";
3855
+ status: 404;
3856
+ } | {
3857
+ input: {
3858
+ param: {
3859
+ id: string;
3860
+ };
3861
+ };
3862
+ output: {
3863
+ data: {
3864
+ id: string;
3865
+ settlementRunId: string;
3866
+ approverUserId: string | null;
3867
+ status: "pending" | "approved" | "rejected";
3868
+ decidedAt: string | null;
3869
+ notes: string | null;
3870
+ metadata: {
3871
+ [x: string]: import("hono/utils/types").JSONValue;
3872
+ } | null;
3873
+ createdAt: string;
3874
+ updatedAt: string;
3875
+ };
3876
+ };
3877
+ outputFormat: "json";
3878
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3879
+ };
3880
+ };
3881
+ } & {
3882
+ "/settlement-approvals/:id": {
3883
+ $delete: {
3884
+ input: {
3885
+ param: {
3886
+ id: string;
3887
+ };
3888
+ };
3889
+ output: {
3890
+ error: string;
3891
+ };
3892
+ outputFormat: "json";
3893
+ status: 404;
3894
+ } | {
3895
+ input: {
3896
+ param: {
3897
+ id: string;
3898
+ };
3899
+ };
3900
+ output: {
3901
+ success: true;
3902
+ };
3903
+ outputFormat: "json";
3904
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3905
+ };
3906
+ };
3907
+ }, "/">, "/", "/webhook-events/:id">;
3908
+ export type DistributionRoutes = typeof distributionRoutes;
3909
+ //# sourceMappingURL=routes.d.ts.map