wiil-core-js 0.0.84 → 0.0.85
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/assistant-setups/assistant-setup-result.schema.d.ts +1 -1
- package/dist/core/assistant-setups/base-assistant-setup.schema.d.ts +2 -2
- package/dist/core/assistant-setups/phone-assistant-setup.schema.d.ts +2 -2
- package/dist/core/assistant-setups/web-assitant-setup.schema.d.ts +2 -2
- package/dist/core/conversation/outbound-call.schema.d.ts +2 -2
- package/dist/core/service-configuration/agent-graph.schema.d.ts +414 -0
- package/dist/core/service-configuration/agent-graph.schema.js +46 -0
- package/dist/core/service-configuration/deployment-config.schema.d.ts +5 -5
- package/dist/core/service-configuration/dynamic_setup/phone-agent-setup.d.ts +1 -1
- package/dist/core/service-configuration/index.d.ts +1 -0
- package/dist/core/service-configuration/index.js +1 -0
- package/dist/core/service-configuration/instruction-config.schema.d.ts +2 -2
- package/package.json +1 -1
|
@@ -100,8 +100,8 @@ export declare const AssistantSetupResultSchema: z.ZodObject<{
|
|
|
100
100
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
101
101
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
102
102
|
instructionConfigurationId: z.ZodString;
|
|
103
|
-
agentConfigurationId: z.ZodString;
|
|
104
103
|
projectId: z.ZodString;
|
|
104
|
+
agentConfigurationId: z.ZodString;
|
|
105
105
|
deploymentChannelId: z.ZodString;
|
|
106
106
|
deploymentName: z.ZodOptional<z.ZodString>;
|
|
107
107
|
provisioningConfigChainId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -7,7 +7,6 @@ export declare const BaseAssistantSchema: z.ZodObject<{
|
|
|
7
7
|
instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
9
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10
|
-
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
11
10
|
instructionName: z.ZodString;
|
|
12
11
|
role: z.ZodString;
|
|
13
12
|
introductionMessage: z.ZodString;
|
|
@@ -20,6 +19,7 @@ export declare const BaseAssistantSchema: z.ZodObject<{
|
|
|
20
19
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
20
|
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
22
21
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
23
23
|
}, z.core.$strip>>>;
|
|
24
24
|
knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
25
|
}, z.core.$strip>;
|
|
@@ -31,7 +31,6 @@ export declare const AdvanceBaseAssistantSchema: z.ZodObject<{
|
|
|
31
31
|
instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
33
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
34
|
-
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
35
34
|
instructionName: z.ZodString;
|
|
36
35
|
role: z.ZodString;
|
|
37
36
|
introductionMessage: z.ZodString;
|
|
@@ -44,6 +43,7 @@ export declare const AdvanceBaseAssistantSchema: z.ZodObject<{
|
|
|
44
43
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
44
|
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
46
45
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
47
47
|
}, z.core.$strip>>>;
|
|
48
48
|
knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
49
49
|
sttConfig: z.ZodObject<{
|
|
@@ -7,7 +7,6 @@ export declare const PhoneAssistantSetupSchema: z.ZodObject<{
|
|
|
7
7
|
instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
9
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10
|
-
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
11
10
|
instructionName: z.ZodString;
|
|
12
11
|
role: z.ZodString;
|
|
13
12
|
introductionMessage: z.ZodString;
|
|
@@ -20,6 +19,7 @@ export declare const PhoneAssistantSetupSchema: z.ZodObject<{
|
|
|
20
19
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
20
|
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
22
21
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
23
23
|
}, z.core.$strip>>>;
|
|
24
24
|
knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
25
|
phoneConfigurationId: z.ZodString;
|
|
@@ -32,7 +32,6 @@ export declare const ChainedPhoneAssistantSetupSchema: z.ZodObject<{
|
|
|
32
32
|
instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
34
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
35
|
-
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
36
35
|
instructionName: z.ZodString;
|
|
37
36
|
role: z.ZodString;
|
|
38
37
|
introductionMessage: z.ZodString;
|
|
@@ -45,6 +44,7 @@ export declare const ChainedPhoneAssistantSetupSchema: z.ZodObject<{
|
|
|
45
44
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
45
|
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
47
46
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
47
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
48
48
|
}, z.core.$strip>>>;
|
|
49
49
|
knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
50
50
|
sttConfig: z.ZodObject<{
|
|
@@ -8,7 +8,6 @@ export declare const WebAssistantSetupSchema: z.ZodObject<{
|
|
|
8
8
|
instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
10
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
11
|
-
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
12
11
|
instructionName: z.ZodString;
|
|
13
12
|
role: z.ZodString;
|
|
14
13
|
introductionMessage: z.ZodString;
|
|
@@ -21,6 +20,7 @@ export declare const WebAssistantSetupSchema: z.ZodObject<{
|
|
|
21
20
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
21
|
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
23
22
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
24
24
|
}, z.core.$strip>>>;
|
|
25
25
|
knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
26
26
|
websiteUrl: z.ZodURL;
|
|
@@ -34,7 +34,6 @@ export declare const ChainedWebAssistantSetupSchema: z.ZodObject<{
|
|
|
34
34
|
instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
customInstructionConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
36
36
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
37
|
-
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
38
37
|
instructionName: z.ZodString;
|
|
39
38
|
role: z.ZodString;
|
|
40
39
|
introductionMessage: z.ZodString;
|
|
@@ -47,6 +46,7 @@ export declare const ChainedWebAssistantSetupSchema: z.ZodObject<{
|
|
|
47
46
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
47
|
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
49
48
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
49
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
50
50
|
}, z.core.$strip>>>;
|
|
51
51
|
knowledgeSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
52
52
|
websiteUrl: z.ZodURL;
|
|
@@ -85,8 +85,8 @@ export declare const CreateCallRequestSchema: z.ZodObject<{
|
|
|
85
85
|
status: z.ZodDefault<z.ZodEnum<typeof CallRequestStatus>>;
|
|
86
86
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
87
87
|
instructionConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
-
agentConfigurationId: z.ZodString;
|
|
89
88
|
phoneConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
agentConfigurationId: z.ZodString;
|
|
90
90
|
serviceConversationConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
91
|
from: z.ZodString;
|
|
92
92
|
to: z.ZodString;
|
|
@@ -110,8 +110,8 @@ export declare const UpdateCallRequestSchema: z.ZodObject<{
|
|
|
110
110
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof CallRequestStatus>>>;
|
|
111
111
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
112
112
|
instructionConfigurationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
113
|
-
agentConfigurationId: z.ZodOptional<z.ZodString>;
|
|
114
113
|
phoneConfigurationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
114
|
+
agentConfigurationId: z.ZodOptional<z.ZodString>;
|
|
115
115
|
serviceConversationConfigId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
116
116
|
from: z.ZodOptional<z.ZodString>;
|
|
117
117
|
to: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Read-only agent graph composite view.
|
|
4
|
+
* @module service-configuration/agent-graph
|
|
5
|
+
*
|
|
6
|
+
* Fully hydrated graph of an agent and all its related entities, intended for
|
|
7
|
+
* API responses, management UIs, and graph-aware operations. Read-only by design
|
|
8
|
+
* — no Create/Update variants.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* A single deployment node within the agent graph, pairing a deployment
|
|
12
|
+
* configuration with its resolved channel.
|
|
13
|
+
*/
|
|
14
|
+
export declare const AgentDeploymentNodeSchema: z.ZodObject<{
|
|
15
|
+
deployment: z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
projectId: z.ZodString;
|
|
20
|
+
deploymentChannelId: z.ZodString;
|
|
21
|
+
deploymentName: z.ZodOptional<z.ZodString>;
|
|
22
|
+
agentConfigurationId: z.ZodString;
|
|
23
|
+
instructionConfigurationId: z.ZodString;
|
|
24
|
+
deploymentStatus: z.ZodEnum<typeof import("..").DeploymentStatus>;
|
|
25
|
+
provisioningType: z.ZodDefault<z.ZodEnum<typeof import("..").DeploymentProvisioningType>>;
|
|
26
|
+
provisioningConfigChainId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
+
channel: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
deploymentType: z.ZodEnum<typeof import("..").DeploymentType>;
|
|
33
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
34
|
+
recordingEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
35
|
+
channelIdentifier: z.ZodString;
|
|
36
|
+
configuration: z.ZodUnion<readonly [z.ZodObject<{
|
|
37
|
+
phoneConfigurationId: z.ZodString;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
communicationType: z.ZodDefault<z.ZodEnum<typeof import("..").OttCommunicationType>>;
|
|
40
|
+
widgetConfiguration: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
42
|
+
left: "left";
|
|
43
|
+
right: "right";
|
|
44
|
+
}>>;
|
|
45
|
+
customTheme: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
packageName: z.ZodDefault<z.ZodString>;
|
|
49
|
+
platform: z.ZodDefault<z.ZodEnum<typeof import("..").MobilePlatform>>;
|
|
50
|
+
}, z.core.$strip>]>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
52
|
+
project: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
regionId: z.ZodOptional<z.ZodString>;
|
|
58
|
+
description: z.ZodOptional<z.ZodString>;
|
|
59
|
+
compliance: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
isDefault: z.ZodBoolean;
|
|
61
|
+
serviceStatus: z.ZodDefault<z.ZodEnum<typeof import("..").ServiceStatus>>;
|
|
62
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
63
|
+
}, z.core.$strip>>>;
|
|
64
|
+
agent: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
modelId: z.ZodString;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
defaultFunctionState: z.ZodDefault<z.ZodEnum<typeof import("..").LLMType>>;
|
|
71
|
+
usesWiilSupportModel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
72
|
+
requiredModelConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
73
|
+
useCustomModel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
74
|
+
textProcessingModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
instructionConfigurationId: z.ZodString;
|
|
76
|
+
assistantType: z.ZodDefault<z.ZodEnum<typeof import("..").AssistantType>>;
|
|
77
|
+
call_transfer_config: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
+
transfer_number: z.ZodString;
|
|
79
|
+
transfer_type: z.ZodDefault<z.ZodEnum<{
|
|
80
|
+
blind: "blind";
|
|
81
|
+
warm: "warm";
|
|
82
|
+
}>>;
|
|
83
|
+
transfer_conditions: z.ZodArray<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>>>>;
|
|
85
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
86
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
87
|
+
modelId: z.ZodString;
|
|
88
|
+
proprietor: z.ZodEnum<typeof import("..").SupportedProprietor>;
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
provider_model_id: z.ZodOptional<z.ZodString>;
|
|
91
|
+
description: z.ZodString;
|
|
92
|
+
type: z.ZodEnum<typeof import("..").LLMType>;
|
|
93
|
+
discontinued: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
94
|
+
supportedVoices: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
+
voiceId: z.ZodString;
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
description: z.ZodString;
|
|
98
|
+
gender: z.ZodEnum<{
|
|
99
|
+
neutral: "neutral";
|
|
100
|
+
male: "male";
|
|
101
|
+
female: "female";
|
|
102
|
+
}>;
|
|
103
|
+
language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
104
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
+
}, z.core.$strip>>>>;
|
|
106
|
+
supportLanguages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
+
languageId: z.ZodString;
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
code: z.ZodString;
|
|
110
|
+
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
111
|
+
isExperimental: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
112
|
+
}, z.core.$strip>>>>;
|
|
113
|
+
}, z.core.$strip>>>;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
115
|
+
instruction: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
116
|
+
id: z.ZodString;
|
|
117
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
instructionName: z.ZodString;
|
|
120
|
+
role: z.ZodString;
|
|
121
|
+
introductionMessage: z.ZodString;
|
|
122
|
+
instructions: z.ZodString;
|
|
123
|
+
guardrails: z.ZodString;
|
|
124
|
+
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
|
+
validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
126
|
+
serviceId: z.ZodOptional<z.ZodString>;
|
|
127
|
+
supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").BusinessSupportServices>>>>;
|
|
128
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
129
|
+
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
130
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
131
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
132
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
133
|
+
}, z.core.$strip>>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
deploymentType: z.ZodEnum<typeof import("..").DeploymentType>;
|
|
140
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
141
|
+
recordingEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
142
|
+
channelIdentifier: z.ZodString;
|
|
143
|
+
configuration: z.ZodUnion<readonly [z.ZodObject<{
|
|
144
|
+
phoneConfigurationId: z.ZodString;
|
|
145
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
146
|
+
communicationType: z.ZodDefault<z.ZodEnum<typeof import("..").OttCommunicationType>>;
|
|
147
|
+
widgetConfiguration: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
149
|
+
left: "left";
|
|
150
|
+
right: "right";
|
|
151
|
+
}>>;
|
|
152
|
+
customTheme: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
155
|
+
packageName: z.ZodDefault<z.ZodString>;
|
|
156
|
+
platform: z.ZodDefault<z.ZodEnum<typeof import("..").MobilePlatform>>;
|
|
157
|
+
}, z.core.$strip>]>;
|
|
158
|
+
}, z.core.$strip>>>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
/**
|
|
161
|
+
* Full read-only agent graph.
|
|
162
|
+
*
|
|
163
|
+
* Root: AgentConfiguration
|
|
164
|
+
* ├── instruction: InstructionConfiguration
|
|
165
|
+
* │ └── knowledgeSources: KnowledgeSource[]
|
|
166
|
+
* └── deployments: AgentDeploymentNode[]
|
|
167
|
+
* └── channel: DeploymentChannel
|
|
168
|
+
*/
|
|
169
|
+
export declare const AgentGraphSchema: z.ZodObject<{
|
|
170
|
+
agent: z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
modelId: z.ZodString;
|
|
175
|
+
name: z.ZodString;
|
|
176
|
+
defaultFunctionState: z.ZodDefault<z.ZodEnum<typeof import("..").LLMType>>;
|
|
177
|
+
usesWiilSupportModel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
178
|
+
requiredModelConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
179
|
+
useCustomModel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
180
|
+
textProcessingModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
+
instructionConfigurationId: z.ZodString;
|
|
182
|
+
assistantType: z.ZodDefault<z.ZodEnum<typeof import("..").AssistantType>>;
|
|
183
|
+
call_transfer_config: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
184
|
+
transfer_number: z.ZodString;
|
|
185
|
+
transfer_type: z.ZodDefault<z.ZodEnum<{
|
|
186
|
+
blind: "blind";
|
|
187
|
+
warm: "warm";
|
|
188
|
+
}>>;
|
|
189
|
+
transfer_conditions: z.ZodArray<z.ZodString>;
|
|
190
|
+
}, z.core.$strip>>>>;
|
|
191
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
192
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
193
|
+
modelId: z.ZodString;
|
|
194
|
+
proprietor: z.ZodEnum<typeof import("..").SupportedProprietor>;
|
|
195
|
+
name: z.ZodString;
|
|
196
|
+
provider_model_id: z.ZodOptional<z.ZodString>;
|
|
197
|
+
description: z.ZodString;
|
|
198
|
+
type: z.ZodEnum<typeof import("..").LLMType>;
|
|
199
|
+
discontinued: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
200
|
+
supportedVoices: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
201
|
+
voiceId: z.ZodString;
|
|
202
|
+
name: z.ZodString;
|
|
203
|
+
description: z.ZodString;
|
|
204
|
+
gender: z.ZodEnum<{
|
|
205
|
+
neutral: "neutral";
|
|
206
|
+
male: "male";
|
|
207
|
+
female: "female";
|
|
208
|
+
}>;
|
|
209
|
+
language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
210
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
211
|
+
}, z.core.$strip>>>>;
|
|
212
|
+
supportLanguages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
213
|
+
languageId: z.ZodString;
|
|
214
|
+
name: z.ZodString;
|
|
215
|
+
code: z.ZodString;
|
|
216
|
+
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
217
|
+
isExperimental: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
218
|
+
}, z.core.$strip>>>>;
|
|
219
|
+
}, z.core.$strip>>>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
instruction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
instructionName: z.ZodString;
|
|
226
|
+
role: z.ZodString;
|
|
227
|
+
introductionMessage: z.ZodString;
|
|
228
|
+
instructions: z.ZodString;
|
|
229
|
+
guardrails: z.ZodString;
|
|
230
|
+
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
231
|
+
validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
232
|
+
serviceId: z.ZodOptional<z.ZodString>;
|
|
233
|
+
supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").BusinessSupportServices>>>>;
|
|
234
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
235
|
+
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
236
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
237
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
238
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
239
|
+
}, z.core.$strip>>>;
|
|
240
|
+
knowledgeSources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
241
|
+
id: z.ZodString;
|
|
242
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
sourceType: z.ZodEnum<typeof import("..").KnowledgeTypes>;
|
|
246
|
+
request_success: z.ZodBoolean;
|
|
247
|
+
processingStatus: z.ZodDefault<z.ZodEnum<typeof import("..").KnowledgeBaseProcessingStatus>>;
|
|
248
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
249
|
+
prepped_content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
250
|
+
content_path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
251
|
+
prepped_content_path: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
252
|
+
original_content_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
253
|
+
stored_content_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
254
|
+
prepped_content_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
255
|
+
content_size: z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
prepped_content_size: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
storage_tier: z.ZodDefault<z.ZodEnum<typeof import("..").StorageTier>>;
|
|
258
|
+
last_accessed: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
access_count: z.ZodDefault<z.ZodNumber>;
|
|
260
|
+
is_compressed: z.ZodDefault<z.ZodBoolean>;
|
|
261
|
+
compression_ratio: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
263
|
+
original_content_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
264
|
+
content_hash: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
265
|
+
}, z.core.$strip>>>;
|
|
266
|
+
deployments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
267
|
+
deployment: z.ZodObject<{
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
projectId: z.ZodString;
|
|
272
|
+
deploymentChannelId: z.ZodString;
|
|
273
|
+
deploymentName: z.ZodOptional<z.ZodString>;
|
|
274
|
+
agentConfigurationId: z.ZodString;
|
|
275
|
+
instructionConfigurationId: z.ZodString;
|
|
276
|
+
deploymentStatus: z.ZodEnum<typeof import("..").DeploymentStatus>;
|
|
277
|
+
provisioningType: z.ZodDefault<z.ZodEnum<typeof import("..").DeploymentProvisioningType>>;
|
|
278
|
+
provisioningConfigChainId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
279
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
280
|
+
channel: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
281
|
+
id: z.ZodString;
|
|
282
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
deploymentType: z.ZodEnum<typeof import("..").DeploymentType>;
|
|
285
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
286
|
+
recordingEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
287
|
+
channelIdentifier: z.ZodString;
|
|
288
|
+
configuration: z.ZodUnion<readonly [z.ZodObject<{
|
|
289
|
+
phoneConfigurationId: z.ZodString;
|
|
290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
|
+
communicationType: z.ZodDefault<z.ZodEnum<typeof import("..").OttCommunicationType>>;
|
|
292
|
+
widgetConfiguration: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
294
|
+
left: "left";
|
|
295
|
+
right: "right";
|
|
296
|
+
}>>;
|
|
297
|
+
customTheme: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
+
packageName: z.ZodDefault<z.ZodString>;
|
|
301
|
+
platform: z.ZodDefault<z.ZodEnum<typeof import("..").MobilePlatform>>;
|
|
302
|
+
}, z.core.$strip>]>;
|
|
303
|
+
}, z.core.$strip>>>;
|
|
304
|
+
project: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
305
|
+
id: z.ZodString;
|
|
306
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
name: z.ZodString;
|
|
309
|
+
regionId: z.ZodOptional<z.ZodString>;
|
|
310
|
+
description: z.ZodOptional<z.ZodString>;
|
|
311
|
+
compliance: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
312
|
+
isDefault: z.ZodBoolean;
|
|
313
|
+
serviceStatus: z.ZodDefault<z.ZodEnum<typeof import("..").ServiceStatus>>;
|
|
314
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
315
|
+
}, z.core.$strip>>>;
|
|
316
|
+
agent: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
317
|
+
id: z.ZodString;
|
|
318
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
319
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
modelId: z.ZodString;
|
|
321
|
+
name: z.ZodString;
|
|
322
|
+
defaultFunctionState: z.ZodDefault<z.ZodEnum<typeof import("..").LLMType>>;
|
|
323
|
+
usesWiilSupportModel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
324
|
+
requiredModelConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
325
|
+
useCustomModel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
326
|
+
textProcessingModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
instructionConfigurationId: z.ZodString;
|
|
328
|
+
assistantType: z.ZodDefault<z.ZodEnum<typeof import("..").AssistantType>>;
|
|
329
|
+
call_transfer_config: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
330
|
+
transfer_number: z.ZodString;
|
|
331
|
+
transfer_type: z.ZodDefault<z.ZodEnum<{
|
|
332
|
+
blind: "blind";
|
|
333
|
+
warm: "warm";
|
|
334
|
+
}>>;
|
|
335
|
+
transfer_conditions: z.ZodArray<z.ZodString>;
|
|
336
|
+
}, z.core.$strip>>>>;
|
|
337
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
338
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
339
|
+
modelId: z.ZodString;
|
|
340
|
+
proprietor: z.ZodEnum<typeof import("..").SupportedProprietor>;
|
|
341
|
+
name: z.ZodString;
|
|
342
|
+
provider_model_id: z.ZodOptional<z.ZodString>;
|
|
343
|
+
description: z.ZodString;
|
|
344
|
+
type: z.ZodEnum<typeof import("..").LLMType>;
|
|
345
|
+
discontinued: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
346
|
+
supportedVoices: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
347
|
+
voiceId: z.ZodString;
|
|
348
|
+
name: z.ZodString;
|
|
349
|
+
description: z.ZodString;
|
|
350
|
+
gender: z.ZodEnum<{
|
|
351
|
+
neutral: "neutral";
|
|
352
|
+
male: "male";
|
|
353
|
+
female: "female";
|
|
354
|
+
}>;
|
|
355
|
+
language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
356
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
357
|
+
}, z.core.$strip>>>>;
|
|
358
|
+
supportLanguages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
359
|
+
languageId: z.ZodString;
|
|
360
|
+
name: z.ZodString;
|
|
361
|
+
code: z.ZodString;
|
|
362
|
+
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
363
|
+
isExperimental: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
364
|
+
}, z.core.$strip>>>>;
|
|
365
|
+
}, z.core.$strip>>>;
|
|
366
|
+
}, z.core.$strip>>>;
|
|
367
|
+
instruction: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
368
|
+
id: z.ZodString;
|
|
369
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
370
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
371
|
+
instructionName: z.ZodString;
|
|
372
|
+
role: z.ZodString;
|
|
373
|
+
introductionMessage: z.ZodString;
|
|
374
|
+
instructions: z.ZodString;
|
|
375
|
+
guardrails: z.ZodString;
|
|
376
|
+
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
377
|
+
validationRules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
378
|
+
serviceId: z.ZodOptional<z.ZodString>;
|
|
379
|
+
supportedServices: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("..").BusinessSupportServices>>>>;
|
|
380
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
381
|
+
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
382
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
383
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
384
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
385
|
+
}, z.core.$strip>>>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
388
|
+
id: z.ZodString;
|
|
389
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
391
|
+
deploymentType: z.ZodEnum<typeof import("..").DeploymentType>;
|
|
392
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
393
|
+
recordingEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
394
|
+
channelIdentifier: z.ZodString;
|
|
395
|
+
configuration: z.ZodUnion<readonly [z.ZodObject<{
|
|
396
|
+
phoneConfigurationId: z.ZodString;
|
|
397
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
398
|
+
communicationType: z.ZodDefault<z.ZodEnum<typeof import("..").OttCommunicationType>>;
|
|
399
|
+
widgetConfiguration: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
401
|
+
left: "left";
|
|
402
|
+
right: "right";
|
|
403
|
+
}>>;
|
|
404
|
+
customTheme: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
407
|
+
packageName: z.ZodDefault<z.ZodString>;
|
|
408
|
+
platform: z.ZodDefault<z.ZodEnum<typeof import("..").MobilePlatform>>;
|
|
409
|
+
}, z.core.$strip>]>;
|
|
410
|
+
}, z.core.$strip>>>;
|
|
411
|
+
}, z.core.$strip>>>;
|
|
412
|
+
}, z.core.$strip>;
|
|
413
|
+
export type AgentDeploymentNode = z.infer<typeof AgentDeploymentNodeSchema>;
|
|
414
|
+
export type AgentGraph = z.infer<typeof AgentGraphSchema>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentGraphSchema = exports.AgentDeploymentNodeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const agent_config_schema_1 = require("./agent-config.schema");
|
|
6
|
+
const instruction_config_schema_1 = require("./instruction-config.schema");
|
|
7
|
+
const knowledge_schema_1 = require("./knowledge.schema");
|
|
8
|
+
const deployment_config_schema_1 = require("./deployment-config.schema");
|
|
9
|
+
const interaction_channels_schema_1 = require("./interaction-channels.schema");
|
|
10
|
+
/**
|
|
11
|
+
* @fileoverview Read-only agent graph composite view.
|
|
12
|
+
* @module service-configuration/agent-graph
|
|
13
|
+
*
|
|
14
|
+
* Fully hydrated graph of an agent and all its related entities, intended for
|
|
15
|
+
* API responses, management UIs, and graph-aware operations. Read-only by design
|
|
16
|
+
* — no Create/Update variants.
|
|
17
|
+
*/
|
|
18
|
+
// ============================================================================
|
|
19
|
+
// AGENT GRAPH — READ-ONLY COMPOSITE VIEW
|
|
20
|
+
// Full hydrated graph of an agent and all its related entities.
|
|
21
|
+
// Intended for API responses, management UIs, and graph-aware operations.
|
|
22
|
+
// No Create/Update variants — read-only by design.
|
|
23
|
+
// ============================================================================
|
|
24
|
+
/**
|
|
25
|
+
* A single deployment node within the agent graph, pairing a deployment
|
|
26
|
+
* configuration with its resolved channel.
|
|
27
|
+
*/
|
|
28
|
+
exports.AgentDeploymentNodeSchema = zod_1.z.object({
|
|
29
|
+
deployment: deployment_config_schema_1.DeploymentConfigurationSchema.describe("Deployment configuration using this agent"),
|
|
30
|
+
channel: interaction_channels_schema_1.DeploymentChannelSchema.nullable().optional().describe("Resolved deployment channel for this deployment"),
|
|
31
|
+
}).describe("Deployment node in the agent graph — deployment configuration paired with its channel");
|
|
32
|
+
/**
|
|
33
|
+
* Full read-only agent graph.
|
|
34
|
+
*
|
|
35
|
+
* Root: AgentConfiguration
|
|
36
|
+
* ├── instruction: InstructionConfiguration
|
|
37
|
+
* │ └── knowledgeSources: KnowledgeSource[]
|
|
38
|
+
* └── deployments: AgentDeploymentNode[]
|
|
39
|
+
* └── channel: DeploymentChannel
|
|
40
|
+
*/
|
|
41
|
+
exports.AgentGraphSchema = zod_1.z.object({
|
|
42
|
+
agent: agent_config_schema_1.AgentConfigurationSchema.describe("Core agent configuration — root node of the graph"),
|
|
43
|
+
instruction: instruction_config_schema_1.InstructionConfigurationSchema.nullable().optional().describe("Instruction configuration (role/persona) linked to this agent"),
|
|
44
|
+
knowledgeSources: zod_1.z.array(knowledge_schema_1.KnowledgeSourceSchema).default([]).describe("Knowledge sources attached to the instruction configuration"),
|
|
45
|
+
deployments: zod_1.z.array(exports.AgentDeploymentNodeSchema).default([]).describe("All deployment configurations that use this agent, each paired with its channel"),
|
|
46
|
+
}).describe("Read-only agent graph — fully hydrated view of an agent with its instruction, knowledge sources, and deployment channels");
|
|
@@ -223,8 +223,8 @@ export type DeploymentConfiguration = z.infer<typeof DeploymentConfigurationSche
|
|
|
223
223
|
*/
|
|
224
224
|
export declare const CreateDeploymentConfigurationSchema: z.ZodObject<{
|
|
225
225
|
instructionConfigurationId: z.ZodString;
|
|
226
|
-
agentConfigurationId: z.ZodString;
|
|
227
226
|
projectId: z.ZodString;
|
|
227
|
+
agentConfigurationId: z.ZodString;
|
|
228
228
|
deploymentChannelId: z.ZodString;
|
|
229
229
|
deploymentName: z.ZodOptional<z.ZodString>;
|
|
230
230
|
provisioningConfigChainId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -264,8 +264,8 @@ export type CreateDeploymentConfiguration = z.infer<typeof CreateDeploymentConfi
|
|
|
264
264
|
*/
|
|
265
265
|
export declare const CreateChainDeploymentConfigurationSchema: z.ZodObject<{
|
|
266
266
|
instructionConfigurationId: z.ZodString;
|
|
267
|
-
agentConfigurationId: z.ZodString;
|
|
268
267
|
projectId: z.ZodString;
|
|
268
|
+
agentConfigurationId: z.ZodString;
|
|
269
269
|
deploymentChannelId: z.ZodString;
|
|
270
270
|
deploymentName: z.ZodOptional<z.ZodString>;
|
|
271
271
|
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -301,8 +301,8 @@ export type CreateChainDeploymentConfiguration = z.infer<typeof CreateChainDeplo
|
|
|
301
301
|
*/
|
|
302
302
|
export declare const UpdateDeploymentConfigurationSchema: z.ZodObject<{
|
|
303
303
|
instructionConfigurationId: z.ZodOptional<z.ZodString>;
|
|
304
|
-
agentConfigurationId: z.ZodOptional<z.ZodString>;
|
|
305
304
|
projectId: z.ZodOptional<z.ZodString>;
|
|
305
|
+
agentConfigurationId: z.ZodOptional<z.ZodString>;
|
|
306
306
|
deploymentChannelId: z.ZodOptional<z.ZodString>;
|
|
307
307
|
deploymentName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
308
308
|
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -347,8 +347,8 @@ export declare const DeploymentConfigurationResultSchema: z.ZodObject<{
|
|
|
347
347
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
348
348
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
349
349
|
instructionConfigurationId: z.ZodString;
|
|
350
|
-
agentConfigurationId: z.ZodString;
|
|
351
350
|
projectId: z.ZodString;
|
|
351
|
+
agentConfigurationId: z.ZodString;
|
|
352
352
|
deploymentChannelId: z.ZodString;
|
|
353
353
|
deploymentName: z.ZodOptional<z.ZodString>;
|
|
354
354
|
provisioningConfigChainId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -399,8 +399,8 @@ export declare const DeploymentConfigurationDetailsSchema: z.ZodObject<{
|
|
|
399
399
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
400
400
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
401
401
|
instructionConfigurationId: z.ZodString;
|
|
402
|
-
agentConfigurationId: z.ZodString;
|
|
403
402
|
projectId: z.ZodString;
|
|
403
|
+
agentConfigurationId: z.ZodString;
|
|
404
404
|
deploymentChannelId: z.ZodString;
|
|
405
405
|
deploymentName: z.ZodOptional<z.ZodString>;
|
|
406
406
|
provisioningConfigChainId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -83,10 +83,10 @@ export declare const UpdateDynamicPhoneAgentSchema: z.ZodObject<{
|
|
|
83
83
|
voice: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
84
84
|
language: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
|
|
85
85
|
instructionConfigurationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
86
|
+
knowledgeSourceIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
86
87
|
assistantName: z.ZodOptional<z.ZodString>;
|
|
87
88
|
role_template_identifier: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof import("../..").AgentRoleTemplateIdentifier>>>;
|
|
88
89
|
capabilities: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../..").BusinessSupportServices>>>>>;
|
|
89
|
-
knowledgeSourceIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
90
90
|
textKnowledgeSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
91
91
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
content: z.ZodString;
|
|
@@ -19,6 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
__exportStar(require("./agent-config.schema"), exports);
|
|
22
|
+
__exportStar(require("./agent-graph.schema"), exports);
|
|
22
23
|
__exportStar(require("./base-agent-setup"), exports);
|
|
23
24
|
__exportStar(require("./call-transfer-config.schema"), exports);
|
|
24
25
|
__exportStar(require("./deployment-config.schema"), exports);
|
|
@@ -118,7 +118,6 @@ export type InstructionConfiguration = z.infer<typeof InstructionConfigurationSc
|
|
|
118
118
|
*/
|
|
119
119
|
export declare const CreateInstructionConfigurationSchema: z.ZodObject<{
|
|
120
120
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
121
|
-
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
122
121
|
instructionName: z.ZodString;
|
|
123
122
|
role: z.ZodString;
|
|
124
123
|
introductionMessage: z.ZodString;
|
|
@@ -131,6 +130,7 @@ export declare const CreateInstructionConfigurationSchema: z.ZodObject<{
|
|
|
131
130
|
tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
132
131
|
isTemplate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
133
132
|
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
+
knowledgeSourceIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
134
134
|
}, z.core.$strip>;
|
|
135
135
|
/**
|
|
136
136
|
* Type definition for creating a new instruction configuration.
|
|
@@ -160,7 +160,6 @@ export type CreateInstructionConfiguration = z.infer<typeof CreateInstructionCon
|
|
|
160
160
|
*/
|
|
161
161
|
export declare const UpdateInstructionConfigurationSchema: z.ZodObject<{
|
|
162
162
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
163
|
-
knowledgeSourceIds: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
164
163
|
instructionName: z.ZodOptional<z.ZodString>;
|
|
165
164
|
role: z.ZodOptional<z.ZodString>;
|
|
166
165
|
introductionMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -173,6 +172,7 @@ export declare const UpdateInstructionConfigurationSchema: z.ZodObject<{
|
|
|
173
172
|
tools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
174
173
|
isTemplate: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
175
174
|
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
175
|
+
knowledgeSourceIds: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
176
176
|
id: z.ZodString;
|
|
177
177
|
}, z.core.$strip>;
|
|
178
178
|
/**
|