wiil-core-js 0.0.82

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 (261) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +174 -0
  3. package/dist/core/account/index.d.ts +7 -0
  4. package/dist/core/account/index.js +23 -0
  5. package/dist/core/account/organization.schema.d.ts +118 -0
  6. package/dist/core/account/organization.schema.js +91 -0
  7. package/dist/core/account/project.schema.d.ts +121 -0
  8. package/dist/core/account/project.schema.js +102 -0
  9. package/dist/core/account/supported-business-verticals.d.ts +8 -0
  10. package/dist/core/account/supported-business-verticals.js +23 -0
  11. package/dist/core/assistant-setups/assistant-setup-result.schema.d.ts +115 -0
  12. package/dist/core/assistant-setups/assistant-setup-result.schema.js +17 -0
  13. package/dist/core/assistant-setups/base-assistant-setup.schema.d.ts +61 -0
  14. package/dist/core/assistant-setups/base-assistant-setup.schema.js +29 -0
  15. package/dist/core/assistant-setups/index.d.ts +4 -0
  16. package/dist/core/assistant-setups/index.js +21 -0
  17. package/dist/core/assistant-setups/phone-assistant-setup.schema.d.ts +63 -0
  18. package/dist/core/assistant-setups/phone-assistant-setup.schema.js +14 -0
  19. package/dist/core/assistant-setups/web-assitant-setup.schema.d.ts +56 -0
  20. package/dist/core/assistant-setups/web-assitant-setup.schema.js +17 -0
  21. package/dist/core/base.schema.d.ts +34 -0
  22. package/dist/core/base.schema.js +36 -0
  23. package/dist/core/business-mgt/appointment-additional-info.schema.d.ts +63 -0
  24. package/dist/core/business-mgt/appointment-additional-info.schema.js +53 -0
  25. package/dist/core/business-mgt/appointment-field-config.schema.d.ts +251 -0
  26. package/dist/core/business-mgt/appointment-field-config.schema.js +49 -0
  27. package/dist/core/business-mgt/bookings.shared.schema.d.ts +47 -0
  28. package/dist/core/business-mgt/bookings.shared.schema.js +60 -0
  29. package/dist/core/business-mgt/business-location.schema.d.ts +327 -0
  30. package/dist/core/business-mgt/business-location.schema.js +176 -0
  31. package/dist/core/business-mgt/customer-management/customer-group.schema.d.ts +87 -0
  32. package/dist/core/business-mgt/customer-management/customer-group.schema.js +53 -0
  33. package/dist/core/business-mgt/customer-management/customer.schema.d.ts +156 -0
  34. package/dist/core/business-mgt/customer-management/customer.schema.js +93 -0
  35. package/dist/core/business-mgt/customer-management/index.d.ts +7 -0
  36. package/dist/core/business-mgt/customer-management/index.js +23 -0
  37. package/dist/core/business-mgt/customer-management/shipping-address.schema.d.ts +112 -0
  38. package/dist/core/business-mgt/customer-management/shipping-address.schema.js +79 -0
  39. package/dist/core/business-mgt/customer.schema.d.ts +111 -0
  40. package/dist/core/business-mgt/customer.schema.js +73 -0
  41. package/dist/core/business-mgt/discount-rule.schema.d.ts +183 -0
  42. package/dist/core/business-mgt/discount-rule.schema.js +108 -0
  43. package/dist/core/business-mgt/index.d.ts +16 -0
  44. package/dist/core/business-mgt/index.js +38 -0
  45. package/dist/core/business-mgt/menu-config.schema.d.ts +165 -0
  46. package/dist/core/business-mgt/menu-config.schema.js +86 -0
  47. package/dist/core/business-mgt/menu-management/index.d.ts +11 -0
  48. package/dist/core/business-mgt/menu-management/index.js +27 -0
  49. package/dist/core/business-mgt/menu-management/menu-catalog.schema.d.ts +386 -0
  50. package/dist/core/business-mgt/menu-management/menu-catalog.schema.js +58 -0
  51. package/dist/core/business-mgt/menu-management/menu-config.schema.d.ts +301 -0
  52. package/dist/core/business-mgt/menu-management/menu-config.schema.js +169 -0
  53. package/dist/core/business-mgt/menu-management/menu-item-variant.schema.d.ts +143 -0
  54. package/dist/core/business-mgt/menu-management/menu-item-variant.schema.js +86 -0
  55. package/dist/core/business-mgt/menu-management/menu-pricing-rule.schema.d.ts +239 -0
  56. package/dist/core/business-mgt/menu-management/menu-pricing-rule.schema.js +117 -0
  57. package/dist/core/business-mgt/menu-management/menu-set.schema.d.ts +420 -0
  58. package/dist/core/business-mgt/menu-management/menu-set.schema.js +283 -0
  59. package/dist/core/business-mgt/menu-management/menu.order.schema.d.ts +654 -0
  60. package/dist/core/business-mgt/menu-management/menu.order.schema.js +204 -0
  61. package/dist/core/business-mgt/menu-management/modifier.schema.d.ts +585 -0
  62. package/dist/core/business-mgt/menu-management/modifier.schema.js +341 -0
  63. package/dist/core/business-mgt/menu.order.schema.d.ts +335 -0
  64. package/dist/core/business-mgt/menu.order.schema.js +149 -0
  65. package/dist/core/business-mgt/order.schema.d.ts +222 -0
  66. package/dist/core/business-mgt/order.schema.js +205 -0
  67. package/dist/core/business-mgt/pricing-rule.shared.schema.d.ts +56 -0
  68. package/dist/core/business-mgt/pricing-rule.shared.schema.js +68 -0
  69. package/dist/core/business-mgt/product-config.schema.d.ts +177 -0
  70. package/dist/core/business-mgt/product-config.schema.js +106 -0
  71. package/dist/core/business-mgt/product-management/index.d.ts +12 -0
  72. package/dist/core/business-mgt/product-management/index.js +28 -0
  73. package/dist/core/business-mgt/product-management/product-axis-binding.schema.d.ts +54 -0
  74. package/dist/core/business-mgt/product-management/product-axis-binding.schema.js +54 -0
  75. package/dist/core/business-mgt/product-management/product-config.schema.d.ts +1042 -0
  76. package/dist/core/business-mgt/product-management/product-config.schema.js +392 -0
  77. package/dist/core/business-mgt/product-management/product-display.schema.d.ts +548 -0
  78. package/dist/core/business-mgt/product-management/product-display.schema.js +80 -0
  79. package/dist/core/business-mgt/product-management/product-order.schema.d.ts +493 -0
  80. package/dist/core/business-mgt/product-management/product-order.schema.js +158 -0
  81. package/dist/core/business-mgt/product-management/product-pricing-rule.schema.d.ts +167 -0
  82. package/dist/core/business-mgt/product-management/product-pricing-rule.schema.js +68 -0
  83. package/dist/core/business-mgt/product-management/product-set.schema.d.ts +488 -0
  84. package/dist/core/business-mgt/product-management/product-set.schema.js +273 -0
  85. package/dist/core/business-mgt/product-management/product-variant-axis.schema.d.ts +156 -0
  86. package/dist/core/business-mgt/product-management/product-variant-axis.schema.js +98 -0
  87. package/dist/core/business-mgt/product-management/product-variant.schema.d.ts +219 -0
  88. package/dist/core/business-mgt/product-management/product-variant.schema.js +130 -0
  89. package/dist/core/business-mgt/product-order.schema.d.ts +326 -0
  90. package/dist/core/business-mgt/product-order.schema.js +153 -0
  91. package/dist/core/business-mgt/property-config.schema.d.ts +621 -0
  92. package/dist/core/business-mgt/property-config.schema.js +224 -0
  93. package/dist/core/business-mgt/property-inquiry.schema.d.ts +222 -0
  94. package/dist/core/business-mgt/property-inquiry.schema.js +112 -0
  95. package/dist/core/business-mgt/property-management/index.d.ts +6 -0
  96. package/dist/core/business-mgt/property-management/index.js +22 -0
  97. package/dist/core/business-mgt/property-management/property-config.schema.d.ts +1306 -0
  98. package/dist/core/business-mgt/property-management/property-config.schema.js +367 -0
  99. package/dist/core/business-mgt/property-management/property-inquiry.schema.d.ts +254 -0
  100. package/dist/core/business-mgt/property-management/property-inquiry.schema.js +131 -0
  101. package/dist/core/business-mgt/reservation-mgt/assignment/index.d.ts +3 -0
  102. package/dist/core/business-mgt/reservation-mgt/assignment/index.js +19 -0
  103. package/dist/core/business-mgt/reservation-mgt/assignment/reservation-rental-assignment.schema.d.ts +139 -0
  104. package/dist/core/business-mgt/reservation-mgt/assignment/reservation-rental-assignment.schema.js +90 -0
  105. package/dist/core/business-mgt/reservation-mgt/assignment/reservation-room-assignment.schema.d.ts +104 -0
  106. package/dist/core/business-mgt/reservation-mgt/assignment/reservation-room-assignment.schema.js +70 -0
  107. package/dist/core/business-mgt/reservation-mgt/assignment/reservation-table-assignment.schema.d.ts +104 -0
  108. package/dist/core/business-mgt/reservation-mgt/assignment/reservation-table-assignment.schema.js +72 -0
  109. package/dist/core/business-mgt/reservation-mgt/index.d.ts +14 -0
  110. package/dist/core/business-mgt/reservation-mgt/index.js +31 -0
  111. package/dist/core/business-mgt/reservation-mgt/reservation-floor-plan-definition.schema.d.ts +180 -0
  112. package/dist/core/business-mgt/reservation-mgt/reservation-floor-plan-definition.schema.js +75 -0
  113. package/dist/core/business-mgt/reservation-mgt/reservation-maintenance-block.schema.d.ts +91 -0
  114. package/dist/core/business-mgt/reservation-mgt/reservation-maintenance-block.schema.js +57 -0
  115. package/dist/core/business-mgt/reservation-mgt/reservation-rental.schema.d.ts +334 -0
  116. package/dist/core/business-mgt/reservation-mgt/reservation-rental.schema.js +179 -0
  117. package/dist/core/business-mgt/reservation-mgt/reservation-room.schema.d.ts +195 -0
  118. package/dist/core/business-mgt/reservation-mgt/reservation-room.schema.js +106 -0
  119. package/dist/core/business-mgt/reservation-mgt/reservation-section.schema.d.ts +402 -0
  120. package/dist/core/business-mgt/reservation-mgt/reservation-section.schema.js +198 -0
  121. package/dist/core/business-mgt/reservation-mgt/reservation-settings.schema.d.ts +229 -0
  122. package/dist/core/business-mgt/reservation-mgt/reservation-settings.schema.js +127 -0
  123. package/dist/core/business-mgt/reservation-mgt/reservation-slot-query.schema.d.ts +382 -0
  124. package/dist/core/business-mgt/reservation-mgt/reservation-slot-query.schema.js +322 -0
  125. package/dist/core/business-mgt/reservation-mgt/reservation-table-layout.schema.d.ts +123 -0
  126. package/dist/core/business-mgt/reservation-mgt/reservation-table-layout.schema.js +83 -0
  127. package/dist/core/business-mgt/reservation-mgt/reservation-table.schema.d.ts +167 -0
  128. package/dist/core/business-mgt/reservation-mgt/reservation-table.schema.js +84 -0
  129. package/dist/core/business-mgt/reservation-mgt/reservation.schema.d.ts +0 -0
  130. package/dist/core/business-mgt/reservation-mgt/reservation.schema.js +153 -0
  131. package/dist/core/business-mgt/reservation-mgt/resource/index.d.ts +4 -0
  132. package/dist/core/business-mgt/reservation-mgt/resource/index.js +20 -0
  133. package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-category.schema.d.ts +157 -0
  134. package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-category.schema.js +76 -0
  135. package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-instance.schema.d.ts +137 -0
  136. package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-instance.schema.js +94 -0
  137. package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource.schema.d.ts +713 -0
  138. package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource.schema.js +363 -0
  139. package/dist/core/business-mgt/reservation-mgt/resource/resource-versioning.schema.d.ts +151 -0
  140. package/dist/core/business-mgt/reservation-mgt/resource/resource-versioning.schema.js +147 -0
  141. package/dist/core/business-mgt/reservation-resource.schema.d.ts +154 -0
  142. package/dist/core/business-mgt/reservation-resource.schema.js +100 -0
  143. package/dist/core/business-mgt/reservation.schema.d.ts +119 -0
  144. package/dist/core/business-mgt/reservation.schema.js +89 -0
  145. package/dist/core/business-mgt/service-appointment.schema.d.ts +105 -0
  146. package/dist/core/business-mgt/service-appointment.schema.js +69 -0
  147. package/dist/core/business-mgt/service-config.schema.d.ts +453 -0
  148. package/dist/core/business-mgt/service-config.schema.js +102 -0
  149. package/dist/core/business-mgt/service-management/appointment-additional-info.schema.d.ts +110 -0
  150. package/dist/core/business-mgt/service-management/appointment-additional-info.schema.js +78 -0
  151. package/dist/core/business-mgt/service-management/appointment-field-config.schema.d.ts +304 -0
  152. package/dist/core/business-mgt/service-management/appointment-field-config.schema.js +75 -0
  153. package/dist/core/business-mgt/service-management/business-service-config.schema.d.ts +1226 -0
  154. package/dist/core/business-mgt/service-management/business-service-config.schema.js +317 -0
  155. package/dist/core/business-mgt/service-management/index.d.ts +13 -0
  156. package/dist/core/business-mgt/service-management/index.js +29 -0
  157. package/dist/core/business-mgt/service-management/service-appointment.schema.d.ts +531 -0
  158. package/dist/core/business-mgt/service-management/service-appointment.schema.js +116 -0
  159. package/dist/core/business-mgt/service-management/service-person.schema.d.ts +122 -0
  160. package/dist/core/business-mgt/service-management/service-person.schema.js +66 -0
  161. package/dist/core/business-mgt/service-management/service-pricing-rule.schema.d.ts +221 -0
  162. package/dist/core/business-mgt/service-management/service-pricing-rule.schema.js +118 -0
  163. package/dist/core/business-mgt/service-management/service-provider.schema.d.ts +90 -0
  164. package/dist/core/business-mgt/service-management/service-provider.schema.js +54 -0
  165. package/dist/core/business-mgt/service-management/service-slot-query.schema.d.ts +90 -0
  166. package/dist/core/business-mgt/service-management/service-slot-query.schema.js +113 -0
  167. package/dist/core/business-mgt/service-management/service-time-off.schema.d.ts +121 -0
  168. package/dist/core/business-mgt/service-management/service-time-off.schema.js +95 -0
  169. package/dist/core/business-mgt/service-person.schema.d.ts +43 -0
  170. package/dist/core/business-mgt/service-person.schema.js +38 -0
  171. package/dist/core/business-mgt/tax-rule.schema.d.ts +161 -0
  172. package/dist/core/business-mgt/tax-rule.schema.js +90 -0
  173. package/dist/core/conversation/conversation-config.schema.d.ts +644 -0
  174. package/dist/core/conversation/conversation-config.schema.js +351 -0
  175. package/dist/core/conversation/conversation-message.schema.d.ts +307 -0
  176. package/dist/core/conversation/conversation-message.schema.js +275 -0
  177. package/dist/core/conversation/index.d.ts +12 -0
  178. package/dist/core/conversation/index.js +28 -0
  179. package/dist/core/conversation/outbound-call.schema.d.ts +209 -0
  180. package/dist/core/conversation/outbound-call.schema.js +116 -0
  181. package/dist/core/conversation/outbound-email.schema.d.ts +338 -0
  182. package/dist/core/conversation/outbound-email.schema.js +150 -0
  183. package/dist/core/conversation/outbound-sms.schema.d.ts +163 -0
  184. package/dist/core/conversation/outbound-sms.schema.js +85 -0
  185. package/dist/core/conversation/outbound-template.schema.d.ts +375 -0
  186. package/dist/core/conversation/outbound-template.schema.js +160 -0
  187. package/dist/core/conversation/translation-config.schema.d.ts +92 -0
  188. package/dist/core/conversation/translation-config.schema.js +88 -0
  189. package/dist/core/conversation/translation-conversation.schema.d.ts +469 -0
  190. package/dist/core/conversation/translation-conversation.schema.js +175 -0
  191. package/dist/core/index.d.ts +12 -0
  192. package/dist/core/index.js +30 -0
  193. package/dist/core/service-configuration/agent-config.schema.d.ts +236 -0
  194. package/dist/core/service-configuration/agent-config.schema.js +152 -0
  195. package/dist/core/service-configuration/base-agent-setup.d.ts +147 -0
  196. package/dist/core/service-configuration/base-agent-setup.js +123 -0
  197. package/dist/core/service-configuration/call-transfer-config.schema.d.ts +60 -0
  198. package/dist/core/service-configuration/call-transfer-config.schema.js +53 -0
  199. package/dist/core/service-configuration/deployment-config.schema.d.ts +522 -0
  200. package/dist/core/service-configuration/deployment-config.schema.js +271 -0
  201. package/dist/core/service-configuration/dynamic_setup/base-agent-setup.d.ts +130 -0
  202. package/dist/core/service-configuration/dynamic_setup/base-agent-setup.js +110 -0
  203. package/dist/core/service-configuration/dynamic_setup/index.d.ts +10 -0
  204. package/dist/core/service-configuration/dynamic_setup/index.js +26 -0
  205. package/dist/core/service-configuration/dynamic_setup/phone-agent-setup.d.ts +111 -0
  206. package/dist/core/service-configuration/dynamic_setup/phone-agent-setup.js +56 -0
  207. package/dist/core/service-configuration/dynamic_setup/web-agent-setup.d.ts +113 -0
  208. package/dist/core/service-configuration/dynamic_setup/web-agent-setup.js +55 -0
  209. package/dist/core/service-configuration/index.d.ts +17 -0
  210. package/dist/core/service-configuration/index.js +33 -0
  211. package/dist/core/service-configuration/instruction-config.schema.d.ts +183 -0
  212. package/dist/core/service-configuration/instruction-config.schema.js +139 -0
  213. package/dist/core/service-configuration/interaction-channels.schema.d.ts +469 -0
  214. package/dist/core/service-configuration/interaction-channels.schema.js +390 -0
  215. package/dist/core/service-configuration/knowledge.schema.d.ts +107 -0
  216. package/dist/core/service-configuration/knowledge.schema.js +106 -0
  217. package/dist/core/service-configuration/phone-config.schema.d.ts +206 -0
  218. package/dist/core/service-configuration/phone-config.schema.js +121 -0
  219. package/dist/core/service-configuration/phone-number.schema.d.ts +236 -0
  220. package/dist/core/service-configuration/phone-number.schema.js +211 -0
  221. package/dist/core/service-configuration/provisioning-config.d.ts +429 -0
  222. package/dist/core/service-configuration/provisioning-config.js +307 -0
  223. package/dist/core/service-configuration/support-llm.d.ts +95 -0
  224. package/dist/core/service-configuration/support-llm.js +76 -0
  225. package/dist/core/service-configuration/voice-language.schema.d.ts +200 -0
  226. package/dist/core/service-configuration/voice-language.schema.js +166 -0
  227. package/dist/core/type-definitions/account-definitions.d.ts +82 -0
  228. package/dist/core/type-definitions/account-definitions.js +88 -0
  229. package/dist/core/type-definitions/business-definitions.d.ts +394 -0
  230. package/dist/core/type-definitions/business-definitions.js +447 -0
  231. package/dist/core/type-definitions/conversation.type.definition.d.ts +223 -0
  232. package/dist/core/type-definitions/conversation.type.definition.js +236 -0
  233. package/dist/core/type-definitions/display-order.d.ts +154 -0
  234. package/dist/core/type-definitions/display-order.js +154 -0
  235. package/dist/core/type-definitions/dynamic-fields/field-definition.schema.d.ts +165 -0
  236. package/dist/core/type-definitions/dynamic-fields/field-definition.schema.js +97 -0
  237. package/dist/core/type-definitions/dynamic-fields/field-types.d.ts +49 -0
  238. package/dist/core/type-definitions/dynamic-fields/field-types.js +104 -0
  239. package/dist/core/type-definitions/dynamic-fields/index.d.ts +9 -0
  240. package/dist/core/type-definitions/dynamic-fields/index.js +25 -0
  241. package/dist/core/type-definitions/index.d.ts +10 -0
  242. package/dist/core/type-definitions/index.js +26 -0
  243. package/dist/core/type-definitions/knowledge-definitions.d.ts +30 -0
  244. package/dist/core/type-definitions/knowledge-definitions.js +37 -0
  245. package/dist/core/type-definitions/service-config.definitions.d.ts +112 -0
  246. package/dist/core/type-definitions/service-config.definitions.js +135 -0
  247. package/dist/core/validators/channel-validation.d.ts +19 -0
  248. package/dist/core/validators/channel-validation.js +40 -0
  249. package/dist/core/validators/index.d.ts +5 -0
  250. package/dist/core/validators/index.js +21 -0
  251. package/dist/index.d.ts +6 -0
  252. package/dist/index.js +24 -0
  253. package/dist/request/index.d.ts +5 -0
  254. package/dist/request/index.js +21 -0
  255. package/dist/request/models/index.d.ts +6 -0
  256. package/dist/request/models/index.js +22 -0
  257. package/dist/request/models/paginated-quest.schema.d.ts +33 -0
  258. package/dist/request/models/paginated-quest.schema.js +35 -0
  259. package/dist/request/models/paginated-result.schema.d.ts +124 -0
  260. package/dist/request/models/paginated-result.schema.js +94 -0
  261. package/package.json +43 -0
@@ -0,0 +1,236 @@
1
+ "use strict";
2
+ /**
3
+ * @fileoverview Conversation type definitions and enumerations.
4
+ *
5
+ * Provides enumerations for conversation lifecycle management, event tracking,
6
+ * communication channels, and outbound messaging status tracking across
7
+ * telephony, email, and SMS channels.
8
+ *
9
+ * @module type-definitions/conversation
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ConversationDirection = exports.OutboundTemplateChannel = exports.SmsStatus = exports.EmailStatus = exports.ScheduleType = exports.CallRequestStatus = exports.ConversationSummarySentiment = exports.TranslationDirection = exports.ConversationStatus = exports.ServiceConversationType = void 0;
13
+ /**
14
+ * Service conversation channel types.
15
+ *
16
+ * Identifies the communication channel used for a conversation,
17
+ * enabling channel-specific handling and routing logic.
18
+ *
19
+ * @see ServiceConversationConfigSchema - Uses this for channel identification
20
+ */
21
+ var ServiceConversationType;
22
+ (function (ServiceConversationType) {
23
+ /** WebRTC or OTT voice call */
24
+ ServiceConversationType["OTT_CALL"] = "OTT_CALL";
25
+ /** WebRTC or OTT text chat */
26
+ ServiceConversationType["OTT_CHAT"] = "OTT_CHAT";
27
+ /** Traditional PSTN/SIP telephony call */
28
+ ServiceConversationType["TELEPHONY_CALL"] = "TELEPHONY_CALL";
29
+ /** SMS text messaging */
30
+ ServiceConversationType["SMS"] = "SMS";
31
+ /** Email communication */
32
+ ServiceConversationType["EMAIL"] = "EMAIL";
33
+ /** WhatsApp messaging */
34
+ ServiceConversationType["WHATSAPP"] = "WHATSAPP";
35
+ /** Telegram messaging */
36
+ ServiceConversationType["TELEGRAM"] = "TELEGRAM";
37
+ })(ServiceConversationType || (exports.ServiceConversationType = ServiceConversationType = {}));
38
+ /**
39
+ * Conversation lifecycle status.
40
+ *
41
+ * Tracks the current state of a conversation from initiation through
42
+ * completion and post-processing (summarization).
43
+ *
44
+ * @remarks
45
+ * **Status Flow:**
46
+ * ```
47
+ * PENDING → STARTED → ACTIVE → PAUSED → ACTIVE → ENDED → SUMMARIZED
48
+ * ```
49
+ *
50
+ * @see ServiceConversationConfigSchema - Uses this for lifecycle tracking
51
+ */
52
+ var ConversationStatus;
53
+ (function (ConversationStatus) {
54
+ /** Conversation created but not yet started */
55
+ ConversationStatus["PENDING"] = "pending";
56
+ /** Conversation initiated, awaiting participant connection */
57
+ ConversationStatus["STARTED"] = "started";
58
+ /** Conversation actively in progress with connected participants */
59
+ ConversationStatus["ACTIVE"] = "active";
60
+ /** Conversation temporarily paused (hold, transfer in progress) */
61
+ ConversationStatus["PAUSED"] = "paused";
62
+ /** Conversation ended, awaiting post-processing */
63
+ ConversationStatus["ENDED"] = "ended";
64
+ /** Initial AI summary generated for the conversation */
65
+ ConversationStatus["SUMMARIZED"] = "summarized";
66
+ /** Summary updated after additional processing or review */
67
+ ConversationStatus["UPDATED_SUMMARIZED"] = "updated_summarized";
68
+ })(ConversationStatus || (exports.ConversationStatus = ConversationStatus = {}));
69
+ /**
70
+ * Translation direction for multilingual conversations.
71
+ *
72
+ * Configures whether real-time translation applies in one or both directions
73
+ * during AI-assisted multilingual conversations.
74
+ */
75
+ var TranslationDirection;
76
+ (function (TranslationDirection) {
77
+ /** Translate both participant's speech to each other's language */
78
+ TranslationDirection["BIDIRECTIONAL"] = "bidirectional";
79
+ /** Translate only one participant's speech (typically agent to customer) */
80
+ TranslationDirection["UNIDIRECTIONAL"] = "unidirectional";
81
+ })(TranslationDirection || (exports.TranslationDirection = TranslationDirection = {}));
82
+ /**
83
+ * Conversation summary sentiment classification.
84
+ *
85
+ * AI-generated sentiment analysis result for conversation summaries,
86
+ * used for analytics, routing, and follow-up prioritization.
87
+ */
88
+ var ConversationSummarySentiment;
89
+ (function (ConversationSummarySentiment) {
90
+ /** Customer expressed satisfaction, issue resolved, or positive outcome */
91
+ ConversationSummarySentiment["POSITIVE"] = "positive";
92
+ /** Neutral interaction without strong positive or negative indicators */
93
+ ConversationSummarySentiment["NEUTRAL"] = "neutral";
94
+ /** Customer expressed frustration, issue unresolved, or negative outcome */
95
+ ConversationSummarySentiment["NEGATIVE"] = "negative";
96
+ })(ConversationSummarySentiment || (exports.ConversationSummarySentiment = ConversationSummarySentiment = {}));
97
+ /**
98
+ * Call request status for outbound call lifecycle tracking.
99
+ *
100
+ * Tracks the progression of an outbound call request from creation
101
+ * through execution and completion.
102
+ *
103
+ * @remarks
104
+ * **Status Lifecycle:**
105
+ * ```
106
+ * PENDING → SCHEDULED → IN_PROGRESS → COMPLETED
107
+ * ↘ FAILED
108
+ * ↘ CANCELLED
109
+ * ```
110
+ *
111
+ * @see BusinessCallRequestSchema - Uses this for call tracking
112
+ */
113
+ var CallRequestStatus;
114
+ (function (CallRequestStatus) {
115
+ /** Call request created, awaiting processing or scheduled time */
116
+ CallRequestStatus["PENDING"] = "pending";
117
+ /** Call scheduled for future execution within calling hours */
118
+ CallRequestStatus["SCHEDULED"] = "scheduled";
119
+ /** Call currently active with AI agent engaged */
120
+ CallRequestStatus["IN_PROGRESS"] = "in_progress";
121
+ /** Call successfully completed with conversation recorded */
122
+ CallRequestStatus["COMPLETED"] = "completed";
123
+ /** Call failed due to technical error, no answer, or busy signal */
124
+ CallRequestStatus["FAILED"] = "failed";
125
+ /** Call cancelled before execution by user or system */
126
+ CallRequestStatus["CANCELLED"] = "cancelled";
127
+ })(CallRequestStatus || (exports.CallRequestStatus = CallRequestStatus = {}));
128
+ /**
129
+ * Schedule type for outbound call timing configuration.
130
+ *
131
+ * Determines when and how outbound calls are executed relative
132
+ * to the call request creation time.
133
+ *
134
+ * @see BusinessCallRequestSchema - Uses this for call scheduling
135
+ */
136
+ var ScheduleType;
137
+ (function (ScheduleType) {
138
+ /** Execute call as soon as possible within calling hours */
139
+ ScheduleType["IMMEDIATE"] = "immediate";
140
+ /** Execute call at specific scheduledAt timestamp */
141
+ ScheduleType["SCHEDULED"] = "scheduled";
142
+ /** Execute call on recurring schedule based on callingHours */
143
+ ScheduleType["RECURRING"] = "recurring";
144
+ })(ScheduleType || (exports.ScheduleType = ScheduleType = {}));
145
+ /**
146
+ * Email delivery status for tracking email lifecycle.
147
+ *
148
+ * Tracks the progression of an outbound email from queue through
149
+ * delivery or failure, updated by provider webhooks.
150
+ *
151
+ * @remarks
152
+ * **Status Lifecycle:**
153
+ * ```
154
+ * QUEUED → SENT → DELIVERED
155
+ * ↘ BOUNCED
156
+ * ↘ COMPLAINED
157
+ * ↘ FAILED
158
+ * ```
159
+ *
160
+ * @see EmailRecordSchema - Uses this for delivery tracking
161
+ */
162
+ var EmailStatus;
163
+ (function (EmailStatus) {
164
+ /** Email request created, awaiting sending */
165
+ EmailStatus["QUEUED"] = "queued";
166
+ /** Email successfully submitted to mail provider */
167
+ EmailStatus["SENT"] = "sent";
168
+ /** Email confirmed delivered to recipient inbox */
169
+ EmailStatus["DELIVERED"] = "delivered";
170
+ /** Email bounced (hard or soft bounce from recipient server) */
171
+ EmailStatus["BOUNCED"] = "bounced";
172
+ /** Email failed to send due to technical error */
173
+ EmailStatus["FAILED"] = "failed";
174
+ /** Recipient marked email as spam (complaint received) */
175
+ EmailStatus["COMPLAINED"] = "complained";
176
+ })(EmailStatus || (exports.EmailStatus = EmailStatus = {}));
177
+ /**
178
+ * SMS delivery status for tracking message lifecycle.
179
+ *
180
+ * Tracks the progression of an outbound SMS from queue through
181
+ * delivery or failure, updated by carrier delivery reports.
182
+ *
183
+ * @remarks
184
+ * **Status Lifecycle:**
185
+ * ```
186
+ * QUEUED → SENT → DELIVERED
187
+ * ↘ UNDELIVERED
188
+ * ↘ FAILED
189
+ * ```
190
+ *
191
+ * @see SmsRequestSchema - Uses this for delivery tracking
192
+ */
193
+ var SmsStatus;
194
+ (function (SmsStatus) {
195
+ /** SMS request created, awaiting sending */
196
+ SmsStatus["QUEUED"] = "queued";
197
+ /** SMS successfully submitted to carrier */
198
+ SmsStatus["SENT"] = "sent";
199
+ /** SMS confirmed delivered to recipient device */
200
+ SmsStatus["DELIVERED"] = "delivered";
201
+ /** SMS failed to send due to technical error */
202
+ SmsStatus["FAILED"] = "failed";
203
+ /** SMS could not be delivered (invalid number, blocked, etc.) */
204
+ SmsStatus["UNDELIVERED"] = "undelivered";
205
+ })(SmsStatus || (exports.SmsStatus = SmsStatus = {}));
206
+ /**
207
+ * Outbound template channel types.
208
+ *
209
+ * Identifies the communication channel for outbound message templates.
210
+ *
211
+ * @see OutboundTemplateSchema - Uses this for channel identification
212
+ */
213
+ var OutboundTemplateChannel;
214
+ (function (OutboundTemplateChannel) {
215
+ /** Email template */
216
+ OutboundTemplateChannel["EMAIL"] = "EMAIL";
217
+ /** SMS text template */
218
+ OutboundTemplateChannel["SMS"] = "SMS";
219
+ /** WhatsApp message template */
220
+ OutboundTemplateChannel["WHATSAPP"] = "WHATSAPP";
221
+ })(OutboundTemplateChannel || (exports.OutboundTemplateChannel = OutboundTemplateChannel = {}));
222
+ /**
223
+ * Conversation direction for tracking inbound/outbound interactions.
224
+ *
225
+ * Identifies whether a conversation was initiated by the customer (inbound)
226
+ * or by the business (outbound) for analytics, routing, and billing purposes.
227
+ *
228
+ * @see ServiceConversationConfigSchema - Uses this for direction tracking
229
+ */
230
+ var ConversationDirection;
231
+ (function (ConversationDirection) {
232
+ /** Customer-initiated conversation (incoming call, received email, etc.) */
233
+ ConversationDirection["INBOUND"] = "inbound";
234
+ /** Business-initiated conversation (outbound call, campaign, etc.) */
235
+ ConversationDirection["OUTBOUND"] = "outbound";
236
+ })(ConversationDirection || (exports.ConversationDirection = ConversationDirection = {}));
@@ -0,0 +1,154 @@
1
+ import z from "zod";
2
+ /**
3
+ * @fileoverview Display order schema definitions for managing item and category ordering.
4
+ * @module type-definitions/display-order
5
+ */
6
+ /**
7
+ * Display order position mode enum.
8
+ */
9
+ export declare const DisplayOrderPositionModeSchema: z.ZodEnum<{
10
+ BEGINNING: "BEGINNING";
11
+ END: "END";
12
+ KEEP_CURRENT: "KEEP_CURRENT";
13
+ BEFORE_ITEM: "BEFORE_ITEM";
14
+ AFTER_ITEM: "AFTER_ITEM";
15
+ ABSOLUTE_INDEX: "ABSOLUTE_INDEX";
16
+ }>;
17
+ /**
18
+ * Display order position intent schema.
19
+ */
20
+ export declare const DisplayOrderPositionIntentSchema: z.ZodObject<{
21
+ mode: z.ZodEnum<{
22
+ BEGINNING: "BEGINNING";
23
+ END: "END";
24
+ KEEP_CURRENT: "KEEP_CURRENT";
25
+ BEFORE_ITEM: "BEFORE_ITEM";
26
+ AFTER_ITEM: "AFTER_ITEM";
27
+ ABSOLUTE_INDEX: "ABSOLUTE_INDEX";
28
+ }>;
29
+ }, z.core.$strip>;
30
+ /**
31
+ * Display order request schema for item positioning.
32
+ */
33
+ export declare const DisplayOrderRequestSchema: z.ZodObject<{
34
+ itemId: z.ZodNullable<z.ZodString>;
35
+ targetCategoryId: z.ZodString;
36
+ positionIntent: z.ZodObject<{
37
+ mode: z.ZodEnum<{
38
+ BEGINNING: "BEGINNING";
39
+ END: "END";
40
+ KEEP_CURRENT: "KEEP_CURRENT";
41
+ BEFORE_ITEM: "BEFORE_ITEM";
42
+ AFTER_ITEM: "AFTER_ITEM";
43
+ ABSOLUTE_INDEX: "ABSOLUTE_INDEX";
44
+ }>;
45
+ }, z.core.$strip>;
46
+ anchorItemId: z.ZodNullable<z.ZodString>;
47
+ absoluteIndex: z.ZodNullable<z.ZodNumber>;
48
+ idempotencyKey: z.ZodUUID;
49
+ expectedVersion: z.ZodNumber;
50
+ }, z.core.$strip>;
51
+ /**
52
+ * Display order response schema.
53
+ */
54
+ export declare const DisplayOrderResponseSchema: z.ZodObject<{
55
+ itemId: z.ZodString;
56
+ targetCategoryId: z.ZodString;
57
+ resolvedDisplayOrder: z.ZodNumber;
58
+ resolvedPosition: z.ZodOptional<z.ZodNumber>;
59
+ categoryVersion: z.ZodNumber;
60
+ reindexed: z.ZodBoolean;
61
+ }, z.core.$strip>;
62
+ /**
63
+ * Create display order placement schema for create-time positioning.
64
+ */
65
+ export declare const CreateDisplayOrderPlacementSchema: z.ZodObject<{
66
+ placementIntent: z.ZodObject<{
67
+ mode: z.ZodEnum<{
68
+ BEGINNING: "BEGINNING";
69
+ END: "END";
70
+ KEEP_CURRENT: "KEEP_CURRENT";
71
+ BEFORE_ITEM: "BEFORE_ITEM";
72
+ AFTER_ITEM: "AFTER_ITEM";
73
+ ABSOLUTE_INDEX: "ABSOLUTE_INDEX";
74
+ }>;
75
+ }, z.core.$strip>;
76
+ anchorItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ absoluteIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
+ }, z.core.$strip>;
79
+ /**
80
+ * Category display order request schema.
81
+ */
82
+ export declare const CategoryDisplayOrderRequestSchema: z.ZodObject<{
83
+ categoryId: z.ZodString;
84
+ targetParentCategoryId: z.ZodNullable<z.ZodString>;
85
+ positionIntent: z.ZodObject<{
86
+ mode: z.ZodEnum<{
87
+ BEGINNING: "BEGINNING";
88
+ END: "END";
89
+ KEEP_CURRENT: "KEEP_CURRENT";
90
+ BEFORE_ITEM: "BEFORE_ITEM";
91
+ AFTER_ITEM: "AFTER_ITEM";
92
+ ABSOLUTE_INDEX: "ABSOLUTE_INDEX";
93
+ }>;
94
+ }, z.core.$strip>;
95
+ anchorCategoryId: z.ZodNullable<z.ZodString>;
96
+ absoluteIndex: z.ZodNullable<z.ZodNumber>;
97
+ idempotencyKey: z.ZodUUID;
98
+ expectedVersion: z.ZodNumber;
99
+ }, z.core.$strip>;
100
+ /**
101
+ * Category display order response schema.
102
+ */
103
+ export declare const CategoryDisplayOrderResponseSchema: z.ZodObject<{
104
+ categoryId: z.ZodString;
105
+ targetParentCategoryId: z.ZodNullable<z.ZodString>;
106
+ resolvedDisplayOrder: z.ZodNumber;
107
+ resolvedPosition: z.ZodOptional<z.ZodNumber>;
108
+ categoryVersion: z.ZodNumber;
109
+ reindexed: z.ZodBoolean;
110
+ }, z.core.$strip>;
111
+ /**
112
+ * Category order entry schema for bulk ordering.
113
+ */
114
+ export declare const CategoryOrderEntrySchema: z.ZodObject<{
115
+ categoryId: z.ZodString;
116
+ displayOrder: z.ZodNumber;
117
+ }, z.core.$strip>;
118
+ /**
119
+ * Bulk category display orders request schema.
120
+ */
121
+ export declare const CategoryDisplayOrdersRequestSchema: z.ZodObject<{
122
+ categoryOrders: z.ZodArray<z.ZodObject<{
123
+ categoryId: z.ZodString;
124
+ displayOrder: z.ZodNumber;
125
+ }, z.core.$strip>>;
126
+ }, z.core.$strip>;
127
+ /**
128
+ * Category item order entry schema.
129
+ */
130
+ export declare const CategoryItemOrderEntrySchema: z.ZodObject<{
131
+ itemId: z.ZodString;
132
+ displayOrder: z.ZodNumber;
133
+ }, z.core.$strip>;
134
+ /**
135
+ * Bulk category item display orders request schema.
136
+ */
137
+ export declare const CategoryItemDisplayOrdersRequestSchema: z.ZodObject<{
138
+ categoryId: z.ZodString;
139
+ itemOrders: z.ZodArray<z.ZodObject<{
140
+ itemId: z.ZodString;
141
+ displayOrder: z.ZodNumber;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>;
144
+ export type DisplayOrderPositionMode = z.infer<typeof DisplayOrderPositionModeSchema>;
145
+ export type DisplayOrderPositionIntent = z.infer<typeof DisplayOrderPositionIntentSchema>;
146
+ export type CreateDisplayOrderPlacement = z.infer<typeof CreateDisplayOrderPlacementSchema>;
147
+ export type DisplayOrderRequest = z.infer<typeof DisplayOrderRequestSchema>;
148
+ export type DisplayOrderResponse = z.infer<typeof DisplayOrderResponseSchema>;
149
+ export type CategoryDisplayOrderRequest = z.infer<typeof CategoryDisplayOrderRequestSchema>;
150
+ export type CategoryDisplayOrderResponse = z.infer<typeof CategoryDisplayOrderResponseSchema>;
151
+ export type CategoryOrderEntry = z.infer<typeof CategoryOrderEntrySchema>;
152
+ export type CategoryDisplayOrdersRequest = z.infer<typeof CategoryDisplayOrdersRequestSchema>;
153
+ export type CategoryItemOrderEntry = z.infer<typeof CategoryItemOrderEntrySchema>;
154
+ export type CategoryItemDisplayOrdersRequest = z.infer<typeof CategoryItemDisplayOrdersRequestSchema>;
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CategoryItemDisplayOrdersRequestSchema = exports.CategoryItemOrderEntrySchema = exports.CategoryDisplayOrdersRequestSchema = exports.CategoryOrderEntrySchema = exports.CategoryDisplayOrderResponseSchema = exports.CategoryDisplayOrderRequestSchema = exports.CreateDisplayOrderPlacementSchema = exports.DisplayOrderResponseSchema = exports.DisplayOrderRequestSchema = exports.DisplayOrderPositionIntentSchema = exports.DisplayOrderPositionModeSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ /**
9
+ * @fileoverview Display order schema definitions for managing item and category ordering.
10
+ * @module type-definitions/display-order
11
+ */
12
+ /**
13
+ * Display order position mode enum.
14
+ */
15
+ exports.DisplayOrderPositionModeSchema = zod_1.default.enum([
16
+ "BEGINNING",
17
+ "END",
18
+ "KEEP_CURRENT",
19
+ "BEFORE_ITEM",
20
+ "AFTER_ITEM",
21
+ "ABSOLUTE_INDEX",
22
+ ]);
23
+ /**
24
+ * Display order position intent schema.
25
+ */
26
+ exports.DisplayOrderPositionIntentSchema = zod_1.default.object({
27
+ mode: exports.DisplayOrderPositionModeSchema.describe("Positioning mode for the item"),
28
+ }).describe("How to place an entity in an ordered list");
29
+ /**
30
+ * Validation helper for position intent.
31
+ */
32
+ const applyPositionIntentValidation = (data, ctx, anchorValue, anchorPath) => {
33
+ const mode = data.positionIntent.mode;
34
+ const requiresAnchor = mode === "BEFORE_ITEM" || mode === "AFTER_ITEM";
35
+ const requiresAbsoluteIndex = mode === "ABSOLUTE_INDEX";
36
+ if (requiresAnchor && !anchorValue) {
37
+ ctx.addIssue({
38
+ code: "custom",
39
+ path: [anchorPath],
40
+ message: `${anchorPath} is required for BEFORE_ITEM and AFTER_ITEM`,
41
+ });
42
+ }
43
+ if (requiresAbsoluteIndex && data.absoluteIndex === null) {
44
+ ctx.addIssue({
45
+ code: "custom",
46
+ path: ["absoluteIndex"],
47
+ message: "absoluteIndex is required for ABSOLUTE_INDEX",
48
+ });
49
+ }
50
+ if (!requiresAnchor && anchorValue !== null) {
51
+ ctx.addIssue({
52
+ code: "custom",
53
+ path: [anchorPath],
54
+ message: `${anchorPath} must be null unless mode is BEFORE_ITEM or AFTER_ITEM`,
55
+ });
56
+ }
57
+ if (!requiresAbsoluteIndex && data.absoluteIndex !== null) {
58
+ ctx.addIssue({
59
+ code: "custom",
60
+ path: ["absoluteIndex"],
61
+ message: "absoluteIndex must be null unless mode is ABSOLUTE_INDEX",
62
+ });
63
+ }
64
+ };
65
+ /**
66
+ * Display order request schema for item positioning.
67
+ */
68
+ exports.DisplayOrderRequestSchema = zod_1.default.object({
69
+ itemId: zod_1.default.string().nullable().describe("Target item identifier. Null when creating a new item"),
70
+ targetCategoryId: zod_1.default.string().min(1).describe("Category where ordering applies"),
71
+ positionIntent: exports.DisplayOrderPositionIntentSchema,
72
+ anchorItemId: zod_1.default.string().nullable().describe("Required for BEFORE_ITEM and AFTER_ITEM"),
73
+ absoluteIndex: zod_1.default.number().int().nonnegative().nullable().describe("Required for ABSOLUTE_INDEX (0-based)"),
74
+ idempotencyKey: zod_1.default.uuid().describe("Client-provided idempotency key (UUID v4)"),
75
+ expectedVersion: zod_1.default.number().int().nonnegative().describe("Optimistic concurrency version"),
76
+ }).superRefine((data, ctx) => {
77
+ applyPositionIntentValidation(data, ctx, data.anchorItemId, "anchorItemId");
78
+ }).describe("Configuration for display order of items in listings");
79
+ /**
80
+ * Display order response schema.
81
+ */
82
+ exports.DisplayOrderResponseSchema = zod_1.default.object({
83
+ itemId: zod_1.default.string().min(1).describe("Resolved item identifier"),
84
+ targetCategoryId: zod_1.default.string().min(1).describe("Category where the item is ordered"),
85
+ resolvedDisplayOrder: zod_1.default.number().int().nonnegative().describe("Persisted display order value"),
86
+ resolvedPosition: zod_1.default.number().int().positive().optional().describe("Optional 1-based position for UI"),
87
+ categoryVersion: zod_1.default.number().int().nonnegative().describe("Updated category version after reorder"),
88
+ reindexed: zod_1.default.boolean().describe("Whether sibling items were normalized/reindexed"),
89
+ }).describe("Result of applying display order intent");
90
+ /**
91
+ * Create display order placement schema for create-time positioning.
92
+ */
93
+ exports.CreateDisplayOrderPlacementSchema = zod_1.default.object({
94
+ placementIntent: exports.DisplayOrderPositionIntentSchema,
95
+ anchorItemId: zod_1.default.string().nullable().optional().describe("Anchor item for relative positioning"),
96
+ absoluteIndex: zod_1.default.number().int().nonnegative().nullable().optional().describe("Absolute index for ABSOLUTE_INDEX mode"),
97
+ }).superRefine((data, ctx) => {
98
+ applyPositionIntentValidation({
99
+ positionIntent: data.placementIntent,
100
+ absoluteIndex: data.absoluteIndex ?? null,
101
+ }, ctx, data.anchorItemId ?? null, "anchorItemId");
102
+ }).describe("Optional create-time placement block for resolving displayOrder");
103
+ /**
104
+ * Category display order request schema.
105
+ */
106
+ exports.CategoryDisplayOrderRequestSchema = zod_1.default.object({
107
+ categoryId: zod_1.default.string().min(1).describe("Category to move"),
108
+ targetParentCategoryId: zod_1.default.string().nullable().describe("Target parent category. Null for root-level categories"),
109
+ positionIntent: exports.DisplayOrderPositionIntentSchema,
110
+ anchorCategoryId: zod_1.default.string().nullable().describe("Required for BEFORE_ITEM and AFTER_ITEM"),
111
+ absoluteIndex: zod_1.default.number().int().nonnegative().nullable().describe("Required for ABSOLUTE_INDEX (0-based)"),
112
+ idempotencyKey: zod_1.default.uuid().describe("Client-provided idempotency key (UUID v4)"),
113
+ expectedVersion: zod_1.default.number().int().nonnegative().describe("Optimistic concurrency version"),
114
+ }).superRefine((data, ctx) => {
115
+ applyPositionIntentValidation(data, ctx, data.anchorCategoryId, "anchorCategoryId");
116
+ }).describe("Configuration for reordering categories");
117
+ /**
118
+ * Category display order response schema.
119
+ */
120
+ exports.CategoryDisplayOrderResponseSchema = zod_1.default.object({
121
+ categoryId: zod_1.default.string().min(1).describe("Resolved category identifier"),
122
+ targetParentCategoryId: zod_1.default.string().nullable().describe("Resolved parent category. Null for root-level categories"),
123
+ resolvedDisplayOrder: zod_1.default.number().int().nonnegative().describe("Persisted display order value"),
124
+ resolvedPosition: zod_1.default.number().int().positive().optional().describe("Optional 1-based position for UI"),
125
+ categoryVersion: zod_1.default.number().int().nonnegative().describe("Updated category version after reorder"),
126
+ reindexed: zod_1.default.boolean().describe("Whether sibling categories were normalized/reindexed"),
127
+ }).describe("Result of applying category order intent");
128
+ /**
129
+ * Category order entry schema for bulk ordering.
130
+ */
131
+ exports.CategoryOrderEntrySchema = zod_1.default.object({
132
+ categoryId: zod_1.default.string().min(1).describe("Category identifier"),
133
+ displayOrder: zod_1.default.number().int().nonnegative().describe("Target display order for the category"),
134
+ });
135
+ /**
136
+ * Bulk category display orders request schema.
137
+ */
138
+ exports.CategoryDisplayOrdersRequestSchema = zod_1.default.object({
139
+ categoryOrders: zod_1.default.array(exports.CategoryOrderEntrySchema).min(1).describe("Ordered category display values"),
140
+ });
141
+ /**
142
+ * Category item order entry schema.
143
+ */
144
+ exports.CategoryItemOrderEntrySchema = zod_1.default.object({
145
+ itemId: zod_1.default.string().min(1).describe("Item identifier"),
146
+ displayOrder: zod_1.default.number().int().nonnegative().describe("Target display order for the item"),
147
+ });
148
+ /**
149
+ * Bulk category item display orders request schema.
150
+ */
151
+ exports.CategoryItemDisplayOrdersRequestSchema = zod_1.default.object({
152
+ categoryId: zod_1.default.string().min(1).describe("Category identifier"),
153
+ itemOrders: zod_1.default.array(exports.CategoryItemOrderEntrySchema).min(1).describe("Ordered item display values for the category"),
154
+ });