@pinecall/protocol 0.4.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.
@@ -46,10 +46,6 @@ export declare const AgentConfigureSchema: z.ZodObject<{
46
46
  knowledge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
47
47
  path: z.ZodString;
48
48
  text: z.ZodString;
49
- mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
50
- retrieved: "retrieved";
51
- whole: "whole";
52
- }>>>;
53
49
  }, z.core.$strict>>>;
54
50
  docs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
55
51
  base: z.ZodString;
@@ -114,6 +110,7 @@ export declare const AgentRegisterSchema: z.ZodObject<{
114
110
  label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
111
  }, z.core.$strict>>;
116
112
  sdk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
114
  takes_unclaimed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
118
115
  }, z.core.$strict>;
119
116
  export type AgentRegister = z.infer<typeof AgentRegisterSchema>;
@@ -323,10 +320,6 @@ export declare const SessionConfigureSchema: z.ZodObject<{
323
320
  knowledge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
324
321
  path: z.ZodString;
325
322
  text: z.ZodString;
326
- mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
327
- retrieved: "retrieved";
328
- whole: "whole";
329
- }>>>;
330
323
  }, z.core.$strict>>>;
331
324
  docs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
332
325
  base: z.ZodString;
@@ -16,6 +16,7 @@ export const AgentConfigureSchema = z.strictObject({
16
16
  export const AgentRegisterSchema = z.strictObject({
17
17
  routes: z.array(RouteSchema),
18
18
  sdk: z.string().nullish(),
19
+ host: z.string().nullish(),
19
20
  takes_unclaimed: z.boolean().nullish(),
20
21
  });
21
22
  /**
@@ -455,14 +455,10 @@ export declare const EventSpecSchema: z.ZodObject<{
455
455
  }>>;
456
456
  }, z.core.$strict>;
457
457
  export type EventSpec = z.infer<typeof EventSpecSchema>;
458
- /** One file of knowledge, sent whole: its path as the tenant keeps it, and its text. */
458
+ /** One file of a base, as a push sends it: its path as the tenant keeps it, and its text. */
459
459
  export declare const KnowledgeFileSchema: z.ZodObject<{
460
460
  path: z.ZodString;
461
461
  text: z.ZodString;
462
- mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
463
- retrieved: "retrieved";
464
- whole: "whole";
465
- }>>>;
466
462
  }, z.core.$strict>;
467
463
  export type KnowledgeFile = z.infer<typeof KnowledgeFileSchema>;
468
464
  /**
@@ -513,9 +509,11 @@ export declare const MemoryConfigSchema: z.ZodObject<{
513
509
  }, z.core.$strict>;
514
510
  export type MemoryConfig = z.infer<typeof MemoryConfigSchema>;
515
511
  /**
516
- * What an app declares about its agent: the voice, the models, the language, the greeting, the
517
- * tools, and who may see and send what. Every field is optional so a configure can change one
518
- * thing.
512
+ * What an app declares about its agent: the prompt's layout, the language, the tools, whether it
513
+ * searches its bases itself, and who may see and send what. Every field is optional so a configure
514
+ * can change one thing. The environment — voice, models, greeting, hangup, turn, says, hears,
515
+ * knowledge, docs, memory — is the world's, set in the agent's settings, and no longer read off
516
+ * this declaration.
519
517
  */
520
518
  export declare const AgentConfigSchema: z.ZodObject<{
521
519
  prompt: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -559,10 +557,6 @@ export declare const AgentConfigSchema: z.ZodObject<{
559
557
  knowledge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
560
558
  path: z.ZodString;
561
559
  text: z.ZodString;
562
- mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
563
- retrieved: "retrieved";
564
- whole: "whole";
565
- }>>>;
566
560
  }, z.core.$strict>>>;
567
561
  docs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
568
562
  base: z.ZodString;
@@ -258,11 +258,10 @@ export const EventSpecSchema = z.strictObject({
258
258
  name: z.string(),
259
259
  from: z.array(EventSourceSchema),
260
260
  });
261
- /** One file of knowledge, sent whole: its path as the tenant keeps it, and its text. */
261
+ /** One file of a base, as a push sends it: its path as the tenant keeps it, and its text. */
262
262
  export const KnowledgeFileSchema = z.strictObject({
263
263
  path: z.string(),
264
264
  text: z.string(),
265
- mode: z.enum(["retrieved", "whole"]).nullish(),
266
265
  });
267
266
  /**
268
267
  * The knowledge base the agent answers from, and how its chunks reach the model. It is named by
@@ -305,9 +304,11 @@ export const MemoryConfigSchema = z.strictObject({
305
304
  forget: z.array(z.string()).nullish(),
306
305
  });
307
306
  /**
308
- * What an app declares about its agent: the voice, the models, the language, the greeting, the
309
- * tools, and who may see and send what. Every field is optional so a configure can change one
310
- * thing.
307
+ * What an app declares about its agent: the prompt's layout, the language, the tools, whether it
308
+ * searches its bases itself, and who may see and send what. Every field is optional so a configure
309
+ * can change one thing. The environment — voice, models, greeting, hangup, turn, says, hears,
310
+ * knowledge, docs, memory — is the world's, set in the agent's settings, and no longer read off
311
+ * this declaration.
311
312
  */
312
313
  export const AgentConfigSchema = z.strictObject({
313
314
  prompt: z.array(PromptBlockSpecSchema).nullish(),
@@ -1305,10 +1305,6 @@ export declare const COMMAND_SCHEMAS: {
1305
1305
  knowledge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1306
1306
  path: import("zod").ZodString;
1307
1307
  text: import("zod").ZodString;
1308
- mode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1309
- retrieved: "retrieved";
1310
- whole: "whole";
1311
- }>>>;
1312
1308
  }, import("zod/v4/core").$strict>>>;
1313
1309
  docs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1314
1310
  base: import("zod").ZodString;
@@ -1368,6 +1364,7 @@ export declare const COMMAND_SCHEMAS: {
1368
1364
  label: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1369
1365
  }, import("zod/v4/core").$strict>>;
1370
1366
  sdk: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1367
+ host: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1371
1368
  takes_unclaimed: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
1372
1369
  }, import("zod/v4/core").$strict>;
1373
1370
  readonly "agent.reply": import("zod").ZodObject<{
@@ -1490,10 +1487,6 @@ export declare const COMMAND_SCHEMAS: {
1490
1487
  knowledge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1491
1488
  path: import("zod").ZodString;
1492
1489
  text: import("zod").ZodString;
1493
- mode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1494
- retrieved: "retrieved";
1495
- whole: "whole";
1496
- }>>>;
1497
1490
  }, import("zod/v4/core").$strict>>>;
1498
1491
  docs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1499
1492
  base: import("zod").ZodString;
@@ -1128,6 +1128,59 @@ export declare const AgentListSchema: z.ZodObject<{
1128
1128
  }, z.core.$strict>>;
1129
1129
  }, z.core.$strict>;
1130
1130
  export type AgentList = z.infer<typeof AgentListSchema>;
1131
+ /**
1132
+ * One app connected to the gateway right now: one process on one machine, holding one or more
1133
+ * agents in one world.
1134
+ */
1135
+ export declare const AppProcessSchema: z.ZodObject<{
1136
+ app: z.ZodString;
1137
+ agents: z.ZodArray<z.ZodString>;
1138
+ env: z.ZodEnum<{
1139
+ production: "production";
1140
+ sandbox: "sandbox";
1141
+ }>;
1142
+ host: z.ZodNullable<z.ZodString>;
1143
+ address: z.ZodNullable<z.ZodString>;
1144
+ sdk: z.ZodNullable<z.ZodString>;
1145
+ holder: z.ZodNullable<z.ZodObject<{
1146
+ holder: z.ZodNullable<z.ZodString>;
1147
+ name: z.ZodNullable<z.ZodString>;
1148
+ }, z.core.$strict>>;
1149
+ connected_at: z.ZodNumber;
1150
+ }, z.core.$strict>;
1151
+ export type AppProcess = z.infer<typeof AppProcessSchema>;
1152
+ /**
1153
+ * GET /v1/apps: every app connected in the request's world that this key may see — its own
1154
+ * corner's and the org's, every corner's with `team`.
1155
+ */
1156
+ export declare const AppListSchema: z.ZodObject<{
1157
+ apps: z.ZodArray<z.ZodObject<{
1158
+ app: z.ZodString;
1159
+ agents: z.ZodArray<z.ZodString>;
1160
+ env: z.ZodEnum<{
1161
+ production: "production";
1162
+ sandbox: "sandbox";
1163
+ }>;
1164
+ host: z.ZodNullable<z.ZodString>;
1165
+ address: z.ZodNullable<z.ZodString>;
1166
+ sdk: z.ZodNullable<z.ZodString>;
1167
+ holder: z.ZodNullable<z.ZodObject<{
1168
+ holder: z.ZodNullable<z.ZodString>;
1169
+ name: z.ZodNullable<z.ZodString>;
1170
+ }, z.core.$strict>>;
1171
+ connected_at: z.ZodNumber;
1172
+ }, z.core.$strict>>;
1173
+ }, z.core.$strict>;
1174
+ export type AppList = z.infer<typeof AppListSchema>;
1175
+ /**
1176
+ * POST /v1/apps/{app}/stop, the answer: the socket was closed with the stop code, and the app
1177
+ * exits rather than reconnect.
1178
+ */
1179
+ export declare const AppStoppedSchema: z.ZodObject<{
1180
+ app: z.ZodString;
1181
+ stopped: z.ZodBoolean;
1182
+ }, z.core.$strict>;
1183
+ export type AppStopped = z.infer<typeof AppStoppedSchema>;
1131
1184
  /**
1132
1185
  * GET /v1/agents/{slug}/line: whose terminal a call that RINGS at this agent's doors lands in. An
1133
1186
  * org shares one sandbox number, so it rings in one place and which one is claimed.
@@ -1159,10 +1212,6 @@ export declare const KnowledgePushSchema: z.ZodObject<{
1159
1212
  files: z.ZodArray<z.ZodObject<{
1160
1213
  path: z.ZodString;
1161
1214
  text: z.ZodString;
1162
- mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1163
- retrieved: "retrieved";
1164
- whole: "whole";
1165
- }>>>;
1166
1215
  }, z.core.$strict>>;
1167
1216
  }, z.core.$strict>;
1168
1217
  export type KnowledgePush = z.infer<typeof KnowledgePushSchema>;
@@ -1216,15 +1265,13 @@ export declare const KnowledgeScoreSchema: z.ZodObject<{
1216
1265
  }, z.core.$strict>;
1217
1266
  export type KnowledgeScore = z.infer<typeof KnowledgeScoreSchema>;
1218
1267
  /**
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.
1268
+ * PUT /v1/knowledge/{base}, the answer: which base, how many chunks it became, and how long that
1269
+ * took.
1221
1270
  */
1222
1271
  export declare const KnowledgePushedSchema: z.ZodObject<{
1223
1272
  base: z.ZodString;
1224
1273
  chunks: z.ZodInt;
1225
1274
  took_ms: z.ZodNumber;
1226
- whole_tokens: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1227
- notice: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodString>>>;
1228
1275
  }, z.core.$strict>;
1229
1276
  export type KnowledgePushed = z.infer<typeof KnowledgePushedSchema>;
1230
1277
  /** One knowledge base as the list draws it: its name, its size, and when it was last pushed. */
@@ -1545,9 +1592,8 @@ export declare const OutboundProvisionedSchema: z.ZodObject<{
1545
1592
  }, z.core.$strict>;
1546
1593
  export type OutboundProvisioned = z.infer<typeof OutboundProvisionedSchema>;
1547
1594
  /**
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.
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.
1551
1597
  */
1552
1598
  export declare const TuningBodySchema: z.ZodObject<{
1553
1599
  voice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1571,7 +1617,8 @@ export declare const TuningBodySchema: z.ZodObject<{
1571
1617
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1572
1618
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1573
1619
  }, z.core.$strict>>>;
1574
- 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<{
1575
1622
  base: z.ZodString;
1576
1623
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1577
1624
  retrieved: "retrieved";
@@ -1614,7 +1661,8 @@ export declare const TuningRowSchema: z.ZodObject<{
1614
1661
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1615
1662
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1616
1663
  }, z.core.$strict>>>;
1617
- 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<{
1618
1666
  base: z.ZodString;
1619
1667
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1620
1668
  retrieved: "retrieved";
@@ -1663,7 +1711,8 @@ export declare const TuningAnswerSchema: z.ZodObject<{
1663
1711
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1664
1712
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1665
1713
  }, z.core.$strict>>>;
1666
- 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<{
1667
1716
  base: z.ZodString;
1668
1717
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1669
1718
  retrieved: "retrieved";
@@ -1702,7 +1751,8 @@ export declare const TuningAnswerSchema: z.ZodObject<{
1702
1751
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1703
1752
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1704
1753
  }, z.core.$strict>>>;
1705
- 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<{
1706
1756
  base: z.ZodString;
1707
1757
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1708
1758
  retrieved: "retrieved";
@@ -1741,7 +1791,8 @@ export declare const TuningAnswerSchema: z.ZodObject<{
1741
1791
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1742
1792
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1743
1793
  }, z.core.$strict>>>;
1744
- 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<{
1745
1796
  base: z.ZodString;
1746
1797
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1747
1798
  retrieved: "retrieved";
@@ -1781,7 +1832,8 @@ export declare const TuningPutSchema: z.ZodObject<{
1781
1832
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1782
1833
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1783
1834
  }, z.core.$strict>>>;
1784
- 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<{
1785
1837
  base: z.ZodString;
1786
1838
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1787
1839
  retrieved: "retrieved";
@@ -1831,7 +1883,8 @@ export declare const TuningHistorySchema: z.ZodObject<{
1831
1883
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1832
1884
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1833
1885
  }, z.core.$strict>>>;
1834
- 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<{
1835
1888
  base: z.ZodString;
1836
1889
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1837
1890
  retrieved: "retrieved";
@@ -1877,7 +1930,8 @@ export declare const TuningDiffSchema: z.ZodObject<{
1877
1930
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1878
1931
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1879
1932
  }, z.core.$strict>>>;
1880
- 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<{
1881
1935
  base: z.ZodString;
1882
1936
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1883
1937
  retrieved: "retrieved";
@@ -1916,7 +1970,8 @@ export declare const TuningDiffSchema: z.ZodObject<{
1916
1970
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1917
1971
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1918
1972
  }, z.core.$strict>>>;
1919
- 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<{
1920
1975
  base: z.ZodString;
1921
1976
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1922
1977
  retrieved: "retrieved";
@@ -2092,7 +2147,8 @@ export declare const CallTuningSchema: z.ZodObject<{
2092
2147
  remember: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2093
2148
  forget: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2094
2149
  }, z.core.$strict>>>;
2095
- 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<{
2096
2152
  base: z.ZodString;
2097
2153
  mode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2098
2154
  retrieved: "retrieved";
@@ -340,6 +340,35 @@ export const HeldAgentSchema = z.strictObject({
340
340
  export const AgentListSchema = z.strictObject({
341
341
  agents: z.array(HeldAgentSchema),
342
342
  });
343
+ /**
344
+ * One app connected to the gateway right now: one process on one machine, holding one or more
345
+ * agents in one world.
346
+ */
347
+ export const AppProcessSchema = z.strictObject({
348
+ app: z.string(),
349
+ agents: z.array(z.string()),
350
+ env: EnvSchema,
351
+ host: z.string().nullable(),
352
+ address: z.string().nullable(),
353
+ sdk: z.string().nullable(),
354
+ holder: LineHolderSchema.nullable(),
355
+ connected_at: z.number(),
356
+ });
357
+ /**
358
+ * GET /v1/apps: every app connected in the request's world that this key may see — its own
359
+ * corner's and the org's, every corner's with `team`.
360
+ */
361
+ export const AppListSchema = z.strictObject({
362
+ apps: z.array(AppProcessSchema),
363
+ });
364
+ /**
365
+ * POST /v1/apps/{app}/stop, the answer: the socket was closed with the stop code, and the app
366
+ * exits rather than reconnect.
367
+ */
368
+ export const AppStoppedSchema = z.strictObject({
369
+ app: z.string(),
370
+ stopped: z.boolean(),
371
+ });
343
372
  /**
344
373
  * GET /v1/agents/{slug}/line: whose terminal a call that RINGS at this agent's doors lands in. An
345
374
  * org shares one sandbox number, so it rings in one place and which one is claimed.
@@ -399,15 +428,13 @@ export const KnowledgeScoreSchema = z.strictObject({
399
428
  misses: z.array(GoldenMissSchema),
400
429
  });
401
430
  /**
402
- * PUT /v1/knowledge/{base}, the answer: which base, how many chunks it became, how long that took,
403
- * and what its whole files weigh on every call.
431
+ * PUT /v1/knowledge/{base}, the answer: which base, how many chunks it became, and how long that
432
+ * took.
404
433
  */
405
434
  export const KnowledgePushedSchema = z.strictObject({
406
435
  base: z.string(),
407
436
  chunks: z.int(),
408
437
  took_ms: z.number(),
409
- whole_tokens: z.int().nullish(),
410
- notice: z.string().nullable().nullish(),
411
438
  });
412
439
  /** One knowledge base as the list draws it: its name, its size, and when it was last pushed. */
413
440
  export const KnowledgeBaseSchema = z.strictObject({
@@ -631,9 +658,8 @@ export const OutboundProvisionedSchema = z.strictObject({
631
658
  address: z.string().nullish(),
632
659
  });
633
660
  /**
634
- * An agent's tuning: what the org set over what the app declared, per world and per corner. Every
635
- * field is optional; one left out is not set, and what the app declared or the runtime's own
636
- * 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.
637
663
  */
638
664
  export const TuningBodySchema = z.strictObject({
639
665
  voice: z.string().nullish(),
@@ -645,7 +671,8 @@ export const TuningBodySchema = z.strictObject({
645
671
  hangup: HangupConfigSchema.nullish(),
646
672
  turn: TurnConfigSchema.nullish(),
647
673
  memory: MemoryConfigSchema.nullish(),
648
- knowledge: z.array(DocsConfigSchema).nullish(),
674
+ knowledge: z.string().nullish(),
675
+ bases: z.array(DocsConfigSchema).nullish(),
649
676
  });
650
677
  /**
651
678
  * One kept version of an agent's tuning: whose corner, which version, who set it and when, and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinecall/protocol",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "The Pinecall wire: zod schemas and types generated from the protocol schema, and the log reducer",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Pinecall <hello@pinecall.io>",