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.
- package/LICENSE +21 -0
- package/README.md +174 -0
- package/dist/core/account/index.d.ts +7 -0
- package/dist/core/account/index.js +23 -0
- package/dist/core/account/organization.schema.d.ts +118 -0
- package/dist/core/account/organization.schema.js +91 -0
- package/dist/core/account/project.schema.d.ts +121 -0
- package/dist/core/account/project.schema.js +102 -0
- package/dist/core/account/supported-business-verticals.d.ts +8 -0
- package/dist/core/account/supported-business-verticals.js +23 -0
- package/dist/core/assistant-setups/assistant-setup-result.schema.d.ts +115 -0
- package/dist/core/assistant-setups/assistant-setup-result.schema.js +17 -0
- package/dist/core/assistant-setups/base-assistant-setup.schema.d.ts +61 -0
- package/dist/core/assistant-setups/base-assistant-setup.schema.js +29 -0
- package/dist/core/assistant-setups/index.d.ts +4 -0
- package/dist/core/assistant-setups/index.js +21 -0
- package/dist/core/assistant-setups/phone-assistant-setup.schema.d.ts +63 -0
- package/dist/core/assistant-setups/phone-assistant-setup.schema.js +14 -0
- package/dist/core/assistant-setups/web-assitant-setup.schema.d.ts +56 -0
- package/dist/core/assistant-setups/web-assitant-setup.schema.js +17 -0
- package/dist/core/base.schema.d.ts +34 -0
- package/dist/core/base.schema.js +36 -0
- package/dist/core/business-mgt/appointment-additional-info.schema.d.ts +63 -0
- package/dist/core/business-mgt/appointment-additional-info.schema.js +53 -0
- package/dist/core/business-mgt/appointment-field-config.schema.d.ts +251 -0
- package/dist/core/business-mgt/appointment-field-config.schema.js +49 -0
- package/dist/core/business-mgt/bookings.shared.schema.d.ts +47 -0
- package/dist/core/business-mgt/bookings.shared.schema.js +60 -0
- package/dist/core/business-mgt/business-location.schema.d.ts +327 -0
- package/dist/core/business-mgt/business-location.schema.js +176 -0
- package/dist/core/business-mgt/customer-management/customer-group.schema.d.ts +87 -0
- package/dist/core/business-mgt/customer-management/customer-group.schema.js +53 -0
- package/dist/core/business-mgt/customer-management/customer.schema.d.ts +156 -0
- package/dist/core/business-mgt/customer-management/customer.schema.js +93 -0
- package/dist/core/business-mgt/customer-management/index.d.ts +7 -0
- package/dist/core/business-mgt/customer-management/index.js +23 -0
- package/dist/core/business-mgt/customer-management/shipping-address.schema.d.ts +112 -0
- package/dist/core/business-mgt/customer-management/shipping-address.schema.js +79 -0
- package/dist/core/business-mgt/customer.schema.d.ts +111 -0
- package/dist/core/business-mgt/customer.schema.js +73 -0
- package/dist/core/business-mgt/discount-rule.schema.d.ts +183 -0
- package/dist/core/business-mgt/discount-rule.schema.js +108 -0
- package/dist/core/business-mgt/index.d.ts +16 -0
- package/dist/core/business-mgt/index.js +38 -0
- package/dist/core/business-mgt/menu-config.schema.d.ts +165 -0
- package/dist/core/business-mgt/menu-config.schema.js +86 -0
- package/dist/core/business-mgt/menu-management/index.d.ts +11 -0
- package/dist/core/business-mgt/menu-management/index.js +27 -0
- package/dist/core/business-mgt/menu-management/menu-catalog.schema.d.ts +386 -0
- package/dist/core/business-mgt/menu-management/menu-catalog.schema.js +58 -0
- package/dist/core/business-mgt/menu-management/menu-config.schema.d.ts +301 -0
- package/dist/core/business-mgt/menu-management/menu-config.schema.js +169 -0
- package/dist/core/business-mgt/menu-management/menu-item-variant.schema.d.ts +143 -0
- package/dist/core/business-mgt/menu-management/menu-item-variant.schema.js +86 -0
- package/dist/core/business-mgt/menu-management/menu-pricing-rule.schema.d.ts +239 -0
- package/dist/core/business-mgt/menu-management/menu-pricing-rule.schema.js +117 -0
- package/dist/core/business-mgt/menu-management/menu-set.schema.d.ts +420 -0
- package/dist/core/business-mgt/menu-management/menu-set.schema.js +283 -0
- package/dist/core/business-mgt/menu-management/menu.order.schema.d.ts +654 -0
- package/dist/core/business-mgt/menu-management/menu.order.schema.js +204 -0
- package/dist/core/business-mgt/menu-management/modifier.schema.d.ts +585 -0
- package/dist/core/business-mgt/menu-management/modifier.schema.js +341 -0
- package/dist/core/business-mgt/menu.order.schema.d.ts +335 -0
- package/dist/core/business-mgt/menu.order.schema.js +149 -0
- package/dist/core/business-mgt/order.schema.d.ts +222 -0
- package/dist/core/business-mgt/order.schema.js +205 -0
- package/dist/core/business-mgt/pricing-rule.shared.schema.d.ts +56 -0
- package/dist/core/business-mgt/pricing-rule.shared.schema.js +68 -0
- package/dist/core/business-mgt/product-config.schema.d.ts +177 -0
- package/dist/core/business-mgt/product-config.schema.js +106 -0
- package/dist/core/business-mgt/product-management/index.d.ts +12 -0
- package/dist/core/business-mgt/product-management/index.js +28 -0
- package/dist/core/business-mgt/product-management/product-axis-binding.schema.d.ts +54 -0
- package/dist/core/business-mgt/product-management/product-axis-binding.schema.js +54 -0
- package/dist/core/business-mgt/product-management/product-config.schema.d.ts +1042 -0
- package/dist/core/business-mgt/product-management/product-config.schema.js +392 -0
- package/dist/core/business-mgt/product-management/product-display.schema.d.ts +548 -0
- package/dist/core/business-mgt/product-management/product-display.schema.js +80 -0
- package/dist/core/business-mgt/product-management/product-order.schema.d.ts +493 -0
- package/dist/core/business-mgt/product-management/product-order.schema.js +158 -0
- package/dist/core/business-mgt/product-management/product-pricing-rule.schema.d.ts +167 -0
- package/dist/core/business-mgt/product-management/product-pricing-rule.schema.js +68 -0
- package/dist/core/business-mgt/product-management/product-set.schema.d.ts +488 -0
- package/dist/core/business-mgt/product-management/product-set.schema.js +273 -0
- package/dist/core/business-mgt/product-management/product-variant-axis.schema.d.ts +156 -0
- package/dist/core/business-mgt/product-management/product-variant-axis.schema.js +98 -0
- package/dist/core/business-mgt/product-management/product-variant.schema.d.ts +219 -0
- package/dist/core/business-mgt/product-management/product-variant.schema.js +130 -0
- package/dist/core/business-mgt/product-order.schema.d.ts +326 -0
- package/dist/core/business-mgt/product-order.schema.js +153 -0
- package/dist/core/business-mgt/property-config.schema.d.ts +621 -0
- package/dist/core/business-mgt/property-config.schema.js +224 -0
- package/dist/core/business-mgt/property-inquiry.schema.d.ts +222 -0
- package/dist/core/business-mgt/property-inquiry.schema.js +112 -0
- package/dist/core/business-mgt/property-management/index.d.ts +6 -0
- package/dist/core/business-mgt/property-management/index.js +22 -0
- package/dist/core/business-mgt/property-management/property-config.schema.d.ts +1306 -0
- package/dist/core/business-mgt/property-management/property-config.schema.js +367 -0
- package/dist/core/business-mgt/property-management/property-inquiry.schema.d.ts +254 -0
- package/dist/core/business-mgt/property-management/property-inquiry.schema.js +131 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/index.d.ts +3 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/index.js +19 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-rental-assignment.schema.d.ts +139 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-rental-assignment.schema.js +90 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-room-assignment.schema.d.ts +104 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-room-assignment.schema.js +70 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-table-assignment.schema.d.ts +104 -0
- package/dist/core/business-mgt/reservation-mgt/assignment/reservation-table-assignment.schema.js +72 -0
- package/dist/core/business-mgt/reservation-mgt/index.d.ts +14 -0
- package/dist/core/business-mgt/reservation-mgt/index.js +31 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-floor-plan-definition.schema.d.ts +180 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-floor-plan-definition.schema.js +75 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-maintenance-block.schema.d.ts +91 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-maintenance-block.schema.js +57 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-rental.schema.d.ts +334 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-rental.schema.js +179 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-room.schema.d.ts +195 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-room.schema.js +106 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-section.schema.d.ts +402 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-section.schema.js +198 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-settings.schema.d.ts +229 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-settings.schema.js +127 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-slot-query.schema.d.ts +382 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-slot-query.schema.js +322 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-table-layout.schema.d.ts +123 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-table-layout.schema.js +83 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-table.schema.d.ts +167 -0
- package/dist/core/business-mgt/reservation-mgt/reservation-table.schema.js +84 -0
- package/dist/core/business-mgt/reservation-mgt/reservation.schema.d.ts +0 -0
- package/dist/core/business-mgt/reservation-mgt/reservation.schema.js +153 -0
- package/dist/core/business-mgt/reservation-mgt/resource/index.d.ts +4 -0
- package/dist/core/business-mgt/reservation-mgt/resource/index.js +20 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-category.schema.d.ts +157 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-category.schema.js +76 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-instance.schema.d.ts +137 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource-instance.schema.js +94 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource.schema.d.ts +713 -0
- package/dist/core/business-mgt/reservation-mgt/resource/reservation-resource.schema.js +363 -0
- package/dist/core/business-mgt/reservation-mgt/resource/resource-versioning.schema.d.ts +151 -0
- package/dist/core/business-mgt/reservation-mgt/resource/resource-versioning.schema.js +147 -0
- package/dist/core/business-mgt/reservation-resource.schema.d.ts +154 -0
- package/dist/core/business-mgt/reservation-resource.schema.js +100 -0
- package/dist/core/business-mgt/reservation.schema.d.ts +119 -0
- package/dist/core/business-mgt/reservation.schema.js +89 -0
- package/dist/core/business-mgt/service-appointment.schema.d.ts +105 -0
- package/dist/core/business-mgt/service-appointment.schema.js +69 -0
- package/dist/core/business-mgt/service-config.schema.d.ts +453 -0
- package/dist/core/business-mgt/service-config.schema.js +102 -0
- package/dist/core/business-mgt/service-management/appointment-additional-info.schema.d.ts +110 -0
- package/dist/core/business-mgt/service-management/appointment-additional-info.schema.js +78 -0
- package/dist/core/business-mgt/service-management/appointment-field-config.schema.d.ts +304 -0
- package/dist/core/business-mgt/service-management/appointment-field-config.schema.js +75 -0
- package/dist/core/business-mgt/service-management/business-service-config.schema.d.ts +1226 -0
- package/dist/core/business-mgt/service-management/business-service-config.schema.js +317 -0
- package/dist/core/business-mgt/service-management/index.d.ts +13 -0
- package/dist/core/business-mgt/service-management/index.js +29 -0
- package/dist/core/business-mgt/service-management/service-appointment.schema.d.ts +531 -0
- package/dist/core/business-mgt/service-management/service-appointment.schema.js +116 -0
- package/dist/core/business-mgt/service-management/service-person.schema.d.ts +122 -0
- package/dist/core/business-mgt/service-management/service-person.schema.js +66 -0
- package/dist/core/business-mgt/service-management/service-pricing-rule.schema.d.ts +221 -0
- package/dist/core/business-mgt/service-management/service-pricing-rule.schema.js +118 -0
- package/dist/core/business-mgt/service-management/service-provider.schema.d.ts +90 -0
- package/dist/core/business-mgt/service-management/service-provider.schema.js +54 -0
- package/dist/core/business-mgt/service-management/service-slot-query.schema.d.ts +90 -0
- package/dist/core/business-mgt/service-management/service-slot-query.schema.js +113 -0
- package/dist/core/business-mgt/service-management/service-time-off.schema.d.ts +121 -0
- package/dist/core/business-mgt/service-management/service-time-off.schema.js +95 -0
- package/dist/core/business-mgt/service-person.schema.d.ts +43 -0
- package/dist/core/business-mgt/service-person.schema.js +38 -0
- package/dist/core/business-mgt/tax-rule.schema.d.ts +161 -0
- package/dist/core/business-mgt/tax-rule.schema.js +90 -0
- package/dist/core/conversation/conversation-config.schema.d.ts +644 -0
- package/dist/core/conversation/conversation-config.schema.js +351 -0
- package/dist/core/conversation/conversation-message.schema.d.ts +307 -0
- package/dist/core/conversation/conversation-message.schema.js +275 -0
- package/dist/core/conversation/index.d.ts +12 -0
- package/dist/core/conversation/index.js +28 -0
- package/dist/core/conversation/outbound-call.schema.d.ts +209 -0
- package/dist/core/conversation/outbound-call.schema.js +116 -0
- package/dist/core/conversation/outbound-email.schema.d.ts +338 -0
- package/dist/core/conversation/outbound-email.schema.js +150 -0
- package/dist/core/conversation/outbound-sms.schema.d.ts +163 -0
- package/dist/core/conversation/outbound-sms.schema.js +85 -0
- package/dist/core/conversation/outbound-template.schema.d.ts +375 -0
- package/dist/core/conversation/outbound-template.schema.js +160 -0
- package/dist/core/conversation/translation-config.schema.d.ts +92 -0
- package/dist/core/conversation/translation-config.schema.js +88 -0
- package/dist/core/conversation/translation-conversation.schema.d.ts +469 -0
- package/dist/core/conversation/translation-conversation.schema.js +175 -0
- package/dist/core/index.d.ts +12 -0
- package/dist/core/index.js +30 -0
- package/dist/core/service-configuration/agent-config.schema.d.ts +236 -0
- package/dist/core/service-configuration/agent-config.schema.js +152 -0
- package/dist/core/service-configuration/base-agent-setup.d.ts +147 -0
- package/dist/core/service-configuration/base-agent-setup.js +123 -0
- package/dist/core/service-configuration/call-transfer-config.schema.d.ts +60 -0
- package/dist/core/service-configuration/call-transfer-config.schema.js +53 -0
- package/dist/core/service-configuration/deployment-config.schema.d.ts +522 -0
- package/dist/core/service-configuration/deployment-config.schema.js +271 -0
- package/dist/core/service-configuration/dynamic_setup/base-agent-setup.d.ts +130 -0
- package/dist/core/service-configuration/dynamic_setup/base-agent-setup.js +110 -0
- package/dist/core/service-configuration/dynamic_setup/index.d.ts +10 -0
- package/dist/core/service-configuration/dynamic_setup/index.js +26 -0
- package/dist/core/service-configuration/dynamic_setup/phone-agent-setup.d.ts +111 -0
- package/dist/core/service-configuration/dynamic_setup/phone-agent-setup.js +56 -0
- package/dist/core/service-configuration/dynamic_setup/web-agent-setup.d.ts +113 -0
- package/dist/core/service-configuration/dynamic_setup/web-agent-setup.js +55 -0
- package/dist/core/service-configuration/index.d.ts +17 -0
- package/dist/core/service-configuration/index.js +33 -0
- package/dist/core/service-configuration/instruction-config.schema.d.ts +183 -0
- package/dist/core/service-configuration/instruction-config.schema.js +139 -0
- package/dist/core/service-configuration/interaction-channels.schema.d.ts +469 -0
- package/dist/core/service-configuration/interaction-channels.schema.js +390 -0
- package/dist/core/service-configuration/knowledge.schema.d.ts +107 -0
- package/dist/core/service-configuration/knowledge.schema.js +106 -0
- package/dist/core/service-configuration/phone-config.schema.d.ts +206 -0
- package/dist/core/service-configuration/phone-config.schema.js +121 -0
- package/dist/core/service-configuration/phone-number.schema.d.ts +236 -0
- package/dist/core/service-configuration/phone-number.schema.js +211 -0
- package/dist/core/service-configuration/provisioning-config.d.ts +429 -0
- package/dist/core/service-configuration/provisioning-config.js +307 -0
- package/dist/core/service-configuration/support-llm.d.ts +95 -0
- package/dist/core/service-configuration/support-llm.js +76 -0
- package/dist/core/service-configuration/voice-language.schema.d.ts +200 -0
- package/dist/core/service-configuration/voice-language.schema.js +166 -0
- package/dist/core/type-definitions/account-definitions.d.ts +82 -0
- package/dist/core/type-definitions/account-definitions.js +88 -0
- package/dist/core/type-definitions/business-definitions.d.ts +394 -0
- package/dist/core/type-definitions/business-definitions.js +447 -0
- package/dist/core/type-definitions/conversation.type.definition.d.ts +223 -0
- package/dist/core/type-definitions/conversation.type.definition.js +236 -0
- package/dist/core/type-definitions/display-order.d.ts +154 -0
- package/dist/core/type-definitions/display-order.js +154 -0
- package/dist/core/type-definitions/dynamic-fields/field-definition.schema.d.ts +165 -0
- package/dist/core/type-definitions/dynamic-fields/field-definition.schema.js +97 -0
- package/dist/core/type-definitions/dynamic-fields/field-types.d.ts +49 -0
- package/dist/core/type-definitions/dynamic-fields/field-types.js +104 -0
- package/dist/core/type-definitions/dynamic-fields/index.d.ts +9 -0
- package/dist/core/type-definitions/dynamic-fields/index.js +25 -0
- package/dist/core/type-definitions/index.d.ts +10 -0
- package/dist/core/type-definitions/index.js +26 -0
- package/dist/core/type-definitions/knowledge-definitions.d.ts +30 -0
- package/dist/core/type-definitions/knowledge-definitions.js +37 -0
- package/dist/core/type-definitions/service-config.definitions.d.ts +112 -0
- package/dist/core/type-definitions/service-config.definitions.js +135 -0
- package/dist/core/validators/channel-validation.d.ts +19 -0
- package/dist/core/validators/channel-validation.js +40 -0
- package/dist/core/validators/index.d.ts +5 -0
- package/dist/core/validators/index.js +21 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +24 -0
- package/dist/request/index.d.ts +5 -0
- package/dist/request/index.js +21 -0
- package/dist/request/models/index.d.ts +6 -0
- package/dist/request/models/index.js +22 -0
- package/dist/request/models/paginated-quest.schema.d.ts +33 -0
- package/dist/request/models/paginated-quest.schema.js +35 -0
- package/dist/request/models/paginated-result.schema.d.ts +124 -0
- package/dist/request/models/paginated-result.schema.js +94 -0
- package/package.json +43 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Voice and language configuration schema definitions.
|
|
4
|
+
*
|
|
5
|
+
* Voice and language configurations define the supported voices and languages for text-to-speech
|
|
6
|
+
* synthesis and speech-to-text recognition. These configurations are referenced by support models
|
|
7
|
+
* and provisioning chains for voice-based interactions.
|
|
8
|
+
*
|
|
9
|
+
* @module service-configuration/voice-language
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Enum schema for voice gender classification.
|
|
13
|
+
*
|
|
14
|
+
* Categorizes synthetic voices by gender characteristics for user preference and selection.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* const gender: VoiceGender = 'female';
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare const VoiceGender: z.ZodEnum<{
|
|
22
|
+
neutral: "neutral";
|
|
23
|
+
male: "male";
|
|
24
|
+
female: "female";
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Type definition for voice gender.
|
|
28
|
+
*/
|
|
29
|
+
export type VoiceGender = z.infer<typeof VoiceGender>;
|
|
30
|
+
/**
|
|
31
|
+
* Zod schema for voice configuration.
|
|
32
|
+
*
|
|
33
|
+
* Represents a synthetic voice option available for text-to-speech (TTS) synthesis. Voices are
|
|
34
|
+
* associated with TTS models in the Wiil support registry and selected in provisioning chains
|
|
35
|
+
* for voice-based deployments.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* **Architecture Context:**
|
|
39
|
+
* - **Used By**: WiilSupportModel (supportedVoices array for TTS models)
|
|
40
|
+
* - **Referenced In**: TtsModelConfig (voiceId selection) and ProvisioningConfigChain
|
|
41
|
+
* - **Purpose**: Defines available voice options for agent speech synthesis
|
|
42
|
+
*
|
|
43
|
+
* **Voice Characteristics:**
|
|
44
|
+
* - **Identity**: Unique ID and human-readable name
|
|
45
|
+
* - **Gender**: Male, female, or neutral classification
|
|
46
|
+
* - **Language**: Optimal language for the voice
|
|
47
|
+
* - **Default**: Flag for platform default selection
|
|
48
|
+
*
|
|
49
|
+
* @typedef {Object} VoiceProperties
|
|
50
|
+
* @property {string} voiceId - Unique identifier for the voice used in configurations (e.g., 'adam', 'rachel', 'en-us-standard-a')
|
|
51
|
+
* @property {string} name - Human-readable name of the voice for display in UI (e.g., 'Adam', 'Rachel', 'Google Standard A')
|
|
52
|
+
* @property {string} description - Description of the voice characteristics including tone, accent, and use cases (e.g., 'Deep, authoritative male voice', 'Warm, friendly female voice')
|
|
53
|
+
* @property {VoiceGender} gender - Gender classification of the voice (male, female, or neutral) for user preference filtering
|
|
54
|
+
* @property {string | null} [language] - Language code this voice is optimized for (e.g., 'en-US', 'es-ES', 'fr-FR'), null if multi-language
|
|
55
|
+
* @property {boolean} isDefault - Whether this is the default voice for its language or model (default: false)
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const voice: Voice = {
|
|
60
|
+
* voiceId: 'adam',
|
|
61
|
+
* name: 'Adam',
|
|
62
|
+
* description: 'Deep, authoritative male voice',
|
|
63
|
+
* gender: 'male',
|
|
64
|
+
* language: 'en-US',
|
|
65
|
+
* isDefault: true
|
|
66
|
+
* };
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
declare const VoiceSchema: z.ZodObject<{
|
|
70
|
+
voiceId: z.ZodString;
|
|
71
|
+
name: z.ZodString;
|
|
72
|
+
description: z.ZodString;
|
|
73
|
+
gender: z.ZodEnum<{
|
|
74
|
+
neutral: "neutral";
|
|
75
|
+
male: "male";
|
|
76
|
+
female: "female";
|
|
77
|
+
}>;
|
|
78
|
+
language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
79
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
/**
|
|
82
|
+
* Type definition for voice configuration.
|
|
83
|
+
*/
|
|
84
|
+
export type Voice = z.infer<typeof VoiceSchema>;
|
|
85
|
+
/**
|
|
86
|
+
* Zod schema for language configuration.
|
|
87
|
+
*
|
|
88
|
+
* Represents a language supported by the platform for speech processing (STT/TTS). Languages are
|
|
89
|
+
* associated with models in the Wiil support registry and selected in provisioning chains
|
|
90
|
+
* for voice-based and text-based interactions.
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
* **Architecture Context:**
|
|
94
|
+
* - **Used By**: WiilSupportModel (supportLanguages array)
|
|
95
|
+
* - **Referenced In**: SttModelConfig and TtsModelConfig (defaultLanguage selection)
|
|
96
|
+
* - **Purpose**: Defines supported languages for speech recognition and synthesis
|
|
97
|
+
*
|
|
98
|
+
* **Language Support Levels:**
|
|
99
|
+
* - **Production**: Fully supported, tested languages (isExperimental: false)
|
|
100
|
+
* - **Experimental**: Beta or limited support languages (isExperimental: true)
|
|
101
|
+
* - **Default**: Platform default for automatic selection (isDefault: true)
|
|
102
|
+
*
|
|
103
|
+
* @typedef {Object} LanguageProperties
|
|
104
|
+
* @property {string} languageId - Unique identifier for the language (e.g., 'en-us', 'es-es', 'fr-fr')
|
|
105
|
+
* @property {string} name - Human-readable name of the language for display (e.g., 'English (United States)', 'Spanish (Spain)')
|
|
106
|
+
* @property {string} code - Standard language code in ISO 639-1 format with optional region (e.g., 'en-US', 'es-ES', 'fr-FR')
|
|
107
|
+
* @property {boolean} [isDefault=false] - Whether this is the default language for the platform or model, used for automatic language selection
|
|
108
|
+
* @property {boolean} [isExperimental=false] - Whether this language is in experimental/beta support with potentially limited accuracy or features
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```typescript
|
|
112
|
+
* const language: Language = {
|
|
113
|
+
* languageId: 'en-us',
|
|
114
|
+
* name: 'English (United States)',
|
|
115
|
+
* code: 'en-US',
|
|
116
|
+
* isDefault: true,
|
|
117
|
+
* isExperimental: false
|
|
118
|
+
* };
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
export declare const LanguageSchema: z.ZodObject<{
|
|
122
|
+
languageId: z.ZodString;
|
|
123
|
+
name: z.ZodString;
|
|
124
|
+
code: z.ZodString;
|
|
125
|
+
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
126
|
+
isExperimental: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
/**
|
|
129
|
+
* Type definition for language configuration.
|
|
130
|
+
*/
|
|
131
|
+
export type Language = z.infer<typeof LanguageSchema>;
|
|
132
|
+
/**
|
|
133
|
+
* Zod schema for an array of supported voices.
|
|
134
|
+
*
|
|
135
|
+
* Requires at least one voice to be provided.
|
|
136
|
+
*/
|
|
137
|
+
declare const SupportedVoicesSchema: z.ZodArray<z.ZodObject<{
|
|
138
|
+
voiceId: z.ZodString;
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
description: z.ZodString;
|
|
141
|
+
gender: z.ZodEnum<{
|
|
142
|
+
neutral: "neutral";
|
|
143
|
+
male: "male";
|
|
144
|
+
female: "female";
|
|
145
|
+
}>;
|
|
146
|
+
language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
147
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
/**
|
|
150
|
+
* Type definition for supported voices array.
|
|
151
|
+
*/
|
|
152
|
+
export type SupportedVoices = z.infer<typeof SupportedVoicesSchema>;
|
|
153
|
+
/**
|
|
154
|
+
* Zod schema for an array of supported languages.
|
|
155
|
+
*
|
|
156
|
+
* Requires at least one language to be provided.
|
|
157
|
+
*/
|
|
158
|
+
export declare const SupportedLanguagesSchema: z.ZodArray<z.ZodObject<{
|
|
159
|
+
languageId: z.ZodString;
|
|
160
|
+
name: z.ZodString;
|
|
161
|
+
code: z.ZodString;
|
|
162
|
+
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
163
|
+
isExperimental: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
164
|
+
}, z.core.$strip>>;
|
|
165
|
+
/**
|
|
166
|
+
* Type definition for supported languages array.
|
|
167
|
+
*/
|
|
168
|
+
export type SupportedLanguages = z.infer<typeof SupportedLanguagesSchema>;
|
|
169
|
+
/**
|
|
170
|
+
* Validation function for supported voices.
|
|
171
|
+
*
|
|
172
|
+
* Parses and validates an array of voices, throwing an error if validation fails.
|
|
173
|
+
*
|
|
174
|
+
* @param voices - Unknown input to validate as supported voices
|
|
175
|
+
* @returns Validated array of voices
|
|
176
|
+
* @throws {ZodError} If validation fails
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* ```typescript
|
|
180
|
+
* const voices = validateSupportedVoices([
|
|
181
|
+
* { voiceId: 'adam', name: 'Adam', description: 'Male voice', gender: 'male', isDefault: true }
|
|
182
|
+
* ]);
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
export declare const validateSupportedVoices: (voices: unknown) => SupportedVoices;
|
|
186
|
+
/**
|
|
187
|
+
* Type guard function to check if an object is a valid Voice.
|
|
188
|
+
*
|
|
189
|
+
* @param voice - Unknown input to check
|
|
190
|
+
* @returns True if the input is a valid Voice, false otherwise
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```typescript
|
|
194
|
+
* if (isValidVoice(data)) {
|
|
195
|
+
* console.log(data.voiceId); // TypeScript knows data is a Voice
|
|
196
|
+
* }
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
export declare const isValidVoice: (voice: unknown) => voice is Voice;
|
|
200
|
+
export { VoiceSchema, VoiceGender, SupportedVoicesSchema };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SupportedVoicesSchema = exports.VoiceGender = exports.VoiceSchema = exports.isValidVoice = exports.validateSupportedVoices = exports.SupportedLanguagesSchema = exports.LanguageSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* @fileoverview Voice and language configuration schema definitions.
|
|
7
|
+
*
|
|
8
|
+
* Voice and language configurations define the supported voices and languages for text-to-speech
|
|
9
|
+
* synthesis and speech-to-text recognition. These configurations are referenced by support models
|
|
10
|
+
* and provisioning chains for voice-based interactions.
|
|
11
|
+
*
|
|
12
|
+
* @module service-configuration/voice-language
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Enum schema for voice gender classification.
|
|
16
|
+
*
|
|
17
|
+
* Categorizes synthetic voices by gender characteristics for user preference and selection.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const gender: VoiceGender = 'female';
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
const VoiceGender = zod_1.z.enum(['male', 'female', 'neutral']);
|
|
25
|
+
exports.VoiceGender = VoiceGender;
|
|
26
|
+
/**
|
|
27
|
+
* Zod schema for voice configuration.
|
|
28
|
+
*
|
|
29
|
+
* Represents a synthetic voice option available for text-to-speech (TTS) synthesis. Voices are
|
|
30
|
+
* associated with TTS models in the Wiil support registry and selected in provisioning chains
|
|
31
|
+
* for voice-based deployments.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* **Architecture Context:**
|
|
35
|
+
* - **Used By**: WiilSupportModel (supportedVoices array for TTS models)
|
|
36
|
+
* - **Referenced In**: TtsModelConfig (voiceId selection) and ProvisioningConfigChain
|
|
37
|
+
* - **Purpose**: Defines available voice options for agent speech synthesis
|
|
38
|
+
*
|
|
39
|
+
* **Voice Characteristics:**
|
|
40
|
+
* - **Identity**: Unique ID and human-readable name
|
|
41
|
+
* - **Gender**: Male, female, or neutral classification
|
|
42
|
+
* - **Language**: Optimal language for the voice
|
|
43
|
+
* - **Default**: Flag for platform default selection
|
|
44
|
+
*
|
|
45
|
+
* @typedef {Object} VoiceProperties
|
|
46
|
+
* @property {string} voiceId - Unique identifier for the voice used in configurations (e.g., 'adam', 'rachel', 'en-us-standard-a')
|
|
47
|
+
* @property {string} name - Human-readable name of the voice for display in UI (e.g., 'Adam', 'Rachel', 'Google Standard A')
|
|
48
|
+
* @property {string} description - Description of the voice characteristics including tone, accent, and use cases (e.g., 'Deep, authoritative male voice', 'Warm, friendly female voice')
|
|
49
|
+
* @property {VoiceGender} gender - Gender classification of the voice (male, female, or neutral) for user preference filtering
|
|
50
|
+
* @property {string | null} [language] - Language code this voice is optimized for (e.g., 'en-US', 'es-ES', 'fr-FR'), null if multi-language
|
|
51
|
+
* @property {boolean} isDefault - Whether this is the default voice for its language or model (default: false)
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* const voice: Voice = {
|
|
56
|
+
* voiceId: 'adam',
|
|
57
|
+
* name: 'Adam',
|
|
58
|
+
* description: 'Deep, authoritative male voice',
|
|
59
|
+
* gender: 'male',
|
|
60
|
+
* language: 'en-US',
|
|
61
|
+
* isDefault: true
|
|
62
|
+
* };
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
const VoiceSchema = zod_1.z.object({
|
|
66
|
+
voiceId: zod_1.z.string().min(1, 'Voice ID is required').describe("Unique identifier for the voice used in TTS configurations (e.g., 'adam', 'rachel', 'en-us-neural-female')"),
|
|
67
|
+
name: zod_1.z.string().min(1, 'Voice name is required').describe("Human-readable name of the voice displayed in user interfaces (e.g., 'Adam', 'Rachel', 'Google Neural Female')"),
|
|
68
|
+
description: zod_1.z.string().min(1, 'Voice description is required').describe("Description of the voice characteristics including tone, accent, pitch, and recommended use cases (e.g., 'Deep, authoritative male voice suitable for professional announcements')"),
|
|
69
|
+
gender: VoiceGender.describe("Gender classification of the voice (male, female, or neutral) used for filtering and user preference matching"),
|
|
70
|
+
language: zod_1.z.string().optional().nullable().describe("Language code this voice is optimized for in ISO 639-1 format with optional region (e.g., 'en-US', 'es-ES', 'fr-FR'), null if the voice supports multiple languages"),
|
|
71
|
+
isDefault: zod_1.z.boolean().default(false).describe("Whether this is the default voice selection for its language or TTS model, used for automatic voice assignment"),
|
|
72
|
+
});
|
|
73
|
+
exports.VoiceSchema = VoiceSchema;
|
|
74
|
+
/**
|
|
75
|
+
* Zod schema for language configuration.
|
|
76
|
+
*
|
|
77
|
+
* Represents a language supported by the platform for speech processing (STT/TTS). Languages are
|
|
78
|
+
* associated with models in the Wiil support registry and selected in provisioning chains
|
|
79
|
+
* for voice-based and text-based interactions.
|
|
80
|
+
*
|
|
81
|
+
* @remarks
|
|
82
|
+
* **Architecture Context:**
|
|
83
|
+
* - **Used By**: WiilSupportModel (supportLanguages array)
|
|
84
|
+
* - **Referenced In**: SttModelConfig and TtsModelConfig (defaultLanguage selection)
|
|
85
|
+
* - **Purpose**: Defines supported languages for speech recognition and synthesis
|
|
86
|
+
*
|
|
87
|
+
* **Language Support Levels:**
|
|
88
|
+
* - **Production**: Fully supported, tested languages (isExperimental: false)
|
|
89
|
+
* - **Experimental**: Beta or limited support languages (isExperimental: true)
|
|
90
|
+
* - **Default**: Platform default for automatic selection (isDefault: true)
|
|
91
|
+
*
|
|
92
|
+
* @typedef {Object} LanguageProperties
|
|
93
|
+
* @property {string} languageId - Unique identifier for the language (e.g., 'en-us', 'es-es', 'fr-fr')
|
|
94
|
+
* @property {string} name - Human-readable name of the language for display (e.g., 'English (United States)', 'Spanish (Spain)')
|
|
95
|
+
* @property {string} code - Standard language code in ISO 639-1 format with optional region (e.g., 'en-US', 'es-ES', 'fr-FR')
|
|
96
|
+
* @property {boolean} [isDefault=false] - Whether this is the default language for the platform or model, used for automatic language selection
|
|
97
|
+
* @property {boolean} [isExperimental=false] - Whether this language is in experimental/beta support with potentially limited accuracy or features
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```typescript
|
|
101
|
+
* const language: Language = {
|
|
102
|
+
* languageId: 'en-us',
|
|
103
|
+
* name: 'English (United States)',
|
|
104
|
+
* code: 'en-US',
|
|
105
|
+
* isDefault: true,
|
|
106
|
+
* isExperimental: false
|
|
107
|
+
* };
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
exports.LanguageSchema = zod_1.z.object({
|
|
111
|
+
languageId: zod_1.z.string().min(1, 'Language ID is required').describe("Unique identifier for the language, typically lowercase with region (e.g., 'en-us', 'es-mx', 'fr-ca')"),
|
|
112
|
+
name: zod_1.z.string().min(1, 'Language name is required').describe("Human-readable name of the language with region specification for user interfaces (e.g., 'English (United States)', 'Spanish (Mexico)', 'French (Canada)')"),
|
|
113
|
+
code: zod_1.z.string().describe("Standard language code in ISO 639-1 format with optional ISO 3166-1 region code (e.g., 'en-US', 'es-ES', 'zh-CN'), used for API requests and language detection"),
|
|
114
|
+
isDefault: zod_1.z.boolean().optional().default(false).describe("Whether this is the default language for the platform or model, used when no language is explicitly specified by the user"),
|
|
115
|
+
isExperimental: zod_1.z.boolean().optional().default(false).describe("Whether this language is in experimental or beta support status, potentially with limited accuracy, features, or voice options"),
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* Zod schema for an array of supported voices.
|
|
119
|
+
*
|
|
120
|
+
* Requires at least one voice to be provided.
|
|
121
|
+
*/
|
|
122
|
+
const SupportedVoicesSchema = zod_1.z.array(VoiceSchema).min(1, 'At least one voice must be supported');
|
|
123
|
+
exports.SupportedVoicesSchema = SupportedVoicesSchema;
|
|
124
|
+
/**
|
|
125
|
+
* Zod schema for an array of supported languages.
|
|
126
|
+
*
|
|
127
|
+
* Requires at least one language to be provided.
|
|
128
|
+
*/
|
|
129
|
+
exports.SupportedLanguagesSchema = zod_1.z.array(exports.LanguageSchema).min(1, 'At least one language must be supported');
|
|
130
|
+
/**
|
|
131
|
+
* Validation function for supported voices.
|
|
132
|
+
*
|
|
133
|
+
* Parses and validates an array of voices, throwing an error if validation fails.
|
|
134
|
+
*
|
|
135
|
+
* @param voices - Unknown input to validate as supported voices
|
|
136
|
+
* @returns Validated array of voices
|
|
137
|
+
* @throws {ZodError} If validation fails
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```typescript
|
|
141
|
+
* const voices = validateSupportedVoices([
|
|
142
|
+
* { voiceId: 'adam', name: 'Adam', description: 'Male voice', gender: 'male', isDefault: true }
|
|
143
|
+
* ]);
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
const validateSupportedVoices = (voices) => {
|
|
147
|
+
return SupportedVoicesSchema.parse(voices);
|
|
148
|
+
};
|
|
149
|
+
exports.validateSupportedVoices = validateSupportedVoices;
|
|
150
|
+
/**
|
|
151
|
+
* Type guard function to check if an object is a valid Voice.
|
|
152
|
+
*
|
|
153
|
+
* @param voice - Unknown input to check
|
|
154
|
+
* @returns True if the input is a valid Voice, false otherwise
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```typescript
|
|
158
|
+
* if (isValidVoice(data)) {
|
|
159
|
+
* console.log(data.voiceId); // TypeScript knows data is a Voice
|
|
160
|
+
* }
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
const isValidVoice = (voice) => {
|
|
164
|
+
return VoiceSchema.safeParse(voice).success;
|
|
165
|
+
};
|
|
166
|
+
exports.isValidVoice = isValidVoice;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Account-related type definitions and enumerations.
|
|
3
|
+
* @module account/definitions
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Service status enumeration for organizations and projects.
|
|
7
|
+
*
|
|
8
|
+
* Defines the operational state of a service within the platform.
|
|
9
|
+
*
|
|
10
|
+
* @enum {string}
|
|
11
|
+
* @readonly
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const orgStatus: ServiceStatus = ServiceStatus.ACTIVE;
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare enum ServiceStatus {
|
|
19
|
+
/** Service is operational and available */
|
|
20
|
+
ACTIVE = "active",
|
|
21
|
+
/** Service is not currently in use but can be reactivated */
|
|
22
|
+
INACTIVE = "inactive",
|
|
23
|
+
/** Service is temporarily suspended and requires intervention to resume */
|
|
24
|
+
SUSPENDED = "suspended"
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Service suspension type enumeration.
|
|
28
|
+
*
|
|
29
|
+
* Indicates the reason or trigger for a service suspension.
|
|
30
|
+
*
|
|
31
|
+
* @enum {string}
|
|
32
|
+
* @readonly
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* const suspensionReason: ServiceSuspensionType = ServiceSuspensionType.QUOTA_EXCEEDED;
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare enum ServiceSuspensionType {
|
|
40
|
+
/** Service was manually suspended by an administrator or user */
|
|
41
|
+
MANUAL = "manual",
|
|
42
|
+
/** Service was automatically suspended by the system */
|
|
43
|
+
AUTOMATIC = "automatic",
|
|
44
|
+
/** Service was suspended due to subscription quota limits being exceeded */
|
|
45
|
+
SUBSCRIPTION_QUOTA_EXCEEDED = "subscription_quota_exceeded",
|
|
46
|
+
/** Service was suspended due to usage quota limits being exceeded */
|
|
47
|
+
QUOTA_EXCEEDED = "quota_exceeded",
|
|
48
|
+
/** Service was suspended due to failed payment transaction */
|
|
49
|
+
PAYMENT_FAILED = "payment_failed"
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Business support services enumeration.
|
|
53
|
+
*
|
|
54
|
+
* Defines the types of business support services available in the platform
|
|
55
|
+
* for organizations to enable specific industry-focused features.
|
|
56
|
+
*
|
|
57
|
+
* @enum {string}
|
|
58
|
+
* @readonly
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```typescript
|
|
62
|
+
* const enabledServices: BusinessSupportServices[] = [
|
|
63
|
+
* BusinessSupportServices.APPOINTMENT_MANAGEMENT
|
|
64
|
+
* ];
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare enum BusinessSupportServices {
|
|
68
|
+
/** Appointment scheduling and management functionality */
|
|
69
|
+
APPOINTMENT_MANAGEMENT = "appointment_management",
|
|
70
|
+
/** Restaurant menu and food order management functionality */
|
|
71
|
+
MENU_ORDER_MANAGEMENT = "menu_order_management",
|
|
72
|
+
/** E-commerce product order management functionality */
|
|
73
|
+
PRODUCT_ORDER_MANAGEMENT = "product_order_management",
|
|
74
|
+
/** Table and venue reservation management functionality */
|
|
75
|
+
RESERVATION_MANAGEMENT = "reservation_management",
|
|
76
|
+
/** Property listing and rental management functionality */
|
|
77
|
+
PROPERTY_MANAGEMENT = "property_management",
|
|
78
|
+
/** Membership and subscription management functionality */
|
|
79
|
+
MEMBERSHIP_MANAGEMENT = "membership_management",
|
|
80
|
+
/** No business support services enabled */
|
|
81
|
+
NONE = "none"
|
|
82
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Account-related type definitions and enumerations.
|
|
4
|
+
* @module account/definitions
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.BusinessSupportServices = exports.ServiceSuspensionType = exports.ServiceStatus = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Service status enumeration for organizations and projects.
|
|
10
|
+
*
|
|
11
|
+
* Defines the operational state of a service within the platform.
|
|
12
|
+
*
|
|
13
|
+
* @enum {string}
|
|
14
|
+
* @readonly
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* const orgStatus: ServiceStatus = ServiceStatus.ACTIVE;
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
var ServiceStatus;
|
|
22
|
+
(function (ServiceStatus) {
|
|
23
|
+
/** Service is operational and available */
|
|
24
|
+
ServiceStatus["ACTIVE"] = "active";
|
|
25
|
+
/** Service is not currently in use but can be reactivated */
|
|
26
|
+
ServiceStatus["INACTIVE"] = "inactive";
|
|
27
|
+
/** Service is temporarily suspended and requires intervention to resume */
|
|
28
|
+
ServiceStatus["SUSPENDED"] = "suspended";
|
|
29
|
+
})(ServiceStatus || (exports.ServiceStatus = ServiceStatus = {}));
|
|
30
|
+
/**
|
|
31
|
+
* Service suspension type enumeration.
|
|
32
|
+
*
|
|
33
|
+
* Indicates the reason or trigger for a service suspension.
|
|
34
|
+
*
|
|
35
|
+
* @enum {string}
|
|
36
|
+
* @readonly
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const suspensionReason: ServiceSuspensionType = ServiceSuspensionType.QUOTA_EXCEEDED;
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
var ServiceSuspensionType;
|
|
44
|
+
(function (ServiceSuspensionType) {
|
|
45
|
+
/** Service was manually suspended by an administrator or user */
|
|
46
|
+
ServiceSuspensionType["MANUAL"] = "manual";
|
|
47
|
+
/** Service was automatically suspended by the system */
|
|
48
|
+
ServiceSuspensionType["AUTOMATIC"] = "automatic";
|
|
49
|
+
/** Service was suspended due to subscription quota limits being exceeded */
|
|
50
|
+
ServiceSuspensionType["SUBSCRIPTION_QUOTA_EXCEEDED"] = "subscription_quota_exceeded";
|
|
51
|
+
/** Service was suspended due to usage quota limits being exceeded */
|
|
52
|
+
ServiceSuspensionType["QUOTA_EXCEEDED"] = "quota_exceeded";
|
|
53
|
+
/** Service was suspended due to failed payment transaction */
|
|
54
|
+
ServiceSuspensionType["PAYMENT_FAILED"] = "payment_failed";
|
|
55
|
+
})(ServiceSuspensionType || (exports.ServiceSuspensionType = ServiceSuspensionType = {}));
|
|
56
|
+
/**
|
|
57
|
+
* Business support services enumeration.
|
|
58
|
+
*
|
|
59
|
+
* Defines the types of business support services available in the platform
|
|
60
|
+
* for organizations to enable specific industry-focused features.
|
|
61
|
+
*
|
|
62
|
+
* @enum {string}
|
|
63
|
+
* @readonly
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* const enabledServices: BusinessSupportServices[] = [
|
|
68
|
+
* BusinessSupportServices.APPOINTMENT_MANAGEMENT
|
|
69
|
+
* ];
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
var BusinessSupportServices;
|
|
73
|
+
(function (BusinessSupportServices) {
|
|
74
|
+
/** Appointment scheduling and management functionality */
|
|
75
|
+
BusinessSupportServices["APPOINTMENT_MANAGEMENT"] = "appointment_management";
|
|
76
|
+
/** Restaurant menu and food order management functionality */
|
|
77
|
+
BusinessSupportServices["MENU_ORDER_MANAGEMENT"] = "menu_order_management";
|
|
78
|
+
/** E-commerce product order management functionality */
|
|
79
|
+
BusinessSupportServices["PRODUCT_ORDER_MANAGEMENT"] = "product_order_management";
|
|
80
|
+
/** Table and venue reservation management functionality */
|
|
81
|
+
BusinessSupportServices["RESERVATION_MANAGEMENT"] = "reservation_management";
|
|
82
|
+
/** Property listing and rental management functionality */
|
|
83
|
+
BusinessSupportServices["PROPERTY_MANAGEMENT"] = "property_management";
|
|
84
|
+
/** Membership and subscription management functionality */
|
|
85
|
+
BusinessSupportServices["MEMBERSHIP_MANAGEMENT"] = "membership_management";
|
|
86
|
+
/** No business support services enabled */
|
|
87
|
+
BusinessSupportServices["NONE"] = "none";
|
|
88
|
+
})(BusinessSupportServices || (exports.BusinessSupportServices = BusinessSupportServices = {}));
|