@pinecall/protocol 0.4.0 → 0.5.0
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/generated/commands.d.ts +9 -8
- package/dist/generated/commands.js +1 -0
- package/dist/generated/defs.d.ts +41 -41
- package/dist/generated/events.d.ts +58 -58
- package/dist/generated/registry.d.ts +73 -72
- package/dist/generated/rest.d.ts +110 -57
- package/dist/generated/rest.js +29 -0
- package/dist/generated/room.d.ts +7 -7
- package/dist/generated/state.d.ts +29 -29
- package/package.json +1 -1
|
@@ -8,8 +8,8 @@ export declare const AgentConfigureSchema: z.ZodObject<{
|
|
|
8
8
|
prompt: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
9
9
|
name: z.ZodString;
|
|
10
10
|
region: z.ZodEnum<{
|
|
11
|
-
dynamic: "dynamic";
|
|
12
11
|
static: "static";
|
|
12
|
+
dynamic: "dynamic";
|
|
13
13
|
}>;
|
|
14
14
|
}, z.core.$strict>>>>;
|
|
15
15
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -72,9 +72,9 @@ export declare const AgentConfigureSchema: z.ZodObject<{
|
|
|
72
72
|
description: z.ZodString;
|
|
73
73
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
74
74
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
75
|
-
irreversible: "irreversible";
|
|
76
75
|
read: "read";
|
|
77
76
|
write: "write";
|
|
77
|
+
irreversible: "irreversible";
|
|
78
78
|
}>>>;
|
|
79
79
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
80
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -84,9 +84,9 @@ export declare const AgentConfigureSchema: z.ZodObject<{
|
|
|
84
84
|
state_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
85
85
|
name: z.ZodString;
|
|
86
86
|
visibility: z.ZodEnum<{
|
|
87
|
-
pii: "pii";
|
|
88
87
|
public: "public";
|
|
89
88
|
tenant: "tenant";
|
|
89
|
+
pii: "pii";
|
|
90
90
|
}>;
|
|
91
91
|
}, z.core.$strict>>>>;
|
|
92
92
|
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -114,6 +114,7 @@ export declare const AgentRegisterSchema: z.ZodObject<{
|
|
|
114
114
|
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
115
|
}, z.core.$strict>>;
|
|
116
116
|
sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
118
|
takes_unclaimed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
118
119
|
}, z.core.$strict>;
|
|
119
120
|
export type AgentRegister = z.infer<typeof AgentRegisterSchema>;
|
|
@@ -259,8 +260,8 @@ export type PromptSet = z.infer<typeof PromptSetSchema>;
|
|
|
259
260
|
export declare const RoomInviteSchema: z.ZodObject<{
|
|
260
261
|
to: z.ZodString;
|
|
261
262
|
kind: z.ZodEnum<{
|
|
262
|
-
participant: "participant";
|
|
263
263
|
sip: "sip";
|
|
264
|
+
participant: "participant";
|
|
264
265
|
}>;
|
|
265
266
|
}, z.core.$strict>;
|
|
266
267
|
export type RoomInvite = z.infer<typeof RoomInviteSchema>;
|
|
@@ -285,8 +286,8 @@ export declare const SessionConfigureSchema: z.ZodObject<{
|
|
|
285
286
|
prompt: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
286
287
|
name: z.ZodString;
|
|
287
288
|
region: z.ZodEnum<{
|
|
288
|
-
dynamic: "dynamic";
|
|
289
289
|
static: "static";
|
|
290
|
+
dynamic: "dynamic";
|
|
290
291
|
}>;
|
|
291
292
|
}, z.core.$strict>>>>;
|
|
292
293
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -349,9 +350,9 @@ export declare const SessionConfigureSchema: z.ZodObject<{
|
|
|
349
350
|
description: z.ZodString;
|
|
350
351
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
351
352
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
352
|
-
irreversible: "irreversible";
|
|
353
353
|
read: "read";
|
|
354
354
|
write: "write";
|
|
355
|
+
irreversible: "irreversible";
|
|
355
356
|
}>>>;
|
|
356
357
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
358
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -361,9 +362,9 @@ export declare const SessionConfigureSchema: z.ZodObject<{
|
|
|
361
362
|
state_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
362
363
|
name: z.ZodString;
|
|
363
364
|
visibility: z.ZodEnum<{
|
|
364
|
-
pii: "pii";
|
|
365
365
|
public: "public";
|
|
366
366
|
tenant: "tenant";
|
|
367
|
+
pii: "pii";
|
|
367
368
|
}>;
|
|
368
369
|
}, z.core.$strict>>>>;
|
|
369
370
|
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -421,9 +422,9 @@ export declare const ToolsSetSchema: z.ZodObject<{
|
|
|
421
422
|
description: z.ZodString;
|
|
422
423
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
423
424
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
424
|
-
irreversible: "irreversible";
|
|
425
425
|
read: "read";
|
|
426
426
|
write: "write";
|
|
427
|
+
irreversible: "irreversible";
|
|
427
428
|
}>>>;
|
|
428
429
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
429
430
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
package/dist/generated/defs.d.ts
CHANGED
|
@@ -37,25 +37,25 @@ export type Env = z.infer<typeof EnvSchema>;
|
|
|
37
37
|
* gateway.
|
|
38
38
|
*/
|
|
39
39
|
export declare const DevVerbSchema: z.ZodEnum<{
|
|
40
|
-
"chat.end": "chat.end";
|
|
41
40
|
"chat.roster": "chat.roster";
|
|
42
|
-
"chat.say": "chat.say";
|
|
43
41
|
"chat.start": "chat.start";
|
|
44
|
-
"
|
|
42
|
+
"chat.say": "chat.say";
|
|
43
|
+
"chat.end": "chat.end";
|
|
44
|
+
"simulate.roster": "simulate.roster";
|
|
45
|
+
"simulate.start": "simulate.start";
|
|
45
46
|
"goldens.roster": "goldens.roster";
|
|
46
47
|
"goldens.run": "goldens.run";
|
|
47
|
-
"knowledge.eval": "knowledge.eval";
|
|
48
|
-
"knowledge.push": "knowledge.push";
|
|
49
48
|
"knowledge.roster": "knowledge.roster";
|
|
49
|
+
"knowledge.push": "knowledge.push";
|
|
50
|
+
"knowledge.eval": "knowledge.eval";
|
|
51
|
+
"memory.roster": "memory.roster";
|
|
50
52
|
"memory.eval": "memory.eval";
|
|
51
53
|
"memory.extraction": "memory.extraction";
|
|
52
|
-
"memory.roster": "memory.roster";
|
|
53
54
|
"promote.roster": "promote.roster";
|
|
54
55
|
"promote.write": "promote.write";
|
|
55
|
-
"
|
|
56
|
+
"drift.read": "drift.read";
|
|
56
57
|
"reproductions.roster": "reproductions.roster";
|
|
57
|
-
"
|
|
58
|
-
"simulate.start": "simulate.start";
|
|
58
|
+
"reproductions.read": "reproductions.read";
|
|
59
59
|
}>;
|
|
60
60
|
export type DevVerb = z.infer<typeof DevVerbSchema>;
|
|
61
61
|
/**
|
|
@@ -65,25 +65,25 @@ export type DevVerb = z.infer<typeof DevVerbSchema>;
|
|
|
65
65
|
* both are nobody's fault and neither is an error.
|
|
66
66
|
*/
|
|
67
67
|
export declare const EndReasonSchema: z.ZodEnum<{
|
|
68
|
+
caller_hung_up: "caller_hung_up";
|
|
68
69
|
agent_hung_up: "agent_hung_up";
|
|
69
|
-
|
|
70
|
+
supervisor_ended: "supervisor_ended";
|
|
71
|
+
transferred: "transferred";
|
|
72
|
+
no_answer: "no_answer";
|
|
70
73
|
busy: "busy";
|
|
71
|
-
caller_hung_up: "caller_hung_up";
|
|
72
74
|
dial_failed: "dial_failed";
|
|
75
|
+
timeout: "timeout";
|
|
73
76
|
drained: "drained";
|
|
77
|
+
app_detached: "app_detached";
|
|
74
78
|
error: "error";
|
|
75
|
-
no_answer: "no_answer";
|
|
76
|
-
supervisor_ended: "supervisor_ended";
|
|
77
|
-
timeout: "timeout";
|
|
78
|
-
transferred: "transferred";
|
|
79
79
|
}>;
|
|
80
80
|
export type EndReason = z.infer<typeof EndReasonSchema>;
|
|
81
81
|
/** Whose action ended the call. platform covers timeouts, errors and a drained worker. */
|
|
82
82
|
export declare const EndedBySchema: z.ZodEnum<{
|
|
83
83
|
agent: "agent";
|
|
84
84
|
caller: "caller";
|
|
85
|
-
platform: "platform";
|
|
86
85
|
supervisor: "supervisor";
|
|
86
|
+
platform: "platform";
|
|
87
87
|
}>;
|
|
88
88
|
export type EndedBy = z.infer<typeof EndedBySchema>;
|
|
89
89
|
/**
|
|
@@ -92,9 +92,9 @@ export type EndedBy = z.infer<typeof EndedBySchema>;
|
|
|
92
92
|
* nobody asked it — no model was reachable inside the call's judging budget.
|
|
93
93
|
*/
|
|
94
94
|
export declare const ScoreVerdictSchema: z.ZodEnum<{
|
|
95
|
+
held: "held";
|
|
95
96
|
broken: "broken";
|
|
96
97
|
deferred: "deferred";
|
|
97
|
-
held: "held";
|
|
98
98
|
skipped: "skipped";
|
|
99
99
|
}>;
|
|
100
100
|
export type ScoreVerdict = z.infer<typeof ScoreVerdictSchema>;
|
|
@@ -113,8 +113,8 @@ export type TransferMode = z.infer<typeof TransferModeSchema>;
|
|
|
113
113
|
* written by the app.
|
|
114
114
|
*/
|
|
115
115
|
export declare const PromptRegionSchema: z.ZodEnum<{
|
|
116
|
-
dynamic: "dynamic";
|
|
117
116
|
static: "static";
|
|
117
|
+
dynamic: "dynamic";
|
|
118
118
|
}>;
|
|
119
119
|
export type PromptRegion = z.infer<typeof PromptRegionSchema>;
|
|
120
120
|
/**
|
|
@@ -146,8 +146,8 @@ export type PlatformTool = z.infer<typeof PlatformToolSchema>;
|
|
|
146
146
|
export declare const PromptBlockSpecSchema: z.ZodObject<{
|
|
147
147
|
name: z.ZodString;
|
|
148
148
|
region: z.ZodEnum<{
|
|
149
|
-
dynamic: "dynamic";
|
|
150
149
|
static: "static";
|
|
150
|
+
dynamic: "dynamic";
|
|
151
151
|
}>;
|
|
152
152
|
}, z.core.$strict>;
|
|
153
153
|
export type PromptBlockSpec = z.infer<typeof PromptBlockSpecSchema>;
|
|
@@ -156,9 +156,9 @@ export type PromptBlockSpec = z.infer<typeof PromptBlockSpecSchema>;
|
|
|
156
156
|
* session's own.
|
|
157
157
|
*/
|
|
158
158
|
export declare const UserStateSchema: z.ZodEnum<{
|
|
159
|
-
away: "away";
|
|
160
159
|
listening: "listening";
|
|
161
160
|
speaking: "speaking";
|
|
161
|
+
away: "away";
|
|
162
162
|
}>;
|
|
163
163
|
export type UserState = z.infer<typeof UserStateSchema>;
|
|
164
164
|
/**
|
|
@@ -166,10 +166,10 @@ export type UserState = z.infer<typeof UserStateSchema>;
|
|
|
166
166
|
* caller, generating, or playing audio.
|
|
167
167
|
*/
|
|
168
168
|
export declare const AgentStateSchema: z.ZodEnum<{
|
|
169
|
-
idle: "idle";
|
|
170
|
-
initializing: "initializing";
|
|
171
169
|
listening: "listening";
|
|
172
170
|
speaking: "speaking";
|
|
171
|
+
initializing: "initializing";
|
|
172
|
+
idle: "idle";
|
|
173
173
|
thinking: "thinking";
|
|
174
174
|
}>;
|
|
175
175
|
export type AgentState = z.infer<typeof AgentStateSchema>;
|
|
@@ -181,25 +181,25 @@ export type AgentState = z.infer<typeof AgentStateSchema>;
|
|
|
181
181
|
export declare const ParticipantKindSchema: z.ZodEnum<{
|
|
182
182
|
agent: "agent";
|
|
183
183
|
caller: "caller";
|
|
184
|
+
supervisor: "supervisor";
|
|
184
185
|
listener: "listener";
|
|
185
186
|
sip: "sip";
|
|
186
|
-
supervisor: "supervisor";
|
|
187
187
|
}>;
|
|
188
188
|
export type ParticipantKind = z.infer<typeof ParticipantKindSchema>;
|
|
189
189
|
/** What a track carries: a microphone's audio, a camera's video, or a screen share. */
|
|
190
190
|
export declare const TrackKindSchema: z.ZodEnum<{
|
|
191
191
|
audio: "audio";
|
|
192
|
-
screen: "screen";
|
|
193
192
|
video: "video";
|
|
193
|
+
screen: "screen";
|
|
194
194
|
}>;
|
|
195
195
|
export type TrackKind = z.infer<typeof TrackKindSchema>;
|
|
196
196
|
/** Where a track comes from, as livekit's TrackSource names it, in lower case. */
|
|
197
197
|
export declare const TrackSourceSchema: z.ZodEnum<{
|
|
198
|
-
|
|
198
|
+
unknown: "unknown";
|
|
199
199
|
microphone: "microphone";
|
|
200
|
+
camera: "camera";
|
|
200
201
|
screen_share: "screen_share";
|
|
201
202
|
screen_share_audio: "screen_share_audio";
|
|
202
|
-
unknown: "unknown";
|
|
203
203
|
}>;
|
|
204
204
|
export type TrackSource = z.infer<typeof TrackSourceSchema>;
|
|
205
205
|
/**
|
|
@@ -216,9 +216,9 @@ export type EventSource = z.infer<typeof EventSourceSchema>;
|
|
|
216
216
|
* (tenant, the default for a field never declared), or nobody without masking (pii).
|
|
217
217
|
*/
|
|
218
218
|
export declare const VisibilitySchema: z.ZodEnum<{
|
|
219
|
-
pii: "pii";
|
|
220
219
|
public: "public";
|
|
221
220
|
tenant: "tenant";
|
|
221
|
+
pii: "pii";
|
|
222
222
|
}>;
|
|
223
223
|
export type Visibility = z.infer<typeof VisibilitySchema>;
|
|
224
224
|
/**
|
|
@@ -272,9 +272,9 @@ export declare const ToolSpecSchema: z.ZodObject<{
|
|
|
272
272
|
description: z.ZodString;
|
|
273
273
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
274
274
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
275
|
-
irreversible: "irreversible";
|
|
276
275
|
read: "read";
|
|
277
276
|
write: "write";
|
|
277
|
+
irreversible: "irreversible";
|
|
278
278
|
}>>>;
|
|
279
279
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
280
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -312,9 +312,9 @@ export type MemoryFact = z.infer<typeof MemoryFactSchema>;
|
|
|
312
312
|
*/
|
|
313
313
|
export declare const MemoryOpSchema: z.ZodObject<{
|
|
314
314
|
op: z.ZodEnum<{
|
|
315
|
-
forget: "forget";
|
|
316
315
|
recall: "recall";
|
|
317
316
|
remember: "remember";
|
|
317
|
+
forget: "forget";
|
|
318
318
|
}>;
|
|
319
319
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
320
|
query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -349,12 +349,12 @@ export declare const CostRowSchema: z.ZodObject<{
|
|
|
349
349
|
provider: z.ZodString;
|
|
350
350
|
model: z.ZodString;
|
|
351
351
|
unit: z.ZodEnum<{
|
|
352
|
-
audio_seconds: "audio_seconds";
|
|
353
|
-
cache_creation_tokens: "cache_creation_tokens";
|
|
354
|
-
cached_input_tokens: "cached_input_tokens";
|
|
355
|
-
characters: "characters";
|
|
356
352
|
input_tokens: "input_tokens";
|
|
353
|
+
cached_input_tokens: "cached_input_tokens";
|
|
354
|
+
cache_creation_tokens: "cache_creation_tokens";
|
|
357
355
|
output_tokens: "output_tokens";
|
|
356
|
+
characters: "characters";
|
|
357
|
+
audio_seconds: "audio_seconds";
|
|
358
358
|
requests: "requests";
|
|
359
359
|
session_seconds: "session_seconds";
|
|
360
360
|
}>;
|
|
@@ -384,12 +384,12 @@ export declare const CostSchema: z.ZodObject<{
|
|
|
384
384
|
provider: z.ZodString;
|
|
385
385
|
model: z.ZodString;
|
|
386
386
|
unit: z.ZodEnum<{
|
|
387
|
-
audio_seconds: "audio_seconds";
|
|
388
|
-
cache_creation_tokens: "cache_creation_tokens";
|
|
389
|
-
cached_input_tokens: "cached_input_tokens";
|
|
390
|
-
characters: "characters";
|
|
391
387
|
input_tokens: "input_tokens";
|
|
388
|
+
cached_input_tokens: "cached_input_tokens";
|
|
389
|
+
cache_creation_tokens: "cache_creation_tokens";
|
|
392
390
|
output_tokens: "output_tokens";
|
|
391
|
+
characters: "characters";
|
|
392
|
+
audio_seconds: "audio_seconds";
|
|
393
393
|
requests: "requests";
|
|
394
394
|
session_seconds: "session_seconds";
|
|
395
395
|
}>;
|
|
@@ -437,9 +437,9 @@ export type Pronunciation = z.infer<typeof PronunciationSchema>;
|
|
|
437
437
|
export declare const StateFieldSpecSchema: z.ZodObject<{
|
|
438
438
|
name: z.ZodString;
|
|
439
439
|
visibility: z.ZodEnum<{
|
|
440
|
-
pii: "pii";
|
|
441
440
|
public: "public";
|
|
442
441
|
tenant: "tenant";
|
|
442
|
+
pii: "pii";
|
|
443
443
|
}>;
|
|
444
444
|
}, z.core.$strict>;
|
|
445
445
|
export type StateFieldSpec = z.infer<typeof StateFieldSpecSchema>;
|
|
@@ -521,8 +521,8 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
521
521
|
prompt: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
522
522
|
name: z.ZodString;
|
|
523
523
|
region: z.ZodEnum<{
|
|
524
|
-
dynamic: "dynamic";
|
|
525
524
|
static: "static";
|
|
525
|
+
dynamic: "dynamic";
|
|
526
526
|
}>;
|
|
527
527
|
}, z.core.$strict>>>>;
|
|
528
528
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -585,9 +585,9 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
585
585
|
description: z.ZodString;
|
|
586
586
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
587
587
|
side_effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
588
|
-
irreversible: "irreversible";
|
|
589
588
|
read: "read";
|
|
590
589
|
write: "write";
|
|
590
|
+
irreversible: "irreversible";
|
|
591
591
|
}>>>;
|
|
592
592
|
confirm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
593
|
pii: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -597,9 +597,9 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
597
597
|
state_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
598
598
|
name: z.ZodString;
|
|
599
599
|
visibility: z.ZodEnum<{
|
|
600
|
-
pii: "pii";
|
|
601
600
|
public: "public";
|
|
602
601
|
tenant: "tenant";
|
|
602
|
+
pii: "pii";
|
|
603
603
|
}>;
|
|
604
604
|
}, z.core.$strict>>>>;
|
|
605
605
|
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -43,10 +43,10 @@ export type AgentRegistered = z.infer<typeof AgentRegisteredSchema>;
|
|
|
43
43
|
/** The agent's state changed, in the session's own words. */
|
|
44
44
|
export declare const AgentStateChangedSchema: z.ZodObject<{
|
|
45
45
|
state: z.ZodEnum<{
|
|
46
|
-
idle: "idle";
|
|
47
|
-
initializing: "initializing";
|
|
48
46
|
listening: "listening";
|
|
49
47
|
speaking: "speaking";
|
|
48
|
+
initializing: "initializing";
|
|
49
|
+
idle: "idle";
|
|
50
50
|
thinking: "thinking";
|
|
51
51
|
}>;
|
|
52
52
|
}, z.core.$strict>;
|
|
@@ -92,23 +92,23 @@ export type CallDialing = z.infer<typeof CallDialingSchema>;
|
|
|
92
92
|
/** The call is over. Nothing about the conversation follows; call.summary still does. */
|
|
93
93
|
export declare const CallEndedSchema: z.ZodObject<{
|
|
94
94
|
reason: z.ZodEnum<{
|
|
95
|
+
caller_hung_up: "caller_hung_up";
|
|
95
96
|
agent_hung_up: "agent_hung_up";
|
|
96
|
-
|
|
97
|
+
supervisor_ended: "supervisor_ended";
|
|
98
|
+
transferred: "transferred";
|
|
99
|
+
no_answer: "no_answer";
|
|
97
100
|
busy: "busy";
|
|
98
|
-
caller_hung_up: "caller_hung_up";
|
|
99
101
|
dial_failed: "dial_failed";
|
|
102
|
+
timeout: "timeout";
|
|
100
103
|
drained: "drained";
|
|
104
|
+
app_detached: "app_detached";
|
|
101
105
|
error: "error";
|
|
102
|
-
no_answer: "no_answer";
|
|
103
|
-
supervisor_ended: "supervisor_ended";
|
|
104
|
-
timeout: "timeout";
|
|
105
|
-
transferred: "transferred";
|
|
106
106
|
}>;
|
|
107
107
|
ended_by: z.ZodEnum<{
|
|
108
108
|
agent: "agent";
|
|
109
109
|
caller: "caller";
|
|
110
|
-
platform: "platform";
|
|
111
110
|
supervisor: "supervisor";
|
|
111
|
+
platform: "platform";
|
|
112
112
|
}>;
|
|
113
113
|
ended_at: z.ZodNumber;
|
|
114
114
|
duration_s: z.ZodNumber;
|
|
@@ -171,9 +171,9 @@ export type JudgmentEvidence = z.infer<typeof JudgmentEvidenceSchema>;
|
|
|
171
171
|
export declare const JudgmentSchema: z.ZodObject<{
|
|
172
172
|
name: z.ZodString;
|
|
173
173
|
verdict: z.ZodEnum<{
|
|
174
|
+
held: "held";
|
|
174
175
|
broken: "broken";
|
|
175
176
|
deferred: "deferred";
|
|
176
|
-
held: "held";
|
|
177
177
|
skipped: "skipped";
|
|
178
178
|
}>;
|
|
179
179
|
criteria: z.ZodString;
|
|
@@ -194,9 +194,9 @@ export declare const CallScoreSchema: z.ZodObject<{
|
|
|
194
194
|
judges: z.ZodArray<z.ZodObject<{
|
|
195
195
|
name: z.ZodString;
|
|
196
196
|
verdict: z.ZodEnum<{
|
|
197
|
+
held: "held";
|
|
197
198
|
broken: "broken";
|
|
198
199
|
deferred: "deferred";
|
|
199
|
-
held: "held";
|
|
200
200
|
skipped: "skipped";
|
|
201
201
|
}>;
|
|
202
202
|
criteria: z.ZodString;
|
|
@@ -248,17 +248,17 @@ export type CallStarted = z.infer<typeof CallStartedSchema>;
|
|
|
248
248
|
*/
|
|
249
249
|
export declare const CallSummarySchema: z.ZodObject<{
|
|
250
250
|
reason: z.ZodEnum<{
|
|
251
|
+
caller_hung_up: "caller_hung_up";
|
|
251
252
|
agent_hung_up: "agent_hung_up";
|
|
252
|
-
|
|
253
|
+
supervisor_ended: "supervisor_ended";
|
|
254
|
+
transferred: "transferred";
|
|
255
|
+
no_answer: "no_answer";
|
|
253
256
|
busy: "busy";
|
|
254
|
-
caller_hung_up: "caller_hung_up";
|
|
255
257
|
dial_failed: "dial_failed";
|
|
258
|
+
timeout: "timeout";
|
|
256
259
|
drained: "drained";
|
|
260
|
+
app_detached: "app_detached";
|
|
257
261
|
error: "error";
|
|
258
|
-
no_answer: "no_answer";
|
|
259
|
-
supervisor_ended: "supervisor_ended";
|
|
260
|
-
timeout: "timeout";
|
|
261
|
-
transferred: "transferred";
|
|
262
262
|
}>;
|
|
263
263
|
outcome: z.ZodString;
|
|
264
264
|
duration_s: z.ZodNumber;
|
|
@@ -318,12 +318,12 @@ export declare const CallSummarySchema: z.ZodObject<{
|
|
|
318
318
|
provider: z.ZodString;
|
|
319
319
|
model: z.ZodString;
|
|
320
320
|
unit: z.ZodEnum<{
|
|
321
|
-
audio_seconds: "audio_seconds";
|
|
322
|
-
cache_creation_tokens: "cache_creation_tokens";
|
|
323
|
-
cached_input_tokens: "cached_input_tokens";
|
|
324
|
-
characters: "characters";
|
|
325
321
|
input_tokens: "input_tokens";
|
|
322
|
+
cached_input_tokens: "cached_input_tokens";
|
|
323
|
+
cache_creation_tokens: "cache_creation_tokens";
|
|
326
324
|
output_tokens: "output_tokens";
|
|
325
|
+
characters: "characters";
|
|
326
|
+
audio_seconds: "audio_seconds";
|
|
327
327
|
requests: "requests";
|
|
328
328
|
session_seconds: "session_seconds";
|
|
329
329
|
}>;
|
|
@@ -383,10 +383,10 @@ export declare const ConfirmDeclinedSchema: z.ZodObject<{
|
|
|
383
383
|
audience: z.ZodString;
|
|
384
384
|
said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
385
385
|
reason: z.ZodEnum<{
|
|
386
|
-
|
|
386
|
+
timeout: "timeout";
|
|
387
387
|
changed: "changed";
|
|
388
|
+
cancelled: "cancelled";
|
|
388
389
|
no: "no";
|
|
389
|
-
timeout: "timeout";
|
|
390
390
|
}>;
|
|
391
391
|
}, z.core.$strict>;
|
|
392
392
|
export type ConfirmDeclined = z.infer<typeof ConfirmDeclinedSchema>;
|
|
@@ -422,12 +422,12 @@ export type ConfirmRequest = z.infer<typeof ConfirmRequestSchema>;
|
|
|
422
422
|
export declare const CreditsExhaustedSchema: z.ZodObject<{
|
|
423
423
|
org: z.ZodString;
|
|
424
424
|
quota: z.ZodEnum<{
|
|
425
|
+
minutes: "minutes";
|
|
426
|
+
messages: "messages";
|
|
425
427
|
agents: "agents";
|
|
426
428
|
concurrent_calls: "concurrent_calls";
|
|
427
|
-
knowledge_chunks: "knowledge_chunks";
|
|
428
429
|
memory_facts: "memory_facts";
|
|
429
|
-
|
|
430
|
-
minutes: "minutes";
|
|
430
|
+
knowledge_chunks: "knowledge_chunks";
|
|
431
431
|
numbers: "numbers";
|
|
432
432
|
seats: "seats";
|
|
433
433
|
}>;
|
|
@@ -448,25 +448,25 @@ export type Custom = z.infer<typeof CustomSchema>;
|
|
|
448
448
|
export declare const DevRequestSchema: z.ZodObject<{
|
|
449
449
|
id: z.ZodString;
|
|
450
450
|
verb: z.ZodEnum<{
|
|
451
|
-
"chat.end": "chat.end";
|
|
452
451
|
"chat.roster": "chat.roster";
|
|
453
|
-
"chat.say": "chat.say";
|
|
454
452
|
"chat.start": "chat.start";
|
|
455
|
-
"
|
|
453
|
+
"chat.say": "chat.say";
|
|
454
|
+
"chat.end": "chat.end";
|
|
455
|
+
"simulate.roster": "simulate.roster";
|
|
456
|
+
"simulate.start": "simulate.start";
|
|
456
457
|
"goldens.roster": "goldens.roster";
|
|
457
458
|
"goldens.run": "goldens.run";
|
|
458
|
-
"knowledge.eval": "knowledge.eval";
|
|
459
|
-
"knowledge.push": "knowledge.push";
|
|
460
459
|
"knowledge.roster": "knowledge.roster";
|
|
460
|
+
"knowledge.push": "knowledge.push";
|
|
461
|
+
"knowledge.eval": "knowledge.eval";
|
|
462
|
+
"memory.roster": "memory.roster";
|
|
461
463
|
"memory.eval": "memory.eval";
|
|
462
464
|
"memory.extraction": "memory.extraction";
|
|
463
|
-
"memory.roster": "memory.roster";
|
|
464
465
|
"promote.roster": "promote.roster";
|
|
465
466
|
"promote.write": "promote.write";
|
|
466
|
-
"
|
|
467
|
+
"drift.read": "drift.read";
|
|
467
468
|
"reproductions.roster": "reproductions.roster";
|
|
468
|
-
"
|
|
469
|
-
"simulate.start": "simulate.start";
|
|
469
|
+
"reproductions.read": "reproductions.read";
|
|
470
470
|
}>;
|
|
471
471
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
472
472
|
}, z.core.$strict>;
|
|
@@ -536,11 +536,11 @@ export declare const LogGapSchema: z.ZodObject<{
|
|
|
536
536
|
agent: z.ZodString;
|
|
537
537
|
call: z.ZodNullable<z.ZodString>;
|
|
538
538
|
status: z.ZodEnum<{
|
|
539
|
-
active: "active";
|
|
540
|
-
dialing: "dialing";
|
|
541
|
-
ended: "ended";
|
|
542
539
|
idle: "idle";
|
|
543
540
|
ringing: "ringing";
|
|
541
|
+
dialing: "dialing";
|
|
542
|
+
active: "active";
|
|
543
|
+
ended: "ended";
|
|
544
544
|
}>;
|
|
545
545
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
546
546
|
phone: "phone";
|
|
@@ -568,9 +568,9 @@ export declare const LogGapSchema: z.ZodObject<{
|
|
|
568
568
|
kind: z.ZodEnum<{
|
|
569
569
|
agent: "agent";
|
|
570
570
|
caller: "caller";
|
|
571
|
+
supervisor: "supervisor";
|
|
571
572
|
listener: "listener";
|
|
572
573
|
sip: "sip";
|
|
573
|
-
supervisor: "supervisor";
|
|
574
574
|
}>;
|
|
575
575
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
576
576
|
joined_at: z.ZodNumber;
|
|
@@ -582,29 +582,29 @@ export declare const LogGapSchema: z.ZodObject<{
|
|
|
582
582
|
started_at: z.ZodNullable<z.ZodNumber>;
|
|
583
583
|
ended_at: z.ZodNullable<z.ZodNumber>;
|
|
584
584
|
end_reason: z.ZodNullable<z.ZodEnum<{
|
|
585
|
+
caller_hung_up: "caller_hung_up";
|
|
585
586
|
agent_hung_up: "agent_hung_up";
|
|
586
|
-
|
|
587
|
+
supervisor_ended: "supervisor_ended";
|
|
588
|
+
transferred: "transferred";
|
|
589
|
+
no_answer: "no_answer";
|
|
587
590
|
busy: "busy";
|
|
588
|
-
caller_hung_up: "caller_hung_up";
|
|
589
591
|
dial_failed: "dial_failed";
|
|
592
|
+
timeout: "timeout";
|
|
590
593
|
drained: "drained";
|
|
594
|
+
app_detached: "app_detached";
|
|
591
595
|
error: "error";
|
|
592
|
-
no_answer: "no_answer";
|
|
593
|
-
supervisor_ended: "supervisor_ended";
|
|
594
|
-
timeout: "timeout";
|
|
595
|
-
transferred: "transferred";
|
|
596
596
|
}>>;
|
|
597
597
|
outcome: z.ZodNullable<z.ZodString>;
|
|
598
598
|
user_state: z.ZodNullable<z.ZodEnum<{
|
|
599
|
-
away: "away";
|
|
600
599
|
listening: "listening";
|
|
601
600
|
speaking: "speaking";
|
|
601
|
+
away: "away";
|
|
602
602
|
}>>;
|
|
603
603
|
agent_state: z.ZodNullable<z.ZodEnum<{
|
|
604
|
-
idle: "idle";
|
|
605
|
-
initializing: "initializing";
|
|
606
604
|
listening: "listening";
|
|
607
605
|
speaking: "speaking";
|
|
606
|
+
initializing: "initializing";
|
|
607
|
+
idle: "idle";
|
|
608
608
|
thinking: "thinking";
|
|
609
609
|
}>>;
|
|
610
610
|
live: z.ZodObject<{
|
|
@@ -820,9 +820,9 @@ export declare const LogGapSchema: z.ZodObject<{
|
|
|
820
820
|
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
821
821
|
speech_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
822
822
|
status: z.ZodEnum<{
|
|
823
|
+
running: "running";
|
|
823
824
|
done: "done";
|
|
824
825
|
failed: "failed";
|
|
825
|
-
running: "running";
|
|
826
826
|
}>;
|
|
827
827
|
output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
828
828
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -852,18 +852,18 @@ export declare const LogGapSchema: z.ZodObject<{
|
|
|
852
852
|
audience: z.ZodString;
|
|
853
853
|
phrase: z.ZodString;
|
|
854
854
|
status: z.ZodEnum<{
|
|
855
|
-
declined: "declined";
|
|
856
|
-
granted: "granted";
|
|
857
855
|
pending: "pending";
|
|
856
|
+
granted: "granted";
|
|
857
|
+
declined: "declined";
|
|
858
858
|
}>;
|
|
859
859
|
said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
860
860
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
861
861
|
}, z.core.$strict>>;
|
|
862
862
|
memory: z.ZodArray<z.ZodObject<{
|
|
863
863
|
op: z.ZodEnum<{
|
|
864
|
-
forget: "forget";
|
|
865
864
|
recall: "recall";
|
|
866
865
|
remember: "remember";
|
|
866
|
+
forget: "forget";
|
|
867
867
|
}>;
|
|
868
868
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
869
869
|
query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -963,12 +963,12 @@ export declare const LogGapSchema: z.ZodObject<{
|
|
|
963
963
|
provider: z.ZodString;
|
|
964
964
|
model: z.ZodString;
|
|
965
965
|
unit: z.ZodEnum<{
|
|
966
|
-
audio_seconds: "audio_seconds";
|
|
967
|
-
cache_creation_tokens: "cache_creation_tokens";
|
|
968
|
-
cached_input_tokens: "cached_input_tokens";
|
|
969
|
-
characters: "characters";
|
|
970
966
|
input_tokens: "input_tokens";
|
|
967
|
+
cached_input_tokens: "cached_input_tokens";
|
|
968
|
+
cache_creation_tokens: "cache_creation_tokens";
|
|
971
969
|
output_tokens: "output_tokens";
|
|
970
|
+
characters: "characters";
|
|
971
|
+
audio_seconds: "audio_seconds";
|
|
972
972
|
requests: "requests";
|
|
973
973
|
session_seconds: "session_seconds";
|
|
974
974
|
}>;
|
|
@@ -1014,9 +1014,9 @@ export type LogGap = z.infer<typeof LogGapSchema>;
|
|
|
1014
1014
|
export declare const MemoryOpsSchema: z.ZodObject<{
|
|
1015
1015
|
ops: z.ZodArray<z.ZodObject<{
|
|
1016
1016
|
op: z.ZodEnum<{
|
|
1017
|
-
forget: "forget";
|
|
1018
1017
|
recall: "recall";
|
|
1019
1018
|
remember: "remember";
|
|
1019
|
+
forget: "forget";
|
|
1020
1020
|
}>;
|
|
1021
1021
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1022
1022
|
query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1218,9 +1218,9 @@ export type UserTurnEnded = z.infer<typeof UserTurnEndedSchema>;
|
|
|
1218
1218
|
/** The caller's state changed, in the session's own words. */
|
|
1219
1219
|
export declare const UserStateChangedSchema: z.ZodObject<{
|
|
1220
1220
|
state: z.ZodEnum<{
|
|
1221
|
-
away: "away";
|
|
1222
1221
|
listening: "listening";
|
|
1223
1222
|
speaking: "speaking";
|
|
1223
|
+
away: "away";
|
|
1224
1224
|
}>;
|
|
1225
1225
|
}, z.core.$strict>;
|
|
1226
1226
|
export type UserStateChanged = z.infer<typeof UserStateChangedSchema>;
|