@pinecall/protocol 0.5.0 → 0.6.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 +8 -16
- package/dist/generated/defs.d.ts +47 -53
- package/dist/generated/defs.js +6 -5
- package/dist/generated/events.d.ts +58 -58
- package/dist/generated/registry.d.ts +72 -80
- package/dist/generated/rest.d.ts +81 -78
- package/dist/generated/rest.js +6 -8
- 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>>;
|
|
@@ -1212,10 +1212,6 @@ export declare const KnowledgePushSchema: z.ZodObject<{
|
|
|
1212
1212
|
files: z.ZodArray<z.ZodObject<{
|
|
1213
1213
|
path: z.ZodString;
|
|
1214
1214
|
text: z.ZodString;
|
|
1215
|
-
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1216
|
-
retrieved: "retrieved";
|
|
1217
|
-
whole: "whole";
|
|
1218
|
-
}>>>;
|
|
1219
1215
|
}, z.core.$strict>>;
|
|
1220
1216
|
}, z.core.$strict>;
|
|
1221
1217
|
export type KnowledgePush = z.infer<typeof KnowledgePushSchema>;
|
|
@@ -1269,15 +1265,13 @@ export declare const KnowledgeScoreSchema: z.ZodObject<{
|
|
|
1269
1265
|
}, z.core.$strict>;
|
|
1270
1266
|
export type KnowledgeScore = z.infer<typeof KnowledgeScoreSchema>;
|
|
1271
1267
|
/**
|
|
1272
|
-
* PUT /v1/knowledge/{base}, the answer: which base, how many chunks it became, how long that
|
|
1273
|
-
*
|
|
1268
|
+
* PUT /v1/knowledge/{base}, the answer: which base, how many chunks it became, and how long that
|
|
1269
|
+
* took.
|
|
1274
1270
|
*/
|
|
1275
1271
|
export declare const KnowledgePushedSchema: z.ZodObject<{
|
|
1276
1272
|
base: z.ZodString;
|
|
1277
1273
|
chunks: z.ZodInt;
|
|
1278
1274
|
took_ms: z.ZodNumber;
|
|
1279
|
-
whole_tokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1280
|
-
notice: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodString>>>;
|
|
1281
1275
|
}, z.core.$strict>;
|
|
1282
1276
|
export type KnowledgePushed = z.infer<typeof KnowledgePushedSchema>;
|
|
1283
1277
|
/** One knowledge base as the list draws it: its name, its size, and when it was last pushed. */
|
|
@@ -1598,9 +1592,8 @@ export declare const OutboundProvisionedSchema: z.ZodObject<{
|
|
|
1598
1592
|
}, z.core.$strict>;
|
|
1599
1593
|
export type OutboundProvisioned = z.infer<typeof OutboundProvisionedSchema>;
|
|
1600
1594
|
/**
|
|
1601
|
-
* An agent's
|
|
1602
|
-
*
|
|
1603
|
-
* default — stands for it.
|
|
1595
|
+
* An agent's settings: what the org set, per world and per corner. Every field is optional; one
|
|
1596
|
+
* left out is not set, and the runtime's own default stands for it.
|
|
1604
1597
|
*/
|
|
1605
1598
|
export declare const TuningBodySchema: z.ZodObject<{
|
|
1606
1599
|
voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1624,7 +1617,8 @@ export declare const TuningBodySchema: z.ZodObject<{
|
|
|
1624
1617
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1625
1618
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1626
1619
|
}, z.core.$strict>>>;
|
|
1627
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
1620
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1621
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1628
1622
|
base: z.ZodString;
|
|
1629
1623
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1630
1624
|
retrieved: "retrieved";
|
|
@@ -1667,7 +1661,8 @@ export declare const TuningRowSchema: z.ZodObject<{
|
|
|
1667
1661
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1668
1662
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1669
1663
|
}, z.core.$strict>>>;
|
|
1670
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
1664
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1665
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1671
1666
|
base: z.ZodString;
|
|
1672
1667
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1673
1668
|
retrieved: "retrieved";
|
|
@@ -1716,7 +1711,8 @@ export declare const TuningAnswerSchema: z.ZodObject<{
|
|
|
1716
1711
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1717
1712
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1718
1713
|
}, z.core.$strict>>>;
|
|
1719
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
1714
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1715
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1720
1716
|
base: z.ZodString;
|
|
1721
1717
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1722
1718
|
retrieved: "retrieved";
|
|
@@ -1755,7 +1751,8 @@ export declare const TuningAnswerSchema: z.ZodObject<{
|
|
|
1755
1751
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1756
1752
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1757
1753
|
}, z.core.$strict>>>;
|
|
1758
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
1754
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1755
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1759
1756
|
base: z.ZodString;
|
|
1760
1757
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1761
1758
|
retrieved: "retrieved";
|
|
@@ -1794,7 +1791,8 @@ export declare const TuningAnswerSchema: z.ZodObject<{
|
|
|
1794
1791
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1795
1792
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1796
1793
|
}, z.core.$strict>>>;
|
|
1797
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
1794
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1795
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1798
1796
|
base: z.ZodString;
|
|
1799
1797
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1800
1798
|
retrieved: "retrieved";
|
|
@@ -1834,7 +1832,8 @@ export declare const TuningPutSchema: z.ZodObject<{
|
|
|
1834
1832
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1835
1833
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1836
1834
|
}, z.core.$strict>>>;
|
|
1837
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
1835
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1836
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1838
1837
|
base: z.ZodString;
|
|
1839
1838
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1840
1839
|
retrieved: "retrieved";
|
|
@@ -1884,7 +1883,8 @@ export declare const TuningHistorySchema: z.ZodObject<{
|
|
|
1884
1883
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1885
1884
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1886
1885
|
}, z.core.$strict>>>;
|
|
1887
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
1886
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1887
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1888
1888
|
base: z.ZodString;
|
|
1889
1889
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1890
1890
|
retrieved: "retrieved";
|
|
@@ -1930,7 +1930,8 @@ export declare const TuningDiffSchema: z.ZodObject<{
|
|
|
1930
1930
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1931
1931
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1932
1932
|
}, z.core.$strict>>>;
|
|
1933
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
1933
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1934
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1934
1935
|
base: z.ZodString;
|
|
1935
1936
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1936
1937
|
retrieved: "retrieved";
|
|
@@ -1969,7 +1970,8 @@ export declare const TuningDiffSchema: z.ZodObject<{
|
|
|
1969
1970
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1970
1971
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1971
1972
|
}, z.core.$strict>>>;
|
|
1972
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
1973
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1974
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1973
1975
|
base: z.ZodString;
|
|
1974
1976
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1975
1977
|
retrieved: "retrieved";
|
|
@@ -2145,7 +2147,8 @@ export declare const CallTuningSchema: z.ZodObject<{
|
|
|
2145
2147
|
remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
2146
2148
|
forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
2147
2149
|
}, z.core.$strict>>>;
|
|
2148
|
-
knowledge: z.ZodOptional<z.ZodNullable<z.
|
|
2150
|
+
knowledge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2151
|
+
bases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2149
2152
|
base: z.ZodString;
|
|
2150
2153
|
mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2151
2154
|
retrieved: "retrieved";
|
package/dist/generated/rest.js
CHANGED
|
@@ -428,15 +428,13 @@ export const KnowledgeScoreSchema = z.strictObject({
|
|
|
428
428
|
misses: z.array(GoldenMissSchema),
|
|
429
429
|
});
|
|
430
430
|
/**
|
|
431
|
-
* PUT /v1/knowledge/{base}, the answer: which base, how many chunks it became, how long that
|
|
432
|
-
*
|
|
431
|
+
* PUT /v1/knowledge/{base}, the answer: which base, how many chunks it became, and how long that
|
|
432
|
+
* took.
|
|
433
433
|
*/
|
|
434
434
|
export const KnowledgePushedSchema = z.strictObject({
|
|
435
435
|
base: z.string(),
|
|
436
436
|
chunks: z.int(),
|
|
437
437
|
took_ms: z.number(),
|
|
438
|
-
whole_tokens: z.int().nullish(),
|
|
439
|
-
notice: z.string().nullable().nullish(),
|
|
440
438
|
});
|
|
441
439
|
/** One knowledge base as the list draws it: its name, its size, and when it was last pushed. */
|
|
442
440
|
export const KnowledgeBaseSchema = z.strictObject({
|
|
@@ -660,9 +658,8 @@ export const OutboundProvisionedSchema = z.strictObject({
|
|
|
660
658
|
address: z.string().nullish(),
|
|
661
659
|
});
|
|
662
660
|
/**
|
|
663
|
-
* An agent's
|
|
664
|
-
*
|
|
665
|
-
* default — stands for it.
|
|
661
|
+
* An agent's settings: what the org set, per world and per corner. Every field is optional; one
|
|
662
|
+
* left out is not set, and the runtime's own default stands for it.
|
|
666
663
|
*/
|
|
667
664
|
export const TuningBodySchema = z.strictObject({
|
|
668
665
|
voice: z.string().nullish(),
|
|
@@ -674,7 +671,8 @@ export const TuningBodySchema = z.strictObject({
|
|
|
674
671
|
hangup: HangupConfigSchema.nullish(),
|
|
675
672
|
turn: TurnConfigSchema.nullish(),
|
|
676
673
|
memory: MemoryConfigSchema.nullish(),
|
|
677
|
-
knowledge: z.
|
|
674
|
+
knowledge: z.string().nullish(),
|
|
675
|
+
bases: z.array(DocsConfigSchema).nullish(),
|
|
678
676
|
});
|
|
679
677
|
/**
|
|
680
678
|
* One kept version of an agent's tuning: whose corner, which version, who set it and when, and
|
package/dist/generated/room.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export declare const ParticipantJoinedSchema: z.ZodObject<{
|
|
|
23
23
|
kind: z.ZodEnum<{
|
|
24
24
|
agent: "agent";
|
|
25
25
|
caller: "caller";
|
|
26
|
-
supervisor: "supervisor";
|
|
27
26
|
listener: "listener";
|
|
28
27
|
sip: "sip";
|
|
28
|
+
supervisor: "supervisor";
|
|
29
29
|
}>;
|
|
30
30
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -51,15 +51,15 @@ export declare const TrackPublishedSchema: z.ZodObject<{
|
|
|
51
51
|
identity: z.ZodString;
|
|
52
52
|
kind: z.ZodEnum<{
|
|
53
53
|
audio: "audio";
|
|
54
|
-
video: "video";
|
|
55
54
|
screen: "screen";
|
|
55
|
+
video: "video";
|
|
56
56
|
}>;
|
|
57
57
|
source: z.ZodEnum<{
|
|
58
|
-
unknown: "unknown";
|
|
59
|
-
microphone: "microphone";
|
|
60
58
|
camera: "camera";
|
|
59
|
+
microphone: "microphone";
|
|
61
60
|
screen_share: "screen_share";
|
|
62
61
|
screen_share_audio: "screen_share_audio";
|
|
62
|
+
unknown: "unknown";
|
|
63
63
|
}>;
|
|
64
64
|
}, z.core.$strict>;
|
|
65
65
|
export type TrackPublished = z.infer<typeof TrackPublishedSchema>;
|
|
@@ -71,15 +71,15 @@ export declare const TrackUnpublishedSchema: z.ZodObject<{
|
|
|
71
71
|
identity: z.ZodString;
|
|
72
72
|
kind: z.ZodEnum<{
|
|
73
73
|
audio: "audio";
|
|
74
|
-
video: "video";
|
|
75
74
|
screen: "screen";
|
|
75
|
+
video: "video";
|
|
76
76
|
}>;
|
|
77
77
|
source: z.ZodEnum<{
|
|
78
|
-
unknown: "unknown";
|
|
79
|
-
microphone: "microphone";
|
|
80
78
|
camera: "camera";
|
|
79
|
+
microphone: "microphone";
|
|
81
80
|
screen_share: "screen_share";
|
|
82
81
|
screen_share_audio: "screen_share_audio";
|
|
82
|
+
unknown: "unknown";
|
|
83
83
|
}>;
|
|
84
84
|
}, z.core.$strict>;
|
|
85
85
|
export type TrackUnpublished = z.infer<typeof TrackUnpublishedSchema>;
|