@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.
@@ -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,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;
@@ -1331,9 +1327,9 @@ export declare const COMMAND_SCHEMAS: {
1331
1327
  description: import("zod").ZodString;
1332
1328
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1333
1329
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1330
+ irreversible: "irreversible";
1334
1331
  read: "read";
1335
1332
  write: "write";
1336
- irreversible: "irreversible";
1337
1333
  }>>>;
1338
1334
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1339
1335
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
@@ -1343,9 +1339,9 @@ export declare const COMMAND_SCHEMAS: {
1343
1339
  state_fields: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1344
1340
  name: import("zod").ZodString;
1345
1341
  visibility: import("zod").ZodEnum<{
1342
+ pii: "pii";
1346
1343
  public: "public";
1347
1344
  tenant: "tenant";
1348
- pii: "pii";
1349
1345
  }>;
1350
1346
  }, import("zod/v4/core").$strict>>>>;
1351
1347
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
@@ -1438,8 +1434,8 @@ export declare const COMMAND_SCHEMAS: {
1438
1434
  readonly "room.invite": import("zod").ZodObject<{
1439
1435
  to: import("zod").ZodString;
1440
1436
  kind: import("zod").ZodEnum<{
1441
- sip: "sip";
1442
1437
  participant: "participant";
1438
+ sip: "sip";
1443
1439
  }>;
1444
1440
  }, import("zod/v4/core").$strict>;
1445
1441
  readonly "room.send": import("zod").ZodObject<{
@@ -1453,8 +1449,8 @@ export declare const COMMAND_SCHEMAS: {
1453
1449
  prompt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1454
1450
  name: import("zod").ZodString;
1455
1451
  region: import("zod").ZodEnum<{
1456
- static: "static";
1457
1452
  dynamic: "dynamic";
1453
+ static: "static";
1458
1454
  }>;
1459
1455
  }, import("zod/v4/core").$strict>>>>;
1460
1456
  language: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1491,10 +1487,6 @@ export declare const COMMAND_SCHEMAS: {
1491
1487
  knowledge: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1492
1488
  path: import("zod").ZodString;
1493
1489
  text: import("zod").ZodString;
1494
- mode: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1495
- retrieved: "retrieved";
1496
- whole: "whole";
1497
- }>>>;
1498
1490
  }, import("zod/v4/core").$strict>>>;
1499
1491
  docs: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
1500
1492
  base: import("zod").ZodString;
@@ -1517,9 +1509,9 @@ export declare const COMMAND_SCHEMAS: {
1517
1509
  description: import("zod").ZodString;
1518
1510
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1519
1511
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1512
+ irreversible: "irreversible";
1520
1513
  read: "read";
1521
1514
  write: "write";
1522
- irreversible: "irreversible";
1523
1515
  }>>>;
1524
1516
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1525
1517
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
@@ -1529,9 +1521,9 @@ export declare const COMMAND_SCHEMAS: {
1529
1521
  state_fields: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1530
1522
  name: import("zod").ZodString;
1531
1523
  visibility: import("zod").ZodEnum<{
1524
+ pii: "pii";
1532
1525
  public: "public";
1533
1526
  tenant: "tenant";
1534
- pii: "pii";
1535
1527
  }>;
1536
1528
  }, import("zod/v4/core").$strict>>>>;
1537
1529
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
@@ -1588,9 +1580,9 @@ export declare const COMMAND_SCHEMAS: {
1588
1580
  description: import("zod").ZodString;
1589
1581
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1590
1582
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1583
+ irreversible: "irreversible";
1591
1584
  read: "read";
1592
1585
  write: "write";
1593
- irreversible: "irreversible";
1594
1586
  }>>>;
1595
1587
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1596
1588
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;