@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.
@@ -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,24 @@ 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.start": "simulate.start";
357
356
  }>;
358
357
  data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
359
358
  }, import("zod/v4/core").$strict>;
@@ -405,11 +404,11 @@ export declare const EVENT_SCHEMAS: {
405
404
  agent: import("zod").ZodString;
406
405
  call: import("zod").ZodNullable<import("zod").ZodString>;
407
406
  status: import("zod").ZodEnum<{
408
- idle: "idle";
409
- ringing: "ringing";
410
- dialing: "dialing";
411
407
  active: "active";
408
+ dialing: "dialing";
412
409
  ended: "ended";
410
+ idle: "idle";
411
+ ringing: "ringing";
413
412
  }>;
414
413
  channel: import("zod").ZodNullable<import("zod").ZodEnum<{
415
414
  phone: "phone";
@@ -437,9 +436,9 @@ export declare const EVENT_SCHEMAS: {
437
436
  kind: import("zod").ZodEnum<{
438
437
  agent: "agent";
439
438
  caller: "caller";
440
- supervisor: "supervisor";
441
439
  listener: "listener";
442
440
  sip: "sip";
441
+ supervisor: "supervisor";
443
442
  }>;
444
443
  name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
445
444
  joined_at: import("zod").ZodNumber;
@@ -451,29 +450,29 @@ export declare const EVENT_SCHEMAS: {
451
450
  started_at: import("zod").ZodNullable<import("zod").ZodNumber>;
452
451
  ended_at: import("zod").ZodNullable<import("zod").ZodNumber>;
453
452
  end_reason: import("zod").ZodNullable<import("zod").ZodEnum<{
454
- caller_hung_up: "caller_hung_up";
455
453
  agent_hung_up: "agent_hung_up";
456
- supervisor_ended: "supervisor_ended";
457
- transferred: "transferred";
458
- no_answer: "no_answer";
454
+ app_detached: "app_detached";
459
455
  busy: "busy";
456
+ caller_hung_up: "caller_hung_up";
460
457
  dial_failed: "dial_failed";
461
- timeout: "timeout";
462
458
  drained: "drained";
463
- app_detached: "app_detached";
464
459
  error: "error";
460
+ no_answer: "no_answer";
461
+ supervisor_ended: "supervisor_ended";
462
+ timeout: "timeout";
463
+ transferred: "transferred";
465
464
  }>>;
466
465
  outcome: import("zod").ZodNullable<import("zod").ZodString>;
467
466
  user_state: import("zod").ZodNullable<import("zod").ZodEnum<{
467
+ away: "away";
468
468
  listening: "listening";
469
469
  speaking: "speaking";
470
- away: "away";
471
470
  }>>;
472
471
  agent_state: import("zod").ZodNullable<import("zod").ZodEnum<{
472
+ idle: "idle";
473
+ initializing: "initializing";
473
474
  listening: "listening";
474
475
  speaking: "speaking";
475
- initializing: "initializing";
476
- idle: "idle";
477
476
  thinking: "thinking";
478
477
  }>>;
479
478
  live: import("zod").ZodObject<{
@@ -689,9 +688,9 @@ export declare const EVENT_SCHEMAS: {
689
688
  arguments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
690
689
  speech_id: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
691
690
  status: import("zod").ZodEnum<{
692
- running: "running";
693
691
  done: "done";
694
692
  failed: "failed";
693
+ running: "running";
695
694
  }>;
696
695
  output: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnknown>>;
697
696
  error: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -721,18 +720,18 @@ export declare const EVENT_SCHEMAS: {
721
720
  audience: import("zod").ZodString;
722
721
  phrase: import("zod").ZodString;
723
722
  status: import("zod").ZodEnum<{
724
- pending: "pending";
725
- granted: "granted";
726
723
  declined: "declined";
724
+ granted: "granted";
725
+ pending: "pending";
727
726
  }>;
728
727
  said: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
729
728
  reason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
730
729
  }, import("zod/v4/core").$strict>>;
731
730
  memory: import("zod").ZodArray<import("zod").ZodObject<{
732
731
  op: import("zod").ZodEnum<{
732
+ forget: "forget";
733
733
  recall: "recall";
734
734
  remember: "remember";
735
- forget: "forget";
736
735
  }>;
737
736
  contact: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
738
737
  query: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -832,12 +831,12 @@ export declare const EVENT_SCHEMAS: {
832
831
  provider: import("zod").ZodString;
833
832
  model: import("zod").ZodString;
834
833
  unit: import("zod").ZodEnum<{
835
- input_tokens: "input_tokens";
836
- cached_input_tokens: "cached_input_tokens";
834
+ audio_seconds: "audio_seconds";
837
835
  cache_creation_tokens: "cache_creation_tokens";
838
- output_tokens: "output_tokens";
836
+ cached_input_tokens: "cached_input_tokens";
839
837
  characters: "characters";
840
- audio_seconds: "audio_seconds";
838
+ input_tokens: "input_tokens";
839
+ output_tokens: "output_tokens";
841
840
  requests: "requests";
842
841
  session_seconds: "session_seconds";
843
842
  }>;
@@ -878,9 +877,9 @@ export declare const EVENT_SCHEMAS: {
878
877
  readonly "memory.ops": import("zod").ZodObject<{
879
878
  ops: import("zod").ZodArray<import("zod").ZodObject<{
880
879
  op: import("zod").ZodEnum<{
880
+ forget: "forget";
881
881
  recall: "recall";
882
882
  remember: "remember";
883
- forget: "forget";
884
883
  }>;
885
884
  contact: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
886
885
  query: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1057,9 +1056,9 @@ export declare const EVENT_SCHEMAS: {
1057
1056
  kind: import("zod").ZodEnum<{
1058
1057
  agent: "agent";
1059
1058
  caller: "caller";
1060
- supervisor: "supervisor";
1061
1059
  listener: "listener";
1062
1060
  sip: "sip";
1061
+ supervisor: "supervisor";
1063
1062
  }>;
1064
1063
  name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1065
1064
  attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
@@ -1172,30 +1171,30 @@ export declare const EVENT_SCHEMAS: {
1172
1171
  identity: import("zod").ZodString;
1173
1172
  kind: import("zod").ZodEnum<{
1174
1173
  audio: "audio";
1175
- video: "video";
1176
1174
  screen: "screen";
1175
+ video: "video";
1177
1176
  }>;
1178
1177
  source: import("zod").ZodEnum<{
1179
- unknown: "unknown";
1180
- microphone: "microphone";
1181
1178
  camera: "camera";
1179
+ microphone: "microphone";
1182
1180
  screen_share: "screen_share";
1183
1181
  screen_share_audio: "screen_share_audio";
1182
+ unknown: "unknown";
1184
1183
  }>;
1185
1184
  }, import("zod/v4/core").$strict>;
1186
1185
  readonly "track.unpublished": import("zod").ZodObject<{
1187
1186
  identity: import("zod").ZodString;
1188
1187
  kind: import("zod").ZodEnum<{
1189
1188
  audio: "audio";
1190
- video: "video";
1191
1189
  screen: "screen";
1190
+ video: "video";
1192
1191
  }>;
1193
1192
  source: import("zod").ZodEnum<{
1194
- unknown: "unknown";
1195
- microphone: "microphone";
1196
1193
  camera: "camera";
1194
+ microphone: "microphone";
1197
1195
  screen_share: "screen_share";
1198
1196
  screen_share_audio: "screen_share_audio";
1197
+ unknown: "unknown";
1199
1198
  }>;
1200
1199
  }, import("zod/v4/core").$strict>;
1201
1200
  readonly "turn.agent": import("zod").ZodObject<{
@@ -1243,9 +1242,9 @@ export declare const EVENT_SCHEMAS: {
1243
1242
  }, import("zod/v4/core").$strict>;
1244
1243
  readonly "user.state": import("zod").ZodObject<{
1245
1244
  state: import("zod").ZodEnum<{
1245
+ away: "away";
1246
1246
  listening: "listening";
1247
1247
  speaking: "speaking";
1248
- away: "away";
1249
1248
  }>;
1250
1249
  }, import("zod/v4/core").$strict>;
1251
1250
  readonly "user.transcript": import("zod").ZodObject<{
@@ -1267,8 +1266,8 @@ export declare const COMMAND_SCHEMAS: {
1267
1266
  prompt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1268
1267
  name: import("zod").ZodString;
1269
1268
  region: import("zod").ZodEnum<{
1270
- static: "static";
1271
1269
  dynamic: "dynamic";
1270
+ static: "static";
1272
1271
  }>;
1273
1272
  }, import("zod/v4/core").$strict>>>>;
1274
1273
  language: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1305,10 +1304,6 @@ export declare const COMMAND_SCHEMAS: {
1305
1304
  knowledge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1306
1305
  path: import("zod").ZodString;
1307
1306
  text: import("zod").ZodString;
1308
- mode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1309
- retrieved: "retrieved";
1310
- whole: "whole";
1311
- }>>>;
1312
1307
  }, import("zod/v4/core").$strict>>>;
1313
1308
  docs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1314
1309
  base: import("zod").ZodString;
@@ -1331,9 +1326,9 @@ export declare const COMMAND_SCHEMAS: {
1331
1326
  description: import("zod").ZodString;
1332
1327
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1333
1328
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1329
+ irreversible: "irreversible";
1334
1330
  read: "read";
1335
1331
  write: "write";
1336
- irreversible: "irreversible";
1337
1332
  }>>>;
1338
1333
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1339
1334
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
@@ -1343,9 +1338,9 @@ export declare const COMMAND_SCHEMAS: {
1343
1338
  state_fields: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1344
1339
  name: import("zod").ZodString;
1345
1340
  visibility: import("zod").ZodEnum<{
1341
+ pii: "pii";
1346
1342
  public: "public";
1347
1343
  tenant: "tenant";
1348
- pii: "pii";
1349
1344
  }>;
1350
1345
  }, import("zod/v4/core").$strict>>>>;
1351
1346
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
@@ -1438,8 +1433,8 @@ export declare const COMMAND_SCHEMAS: {
1438
1433
  readonly "room.invite": import("zod").ZodObject<{
1439
1434
  to: import("zod").ZodString;
1440
1435
  kind: import("zod").ZodEnum<{
1441
- sip: "sip";
1442
1436
  participant: "participant";
1437
+ sip: "sip";
1443
1438
  }>;
1444
1439
  }, import("zod/v4/core").$strict>;
1445
1440
  readonly "room.send": import("zod").ZodObject<{
@@ -1453,8 +1448,8 @@ export declare const COMMAND_SCHEMAS: {
1453
1448
  prompt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1454
1449
  name: import("zod").ZodString;
1455
1450
  region: import("zod").ZodEnum<{
1456
- static: "static";
1457
1451
  dynamic: "dynamic";
1452
+ static: "static";
1458
1453
  }>;
1459
1454
  }, import("zod/v4/core").$strict>>>>;
1460
1455
  language: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1491,10 +1486,6 @@ export declare const COMMAND_SCHEMAS: {
1491
1486
  knowledge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1492
1487
  path: import("zod").ZodString;
1493
1488
  text: import("zod").ZodString;
1494
- mode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1495
- retrieved: "retrieved";
1496
- whole: "whole";
1497
- }>>>;
1498
1489
  }, import("zod/v4/core").$strict>>>;
1499
1490
  docs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1500
1491
  base: import("zod").ZodString;
@@ -1517,9 +1508,9 @@ export declare const COMMAND_SCHEMAS: {
1517
1508
  description: import("zod").ZodString;
1518
1509
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1519
1510
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1511
+ irreversible: "irreversible";
1520
1512
  read: "read";
1521
1513
  write: "write";
1522
- irreversible: "irreversible";
1523
1514
  }>>>;
1524
1515
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1525
1516
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
@@ -1529,9 +1520,9 @@ export declare const COMMAND_SCHEMAS: {
1529
1520
  state_fields: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1530
1521
  name: import("zod").ZodString;
1531
1522
  visibility: import("zod").ZodEnum<{
1523
+ pii: "pii";
1532
1524
  public: "public";
1533
1525
  tenant: "tenant";
1534
- pii: "pii";
1535
1526
  }>;
1536
1527
  }, import("zod/v4/core").$strict>>>>;
1537
1528
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
@@ -1588,9 +1579,9 @@ export declare const COMMAND_SCHEMAS: {
1588
1579
  description: import("zod").ZodString;
1589
1580
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1590
1581
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1582
+ irreversible: "irreversible";
1591
1583
  read: "read";
1592
1584
  write: "write";
1593
- irreversible: "irreversible";
1594
1585
  }>>>;
1595
1586
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1596
1587
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;