wiil-core-js 0.0.82 → 0.0.84
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/dist/core/service-configuration/base-agent-setup.d.ts +3 -3
- package/dist/core/service-configuration/base-agent-setup.js +2 -2
- package/dist/core/service-configuration/dynamic_setup/phone-agent-setup.d.ts +4 -4
- package/dist/core/service-configuration/dynamic_setup/web-agent-setup.d.ts +7 -4
- package/dist/core/service-configuration/dynamic_setup/web-agent-setup.js +2 -0
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ export declare const TextBasedKnowledgeSourceSchema: z.ZodObject<{
|
|
|
28
28
|
* @property {AgentRoleTemplateIdentifier} [role_template_identifier] - Role/persona for the agent
|
|
29
29
|
* @property {AgentCapabilities[]} [capabilities] - List of enabled platform services
|
|
30
30
|
* @property {string[]} [knowledgeSourceIds] - Knowledge source IDs to associate
|
|
31
|
-
* @property {TextBasedKnowledgeSource} [textKnowledgeSource] - New text knowledge source to create and associate
|
|
31
|
+
* @property {TextBasedKnowledgeSource|null} [textKnowledgeSource] - New text knowledge source to create and associate
|
|
32
32
|
* @property {string} [language] - Language ID (e.g., en, es, fr)
|
|
33
33
|
* @property {string} [voice] - Voice ID for voice interactions
|
|
34
34
|
* @property {SupportedProprietor} [providerType] - AI model provider type
|
|
@@ -40,10 +40,10 @@ export declare const DynamicBaseAgentSetupSchema: z.ZodObject<{
|
|
|
40
40
|
role_template_identifier: z.ZodOptional<z.ZodEnum<typeof AgentRoleTemplateIdentifier>>;
|
|
41
41
|
capabilities: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../type-definitions").BusinessSupportServices>>>>;
|
|
42
42
|
knowledgeSourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
-
textKnowledgeSource: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
textKnowledgeSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
44
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
content: z.ZodString;
|
|
46
|
-
}, z.core.$strip
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
47
|
language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
48
48
|
voice: z.ZodOptional<z.ZodString>;
|
|
49
49
|
providerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof SupportedProprietor>>>;
|
|
@@ -35,7 +35,7 @@ exports.TextBasedKnowledgeSourceSchema = zod_1.default.object({
|
|
|
35
35
|
* @property {AgentRoleTemplateIdentifier} [role_template_identifier] - Role/persona for the agent
|
|
36
36
|
* @property {AgentCapabilities[]} [capabilities] - List of enabled platform services
|
|
37
37
|
* @property {string[]} [knowledgeSourceIds] - Knowledge source IDs to associate
|
|
38
|
-
* @property {TextBasedKnowledgeSource} [textKnowledgeSource] - New text knowledge source to create and associate
|
|
38
|
+
* @property {TextBasedKnowledgeSource|null} [textKnowledgeSource] - New text knowledge source to create and associate
|
|
39
39
|
* @property {string} [language] - Language ID (e.g., en, es, fr)
|
|
40
40
|
* @property {string} [voice] - Voice ID for voice interactions
|
|
41
41
|
* @property {SupportedProprietor} [providerType] - AI model provider type
|
|
@@ -47,7 +47,7 @@ exports.DynamicBaseAgentSetupSchema = zod_1.default.object({
|
|
|
47
47
|
role_template_identifier: zod_1.default.enum(type_definitions_1.AgentRoleTemplateIdentifier).optional().describe("The role or persona that the agent adopts with this instruction set"),
|
|
48
48
|
capabilities: zod_1.default.array(zod_1.default.enum(type_definitions_1.AgentCapabilities)).optional().default([]).describe("List of platform services (tools) enabled for this agent configuration"),
|
|
49
49
|
knowledgeSourceIds: zod_1.default.array(zod_1.default.string()).optional().describe("List of knowledge source IDs to associate with this assistant"),
|
|
50
|
-
textKnowledgeSource: exports.TextBasedKnowledgeSourceSchema.optional().describe("New text knowledge source to create and associate with this web agent"),
|
|
50
|
+
textKnowledgeSource: exports.TextBasedKnowledgeSourceSchema.nullable().optional().describe("New text knowledge source to create and associate with this web agent"),
|
|
51
51
|
language: zod_1.default.string().optional().default("en").describe("Language ID for the assistant, e.g., en, es, fr, etc."),
|
|
52
52
|
voice: zod_1.default.string().optional().describe("Voice ID for the assistant, if applicable, used for voice interactions"),
|
|
53
53
|
providerType: zod_1.default.enum(type_definitions_1.SupportedProprietor).nullable().optional().describe("The AI model provider type for this agent configuration, e.g., OPENAI, AZURE, etc."),
|
|
@@ -22,10 +22,10 @@ export declare const DynamicPhoneAgentSchema: z.ZodObject<{
|
|
|
22
22
|
role_template_identifier: z.ZodOptional<z.ZodEnum<typeof import("../..").AgentRoleTemplateIdentifier>>;
|
|
23
23
|
capabilities: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../..").BusinessSupportServices>>>>;
|
|
24
24
|
knowledgeSourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
-
textKnowledgeSource: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
textKnowledgeSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
26
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
content: z.ZodString;
|
|
28
|
-
}, z.core.$strip
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
29
|
language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30
30
|
voice: z.ZodOptional<z.ZodString>;
|
|
31
31
|
providerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").SupportedProprietor>>>;
|
|
@@ -87,10 +87,10 @@ export declare const UpdateDynamicPhoneAgentSchema: z.ZodObject<{
|
|
|
87
87
|
role_template_identifier: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof import("../..").AgentRoleTemplateIdentifier>>>;
|
|
88
88
|
capabilities: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../..").BusinessSupportServices>>>>>;
|
|
89
89
|
knowledgeSourceIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
90
|
-
textKnowledgeSource: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
90
|
+
textKnowledgeSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
91
91
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
content: z.ZodString;
|
|
93
|
-
}, z.core.$strip
|
|
93
|
+
}, z.core.$strip>>>>;
|
|
94
94
|
providerType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../..").SupportedProprietor>>>>;
|
|
95
95
|
providerModelId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
96
96
|
testPhoneNumber: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -14,6 +14,7 @@ import { OttCommunicationType } from "../../type-definitions";
|
|
|
14
14
|
* @typedef {Object} DynamicWebAgentSetup
|
|
15
15
|
* @property {string} websiteUrl - URL of the website for this assistant
|
|
16
16
|
* @property {OttCommunicationType} [communicationType] - Communication method (text, voice, unified)
|
|
17
|
+
* @property {Object|null} [widgetConfiguration] - Custom theme configuration for the web chat widget
|
|
17
18
|
* @property {Object} [sttConfiguration] - Speech-to-text configuration for voice
|
|
18
19
|
* @property {Object} [ttsConfiguration] - Text-to-speech configuration for voice
|
|
19
20
|
*/
|
|
@@ -23,16 +24,17 @@ export declare const DynamicWebAgentSchema: z.ZodObject<{
|
|
|
23
24
|
role_template_identifier: z.ZodOptional<z.ZodEnum<typeof import("../../type-definitions").AgentRoleTemplateIdentifier>>;
|
|
24
25
|
capabilities: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../../type-definitions").BusinessSupportServices>>>>;
|
|
25
26
|
knowledgeSourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
26
|
-
textKnowledgeSource: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
textKnowledgeSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
28
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
29
|
content: z.ZodString;
|
|
29
|
-
}, z.core.$strip
|
|
30
|
+
}, z.core.$strip>>>;
|
|
30
31
|
language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31
32
|
voice: z.ZodOptional<z.ZodString>;
|
|
32
33
|
providerType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../type-definitions").SupportedProprietor>>>;
|
|
33
34
|
providerModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
35
|
websiteUrl: z.ZodString;
|
|
35
36
|
communicationType: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof OttCommunicationType>>>;
|
|
37
|
+
widgetConfiguration: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
36
38
|
sttConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37
39
|
providerType: z.ZodEnum<typeof import("../../type-definitions").SupportedProprietor>;
|
|
38
40
|
providerModelId: z.ZodString;
|
|
@@ -85,16 +87,17 @@ export declare const UpdateDynamicWebAgentSchema: z.ZodObject<{
|
|
|
85
87
|
role_template_identifier: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof import("../../type-definitions").AgentRoleTemplateIdentifier>>>;
|
|
86
88
|
capabilities: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../../type-definitions").BusinessSupportServices>>>>>;
|
|
87
89
|
knowledgeSourceIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
88
|
-
textKnowledgeSource: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
90
|
+
textKnowledgeSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
89
91
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
92
|
content: z.ZodString;
|
|
91
|
-
}, z.core.$strip
|
|
93
|
+
}, z.core.$strip>>>>;
|
|
92
94
|
language: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
93
95
|
voice: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
94
96
|
providerType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../type-definitions").SupportedProprietor>>>>;
|
|
95
97
|
providerModelId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
96
98
|
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
97
99
|
communicationType: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof OttCommunicationType>>>>;
|
|
100
|
+
widgetConfiguration: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
|
|
98
101
|
sttConfiguration: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
102
|
providerType: z.ZodEnum<typeof import("../../type-definitions").SupportedProprietor>;
|
|
100
103
|
providerModelId: z.ZodString;
|
|
@@ -21,12 +21,14 @@ const type_definitions_1 = require("../../type-definitions");
|
|
|
21
21
|
* @typedef {Object} DynamicWebAgentSetup
|
|
22
22
|
* @property {string} websiteUrl - URL of the website for this assistant
|
|
23
23
|
* @property {OttCommunicationType} [communicationType] - Communication method (text, voice, unified)
|
|
24
|
+
* @property {Object|null} [widgetConfiguration] - Custom theme configuration for the web chat widget
|
|
24
25
|
* @property {Object} [sttConfiguration] - Speech-to-text configuration for voice
|
|
25
26
|
* @property {Object} [ttsConfiguration] - Text-to-speech configuration for voice
|
|
26
27
|
*/
|
|
27
28
|
exports.DynamicWebAgentSchema = base_agent_setup_1.DynamicBaseAgentSetupSchema.safeExtend({
|
|
28
29
|
websiteUrl: zod_1.default.string().describe("URL of the website to use for this assistant, defining web-specific settings and integrations"),
|
|
29
30
|
communicationType: zod_1.default.enum(type_definitions_1.OttCommunicationType).optional().default(type_definitions_1.OttCommunicationType.UNIFIED).describe("Type of over-the-top communication method for the web channel. options: text, voice, unified"),
|
|
31
|
+
widgetConfiguration: zod_1.default.record(zod_1.default.string(), zod_1.default.string()).nullable().optional().describe("Custom theme configuration for the web chat widget"),
|
|
30
32
|
sttConfiguration: base_agent_setup_1.DynamicSTTModelConfigurationSchema.nullable().optional().describe("Speech-to-text model configuration for the web assistant, if using voice interactions"),
|
|
31
33
|
ttsConfiguration: base_agent_setup_1.DynamicTTSModelConfigurationSchema.nullable().optional().describe("Text-to-speech model configuration for the web assistant, if using voice interactions"),
|
|
32
34
|
}).refine((data) => {
|