@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.
@@ -43,10 +43,10 @@ export type AgentRegistered = z.infer<typeof AgentRegisteredSchema>;
43
43
  /** The agent's state changed, in the session's own words. */
44
44
  export declare const AgentStateChangedSchema: z.ZodObject<{
45
45
  state: z.ZodEnum<{
46
+ idle: "idle";
47
+ initializing: "initializing";
46
48
  listening: "listening";
47
49
  speaking: "speaking";
48
- initializing: "initializing";
49
- idle: "idle";
50
50
  thinking: "thinking";
51
51
  }>;
52
52
  }, z.core.$strict>;
@@ -92,23 +92,23 @@ export type CallDialing = z.infer<typeof CallDialingSchema>;
92
92
  /** The call is over. Nothing about the conversation follows; call.summary still does. */
93
93
  export declare const CallEndedSchema: z.ZodObject<{
94
94
  reason: z.ZodEnum<{
95
- caller_hung_up: "caller_hung_up";
96
95
  agent_hung_up: "agent_hung_up";
97
- supervisor_ended: "supervisor_ended";
98
- transferred: "transferred";
99
- no_answer: "no_answer";
96
+ app_detached: "app_detached";
100
97
  busy: "busy";
98
+ caller_hung_up: "caller_hung_up";
101
99
  dial_failed: "dial_failed";
102
- timeout: "timeout";
103
100
  drained: "drained";
104
- app_detached: "app_detached";
105
101
  error: "error";
102
+ no_answer: "no_answer";
103
+ supervisor_ended: "supervisor_ended";
104
+ timeout: "timeout";
105
+ transferred: "transferred";
106
106
  }>;
107
107
  ended_by: z.ZodEnum<{
108
108
  agent: "agent";
109
109
  caller: "caller";
110
- supervisor: "supervisor";
111
110
  platform: "platform";
111
+ supervisor: "supervisor";
112
112
  }>;
113
113
  ended_at: z.ZodNumber;
114
114
  duration_s: z.ZodNumber;
@@ -171,9 +171,9 @@ export type JudgmentEvidence = z.infer<typeof JudgmentEvidenceSchema>;
171
171
  export declare const JudgmentSchema: z.ZodObject<{
172
172
  name: z.ZodString;
173
173
  verdict: z.ZodEnum<{
174
- held: "held";
175
174
  broken: "broken";
176
175
  deferred: "deferred";
176
+ held: "held";
177
177
  skipped: "skipped";
178
178
  }>;
179
179
  criteria: z.ZodString;
@@ -194,9 +194,9 @@ export declare const CallScoreSchema: z.ZodObject<{
194
194
  judges: z.ZodArray<z.ZodObject<{
195
195
  name: z.ZodString;
196
196
  verdict: z.ZodEnum<{
197
- held: "held";
198
197
  broken: "broken";
199
198
  deferred: "deferred";
199
+ held: "held";
200
200
  skipped: "skipped";
201
201
  }>;
202
202
  criteria: z.ZodString;
@@ -248,17 +248,17 @@ export type CallStarted = z.infer<typeof CallStartedSchema>;
248
248
  */
249
249
  export declare const CallSummarySchema: z.ZodObject<{
250
250
  reason: z.ZodEnum<{
251
- caller_hung_up: "caller_hung_up";
252
251
  agent_hung_up: "agent_hung_up";
253
- supervisor_ended: "supervisor_ended";
254
- transferred: "transferred";
255
- no_answer: "no_answer";
252
+ app_detached: "app_detached";
256
253
  busy: "busy";
254
+ caller_hung_up: "caller_hung_up";
257
255
  dial_failed: "dial_failed";
258
- timeout: "timeout";
259
256
  drained: "drained";
260
- app_detached: "app_detached";
261
257
  error: "error";
258
+ no_answer: "no_answer";
259
+ supervisor_ended: "supervisor_ended";
260
+ timeout: "timeout";
261
+ transferred: "transferred";
262
262
  }>;
263
263
  outcome: z.ZodString;
264
264
  duration_s: z.ZodNumber;
@@ -318,12 +318,12 @@ export declare const CallSummarySchema: z.ZodObject<{
318
318
  provider: z.ZodString;
319
319
  model: z.ZodString;
320
320
  unit: z.ZodEnum<{
321
- input_tokens: "input_tokens";
322
- cached_input_tokens: "cached_input_tokens";
321
+ audio_seconds: "audio_seconds";
323
322
  cache_creation_tokens: "cache_creation_tokens";
324
- output_tokens: "output_tokens";
323
+ cached_input_tokens: "cached_input_tokens";
325
324
  characters: "characters";
326
- audio_seconds: "audio_seconds";
325
+ input_tokens: "input_tokens";
326
+ output_tokens: "output_tokens";
327
327
  requests: "requests";
328
328
  session_seconds: "session_seconds";
329
329
  }>;
@@ -383,10 +383,10 @@ export declare const ConfirmDeclinedSchema: z.ZodObject<{
383
383
  audience: z.ZodString;
384
384
  said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
385
385
  reason: z.ZodEnum<{
386
- timeout: "timeout";
387
- changed: "changed";
388
386
  cancelled: "cancelled";
387
+ changed: "changed";
389
388
  no: "no";
389
+ timeout: "timeout";
390
390
  }>;
391
391
  }, z.core.$strict>;
392
392
  export type ConfirmDeclined = z.infer<typeof ConfirmDeclinedSchema>;
@@ -422,12 +422,12 @@ export type ConfirmRequest = z.infer<typeof ConfirmRequestSchema>;
422
422
  export declare const CreditsExhaustedSchema: z.ZodObject<{
423
423
  org: z.ZodString;
424
424
  quota: z.ZodEnum<{
425
- minutes: "minutes";
426
- messages: "messages";
427
425
  agents: "agents";
428
426
  concurrent_calls: "concurrent_calls";
429
- memory_facts: "memory_facts";
430
427
  knowledge_chunks: "knowledge_chunks";
428
+ memory_facts: "memory_facts";
429
+ messages: "messages";
430
+ minutes: "minutes";
431
431
  numbers: "numbers";
432
432
  seats: "seats";
433
433
  }>;
@@ -448,25 +448,24 @@ export type Custom = z.infer<typeof CustomSchema>;
448
448
  export declare const DevRequestSchema: z.ZodObject<{
449
449
  id: z.ZodString;
450
450
  verb: z.ZodEnum<{
451
+ "chat.end": "chat.end";
451
452
  "chat.roster": "chat.roster";
452
- "chat.start": "chat.start";
453
453
  "chat.say": "chat.say";
454
- "chat.end": "chat.end";
455
- "simulate.roster": "simulate.roster";
456
- "simulate.start": "simulate.start";
454
+ "chat.start": "chat.start";
455
+ "drift.read": "drift.read";
457
456
  "goldens.roster": "goldens.roster";
458
457
  "goldens.run": "goldens.run";
459
- "knowledge.roster": "knowledge.roster";
460
- "knowledge.push": "knowledge.push";
461
458
  "knowledge.eval": "knowledge.eval";
462
- "memory.roster": "memory.roster";
459
+ "knowledge.push": "knowledge.push";
460
+ "knowledge.roster": "knowledge.roster";
463
461
  "memory.eval": "memory.eval";
464
462
  "memory.extraction": "memory.extraction";
463
+ "memory.roster": "memory.roster";
465
464
  "promote.roster": "promote.roster";
466
465
  "promote.write": "promote.write";
467
- "drift.read": "drift.read";
468
- "reproductions.roster": "reproductions.roster";
469
466
  "reproductions.read": "reproductions.read";
467
+ "reproductions.roster": "reproductions.roster";
468
+ "simulate.start": "simulate.start";
470
469
  }>;
471
470
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
472
471
  }, z.core.$strict>;
@@ -536,11 +535,11 @@ export declare const LogGapSchema: z.ZodObject<{
536
535
  agent: z.ZodString;
537
536
  call: z.ZodNullable<z.ZodString>;
538
537
  status: z.ZodEnum<{
539
- idle: "idle";
540
- ringing: "ringing";
541
- dialing: "dialing";
542
538
  active: "active";
539
+ dialing: "dialing";
543
540
  ended: "ended";
541
+ idle: "idle";
542
+ ringing: "ringing";
544
543
  }>;
545
544
  channel: z.ZodNullable<z.ZodEnum<{
546
545
  phone: "phone";
@@ -568,9 +567,9 @@ export declare const LogGapSchema: z.ZodObject<{
568
567
  kind: z.ZodEnum<{
569
568
  agent: "agent";
570
569
  caller: "caller";
571
- supervisor: "supervisor";
572
570
  listener: "listener";
573
571
  sip: "sip";
572
+ supervisor: "supervisor";
574
573
  }>;
575
574
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
575
  joined_at: z.ZodNumber;
@@ -582,29 +581,29 @@ export declare const LogGapSchema: z.ZodObject<{
582
581
  started_at: z.ZodNullable<z.ZodNumber>;
583
582
  ended_at: z.ZodNullable<z.ZodNumber>;
584
583
  end_reason: z.ZodNullable<z.ZodEnum<{
585
- caller_hung_up: "caller_hung_up";
586
584
  agent_hung_up: "agent_hung_up";
587
- supervisor_ended: "supervisor_ended";
588
- transferred: "transferred";
589
- no_answer: "no_answer";
585
+ app_detached: "app_detached";
590
586
  busy: "busy";
587
+ caller_hung_up: "caller_hung_up";
591
588
  dial_failed: "dial_failed";
592
- timeout: "timeout";
593
589
  drained: "drained";
594
- app_detached: "app_detached";
595
590
  error: "error";
591
+ no_answer: "no_answer";
592
+ supervisor_ended: "supervisor_ended";
593
+ timeout: "timeout";
594
+ transferred: "transferred";
596
595
  }>>;
597
596
  outcome: z.ZodNullable<z.ZodString>;
598
597
  user_state: z.ZodNullable<z.ZodEnum<{
598
+ away: "away";
599
599
  listening: "listening";
600
600
  speaking: "speaking";
601
- away: "away";
602
601
  }>>;
603
602
  agent_state: z.ZodNullable<z.ZodEnum<{
603
+ idle: "idle";
604
+ initializing: "initializing";
604
605
  listening: "listening";
605
606
  speaking: "speaking";
606
- initializing: "initializing";
607
- idle: "idle";
608
607
  thinking: "thinking";
609
608
  }>>;
610
609
  live: z.ZodObject<{
@@ -820,9 +819,9 @@ export declare const LogGapSchema: z.ZodObject<{
820
819
  arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
821
820
  speech_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
821
  status: z.ZodEnum<{
823
- running: "running";
824
822
  done: "done";
825
823
  failed: "failed";
824
+ running: "running";
826
825
  }>;
827
826
  output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
828
827
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -852,18 +851,18 @@ export declare const LogGapSchema: z.ZodObject<{
852
851
  audience: z.ZodString;
853
852
  phrase: z.ZodString;
854
853
  status: z.ZodEnum<{
855
- pending: "pending";
856
- granted: "granted";
857
854
  declined: "declined";
855
+ granted: "granted";
856
+ pending: "pending";
858
857
  }>;
859
858
  said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
860
859
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
861
860
  }, z.core.$strict>>;
862
861
  memory: z.ZodArray<z.ZodObject<{
863
862
  op: z.ZodEnum<{
863
+ forget: "forget";
864
864
  recall: "recall";
865
865
  remember: "remember";
866
- forget: "forget";
867
866
  }>;
868
867
  contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
869
868
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -963,12 +962,12 @@ export declare const LogGapSchema: z.ZodObject<{
963
962
  provider: z.ZodString;
964
963
  model: z.ZodString;
965
964
  unit: z.ZodEnum<{
966
- input_tokens: "input_tokens";
967
- cached_input_tokens: "cached_input_tokens";
965
+ audio_seconds: "audio_seconds";
968
966
  cache_creation_tokens: "cache_creation_tokens";
969
- output_tokens: "output_tokens";
967
+ cached_input_tokens: "cached_input_tokens";
970
968
  characters: "characters";
971
- audio_seconds: "audio_seconds";
969
+ input_tokens: "input_tokens";
970
+ output_tokens: "output_tokens";
972
971
  requests: "requests";
973
972
  session_seconds: "session_seconds";
974
973
  }>;
@@ -1014,9 +1013,9 @@ export type LogGap = z.infer<typeof LogGapSchema>;
1014
1013
  export declare const MemoryOpsSchema: z.ZodObject<{
1015
1014
  ops: z.ZodArray<z.ZodObject<{
1016
1015
  op: z.ZodEnum<{
1016
+ forget: "forget";
1017
1017
  recall: "recall";
1018
1018
  remember: "remember";
1019
- forget: "forget";
1020
1019
  }>;
1021
1020
  contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
1021
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1218,9 +1217,9 @@ export type UserTurnEnded = z.infer<typeof UserTurnEndedSchema>;
1218
1217
  /** The caller's state changed, in the session's own words. */
1219
1218
  export declare const UserStateChangedSchema: z.ZodObject<{
1220
1219
  state: z.ZodEnum<{
1220
+ away: "away";
1221
1221
  listening: "listening";
1222
1222
  speaking: "speaking";
1223
- away: "away";
1224
1223
  }>;
1225
1224
  }, z.core.$strict>;
1226
1225
  export type UserStateChanged = z.infer<typeof UserStateChangedSchema>;