@porulle/core 0.1.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/dist/auth/middleware.d.ts.map +1 -1
  2. package/dist/auth/middleware.js +17 -1
  3. package/dist/config/define-config.d.ts.map +1 -1
  4. package/dist/config/define-config.js +6 -0
  5. package/dist/config/types.d.ts +12 -0
  6. package/dist/config/types.d.ts.map +1 -1
  7. package/dist/hooks/checkout.d.ts +3 -3
  8. package/dist/hooks/checkout.js +4 -4
  9. package/dist/index.d.ts +9 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +6 -1
  12. package/dist/interfaces/rest/audit-middleware.d.ts +46 -0
  13. package/dist/interfaces/rest/audit-middleware.d.ts.map +1 -0
  14. package/dist/interfaces/rest/audit-middleware.js +82 -0
  15. package/dist/interfaces/rest/parse-json.d.ts +39 -0
  16. package/dist/interfaces/rest/parse-json.d.ts.map +1 -0
  17. package/dist/interfaces/rest/parse-json.js +45 -0
  18. package/dist/interfaces/rest/routes/catalog.d.ts.map +1 -1
  19. package/dist/interfaces/rest/routes/catalog.js +17 -2
  20. package/dist/interfaces/rest/routes/customers.d.ts.map +1 -1
  21. package/dist/interfaces/rest/routes/customers.js +59 -4
  22. package/dist/interfaces/rest/routes/inventory.d.ts.map +1 -1
  23. package/dist/interfaces/rest/routes/inventory.js +4 -2
  24. package/dist/interfaces/rest/routes/media.d.ts.map +1 -1
  25. package/dist/interfaces/rest/routes/media.js +6 -0
  26. package/dist/interfaces/rest/routes/orders.d.ts.map +1 -1
  27. package/dist/interfaces/rest/routes/orders.js +23 -1
  28. package/dist/interfaces/rest/routes/promotions.d.ts.map +1 -1
  29. package/dist/interfaces/rest/routes/promotions.js +21 -1
  30. package/dist/interfaces/rest/schemas/carts.d.ts +175 -0
  31. package/dist/interfaces/rest/schemas/carts.d.ts.map +1 -1
  32. package/dist/interfaces/rest/schemas/catalog.d.ts +1410 -0
  33. package/dist/interfaces/rest/schemas/catalog.d.ts.map +1 -1
  34. package/dist/interfaces/rest/schemas/catalog.js +28 -1
  35. package/dist/interfaces/rest/schemas/checkout.d.ts +35 -0
  36. package/dist/interfaces/rest/schemas/checkout.d.ts.map +1 -1
  37. package/dist/interfaces/rest/schemas/customer-portal.d.ts +280 -0
  38. package/dist/interfaces/rest/schemas/customer-portal.d.ts.map +1 -1
  39. package/dist/interfaces/rest/schemas/customers.d.ts +863 -0
  40. package/dist/interfaces/rest/schemas/customers.d.ts.map +1 -1
  41. package/dist/interfaces/rest/schemas/customers.js +88 -0
  42. package/dist/interfaces/rest/schemas/inventory.d.ts +182 -1
  43. package/dist/interfaces/rest/schemas/inventory.d.ts.map +1 -1
  44. package/dist/interfaces/rest/schemas/media.d.ts +105 -0
  45. package/dist/interfaces/rest/schemas/media.d.ts.map +1 -1
  46. package/dist/interfaces/rest/schemas/orders.d.ts +136 -0
  47. package/dist/interfaces/rest/schemas/orders.d.ts.map +1 -1
  48. package/dist/interfaces/rest/schemas/orders.js +20 -0
  49. package/dist/interfaces/rest/schemas/pricing.d.ts +70 -0
  50. package/dist/interfaces/rest/schemas/pricing.d.ts.map +1 -1
  51. package/dist/interfaces/rest/schemas/promotions.d.ts +298 -0
  52. package/dist/interfaces/rest/schemas/promotions.d.ts.map +1 -1
  53. package/dist/interfaces/rest/schemas/promotions.js +25 -1
  54. package/dist/interfaces/rest/schemas/shared.d.ts +47 -0
  55. package/dist/interfaces/rest/schemas/shared.d.ts.map +1 -1
  56. package/dist/interfaces/rest/schemas/shared.js +8 -0
  57. package/dist/interfaces/rest/schemas/webhooks.d.ts +70 -0
  58. package/dist/interfaces/rest/schemas/webhooks.d.ts.map +1 -1
  59. package/dist/kernel/database/adapter.d.ts +6 -0
  60. package/dist/kernel/database/adapter.d.ts.map +1 -1
  61. package/dist/kernel/database/adapter.js +62 -1
  62. package/dist/kernel/database/migrate.d.ts +22 -2
  63. package/dist/kernel/database/migrate.d.ts.map +1 -1
  64. package/dist/kernel/database/migrate.js +42 -2
  65. package/dist/modules/analytics/hooks.d.ts +5 -5
  66. package/dist/modules/analytics/hooks.js +5 -5
  67. package/dist/modules/analytics/repository/index.d.ts.map +1 -1
  68. package/dist/modules/catalog/category-service.d.ts +6 -1
  69. package/dist/modules/catalog/category-service.d.ts.map +1 -1
  70. package/dist/modules/catalog/category-service.js +35 -5
  71. package/dist/modules/catalog/schema.d.ts +17 -0
  72. package/dist/modules/catalog/schema.d.ts.map +1 -1
  73. package/dist/modules/catalog/schema.js +2 -0
  74. package/dist/modules/catalog/service.d.ts +11 -2
  75. package/dist/modules/catalog/service.d.ts.map +1 -1
  76. package/dist/modules/catalog/service.js +8 -2
  77. package/dist/modules/customers/repository/index.d.ts +8 -1
  78. package/dist/modules/customers/repository/index.d.ts.map +1 -1
  79. package/dist/modules/customers/repository/index.js +42 -2
  80. package/dist/modules/customers/schema.d.ts +162 -0
  81. package/dist/modules/customers/schema.d.ts.map +1 -1
  82. package/dist/modules/customers/schema.js +18 -0
  83. package/dist/modules/customers/service.d.ts +32 -2
  84. package/dist/modules/customers/service.d.ts.map +1 -1
  85. package/dist/modules/customers/service.js +119 -3
  86. package/dist/modules/inventory/schemas.d.ts +7 -1
  87. package/dist/modules/inventory/schemas.d.ts.map +1 -1
  88. package/dist/modules/inventory/schemas.js +6 -1
  89. package/dist/modules/inventory/service.d.ts +18 -0
  90. package/dist/modules/inventory/service.d.ts.map +1 -1
  91. package/dist/modules/inventory/service.js +58 -21
  92. package/dist/modules/media/noop-adapter.d.ts +11 -0
  93. package/dist/modules/media/noop-adapter.d.ts.map +1 -0
  94. package/dist/modules/media/noop-adapter.js +31 -0
  95. package/dist/modules/orders/repository/index.d.ts +19 -0
  96. package/dist/modules/orders/repository/index.d.ts.map +1 -1
  97. package/dist/modules/orders/repository/index.js +42 -1
  98. package/dist/modules/orders/service.d.ts +31 -0
  99. package/dist/modules/orders/service.d.ts.map +1 -1
  100. package/dist/modules/orders/service.js +52 -2
  101. package/dist/modules/payments/repository/index.d.ts.map +1 -1
  102. package/dist/modules/promotions/schemas.d.ts +46 -0
  103. package/dist/modules/promotions/schemas.d.ts.map +1 -1
  104. package/dist/modules/promotions/schemas.js +19 -8
  105. package/dist/modules/promotions/service.d.ts +8 -2
  106. package/dist/modules/promotions/service.d.ts.map +1 -1
  107. package/dist/modules/promotions/service.js +74 -9
  108. package/dist/modules/search/repository/index.d.ts.map +1 -1
  109. package/dist/modules/shipping/repository/index.d.ts.map +1 -1
  110. package/dist/modules/tax/repository/index.d.ts.map +1 -1
  111. package/dist/runtime/client-ip.d.ts +31 -0
  112. package/dist/runtime/client-ip.d.ts.map +1 -0
  113. package/dist/runtime/client-ip.js +31 -0
  114. package/dist/runtime/server.d.ts +4 -0
  115. package/dist/runtime/server.d.ts.map +1 -1
  116. package/dist/runtime/server.js +35 -19
  117. package/dist/test-utils/create-plugin-test-app.d.ts.map +1 -1
  118. package/dist/test-utils/create-plugin-test-app.js +4 -1
  119. package/dist/test-utils/test-actors.d.ts +3 -2
  120. package/dist/test-utils/test-actors.d.ts.map +1 -1
  121. package/dist/test-utils/test-actors.js +3 -2
  122. package/package.json +4 -4
  123. package/src/auth/middleware.ts +18 -1
  124. package/src/config/define-config.ts +7 -0
  125. package/src/config/types.ts +12 -0
  126. package/src/hooks/checkout.ts +4 -4
  127. package/src/index.ts +18 -1
  128. package/src/interfaces/rest/audit-middleware.ts +110 -0
  129. package/src/interfaces/rest/parse-json.ts +81 -0
  130. package/src/interfaces/rest/routes/catalog.ts +21 -1
  131. package/src/interfaces/rest/routes/customers.ts +64 -3
  132. package/src/interfaces/rest/routes/inventory.ts +4 -2
  133. package/src/interfaces/rest/routes/media.ts +7 -0
  134. package/src/interfaces/rest/routes/orders.ts +21 -1
  135. package/src/interfaces/rest/routes/promotions.ts +22 -1
  136. package/src/interfaces/rest/schemas/catalog.ts +30 -1
  137. package/src/interfaces/rest/schemas/customers.ts +99 -0
  138. package/src/interfaces/rest/schemas/orders.ts +21 -0
  139. package/src/interfaces/rest/schemas/promotions.ts +32 -1
  140. package/src/interfaces/rest/schemas/shared.ts +9 -0
  141. package/src/kernel/database/adapter.ts +64 -1
  142. package/src/kernel/database/migrate.ts +50 -2
  143. package/src/modules/analytics/hooks.ts +5 -5
  144. package/src/modules/analytics/repository/index.ts +0 -1
  145. package/src/modules/catalog/category-service.ts +26 -5
  146. package/src/modules/catalog/schema.ts +2 -0
  147. package/src/modules/catalog/service.ts +25 -3
  148. package/src/modules/customers/repository/index.ts +55 -1
  149. package/src/modules/customers/schema.ts +19 -0
  150. package/src/modules/customers/service.ts +137 -2
  151. package/src/modules/inventory/schemas.ts +6 -1
  152. package/src/modules/inventory/service.ts +84 -29
  153. package/src/modules/media/noop-adapter.ts +36 -0
  154. package/src/modules/orders/repository/index.ts +63 -1
  155. package/src/modules/orders/service.ts +86 -3
  156. package/src/modules/payments/repository/index.ts +0 -1
  157. package/src/modules/promotions/schemas.ts +21 -4
  158. package/src/modules/promotions/service.ts +90 -18
  159. package/src/modules/search/repository/index.ts +0 -1
  160. package/src/modules/shipping/repository/index.ts +0 -1
  161. package/src/modules/tax/repository/index.ts +0 -1
  162. package/src/runtime/client-ip.ts +49 -0
  163. package/src/runtime/server.ts +39 -18
  164. package/src/test-utils/create-plugin-test-app.ts +3 -1
  165. package/src/test-utils/test-actors.ts +3 -2
@@ -1,4 +1,149 @@
1
1
  import { z } from "@hono/zod-openapi";
2
+ export declare const CreateCustomerBodySchema: z.ZodObject<{
3
+ userId: z.ZodOptional<z.ZodString>;
4
+ firstName: z.ZodOptional<z.ZodString>;
5
+ lastName: z.ZodOptional<z.ZodString>;
6
+ phone: z.ZodOptional<z.ZodString>;
7
+ email: z.ZodOptional<z.ZodString>;
8
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
+ }, z.core.$strip>;
10
+ export declare const createCustomerRoute: {
11
+ method: "post";
12
+ path: "/";
13
+ tags: string[];
14
+ summary: string;
15
+ request: {
16
+ body: {
17
+ content: {
18
+ "application/json": {
19
+ schema: z.ZodObject<{
20
+ userId: z.ZodOptional<z.ZodString>;
21
+ firstName: z.ZodOptional<z.ZodString>;
22
+ lastName: z.ZodOptional<z.ZodString>;
23
+ phone: z.ZodOptional<z.ZodString>;
24
+ email: z.ZodOptional<z.ZodString>;
25
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
26
+ }, z.core.$strip>;
27
+ };
28
+ };
29
+ required: true;
30
+ };
31
+ };
32
+ responses: {
33
+ 400: {
34
+ readonly content: {
35
+ readonly "application/json": {
36
+ readonly schema: z.ZodObject<{
37
+ error: z.ZodObject<{
38
+ code: z.ZodString;
39
+ message: z.ZodString;
40
+ details: z.ZodOptional<z.ZodObject<{
41
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ path: z.ZodString;
43
+ message: z.ZodString;
44
+ code: z.ZodString;
45
+ }, z.core.$strip>>>;
46
+ }, z.core.$strip>>;
47
+ }, z.core.$strip>;
48
+ }, z.core.$strip>;
49
+ };
50
+ };
51
+ readonly description: "Business logic error.";
52
+ };
53
+ 401: {
54
+ readonly content: {
55
+ readonly "application/json": {
56
+ readonly schema: z.ZodObject<{
57
+ error: z.ZodObject<{
58
+ code: z.ZodString;
59
+ message: z.ZodString;
60
+ details: z.ZodOptional<z.ZodObject<{
61
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
+ path: z.ZodString;
63
+ message: z.ZodString;
64
+ code: z.ZodString;
65
+ }, z.core.$strip>>>;
66
+ }, z.core.$strip>>;
67
+ }, z.core.$strip>;
68
+ }, z.core.$strip>;
69
+ };
70
+ };
71
+ readonly description: "Authentication required.";
72
+ };
73
+ 403: {
74
+ readonly content: {
75
+ readonly "application/json": {
76
+ readonly schema: z.ZodObject<{
77
+ error: z.ZodObject<{
78
+ code: z.ZodString;
79
+ message: z.ZodString;
80
+ details: z.ZodOptional<z.ZodObject<{
81
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
+ path: z.ZodString;
83
+ message: z.ZodString;
84
+ code: z.ZodString;
85
+ }, z.core.$strip>>>;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>;
88
+ }, z.core.$strip>;
89
+ };
90
+ };
91
+ readonly description: "Insufficient permissions.";
92
+ };
93
+ 404: {
94
+ readonly content: {
95
+ readonly "application/json": {
96
+ readonly schema: z.ZodObject<{
97
+ error: z.ZodObject<{
98
+ code: z.ZodString;
99
+ message: z.ZodString;
100
+ details: z.ZodOptional<z.ZodObject<{
101
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
+ path: z.ZodString;
103
+ message: z.ZodString;
104
+ code: z.ZodString;
105
+ }, z.core.$strip>>>;
106
+ }, z.core.$strip>>;
107
+ }, z.core.$strip>;
108
+ }, z.core.$strip>;
109
+ };
110
+ };
111
+ readonly description: "Resource not found.";
112
+ };
113
+ 422: {
114
+ readonly content: {
115
+ readonly "application/json": {
116
+ readonly schema: z.ZodObject<{
117
+ error: z.ZodObject<{
118
+ code: z.ZodString;
119
+ message: z.ZodString;
120
+ details: z.ZodOptional<z.ZodObject<{
121
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
+ path: z.ZodString;
123
+ message: z.ZodString;
124
+ code: z.ZodString;
125
+ }, z.core.$strip>>>;
126
+ }, z.core.$strip>>;
127
+ }, z.core.$strip>;
128
+ }, z.core.$strip>;
129
+ };
130
+ };
131
+ readonly description: "Validation error.";
132
+ };
133
+ 201: {
134
+ content: {
135
+ "application/json": {
136
+ schema: z.ZodObject<{
137
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
138
+ }, z.core.$strip>;
139
+ };
140
+ };
141
+ description: string;
142
+ };
143
+ };
144
+ } & {
145
+ getRoutingPath(): "/";
146
+ };
2
147
  export declare const listCustomersRoute: {
3
148
  method: "get";
4
149
  path: "/";
@@ -51,6 +196,13 @@ export declare const getCustomerRoute: {
51
196
  error: z.ZodObject<{
52
197
  code: z.ZodString;
53
198
  message: z.ZodString;
199
+ details: z.ZodOptional<z.ZodObject<{
200
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
201
+ path: z.ZodString;
202
+ message: z.ZodString;
203
+ code: z.ZodString;
204
+ }, z.core.$strip>>>;
205
+ }, z.core.$strip>>;
54
206
  }, z.core.$strip>;
55
207
  }, z.core.$strip>;
56
208
  };
@@ -64,6 +216,13 @@ export declare const getCustomerRoute: {
64
216
  error: z.ZodObject<{
65
217
  code: z.ZodString;
66
218
  message: z.ZodString;
219
+ details: z.ZodOptional<z.ZodObject<{
220
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
221
+ path: z.ZodString;
222
+ message: z.ZodString;
223
+ code: z.ZodString;
224
+ }, z.core.$strip>>>;
225
+ }, z.core.$strip>>;
67
226
  }, z.core.$strip>;
68
227
  }, z.core.$strip>;
69
228
  };
@@ -77,6 +236,13 @@ export declare const getCustomerRoute: {
77
236
  error: z.ZodObject<{
78
237
  code: z.ZodString;
79
238
  message: z.ZodString;
239
+ details: z.ZodOptional<z.ZodObject<{
240
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
241
+ path: z.ZodString;
242
+ message: z.ZodString;
243
+ code: z.ZodString;
244
+ }, z.core.$strip>>>;
245
+ }, z.core.$strip>>;
80
246
  }, z.core.$strip>;
81
247
  }, z.core.$strip>;
82
248
  };
@@ -90,6 +256,13 @@ export declare const getCustomerRoute: {
90
256
  error: z.ZodObject<{
91
257
  code: z.ZodString;
92
258
  message: z.ZodString;
259
+ details: z.ZodOptional<z.ZodObject<{
260
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
261
+ path: z.ZodString;
262
+ message: z.ZodString;
263
+ code: z.ZodString;
264
+ }, z.core.$strip>>>;
265
+ }, z.core.$strip>>;
93
266
  }, z.core.$strip>;
94
267
  }, z.core.$strip>;
95
268
  };
@@ -103,6 +276,13 @@ export declare const getCustomerRoute: {
103
276
  error: z.ZodObject<{
104
277
  code: z.ZodString;
105
278
  message: z.ZodString;
279
+ details: z.ZodOptional<z.ZodObject<{
280
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
281
+ path: z.ZodString;
282
+ message: z.ZodString;
283
+ code: z.ZodString;
284
+ }, z.core.$strip>>>;
285
+ }, z.core.$strip>>;
106
286
  }, z.core.$strip>;
107
287
  }, z.core.$strip>;
108
288
  };
@@ -154,6 +334,13 @@ export declare const updateCustomerRoute: {
154
334
  error: z.ZodObject<{
155
335
  code: z.ZodString;
156
336
  message: z.ZodString;
337
+ details: z.ZodOptional<z.ZodObject<{
338
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
339
+ path: z.ZodString;
340
+ message: z.ZodString;
341
+ code: z.ZodString;
342
+ }, z.core.$strip>>>;
343
+ }, z.core.$strip>>;
157
344
  }, z.core.$strip>;
158
345
  }, z.core.$strip>;
159
346
  };
@@ -167,6 +354,13 @@ export declare const updateCustomerRoute: {
167
354
  error: z.ZodObject<{
168
355
  code: z.ZodString;
169
356
  message: z.ZodString;
357
+ details: z.ZodOptional<z.ZodObject<{
358
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
359
+ path: z.ZodString;
360
+ message: z.ZodString;
361
+ code: z.ZodString;
362
+ }, z.core.$strip>>>;
363
+ }, z.core.$strip>>;
170
364
  }, z.core.$strip>;
171
365
  }, z.core.$strip>;
172
366
  };
@@ -180,6 +374,13 @@ export declare const updateCustomerRoute: {
180
374
  error: z.ZodObject<{
181
375
  code: z.ZodString;
182
376
  message: z.ZodString;
377
+ details: z.ZodOptional<z.ZodObject<{
378
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
379
+ path: z.ZodString;
380
+ message: z.ZodString;
381
+ code: z.ZodString;
382
+ }, z.core.$strip>>>;
383
+ }, z.core.$strip>>;
183
384
  }, z.core.$strip>;
184
385
  }, z.core.$strip>;
185
386
  };
@@ -193,6 +394,13 @@ export declare const updateCustomerRoute: {
193
394
  error: z.ZodObject<{
194
395
  code: z.ZodString;
195
396
  message: z.ZodString;
397
+ details: z.ZodOptional<z.ZodObject<{
398
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
399
+ path: z.ZodString;
400
+ message: z.ZodString;
401
+ code: z.ZodString;
402
+ }, z.core.$strip>>>;
403
+ }, z.core.$strip>>;
196
404
  }, z.core.$strip>;
197
405
  }, z.core.$strip>;
198
406
  };
@@ -206,6 +414,13 @@ export declare const updateCustomerRoute: {
206
414
  error: z.ZodObject<{
207
415
  code: z.ZodString;
208
416
  message: z.ZodString;
417
+ details: z.ZodOptional<z.ZodObject<{
418
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
419
+ path: z.ZodString;
420
+ message: z.ZodString;
421
+ code: z.ZodString;
422
+ }, z.core.$strip>>>;
423
+ }, z.core.$strip>>;
209
424
  }, z.core.$strip>;
210
425
  }, z.core.$strip>;
211
426
  };
@@ -249,6 +464,13 @@ export declare const getCustomerOrdersRoute: {
249
464
  error: z.ZodObject<{
250
465
  code: z.ZodString;
251
466
  message: z.ZodString;
467
+ details: z.ZodOptional<z.ZodObject<{
468
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
469
+ path: z.ZodString;
470
+ message: z.ZodString;
471
+ code: z.ZodString;
472
+ }, z.core.$strip>>>;
473
+ }, z.core.$strip>>;
252
474
  }, z.core.$strip>;
253
475
  }, z.core.$strip>;
254
476
  };
@@ -262,6 +484,13 @@ export declare const getCustomerOrdersRoute: {
262
484
  error: z.ZodObject<{
263
485
  code: z.ZodString;
264
486
  message: z.ZodString;
487
+ details: z.ZodOptional<z.ZodObject<{
488
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
489
+ path: z.ZodString;
490
+ message: z.ZodString;
491
+ code: z.ZodString;
492
+ }, z.core.$strip>>>;
493
+ }, z.core.$strip>>;
265
494
  }, z.core.$strip>;
266
495
  }, z.core.$strip>;
267
496
  };
@@ -275,6 +504,13 @@ export declare const getCustomerOrdersRoute: {
275
504
  error: z.ZodObject<{
276
505
  code: z.ZodString;
277
506
  message: z.ZodString;
507
+ details: z.ZodOptional<z.ZodObject<{
508
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
509
+ path: z.ZodString;
510
+ message: z.ZodString;
511
+ code: z.ZodString;
512
+ }, z.core.$strip>>>;
513
+ }, z.core.$strip>>;
278
514
  }, z.core.$strip>;
279
515
  }, z.core.$strip>;
280
516
  };
@@ -288,6 +524,13 @@ export declare const getCustomerOrdersRoute: {
288
524
  error: z.ZodObject<{
289
525
  code: z.ZodString;
290
526
  message: z.ZodString;
527
+ details: z.ZodOptional<z.ZodObject<{
528
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
529
+ path: z.ZodString;
530
+ message: z.ZodString;
531
+ code: z.ZodString;
532
+ }, z.core.$strip>>>;
533
+ }, z.core.$strip>>;
291
534
  }, z.core.$strip>;
292
535
  }, z.core.$strip>;
293
536
  };
@@ -301,6 +544,13 @@ export declare const getCustomerOrdersRoute: {
301
544
  error: z.ZodObject<{
302
545
  code: z.ZodString;
303
546
  message: z.ZodString;
547
+ details: z.ZodOptional<z.ZodObject<{
548
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
549
+ path: z.ZodString;
550
+ message: z.ZodString;
551
+ code: z.ZodString;
552
+ }, z.core.$strip>>>;
553
+ }, z.core.$strip>>;
304
554
  }, z.core.$strip>;
305
555
  }, z.core.$strip>;
306
556
  };
@@ -347,6 +597,13 @@ export declare const getCustomerAddressesRoute: {
347
597
  error: z.ZodObject<{
348
598
  code: z.ZodString;
349
599
  message: z.ZodString;
600
+ details: z.ZodOptional<z.ZodObject<{
601
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
602
+ path: z.ZodString;
603
+ message: z.ZodString;
604
+ code: z.ZodString;
605
+ }, z.core.$strip>>>;
606
+ }, z.core.$strip>>;
350
607
  }, z.core.$strip>;
351
608
  }, z.core.$strip>;
352
609
  };
@@ -360,6 +617,13 @@ export declare const getCustomerAddressesRoute: {
360
617
  error: z.ZodObject<{
361
618
  code: z.ZodString;
362
619
  message: z.ZodString;
620
+ details: z.ZodOptional<z.ZodObject<{
621
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
622
+ path: z.ZodString;
623
+ message: z.ZodString;
624
+ code: z.ZodString;
625
+ }, z.core.$strip>>>;
626
+ }, z.core.$strip>>;
363
627
  }, z.core.$strip>;
364
628
  }, z.core.$strip>;
365
629
  };
@@ -373,6 +637,13 @@ export declare const getCustomerAddressesRoute: {
373
637
  error: z.ZodObject<{
374
638
  code: z.ZodString;
375
639
  message: z.ZodString;
640
+ details: z.ZodOptional<z.ZodObject<{
641
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
642
+ path: z.ZodString;
643
+ message: z.ZodString;
644
+ code: z.ZodString;
645
+ }, z.core.$strip>>>;
646
+ }, z.core.$strip>>;
376
647
  }, z.core.$strip>;
377
648
  }, z.core.$strip>;
378
649
  };
@@ -386,6 +657,13 @@ export declare const getCustomerAddressesRoute: {
386
657
  error: z.ZodObject<{
387
658
  code: z.ZodString;
388
659
  message: z.ZodString;
660
+ details: z.ZodOptional<z.ZodObject<{
661
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
662
+ path: z.ZodString;
663
+ message: z.ZodString;
664
+ code: z.ZodString;
665
+ }, z.core.$strip>>>;
666
+ }, z.core.$strip>>;
389
667
  }, z.core.$strip>;
390
668
  }, z.core.$strip>;
391
669
  };
@@ -399,6 +677,13 @@ export declare const getCustomerAddressesRoute: {
399
677
  error: z.ZodObject<{
400
678
  code: z.ZodString;
401
679
  message: z.ZodString;
680
+ details: z.ZodOptional<z.ZodObject<{
681
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
682
+ path: z.ZodString;
683
+ message: z.ZodString;
684
+ code: z.ZodString;
685
+ }, z.core.$strip>>>;
686
+ }, z.core.$strip>>;
402
687
  }, z.core.$strip>;
403
688
  }, z.core.$strip>;
404
689
  };
@@ -419,4 +704,582 @@ export declare const getCustomerAddressesRoute: {
419
704
  } & {
420
705
  getRoutingPath(): "/:id/addresses";
421
706
  };
707
+ export declare const InteractionKindEnum: z.ZodEnum<{
708
+ message: "message";
709
+ visit: "visit";
710
+ call: "call";
711
+ inquiry: "inquiry";
712
+ fitting: "fitting";
713
+ follow_up: "follow_up";
714
+ }>;
715
+ export declare const CreateInteractionBodySchema: z.ZodObject<{
716
+ kind: z.ZodEnum<{
717
+ message: "message";
718
+ visit: "visit";
719
+ call: "call";
720
+ inquiry: "inquiry";
721
+ fitting: "fitting";
722
+ follow_up: "follow_up";
723
+ }>;
724
+ notes: z.ZodString;
725
+ relatedEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
726
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
727
+ }, z.core.$strip>;
728
+ export declare const UpdateInteractionBodySchema: z.ZodObject<{
729
+ kind: z.ZodOptional<z.ZodEnum<{
730
+ message: "message";
731
+ visit: "visit";
732
+ call: "call";
733
+ inquiry: "inquiry";
734
+ fitting: "fitting";
735
+ follow_up: "follow_up";
736
+ }>>;
737
+ notes: z.ZodOptional<z.ZodString>;
738
+ relatedEntityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
739
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
740
+ }, z.core.$strip>;
741
+ export declare const listInteractionsRoute: {
742
+ method: "get";
743
+ path: "/{id}/interactions";
744
+ tags: string[];
745
+ summary: string;
746
+ request: {
747
+ params: z.ZodObject<{
748
+ id: z.ZodString;
749
+ }, z.core.$strip>;
750
+ };
751
+ responses: {
752
+ 400: {
753
+ readonly content: {
754
+ readonly "application/json": {
755
+ readonly schema: z.ZodObject<{
756
+ error: z.ZodObject<{
757
+ code: z.ZodString;
758
+ message: z.ZodString;
759
+ details: z.ZodOptional<z.ZodObject<{
760
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
761
+ path: z.ZodString;
762
+ message: z.ZodString;
763
+ code: z.ZodString;
764
+ }, z.core.$strip>>>;
765
+ }, z.core.$strip>>;
766
+ }, z.core.$strip>;
767
+ }, z.core.$strip>;
768
+ };
769
+ };
770
+ readonly description: "Business logic error.";
771
+ };
772
+ 401: {
773
+ readonly content: {
774
+ readonly "application/json": {
775
+ readonly schema: z.ZodObject<{
776
+ error: z.ZodObject<{
777
+ code: z.ZodString;
778
+ message: z.ZodString;
779
+ details: z.ZodOptional<z.ZodObject<{
780
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
781
+ path: z.ZodString;
782
+ message: z.ZodString;
783
+ code: z.ZodString;
784
+ }, z.core.$strip>>>;
785
+ }, z.core.$strip>>;
786
+ }, z.core.$strip>;
787
+ }, z.core.$strip>;
788
+ };
789
+ };
790
+ readonly description: "Authentication required.";
791
+ };
792
+ 403: {
793
+ readonly content: {
794
+ readonly "application/json": {
795
+ readonly schema: z.ZodObject<{
796
+ error: z.ZodObject<{
797
+ code: z.ZodString;
798
+ message: z.ZodString;
799
+ details: z.ZodOptional<z.ZodObject<{
800
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
801
+ path: z.ZodString;
802
+ message: z.ZodString;
803
+ code: z.ZodString;
804
+ }, z.core.$strip>>>;
805
+ }, z.core.$strip>>;
806
+ }, z.core.$strip>;
807
+ }, z.core.$strip>;
808
+ };
809
+ };
810
+ readonly description: "Insufficient permissions.";
811
+ };
812
+ 404: {
813
+ readonly content: {
814
+ readonly "application/json": {
815
+ readonly schema: z.ZodObject<{
816
+ error: z.ZodObject<{
817
+ code: z.ZodString;
818
+ message: z.ZodString;
819
+ details: z.ZodOptional<z.ZodObject<{
820
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
821
+ path: z.ZodString;
822
+ message: z.ZodString;
823
+ code: z.ZodString;
824
+ }, z.core.$strip>>>;
825
+ }, z.core.$strip>>;
826
+ }, z.core.$strip>;
827
+ }, z.core.$strip>;
828
+ };
829
+ };
830
+ readonly description: "Resource not found.";
831
+ };
832
+ 422: {
833
+ readonly content: {
834
+ readonly "application/json": {
835
+ readonly schema: z.ZodObject<{
836
+ error: z.ZodObject<{
837
+ code: z.ZodString;
838
+ message: z.ZodString;
839
+ details: z.ZodOptional<z.ZodObject<{
840
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
841
+ path: z.ZodString;
842
+ message: z.ZodString;
843
+ code: z.ZodString;
844
+ }, z.core.$strip>>>;
845
+ }, z.core.$strip>>;
846
+ }, z.core.$strip>;
847
+ }, z.core.$strip>;
848
+ };
849
+ };
850
+ readonly description: "Validation error.";
851
+ };
852
+ 200: {
853
+ content: {
854
+ "application/json": {
855
+ schema: z.ZodObject<{
856
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
857
+ }, z.core.$strip>;
858
+ };
859
+ };
860
+ description: string;
861
+ };
862
+ };
863
+ } & {
864
+ getRoutingPath(): "/:id/interactions";
865
+ };
866
+ export declare const createInteractionRoute: {
867
+ method: "post";
868
+ path: "/{id}/interactions";
869
+ tags: string[];
870
+ summary: string;
871
+ request: {
872
+ params: z.ZodObject<{
873
+ id: z.ZodString;
874
+ }, z.core.$strip>;
875
+ body: {
876
+ content: {
877
+ "application/json": {
878
+ schema: z.ZodObject<{
879
+ kind: z.ZodEnum<{
880
+ message: "message";
881
+ visit: "visit";
882
+ call: "call";
883
+ inquiry: "inquiry";
884
+ fitting: "fitting";
885
+ follow_up: "follow_up";
886
+ }>;
887
+ notes: z.ZodString;
888
+ relatedEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
890
+ }, z.core.$strip>;
891
+ };
892
+ };
893
+ required: true;
894
+ };
895
+ };
896
+ responses: {
897
+ 400: {
898
+ readonly content: {
899
+ readonly "application/json": {
900
+ readonly schema: z.ZodObject<{
901
+ error: z.ZodObject<{
902
+ code: z.ZodString;
903
+ message: z.ZodString;
904
+ details: z.ZodOptional<z.ZodObject<{
905
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
906
+ path: z.ZodString;
907
+ message: z.ZodString;
908
+ code: z.ZodString;
909
+ }, z.core.$strip>>>;
910
+ }, z.core.$strip>>;
911
+ }, z.core.$strip>;
912
+ }, z.core.$strip>;
913
+ };
914
+ };
915
+ readonly description: "Business logic error.";
916
+ };
917
+ 401: {
918
+ readonly content: {
919
+ readonly "application/json": {
920
+ readonly schema: z.ZodObject<{
921
+ error: z.ZodObject<{
922
+ code: z.ZodString;
923
+ message: z.ZodString;
924
+ details: z.ZodOptional<z.ZodObject<{
925
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
926
+ path: z.ZodString;
927
+ message: z.ZodString;
928
+ code: z.ZodString;
929
+ }, z.core.$strip>>>;
930
+ }, z.core.$strip>>;
931
+ }, z.core.$strip>;
932
+ }, z.core.$strip>;
933
+ };
934
+ };
935
+ readonly description: "Authentication required.";
936
+ };
937
+ 403: {
938
+ readonly content: {
939
+ readonly "application/json": {
940
+ readonly schema: z.ZodObject<{
941
+ error: z.ZodObject<{
942
+ code: z.ZodString;
943
+ message: z.ZodString;
944
+ details: z.ZodOptional<z.ZodObject<{
945
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
946
+ path: z.ZodString;
947
+ message: z.ZodString;
948
+ code: z.ZodString;
949
+ }, z.core.$strip>>>;
950
+ }, z.core.$strip>>;
951
+ }, z.core.$strip>;
952
+ }, z.core.$strip>;
953
+ };
954
+ };
955
+ readonly description: "Insufficient permissions.";
956
+ };
957
+ 404: {
958
+ readonly content: {
959
+ readonly "application/json": {
960
+ readonly schema: z.ZodObject<{
961
+ error: z.ZodObject<{
962
+ code: z.ZodString;
963
+ message: z.ZodString;
964
+ details: z.ZodOptional<z.ZodObject<{
965
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
966
+ path: z.ZodString;
967
+ message: z.ZodString;
968
+ code: z.ZodString;
969
+ }, z.core.$strip>>>;
970
+ }, z.core.$strip>>;
971
+ }, z.core.$strip>;
972
+ }, z.core.$strip>;
973
+ };
974
+ };
975
+ readonly description: "Resource not found.";
976
+ };
977
+ 422: {
978
+ readonly content: {
979
+ readonly "application/json": {
980
+ readonly schema: z.ZodObject<{
981
+ error: z.ZodObject<{
982
+ code: z.ZodString;
983
+ message: z.ZodString;
984
+ details: z.ZodOptional<z.ZodObject<{
985
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
986
+ path: z.ZodString;
987
+ message: z.ZodString;
988
+ code: z.ZodString;
989
+ }, z.core.$strip>>>;
990
+ }, z.core.$strip>>;
991
+ }, z.core.$strip>;
992
+ }, z.core.$strip>;
993
+ };
994
+ };
995
+ readonly description: "Validation error.";
996
+ };
997
+ 201: {
998
+ content: {
999
+ "application/json": {
1000
+ schema: z.ZodObject<{
1001
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1002
+ }, z.core.$strip>;
1003
+ };
1004
+ };
1005
+ description: string;
1006
+ };
1007
+ };
1008
+ } & {
1009
+ getRoutingPath(): "/:id/interactions";
1010
+ };
1011
+ export declare const updateInteractionRoute: {
1012
+ method: "patch";
1013
+ path: "/{id}/interactions/{iid}";
1014
+ tags: string[];
1015
+ summary: string;
1016
+ request: {
1017
+ params: z.ZodObject<{
1018
+ id: z.ZodString;
1019
+ iid: z.ZodString;
1020
+ }, z.core.$strip>;
1021
+ body: {
1022
+ content: {
1023
+ "application/json": {
1024
+ schema: z.ZodObject<{
1025
+ kind: z.ZodOptional<z.ZodEnum<{
1026
+ message: "message";
1027
+ visit: "visit";
1028
+ call: "call";
1029
+ inquiry: "inquiry";
1030
+ fitting: "fitting";
1031
+ follow_up: "follow_up";
1032
+ }>>;
1033
+ notes: z.ZodOptional<z.ZodString>;
1034
+ relatedEntityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1035
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1036
+ }, z.core.$strip>;
1037
+ };
1038
+ };
1039
+ required: true;
1040
+ };
1041
+ };
1042
+ responses: {
1043
+ 400: {
1044
+ readonly content: {
1045
+ readonly "application/json": {
1046
+ readonly schema: z.ZodObject<{
1047
+ error: z.ZodObject<{
1048
+ code: z.ZodString;
1049
+ message: z.ZodString;
1050
+ details: z.ZodOptional<z.ZodObject<{
1051
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1052
+ path: z.ZodString;
1053
+ message: z.ZodString;
1054
+ code: z.ZodString;
1055
+ }, z.core.$strip>>>;
1056
+ }, z.core.$strip>>;
1057
+ }, z.core.$strip>;
1058
+ }, z.core.$strip>;
1059
+ };
1060
+ };
1061
+ readonly description: "Business logic error.";
1062
+ };
1063
+ 401: {
1064
+ readonly content: {
1065
+ readonly "application/json": {
1066
+ readonly schema: z.ZodObject<{
1067
+ error: z.ZodObject<{
1068
+ code: z.ZodString;
1069
+ message: z.ZodString;
1070
+ details: z.ZodOptional<z.ZodObject<{
1071
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1072
+ path: z.ZodString;
1073
+ message: z.ZodString;
1074
+ code: z.ZodString;
1075
+ }, z.core.$strip>>>;
1076
+ }, z.core.$strip>>;
1077
+ }, z.core.$strip>;
1078
+ }, z.core.$strip>;
1079
+ };
1080
+ };
1081
+ readonly description: "Authentication required.";
1082
+ };
1083
+ 403: {
1084
+ readonly content: {
1085
+ readonly "application/json": {
1086
+ readonly schema: z.ZodObject<{
1087
+ error: z.ZodObject<{
1088
+ code: z.ZodString;
1089
+ message: z.ZodString;
1090
+ details: z.ZodOptional<z.ZodObject<{
1091
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1092
+ path: z.ZodString;
1093
+ message: z.ZodString;
1094
+ code: z.ZodString;
1095
+ }, z.core.$strip>>>;
1096
+ }, z.core.$strip>>;
1097
+ }, z.core.$strip>;
1098
+ }, z.core.$strip>;
1099
+ };
1100
+ };
1101
+ readonly description: "Insufficient permissions.";
1102
+ };
1103
+ 404: {
1104
+ readonly content: {
1105
+ readonly "application/json": {
1106
+ readonly schema: z.ZodObject<{
1107
+ error: z.ZodObject<{
1108
+ code: z.ZodString;
1109
+ message: z.ZodString;
1110
+ details: z.ZodOptional<z.ZodObject<{
1111
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1112
+ path: z.ZodString;
1113
+ message: z.ZodString;
1114
+ code: z.ZodString;
1115
+ }, z.core.$strip>>>;
1116
+ }, z.core.$strip>>;
1117
+ }, z.core.$strip>;
1118
+ }, z.core.$strip>;
1119
+ };
1120
+ };
1121
+ readonly description: "Resource not found.";
1122
+ };
1123
+ 422: {
1124
+ readonly content: {
1125
+ readonly "application/json": {
1126
+ readonly schema: z.ZodObject<{
1127
+ error: z.ZodObject<{
1128
+ code: z.ZodString;
1129
+ message: z.ZodString;
1130
+ details: z.ZodOptional<z.ZodObject<{
1131
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1132
+ path: z.ZodString;
1133
+ message: z.ZodString;
1134
+ code: z.ZodString;
1135
+ }, z.core.$strip>>>;
1136
+ }, z.core.$strip>>;
1137
+ }, z.core.$strip>;
1138
+ }, z.core.$strip>;
1139
+ };
1140
+ };
1141
+ readonly description: "Validation error.";
1142
+ };
1143
+ 200: {
1144
+ content: {
1145
+ "application/json": {
1146
+ schema: z.ZodObject<{
1147
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1148
+ }, z.core.$strip>;
1149
+ };
1150
+ };
1151
+ description: string;
1152
+ };
1153
+ };
1154
+ } & {
1155
+ getRoutingPath(): "/:id/interactions/:iid";
1156
+ };
1157
+ export declare const deleteInteractionRoute: {
1158
+ method: "delete";
1159
+ path: "/{id}/interactions/{iid}";
1160
+ tags: string[];
1161
+ summary: string;
1162
+ request: {
1163
+ params: z.ZodObject<{
1164
+ id: z.ZodString;
1165
+ iid: z.ZodString;
1166
+ }, z.core.$strip>;
1167
+ };
1168
+ responses: {
1169
+ 400: {
1170
+ readonly content: {
1171
+ readonly "application/json": {
1172
+ readonly schema: z.ZodObject<{
1173
+ error: z.ZodObject<{
1174
+ code: z.ZodString;
1175
+ message: z.ZodString;
1176
+ details: z.ZodOptional<z.ZodObject<{
1177
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1178
+ path: z.ZodString;
1179
+ message: z.ZodString;
1180
+ code: z.ZodString;
1181
+ }, z.core.$strip>>>;
1182
+ }, z.core.$strip>>;
1183
+ }, z.core.$strip>;
1184
+ }, z.core.$strip>;
1185
+ };
1186
+ };
1187
+ readonly description: "Business logic error.";
1188
+ };
1189
+ 401: {
1190
+ readonly content: {
1191
+ readonly "application/json": {
1192
+ readonly schema: z.ZodObject<{
1193
+ error: z.ZodObject<{
1194
+ code: z.ZodString;
1195
+ message: z.ZodString;
1196
+ details: z.ZodOptional<z.ZodObject<{
1197
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1198
+ path: z.ZodString;
1199
+ message: z.ZodString;
1200
+ code: z.ZodString;
1201
+ }, z.core.$strip>>>;
1202
+ }, z.core.$strip>>;
1203
+ }, z.core.$strip>;
1204
+ }, z.core.$strip>;
1205
+ };
1206
+ };
1207
+ readonly description: "Authentication required.";
1208
+ };
1209
+ 403: {
1210
+ readonly content: {
1211
+ readonly "application/json": {
1212
+ readonly schema: z.ZodObject<{
1213
+ error: z.ZodObject<{
1214
+ code: z.ZodString;
1215
+ message: z.ZodString;
1216
+ details: z.ZodOptional<z.ZodObject<{
1217
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1218
+ path: z.ZodString;
1219
+ message: z.ZodString;
1220
+ code: z.ZodString;
1221
+ }, z.core.$strip>>>;
1222
+ }, z.core.$strip>>;
1223
+ }, z.core.$strip>;
1224
+ }, z.core.$strip>;
1225
+ };
1226
+ };
1227
+ readonly description: "Insufficient permissions.";
1228
+ };
1229
+ 404: {
1230
+ readonly content: {
1231
+ readonly "application/json": {
1232
+ readonly schema: z.ZodObject<{
1233
+ error: z.ZodObject<{
1234
+ code: z.ZodString;
1235
+ message: z.ZodString;
1236
+ details: z.ZodOptional<z.ZodObject<{
1237
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1238
+ path: z.ZodString;
1239
+ message: z.ZodString;
1240
+ code: z.ZodString;
1241
+ }, z.core.$strip>>>;
1242
+ }, z.core.$strip>>;
1243
+ }, z.core.$strip>;
1244
+ }, z.core.$strip>;
1245
+ };
1246
+ };
1247
+ readonly description: "Resource not found.";
1248
+ };
1249
+ 422: {
1250
+ readonly content: {
1251
+ readonly "application/json": {
1252
+ readonly schema: z.ZodObject<{
1253
+ error: z.ZodObject<{
1254
+ code: z.ZodString;
1255
+ message: z.ZodString;
1256
+ details: z.ZodOptional<z.ZodObject<{
1257
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1258
+ path: z.ZodString;
1259
+ message: z.ZodString;
1260
+ code: z.ZodString;
1261
+ }, z.core.$strip>>>;
1262
+ }, z.core.$strip>>;
1263
+ }, z.core.$strip>;
1264
+ }, z.core.$strip>;
1265
+ };
1266
+ };
1267
+ readonly description: "Validation error.";
1268
+ };
1269
+ 200: {
1270
+ content: {
1271
+ "application/json": {
1272
+ schema: z.ZodObject<{
1273
+ data: z.ZodObject<{
1274
+ deleted: z.ZodLiteral<true>;
1275
+ }, z.core.$strip>;
1276
+ }, z.core.$strip>;
1277
+ };
1278
+ };
1279
+ description: string;
1280
+ };
1281
+ };
1282
+ } & {
1283
+ getRoutingPath(): "/:id/interactions/:iid";
1284
+ };
422
1285
  //# sourceMappingURL=customers.d.ts.map