@pinecall/protocol 0.3.0 → 0.4.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 +18 -8
- package/dist/generated/defs.d.ts +50 -41
- package/dist/generated/defs.js +2 -0
- package/dist/generated/events.d.ts +58 -58
- package/dist/generated/registry.d.ts +82 -72
- package/dist/generated/rest.d.ts +679 -61
- package/dist/generated/rest.js +155 -5
- package/dist/generated/room.d.ts +7 -7
- package/dist/generated/state.d.ts +29 -29
- package/package.json +1 -1
package/dist/generated/rest.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ export declare const CallStateSchema: z.ZodObject<{
|
|
|
6
6
|
agent: z.ZodString;
|
|
7
7
|
call: z.ZodNullable<z.ZodString>;
|
|
8
8
|
status: z.ZodEnum<{
|
|
9
|
-
idle: "idle";
|
|
10
|
-
ringing: "ringing";
|
|
11
|
-
dialing: "dialing";
|
|
12
9
|
active: "active";
|
|
10
|
+
dialing: "dialing";
|
|
13
11
|
ended: "ended";
|
|
12
|
+
idle: "idle";
|
|
13
|
+
ringing: "ringing";
|
|
14
14
|
}>;
|
|
15
15
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
16
16
|
phone: "phone";
|
|
@@ -38,9 +38,9 @@ export declare const CallStateSchema: z.ZodObject<{
|
|
|
38
38
|
kind: z.ZodEnum<{
|
|
39
39
|
agent: "agent";
|
|
40
40
|
caller: "caller";
|
|
41
|
-
supervisor: "supervisor";
|
|
42
41
|
listener: "listener";
|
|
43
42
|
sip: "sip";
|
|
43
|
+
supervisor: "supervisor";
|
|
44
44
|
}>;
|
|
45
45
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
joined_at: z.ZodNumber;
|
|
@@ -52,29 +52,29 @@ export declare const CallStateSchema: z.ZodObject<{
|
|
|
52
52
|
started_at: z.ZodNullable<z.ZodNumber>;
|
|
53
53
|
ended_at: z.ZodNullable<z.ZodNumber>;
|
|
54
54
|
end_reason: z.ZodNullable<z.ZodEnum<{
|
|
55
|
-
caller_hung_up: "caller_hung_up";
|
|
56
55
|
agent_hung_up: "agent_hung_up";
|
|
57
|
-
|
|
58
|
-
transferred: "transferred";
|
|
59
|
-
no_answer: "no_answer";
|
|
56
|
+
app_detached: "app_detached";
|
|
60
57
|
busy: "busy";
|
|
58
|
+
caller_hung_up: "caller_hung_up";
|
|
61
59
|
dial_failed: "dial_failed";
|
|
62
|
-
timeout: "timeout";
|
|
63
60
|
drained: "drained";
|
|
64
|
-
app_detached: "app_detached";
|
|
65
61
|
error: "error";
|
|
62
|
+
no_answer: "no_answer";
|
|
63
|
+
supervisor_ended: "supervisor_ended";
|
|
64
|
+
timeout: "timeout";
|
|
65
|
+
transferred: "transferred";
|
|
66
66
|
}>>;
|
|
67
67
|
outcome: z.ZodNullable<z.ZodString>;
|
|
68
68
|
user_state: z.ZodNullable<z.ZodEnum<{
|
|
69
|
+
away: "away";
|
|
69
70
|
listening: "listening";
|
|
70
71
|
speaking: "speaking";
|
|
71
|
-
away: "away";
|
|
72
72
|
}>>;
|
|
73
73
|
agent_state: z.ZodNullable<z.ZodEnum<{
|
|
74
|
+
idle: "idle";
|
|
75
|
+
initializing: "initializing";
|
|
74
76
|
listening: "listening";
|
|
75
77
|
speaking: "speaking";
|
|
76
|
-
initializing: "initializing";
|
|
77
|
-
idle: "idle";
|
|
78
78
|
thinking: "thinking";
|
|
79
79
|
}>>;
|
|
80
80
|
live: z.ZodObject<{
|
|
@@ -290,9 +290,9 @@ export declare const CallStateSchema: z.ZodObject<{
|
|
|
290
290
|
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
291
291
|
speech_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
292
|
status: z.ZodEnum<{
|
|
293
|
-
running: "running";
|
|
294
293
|
done: "done";
|
|
295
294
|
failed: "failed";
|
|
295
|
+
running: "running";
|
|
296
296
|
}>;
|
|
297
297
|
output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
298
298
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -322,18 +322,18 @@ export declare const CallStateSchema: z.ZodObject<{
|
|
|
322
322
|
audience: z.ZodString;
|
|
323
323
|
phrase: z.ZodString;
|
|
324
324
|
status: z.ZodEnum<{
|
|
325
|
-
pending: "pending";
|
|
326
|
-
granted: "granted";
|
|
327
325
|
declined: "declined";
|
|
326
|
+
granted: "granted";
|
|
327
|
+
pending: "pending";
|
|
328
328
|
}>;
|
|
329
329
|
said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
330
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
331
|
}, z.core.$strict>>;
|
|
332
332
|
memory: z.ZodArray<z.ZodObject<{
|
|
333
333
|
op: z.ZodEnum<{
|
|
334
|
+
forget: "forget";
|
|
334
335
|
recall: "recall";
|
|
335
336
|
remember: "remember";
|
|
336
|
-
forget: "forget";
|
|
337
337
|
}>;
|
|
338
338
|
contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
339
|
query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -433,12 +433,12 @@ export declare const CallStateSchema: z.ZodObject<{
|
|
|
433
433
|
provider: z.ZodString;
|
|
434
434
|
model: z.ZodString;
|
|
435
435
|
unit: z.ZodEnum<{
|
|
436
|
-
|
|
437
|
-
cached_input_tokens: "cached_input_tokens";
|
|
436
|
+
audio_seconds: "audio_seconds";
|
|
438
437
|
cache_creation_tokens: "cache_creation_tokens";
|
|
439
|
-
|
|
438
|
+
cached_input_tokens: "cached_input_tokens";
|
|
440
439
|
characters: "characters";
|
|
441
|
-
|
|
440
|
+
input_tokens: "input_tokens";
|
|
441
|
+
output_tokens: "output_tokens";
|
|
442
442
|
requests: "requests";
|
|
443
443
|
session_seconds: "session_seconds";
|
|
444
444
|
}>;
|
|
@@ -511,9 +511,9 @@ export type SessionScore = z.infer<typeof SessionScoreSchema>;
|
|
|
511
511
|
* committing the business to something no tool call records.
|
|
512
512
|
*/
|
|
513
513
|
export declare const SessionFlagSchema: z.ZodEnum<{
|
|
514
|
-
promise: "promise";
|
|
515
514
|
escalated: "escalated";
|
|
516
515
|
low_score: "low_score";
|
|
516
|
+
promise: "promise";
|
|
517
517
|
}>;
|
|
518
518
|
export type SessionFlag = z.infer<typeof SessionFlagSchema>;
|
|
519
519
|
/** One call as a list draws it: which call, how far the log got, and the state's own fields. */
|
|
@@ -523,11 +523,11 @@ export declare const SessionLineSchema: z.ZodObject<{
|
|
|
523
523
|
live: z.ZodBoolean;
|
|
524
524
|
last_seq: z.ZodInt;
|
|
525
525
|
status: z.ZodEnum<{
|
|
526
|
-
idle: "idle";
|
|
527
|
-
ringing: "ringing";
|
|
528
|
-
dialing: "dialing";
|
|
529
526
|
active: "active";
|
|
527
|
+
dialing: "dialing";
|
|
530
528
|
ended: "ended";
|
|
529
|
+
idle: "idle";
|
|
530
|
+
ringing: "ringing";
|
|
531
531
|
}>;
|
|
532
532
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
533
533
|
phone: "phone";
|
|
@@ -550,17 +550,17 @@ export declare const SessionLineSchema: z.ZodObject<{
|
|
|
550
550
|
started_at: z.ZodNullable<z.ZodNumber>;
|
|
551
551
|
ended_at: z.ZodNullable<z.ZodNumber>;
|
|
552
552
|
end_reason: z.ZodNullable<z.ZodEnum<{
|
|
553
|
-
caller_hung_up: "caller_hung_up";
|
|
554
553
|
agent_hung_up: "agent_hung_up";
|
|
555
|
-
|
|
556
|
-
transferred: "transferred";
|
|
557
|
-
no_answer: "no_answer";
|
|
554
|
+
app_detached: "app_detached";
|
|
558
555
|
busy: "busy";
|
|
556
|
+
caller_hung_up: "caller_hung_up";
|
|
559
557
|
dial_failed: "dial_failed";
|
|
560
|
-
timeout: "timeout";
|
|
561
558
|
drained: "drained";
|
|
562
|
-
app_detached: "app_detached";
|
|
563
559
|
error: "error";
|
|
560
|
+
no_answer: "no_answer";
|
|
561
|
+
supervisor_ended: "supervisor_ended";
|
|
562
|
+
timeout: "timeout";
|
|
563
|
+
transferred: "transferred";
|
|
564
564
|
}>>;
|
|
565
565
|
outcome: z.ZodNullable<z.ZodString>;
|
|
566
566
|
cost: z.ZodNullable<z.ZodObject<{
|
|
@@ -574,12 +574,12 @@ export declare const SessionLineSchema: z.ZodObject<{
|
|
|
574
574
|
provider: z.ZodString;
|
|
575
575
|
model: z.ZodString;
|
|
576
576
|
unit: z.ZodEnum<{
|
|
577
|
-
|
|
578
|
-
cached_input_tokens: "cached_input_tokens";
|
|
577
|
+
audio_seconds: "audio_seconds";
|
|
579
578
|
cache_creation_tokens: "cache_creation_tokens";
|
|
580
|
-
|
|
579
|
+
cached_input_tokens: "cached_input_tokens";
|
|
581
580
|
characters: "characters";
|
|
582
|
-
|
|
581
|
+
input_tokens: "input_tokens";
|
|
582
|
+
output_tokens: "output_tokens";
|
|
583
583
|
requests: "requests";
|
|
584
584
|
session_seconds: "session_seconds";
|
|
585
585
|
}>;
|
|
@@ -599,9 +599,9 @@ export declare const SessionLineSchema: z.ZodObject<{
|
|
|
599
599
|
reason: z.ZodNullable<z.ZodString>;
|
|
600
600
|
}, z.core.$strict>>>>;
|
|
601
601
|
flags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
602
|
-
promise: "promise";
|
|
603
602
|
escalated: "escalated";
|
|
604
603
|
low_score: "low_score";
|
|
604
|
+
promise: "promise";
|
|
605
605
|
}>>>>;
|
|
606
606
|
}, z.core.$strict>;
|
|
607
607
|
export type SessionLine = z.infer<typeof SessionLineSchema>;
|
|
@@ -616,11 +616,11 @@ export declare const SessionListSchema: z.ZodObject<{
|
|
|
616
616
|
live: z.ZodBoolean;
|
|
617
617
|
last_seq: z.ZodInt;
|
|
618
618
|
status: z.ZodEnum<{
|
|
619
|
-
idle: "idle";
|
|
620
|
-
ringing: "ringing";
|
|
621
|
-
dialing: "dialing";
|
|
622
619
|
active: "active";
|
|
620
|
+
dialing: "dialing";
|
|
623
621
|
ended: "ended";
|
|
622
|
+
idle: "idle";
|
|
623
|
+
ringing: "ringing";
|
|
624
624
|
}>;
|
|
625
625
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
626
626
|
phone: "phone";
|
|
@@ -643,17 +643,17 @@ export declare const SessionListSchema: z.ZodObject<{
|
|
|
643
643
|
started_at: z.ZodNullable<z.ZodNumber>;
|
|
644
644
|
ended_at: z.ZodNullable<z.ZodNumber>;
|
|
645
645
|
end_reason: z.ZodNullable<z.ZodEnum<{
|
|
646
|
-
caller_hung_up: "caller_hung_up";
|
|
647
646
|
agent_hung_up: "agent_hung_up";
|
|
648
|
-
|
|
649
|
-
transferred: "transferred";
|
|
650
|
-
no_answer: "no_answer";
|
|
647
|
+
app_detached: "app_detached";
|
|
651
648
|
busy: "busy";
|
|
649
|
+
caller_hung_up: "caller_hung_up";
|
|
652
650
|
dial_failed: "dial_failed";
|
|
653
|
-
timeout: "timeout";
|
|
654
651
|
drained: "drained";
|
|
655
|
-
app_detached: "app_detached";
|
|
656
652
|
error: "error";
|
|
653
|
+
no_answer: "no_answer";
|
|
654
|
+
supervisor_ended: "supervisor_ended";
|
|
655
|
+
timeout: "timeout";
|
|
656
|
+
transferred: "transferred";
|
|
657
657
|
}>>;
|
|
658
658
|
outcome: z.ZodNullable<z.ZodString>;
|
|
659
659
|
cost: z.ZodNullable<z.ZodObject<{
|
|
@@ -667,12 +667,12 @@ export declare const SessionListSchema: z.ZodObject<{
|
|
|
667
667
|
provider: z.ZodString;
|
|
668
668
|
model: z.ZodString;
|
|
669
669
|
unit: z.ZodEnum<{
|
|
670
|
-
|
|
671
|
-
cached_input_tokens: "cached_input_tokens";
|
|
670
|
+
audio_seconds: "audio_seconds";
|
|
672
671
|
cache_creation_tokens: "cache_creation_tokens";
|
|
673
|
-
|
|
672
|
+
cached_input_tokens: "cached_input_tokens";
|
|
674
673
|
characters: "characters";
|
|
675
|
-
|
|
674
|
+
input_tokens: "input_tokens";
|
|
675
|
+
output_tokens: "output_tokens";
|
|
676
676
|
requests: "requests";
|
|
677
677
|
session_seconds: "session_seconds";
|
|
678
678
|
}>;
|
|
@@ -692,9 +692,9 @@ export declare const SessionListSchema: z.ZodObject<{
|
|
|
692
692
|
reason: z.ZodNullable<z.ZodString>;
|
|
693
693
|
}, z.core.$strict>>>>;
|
|
694
694
|
flags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
695
|
-
promise: "promise";
|
|
696
695
|
escalated: "escalated";
|
|
697
696
|
low_score: "low_score";
|
|
697
|
+
promise: "promise";
|
|
698
698
|
}>>>>;
|
|
699
699
|
}, z.core.$strict>>;
|
|
700
700
|
total: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodInt>>>;
|
|
@@ -779,8 +779,8 @@ export type JudgingWanted = z.infer<typeof JudgingWantedSchema>;
|
|
|
779
779
|
*/
|
|
780
780
|
export declare const ThreadKindSchema: z.ZodEnum<{
|
|
781
781
|
call: "call";
|
|
782
|
-
out: "out";
|
|
783
782
|
in: "in";
|
|
783
|
+
out: "out";
|
|
784
784
|
}>;
|
|
785
785
|
export type ThreadKind = z.infer<typeof ThreadKindSchema>;
|
|
786
786
|
/** The newest thing on a contact's thread. */
|
|
@@ -789,8 +789,8 @@ export declare const ThreadLastSchema: z.ZodObject<{
|
|
|
789
789
|
at: z.ZodNumber;
|
|
790
790
|
kind: z.ZodEnum<{
|
|
791
791
|
call: "call";
|
|
792
|
-
out: "out";
|
|
793
792
|
in: "in";
|
|
793
|
+
out: "out";
|
|
794
794
|
}>;
|
|
795
795
|
}, z.core.$strict>;
|
|
796
796
|
export type ThreadLast = z.infer<typeof ThreadLastSchema>;
|
|
@@ -808,8 +808,8 @@ export declare const ThreadLineSchema: z.ZodObject<{
|
|
|
808
808
|
at: z.ZodNumber;
|
|
809
809
|
kind: z.ZodEnum<{
|
|
810
810
|
call: "call";
|
|
811
|
-
out: "out";
|
|
812
811
|
in: "in";
|
|
812
|
+
out: "out";
|
|
813
813
|
}>;
|
|
814
814
|
}, z.core.$strict>;
|
|
815
815
|
unread: z.ZodInt;
|
|
@@ -831,8 +831,8 @@ export declare const ThreadListSchema: z.ZodObject<{
|
|
|
831
831
|
at: z.ZodNumber;
|
|
832
832
|
kind: z.ZodEnum<{
|
|
833
833
|
call: "call";
|
|
834
|
-
out: "out";
|
|
835
834
|
in: "in";
|
|
835
|
+
out: "out";
|
|
836
836
|
}>;
|
|
837
837
|
}, z.core.$strict>;
|
|
838
838
|
unread: z.ZodInt;
|
|
@@ -845,8 +845,8 @@ export type ThreadList = z.infer<typeof ThreadListSchema>;
|
|
|
845
845
|
export declare const ThreadMessageSchema: z.ZodObject<{
|
|
846
846
|
kind: z.ZodEnum<{
|
|
847
847
|
call: "call";
|
|
848
|
-
out: "out";
|
|
849
848
|
in: "in";
|
|
849
|
+
out: "out";
|
|
850
850
|
}>;
|
|
851
851
|
text: z.ZodNullable<z.ZodString>;
|
|
852
852
|
at: z.ZodNumber;
|
|
@@ -867,8 +867,8 @@ export declare const ThreadSchema: z.ZodObject<{
|
|
|
867
867
|
messages: z.ZodArray<z.ZodObject<{
|
|
868
868
|
kind: z.ZodEnum<{
|
|
869
869
|
call: "call";
|
|
870
|
-
out: "out";
|
|
871
870
|
in: "in";
|
|
871
|
+
out: "out";
|
|
872
872
|
}>;
|
|
873
873
|
text: z.ZodNullable<z.ZodString>;
|
|
874
874
|
at: z.ZodNumber;
|
|
@@ -982,9 +982,9 @@ export declare const OrgMailWantedSchema: z.ZodObject<{
|
|
|
982
982
|
host: z.ZodString;
|
|
983
983
|
port: z.ZodInt;
|
|
984
984
|
security: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
985
|
+
none: "none";
|
|
985
986
|
starttls: "starttls";
|
|
986
987
|
tls: "tls";
|
|
987
|
-
none: "none";
|
|
988
988
|
}>>>;
|
|
989
989
|
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
990
990
|
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1159,6 +1159,10 @@ export declare const KnowledgePushSchema: z.ZodObject<{
|
|
|
1159
1159
|
files: z.ZodArray<z.ZodObject<{
|
|
1160
1160
|
path: z.ZodString;
|
|
1161
1161
|
text: z.ZodString;
|
|
1162
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1163
|
+
retrieved: "retrieved";
|
|
1164
|
+
whole: "whole";
|
|
1165
|
+
}>>>;
|
|
1162
1166
|
}, z.core.$strict>>;
|
|
1163
1167
|
}, z.core.$strict>;
|
|
1164
1168
|
export type KnowledgePush = z.infer<typeof KnowledgePushSchema>;
|
|
@@ -1212,13 +1216,15 @@ export declare const KnowledgeScoreSchema: z.ZodObject<{
|
|
|
1212
1216
|
}, z.core.$strict>;
|
|
1213
1217
|
export type KnowledgeScore = z.infer<typeof KnowledgeScoreSchema>;
|
|
1214
1218
|
/**
|
|
1215
|
-
* PUT /v1/knowledge/{base}, the answer: which base, how many chunks it became,
|
|
1216
|
-
*
|
|
1219
|
+
* PUT /v1/knowledge/{base}, the answer: which base, how many chunks it became, how long that took,
|
|
1220
|
+
* and what its whole files weigh on every call.
|
|
1217
1221
|
*/
|
|
1218
1222
|
export declare const KnowledgePushedSchema: z.ZodObject<{
|
|
1219
1223
|
base: z.ZodString;
|
|
1220
1224
|
chunks: z.ZodInt;
|
|
1221
1225
|
took_ms: z.ZodNumber;
|
|
1226
|
+
whole_tokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1227
|
+
notice: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodString>>>;
|
|
1222
1228
|
}, z.core.$strict>;
|
|
1223
1229
|
export type KnowledgePushed = z.infer<typeof KnowledgePushedSchema>;
|
|
1224
1230
|
/** One knowledge base as the list draws it: its name, its size, and when it was last pushed. */
|
|
@@ -1437,8 +1443,9 @@ export declare const ExtractionRunSchema: z.ZodObject<{
|
|
|
1437
1443
|
export type ExtractionRun = z.infer<typeof ExtractionRunSchema>;
|
|
1438
1444
|
/**
|
|
1439
1445
|
* POST /v1/calls/{call}/lookup, the body: which platform tool to run for this turn, and what to
|
|
1440
|
-
* run it with.
|
|
1441
|
-
*
|
|
1446
|
+
* run it with. Asked by the worker for the call it serves, and by the app for a call of its own
|
|
1447
|
+
* org — `this.knowledge.search` in a tool; the gateway runs it against its own stores and writes
|
|
1448
|
+
* memory.ops or docs.sources on the call's log itself.
|
|
1442
1449
|
*/
|
|
1443
1450
|
export declare const LookupRequestSchema: z.ZodObject<{
|
|
1444
1451
|
tool: z.ZodEnum<{
|
|
@@ -1459,6 +1466,25 @@ export declare const LookupResultSchema: z.ZodObject<{
|
|
|
1459
1466
|
took_ms: z.ZodNumber;
|
|
1460
1467
|
}, z.core.$strict>;
|
|
1461
1468
|
export type LookupResult = z.infer<typeof LookupResultSchema>;
|
|
1469
|
+
/** One chunk search found: the file it came from, the heading it sits under, and its text. */
|
|
1470
|
+
export declare const FoundChunkSchema: z.ZodObject<{
|
|
1471
|
+
path: z.ZodString;
|
|
1472
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
1473
|
+
text: z.ZodString;
|
|
1474
|
+
}, z.core.$strict>;
|
|
1475
|
+
export type FoundChunk = z.infer<typeof FoundChunkSchema>;
|
|
1476
|
+
/**
|
|
1477
|
+
* What search answers in a lookup's output: the best chunks of every base the agent reads, the
|
|
1478
|
+
* best first. The app's `this.knowledge.search` hands the chunks to the tool that asked.
|
|
1479
|
+
*/
|
|
1480
|
+
export declare const SearchFoundSchema: z.ZodObject<{
|
|
1481
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
1482
|
+
path: z.ZodString;
|
|
1483
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
1484
|
+
text: z.ZodString;
|
|
1485
|
+
}, z.core.$strict>>;
|
|
1486
|
+
}, z.core.$strict>;
|
|
1487
|
+
export type SearchFound = z.infer<typeof SearchFoundSchema>;
|
|
1462
1488
|
/**
|
|
1463
1489
|
* POST /v1/calls/{call}/remember, the answer: what the call taught about the contact, counted.
|
|
1464
1490
|
* Worker-only; the body is empty, the gateway reads the turns off its own log and writes
|
|
@@ -1518,3 +1544,595 @@ export declare const OutboundProvisionedSchema: z.ZodObject<{
|
|
|
1518
1544
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1519
1545
|
}, z.core.$strict>;
|
|
1520
1546
|
export type OutboundProvisioned = z.infer<typeof OutboundProvisionedSchema>;
|
|
1547
|
+
/**
|
|
1548
|
+
* An agent's tuning: what the org set over what the app declared, per world and per corner. Every
|
|
1549
|
+
* field is optional; one left out is not set, and what the app declared — or the runtime's own
|
|
1550
|
+
* default — stands for it.
|
|
1551
|
+
*/
|
|
1552
|
+
export declare const TuningBodySchema: z.ZodObject<{
|
|
1553
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1554
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1555
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1556
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1557
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1558
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1559
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1560
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1561
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1562
|
+
}, z.core.$strict>>>;
|
|
1563
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1564
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1565
|
+
}, z.core.$strict>>>;
|
|
1566
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1567
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1568
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1569
|
+
}, z.core.$strict>>>;
|
|
1570
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1571
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1572
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1573
|
+
}, z.core.$strict>>>;
|
|
1574
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1575
|
+
base: z.ZodString;
|
|
1576
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1577
|
+
retrieved: "retrieved";
|
|
1578
|
+
tool: "tool";
|
|
1579
|
+
}>>>;
|
|
1580
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1581
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1582
|
+
}, z.core.$strict>>>>;
|
|
1583
|
+
}, z.core.$strict>;
|
|
1584
|
+
export type TuningBody = z.infer<typeof TuningBodySchema>;
|
|
1585
|
+
/**
|
|
1586
|
+
* One kept version of an agent's tuning: whose corner, which version, who set it and when, and
|
|
1587
|
+
* what it says.
|
|
1588
|
+
*/
|
|
1589
|
+
export declare const TuningRowSchema: z.ZodObject<{
|
|
1590
|
+
holder: z.ZodString;
|
|
1591
|
+
version: z.ZodInt;
|
|
1592
|
+
author: z.ZodString;
|
|
1593
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1594
|
+
set_at: z.ZodNumber;
|
|
1595
|
+
config: z.ZodObject<{
|
|
1596
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1597
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1598
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1599
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1600
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1601
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1602
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1603
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1604
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1605
|
+
}, z.core.$strict>>>;
|
|
1606
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1607
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1608
|
+
}, z.core.$strict>>>;
|
|
1609
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1610
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1611
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1612
|
+
}, z.core.$strict>>>;
|
|
1613
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1614
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1615
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1616
|
+
}, z.core.$strict>>>;
|
|
1617
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1618
|
+
base: z.ZodString;
|
|
1619
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1620
|
+
retrieved: "retrieved";
|
|
1621
|
+
tool: "tool";
|
|
1622
|
+
}>>>;
|
|
1623
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1624
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1625
|
+
}, z.core.$strict>>>>;
|
|
1626
|
+
}, z.core.$strict>;
|
|
1627
|
+
}, z.core.$strict>;
|
|
1628
|
+
export type TuningRow = z.infer<typeof TuningRowSchema>;
|
|
1629
|
+
/**
|
|
1630
|
+
* GET /v1/agents/{slug}/settings: the agent's tuning as this key sees it — its own corner's, the
|
|
1631
|
+
* team's and production's, each corner's own newest row, or null when that corner set nothing.
|
|
1632
|
+
*/
|
|
1633
|
+
export declare const TuningAnswerSchema: z.ZodObject<{
|
|
1634
|
+
world: z.ZodEnum<{
|
|
1635
|
+
production: "production";
|
|
1636
|
+
sandbox: "sandbox";
|
|
1637
|
+
}>;
|
|
1638
|
+
yours: z.ZodNullable<z.ZodObject<{
|
|
1639
|
+
holder: z.ZodString;
|
|
1640
|
+
version: z.ZodInt;
|
|
1641
|
+
author: z.ZodString;
|
|
1642
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1643
|
+
set_at: z.ZodNumber;
|
|
1644
|
+
config: z.ZodObject<{
|
|
1645
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1646
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1647
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1648
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1649
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1650
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1651
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1652
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1653
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1654
|
+
}, z.core.$strict>>>;
|
|
1655
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1656
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1657
|
+
}, z.core.$strict>>>;
|
|
1658
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1659
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1660
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1661
|
+
}, z.core.$strict>>>;
|
|
1662
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1663
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1664
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1665
|
+
}, z.core.$strict>>>;
|
|
1666
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1667
|
+
base: z.ZodString;
|
|
1668
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1669
|
+
retrieved: "retrieved";
|
|
1670
|
+
tool: "tool";
|
|
1671
|
+
}>>>;
|
|
1672
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1673
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1674
|
+
}, z.core.$strict>>>>;
|
|
1675
|
+
}, z.core.$strict>;
|
|
1676
|
+
}, z.core.$strict>>;
|
|
1677
|
+
team: z.ZodNullable<z.ZodObject<{
|
|
1678
|
+
holder: z.ZodString;
|
|
1679
|
+
version: z.ZodInt;
|
|
1680
|
+
author: z.ZodString;
|
|
1681
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1682
|
+
set_at: z.ZodNumber;
|
|
1683
|
+
config: z.ZodObject<{
|
|
1684
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1685
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1686
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1687
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1688
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1689
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1690
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1691
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1692
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1693
|
+
}, z.core.$strict>>>;
|
|
1694
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1695
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1696
|
+
}, z.core.$strict>>>;
|
|
1697
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1698
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1699
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1700
|
+
}, z.core.$strict>>>;
|
|
1701
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1702
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1703
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1704
|
+
}, z.core.$strict>>>;
|
|
1705
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1706
|
+
base: z.ZodString;
|
|
1707
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1708
|
+
retrieved: "retrieved";
|
|
1709
|
+
tool: "tool";
|
|
1710
|
+
}>>>;
|
|
1711
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1712
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1713
|
+
}, z.core.$strict>>>>;
|
|
1714
|
+
}, z.core.$strict>;
|
|
1715
|
+
}, z.core.$strict>>;
|
|
1716
|
+
production: z.ZodNullable<z.ZodObject<{
|
|
1717
|
+
holder: z.ZodString;
|
|
1718
|
+
version: z.ZodInt;
|
|
1719
|
+
author: z.ZodString;
|
|
1720
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1721
|
+
set_at: z.ZodNumber;
|
|
1722
|
+
config: z.ZodObject<{
|
|
1723
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1724
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1725
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1726
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1727
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1728
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1729
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1730
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1731
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1732
|
+
}, z.core.$strict>>>;
|
|
1733
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1734
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1735
|
+
}, z.core.$strict>>>;
|
|
1736
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1737
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1738
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1739
|
+
}, z.core.$strict>>>;
|
|
1740
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1741
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1742
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1743
|
+
}, z.core.$strict>>>;
|
|
1744
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1745
|
+
base: z.ZodString;
|
|
1746
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1747
|
+
retrieved: "retrieved";
|
|
1748
|
+
tool: "tool";
|
|
1749
|
+
}>>>;
|
|
1750
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1751
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1752
|
+
}, z.core.$strict>>>>;
|
|
1753
|
+
}, z.core.$strict>;
|
|
1754
|
+
}, z.core.$strict>>;
|
|
1755
|
+
}, z.core.$strict>;
|
|
1756
|
+
export type TuningAnswer = z.infer<typeof TuningAnswerSchema>;
|
|
1757
|
+
/**
|
|
1758
|
+
* PUT /v1/agents/{slug}/settings, the body: the whole set, the version it was read at, why, and
|
|
1759
|
+
* whose corner.
|
|
1760
|
+
*/
|
|
1761
|
+
export declare const TuningPutSchema: z.ZodObject<{
|
|
1762
|
+
config: z.ZodObject<{
|
|
1763
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1764
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1765
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1766
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1767
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1768
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1769
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1770
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1771
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1772
|
+
}, z.core.$strict>>>;
|
|
1773
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1774
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1775
|
+
}, z.core.$strict>>>;
|
|
1776
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1777
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1778
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1779
|
+
}, z.core.$strict>>>;
|
|
1780
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1781
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1782
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1783
|
+
}, z.core.$strict>>>;
|
|
1784
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1785
|
+
base: z.ZodString;
|
|
1786
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1787
|
+
retrieved: "retrieved";
|
|
1788
|
+
tool: "tool";
|
|
1789
|
+
}>>>;
|
|
1790
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1791
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1792
|
+
}, z.core.$strict>>>>;
|
|
1793
|
+
}, z.core.$strict>;
|
|
1794
|
+
if_version: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodInt>>>;
|
|
1795
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodString>>>;
|
|
1796
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1797
|
+
}, z.core.$strict>;
|
|
1798
|
+
export type TuningPut = z.infer<typeof TuningPutSchema>;
|
|
1799
|
+
/** GET /v1/agents/{slug}/settings/history: one corner's versions, newest first. */
|
|
1800
|
+
export declare const TuningHistorySchema: z.ZodObject<{
|
|
1801
|
+
world: z.ZodEnum<{
|
|
1802
|
+
production: "production";
|
|
1803
|
+
sandbox: "sandbox";
|
|
1804
|
+
}>;
|
|
1805
|
+
holder: z.ZodString;
|
|
1806
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1807
|
+
holder: z.ZodString;
|
|
1808
|
+
version: z.ZodInt;
|
|
1809
|
+
author: z.ZodString;
|
|
1810
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1811
|
+
set_at: z.ZodNumber;
|
|
1812
|
+
config: z.ZodObject<{
|
|
1813
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1814
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1815
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1816
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1817
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1818
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1819
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1820
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1821
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1822
|
+
}, z.core.$strict>>>;
|
|
1823
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1824
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1825
|
+
}, z.core.$strict>>>;
|
|
1826
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1827
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1828
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1829
|
+
}, z.core.$strict>>>;
|
|
1830
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1831
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1832
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1833
|
+
}, z.core.$strict>>>;
|
|
1834
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1835
|
+
base: z.ZodString;
|
|
1836
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1837
|
+
retrieved: "retrieved";
|
|
1838
|
+
tool: "tool";
|
|
1839
|
+
}>>>;
|
|
1840
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1841
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1842
|
+
}, z.core.$strict>>>>;
|
|
1843
|
+
}, z.core.$strict>;
|
|
1844
|
+
}, z.core.$strict>>;
|
|
1845
|
+
}, z.core.$strict>;
|
|
1846
|
+
export type TuningHistory = z.infer<typeof TuningHistorySchema>;
|
|
1847
|
+
/**
|
|
1848
|
+
* GET /v1/agents/{slug}/settings/diff: what this key's corner reads against another corner's
|
|
1849
|
+
* newest, and which fields differ.
|
|
1850
|
+
*/
|
|
1851
|
+
export declare const TuningDiffSchema: z.ZodObject<{
|
|
1852
|
+
ours: z.ZodNullable<z.ZodObject<{
|
|
1853
|
+
holder: z.ZodString;
|
|
1854
|
+
version: z.ZodInt;
|
|
1855
|
+
author: z.ZodString;
|
|
1856
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1857
|
+
set_at: z.ZodNumber;
|
|
1858
|
+
config: z.ZodObject<{
|
|
1859
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1860
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1861
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1862
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1863
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1864
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1865
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1866
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1867
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1868
|
+
}, z.core.$strict>>>;
|
|
1869
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1870
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1871
|
+
}, z.core.$strict>>>;
|
|
1872
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1873
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1874
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1875
|
+
}, z.core.$strict>>>;
|
|
1876
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1877
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1878
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1879
|
+
}, z.core.$strict>>>;
|
|
1880
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1881
|
+
base: z.ZodString;
|
|
1882
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1883
|
+
retrieved: "retrieved";
|
|
1884
|
+
tool: "tool";
|
|
1885
|
+
}>>>;
|
|
1886
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1887
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1888
|
+
}, z.core.$strict>>>>;
|
|
1889
|
+
}, z.core.$strict>;
|
|
1890
|
+
}, z.core.$strict>>;
|
|
1891
|
+
theirs: z.ZodNullable<z.ZodObject<{
|
|
1892
|
+
holder: z.ZodString;
|
|
1893
|
+
version: z.ZodInt;
|
|
1894
|
+
author: z.ZodString;
|
|
1895
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1896
|
+
set_at: z.ZodNumber;
|
|
1897
|
+
config: z.ZodObject<{
|
|
1898
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1899
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1900
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1901
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1902
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1903
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1904
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1905
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1906
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1907
|
+
}, z.core.$strict>>>;
|
|
1908
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1909
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1910
|
+
}, z.core.$strict>>>;
|
|
1911
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1912
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1913
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1914
|
+
}, z.core.$strict>>>;
|
|
1915
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1916
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1917
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1918
|
+
}, z.core.$strict>>>;
|
|
1919
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1920
|
+
base: z.ZodString;
|
|
1921
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1922
|
+
retrieved: "retrieved";
|
|
1923
|
+
tool: "tool";
|
|
1924
|
+
}>>>;
|
|
1925
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1926
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1927
|
+
}, z.core.$strict>>>>;
|
|
1928
|
+
}, z.core.$strict>;
|
|
1929
|
+
}, z.core.$strict>>;
|
|
1930
|
+
changed: z.ZodArray<z.ZodString>;
|
|
1931
|
+
}, z.core.$strict>;
|
|
1932
|
+
export type TuningDiff = z.infer<typeof TuningDiffSchema>;
|
|
1933
|
+
/**
|
|
1934
|
+
* POST /v1/agents/{slug}/settings/rollback, the body: which version to bring back. It comes back
|
|
1935
|
+
* as a NEW version; nothing is deleted.
|
|
1936
|
+
*/
|
|
1937
|
+
export declare const RollbackSchema: z.ZodObject<{
|
|
1938
|
+
version: z.ZodInt;
|
|
1939
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1940
|
+
}, z.core.$strict>;
|
|
1941
|
+
export type Rollback = z.infer<typeof RollbackSchema>;
|
|
1942
|
+
/**
|
|
1943
|
+
* The org's lexicon: how the voice says the words it would get wrong, and the words the ears must
|
|
1944
|
+
* know. Shared by every agent of the org, laid over each one's own says and hears.
|
|
1945
|
+
*/
|
|
1946
|
+
export declare const LexiconBodySchema: z.ZodObject<{
|
|
1947
|
+
said: z.ZodArray<z.ZodObject<{
|
|
1948
|
+
word: z.ZodString;
|
|
1949
|
+
spoken: z.ZodString;
|
|
1950
|
+
}, z.core.$strict>>;
|
|
1951
|
+
heard: z.ZodArray<z.ZodString>;
|
|
1952
|
+
}, z.core.$strict>;
|
|
1953
|
+
export type LexiconBody = z.infer<typeof LexiconBodySchema>;
|
|
1954
|
+
/** One kept version of the org's lexicon. */
|
|
1955
|
+
export declare const LexiconRowSchema: z.ZodObject<{
|
|
1956
|
+
holder: z.ZodString;
|
|
1957
|
+
version: z.ZodInt;
|
|
1958
|
+
author: z.ZodString;
|
|
1959
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1960
|
+
set_at: z.ZodNumber;
|
|
1961
|
+
lexicon: z.ZodObject<{
|
|
1962
|
+
said: z.ZodArray<z.ZodObject<{
|
|
1963
|
+
word: z.ZodString;
|
|
1964
|
+
spoken: z.ZodString;
|
|
1965
|
+
}, z.core.$strict>>;
|
|
1966
|
+
heard: z.ZodArray<z.ZodString>;
|
|
1967
|
+
}, z.core.$strict>;
|
|
1968
|
+
}, z.core.$strict>;
|
|
1969
|
+
export type LexiconRow = z.infer<typeof LexiconRowSchema>;
|
|
1970
|
+
/**
|
|
1971
|
+
* GET /v1/lexicon: the org's words as this key sees them — its own corner's, the team's and
|
|
1972
|
+
* production's, each corner's own newest, or null.
|
|
1973
|
+
*/
|
|
1974
|
+
export declare const LexiconAnswerSchema: z.ZodObject<{
|
|
1975
|
+
world: z.ZodEnum<{
|
|
1976
|
+
production: "production";
|
|
1977
|
+
sandbox: "sandbox";
|
|
1978
|
+
}>;
|
|
1979
|
+
yours: z.ZodNullable<z.ZodObject<{
|
|
1980
|
+
holder: z.ZodString;
|
|
1981
|
+
version: z.ZodInt;
|
|
1982
|
+
author: z.ZodString;
|
|
1983
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1984
|
+
set_at: z.ZodNumber;
|
|
1985
|
+
lexicon: z.ZodObject<{
|
|
1986
|
+
said: z.ZodArray<z.ZodObject<{
|
|
1987
|
+
word: z.ZodString;
|
|
1988
|
+
spoken: z.ZodString;
|
|
1989
|
+
}, z.core.$strict>>;
|
|
1990
|
+
heard: z.ZodArray<z.ZodString>;
|
|
1991
|
+
}, z.core.$strict>;
|
|
1992
|
+
}, z.core.$strict>>;
|
|
1993
|
+
team: z.ZodNullable<z.ZodObject<{
|
|
1994
|
+
holder: z.ZodString;
|
|
1995
|
+
version: z.ZodInt;
|
|
1996
|
+
author: z.ZodString;
|
|
1997
|
+
note: z.ZodNullable<z.ZodString>;
|
|
1998
|
+
set_at: z.ZodNumber;
|
|
1999
|
+
lexicon: z.ZodObject<{
|
|
2000
|
+
said: z.ZodArray<z.ZodObject<{
|
|
2001
|
+
word: z.ZodString;
|
|
2002
|
+
spoken: z.ZodString;
|
|
2003
|
+
}, z.core.$strict>>;
|
|
2004
|
+
heard: z.ZodArray<z.ZodString>;
|
|
2005
|
+
}, z.core.$strict>;
|
|
2006
|
+
}, z.core.$strict>>;
|
|
2007
|
+
production: z.ZodNullable<z.ZodObject<{
|
|
2008
|
+
holder: z.ZodString;
|
|
2009
|
+
version: z.ZodInt;
|
|
2010
|
+
author: z.ZodString;
|
|
2011
|
+
note: z.ZodNullable<z.ZodString>;
|
|
2012
|
+
set_at: z.ZodNumber;
|
|
2013
|
+
lexicon: z.ZodObject<{
|
|
2014
|
+
said: z.ZodArray<z.ZodObject<{
|
|
2015
|
+
word: z.ZodString;
|
|
2016
|
+
spoken: z.ZodString;
|
|
2017
|
+
}, z.core.$strict>>;
|
|
2018
|
+
heard: z.ZodArray<z.ZodString>;
|
|
2019
|
+
}, z.core.$strict>;
|
|
2020
|
+
}, z.core.$strict>>;
|
|
2021
|
+
}, z.core.$strict>;
|
|
2022
|
+
export type LexiconAnswer = z.infer<typeof LexiconAnswerSchema>;
|
|
2023
|
+
/** PUT /v1/lexicon, the body: the whole lexicon, the version it was read at, why, and whose corner. */
|
|
2024
|
+
export declare const LexiconPutSchema: z.ZodObject<{
|
|
2025
|
+
lexicon: z.ZodObject<{
|
|
2026
|
+
said: z.ZodArray<z.ZodObject<{
|
|
2027
|
+
word: z.ZodString;
|
|
2028
|
+
spoken: z.ZodString;
|
|
2029
|
+
}, z.core.$strict>>;
|
|
2030
|
+
heard: z.ZodArray<z.ZodString>;
|
|
2031
|
+
}, z.core.$strict>;
|
|
2032
|
+
if_version: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodInt>>>;
|
|
2033
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodString>>>;
|
|
2034
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2035
|
+
}, z.core.$strict>;
|
|
2036
|
+
export type LexiconPut = z.infer<typeof LexiconPutSchema>;
|
|
2037
|
+
/** GET /v1/lexicon/history: one corner's versions, newest first. */
|
|
2038
|
+
export declare const LexiconHistorySchema: z.ZodObject<{
|
|
2039
|
+
world: z.ZodEnum<{
|
|
2040
|
+
production: "production";
|
|
2041
|
+
sandbox: "sandbox";
|
|
2042
|
+
}>;
|
|
2043
|
+
holder: z.ZodString;
|
|
2044
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
2045
|
+
holder: z.ZodString;
|
|
2046
|
+
version: z.ZodInt;
|
|
2047
|
+
author: z.ZodString;
|
|
2048
|
+
note: z.ZodNullable<z.ZodString>;
|
|
2049
|
+
set_at: z.ZodNumber;
|
|
2050
|
+
lexicon: z.ZodObject<{
|
|
2051
|
+
said: z.ZodArray<z.ZodObject<{
|
|
2052
|
+
word: z.ZodString;
|
|
2053
|
+
spoken: z.ZodString;
|
|
2054
|
+
}, z.core.$strict>>;
|
|
2055
|
+
heard: z.ZodArray<z.ZodString>;
|
|
2056
|
+
}, z.core.$strict>;
|
|
2057
|
+
}, z.core.$strict>>;
|
|
2058
|
+
}, z.core.$strict>;
|
|
2059
|
+
export type LexiconHistory = z.infer<typeof LexiconHistorySchema>;
|
|
2060
|
+
/**
|
|
2061
|
+
* GET /v1/calls/{call}/settings: the exact tuning and lexicon a call was built on, by the versions
|
|
2062
|
+
* its head row recorded.
|
|
2063
|
+
*/
|
|
2064
|
+
export declare const CallTuningSchema: z.ZodObject<{
|
|
2065
|
+
config_version: z.ZodNullable<z.ZodInt>;
|
|
2066
|
+
lexicon_version: z.ZodNullable<z.ZodInt>;
|
|
2067
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
2068
|
+
holder: z.ZodString;
|
|
2069
|
+
version: z.ZodInt;
|
|
2070
|
+
author: z.ZodString;
|
|
2071
|
+
note: z.ZodNullable<z.ZodString>;
|
|
2072
|
+
set_at: z.ZodNumber;
|
|
2073
|
+
config: z.ZodObject<{
|
|
2074
|
+
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2075
|
+
tts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2076
|
+
tts_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2077
|
+
stt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2078
|
+
llm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2079
|
+
greeting: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2080
|
+
say: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2081
|
+
reply: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2082
|
+
allow_interruptions: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2083
|
+
}, z.core.$strict>>>;
|
|
2084
|
+
hangup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2085
|
+
when: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2086
|
+
}, z.core.$strict>>>;
|
|
2087
|
+
turn: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2088
|
+
min_interruption_words: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2089
|
+
endpointing_ms: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2090
|
+
}, z.core.$strict>>>;
|
|
2091
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2092
|
+
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
2093
|
+
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
2094
|
+
}, z.core.$strict>>>;
|
|
2095
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2096
|
+
base: z.ZodString;
|
|
2097
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2098
|
+
retrieved: "retrieved";
|
|
2099
|
+
tool: "tool";
|
|
2100
|
+
}>>>;
|
|
2101
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
2102
|
+
min_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2103
|
+
}, z.core.$strict>>>>;
|
|
2104
|
+
}, z.core.$strict>;
|
|
2105
|
+
}, z.core.$strict>>;
|
|
2106
|
+
lexicon: z.ZodNullable<z.ZodObject<{
|
|
2107
|
+
holder: z.ZodString;
|
|
2108
|
+
version: z.ZodInt;
|
|
2109
|
+
author: z.ZodString;
|
|
2110
|
+
note: z.ZodNullable<z.ZodString>;
|
|
2111
|
+
set_at: z.ZodNumber;
|
|
2112
|
+
lexicon: z.ZodObject<{
|
|
2113
|
+
said: z.ZodArray<z.ZodObject<{
|
|
2114
|
+
word: z.ZodString;
|
|
2115
|
+
spoken: z.ZodString;
|
|
2116
|
+
}, z.core.$strict>>;
|
|
2117
|
+
heard: z.ZodArray<z.ZodString>;
|
|
2118
|
+
}, z.core.$strict>;
|
|
2119
|
+
}, z.core.$strict>>;
|
|
2120
|
+
}, z.core.$strict>;
|
|
2121
|
+
export type CallTuning = z.infer<typeof CallTuningSchema>;
|
|
2122
|
+
/** One base and the agents whose settings attach it. */
|
|
2123
|
+
export declare const KnowledgeUseSchema: z.ZodObject<{
|
|
2124
|
+
base: z.ZodString;
|
|
2125
|
+
agents: z.ZodArray<z.ZodString>;
|
|
2126
|
+
}, z.core.$strict>;
|
|
2127
|
+
export type KnowledgeUse = z.infer<typeof KnowledgeUseSchema>;
|
|
2128
|
+
/**
|
|
2129
|
+
* GET /v1/knowledge/attached: which agents read each base, off every agent's newest settings in
|
|
2130
|
+
* this world.
|
|
2131
|
+
*/
|
|
2132
|
+
export declare const KnowledgeUsesSchema: z.ZodObject<{
|
|
2133
|
+
bases: z.ZodArray<z.ZodObject<{
|
|
2134
|
+
base: z.ZodString;
|
|
2135
|
+
agents: z.ZodArray<z.ZodString>;
|
|
2136
|
+
}, z.core.$strict>>;
|
|
2137
|
+
}, z.core.$strict>;
|
|
2138
|
+
export type KnowledgeUses = z.infer<typeof KnowledgeUsesSchema>;
|