@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.
@@ -30,10 +30,10 @@ export declare const EVENT_SCHEMAS: {
30
30
  }, import("zod/v4/core").$strict>;
31
31
  readonly "agent.state": import("zod").ZodObject<{
32
32
  state: import("zod").ZodEnum<{
33
+ idle: "idle";
34
+ initializing: "initializing";
33
35
  listening: "listening";
34
36
  speaking: "speaking";
35
- initializing: "initializing";
36
- idle: "idle";
37
37
  thinking: "thinking";
38
38
  }>;
39
39
  }, import("zod/v4/core").$strict>;
@@ -65,23 +65,23 @@ export declare const EVENT_SCHEMAS: {
65
65
  }, import("zod/v4/core").$strict>;
66
66
  readonly "call.ended": import("zod").ZodObject<{
67
67
  reason: import("zod").ZodEnum<{
68
- caller_hung_up: "caller_hung_up";
69
68
  agent_hung_up: "agent_hung_up";
70
- supervisor_ended: "supervisor_ended";
71
- transferred: "transferred";
72
- no_answer: "no_answer";
69
+ app_detached: "app_detached";
73
70
  busy: "busy";
71
+ caller_hung_up: "caller_hung_up";
74
72
  dial_failed: "dial_failed";
75
- timeout: "timeout";
76
73
  drained: "drained";
77
- app_detached: "app_detached";
78
74
  error: "error";
75
+ no_answer: "no_answer";
76
+ supervisor_ended: "supervisor_ended";
77
+ timeout: "timeout";
78
+ transferred: "transferred";
79
79
  }>;
80
80
  ended_by: import("zod").ZodEnum<{
81
81
  agent: "agent";
82
82
  caller: "caller";
83
- supervisor: "supervisor";
84
83
  platform: "platform";
84
+ supervisor: "supervisor";
85
85
  }>;
86
86
  ended_at: import("zod").ZodNumber;
87
87
  duration_s: import("zod").ZodNumber;
@@ -123,9 +123,9 @@ export declare const EVENT_SCHEMAS: {
123
123
  judges: import("zod").ZodArray<import("zod").ZodObject<{
124
124
  name: import("zod").ZodString;
125
125
  verdict: import("zod").ZodEnum<{
126
- held: "held";
127
126
  broken: "broken";
128
127
  deferred: "deferred";
128
+ held: "held";
129
129
  skipped: "skipped";
130
130
  }>;
131
131
  criteria: import("zod").ZodString;
@@ -167,17 +167,17 @@ export declare const EVENT_SCHEMAS: {
167
167
  }, import("zod/v4/core").$strict>;
168
168
  readonly "call.summary": import("zod").ZodObject<{
169
169
  reason: import("zod").ZodEnum<{
170
- caller_hung_up: "caller_hung_up";
171
170
  agent_hung_up: "agent_hung_up";
172
- supervisor_ended: "supervisor_ended";
173
- transferred: "transferred";
174
- no_answer: "no_answer";
171
+ app_detached: "app_detached";
175
172
  busy: "busy";
173
+ caller_hung_up: "caller_hung_up";
176
174
  dial_failed: "dial_failed";
177
- timeout: "timeout";
178
175
  drained: "drained";
179
- app_detached: "app_detached";
180
176
  error: "error";
177
+ no_answer: "no_answer";
178
+ supervisor_ended: "supervisor_ended";
179
+ timeout: "timeout";
180
+ transferred: "transferred";
181
181
  }>;
182
182
  outcome: import("zod").ZodString;
183
183
  duration_s: import("zod").ZodNumber;
@@ -237,12 +237,12 @@ export declare const EVENT_SCHEMAS: {
237
237
  provider: import("zod").ZodString;
238
238
  model: import("zod").ZodString;
239
239
  unit: import("zod").ZodEnum<{
240
- input_tokens: "input_tokens";
241
- cached_input_tokens: "cached_input_tokens";
240
+ audio_seconds: "audio_seconds";
242
241
  cache_creation_tokens: "cache_creation_tokens";
243
- output_tokens: "output_tokens";
242
+ cached_input_tokens: "cached_input_tokens";
244
243
  characters: "characters";
245
- audio_seconds: "audio_seconds";
244
+ input_tokens: "input_tokens";
245
+ output_tokens: "output_tokens";
246
246
  requests: "requests";
247
247
  session_seconds: "session_seconds";
248
248
  }>;
@@ -292,10 +292,10 @@ export declare const EVENT_SCHEMAS: {
292
292
  audience: import("zod").ZodString;
293
293
  said: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
294
294
  reason: import("zod").ZodEnum<{
295
- timeout: "timeout";
296
- changed: "changed";
297
295
  cancelled: "cancelled";
296
+ changed: "changed";
298
297
  no: "no";
298
+ timeout: "timeout";
299
299
  }>;
300
300
  }, import("zod/v4/core").$strict>;
301
301
  readonly "confirm.granted": import("zod").ZodObject<{
@@ -316,12 +316,12 @@ export declare const EVENT_SCHEMAS: {
316
316
  readonly "credits.exhausted": import("zod").ZodObject<{
317
317
  org: import("zod").ZodString;
318
318
  quota: import("zod").ZodEnum<{
319
- minutes: "minutes";
320
- messages: "messages";
321
319
  agents: "agents";
322
320
  concurrent_calls: "concurrent_calls";
323
- memory_facts: "memory_facts";
324
321
  knowledge_chunks: "knowledge_chunks";
322
+ memory_facts: "memory_facts";
323
+ messages: "messages";
324
+ minutes: "minutes";
325
325
  numbers: "numbers";
326
326
  seats: "seats";
327
327
  }>;
@@ -335,25 +335,25 @@ export declare const EVENT_SCHEMAS: {
335
335
  readonly "dev.request": import("zod").ZodObject<{
336
336
  id: import("zod").ZodString;
337
337
  verb: import("zod").ZodEnum<{
338
+ "chat.end": "chat.end";
338
339
  "chat.roster": "chat.roster";
339
- "chat.start": "chat.start";
340
340
  "chat.say": "chat.say";
341
- "chat.end": "chat.end";
342
- "simulate.roster": "simulate.roster";
343
- "simulate.start": "simulate.start";
341
+ "chat.start": "chat.start";
342
+ "drift.read": "drift.read";
344
343
  "goldens.roster": "goldens.roster";
345
344
  "goldens.run": "goldens.run";
346
- "knowledge.roster": "knowledge.roster";
347
- "knowledge.push": "knowledge.push";
348
345
  "knowledge.eval": "knowledge.eval";
349
- "memory.roster": "memory.roster";
346
+ "knowledge.push": "knowledge.push";
347
+ "knowledge.roster": "knowledge.roster";
350
348
  "memory.eval": "memory.eval";
351
349
  "memory.extraction": "memory.extraction";
350
+ "memory.roster": "memory.roster";
352
351
  "promote.roster": "promote.roster";
353
352
  "promote.write": "promote.write";
354
- "drift.read": "drift.read";
355
- "reproductions.roster": "reproductions.roster";
356
353
  "reproductions.read": "reproductions.read";
354
+ "reproductions.roster": "reproductions.roster";
355
+ "simulate.roster": "simulate.roster";
356
+ "simulate.start": "simulate.start";
357
357
  }>;
358
358
  data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
359
359
  }, import("zod/v4/core").$strict>;
@@ -405,11 +405,11 @@ export declare const EVENT_SCHEMAS: {
405
405
  agent: import("zod").ZodString;
406
406
  call: import("zod").ZodNullable<import("zod").ZodString>;
407
407
  status: import("zod").ZodEnum<{
408
- idle: "idle";
409
- ringing: "ringing";
410
- dialing: "dialing";
411
408
  active: "active";
409
+ dialing: "dialing";
412
410
  ended: "ended";
411
+ idle: "idle";
412
+ ringing: "ringing";
413
413
  }>;
414
414
  channel: import("zod").ZodNullable<import("zod").ZodEnum<{
415
415
  phone: "phone";
@@ -437,9 +437,9 @@ export declare const EVENT_SCHEMAS: {
437
437
  kind: import("zod").ZodEnum<{
438
438
  agent: "agent";
439
439
  caller: "caller";
440
- supervisor: "supervisor";
441
440
  listener: "listener";
442
441
  sip: "sip";
442
+ supervisor: "supervisor";
443
443
  }>;
444
444
  name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
445
445
  joined_at: import("zod").ZodNumber;
@@ -451,29 +451,29 @@ export declare const EVENT_SCHEMAS: {
451
451
  started_at: import("zod").ZodNullable<import("zod").ZodNumber>;
452
452
  ended_at: import("zod").ZodNullable<import("zod").ZodNumber>;
453
453
  end_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
454
- caller_hung_up: "caller_hung_up";
455
454
  agent_hung_up: "agent_hung_up";
456
- supervisor_ended: "supervisor_ended";
457
- transferred: "transferred";
458
- no_answer: "no_answer";
455
+ app_detached: "app_detached";
459
456
  busy: "busy";
457
+ caller_hung_up: "caller_hung_up";
460
458
  dial_failed: "dial_failed";
461
- timeout: "timeout";
462
459
  drained: "drained";
463
- app_detached: "app_detached";
464
460
  error: "error";
461
+ no_answer: "no_answer";
462
+ supervisor_ended: "supervisor_ended";
463
+ timeout: "timeout";
464
+ transferred: "transferred";
465
465
  }>>;
466
466
  outcome: import("zod").ZodNullable<import("zod").ZodString>;
467
467
  user_state: import("zod").ZodNullable<import("zod").ZodEnum<{
468
+ away: "away";
468
469
  listening: "listening";
469
470
  speaking: "speaking";
470
- away: "away";
471
471
  }>>;
472
472
  agent_state: import("zod").ZodNullable<import("zod").ZodEnum<{
473
+ idle: "idle";
474
+ initializing: "initializing";
473
475
  listening: "listening";
474
476
  speaking: "speaking";
475
- initializing: "initializing";
476
- idle: "idle";
477
477
  thinking: "thinking";
478
478
  }>>;
479
479
  live: import("zod").ZodObject<{
@@ -689,9 +689,9 @@ export declare const EVENT_SCHEMAS: {
689
689
  arguments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
690
690
  speech_id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
691
691
  status: import("zod").ZodEnum<{
692
- running: "running";
693
692
  done: "done";
694
693
  failed: "failed";
694
+ running: "running";
695
695
  }>;
696
696
  output: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnknown>>;
697
697
  error: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -721,18 +721,18 @@ export declare const EVENT_SCHEMAS: {
721
721
  audience: import("zod").ZodString;
722
722
  phrase: import("zod").ZodString;
723
723
  status: import("zod").ZodEnum<{
724
- pending: "pending";
725
- granted: "granted";
726
724
  declined: "declined";
725
+ granted: "granted";
726
+ pending: "pending";
727
727
  }>;
728
728
  said: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
729
729
  reason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
730
730
  }, import("zod/v4/core").$strict>>;
731
731
  memory: import("zod").ZodArray<import("zod").ZodObject<{
732
732
  op: import("zod").ZodEnum<{
733
+ forget: "forget";
733
734
  recall: "recall";
734
735
  remember: "remember";
735
- forget: "forget";
736
736
  }>;
737
737
  contact: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
738
738
  query: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -832,12 +832,12 @@ export declare const EVENT_SCHEMAS: {
832
832
  provider: import("zod").ZodString;
833
833
  model: import("zod").ZodString;
834
834
  unit: import("zod").ZodEnum<{
835
- input_tokens: "input_tokens";
836
- cached_input_tokens: "cached_input_tokens";
835
+ audio_seconds: "audio_seconds";
837
836
  cache_creation_tokens: "cache_creation_tokens";
838
- output_tokens: "output_tokens";
837
+ cached_input_tokens: "cached_input_tokens";
839
838
  characters: "characters";
840
- audio_seconds: "audio_seconds";
839
+ input_tokens: "input_tokens";
840
+ output_tokens: "output_tokens";
841
841
  requests: "requests";
842
842
  session_seconds: "session_seconds";
843
843
  }>;
@@ -878,9 +878,9 @@ export declare const EVENT_SCHEMAS: {
878
878
  readonly "memory.ops": import("zod").ZodObject<{
879
879
  ops: import("zod").ZodArray<import("zod").ZodObject<{
880
880
  op: import("zod").ZodEnum<{
881
+ forget: "forget";
881
882
  recall: "recall";
882
883
  remember: "remember";
883
- forget: "forget";
884
884
  }>;
885
885
  contact: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
886
886
  query: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1057,9 +1057,9 @@ export declare const EVENT_SCHEMAS: {
1057
1057
  kind: import("zod").ZodEnum<{
1058
1058
  agent: "agent";
1059
1059
  caller: "caller";
1060
- supervisor: "supervisor";
1061
1060
  listener: "listener";
1062
1061
  sip: "sip";
1062
+ supervisor: "supervisor";
1063
1063
  }>;
1064
1064
  name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1065
1065
  attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
@@ -1172,30 +1172,30 @@ export declare const EVENT_SCHEMAS: {
1172
1172
  identity: import("zod").ZodString;
1173
1173
  kind: import("zod").ZodEnum<{
1174
1174
  audio: "audio";
1175
- video: "video";
1176
1175
  screen: "screen";
1176
+ video: "video";
1177
1177
  }>;
1178
1178
  source: import("zod").ZodEnum<{
1179
- unknown: "unknown";
1180
- microphone: "microphone";
1181
1179
  camera: "camera";
1180
+ microphone: "microphone";
1182
1181
  screen_share: "screen_share";
1183
1182
  screen_share_audio: "screen_share_audio";
1183
+ unknown: "unknown";
1184
1184
  }>;
1185
1185
  }, import("zod/v4/core").$strict>;
1186
1186
  readonly "track.unpublished": import("zod").ZodObject<{
1187
1187
  identity: import("zod").ZodString;
1188
1188
  kind: import("zod").ZodEnum<{
1189
1189
  audio: "audio";
1190
- video: "video";
1191
1190
  screen: "screen";
1191
+ video: "video";
1192
1192
  }>;
1193
1193
  source: import("zod").ZodEnum<{
1194
- unknown: "unknown";
1195
- microphone: "microphone";
1196
1194
  camera: "camera";
1195
+ microphone: "microphone";
1197
1196
  screen_share: "screen_share";
1198
1197
  screen_share_audio: "screen_share_audio";
1198
+ unknown: "unknown";
1199
1199
  }>;
1200
1200
  }, import("zod/v4/core").$strict>;
1201
1201
  readonly "turn.agent": import("zod").ZodObject<{
@@ -1243,9 +1243,9 @@ export declare const EVENT_SCHEMAS: {
1243
1243
  }, import("zod/v4/core").$strict>;
1244
1244
  readonly "user.state": import("zod").ZodObject<{
1245
1245
  state: import("zod").ZodEnum<{
1246
+ away: "away";
1246
1247
  listening: "listening";
1247
1248
  speaking: "speaking";
1248
- away: "away";
1249
1249
  }>;
1250
1250
  }, import("zod/v4/core").$strict>;
1251
1251
  readonly "user.transcript": import("zod").ZodObject<{
@@ -1267,8 +1267,8 @@ export declare const COMMAND_SCHEMAS: {
1267
1267
  prompt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1268
1268
  name: import("zod").ZodString;
1269
1269
  region: import("zod").ZodEnum<{
1270
- static: "static";
1271
1270
  dynamic: "dynamic";
1271
+ static: "static";
1272
1272
  }>;
1273
1273
  }, import("zod/v4/core").$strict>>>>;
1274
1274
  language: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1305,6 +1305,10 @@ 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
+ }>>>;
1308
1312
  }, import("zod/v4/core").$strict>>>;
1309
1313
  docs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1310
1314
  base: import("zod").ZodString;
@@ -1327,20 +1331,21 @@ export declare const COMMAND_SCHEMAS: {
1327
1331
  description: import("zod").ZodString;
1328
1332
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1329
1333
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1334
+ irreversible: "irreversible";
1330
1335
  read: "read";
1331
1336
  write: "write";
1332
- irreversible: "irreversible";
1333
1337
  }>>>;
1334
1338
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1335
1339
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
1336
1340
  timeout_s: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1337
1341
  }, import("zod/v4/core").$strict>>>>;
1342
+ uses_knowledge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
1338
1343
  state_fields: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1339
1344
  name: import("zod").ZodString;
1340
1345
  visibility: import("zod").ZodEnum<{
1346
+ pii: "pii";
1341
1347
  public: "public";
1342
1348
  tenant: "tenant";
1343
- pii: "pii";
1344
1349
  }>;
1345
1350
  }, import("zod/v4/core").$strict>>>>;
1346
1351
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
@@ -1432,8 +1437,8 @@ export declare const COMMAND_SCHEMAS: {
1432
1437
  readonly "room.invite": import("zod").ZodObject<{
1433
1438
  to: import("zod").ZodString;
1434
1439
  kind: import("zod").ZodEnum<{
1435
- sip: "sip";
1436
1440
  participant: "participant";
1441
+ sip: "sip";
1437
1442
  }>;
1438
1443
  }, import("zod/v4/core").$strict>;
1439
1444
  readonly "room.send": import("zod").ZodObject<{
@@ -1447,8 +1452,8 @@ export declare const COMMAND_SCHEMAS: {
1447
1452
  prompt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1448
1453
  name: import("zod").ZodString;
1449
1454
  region: import("zod").ZodEnum<{
1450
- static: "static";
1451
1455
  dynamic: "dynamic";
1456
+ static: "static";
1452
1457
  }>;
1453
1458
  }, import("zod/v4/core").$strict>>>>;
1454
1459
  language: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1485,6 +1490,10 @@ export declare const COMMAND_SCHEMAS: {
1485
1490
  knowledge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1486
1491
  path: import("zod").ZodString;
1487
1492
  text: import("zod").ZodString;
1493
+ mode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1494
+ retrieved: "retrieved";
1495
+ whole: "whole";
1496
+ }>>>;
1488
1497
  }, import("zod/v4/core").$strict>>>;
1489
1498
  docs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1490
1499
  base: import("zod").ZodString;
@@ -1507,20 +1516,21 @@ export declare const COMMAND_SCHEMAS: {
1507
1516
  description: import("zod").ZodString;
1508
1517
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1509
1518
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1519
+ irreversible: "irreversible";
1510
1520
  read: "read";
1511
1521
  write: "write";
1512
- irreversible: "irreversible";
1513
1522
  }>>>;
1514
1523
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1515
1524
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
1516
1525
  timeout_s: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
1517
1526
  }, import("zod/v4/core").$strict>>>>;
1527
+ uses_knowledge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
1518
1528
  state_fields: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1519
1529
  name: import("zod").ZodString;
1520
1530
  visibility: import("zod").ZodEnum<{
1531
+ pii: "pii";
1521
1532
  public: "public";
1522
1533
  tenant: "tenant";
1523
- pii: "pii";
1524
1534
  }>;
1525
1535
  }, import("zod/v4/core").$strict>>>>;
1526
1536
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
@@ -1577,9 +1587,9 @@ export declare const COMMAND_SCHEMAS: {
1577
1587
  description: import("zod").ZodString;
1578
1588
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1579
1589
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1590
+ irreversible: "irreversible";
1580
1591
  read: "read";
1581
1592
  write: "write";
1582
- irreversible: "irreversible";
1583
1593
  }>>>;
1584
1594
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1585
1595
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;