@pinecall/protocol 0.4.0 → 0.5.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";
35
33
  listening: "listening";
36
34
  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";
68
69
  agent_hung_up: "agent_hung_up";
69
- app_detached: "app_detached";
70
+ supervisor_ended: "supervisor_ended";
71
+ transferred: "transferred";
72
+ no_answer: "no_answer";
70
73
  busy: "busy";
71
- caller_hung_up: "caller_hung_up";
72
74
  dial_failed: "dial_failed";
75
+ timeout: "timeout";
73
76
  drained: "drained";
77
+ app_detached: "app_detached";
74
78
  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
- platform: "platform";
84
83
  supervisor: "supervisor";
84
+ platform: "platform";
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";
126
127
  broken: "broken";
127
128
  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";
170
171
  agent_hung_up: "agent_hung_up";
171
- app_detached: "app_detached";
172
+ supervisor_ended: "supervisor_ended";
173
+ transferred: "transferred";
174
+ no_answer: "no_answer";
172
175
  busy: "busy";
173
- caller_hung_up: "caller_hung_up";
174
176
  dial_failed: "dial_failed";
177
+ timeout: "timeout";
175
178
  drained: "drained";
179
+ app_detached: "app_detached";
176
180
  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
- audio_seconds: "audio_seconds";
241
- cache_creation_tokens: "cache_creation_tokens";
242
- cached_input_tokens: "cached_input_tokens";
243
- characters: "characters";
244
240
  input_tokens: "input_tokens";
241
+ cached_input_tokens: "cached_input_tokens";
242
+ cache_creation_tokens: "cache_creation_tokens";
245
243
  output_tokens: "output_tokens";
244
+ characters: "characters";
245
+ audio_seconds: "audio_seconds";
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
- cancelled: "cancelled";
295
+ timeout: "timeout";
296
296
  changed: "changed";
297
+ cancelled: "cancelled";
297
298
  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";
319
321
  agents: "agents";
320
322
  concurrent_calls: "concurrent_calls";
321
- knowledge_chunks: "knowledge_chunks";
322
323
  memory_facts: "memory_facts";
323
- messages: "messages";
324
- minutes: "minutes";
324
+ knowledge_chunks: "knowledge_chunks";
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";
339
338
  "chat.roster": "chat.roster";
340
- "chat.say": "chat.say";
341
339
  "chat.start": "chat.start";
342
- "drift.read": "drift.read";
340
+ "chat.say": "chat.say";
341
+ "chat.end": "chat.end";
342
+ "simulate.roster": "simulate.roster";
343
+ "simulate.start": "simulate.start";
343
344
  "goldens.roster": "goldens.roster";
344
345
  "goldens.run": "goldens.run";
345
- "knowledge.eval": "knowledge.eval";
346
- "knowledge.push": "knowledge.push";
347
346
  "knowledge.roster": "knowledge.roster";
347
+ "knowledge.push": "knowledge.push";
348
+ "knowledge.eval": "knowledge.eval";
349
+ "memory.roster": "memory.roster";
348
350
  "memory.eval": "memory.eval";
349
351
  "memory.extraction": "memory.extraction";
350
- "memory.roster": "memory.roster";
351
352
  "promote.roster": "promote.roster";
352
353
  "promote.write": "promote.write";
353
- "reproductions.read": "reproductions.read";
354
+ "drift.read": "drift.read";
354
355
  "reproductions.roster": "reproductions.roster";
355
- "simulate.roster": "simulate.roster";
356
- "simulate.start": "simulate.start";
356
+ "reproductions.read": "reproductions.read";
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
- active: "active";
409
- dialing: "dialing";
410
- ended: "ended";
411
408
  idle: "idle";
412
409
  ringing: "ringing";
410
+ dialing: "dialing";
411
+ active: "active";
412
+ ended: "ended";
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";
440
441
  listener: "listener";
441
442
  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";
454
455
  agent_hung_up: "agent_hung_up";
455
- app_detached: "app_detached";
456
+ supervisor_ended: "supervisor_ended";
457
+ transferred: "transferred";
458
+ no_answer: "no_answer";
456
459
  busy: "busy";
457
- caller_hung_up: "caller_hung_up";
458
460
  dial_failed: "dial_failed";
461
+ timeout: "timeout";
459
462
  drained: "drained";
463
+ app_detached: "app_detached";
460
464
  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";
469
468
  listening: "listening";
470
469
  speaking: "speaking";
470
+ away: "away";
471
471
  }>>;
472
472
  agent_state: import("zod").ZodNullable<import("zod").ZodEnum<{
473
- idle: "idle";
474
- initializing: "initializing";
475
473
  listening: "listening";
476
474
  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";
692
693
  done: "done";
693
694
  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
- declined: "declined";
725
- granted: "granted";
726
724
  pending: "pending";
725
+ granted: "granted";
726
+ declined: "declined";
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";
734
733
  recall: "recall";
735
734
  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
- audio_seconds: "audio_seconds";
836
- cache_creation_tokens: "cache_creation_tokens";
837
- cached_input_tokens: "cached_input_tokens";
838
- characters: "characters";
839
835
  input_tokens: "input_tokens";
836
+ cached_input_tokens: "cached_input_tokens";
837
+ cache_creation_tokens: "cache_creation_tokens";
840
838
  output_tokens: "output_tokens";
839
+ characters: "characters";
840
+ audio_seconds: "audio_seconds";
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";
882
881
  recall: "recall";
883
882
  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";
1060
1061
  listener: "listener";
1061
1062
  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
- screen: "screen";
1176
1175
  video: "video";
1176
+ screen: "screen";
1177
1177
  }>;
1178
1178
  source: import("zod").ZodEnum<{
1179
- camera: "camera";
1179
+ unknown: "unknown";
1180
1180
  microphone: "microphone";
1181
+ camera: "camera";
1181
1182
  screen_share: "screen_share";
1182
1183
  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
- screen: "screen";
1191
1190
  video: "video";
1191
+ screen: "screen";
1192
1192
  }>;
1193
1193
  source: import("zod").ZodEnum<{
1194
- camera: "camera";
1194
+ unknown: "unknown";
1195
1195
  microphone: "microphone";
1196
+ camera: "camera";
1196
1197
  screen_share: "screen_share";
1197
1198
  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";
1247
1246
  listening: "listening";
1248
1247
  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
- dynamic: "dynamic";
1271
1270
  static: "static";
1271
+ dynamic: "dynamic";
1272
1272
  }>;
1273
1273
  }, import("zod/v4/core").$strict>>>>;
1274
1274
  language: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1331,9 +1331,9 @@ export declare const COMMAND_SCHEMAS: {
1331
1331
  description: import("zod").ZodString;
1332
1332
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1333
1333
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1334
- irreversible: "irreversible";
1335
1334
  read: "read";
1336
1335
  write: "write";
1336
+ irreversible: "irreversible";
1337
1337
  }>>>;
1338
1338
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1339
1339
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
@@ -1343,9 +1343,9 @@ export declare const COMMAND_SCHEMAS: {
1343
1343
  state_fields: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1344
1344
  name: import("zod").ZodString;
1345
1345
  visibility: import("zod").ZodEnum<{
1346
- pii: "pii";
1347
1346
  public: "public";
1348
1347
  tenant: "tenant";
1348
+ pii: "pii";
1349
1349
  }>;
1350
1350
  }, import("zod/v4/core").$strict>>>>;
1351
1351
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
@@ -1368,6 +1368,7 @@ export declare const COMMAND_SCHEMAS: {
1368
1368
  label: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1369
1369
  }, import("zod/v4/core").$strict>>;
1370
1370
  sdk: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1371
+ host: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1371
1372
  takes_unclaimed: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
1372
1373
  }, import("zod/v4/core").$strict>;
1373
1374
  readonly "agent.reply": import("zod").ZodObject<{
@@ -1437,8 +1438,8 @@ export declare const COMMAND_SCHEMAS: {
1437
1438
  readonly "room.invite": import("zod").ZodObject<{
1438
1439
  to: import("zod").ZodString;
1439
1440
  kind: import("zod").ZodEnum<{
1440
- participant: "participant";
1441
1441
  sip: "sip";
1442
+ participant: "participant";
1442
1443
  }>;
1443
1444
  }, import("zod/v4/core").$strict>;
1444
1445
  readonly "room.send": import("zod").ZodObject<{
@@ -1452,8 +1453,8 @@ export declare const COMMAND_SCHEMAS: {
1452
1453
  prompt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1453
1454
  name: import("zod").ZodString;
1454
1455
  region: import("zod").ZodEnum<{
1455
- dynamic: "dynamic";
1456
1456
  static: "static";
1457
+ dynamic: "dynamic";
1457
1458
  }>;
1458
1459
  }, import("zod/v4/core").$strict>>>>;
1459
1460
  language: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
@@ -1516,9 +1517,9 @@ export declare const COMMAND_SCHEMAS: {
1516
1517
  description: import("zod").ZodString;
1517
1518
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1518
1519
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1519
- irreversible: "irreversible";
1520
1520
  read: "read";
1521
1521
  write: "write";
1522
+ irreversible: "irreversible";
1522
1523
  }>>>;
1523
1524
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1524
1525
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
@@ -1528,9 +1529,9 @@ export declare const COMMAND_SCHEMAS: {
1528
1529
  state_fields: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
1529
1530
  name: import("zod").ZodString;
1530
1531
  visibility: import("zod").ZodEnum<{
1531
- pii: "pii";
1532
1532
  public: "public";
1533
1533
  tenant: "tenant";
1534
+ pii: "pii";
1534
1535
  }>;
1535
1536
  }, import("zod/v4/core").$strict>>>>;
1536
1537
  events: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
@@ -1587,9 +1588,9 @@ export declare const COMMAND_SCHEMAS: {
1587
1588
  description: import("zod").ZodString;
1588
1589
  parameters: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
1589
1590
  side_effect: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
1590
- irreversible: "irreversible";
1591
1591
  read: "read";
1592
1592
  write: "write";
1593
+ irreversible: "irreversible";
1593
1594
  }>>>;
1594
1595
  confirm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1595
1596
  pii: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;