@pinecall/protocol 0.5.0 → 0.6.1

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.
@@ -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
- supervisor_ended: "supervisor_ended";
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
- input_tokens: "input_tokens";
437
- cached_input_tokens: "cached_input_tokens";
436
+ audio_seconds: "audio_seconds";
438
437
  cache_creation_tokens: "cache_creation_tokens";
439
- output_tokens: "output_tokens";
438
+ cached_input_tokens: "cached_input_tokens";
440
439
  characters: "characters";
441
- audio_seconds: "audio_seconds";
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
- supervisor_ended: "supervisor_ended";
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
- input_tokens: "input_tokens";
578
- cached_input_tokens: "cached_input_tokens";
577
+ audio_seconds: "audio_seconds";
579
578
  cache_creation_tokens: "cache_creation_tokens";
580
- output_tokens: "output_tokens";
579
+ cached_input_tokens: "cached_input_tokens";
581
580
  characters: "characters";
582
- audio_seconds: "audio_seconds";
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
- supervisor_ended: "supervisor_ended";
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
- input_tokens: "input_tokens";
671
- cached_input_tokens: "cached_input_tokens";
670
+ audio_seconds: "audio_seconds";
672
671
  cache_creation_tokens: "cache_creation_tokens";
673
- output_tokens: "output_tokens";
672
+ cached_input_tokens: "cached_input_tokens";
674
673
  characters: "characters";
675
- audio_seconds: "audio_seconds";
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 took,
1273
- * and what its whole files weigh on every call.
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 tuning: what the org set over what the app declared, per world and per corner. Every
1602
- * field is optional; one left out is not set, and what the app declared or the runtime's own
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.ZodArray<z.ZodObject<{
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.ZodArray<z.ZodObject<{
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.ZodArray<z.ZodObject<{
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.ZodArray<z.ZodObject<{
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.ZodArray<z.ZodObject<{
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.ZodArray<z.ZodObject<{
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.ZodArray<z.ZodObject<{
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.ZodArray<z.ZodObject<{
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.ZodArray<z.ZodObject<{
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.ZodArray<z.ZodObject<{
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";
@@ -2172,6 +2175,56 @@ export declare const CallTuningSchema: z.ZodObject<{
2172
2175
  }, z.core.$strict>>;
2173
2176
  }, z.core.$strict>;
2174
2177
  export type CallTuning = z.infer<typeof CallTuningSchema>;
2178
+ /** One file of a base as the list draws it. */
2179
+ export declare const KnowledgeFileRowSchema: z.ZodObject<{
2180
+ path: z.ZodString;
2181
+ chars: z.ZodInt;
2182
+ chunks: z.ZodInt;
2183
+ pushed_at: z.ZodNumber;
2184
+ }, z.core.$strict>;
2185
+ export type KnowledgeFileRow = z.infer<typeof KnowledgeFileRowSchema>;
2186
+ /**
2187
+ * GET /v1/knowledge/{base}: every file of the base, by path, with its size and what it became.
2188
+ * Never the text: one file is read at a time.
2189
+ */
2190
+ export declare const KnowledgeFilesSchema: z.ZodObject<{
2191
+ base: z.ZodString;
2192
+ kept: z.ZodBoolean;
2193
+ files: z.ZodArray<z.ZodObject<{
2194
+ path: z.ZodString;
2195
+ chars: z.ZodInt;
2196
+ chunks: z.ZodInt;
2197
+ pushed_at: z.ZodNumber;
2198
+ }, z.core.$strict>>;
2199
+ }, z.core.$strict>;
2200
+ export type KnowledgeFiles = z.infer<typeof KnowledgeFilesSchema>;
2201
+ /** GET /v1/knowledge/{base}/files/{path}: one file, text and all. */
2202
+ export declare const KnowledgeFileReadSchema: z.ZodObject<{
2203
+ path: z.ZodString;
2204
+ text: z.ZodString;
2205
+ chunks: z.ZodInt;
2206
+ pushed_at: z.ZodNumber;
2207
+ }, z.core.$strict>;
2208
+ export type KnowledgeFileRead = z.infer<typeof KnowledgeFileReadSchema>;
2209
+ /**
2210
+ * PUT /v1/knowledge/{base}/files/{path}, the body: the file's whole text. New under that path, or
2211
+ * replaced in place; the base is begun when there is none.
2212
+ */
2213
+ export declare const KnowledgeFilePutSchema: z.ZodObject<{
2214
+ text: z.ZodString;
2215
+ }, z.core.$strict>;
2216
+ export type KnowledgeFilePut = z.infer<typeof KnowledgeFilePutSchema>;
2217
+ /**
2218
+ * PUT /v1/knowledge/{base}/files/{path}, the answer: which file, how many chunks it became, and
2219
+ * how long that took.
2220
+ */
2221
+ export declare const KnowledgeFilePushedSchema: z.ZodObject<{
2222
+ base: z.ZodString;
2223
+ path: z.ZodString;
2224
+ chunks: z.ZodInt;
2225
+ took_ms: z.ZodNumber;
2226
+ }, z.core.$strict>;
2227
+ export type KnowledgeFilePushed = z.infer<typeof KnowledgeFilePushedSchema>;
2175
2228
  /** One base and the agents whose settings attach it. */
2176
2229
  export declare const KnowledgeUseSchema: z.ZodObject<{
2177
2230
  base: z.ZodString;
@@ -2189,3 +2242,46 @@ export declare const KnowledgeUsesSchema: z.ZodObject<{
2189
2242
  }, z.core.$strict>>;
2190
2243
  }, z.core.$strict>;
2191
2244
  export type KnowledgeUses = z.infer<typeof KnowledgeUsesSchema>;
2245
+ /**
2246
+ * One synthetic caller of an agent, kept by the gateway: what they want, how they talk, and what
2247
+ * they may state about themselves. A model plays them turn by turn — there is no script — for
2248
+ * `pinecall simulate` and the console's Simulations.
2249
+ */
2250
+ export declare const PersonaSchema: z.ZodObject<{
2251
+ name: z.ZodString;
2252
+ about: z.ZodString;
2253
+ goal: z.ZodString;
2254
+ style: z.ZodString;
2255
+ facts: z.ZodRecord<z.ZodString, z.ZodString>;
2256
+ state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2257
+ author: z.ZodString;
2258
+ set_at: z.ZodNumber;
2259
+ }, z.core.$strict>;
2260
+ export type Persona = z.infer<typeof PersonaSchema>;
2261
+ /** GET /v1/agents/{slug}/personas: every caller written for this agent, by name. */
2262
+ export declare const PersonaListSchema: z.ZodObject<{
2263
+ personas: z.ZodArray<z.ZodObject<{
2264
+ name: z.ZodString;
2265
+ about: z.ZodString;
2266
+ goal: z.ZodString;
2267
+ style: z.ZodString;
2268
+ facts: z.ZodRecord<z.ZodString, z.ZodString>;
2269
+ state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2270
+ author: z.ZodString;
2271
+ set_at: z.ZodNumber;
2272
+ }, z.core.$strict>>;
2273
+ }, z.core.$strict>;
2274
+ export type PersonaList = z.infer<typeof PersonaListSchema>;
2275
+ /**
2276
+ * PUT /v1/agents/{slug}/personas/{name}, the body: the caller, written whole. A name that exists
2277
+ * is replaced; `was` renames the caller it names.
2278
+ */
2279
+ export declare const PersonaPutSchema: z.ZodObject<{
2280
+ about: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2281
+ goal: z.ZodString;
2282
+ style: z.ZodString;
2283
+ facts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2284
+ state: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2285
+ was: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2286
+ }, z.core.$strict>;
2287
+ export type PersonaPut = z.infer<typeof PersonaPutSchema>;