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,165 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Schema for select/multiselect field options
4
+ */
5
+ export declare const FieldOptionSchema: z.ZodObject<{
6
+ value: z.ZodString;
7
+ label: z.ZodString;
8
+ displayOrder: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ export type FieldOption = z.infer<typeof FieldOptionSchema>;
11
+ /**
12
+ * Validation rules schema for dynamic fields
13
+ */
14
+ export declare const FieldValidationRulesSchema: z.ZodObject<{
15
+ required: z.ZodOptional<z.ZodBoolean>;
16
+ minLength: z.ZodOptional<z.ZodNumber>;
17
+ maxLength: z.ZodOptional<z.ZodNumber>;
18
+ min: z.ZodOptional<z.ZodNumber>;
19
+ max: z.ZodOptional<z.ZodNumber>;
20
+ pattern: z.ZodOptional<z.ZodString>;
21
+ patternMessage: z.ZodOptional<z.ZodString>;
22
+ }, z.core.$strip>;
23
+ export type FieldValidationRules = z.infer<typeof FieldValidationRulesSchema>;
24
+ /**
25
+ * UI hints schema for field rendering
26
+ */
27
+ export declare const FieldUIHintsSchema: z.ZodObject<{
28
+ placeholder: z.ZodOptional<z.ZodString>;
29
+ helpText: z.ZodOptional<z.ZodString>;
30
+ displayOrder: z.ZodOptional<z.ZodNumber>;
31
+ width: z.ZodOptional<z.ZodEnum<{
32
+ full: "full";
33
+ half: "half";
34
+ third: "third";
35
+ }>>;
36
+ }, z.core.$strip>;
37
+ export type FieldUIHints = z.infer<typeof FieldUIHintsSchema>;
38
+ /**
39
+ * Condition operators for conditional field visibility
40
+ */
41
+ export declare const FieldConditionOperators: readonly ["equals", "notEquals", "contains", "isEmpty", "isNotEmpty", "greaterThan", "lessThan"];
42
+ /**
43
+ * Schema for conditional field visibility
44
+ * Show field X only if field Y meets a condition
45
+ */
46
+ export declare const FieldConditionSchema: z.ZodObject<{
47
+ dependsOn: z.ZodString;
48
+ operator: z.ZodEnum<{
49
+ equals: "equals";
50
+ notEquals: "notEquals";
51
+ contains: "contains";
52
+ isEmpty: "isEmpty";
53
+ isNotEmpty: "isNotEmpty";
54
+ greaterThan: "greaterThan";
55
+ lessThan: "lessThan";
56
+ }>;
57
+ value: z.ZodOptional<z.ZodAny>;
58
+ }, z.core.$strip>;
59
+ export type FieldCondition = z.infer<typeof FieldConditionSchema>;
60
+ /**
61
+ * Schema for field grouping/sections
62
+ * Organize fields into logical groups (e.g., "Contact Info", "Preferences")
63
+ */
64
+ export declare const FieldGroupSchema: z.ZodObject<{
65
+ groupKey: z.ZodString;
66
+ label: z.ZodString;
67
+ description: z.ZodOptional<z.ZodString>;
68
+ displayOrder: z.ZodOptional<z.ZodNumber>;
69
+ collapsible: z.ZodOptional<z.ZodBoolean>;
70
+ defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
71
+ }, z.core.$strip>;
72
+ export type FieldGroup = z.infer<typeof FieldGroupSchema>;
73
+ /**
74
+ * Core field definition schema
75
+ * Defines a single dynamic field with its type, validation, and UI configuration
76
+ */
77
+ export declare const FieldDefinitionSchema: z.ZodObject<{
78
+ fieldKey: z.ZodString;
79
+ fieldType: z.ZodEnum<{
80
+ text: import("./field-types").DynamicFieldType.TEXT;
81
+ textarea: import("./field-types").DynamicFieldType.TEXTAREA;
82
+ number: import("./field-types").DynamicFieldType.NUMBER;
83
+ boolean: import("./field-types").DynamicFieldType.BOOLEAN;
84
+ date: import("./field-types").DynamicFieldType.DATE;
85
+ time: import("./field-types").DynamicFieldType.TIME;
86
+ datetime: import("./field-types").DynamicFieldType.DATETIME;
87
+ email: import("./field-types").DynamicFieldType.EMAIL;
88
+ phone: import("./field-types").DynamicFieldType.PHONE;
89
+ select: import("./field-types").DynamicFieldType.SELECT;
90
+ multiselect: import("./field-types").DynamicFieldType.MULTISELECT;
91
+ }>;
92
+ label: z.ZodString;
93
+ description: z.ZodOptional<z.ZodString>;
94
+ validation: z.ZodOptional<z.ZodObject<{
95
+ required: z.ZodOptional<z.ZodBoolean>;
96
+ minLength: z.ZodOptional<z.ZodNumber>;
97
+ maxLength: z.ZodOptional<z.ZodNumber>;
98
+ min: z.ZodOptional<z.ZodNumber>;
99
+ max: z.ZodOptional<z.ZodNumber>;
100
+ pattern: z.ZodOptional<z.ZodString>;
101
+ patternMessage: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strip>>;
103
+ uiHints: z.ZodOptional<z.ZodObject<{
104
+ placeholder: z.ZodOptional<z.ZodString>;
105
+ helpText: z.ZodOptional<z.ZodString>;
106
+ displayOrder: z.ZodOptional<z.ZodNumber>;
107
+ width: z.ZodOptional<z.ZodEnum<{
108
+ full: "full";
109
+ half: "half";
110
+ third: "third";
111
+ }>>;
112
+ }, z.core.$strip>>;
113
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
+ value: z.ZodString;
115
+ label: z.ZodString;
116
+ displayOrder: z.ZodOptional<z.ZodNumber>;
117
+ }, z.core.$strip>>>;
118
+ defaultValue: z.ZodOptional<z.ZodAny>;
119
+ isActive: z.ZodOptional<z.ZodBoolean>;
120
+ condition: z.ZodOptional<z.ZodObject<{
121
+ dependsOn: z.ZodString;
122
+ operator: z.ZodEnum<{
123
+ equals: "equals";
124
+ notEquals: "notEquals";
125
+ contains: "contains";
126
+ isEmpty: "isEmpty";
127
+ isNotEmpty: "isNotEmpty";
128
+ greaterThan: "greaterThan";
129
+ lessThan: "lessThan";
130
+ }>;
131
+ value: z.ZodOptional<z.ZodAny>;
132
+ }, z.core.$strip>>;
133
+ groupKey: z.ZodOptional<z.ZodString>;
134
+ }, z.core.$strip>;
135
+ export type FieldDefinition = z.infer<typeof FieldDefinitionSchema>;
136
+ /**
137
+ * Field override schema for service-level customization
138
+ * Allows overriding specific properties of inherited fields
139
+ */
140
+ export declare const FieldOverrideSchema: z.ZodObject<{
141
+ fieldKey: z.ZodString;
142
+ label: z.ZodOptional<z.ZodString>;
143
+ validation: z.ZodOptional<z.ZodObject<{
144
+ required: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
145
+ minLength: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
146
+ maxLength: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
147
+ min: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
148
+ max: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
149
+ pattern: z.ZodOptional<z.ZodOptional<z.ZodString>>;
150
+ patternMessage: z.ZodOptional<z.ZodOptional<z.ZodString>>;
151
+ }, z.core.$strip>>;
152
+ uiHints: z.ZodOptional<z.ZodObject<{
153
+ placeholder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
154
+ helpText: z.ZodOptional<z.ZodOptional<z.ZodString>>;
155
+ displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
156
+ width: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
157
+ full: "full";
158
+ half: "half";
159
+ third: "third";
160
+ }>>>;
161
+ }, z.core.$strip>>;
162
+ defaultValue: z.ZodOptional<z.ZodAny>;
163
+ isActive: z.ZodOptional<z.ZodBoolean>;
164
+ }, z.core.$strip>;
165
+ export type FieldOverride = z.infer<typeof FieldOverrideSchema>;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldOverrideSchema = exports.FieldDefinitionSchema = exports.FieldGroupSchema = exports.FieldConditionSchema = exports.FieldConditionOperators = exports.FieldUIHintsSchema = exports.FieldValidationRulesSchema = exports.FieldOptionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const field_types_1 = require("./field-types");
6
+ /**
7
+ * Schema for select/multiselect field options
8
+ */
9
+ exports.FieldOptionSchema = zod_1.z.object({
10
+ value: zod_1.z.string(),
11
+ label: zod_1.z.string(),
12
+ displayOrder: zod_1.z.number().int().optional(),
13
+ });
14
+ /**
15
+ * Validation rules schema for dynamic fields
16
+ */
17
+ exports.FieldValidationRulesSchema = zod_1.z.object({
18
+ required: zod_1.z.boolean().optional(),
19
+ minLength: zod_1.z.number().int().positive().optional(),
20
+ maxLength: zod_1.z.number().int().positive().optional(),
21
+ min: zod_1.z.number().optional(),
22
+ max: zod_1.z.number().optional(),
23
+ pattern: zod_1.z.string().optional(),
24
+ patternMessage: zod_1.z.string().optional(),
25
+ });
26
+ /**
27
+ * UI hints schema for field rendering
28
+ */
29
+ exports.FieldUIHintsSchema = zod_1.z.object({
30
+ placeholder: zod_1.z.string().optional(),
31
+ helpText: zod_1.z.string().optional(),
32
+ displayOrder: zod_1.z.number().int().optional(),
33
+ width: zod_1.z.enum(["full", "half", "third"]).optional(),
34
+ });
35
+ /**
36
+ * Condition operators for conditional field visibility
37
+ */
38
+ exports.FieldConditionOperators = [
39
+ "equals",
40
+ "notEquals",
41
+ "contains",
42
+ "isEmpty",
43
+ "isNotEmpty",
44
+ "greaterThan",
45
+ "lessThan",
46
+ ];
47
+ /**
48
+ * Schema for conditional field visibility
49
+ * Show field X only if field Y meets a condition
50
+ */
51
+ exports.FieldConditionSchema = zod_1.z.object({
52
+ dependsOn: zod_1.z.string(),
53
+ operator: zod_1.z.enum(exports.FieldConditionOperators),
54
+ value: zod_1.z.any().optional(),
55
+ });
56
+ /**
57
+ * Schema for field grouping/sections
58
+ * Organize fields into logical groups (e.g., "Contact Info", "Preferences")
59
+ */
60
+ exports.FieldGroupSchema = zod_1.z.object({
61
+ groupKey: zod_1.z.string(),
62
+ label: zod_1.z.string(),
63
+ description: zod_1.z.string().optional(),
64
+ displayOrder: zod_1.z.number().int().optional(),
65
+ collapsible: zod_1.z.boolean().optional(),
66
+ defaultCollapsed: zod_1.z.boolean().optional(),
67
+ });
68
+ /**
69
+ * Core field definition schema
70
+ * Defines a single dynamic field with its type, validation, and UI configuration
71
+ */
72
+ exports.FieldDefinitionSchema = zod_1.z.object({
73
+ fieldKey: zod_1.z.string()
74
+ .regex(/^[a-z][a-z0-9_]*$/, "Field key must be lowercase alphanumeric with underscores, starting with a letter"),
75
+ fieldType: zod_1.z.enum(field_types_1.DynamicFieldTypes),
76
+ label: zod_1.z.string().min(1),
77
+ description: zod_1.z.string().optional(),
78
+ validation: exports.FieldValidationRulesSchema.optional(),
79
+ uiHints: exports.FieldUIHintsSchema.optional(),
80
+ options: zod_1.z.array(exports.FieldOptionSchema).optional(),
81
+ defaultValue: zod_1.z.any().optional(),
82
+ isActive: zod_1.z.boolean().optional(),
83
+ condition: exports.FieldConditionSchema.optional(),
84
+ groupKey: zod_1.z.string().optional(),
85
+ });
86
+ /**
87
+ * Field override schema for service-level customization
88
+ * Allows overriding specific properties of inherited fields
89
+ */
90
+ exports.FieldOverrideSchema = zod_1.z.object({
91
+ fieldKey: zod_1.z.string(),
92
+ label: zod_1.z.string().optional(),
93
+ validation: exports.FieldValidationRulesSchema.partial().optional(),
94
+ uiHints: exports.FieldUIHintsSchema.partial().optional(),
95
+ defaultValue: zod_1.z.any().optional(),
96
+ isActive: zod_1.z.boolean().optional(),
97
+ });
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Dynamic Field Types
3
+ *
4
+ * Defines the supported field types for dynamic form field definitions.
5
+ * Used across appointment and other configurable form schemas.
6
+ */
7
+ export declare enum DynamicFieldType {
8
+ /** Single-line text input */
9
+ TEXT = "text",
10
+ /** Multi-line text input */
11
+ TEXTAREA = "textarea",
12
+ /** Numeric input */
13
+ NUMBER = "number",
14
+ /** Boolean checkbox/toggle */
15
+ BOOLEAN = "boolean",
16
+ /** Date picker (date only) */
17
+ DATE = "date",
18
+ /** Time picker (time only) */
19
+ TIME = "time",
20
+ /** DateTime picker (date and time) */
21
+ DATETIME = "datetime",
22
+ /** Email input with validation */
23
+ EMAIL = "email",
24
+ /** Phone number input */
25
+ PHONE = "phone",
26
+ /** Single selection dropdown */
27
+ SELECT = "select",
28
+ /** Multiple selection input */
29
+ MULTISELECT = "multiselect"
30
+ }
31
+ /** Array of all dynamic field types for Zod enum usage */
32
+ export declare const DynamicFieldTypes: readonly [DynamicFieldType.TEXT, DynamicFieldType.TEXTAREA, DynamicFieldType.NUMBER, DynamicFieldType.BOOLEAN, DynamicFieldType.DATE, DynamicFieldType.TIME, DynamicFieldType.DATETIME, DynamicFieldType.EMAIL, DynamicFieldType.PHONE, DynamicFieldType.SELECT, DynamicFieldType.MULTISELECT];
33
+ /**
34
+ * Agent tool call parameter type definition
35
+ * Maps field types to JSON schema types for LLM tool calls
36
+ */
37
+ export interface AgentToolParamType {
38
+ type: 'string' | 'number' | 'boolean' | 'array';
39
+ format?: string;
40
+ items?: {
41
+ type: string;
42
+ };
43
+ description: string;
44
+ }
45
+ /**
46
+ * Maps DynamicFieldType to agent tool call parameter types
47
+ * Used to generate tool call schemas for LLM agents
48
+ */
49
+ export declare const DynamicFieldTypeToAgentToolParam: Record<DynamicFieldType, AgentToolParamType>;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /**
3
+ * Dynamic Field Types
4
+ *
5
+ * Defines the supported field types for dynamic form field definitions.
6
+ * Used across appointment and other configurable form schemas.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.DynamicFieldTypeToAgentToolParam = exports.DynamicFieldTypes = exports.DynamicFieldType = void 0;
10
+ var DynamicFieldType;
11
+ (function (DynamicFieldType) {
12
+ /** Single-line text input */
13
+ DynamicFieldType["TEXT"] = "text";
14
+ /** Multi-line text input */
15
+ DynamicFieldType["TEXTAREA"] = "textarea";
16
+ /** Numeric input */
17
+ DynamicFieldType["NUMBER"] = "number";
18
+ /** Boolean checkbox/toggle */
19
+ DynamicFieldType["BOOLEAN"] = "boolean";
20
+ /** Date picker (date only) */
21
+ DynamicFieldType["DATE"] = "date";
22
+ /** Time picker (time only) */
23
+ DynamicFieldType["TIME"] = "time";
24
+ /** DateTime picker (date and time) */
25
+ DynamicFieldType["DATETIME"] = "datetime";
26
+ /** Email input with validation */
27
+ DynamicFieldType["EMAIL"] = "email";
28
+ /** Phone number input */
29
+ DynamicFieldType["PHONE"] = "phone";
30
+ /** Single selection dropdown */
31
+ DynamicFieldType["SELECT"] = "select";
32
+ /** Multiple selection input */
33
+ DynamicFieldType["MULTISELECT"] = "multiselect";
34
+ })(DynamicFieldType || (exports.DynamicFieldType = DynamicFieldType = {}));
35
+ /** Array of all dynamic field types for Zod enum usage */
36
+ exports.DynamicFieldTypes = [
37
+ DynamicFieldType.TEXT,
38
+ DynamicFieldType.TEXTAREA,
39
+ DynamicFieldType.NUMBER,
40
+ DynamicFieldType.BOOLEAN,
41
+ DynamicFieldType.DATE,
42
+ DynamicFieldType.TIME,
43
+ DynamicFieldType.DATETIME,
44
+ DynamicFieldType.EMAIL,
45
+ DynamicFieldType.PHONE,
46
+ DynamicFieldType.SELECT,
47
+ DynamicFieldType.MULTISELECT,
48
+ ];
49
+ /**
50
+ * Maps DynamicFieldType to agent tool call parameter types
51
+ * Used to generate tool call schemas for LLM agents
52
+ */
53
+ exports.DynamicFieldTypeToAgentToolParam = {
54
+ [DynamicFieldType.TEXT]: {
55
+ type: 'string',
56
+ description: 'Single-line text value',
57
+ },
58
+ [DynamicFieldType.TEXTAREA]: {
59
+ type: 'string',
60
+ description: 'Multi-line text value',
61
+ },
62
+ [DynamicFieldType.NUMBER]: {
63
+ type: 'number',
64
+ description: 'Numeric value',
65
+ },
66
+ [DynamicFieldType.BOOLEAN]: {
67
+ type: 'boolean',
68
+ description: 'True or false value',
69
+ },
70
+ [DynamicFieldType.DATE]: {
71
+ type: 'string',
72
+ format: 'date',
73
+ description: 'Date in ISO 8601 format (YYYY-MM-DD)',
74
+ },
75
+ [DynamicFieldType.TIME]: {
76
+ type: 'string',
77
+ format: 'time',
78
+ description: 'Time in 24-hour format (HH:MM)',
79
+ },
80
+ [DynamicFieldType.DATETIME]: {
81
+ type: 'string',
82
+ format: 'date-time',
83
+ description: 'Date and time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS)',
84
+ },
85
+ [DynamicFieldType.EMAIL]: {
86
+ type: 'string',
87
+ format: 'email',
88
+ description: 'Valid email address',
89
+ },
90
+ [DynamicFieldType.PHONE]: {
91
+ type: 'string',
92
+ format: 'phone',
93
+ description: 'Phone number with country code',
94
+ },
95
+ [DynamicFieldType.SELECT]: {
96
+ type: 'string',
97
+ description: 'Single selection from available options',
98
+ },
99
+ [DynamicFieldType.MULTISELECT]: {
100
+ type: 'array',
101
+ items: { type: 'string' },
102
+ description: 'Multiple selections from available options',
103
+ },
104
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Dynamic Fields Module
3
+ *
4
+ * Provides reusable schemas for defining dynamic form fields at runtime.
5
+ * Supports field type definitions, validation rules, and UI hints for
6
+ * flexible form configuration across various business entities.
7
+ */
8
+ export * from './field-types';
9
+ export * from './field-definition.schema';
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /**
3
+ * Dynamic Fields Module
4
+ *
5
+ * Provides reusable schemas for defining dynamic form fields at runtime.
6
+ * Supports field type definitions, validation rules, and UI hints for
7
+ * flexible form configuration across various business entities.
8
+ */
9
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ __exportStar(require("./field-types"), exports);
25
+ __exportStar(require("./field-definition.schema"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @fileoverview Central export point for all type definitions.
3
+ * @module type-definitions
4
+ */
5
+ export * from './account-definitions';
6
+ export * from './service-config.definitions';
7
+ export * from './business-definitions';
8
+ export * from './conversation.type.definition';
9
+ export * from './knowledge-definitions';
10
+ export * from './display-order';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /**
3
+ * @fileoverview Central export point for all type definitions.
4
+ * @module type-definitions
5
+ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ __exportStar(require("./account-definitions"), exports);
22
+ __exportStar(require("./service-config.definitions"), exports);
23
+ __exportStar(require("./business-definitions"), exports);
24
+ __exportStar(require("./conversation.type.definition"), exports);
25
+ __exportStar(require("./knowledge-definitions"), exports);
26
+ __exportStar(require("./display-order"), exports);
@@ -0,0 +1,30 @@
1
+ export declare enum KnowledgeBaseProcessingStatus {
2
+ PENDING = "pending",
3
+ PROCESSING = "processing",
4
+ COMPLETED = "completed",
5
+ FAILED = "failed"
6
+ }
7
+ export declare enum KnowledgeTypes {
8
+ DOCUMENT = "document",
9
+ URL = "url",
10
+ BUSINESS_WEBSITE = "business_website",
11
+ CORPUS = "corpus",
12
+ BATCH_DOCUMENT = "batch_document"
13
+ }
14
+ export declare enum StorageTier {
15
+ FIRESTORE = "firestore",
16
+ CLOUD_STORAGE_STANDARD = "cloud_storage_standard",
17
+ CLOUD_STORAGE_COLDLINE = "cloud_storage_coldline"
18
+ }
19
+ export declare enum SupportedDocumentTypes {
20
+ PDF = "application/pdf",
21
+ DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
22
+ TXT = "text/plain",
23
+ MD = "text/markdown",
24
+ RTF = "application/rtf",
25
+ HTML = "text/html",
26
+ WORD = "application/msword",
27
+ CSV = "text/csv",
28
+ XLS = "application/vnd.ms-excel",
29
+ XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
30
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SupportedDocumentTypes = exports.StorageTier = exports.KnowledgeTypes = exports.KnowledgeBaseProcessingStatus = void 0;
4
+ var KnowledgeBaseProcessingStatus;
5
+ (function (KnowledgeBaseProcessingStatus) {
6
+ KnowledgeBaseProcessingStatus["PENDING"] = "pending";
7
+ KnowledgeBaseProcessingStatus["PROCESSING"] = "processing";
8
+ KnowledgeBaseProcessingStatus["COMPLETED"] = "completed";
9
+ KnowledgeBaseProcessingStatus["FAILED"] = "failed";
10
+ })(KnowledgeBaseProcessingStatus || (exports.KnowledgeBaseProcessingStatus = KnowledgeBaseProcessingStatus = {}));
11
+ var KnowledgeTypes;
12
+ (function (KnowledgeTypes) {
13
+ KnowledgeTypes["DOCUMENT"] = "document";
14
+ KnowledgeTypes["URL"] = "url";
15
+ KnowledgeTypes["BUSINESS_WEBSITE"] = "business_website";
16
+ KnowledgeTypes["CORPUS"] = "corpus";
17
+ KnowledgeTypes["BATCH_DOCUMENT"] = "batch_document";
18
+ })(KnowledgeTypes || (exports.KnowledgeTypes = KnowledgeTypes = {}));
19
+ var StorageTier;
20
+ (function (StorageTier) {
21
+ StorageTier["FIRESTORE"] = "firestore";
22
+ StorageTier["CLOUD_STORAGE_STANDARD"] = "cloud_storage_standard";
23
+ StorageTier["CLOUD_STORAGE_COLDLINE"] = "cloud_storage_coldline";
24
+ })(StorageTier || (exports.StorageTier = StorageTier = {}));
25
+ var SupportedDocumentTypes;
26
+ (function (SupportedDocumentTypes) {
27
+ SupportedDocumentTypes["PDF"] = "application/pdf";
28
+ SupportedDocumentTypes["DOCX"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
29
+ SupportedDocumentTypes["TXT"] = "text/plain";
30
+ SupportedDocumentTypes["MD"] = "text/markdown";
31
+ SupportedDocumentTypes["RTF"] = "application/rtf";
32
+ SupportedDocumentTypes["HTML"] = "text/html";
33
+ SupportedDocumentTypes["WORD"] = "application/msword";
34
+ SupportedDocumentTypes["CSV"] = "text/csv";
35
+ SupportedDocumentTypes["XLS"] = "application/vnd.ms-excel";
36
+ SupportedDocumentTypes["XLSX"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
37
+ })(SupportedDocumentTypes || (exports.SupportedDocumentTypes = SupportedDocumentTypes = {}));
@@ -0,0 +1,112 @@
1
+ import { BusinessSupportServices } from "./account-definitions";
2
+ export declare enum DeploymentType {
3
+ CALLS = "calls",
4
+ SMS = "sms",
5
+ WEB = "web",
6
+ MOBILE = "mobile-app",
7
+ WHATSAPP = "whatsapp",
8
+ EMAIL = "email"
9
+ }
10
+ export declare enum DeploymentStatus {
11
+ PENDING = "pending",
12
+ ACTIVE = "active",
13
+ PAUSED = "paused",
14
+ ARCHIVED = "archived"
15
+ }
16
+ export declare enum ProviderType {
17
+ TWILIO = "twilio",
18
+ SIGNALWIRE = "signal-wire",
19
+ TELNYX = "telnyx",
20
+ MESSAGEBIRD = "messagebird",
21
+ SNS = "sns"
22
+ }
23
+ export declare enum EmailProviderType {
24
+ GOOGLE = "google",
25
+ OUTLOOK = "outlook",
26
+ SENDGRID = "sendgrid",
27
+ SES = "ses",
28
+ MAILGUN = "mailgun",
29
+ POSTMARK = "postmark",
30
+ SMTP = "smtp"
31
+ }
32
+ export declare enum PhonePurchaseStatus {
33
+ PENDING = "pending",
34
+ COMPLETED = "completed",
35
+ FAILED = "failed",
36
+ CANCELLED = "cancelled"
37
+ }
38
+ export declare enum PhoneStatus {
39
+ ACTIVE = "ACTIVE",// used in both SMS and Call channels
40
+ INACTIVE = "INACTIVE",// not used
41
+ SMS_ACTIVE = "SMS_ACTIVE",//used in SMS channel
42
+ CALL_ACTIVE = "CALL_ACTIVE"
43
+ }
44
+ export declare enum PhoneNumberType {
45
+ LOCAL = "local",
46
+ TOLL_FREE = "toll-free"
47
+ }
48
+ export declare enum MobilePlatform {
49
+ IOS = "ios",
50
+ ANDROID = "android"
51
+ }
52
+ export declare enum OttCommunicationType {
53
+ TEXT = "text",
54
+ VOICE = "voice",
55
+ UNIFIED = "unified"
56
+ }
57
+ export declare enum DeploymentProvisioningType {
58
+ DIRECT = "direct",
59
+ CHAINED = "chained"
60
+ }
61
+ export declare enum AssistantType {
62
+ PHONE = "phone",
63
+ WEB = "web",
64
+ EMAIL = "email",
65
+ GENERAL = "general"
66
+ }
67
+ export declare enum LLMType {
68
+ STS = "sts",
69
+ TTS = "tts",
70
+ STT = "stt",
71
+ TRANSCRIBE = "transcribe",
72
+ TEXT_PROCESSING = "text",
73
+ MULTI_MODE = "multi_mode"
74
+ }
75
+ export declare enum SupportedProprietor {
76
+ OPENAI = "OpenAI",
77
+ GOOGLE = "Google",
78
+ ANTHROPIC = "Anthropic",
79
+ GROQ = "Groq",
80
+ XAI = "xAI",
81
+ DEEPGRAM = "Deepgram",
82
+ ELEVENLABS = "ElevenLabs",
83
+ DEEPSEEK = "DeepSeek",
84
+ CARTESIA = "Cartesia"
85
+ }
86
+ export declare enum SupportedLLMKit {
87
+ OPEN_AI = "openai-kit",
88
+ GOOGLE = "google-kit",
89
+ ANTHROPIC = "anthropic-kit",
90
+ GROQ = "groq-kit",
91
+ XAI = "xai-kit",
92
+ DEEPGRAM = "deepgram-kit",
93
+ ELEVENLABS = "elevenlabs-kit",
94
+ DEEPSEEK = "deepseek-kit",
95
+ CARTESIA = "cartesia-kit"
96
+ }
97
+ export declare enum LLMRequestType {
98
+ TEXT = "text",
99
+ AUDIO = "audio",
100
+ IMAGE = "image",
101
+ VIDEO = "video",
102
+ MULTIMODAL = "multimodal"
103
+ }
104
+ export declare enum AgentRoleTemplateIdentifier {
105
+ CUSTOMER_SUPPORT_GENERAL = "customer-support-general",
106
+ TECHNICAL_SUPPORT_SPECIALIST = "technical-support-specialist",
107
+ SALES_REPRESENTATIVE = "sales-representative",
108
+ ONBOARDING_SPECIALIST = "onboarding-specialist",
109
+ BILLING_SUPPORT_SPECIALIST = "billing-support-specialist"
110
+ }
111
+ export declare const AgentCapabilities: typeof BusinessSupportServices;
112
+ export type AgentCapabilities = BusinessSupportServices;