@porulle/core 0.7.0 → 0.9.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 (325) hide show
  1. package/dist/auth/middleware.d.ts.map +1 -1
  2. package/dist/auth/middleware.js +26 -7
  3. package/dist/auth/setup.d.ts.map +1 -1
  4. package/dist/auth/setup.js +8 -5
  5. package/dist/config/defaults.d.ts.map +1 -1
  6. package/dist/config/defaults.js +7 -0
  7. package/dist/config/types.d.ts +26 -1
  8. package/dist/config/types.d.ts.map +1 -1
  9. package/dist/generated/plugin-manifest.d.ts +3 -0
  10. package/dist/generated/plugin-manifest.d.ts.map +1 -1
  11. package/dist/generated/plugin-manifest.js +1 -0
  12. package/dist/hooks/checkout-completion.d.ts.map +1 -1
  13. package/dist/hooks/checkout-completion.js +2 -2
  14. package/dist/hooks/checkout.d.ts.map +1 -1
  15. package/dist/hooks/checkout.js +17 -2
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +1 -0
  19. package/dist/interfaces/rest/index.d.ts.map +1 -1
  20. package/dist/interfaces/rest/index.js +12 -0
  21. package/dist/interfaces/rest/routes/admin/staff.d.ts +12 -0
  22. package/dist/interfaces/rest/routes/admin/staff.d.ts.map +1 -0
  23. package/dist/interfaces/rest/routes/admin/staff.js +206 -0
  24. package/dist/interfaces/rest/routes/analytics.d.ts +5 -0
  25. package/dist/interfaces/rest/routes/analytics.d.ts.map +1 -0
  26. package/dist/interfaces/rest/routes/analytics.js +24 -0
  27. package/dist/interfaces/rest/routes/carts.d.ts.map +1 -1
  28. package/dist/interfaces/rest/routes/carts.js +39 -2
  29. package/dist/interfaces/rest/routes/catalog.d.ts.map +1 -1
  30. package/dist/interfaces/rest/routes/catalog.js +17 -1
  31. package/dist/interfaces/rest/routes/checkout.d.ts +9 -0
  32. package/dist/interfaces/rest/routes/checkout.d.ts.map +1 -1
  33. package/dist/interfaces/rest/routes/checkout.js +97 -21
  34. package/dist/interfaces/rest/routes/documents.d.ts +10 -0
  35. package/dist/interfaces/rest/routes/documents.d.ts.map +1 -0
  36. package/dist/interfaces/rest/routes/documents.js +40 -0
  37. package/dist/interfaces/rest/routes/inventory.d.ts.map +1 -1
  38. package/dist/interfaces/rest/routes/inventory.js +13 -0
  39. package/dist/interfaces/rest/routes/orders.d.ts.map +1 -1
  40. package/dist/interfaces/rest/routes/orders.js +111 -1
  41. package/dist/interfaces/rest/routes/pricing.d.ts.map +1 -1
  42. package/dist/interfaces/rest/routes/pricing.js +36 -1
  43. package/dist/interfaces/rest/routes/settings.d.ts +5 -0
  44. package/dist/interfaces/rest/routes/settings.d.ts.map +1 -0
  45. package/dist/interfaces/rest/routes/settings.js +50 -0
  46. package/dist/interfaces/rest/routes/shipping.d.ts +5 -0
  47. package/dist/interfaces/rest/routes/shipping.d.ts.map +1 -0
  48. package/dist/interfaces/rest/routes/shipping.js +68 -0
  49. package/dist/interfaces/rest/routes/tax.d.ts +5 -0
  50. package/dist/interfaces/rest/routes/tax.d.ts.map +1 -0
  51. package/dist/interfaces/rest/routes/tax.js +68 -0
  52. package/dist/interfaces/rest/schemas/admin-staff.d.ts +899 -0
  53. package/dist/interfaces/rest/schemas/admin-staff.d.ts.map +1 -0
  54. package/dist/interfaces/rest/schemas/admin-staff.js +98 -0
  55. package/dist/interfaces/rest/schemas/analytics.d.ts +252 -0
  56. package/dist/interfaces/rest/schemas/analytics.d.ts.map +1 -0
  57. package/dist/interfaces/rest/schemas/analytics.js +33 -0
  58. package/dist/interfaces/rest/schemas/carts.d.ts +656 -0
  59. package/dist/interfaces/rest/schemas/carts.d.ts.map +1 -1
  60. package/dist/interfaces/rest/schemas/carts.js +38 -0
  61. package/dist/interfaces/rest/schemas/catalog.d.ts +1218 -1
  62. package/dist/interfaces/rest/schemas/catalog.d.ts.map +1 -1
  63. package/dist/interfaces/rest/schemas/catalog.js +48 -0
  64. package/dist/interfaces/rest/schemas/checkout.d.ts +2 -0
  65. package/dist/interfaces/rest/schemas/checkout.d.ts.map +1 -1
  66. package/dist/interfaces/rest/schemas/checkout.js +4 -0
  67. package/dist/interfaces/rest/schemas/customer-portal.d.ts +35 -0
  68. package/dist/interfaces/rest/schemas/customer-portal.d.ts.map +1 -1
  69. package/dist/interfaces/rest/schemas/documents.d.ts +509 -0
  70. package/dist/interfaces/rest/schemas/documents.d.ts.map +1 -0
  71. package/dist/interfaces/rest/schemas/documents.js +65 -0
  72. package/dist/interfaces/rest/schemas/orders.d.ts +3110 -43
  73. package/dist/interfaces/rest/schemas/orders.d.ts.map +1 -1
  74. package/dist/interfaces/rest/schemas/orders.js +234 -1
  75. package/dist/interfaces/rest/schemas/pricing.d.ts +405 -0
  76. package/dist/interfaces/rest/schemas/pricing.d.ts.map +1 -1
  77. package/dist/interfaces/rest/schemas/pricing.js +70 -0
  78. package/dist/interfaces/rest/schemas/responses.d.ts +190 -0
  79. package/dist/interfaces/rest/schemas/responses.d.ts.map +1 -1
  80. package/dist/interfaces/rest/schemas/search.d.ts +17 -0
  81. package/dist/interfaces/rest/schemas/search.d.ts.map +1 -1
  82. package/dist/interfaces/rest/schemas/settings.d.ts +397 -0
  83. package/dist/interfaces/rest/schemas/settings.d.ts.map +1 -0
  84. package/dist/interfaces/rest/schemas/settings.js +79 -0
  85. package/dist/interfaces/rest/schemas/shipping.d.ts +1093 -0
  86. package/dist/interfaces/rest/schemas/shipping.d.ts.map +1 -0
  87. package/dist/interfaces/rest/schemas/shipping.js +146 -0
  88. package/dist/interfaces/rest/schemas/tax.d.ts +1074 -0
  89. package/dist/interfaces/rest/schemas/tax.d.ts.map +1 -0
  90. package/dist/interfaces/rest/schemas/tax.js +132 -0
  91. package/dist/kernel/database/schema.d.ts +4 -0
  92. package/dist/kernel/database/schema.d.ts.map +1 -1
  93. package/dist/kernel/database/schema.js +8 -0
  94. package/dist/kernel/database/scoped-db.d.ts +2 -1
  95. package/dist/kernel/database/scoped-db.d.ts.map +1 -1
  96. package/dist/kernel/database/scoped-db.js +62 -1
  97. package/dist/kernel/hooks/types.d.ts +1 -1
  98. package/dist/kernel/hooks/types.d.ts.map +1 -1
  99. package/dist/kernel/plugin/manifest.d.ts +26 -0
  100. package/dist/kernel/plugin/manifest.d.ts.map +1 -1
  101. package/dist/kernel/plugin/manifest.js +17 -2
  102. package/dist/modules/analytics/drizzle-adapter.d.ts.map +1 -1
  103. package/dist/modules/analytics/drizzle-adapter.js +16 -3
  104. package/dist/modules/analytics/module.d.ts.map +1 -1
  105. package/dist/modules/analytics/module.js +6 -0
  106. package/dist/modules/analytics/reports.d.ts +58 -0
  107. package/dist/modules/analytics/reports.d.ts.map +1 -0
  108. package/dist/modules/analytics/reports.js +249 -0
  109. package/dist/modules/analytics/service.d.ts +10 -0
  110. package/dist/modules/analytics/service.d.ts.map +1 -1
  111. package/dist/modules/analytics/service.js +14 -0
  112. package/dist/modules/cart/repository/index.d.ts +7 -0
  113. package/dist/modules/cart/repository/index.d.ts.map +1 -1
  114. package/dist/modules/cart/repository/index.js +25 -1
  115. package/dist/modules/cart/schema.d.ts +17 -0
  116. package/dist/modules/cart/schema.d.ts.map +1 -1
  117. package/dist/modules/cart/schema.js +2 -0
  118. package/dist/modules/cart/schemas.d.ts +1 -0
  119. package/dist/modules/cart/schemas.d.ts.map +1 -1
  120. package/dist/modules/cart/schemas.js +1 -0
  121. package/dist/modules/cart/service.d.ts +32 -0
  122. package/dist/modules/cart/service.d.ts.map +1 -1
  123. package/dist/modules/cart/service.js +61 -2
  124. package/dist/modules/catalog/entity-service.d.ts +21 -0
  125. package/dist/modules/catalog/entity-service.d.ts.map +1 -1
  126. package/dist/modules/catalog/entity-service.js +166 -5
  127. package/dist/modules/catalog/schema.d.ts +34 -0
  128. package/dist/modules/catalog/schema.d.ts.map +1 -1
  129. package/dist/modules/catalog/schema.js +5 -0
  130. package/dist/modules/catalog/schemas.d.ts +3 -0
  131. package/dist/modules/catalog/schemas.d.ts.map +1 -1
  132. package/dist/modules/catalog/schemas.js +3 -0
  133. package/dist/modules/catalog/service.d.ts +36 -0
  134. package/dist/modules/catalog/service.d.ts.map +1 -1
  135. package/dist/modules/catalog/service.js +6 -0
  136. package/dist/modules/customers/service.d.ts.map +1 -1
  137. package/dist/modules/customers/service.js +6 -0
  138. package/dist/modules/documents/module.d.ts +7 -0
  139. package/dist/modules/documents/module.d.ts.map +1 -0
  140. package/dist/modules/documents/module.js +12 -0
  141. package/dist/modules/documents/pdf.d.ts +25 -0
  142. package/dist/modules/documents/pdf.d.ts.map +1 -0
  143. package/dist/modules/documents/pdf.js +80 -0
  144. package/dist/modules/documents/render.d.ts +32 -0
  145. package/dist/modules/documents/render.d.ts.map +1 -0
  146. package/dist/modules/documents/render.js +190 -0
  147. package/dist/modules/documents/repository/index.d.ts +25 -0
  148. package/dist/modules/documents/repository/index.d.ts.map +1 -0
  149. package/dist/modules/documents/repository/index.js +47 -0
  150. package/dist/modules/documents/schema.d.ts +214 -0
  151. package/dist/modules/documents/schema.d.ts.map +1 -0
  152. package/dist/modules/documents/schema.js +42 -0
  153. package/dist/modules/documents/service.d.ts +51 -0
  154. package/dist/modules/documents/service.d.ts.map +1 -0
  155. package/dist/modules/documents/service.js +119 -0
  156. package/dist/modules/fulfillment/service.d.ts +18 -0
  157. package/dist/modules/fulfillment/service.d.ts.map +1 -1
  158. package/dist/modules/fulfillment/service.js +85 -1
  159. package/dist/modules/orders/repository/index.d.ts +18 -1
  160. package/dist/modules/orders/repository/index.d.ts.map +1 -1
  161. package/dist/modules/orders/repository/index.js +86 -1
  162. package/dist/modules/orders/schema.d.ts +391 -0
  163. package/dist/modules/orders/schema.d.ts.map +1 -1
  164. package/dist/modules/orders/schema.js +56 -1
  165. package/dist/modules/orders/service.d.ts +102 -3
  166. package/dist/modules/orders/service.d.ts.map +1 -1
  167. package/dist/modules/orders/service.js +653 -29
  168. package/dist/modules/orders/stale-order-cleanup.d.ts.map +1 -1
  169. package/dist/modules/orders/stale-order-cleanup.js +13 -1
  170. package/dist/modules/pricing/repository/index.d.ts +5 -0
  171. package/dist/modules/pricing/repository/index.d.ts.map +1 -1
  172. package/dist/modules/pricing/repository/index.js +19 -0
  173. package/dist/modules/pricing/service.d.ts +18 -0
  174. package/dist/modules/pricing/service.d.ts.map +1 -1
  175. package/dist/modules/pricing/service.js +43 -5
  176. package/dist/modules/settings/module.d.ts +6 -0
  177. package/dist/modules/settings/module.d.ts.map +1 -0
  178. package/dist/modules/settings/module.js +11 -0
  179. package/dist/modules/settings/repository/index.d.ts +16 -0
  180. package/dist/modules/settings/repository/index.d.ts.map +1 -0
  181. package/dist/modules/settings/repository/index.js +41 -0
  182. package/dist/modules/settings/schema.d.ts +121 -0
  183. package/dist/modules/settings/schema.d.ts.map +1 -0
  184. package/dist/modules/settings/schema.js +24 -0
  185. package/dist/modules/settings/service.d.ts +26 -0
  186. package/dist/modules/settings/service.d.ts.map +1 -0
  187. package/dist/modules/settings/service.js +51 -0
  188. package/dist/modules/shipping/calculator.d.ts +5 -0
  189. package/dist/modules/shipping/calculator.d.ts.map +1 -1
  190. package/dist/modules/shipping/calculator.js +10 -0
  191. package/dist/modules/shipping/module.d.ts +5 -1
  192. package/dist/modules/shipping/module.d.ts.map +1 -1
  193. package/dist/modules/shipping/module.js +4 -1
  194. package/dist/modules/shipping/repository/index.d.ts +27 -2
  195. package/dist/modules/shipping/repository/index.d.ts.map +1 -1
  196. package/dist/modules/shipping/repository/index.js +105 -1
  197. package/dist/modules/shipping/schema.d.ts +419 -0
  198. package/dist/modules/shipping/schema.d.ts.map +1 -0
  199. package/dist/modules/shipping/schema.js +56 -0
  200. package/dist/modules/shipping/service.d.ts +54 -0
  201. package/dist/modules/shipping/service.d.ts.map +1 -1
  202. package/dist/modules/shipping/service.js +161 -2
  203. package/dist/modules/tax/adapter.d.ts +13 -0
  204. package/dist/modules/tax/adapter.d.ts.map +1 -1
  205. package/dist/modules/tax/module.d.ts +5 -1
  206. package/dist/modules/tax/module.d.ts.map +1 -1
  207. package/dist/modules/tax/module.js +4 -1
  208. package/dist/modules/tax/repository/index.d.ts +38 -2
  209. package/dist/modules/tax/repository/index.d.ts.map +1 -1
  210. package/dist/modules/tax/repository/index.js +138 -1
  211. package/dist/modules/tax/schema.d.ts +355 -0
  212. package/dist/modules/tax/schema.d.ts.map +1 -0
  213. package/dist/modules/tax/schema.js +55 -0
  214. package/dist/modules/tax/service.d.ts +60 -1
  215. package/dist/modules/tax/service.d.ts.map +1 -1
  216. package/dist/modules/tax/service.js +227 -2
  217. package/dist/runtime/kernel-modules.d.ts +15 -2
  218. package/dist/runtime/kernel-modules.d.ts.map +1 -1
  219. package/dist/runtime/kernel-modules.js +4 -0
  220. package/dist/runtime/kernel-types.d.ts +5 -1
  221. package/dist/runtime/kernel-types.d.ts.map +1 -1
  222. package/dist/runtime/kernel-types.js +2 -0
  223. package/dist/runtime/server.js +1 -1
  224. package/dist/test-utils/create-plugin-test-app.d.ts +3 -0
  225. package/dist/test-utils/create-plugin-test-app.d.ts.map +1 -1
  226. package/dist/test-utils/create-plugin-test-app.js +15 -3
  227. package/dist/test-utils/create-test-config.d.ts.map +1 -1
  228. package/dist/test-utils/create-test-config.js +2 -0
  229. package/dist/test-utils/order-test-helpers.d.ts +12 -0
  230. package/dist/test-utils/order-test-helpers.d.ts.map +1 -0
  231. package/dist/test-utils/order-test-helpers.js +18 -0
  232. package/dist/test-utils/rest-api-test-utils.d.ts.map +1 -1
  233. package/dist/test-utils/rest-api-test-utils.js +7 -0
  234. package/dist/test-utils/test-actors.js +1 -1
  235. package/dist/testing.d.ts +1 -0
  236. package/dist/testing.d.ts.map +1 -1
  237. package/dist/testing.js +1 -0
  238. package/package.json +3 -3
  239. package/src/auth/middleware.ts +26 -7
  240. package/src/auth/setup.ts +11 -4
  241. package/src/config/defaults.ts +7 -0
  242. package/src/config/types.ts +26 -1
  243. package/src/generated/plugin-capabilities.d.ts +1 -0
  244. package/src/generated/plugin-manifest.ts +1 -0
  245. package/src/generated/plugin-repositories.d.ts +1 -0
  246. package/src/hooks/checkout-completion.ts +22 -16
  247. package/src/hooks/checkout.ts +36 -11
  248. package/src/index.ts +1 -0
  249. package/src/interfaces/rest/index.ts +12 -0
  250. package/src/interfaces/rest/routes/admin/staff.ts +260 -0
  251. package/src/interfaces/rest/routes/analytics.ts +33 -0
  252. package/src/interfaces/rest/routes/carts.ts +52 -2
  253. package/src/interfaces/rest/routes/catalog.ts +34 -0
  254. package/src/interfaces/rest/routes/checkout.ts +114 -27
  255. package/src/interfaces/rest/routes/documents.ts +61 -0
  256. package/src/interfaces/rest/routes/inventory.ts +14 -0
  257. package/src/interfaces/rest/routes/orders.ts +148 -1
  258. package/src/interfaces/rest/routes/pricing.ts +44 -1
  259. package/src/interfaces/rest/routes/settings.ts +61 -0
  260. package/src/interfaces/rest/routes/shipping.ts +92 -0
  261. package/src/interfaces/rest/routes/tax.ts +90 -0
  262. package/src/interfaces/rest/schemas/admin-staff.ts +110 -0
  263. package/src/interfaces/rest/schemas/analytics.ts +39 -0
  264. package/src/interfaces/rest/schemas/carts.ts +40 -0
  265. package/src/interfaces/rest/schemas/catalog.ts +53 -0
  266. package/src/interfaces/rest/schemas/checkout.ts +4 -0
  267. package/src/interfaces/rest/schemas/documents.ts +72 -0
  268. package/src/interfaces/rest/schemas/orders.ts +258 -1
  269. package/src/interfaces/rest/schemas/pricing.ts +75 -0
  270. package/src/interfaces/rest/schemas/settings.ts +93 -0
  271. package/src/interfaces/rest/schemas/shipping.ts +164 -0
  272. package/src/interfaces/rest/schemas/tax.ts +148 -0
  273. package/src/kernel/database/schema.ts +12 -0
  274. package/src/kernel/database/scoped-db.ts +70 -1
  275. package/src/kernel/hooks/types.ts +1 -0
  276. package/src/kernel/plugin/manifest.ts +41 -2
  277. package/src/modules/analytics/drizzle-adapter.ts +19 -3
  278. package/src/modules/analytics/module.ts +10 -0
  279. package/src/modules/analytics/reports.ts +311 -0
  280. package/src/modules/analytics/service.ts +23 -0
  281. package/src/modules/cart/repository/index.ts +30 -1
  282. package/src/modules/cart/schema.ts +2 -0
  283. package/src/modules/cart/schemas.ts +1 -0
  284. package/src/modules/cart/service.ts +104 -2
  285. package/src/modules/catalog/entity-service.ts +196 -4
  286. package/src/modules/catalog/schema.ts +5 -0
  287. package/src/modules/catalog/schemas.ts +3 -0
  288. package/src/modules/catalog/service.ts +30 -0
  289. package/src/modules/customers/service.ts +6 -0
  290. package/src/modules/documents/module.ts +19 -0
  291. package/src/modules/documents/pdf.ts +101 -0
  292. package/src/modules/documents/render.ts +231 -0
  293. package/src/modules/documents/repository/index.ts +68 -0
  294. package/src/modules/documents/schema.ts +44 -0
  295. package/src/modules/documents/service.ts +176 -0
  296. package/src/modules/fulfillment/service.ts +139 -1
  297. package/src/modules/orders/repository/index.ts +127 -1
  298. package/src/modules/orders/schema.ts +58 -1
  299. package/src/modules/orders/service.ts +1041 -65
  300. package/src/modules/orders/stale-order-cleanup.ts +18 -4
  301. package/src/modules/pricing/repository/index.ts +34 -0
  302. package/src/modules/pricing/service.ts +76 -6
  303. package/src/modules/settings/module.ts +18 -0
  304. package/src/modules/settings/repository/index.ts +59 -0
  305. package/src/modules/settings/schema.ts +25 -0
  306. package/src/modules/settings/service.ts +82 -0
  307. package/src/modules/shipping/calculator.ts +27 -0
  308. package/src/modules/shipping/module.ts +6 -2
  309. package/src/modules/shipping/repository/index.ts +136 -2
  310. package/src/modules/shipping/schema.ts +58 -0
  311. package/src/modules/shipping/service.ts +260 -1
  312. package/src/modules/tax/adapter.ts +9 -0
  313. package/src/modules/tax/module.ts +6 -2
  314. package/src/modules/tax/repository/index.ts +169 -2
  315. package/src/modules/tax/schema.ts +57 -0
  316. package/src/modules/tax/service.ts +313 -2
  317. package/src/runtime/kernel-modules.ts +4 -0
  318. package/src/runtime/kernel-types.ts +6 -0
  319. package/src/runtime/server.ts +1 -1
  320. package/src/test-utils/create-plugin-test-app.ts +17 -4
  321. package/src/test-utils/create-test-config.ts +2 -0
  322. package/src/test-utils/order-test-helpers.ts +26 -0
  323. package/src/test-utils/rest-api-test-utils.ts +7 -0
  324. package/src/test-utils/test-actors.ts +1 -1
  325. package/src/testing.ts +1 -0
@@ -0,0 +1,899 @@
1
+ import { z } from "@hono/zod-openapi";
2
+ export declare const CreateStaffBodySchema: z.ZodObject<{
3
+ userId: z.ZodString;
4
+ role: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export declare const InviteStaffBodySchema: z.ZodObject<{
7
+ email: z.ZodEmail;
8
+ role: z.ZodString;
9
+ }, z.core.$strip>;
10
+ export declare const UpdateStaffRoleBodySchema: z.ZodObject<{
11
+ role: z.ZodString;
12
+ }, z.core.$strip>;
13
+ export declare const listStaffRoute: {
14
+ method: "get";
15
+ path: "/staff";
16
+ tags: string[];
17
+ summary: string;
18
+ responses: {
19
+ 400: {
20
+ readonly content: {
21
+ readonly "application/json": {
22
+ readonly schema: z.ZodObject<{
23
+ error: z.ZodObject<{
24
+ code: z.ZodString;
25
+ message: z.ZodString;
26
+ details: z.ZodOptional<z.ZodObject<{
27
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
+ path: z.ZodString;
29
+ message: z.ZodString;
30
+ code: z.ZodString;
31
+ }, z.core.$strip>>>;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>;
35
+ };
36
+ };
37
+ readonly description: "Business logic error.";
38
+ };
39
+ 401: {
40
+ readonly content: {
41
+ readonly "application/json": {
42
+ readonly schema: z.ZodObject<{
43
+ error: z.ZodObject<{
44
+ code: z.ZodString;
45
+ message: z.ZodString;
46
+ details: z.ZodOptional<z.ZodObject<{
47
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
48
+ path: z.ZodString;
49
+ message: z.ZodString;
50
+ code: z.ZodString;
51
+ }, z.core.$strip>>>;
52
+ }, z.core.$strip>>;
53
+ }, z.core.$strip>;
54
+ }, z.core.$strip>;
55
+ };
56
+ };
57
+ readonly description: "Authentication required.";
58
+ };
59
+ 403: {
60
+ readonly content: {
61
+ readonly "application/json": {
62
+ readonly schema: z.ZodObject<{
63
+ error: z.ZodObject<{
64
+ code: z.ZodString;
65
+ message: z.ZodString;
66
+ details: z.ZodOptional<z.ZodObject<{
67
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
68
+ path: z.ZodString;
69
+ message: z.ZodString;
70
+ code: z.ZodString;
71
+ }, z.core.$strip>>>;
72
+ }, z.core.$strip>>;
73
+ }, z.core.$strip>;
74
+ }, z.core.$strip>;
75
+ };
76
+ };
77
+ readonly description: "Insufficient permissions.";
78
+ };
79
+ 404: {
80
+ readonly content: {
81
+ readonly "application/json": {
82
+ readonly schema: z.ZodObject<{
83
+ error: z.ZodObject<{
84
+ code: z.ZodString;
85
+ message: z.ZodString;
86
+ details: z.ZodOptional<z.ZodObject<{
87
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
+ path: z.ZodString;
89
+ message: z.ZodString;
90
+ code: z.ZodString;
91
+ }, z.core.$strip>>>;
92
+ }, z.core.$strip>>;
93
+ }, z.core.$strip>;
94
+ }, z.core.$strip>;
95
+ };
96
+ };
97
+ readonly description: "Resource not found.";
98
+ };
99
+ 422: {
100
+ readonly content: {
101
+ readonly "application/json": {
102
+ readonly schema: z.ZodObject<{
103
+ error: z.ZodObject<{
104
+ code: z.ZodString;
105
+ message: z.ZodString;
106
+ details: z.ZodOptional<z.ZodObject<{
107
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
+ path: z.ZodString;
109
+ message: z.ZodString;
110
+ code: z.ZodString;
111
+ }, z.core.$strip>>>;
112
+ }, z.core.$strip>>;
113
+ }, z.core.$strip>;
114
+ }, z.core.$strip>;
115
+ };
116
+ };
117
+ readonly description: "Validation error.";
118
+ };
119
+ 200: {
120
+ content: {
121
+ "application/json": {
122
+ schema: z.ZodObject<{
123
+ data: z.ZodAny;
124
+ }, z.core.$strip>;
125
+ };
126
+ };
127
+ description: string;
128
+ };
129
+ };
130
+ } & {
131
+ getRoutingPath(): "/staff";
132
+ };
133
+ export declare const createStaffRoute: {
134
+ method: "post";
135
+ path: "/staff";
136
+ tags: string[];
137
+ summary: string;
138
+ request: {
139
+ body: {
140
+ content: {
141
+ "application/json": {
142
+ schema: z.ZodObject<{
143
+ userId: z.ZodString;
144
+ role: z.ZodString;
145
+ }, z.core.$strip>;
146
+ };
147
+ };
148
+ required: true;
149
+ };
150
+ };
151
+ responses: {
152
+ 400: {
153
+ readonly content: {
154
+ readonly "application/json": {
155
+ readonly schema: z.ZodObject<{
156
+ error: z.ZodObject<{
157
+ code: z.ZodString;
158
+ message: z.ZodString;
159
+ details: z.ZodOptional<z.ZodObject<{
160
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
161
+ path: z.ZodString;
162
+ message: z.ZodString;
163
+ code: z.ZodString;
164
+ }, z.core.$strip>>>;
165
+ }, z.core.$strip>>;
166
+ }, z.core.$strip>;
167
+ }, z.core.$strip>;
168
+ };
169
+ };
170
+ readonly description: "Business logic error.";
171
+ };
172
+ 401: {
173
+ readonly content: {
174
+ readonly "application/json": {
175
+ readonly schema: z.ZodObject<{
176
+ error: z.ZodObject<{
177
+ code: z.ZodString;
178
+ message: z.ZodString;
179
+ details: z.ZodOptional<z.ZodObject<{
180
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
181
+ path: z.ZodString;
182
+ message: z.ZodString;
183
+ code: z.ZodString;
184
+ }, z.core.$strip>>>;
185
+ }, z.core.$strip>>;
186
+ }, z.core.$strip>;
187
+ }, z.core.$strip>;
188
+ };
189
+ };
190
+ readonly description: "Authentication required.";
191
+ };
192
+ 403: {
193
+ readonly content: {
194
+ readonly "application/json": {
195
+ readonly schema: z.ZodObject<{
196
+ error: z.ZodObject<{
197
+ code: z.ZodString;
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>>;
206
+ }, z.core.$strip>;
207
+ }, z.core.$strip>;
208
+ };
209
+ };
210
+ readonly description: "Insufficient permissions.";
211
+ };
212
+ 404: {
213
+ readonly content: {
214
+ readonly "application/json": {
215
+ readonly schema: z.ZodObject<{
216
+ error: z.ZodObject<{
217
+ code: z.ZodString;
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>>;
226
+ }, z.core.$strip>;
227
+ }, z.core.$strip>;
228
+ };
229
+ };
230
+ readonly description: "Resource not found.";
231
+ };
232
+ 422: {
233
+ readonly content: {
234
+ readonly "application/json": {
235
+ readonly schema: z.ZodObject<{
236
+ error: z.ZodObject<{
237
+ code: z.ZodString;
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>>;
246
+ }, z.core.$strip>;
247
+ }, z.core.$strip>;
248
+ };
249
+ };
250
+ readonly description: "Validation error.";
251
+ };
252
+ 201: {
253
+ content: {
254
+ "application/json": {
255
+ schema: z.ZodObject<{
256
+ data: z.ZodAny;
257
+ }, z.core.$strip>;
258
+ };
259
+ };
260
+ description: string;
261
+ };
262
+ };
263
+ } & {
264
+ getRoutingPath(): "/staff";
265
+ };
266
+ export declare const inviteStaffRoute: {
267
+ method: "post";
268
+ path: "/staff/invitations";
269
+ tags: string[];
270
+ summary: string;
271
+ request: {
272
+ body: {
273
+ content: {
274
+ "application/json": {
275
+ schema: z.ZodObject<{
276
+ email: z.ZodEmail;
277
+ role: z.ZodString;
278
+ }, z.core.$strip>;
279
+ };
280
+ };
281
+ required: true;
282
+ };
283
+ };
284
+ responses: {
285
+ 400: {
286
+ readonly content: {
287
+ readonly "application/json": {
288
+ readonly schema: z.ZodObject<{
289
+ error: z.ZodObject<{
290
+ code: z.ZodString;
291
+ message: z.ZodString;
292
+ details: z.ZodOptional<z.ZodObject<{
293
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
294
+ path: z.ZodString;
295
+ message: z.ZodString;
296
+ code: z.ZodString;
297
+ }, z.core.$strip>>>;
298
+ }, z.core.$strip>>;
299
+ }, z.core.$strip>;
300
+ }, z.core.$strip>;
301
+ };
302
+ };
303
+ readonly description: "Business logic error.";
304
+ };
305
+ 401: {
306
+ readonly content: {
307
+ readonly "application/json": {
308
+ readonly schema: z.ZodObject<{
309
+ error: z.ZodObject<{
310
+ code: z.ZodString;
311
+ message: z.ZodString;
312
+ details: z.ZodOptional<z.ZodObject<{
313
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
314
+ path: z.ZodString;
315
+ message: z.ZodString;
316
+ code: z.ZodString;
317
+ }, z.core.$strip>>>;
318
+ }, z.core.$strip>>;
319
+ }, z.core.$strip>;
320
+ }, z.core.$strip>;
321
+ };
322
+ };
323
+ readonly description: "Authentication required.";
324
+ };
325
+ 403: {
326
+ readonly content: {
327
+ readonly "application/json": {
328
+ readonly schema: z.ZodObject<{
329
+ error: z.ZodObject<{
330
+ code: z.ZodString;
331
+ message: z.ZodString;
332
+ details: z.ZodOptional<z.ZodObject<{
333
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
334
+ path: z.ZodString;
335
+ message: z.ZodString;
336
+ code: z.ZodString;
337
+ }, z.core.$strip>>>;
338
+ }, z.core.$strip>>;
339
+ }, z.core.$strip>;
340
+ }, z.core.$strip>;
341
+ };
342
+ };
343
+ readonly description: "Insufficient permissions.";
344
+ };
345
+ 404: {
346
+ readonly content: {
347
+ readonly "application/json": {
348
+ readonly schema: z.ZodObject<{
349
+ error: z.ZodObject<{
350
+ code: z.ZodString;
351
+ message: z.ZodString;
352
+ details: z.ZodOptional<z.ZodObject<{
353
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
354
+ path: z.ZodString;
355
+ message: z.ZodString;
356
+ code: z.ZodString;
357
+ }, z.core.$strip>>>;
358
+ }, z.core.$strip>>;
359
+ }, z.core.$strip>;
360
+ }, z.core.$strip>;
361
+ };
362
+ };
363
+ readonly description: "Resource not found.";
364
+ };
365
+ 422: {
366
+ readonly content: {
367
+ readonly "application/json": {
368
+ readonly schema: z.ZodObject<{
369
+ error: z.ZodObject<{
370
+ code: z.ZodString;
371
+ message: z.ZodString;
372
+ details: z.ZodOptional<z.ZodObject<{
373
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
374
+ path: z.ZodString;
375
+ message: z.ZodString;
376
+ code: z.ZodString;
377
+ }, z.core.$strip>>>;
378
+ }, z.core.$strip>>;
379
+ }, z.core.$strip>;
380
+ }, z.core.$strip>;
381
+ };
382
+ };
383
+ readonly description: "Validation error.";
384
+ };
385
+ 201: {
386
+ content: {
387
+ "application/json": {
388
+ schema: z.ZodObject<{
389
+ data: z.ZodAny;
390
+ }, z.core.$strip>;
391
+ };
392
+ };
393
+ description: string;
394
+ };
395
+ };
396
+ } & {
397
+ getRoutingPath(): "/staff/invitations";
398
+ };
399
+ export declare const listStaffInvitationsRoute: {
400
+ method: "get";
401
+ path: "/staff/invitations";
402
+ tags: string[];
403
+ summary: string;
404
+ responses: {
405
+ 400: {
406
+ readonly content: {
407
+ readonly "application/json": {
408
+ readonly schema: z.ZodObject<{
409
+ error: z.ZodObject<{
410
+ code: z.ZodString;
411
+ message: z.ZodString;
412
+ details: z.ZodOptional<z.ZodObject<{
413
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
414
+ path: z.ZodString;
415
+ message: z.ZodString;
416
+ code: z.ZodString;
417
+ }, z.core.$strip>>>;
418
+ }, z.core.$strip>>;
419
+ }, z.core.$strip>;
420
+ }, z.core.$strip>;
421
+ };
422
+ };
423
+ readonly description: "Business logic error.";
424
+ };
425
+ 401: {
426
+ readonly content: {
427
+ readonly "application/json": {
428
+ readonly schema: z.ZodObject<{
429
+ error: z.ZodObject<{
430
+ code: z.ZodString;
431
+ message: z.ZodString;
432
+ details: z.ZodOptional<z.ZodObject<{
433
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
434
+ path: z.ZodString;
435
+ message: z.ZodString;
436
+ code: z.ZodString;
437
+ }, z.core.$strip>>>;
438
+ }, z.core.$strip>>;
439
+ }, z.core.$strip>;
440
+ }, z.core.$strip>;
441
+ };
442
+ };
443
+ readonly description: "Authentication required.";
444
+ };
445
+ 403: {
446
+ readonly content: {
447
+ readonly "application/json": {
448
+ readonly schema: z.ZodObject<{
449
+ error: z.ZodObject<{
450
+ code: z.ZodString;
451
+ message: z.ZodString;
452
+ details: z.ZodOptional<z.ZodObject<{
453
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
454
+ path: z.ZodString;
455
+ message: z.ZodString;
456
+ code: z.ZodString;
457
+ }, z.core.$strip>>>;
458
+ }, z.core.$strip>>;
459
+ }, z.core.$strip>;
460
+ }, z.core.$strip>;
461
+ };
462
+ };
463
+ readonly description: "Insufficient permissions.";
464
+ };
465
+ 404: {
466
+ readonly content: {
467
+ readonly "application/json": {
468
+ readonly schema: z.ZodObject<{
469
+ error: z.ZodObject<{
470
+ code: z.ZodString;
471
+ message: z.ZodString;
472
+ details: z.ZodOptional<z.ZodObject<{
473
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
474
+ path: z.ZodString;
475
+ message: z.ZodString;
476
+ code: z.ZodString;
477
+ }, z.core.$strip>>>;
478
+ }, z.core.$strip>>;
479
+ }, z.core.$strip>;
480
+ }, z.core.$strip>;
481
+ };
482
+ };
483
+ readonly description: "Resource not found.";
484
+ };
485
+ 422: {
486
+ readonly content: {
487
+ readonly "application/json": {
488
+ readonly schema: z.ZodObject<{
489
+ error: z.ZodObject<{
490
+ code: z.ZodString;
491
+ message: z.ZodString;
492
+ details: z.ZodOptional<z.ZodObject<{
493
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
494
+ path: z.ZodString;
495
+ message: z.ZodString;
496
+ code: z.ZodString;
497
+ }, z.core.$strip>>>;
498
+ }, z.core.$strip>>;
499
+ }, z.core.$strip>;
500
+ }, z.core.$strip>;
501
+ };
502
+ };
503
+ readonly description: "Validation error.";
504
+ };
505
+ 200: {
506
+ content: {
507
+ "application/json": {
508
+ schema: z.ZodObject<{
509
+ data: z.ZodAny;
510
+ }, z.core.$strip>;
511
+ };
512
+ };
513
+ description: string;
514
+ };
515
+ };
516
+ } & {
517
+ getRoutingPath(): "/staff/invitations";
518
+ };
519
+ export declare const listStaffRolesRoute: {
520
+ method: "get";
521
+ path: "/staff/roles";
522
+ tags: string[];
523
+ summary: string;
524
+ responses: {
525
+ 400: {
526
+ readonly content: {
527
+ readonly "application/json": {
528
+ readonly schema: z.ZodObject<{
529
+ error: z.ZodObject<{
530
+ code: z.ZodString;
531
+ message: z.ZodString;
532
+ details: z.ZodOptional<z.ZodObject<{
533
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
534
+ path: z.ZodString;
535
+ message: z.ZodString;
536
+ code: z.ZodString;
537
+ }, z.core.$strip>>>;
538
+ }, z.core.$strip>>;
539
+ }, z.core.$strip>;
540
+ }, z.core.$strip>;
541
+ };
542
+ };
543
+ readonly description: "Business logic error.";
544
+ };
545
+ 401: {
546
+ readonly content: {
547
+ readonly "application/json": {
548
+ readonly schema: z.ZodObject<{
549
+ error: z.ZodObject<{
550
+ code: z.ZodString;
551
+ message: z.ZodString;
552
+ details: z.ZodOptional<z.ZodObject<{
553
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
554
+ path: z.ZodString;
555
+ message: z.ZodString;
556
+ code: z.ZodString;
557
+ }, z.core.$strip>>>;
558
+ }, z.core.$strip>>;
559
+ }, z.core.$strip>;
560
+ }, z.core.$strip>;
561
+ };
562
+ };
563
+ readonly description: "Authentication required.";
564
+ };
565
+ 403: {
566
+ readonly content: {
567
+ readonly "application/json": {
568
+ readonly schema: z.ZodObject<{
569
+ error: z.ZodObject<{
570
+ code: z.ZodString;
571
+ message: z.ZodString;
572
+ details: z.ZodOptional<z.ZodObject<{
573
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
574
+ path: z.ZodString;
575
+ message: z.ZodString;
576
+ code: z.ZodString;
577
+ }, z.core.$strip>>>;
578
+ }, z.core.$strip>>;
579
+ }, z.core.$strip>;
580
+ }, z.core.$strip>;
581
+ };
582
+ };
583
+ readonly description: "Insufficient permissions.";
584
+ };
585
+ 404: {
586
+ readonly content: {
587
+ readonly "application/json": {
588
+ readonly schema: z.ZodObject<{
589
+ error: z.ZodObject<{
590
+ code: z.ZodString;
591
+ message: z.ZodString;
592
+ details: z.ZodOptional<z.ZodObject<{
593
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
594
+ path: z.ZodString;
595
+ message: z.ZodString;
596
+ code: z.ZodString;
597
+ }, z.core.$strip>>>;
598
+ }, z.core.$strip>>;
599
+ }, z.core.$strip>;
600
+ }, z.core.$strip>;
601
+ };
602
+ };
603
+ readonly description: "Resource not found.";
604
+ };
605
+ 422: {
606
+ readonly content: {
607
+ readonly "application/json": {
608
+ readonly schema: z.ZodObject<{
609
+ error: z.ZodObject<{
610
+ code: z.ZodString;
611
+ message: z.ZodString;
612
+ details: z.ZodOptional<z.ZodObject<{
613
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
614
+ path: z.ZodString;
615
+ message: z.ZodString;
616
+ code: z.ZodString;
617
+ }, z.core.$strip>>>;
618
+ }, z.core.$strip>>;
619
+ }, z.core.$strip>;
620
+ }, z.core.$strip>;
621
+ };
622
+ };
623
+ readonly description: "Validation error.";
624
+ };
625
+ 200: {
626
+ content: {
627
+ "application/json": {
628
+ schema: z.ZodObject<{
629
+ data: z.ZodAny;
630
+ }, z.core.$strip>;
631
+ };
632
+ };
633
+ description: string;
634
+ };
635
+ };
636
+ } & {
637
+ getRoutingPath(): "/staff/roles";
638
+ };
639
+ export declare const updateStaffRoleRoute: {
640
+ method: "patch";
641
+ path: "/staff/{id}";
642
+ tags: string[];
643
+ summary: string;
644
+ request: {
645
+ params: z.ZodObject<{
646
+ id: z.ZodString;
647
+ }, z.core.$strip>;
648
+ body: {
649
+ content: {
650
+ "application/json": {
651
+ schema: z.ZodObject<{
652
+ role: z.ZodString;
653
+ }, z.core.$strip>;
654
+ };
655
+ };
656
+ required: true;
657
+ };
658
+ };
659
+ responses: {
660
+ 400: {
661
+ readonly content: {
662
+ readonly "application/json": {
663
+ readonly schema: z.ZodObject<{
664
+ error: z.ZodObject<{
665
+ code: z.ZodString;
666
+ message: z.ZodString;
667
+ details: z.ZodOptional<z.ZodObject<{
668
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
669
+ path: z.ZodString;
670
+ message: z.ZodString;
671
+ code: z.ZodString;
672
+ }, z.core.$strip>>>;
673
+ }, z.core.$strip>>;
674
+ }, z.core.$strip>;
675
+ }, z.core.$strip>;
676
+ };
677
+ };
678
+ readonly description: "Business logic error.";
679
+ };
680
+ 401: {
681
+ readonly content: {
682
+ readonly "application/json": {
683
+ readonly schema: z.ZodObject<{
684
+ error: z.ZodObject<{
685
+ code: z.ZodString;
686
+ message: z.ZodString;
687
+ details: z.ZodOptional<z.ZodObject<{
688
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
689
+ path: z.ZodString;
690
+ message: z.ZodString;
691
+ code: z.ZodString;
692
+ }, z.core.$strip>>>;
693
+ }, z.core.$strip>>;
694
+ }, z.core.$strip>;
695
+ }, z.core.$strip>;
696
+ };
697
+ };
698
+ readonly description: "Authentication required.";
699
+ };
700
+ 403: {
701
+ readonly content: {
702
+ readonly "application/json": {
703
+ readonly schema: z.ZodObject<{
704
+ error: z.ZodObject<{
705
+ code: z.ZodString;
706
+ message: z.ZodString;
707
+ details: z.ZodOptional<z.ZodObject<{
708
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
709
+ path: z.ZodString;
710
+ message: z.ZodString;
711
+ code: z.ZodString;
712
+ }, z.core.$strip>>>;
713
+ }, z.core.$strip>>;
714
+ }, z.core.$strip>;
715
+ }, z.core.$strip>;
716
+ };
717
+ };
718
+ readonly description: "Insufficient permissions.";
719
+ };
720
+ 404: {
721
+ readonly content: {
722
+ readonly "application/json": {
723
+ readonly schema: z.ZodObject<{
724
+ error: z.ZodObject<{
725
+ code: z.ZodString;
726
+ message: z.ZodString;
727
+ details: z.ZodOptional<z.ZodObject<{
728
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
729
+ path: z.ZodString;
730
+ message: z.ZodString;
731
+ code: z.ZodString;
732
+ }, z.core.$strip>>>;
733
+ }, z.core.$strip>>;
734
+ }, z.core.$strip>;
735
+ }, z.core.$strip>;
736
+ };
737
+ };
738
+ readonly description: "Resource not found.";
739
+ };
740
+ 422: {
741
+ readonly content: {
742
+ readonly "application/json": {
743
+ readonly schema: z.ZodObject<{
744
+ error: z.ZodObject<{
745
+ code: z.ZodString;
746
+ message: z.ZodString;
747
+ details: z.ZodOptional<z.ZodObject<{
748
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
749
+ path: z.ZodString;
750
+ message: z.ZodString;
751
+ code: z.ZodString;
752
+ }, z.core.$strip>>>;
753
+ }, z.core.$strip>>;
754
+ }, z.core.$strip>;
755
+ }, z.core.$strip>;
756
+ };
757
+ };
758
+ readonly description: "Validation error.";
759
+ };
760
+ 200: {
761
+ content: {
762
+ "application/json": {
763
+ schema: z.ZodObject<{
764
+ data: z.ZodAny;
765
+ }, z.core.$strip>;
766
+ };
767
+ };
768
+ description: string;
769
+ };
770
+ };
771
+ } & {
772
+ getRoutingPath(): "/staff/:id";
773
+ };
774
+ export declare const revokeStaffRoute: {
775
+ method: "delete";
776
+ path: "/staff/{id}";
777
+ tags: string[];
778
+ summary: string;
779
+ request: {
780
+ params: z.ZodObject<{
781
+ id: z.ZodString;
782
+ }, z.core.$strip>;
783
+ };
784
+ responses: {
785
+ 400: {
786
+ readonly content: {
787
+ readonly "application/json": {
788
+ readonly schema: z.ZodObject<{
789
+ error: z.ZodObject<{
790
+ code: z.ZodString;
791
+ message: z.ZodString;
792
+ details: z.ZodOptional<z.ZodObject<{
793
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
794
+ path: z.ZodString;
795
+ message: z.ZodString;
796
+ code: z.ZodString;
797
+ }, z.core.$strip>>>;
798
+ }, z.core.$strip>>;
799
+ }, z.core.$strip>;
800
+ }, z.core.$strip>;
801
+ };
802
+ };
803
+ readonly description: "Business logic error.";
804
+ };
805
+ 401: {
806
+ readonly content: {
807
+ readonly "application/json": {
808
+ readonly schema: z.ZodObject<{
809
+ error: z.ZodObject<{
810
+ code: z.ZodString;
811
+ message: z.ZodString;
812
+ details: z.ZodOptional<z.ZodObject<{
813
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
814
+ path: z.ZodString;
815
+ message: z.ZodString;
816
+ code: z.ZodString;
817
+ }, z.core.$strip>>>;
818
+ }, z.core.$strip>>;
819
+ }, z.core.$strip>;
820
+ }, z.core.$strip>;
821
+ };
822
+ };
823
+ readonly description: "Authentication required.";
824
+ };
825
+ 403: {
826
+ readonly content: {
827
+ readonly "application/json": {
828
+ readonly schema: z.ZodObject<{
829
+ error: z.ZodObject<{
830
+ code: z.ZodString;
831
+ message: z.ZodString;
832
+ details: z.ZodOptional<z.ZodObject<{
833
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
834
+ path: z.ZodString;
835
+ message: z.ZodString;
836
+ code: z.ZodString;
837
+ }, z.core.$strip>>>;
838
+ }, z.core.$strip>>;
839
+ }, z.core.$strip>;
840
+ }, z.core.$strip>;
841
+ };
842
+ };
843
+ readonly description: "Insufficient permissions.";
844
+ };
845
+ 404: {
846
+ readonly content: {
847
+ readonly "application/json": {
848
+ readonly schema: z.ZodObject<{
849
+ error: z.ZodObject<{
850
+ code: z.ZodString;
851
+ message: z.ZodString;
852
+ details: z.ZodOptional<z.ZodObject<{
853
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
854
+ path: z.ZodString;
855
+ message: z.ZodString;
856
+ code: z.ZodString;
857
+ }, z.core.$strip>>>;
858
+ }, z.core.$strip>>;
859
+ }, z.core.$strip>;
860
+ }, z.core.$strip>;
861
+ };
862
+ };
863
+ readonly description: "Resource not found.";
864
+ };
865
+ 422: {
866
+ readonly content: {
867
+ readonly "application/json": {
868
+ readonly schema: z.ZodObject<{
869
+ error: z.ZodObject<{
870
+ code: z.ZodString;
871
+ message: z.ZodString;
872
+ details: z.ZodOptional<z.ZodObject<{
873
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
874
+ path: z.ZodString;
875
+ message: z.ZodString;
876
+ code: z.ZodString;
877
+ }, z.core.$strip>>>;
878
+ }, z.core.$strip>>;
879
+ }, z.core.$strip>;
880
+ }, z.core.$strip>;
881
+ };
882
+ };
883
+ readonly description: "Validation error.";
884
+ };
885
+ 200: {
886
+ content: {
887
+ "application/json": {
888
+ schema: z.ZodObject<{
889
+ data: z.ZodAny;
890
+ }, z.core.$strip>;
891
+ };
892
+ };
893
+ description: string;
894
+ };
895
+ };
896
+ } & {
897
+ getRoutingPath(): "/staff/:id";
898
+ };
899
+ //# sourceMappingURL=admin-staff.d.ts.map