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,23 @@
1
+ "use strict";
2
+ /**
3
+ * Supported Business Vertical IDs
4
+ *
5
+ * This file contains only the business vertical IDs extracted from
6
+ * business-verticals-definitions.ts for use in validation and type checking.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SUPPORTED_BUSINESS_VERTICALS = void 0;
10
+ exports.SUPPORTED_BUSINESS_VERTICALS = [
11
+ "healthcare",
12
+ "health-wellness",
13
+ "retail",
14
+ "finance",
15
+ "real-estate",
16
+ "technology",
17
+ "education",
18
+ "legal",
19
+ "automotive",
20
+ "hospitality",
21
+ "professional",
22
+ "others"
23
+ ];
@@ -0,0 +1,115 @@
1
+ import z from "zod";
2
+ export declare const AssistantSetupResultSchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ agentConfiguration: z.ZodObject<{
5
+ id: z.ZodString;
6
+ createdAt: z.ZodOptional<z.ZodNumber>;
7
+ updatedAt: z.ZodOptional<z.ZodNumber>;
8
+ modelId: z.ZodString;
9
+ name: z.ZodString;
10
+ defaultFunctionState: z.ZodDefault<z.ZodEnum<typeof import("..").LLMType>>;
11
+ usesWiilSupportModel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
+ requiredModelConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13
+ useCustomModel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14
+ textProcessingModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ instructionConfigurationId: z.ZodString;
16
+ assistantType: z.ZodDefault<z.ZodEnum<typeof import("..").AssistantType>>;
17
+ call_transfer_config: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
18
+ transfer_number: z.ZodString;
19
+ transfer_type: z.ZodDefault<z.ZodEnum<{
20
+ blind: "blind";
21
+ warm: "warm";
22
+ }>>;
23
+ transfer_conditions: z.ZodArray<z.ZodString>;
24
+ }, z.core.$strip>>>>;
25
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
26
+ model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ modelId: z.ZodString;
28
+ proprietor: z.ZodEnum<typeof import("..").SupportedProprietor>;
29
+ name: z.ZodString;
30
+ provider_model_id: z.ZodOptional<z.ZodString>;
31
+ description: z.ZodString;
32
+ type: z.ZodEnum<typeof import("..").LLMType>;
33
+ discontinued: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
34
+ supportedVoices: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ voiceId: z.ZodString;
36
+ name: z.ZodString;
37
+ description: z.ZodString;
38
+ gender: z.ZodEnum<{
39
+ neutral: "neutral";
40
+ male: "male";
41
+ female: "female";
42
+ }>;
43
+ language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
+ isDefault: z.ZodDefault<z.ZodBoolean>;
45
+ }, z.core.$strip>>>>;
46
+ supportLanguages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
47
+ languageId: z.ZodString;
48
+ name: z.ZodString;
49
+ code: z.ZodString;
50
+ isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
51
+ isExperimental: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
52
+ }, z.core.$strip>>>>;
53
+ }, z.core.$strip>>>;
54
+ }, z.core.$strip>;
55
+ instructionConfiguration: z.ZodObject<{
56
+ id: z.ZodString;
57
+ createdAt: z.ZodOptional<z.ZodNumber>;
58
+ updatedAt: z.ZodOptional<z.ZodNumber>;
59
+ instructionName: z.ZodString;
60
+ role: z.ZodString;
61
+ introductionMessage: z.ZodString;
62
+ instructions: z.ZodString;
63
+ guardrails: z.ZodString;
64
+ requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
+ validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
66
+ serviceId: z.ZodOptional<z.ZodString>;
67
+ supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").BusinessSupportServices>>>>;
68
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
+ isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
70
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
71
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
72
+ knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
73
+ }, z.core.$strip>;
74
+ deploymentChannels: z.ZodArray<z.ZodObject<{
75
+ id: z.ZodString;
76
+ createdAt: z.ZodOptional<z.ZodNumber>;
77
+ updatedAt: z.ZodOptional<z.ZodNumber>;
78
+ deploymentType: z.ZodEnum<typeof import("..").DeploymentType>;
79
+ channelName: z.ZodOptional<z.ZodString>;
80
+ recordingEnabled: z.ZodDefault<z.ZodBoolean>;
81
+ channelIdentifier: z.ZodString;
82
+ configuration: z.ZodUnion<readonly [z.ZodObject<{
83
+ phoneConfigurationId: z.ZodString;
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ communicationType: z.ZodDefault<z.ZodEnum<typeof import("..").OttCommunicationType>>;
86
+ widgetConfiguration: z.ZodOptional<z.ZodObject<{
87
+ position: z.ZodDefault<z.ZodEnum<{
88
+ left: "left";
89
+ right: "right";
90
+ }>>;
91
+ customTheme: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
92
+ }, z.core.$strip>>;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ packageName: z.ZodDefault<z.ZodString>;
95
+ platform: z.ZodDefault<z.ZodEnum<typeof import("..").MobilePlatform>>;
96
+ }, z.core.$strip>]>;
97
+ }, z.core.$strip>>;
98
+ deploymentConfigurations: z.ZodArray<z.ZodObject<{
99
+ id: z.ZodString;
100
+ createdAt: z.ZodOptional<z.ZodNumber>;
101
+ updatedAt: z.ZodOptional<z.ZodNumber>;
102
+ instructionConfigurationId: z.ZodString;
103
+ agentConfigurationId: z.ZodString;
104
+ projectId: z.ZodString;
105
+ deploymentChannelId: z.ZodString;
106
+ deploymentName: z.ZodOptional<z.ZodString>;
107
+ provisioningConfigChainId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
108
+ provisioningType: z.ZodDefault<z.ZodEnum<typeof import("..").DeploymentProvisioningType>>;
109
+ deploymentStatus: z.ZodEnum<typeof import("..").DeploymentStatus>;
110
+ isActive: z.ZodDefault<z.ZodBoolean>;
111
+ }, z.core.$strip>>;
112
+ errorMessage: z.ZodOptional<z.ZodString>;
113
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
114
+ }, z.core.$strip>;
115
+ export type AssistantSetupResult = z.infer<typeof AssistantSetupResultSchema>;
@@ -0,0 +1,17 @@
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.AssistantSetupResultSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const service_configuration_1 = require("../service-configuration");
9
+ exports.AssistantSetupResultSchema = zod_1.default.object({
10
+ success: zod_1.default.boolean(),
11
+ agentConfiguration: service_configuration_1.AgentConfigurationSchema,
12
+ instructionConfiguration: service_configuration_1.InstructionConfigurationSchema,
13
+ deploymentChannels: zod_1.default.array(service_configuration_1.DeploymentChannelSchema),
14
+ deploymentConfigurations: zod_1.default.array(service_configuration_1.DeploymentConfigurationResultSchema),
15
+ errorMessage: zod_1.default.string().optional(),
16
+ metadata: zod_1.default.record(zod_1.default.string(), zod_1.default.any()).optional(),
17
+ });
@@ -0,0 +1,61 @@
1
+ import z from "zod";
2
+ export declare const BaseAssistantSchema: z.ZodObject<{
3
+ assistantName: z.ZodString;
4
+ supportModelId: z.ZodString;
5
+ voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ languageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10
+ knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
11
+ instructionName: z.ZodString;
12
+ role: z.ZodString;
13
+ introductionMessage: z.ZodString;
14
+ instructions: z.ZodString;
15
+ guardrails: z.ZodString;
16
+ requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
18
+ serviceId: z.ZodOptional<z.ZodString>;
19
+ supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").BusinessSupportServices>>>>;
20
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
22
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
23
+ }, z.core.$strip>>>;
24
+ knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
25
+ }, z.core.$strip>;
26
+ export declare const AdvanceBaseAssistantSchema: z.ZodObject<{
27
+ assistantName: z.ZodString;
28
+ supportModelId: z.ZodString;
29
+ voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ languageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
34
+ knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
35
+ instructionName: z.ZodString;
36
+ role: z.ZodString;
37
+ introductionMessage: z.ZodString;
38
+ instructions: z.ZodString;
39
+ guardrails: z.ZodString;
40
+ requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
42
+ serviceId: z.ZodOptional<z.ZodString>;
43
+ supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").BusinessSupportServices>>>>;
44
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
46
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
47
+ }, z.core.$strip>>>;
48
+ knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
49
+ sttConfig: z.ZodObject<{
50
+ modelId: z.ZodString;
51
+ defaultLanguage: z.ZodDefault<z.ZodString>;
52
+ }, z.core.$strip>;
53
+ ttsConfig: z.ZodObject<{
54
+ modelId: z.ZodString;
55
+ voiceId: z.ZodString;
56
+ defaultLanguage: z.ZodDefault<z.ZodString>;
57
+ voiceSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
58
+ }, z.core.$strip>;
59
+ }, z.core.$strip>;
60
+ export type BaseAssistant = z.infer<typeof BaseAssistantSchema>;
61
+ export type AdvanceBaseAssistant = z.infer<typeof AdvanceBaseAssistantSchema>;
@@ -0,0 +1,29 @@
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.AdvanceBaseAssistantSchema = exports.BaseAssistantSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const service_configuration_1 = require("../service-configuration");
9
+ // Base schema with refinement
10
+ exports.BaseAssistantSchema = zod_1.default.object({
11
+ assistantName: zod_1.default.string(),
12
+ supportModelId: zod_1.default.string(),
13
+ voiceId: zod_1.default.string().nullable().optional(),
14
+ languageId: zod_1.default.string().nullable().optional(),
15
+ instructionConfigurationId: zod_1.default.string().nullable().optional(),
16
+ customInstructionConfiguration: service_configuration_1.CreateInstructionConfigurationSchema.nullable().optional(),
17
+ knowledgeSourceIds: zod_1.default.array(zod_1.default.string()).default([]),
18
+ }).refine((data) => {
19
+ const hasInstructionId = data.instructionConfigurationId !== null && data.instructionConfigurationId !== undefined;
20
+ const hasCustomInstruction = data.customInstructionConfiguration !== null && data.customInstructionConfiguration !== undefined;
21
+ return hasInstructionId || hasCustomInstruction;
22
+ }, {
23
+ message: "Either instructionConfigurationId or customInstructionConfiguration must be provided",
24
+ path: ["instructionConfigurationId"],
25
+ });
26
+ exports.AdvanceBaseAssistantSchema = exports.BaseAssistantSchema.safeExtend({
27
+ sttConfig: service_configuration_1.SttModelConfigSchema,
28
+ ttsConfig: service_configuration_1.TtsModelConfigSchema
29
+ }).describe("Schema for setting up an AI assistant with specified configurations");
@@ -0,0 +1,4 @@
1
+ export * from './base-assistant-setup.schema';
2
+ export * from './phone-assistant-setup.schema';
3
+ export * from './web-assitant-setup.schema';
4
+ export * from './assistant-setup-result.schema';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./base-assistant-setup.schema"), exports);
18
+ __exportStar(require("./phone-assistant-setup.schema"), exports);
19
+ __exportStar(require("./web-assitant-setup.schema"), exports);
20
+ __exportStar(require("./assistant-setup-result.schema"), exports);
21
+ // export * from './tools';
@@ -0,0 +1,63 @@
1
+ import z from "zod";
2
+ export declare const PhoneAssistantSetupSchema: z.ZodObject<{
3
+ assistantName: z.ZodString;
4
+ supportModelId: z.ZodString;
5
+ voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ languageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10
+ knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
11
+ instructionName: z.ZodString;
12
+ role: z.ZodString;
13
+ introductionMessage: z.ZodString;
14
+ instructions: z.ZodString;
15
+ guardrails: z.ZodString;
16
+ requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
18
+ serviceId: z.ZodOptional<z.ZodString>;
19
+ supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").BusinessSupportServices>>>>;
20
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
22
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
23
+ }, z.core.$strip>>>;
24
+ knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
25
+ phoneConfigurationId: z.ZodString;
26
+ }, z.core.$strip>;
27
+ export declare const ChainedPhoneAssistantSetupSchema: z.ZodObject<{
28
+ assistantName: z.ZodString;
29
+ supportModelId: z.ZodString;
30
+ voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ languageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
35
+ knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
36
+ instructionName: z.ZodString;
37
+ role: z.ZodString;
38
+ introductionMessage: z.ZodString;
39
+ instructions: z.ZodString;
40
+ guardrails: z.ZodString;
41
+ requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
42
+ validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
43
+ serviceId: z.ZodOptional<z.ZodString>;
44
+ supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").BusinessSupportServices>>>>;
45
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
47
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
48
+ }, z.core.$strip>>>;
49
+ knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
50
+ sttConfig: z.ZodObject<{
51
+ modelId: z.ZodString;
52
+ defaultLanguage: z.ZodDefault<z.ZodString>;
53
+ }, z.core.$strip>;
54
+ ttsConfig: z.ZodObject<{
55
+ modelId: z.ZodString;
56
+ voiceId: z.ZodString;
57
+ defaultLanguage: z.ZodDefault<z.ZodString>;
58
+ voiceSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
59
+ }, z.core.$strip>;
60
+ phoneConfigurationId: z.ZodString;
61
+ }, z.core.$strip>;
62
+ export type PhoneAssistantSetup = z.infer<typeof PhoneAssistantSetupSchema>;
63
+ export type ChainedPhoneAssistantSetup = z.infer<typeof ChainedPhoneAssistantSetupSchema>;
@@ -0,0 +1,14 @@
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.ChainedPhoneAssistantSetupSchema = exports.PhoneAssistantSetupSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const base_assistant_setup_schema_1 = require("./base-assistant-setup.schema");
9
+ exports.PhoneAssistantSetupSchema = base_assistant_setup_schema_1.BaseAssistantSchema.safeExtend({
10
+ phoneConfigurationId: zod_1.default.string().describe("Phone configuration ID for the phone channel where this assistant will be deployed"),
11
+ }).describe("Schema for setting up a phone AI assistant");
12
+ exports.ChainedPhoneAssistantSetupSchema = base_assistant_setup_schema_1.AdvanceBaseAssistantSchema.safeExtend({
13
+ phoneConfigurationId: zod_1.default.string().describe("Phone configuration ID for the phone channel where this assistant will be deployed"),
14
+ }).describe("Schema for setting up a phone AI assistant with advanced configurations");
@@ -0,0 +1,56 @@
1
+ import z from "zod";
2
+ import { OttCommunicationType } from "../type-definitions";
3
+ export declare const WebAssistantSetupSchema: z.ZodObject<{
4
+ assistantName: z.ZodString;
5
+ supportModelId: z.ZodString;
6
+ voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ languageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11
+ knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
12
+ instructionName: z.ZodString;
13
+ role: z.ZodString;
14
+ introductionMessage: z.ZodString;
15
+ instructions: z.ZodString;
16
+ guardrails: z.ZodString;
17
+ requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
19
+ serviceId: z.ZodOptional<z.ZodString>;
20
+ supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../type-definitions").BusinessSupportServices>>>>;
21
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
23
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
24
+ }, z.core.$strip>>>;
25
+ knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
26
+ websiteUrl: z.ZodURL;
27
+ communicationType: z.ZodEnum<typeof OttCommunicationType>;
28
+ }, z.core.$strip>;
29
+ export declare const ChainedWebAssistantSetupSchema: z.ZodObject<{
30
+ assistantName: z.ZodString;
31
+ supportModelId: z.ZodString;
32
+ voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ languageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
37
+ knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
38
+ instructionName: z.ZodString;
39
+ role: z.ZodString;
40
+ introductionMessage: z.ZodString;
41
+ instructions: z.ZodString;
42
+ guardrails: z.ZodString;
43
+ requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
+ validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
45
+ serviceId: z.ZodOptional<z.ZodString>;
46
+ supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../type-definitions").BusinessSupportServices>>>>;
47
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49
+ isPrimary: z.ZodDefault<z.ZodBoolean>;
50
+ }, z.core.$strip>>>;
51
+ knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
52
+ websiteUrl: z.ZodURL;
53
+ communicationType: z.ZodEnum<typeof OttCommunicationType>;
54
+ }, z.core.$strip>;
55
+ export type WebAssistantSetup = z.infer<typeof WebAssistantSetupSchema>;
56
+ export type ChainedWebAssistantSetup = z.infer<typeof ChainedWebAssistantSetupSchema>;
@@ -0,0 +1,17 @@
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.ChainedWebAssistantSetupSchema = exports.WebAssistantSetupSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const base_assistant_setup_schema_1 = require("./base-assistant-setup.schema");
9
+ const type_definitions_1 = require("../type-definitions");
10
+ exports.WebAssistantSetupSchema = base_assistant_setup_schema_1.BaseAssistantSchema.safeExtend({
11
+ websiteUrl: zod_1.default.url().describe("URL of the website where this assistant will be deployed"),
12
+ communicationType: zod_1.default.enum(type_definitions_1.OttCommunicationType).describe("Type of over-the-top communication method for the web channel. options: text, voice, unified"),
13
+ }).describe("Schema for setting up a web AI assistant");
14
+ exports.ChainedWebAssistantSetupSchema = exports.WebAssistantSetupSchema.safeExtend({
15
+ websiteUrl: zod_1.default.url().describe("URL of the website where this assistant will be deployed"),
16
+ communicationType: zod_1.default.enum(type_definitions_1.OttCommunicationType).describe("Type of over-the-top communication method for the web channel. options: text, voice, unified"),
17
+ }).describe("Schema for setting up a web AI assistant with advanced configurations");
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema for BaseModel with audit fields
4
+ */
5
+ export declare const BaseModelSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ createdAt: z.ZodOptional<z.ZodNumber>;
8
+ updatedAt: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ /**
11
+ * Zod schema for address validation.
12
+ */
13
+ export declare const AddressSchema: z.ZodObject<{
14
+ street: z.ZodString;
15
+ street2: z.ZodOptional<z.ZodString>;
16
+ city: z.ZodString;
17
+ state: z.ZodString;
18
+ postalCode: z.ZodString;
19
+ country: z.ZodString;
20
+ }, z.core.$strip>;
21
+ export declare const phoneRegex: RegExp;
22
+ /**
23
+ * Reusable phone number schema with international format support.
24
+ * Accepts formats: +1-234-567-8900, (123) 456-7890, 123.456.7890, etc.
25
+ */
26
+ export declare const PhoneNumberSchema: z.ZodString;
27
+ /**
28
+ * Language code schema (ISO 639-1 format)
29
+ */
30
+ export declare const LanguageCodeSchema: z.ZodString;
31
+ export type LanguageCode = z.infer<typeof LanguageCodeSchema>;
32
+ export type Address = z.infer<typeof AddressSchema>;
33
+ export type PhoneNumber = z.infer<typeof PhoneNumberSchema>;
34
+ export type BaseModel = z.infer<typeof BaseModelSchema>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LanguageCodeSchema = exports.PhoneNumberSchema = exports.phoneRegex = exports.AddressSchema = exports.BaseModelSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ // import { TimezoneStringSchema } from './platform-regional-config';
6
+ /**
7
+ * Zod schema for BaseModel with audit fields
8
+ */
9
+ exports.BaseModelSchema = zod_1.z.object({
10
+ id: zod_1.z.string().describe("Unique identifier for the model"),
11
+ createdAt: zod_1.z.number().optional().describe("Date when the model was created"),
12
+ updatedAt: zod_1.z.number().optional().describe("Date when the model was last updated")
13
+ });
14
+ /**
15
+ * Zod schema for address validation.
16
+ */
17
+ exports.AddressSchema = zod_1.z.object({
18
+ street: zod_1.z.string().min(2, { message: "Street must be 2 or more characters long" }).describe("Primary street address including house/building number"),
19
+ street2: zod_1.z.string().optional().describe("Secondary address line for apartment, suite, or unit numbers"),
20
+ city: zod_1.z.string().min(2, { message: "City must be 2 or more characters long" }).describe("City or municipality name"),
21
+ state: zod_1.z.string().min(2, { message: "State must be 2 or more characters long" }).describe("State, province, or region code"),
22
+ postalCode: zod_1.z.string().min(2, { message: "Postal code must be 2 or more characters long" }).describe("ZIP code, postal code, or equivalent"),
23
+ country: zod_1.z.string().min(2, { message: "Country must be 3 or more characters long" }).describe("ISO country code or country name"),
24
+ });
25
+ exports.phoneRegex = /^(\+?\d{1,4}[-.\s]?)?(\(\d{1,3}\)[-.\s]?)?\d{1,4}[-.\s]?\d{1,4}[-.\s]?\d{1,9}$/;
26
+ /**
27
+ * Reusable phone number schema with international format support.
28
+ * Accepts formats: +1-234-567-8900, (123) 456-7890, 123.456.7890, etc.
29
+ */
30
+ exports.PhoneNumberSchema = zod_1.z.string()
31
+ .regex(exports.phoneRegex, { message: "Invalid phone number format" })
32
+ .describe("Phone number in international or local format");
33
+ /**
34
+ * Language code schema (ISO 639-1 format)
35
+ */
36
+ exports.LanguageCodeSchema = zod_1.z.string().min(2).max(5).describe("ISO 639-1/639-2 language code with optional region (e.g., 'en', 'es', 'zh-CN')"); // e.g., "en", "es", "zh-CN"
@@ -0,0 +1,63 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * @fileoverview Appointment Additional Info schema for storing dynamic field values.
4
+ * @module business-mgt/appointment-additional-info
5
+ *
6
+ * This schema represents the **Appointment Level** in the dynamic fields hierarchy:
7
+ *
8
+ * ```
9
+ * Organization Level (AppointmentFieldConfigSchema)
10
+ * │
11
+ * ▼ inherits via appointmentFieldConfigId
12
+ * Service Level (ServiceAppointmentFieldConfigSchema)
13
+ * │
14
+ * ▼ stores values
15
+ * Appointment Level (AppointmentAdditionalInfoSchema) ← THIS SCHEMA
16
+ * ```
17
+ *
18
+ * Stores the actual captured field values for a specific appointment instance.
19
+ * The `data` property contains key-value pairs where keys correspond to `fieldKey`
20
+ * values defined in the organization and service-level field configurations.
21
+ *
22
+ * @see AppointmentFieldConfigSchema - Organization-level field definitions
23
+ * @see ServiceAppointmentFieldConfigSchema - Service-level field customization
24
+ */
25
+ /**
26
+ * Schema for dynamic field value types.
27
+ * Accepts any value type to support the various DynamicFieldType values
28
+ * (text, number, boolean, date, select options, etc.)
29
+ */
30
+ export declare const DynamicFieldValueSchema: z.ZodAny;
31
+ export type DynamicFieldValue = z.infer<typeof DynamicFieldValueSchema>;
32
+ /**
33
+ * Schema for storing dynamic field values captured during appointment booking.
34
+ * Links the captured data to the organization, service, appointment, and customer.
35
+ */
36
+ export declare const AppointmentAdditionalInfoSchema: z.ZodObject<{
37
+ id: z.ZodString;
38
+ createdAt: z.ZodOptional<z.ZodNumber>;
39
+ updatedAt: z.ZodOptional<z.ZodNumber>;
40
+ organizationId: z.ZodString;
41
+ businessServiceId: z.ZodString;
42
+ appointmentId: z.ZodString;
43
+ customerId: z.ZodString;
44
+ data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
45
+ }, z.core.$strip>;
46
+ export type AppointmentAdditionalInfo = z.infer<typeof AppointmentAdditionalInfoSchema>;
47
+ export declare const CreateAppointmentAdditionalInfoSchema: z.ZodObject<{
48
+ data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
49
+ organizationId: z.ZodString;
50
+ businessServiceId: z.ZodString;
51
+ appointmentId: z.ZodString;
52
+ customerId: z.ZodString;
53
+ }, z.core.$strip>;
54
+ export type CreateAppointmentAdditionalInfo = z.infer<typeof CreateAppointmentAdditionalInfoSchema>;
55
+ export declare const UpdateAppointmentAdditionalInfoSchema: z.ZodObject<{
56
+ data: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
57
+ organizationId: z.ZodOptional<z.ZodString>;
58
+ businessServiceId: z.ZodOptional<z.ZodString>;
59
+ appointmentId: z.ZodOptional<z.ZodString>;
60
+ customerId: z.ZodOptional<z.ZodString>;
61
+ id: z.ZodString;
62
+ }, z.core.$strip>;
63
+ export type UpdateAppointmentAdditionalInfo = z.infer<typeof UpdateAppointmentAdditionalInfoSchema>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAppointmentAdditionalInfoSchema = exports.CreateAppointmentAdditionalInfoSchema = exports.AppointmentAdditionalInfoSchema = exports.DynamicFieldValueSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const base_schema_1 = require("../base.schema");
6
+ /**
7
+ * @fileoverview Appointment Additional Info schema for storing dynamic field values.
8
+ * @module business-mgt/appointment-additional-info
9
+ *
10
+ * This schema represents the **Appointment Level** in the dynamic fields hierarchy:
11
+ *
12
+ * ```
13
+ * Organization Level (AppointmentFieldConfigSchema)
14
+ * │
15
+ * ▼ inherits via appointmentFieldConfigId
16
+ * Service Level (ServiceAppointmentFieldConfigSchema)
17
+ * │
18
+ * ▼ stores values
19
+ * Appointment Level (AppointmentAdditionalInfoSchema) ← THIS SCHEMA
20
+ * ```
21
+ *
22
+ * Stores the actual captured field values for a specific appointment instance.
23
+ * The `data` property contains key-value pairs where keys correspond to `fieldKey`
24
+ * values defined in the organization and service-level field configurations.
25
+ *
26
+ * @see AppointmentFieldConfigSchema - Organization-level field definitions
27
+ * @see ServiceAppointmentFieldConfigSchema - Service-level field customization
28
+ */
29
+ /**
30
+ * Schema for dynamic field value types.
31
+ * Accepts any value type to support the various DynamicFieldType values
32
+ * (text, number, boolean, date, select options, etc.)
33
+ */
34
+ exports.DynamicFieldValueSchema = zod_1.z.any();
35
+ /**
36
+ * Schema for storing dynamic field values captured during appointment booking.
37
+ * Links the captured data to the organization, service, appointment, and customer.
38
+ */
39
+ exports.AppointmentAdditionalInfoSchema = base_schema_1.BaseModelSchema.safeExtend({
40
+ organizationId: zod_1.z.string().describe("Reference to the organization that owns this appointment data. Used to link back to the organization-level AppointmentFieldConfigSchema."),
41
+ businessServiceId: zod_1.z.string().describe("Reference to the business service for this appointment. The service's ServiceAppointmentFieldConfigSchema determines which fields were presented to the customer."),
42
+ appointmentId: zod_1.z.string().describe("Reference to the appointment instance these field values belong to. Creates a 1:1 relationship between appointment and its additional info."),
43
+ customerId: zod_1.z.string().describe("Reference to the customer who provided this information. When reuseDetails is enabled, this allows pre-populating fields for returning customers."),
44
+ data: zod_1.z.record(zod_1.z.string(), exports.DynamicFieldValueSchema).default({}).describe("Key-value store of captured field values. Keys correspond to fieldKey from FieldDefinitionSchema. Values are typed according to the field's DynamicFieldType (e.g., string for TEXT, number for NUMBER, boolean for BOOLEAN, array for MULTISELECT)."),
45
+ });
46
+ exports.CreateAppointmentAdditionalInfoSchema = exports.AppointmentAdditionalInfoSchema.omit({
47
+ id: true,
48
+ createdAt: true,
49
+ updatedAt: true,
50
+ });
51
+ exports.UpdateAppointmentAdditionalInfoSchema = exports.CreateAppointmentAdditionalInfoSchema.partial().safeExtend({
52
+ id: zod_1.z.string(),
53
+ });