@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.
@@ -4,11 +4,11 @@ import { z } from "zod";
4
4
  * looks like.
5
5
  */
6
6
  export declare const CallStatusSchema: z.ZodEnum<{
7
- idle: "idle";
8
- ringing: "ringing";
9
- dialing: "dialing";
10
7
  active: "active";
8
+ dialing: "dialing";
11
9
  ended: "ended";
10
+ idle: "idle";
11
+ ringing: "ringing";
12
12
  }>;
13
13
  export type CallStatus = z.infer<typeof CallStatusSchema>;
14
14
  /** One finished turn of the caller, with what the session measured about it. */
@@ -277,9 +277,9 @@ export declare const ToolRunSchema: z.ZodObject<{
277
277
  arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
278
278
  speech_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
279
  status: z.ZodEnum<{
280
- running: "running";
281
280
  done: "done";
282
281
  failed: "failed";
282
+ running: "running";
283
283
  }>;
284
284
  output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
285
285
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -312,9 +312,9 @@ export declare const ConfirmSchema: z.ZodObject<{
312
312
  audience: z.ZodString;
313
313
  phrase: z.ZodString;
314
314
  status: z.ZodEnum<{
315
- pending: "pending";
316
- granted: "granted";
317
315
  declined: "declined";
316
+ granted: "granted";
317
+ pending: "pending";
318
318
  }>;
319
319
  said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
320
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -372,9 +372,9 @@ export declare const ParticipantSchema: z.ZodObject<{
372
372
  kind: z.ZodEnum<{
373
373
  agent: "agent";
374
374
  caller: "caller";
375
- supervisor: "supervisor";
376
375
  listener: "listener";
377
376
  sip: "sip";
377
+ supervisor: "supervisor";
378
378
  }>;
379
379
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
380
  joined_at: z.ZodNumber;
@@ -391,9 +391,9 @@ export declare const RoomSchema: z.ZodObject<{
391
391
  kind: z.ZodEnum<{
392
392
  agent: "agent";
393
393
  caller: "caller";
394
- supervisor: "supervisor";
395
394
  listener: "listener";
396
395
  sip: "sip";
396
+ supervisor: "supervisor";
397
397
  }>;
398
398
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
399
399
  joined_at: z.ZodNumber;
@@ -430,11 +430,11 @@ export declare const StateSchema: z.ZodObject<{
430
430
  agent: z.ZodString;
431
431
  call: z.ZodNullable<z.ZodString>;
432
432
  status: z.ZodEnum<{
433
- idle: "idle";
434
- ringing: "ringing";
435
- dialing: "dialing";
436
433
  active: "active";
434
+ dialing: "dialing";
437
435
  ended: "ended";
436
+ idle: "idle";
437
+ ringing: "ringing";
438
438
  }>;
439
439
  channel: z.ZodNullable<z.ZodEnum<{
440
440
  phone: "phone";
@@ -462,9 +462,9 @@ export declare const StateSchema: z.ZodObject<{
462
462
  kind: z.ZodEnum<{
463
463
  agent: "agent";
464
464
  caller: "caller";
465
- supervisor: "supervisor";
466
465
  listener: "listener";
467
466
  sip: "sip";
467
+ supervisor: "supervisor";
468
468
  }>;
469
469
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
470
  joined_at: z.ZodNumber;
@@ -476,29 +476,29 @@ export declare const StateSchema: z.ZodObject<{
476
476
  started_at: z.ZodNullable<z.ZodNumber>;
477
477
  ended_at: z.ZodNullable<z.ZodNumber>;
478
478
  end_reason: z.ZodNullable<z.ZodEnum<{
479
- caller_hung_up: "caller_hung_up";
480
479
  agent_hung_up: "agent_hung_up";
481
- supervisor_ended: "supervisor_ended";
482
- transferred: "transferred";
483
- no_answer: "no_answer";
480
+ app_detached: "app_detached";
484
481
  busy: "busy";
482
+ caller_hung_up: "caller_hung_up";
485
483
  dial_failed: "dial_failed";
486
- timeout: "timeout";
487
484
  drained: "drained";
488
- app_detached: "app_detached";
489
485
  error: "error";
486
+ no_answer: "no_answer";
487
+ supervisor_ended: "supervisor_ended";
488
+ timeout: "timeout";
489
+ transferred: "transferred";
490
490
  }>>;
491
491
  outcome: z.ZodNullable<z.ZodString>;
492
492
  user_state: z.ZodNullable<z.ZodEnum<{
493
+ away: "away";
493
494
  listening: "listening";
494
495
  speaking: "speaking";
495
- away: "away";
496
496
  }>>;
497
497
  agent_state: z.ZodNullable<z.ZodEnum<{
498
+ idle: "idle";
499
+ initializing: "initializing";
498
500
  listening: "listening";
499
501
  speaking: "speaking";
500
- initializing: "initializing";
501
- idle: "idle";
502
502
  thinking: "thinking";
503
503
  }>>;
504
504
  live: z.ZodObject<{
@@ -714,9 +714,9 @@ export declare const StateSchema: z.ZodObject<{
714
714
  arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
715
715
  speech_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
716
716
  status: z.ZodEnum<{
717
- running: "running";
718
717
  done: "done";
719
718
  failed: "failed";
719
+ running: "running";
720
720
  }>;
721
721
  output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
722
722
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -746,18 +746,18 @@ export declare const StateSchema: z.ZodObject<{
746
746
  audience: z.ZodString;
747
747
  phrase: z.ZodString;
748
748
  status: z.ZodEnum<{
749
- pending: "pending";
750
- granted: "granted";
751
749
  declined: "declined";
750
+ granted: "granted";
751
+ pending: "pending";
752
752
  }>;
753
753
  said: z.ZodOptional<z.ZodNullable<z.ZodString>>;
754
754
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
755
755
  }, z.core.$strict>>;
756
756
  memory: z.ZodArray<z.ZodObject<{
757
757
  op: z.ZodEnum<{
758
+ forget: "forget";
758
759
  recall: "recall";
759
760
  remember: "remember";
760
- forget: "forget";
761
761
  }>;
762
762
  contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
763
763
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -857,12 +857,12 @@ export declare const StateSchema: z.ZodObject<{
857
857
  provider: z.ZodString;
858
858
  model: z.ZodString;
859
859
  unit: z.ZodEnum<{
860
- input_tokens: "input_tokens";
861
- cached_input_tokens: "cached_input_tokens";
860
+ audio_seconds: "audio_seconds";
862
861
  cache_creation_tokens: "cache_creation_tokens";
863
- output_tokens: "output_tokens";
862
+ cached_input_tokens: "cached_input_tokens";
864
863
  characters: "characters";
865
- audio_seconds: "audio_seconds";
864
+ input_tokens: "input_tokens";
865
+ output_tokens: "output_tokens";
866
866
  requests: "requests";
867
867
  session_seconds: "session_seconds";
868
868
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinecall/protocol",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "The Pinecall wire: zod schemas and types generated from the protocol schema, and the log reducer",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Pinecall <hello@pinecall.io>",