@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.
@@ -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,25 @@ 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.roster": "simulate.roster";
469
+ "simulate.start": "simulate.start";
470
470
  }>;
471
471
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
472
472
  }, z.core.$strict>;
@@ -536,11 +536,11 @@ export declare const LogGapSchema: z.ZodObject<{
536
536
  agent: z.ZodString;
537
537
  call: z.ZodNullable<z.ZodString>;
538
538
  status: z.ZodEnum<{
539
- idle: "idle";
540
- ringing: "ringing";
541
- dialing: "dialing";
542
539
  active: "active";
540
+ dialing: "dialing";
543
541
  ended: "ended";
542
+ idle: "idle";
543
+ ringing: "ringing";
544
544
  }>;
545
545
  channel: z.ZodNullable<z.ZodEnum<{
546
546
  phone: "phone";
@@ -568,9 +568,9 @@ export declare const LogGapSchema: z.ZodObject<{
568
568
  kind: z.ZodEnum<{
569
569
  agent: "agent";
570
570
  caller: "caller";
571
- supervisor: "supervisor";
572
571
  listener: "listener";
573
572
  sip: "sip";
573
+ supervisor: "supervisor";
574
574
  }>;
575
575
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
576
  joined_at: z.ZodNumber;
@@ -582,29 +582,29 @@ export declare const LogGapSchema: z.ZodObject<{
582
582
  started_at: z.ZodNullable<z.ZodNumber>;
583
583
  ended_at: z.ZodNullable<z.ZodNumber>;
584
584
  end_reason: z.ZodNullable<z.ZodEnum<{
585
- caller_hung_up: "caller_hung_up";
586
585
  agent_hung_up: "agent_hung_up";
587
- supervisor_ended: "supervisor_ended";
588
- transferred: "transferred";
589
- no_answer: "no_answer";
586
+ app_detached: "app_detached";
590
587
  busy: "busy";
588
+ caller_hung_up: "caller_hung_up";
591
589
  dial_failed: "dial_failed";
592
- timeout: "timeout";
593
590
  drained: "drained";
594
- app_detached: "app_detached";
595
591
  error: "error";
592
+ no_answer: "no_answer";
593
+ supervisor_ended: "supervisor_ended";
594
+ timeout: "timeout";
595
+ transferred: "transferred";
596
596
  }>>;
597
597
  outcome: z.ZodNullable<z.ZodString>;
598
598
  user_state: z.ZodNullable<z.ZodEnum<{
599
+ away: "away";
599
600
  listening: "listening";
600
601
  speaking: "speaking";
601
- away: "away";
602
602
  }>>;
603
603
  agent_state: z.ZodNullable<z.ZodEnum<{
604
+ idle: "idle";
605
+ initializing: "initializing";
604
606
  listening: "listening";
605
607
  speaking: "speaking";
606
- initializing: "initializing";
607
- idle: "idle";
608
608
  thinking: "thinking";
609
609
  }>>;
610
610
  live: z.ZodObject<{
@@ -820,9 +820,9 @@ export declare const LogGapSchema: z.ZodObject<{
820
820
  arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
821
821
  speech_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
822
822
  status: z.ZodEnum<{
823
- running: "running";
824
823
  done: "done";
825
824
  failed: "failed";
825
+ running: "running";
826
826
  }>;
827
827
  output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
828
828
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -852,18 +852,18 @@ export declare const LogGapSchema: z.ZodObject<{
852
852
  audience: z.ZodString;
853
853
  phrase: z.ZodString;
854
854
  status: z.ZodEnum<{
855
- pending: "pending";
856
- granted: "granted";
857
855
  declined: "declined";
856
+ granted: "granted";
857
+ pending: "pending";
858
858
  }>;
859
859
  said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
860
860
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
861
861
  }, z.core.$strict>>;
862
862
  memory: z.ZodArray<z.ZodObject<{
863
863
  op: z.ZodEnum<{
864
+ forget: "forget";
864
865
  recall: "recall";
865
866
  remember: "remember";
866
- forget: "forget";
867
867
  }>;
868
868
  contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
869
869
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -963,12 +963,12 @@ export declare const LogGapSchema: z.ZodObject<{
963
963
  provider: z.ZodString;
964
964
  model: z.ZodString;
965
965
  unit: z.ZodEnum<{
966
- input_tokens: "input_tokens";
967
- cached_input_tokens: "cached_input_tokens";
966
+ audio_seconds: "audio_seconds";
968
967
  cache_creation_tokens: "cache_creation_tokens";
969
- output_tokens: "output_tokens";
968
+ cached_input_tokens: "cached_input_tokens";
970
969
  characters: "characters";
971
- audio_seconds: "audio_seconds";
970
+ input_tokens: "input_tokens";
971
+ output_tokens: "output_tokens";
972
972
  requests: "requests";
973
973
  session_seconds: "session_seconds";
974
974
  }>;
@@ -1014,9 +1014,9 @@ export type LogGap = z.infer<typeof LogGapSchema>;
1014
1014
  export declare const MemoryOpsSchema: z.ZodObject<{
1015
1015
  ops: z.ZodArray<z.ZodObject<{
1016
1016
  op: z.ZodEnum<{
1017
+ forget: "forget";
1017
1018
  recall: "recall";
1018
1019
  remember: "remember";
1019
- forget: "forget";
1020
1020
  }>;
1021
1021
  contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
1022
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1218,9 +1218,9 @@ export type UserTurnEnded = z.infer<typeof UserTurnEndedSchema>;
1218
1218
  /** The caller's state changed, in the session's own words. */
1219
1219
  export declare const UserStateChangedSchema: z.ZodObject<{
1220
1220
  state: z.ZodEnum<{
1221
+ away: "away";
1221
1222
  listening: "listening";
1222
1223
  speaking: "speaking";
1223
- away: "away";
1224
1224
  }>;
1225
1225
  }, z.core.$strict>;
1226
1226
  export type UserStateChanged = z.infer<typeof UserStateChangedSchema>;