@amigo-ai/platform-sdk 0.5.4 → 0.5.5

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.
@@ -8175,6 +8175,16 @@ export interface components {
8175
8175
  /** Workspace Id */
8176
8176
  workspace_id: string;
8177
8177
  };
8178
+ /** AgentTranscriptDeltaEvent */
8179
+ AgentTranscriptDeltaEvent: {
8180
+ /** Delta */
8181
+ delta: string;
8182
+ /**
8183
+ * @description discriminator enum property added by openapi-typescript
8184
+ * @enum {string}
8185
+ */
8186
+ type: "agent_transcript_delta";
8187
+ };
8178
8188
  /** AgentTranscriptEvent */
8179
8189
  AgentTranscriptEvent: {
8180
8190
  /**
@@ -8186,7 +8196,7 @@ export interface components {
8186
8196
  * Filler Type
8187
8197
  * @default null
8188
8198
  */
8189
- filler_type?: string | null;
8199
+ filler_type?: ("empathy" | "receipt" | "working") | null;
8190
8200
  /**
8191
8201
  * Interrupted
8192
8202
  * @default false
@@ -8644,6 +8654,39 @@ export interface components {
8644
8654
  region?: string | null;
8645
8655
  };
8646
8656
  BackgroundString: string;
8657
+ /** BargeInEvent */
8658
+ BargeInEvent: {
8659
+ /**
8660
+ * Discarded Texts
8661
+ * @default null
8662
+ */
8663
+ discarded_texts?: string[] | null;
8664
+ /**
8665
+ * Interrupted Speaker Id
8666
+ * @default null
8667
+ */
8668
+ interrupted_speaker_id?: string | null;
8669
+ /**
8670
+ * Interrupted Text
8671
+ * @default null
8672
+ */
8673
+ interrupted_text?: string | null;
8674
+ /**
8675
+ * Interrupting Speaker Id
8676
+ * @default null
8677
+ */
8678
+ interrupting_speaker_id?: string | null;
8679
+ /**
8680
+ * Total Barge Ins
8681
+ * @default null
8682
+ */
8683
+ total_barge_ins?: number | null;
8684
+ /**
8685
+ * @description discriminator enum property added by openapi-typescript
8686
+ * @enum {string}
8687
+ */
8688
+ type: "barge_in";
8689
+ };
8647
8690
  /**
8648
8691
  * BatchActionResponse
8649
8692
  * @description Result of a batch operation.
@@ -9082,8 +9125,11 @@ export interface components {
9082
9125
  event_type: "call.escalated";
9083
9126
  /** Reason */
9084
9127
  reason: string;
9085
- /** Trigger */
9086
- trigger: string;
9128
+ /**
9129
+ * Trigger
9130
+ * @enum {string}
9131
+ */
9132
+ trigger: "caller" | "ai" | "operator";
9087
9133
  };
9088
9134
  /**
9089
9135
  * CallIntelligenceDetail
@@ -9540,12 +9586,16 @@ export interface components {
9540
9586
  lower_95?: number | null;
9541
9587
  /** Median */
9542
9588
  median?: number | null;
9589
+ /** Observed */
9590
+ observed?: number | null;
9543
9591
  /** T */
9544
9592
  t: number;
9545
9593
  /** Upper 95 */
9546
9594
  upper_95?: number | null;
9547
9595
  /** Workspace Id */
9548
9596
  workspace_id: string;
9597
+ /** Ym */
9598
+ ym?: string | null;
9549
9599
  };
9550
9600
  /** ClusterForecastResponse */
9551
9601
  ClusterForecastResponse: {
@@ -9802,6 +9852,18 @@ export interface components {
9802
9852
  /** Total Credentials */
9803
9853
  total_credentials: number;
9804
9854
  };
9855
+ /** CompoundEmotionEvent */
9856
+ CompoundEmotionEvent: {
9857
+ /** Compounds */
9858
+ compounds: components["schemas"]["EmotionScore"][];
9859
+ /** Turn Index */
9860
+ turn_index: number;
9861
+ /**
9862
+ * @description discriminator enum property added by openapi-typescript
9863
+ * @enum {string}
9864
+ */
9865
+ type: "compound_emotion";
9866
+ };
9805
9867
  /** ConfidenceBucket */
9806
9868
  ConfidenceBucket: {
9807
9869
  /**
@@ -9824,11 +9886,7 @@ export interface components {
9824
9886
  };
9825
9887
  /**
9826
9888
  * ConnectorDef
9827
- * @description A single connector definition in workspace.settings["connectors"].
9828
- *
9829
- * Config is config — no mutable status fields. Health and sync state
9830
- * are derived from the event stream (Phase 6) or world.data_sources
9831
- * index (interim).
9889
+ * @description A single connector definition stored in platform.connector_configs.
9832
9890
  */
9833
9891
  ConnectorDef: {
9834
9892
  /** Connection Config */
@@ -12289,6 +12347,128 @@ export interface components {
12289
12347
  /** Region */
12290
12348
  region: string;
12291
12349
  };
12350
+ /** EmotionBurst */
12351
+ EmotionBurst: {
12352
+ /** Score */
12353
+ score: number;
12354
+ /** Type */
12355
+ type: string;
12356
+ };
12357
+ /** EmotionEvent */
12358
+ EmotionEvent: {
12359
+ /** Arousal */
12360
+ arousal: number;
12361
+ /**
12362
+ * Barge In Count
12363
+ * @default 0
12364
+ */
12365
+ barge_in_count?: number;
12366
+ /**
12367
+ * Call Duration S
12368
+ * @default null
12369
+ */
12370
+ call_duration_s?: number | null;
12371
+ /**
12372
+ * Coherence
12373
+ * @default null
12374
+ */
12375
+ coherence?: number | null;
12376
+ /**
12377
+ * Dominance
12378
+ * @default null
12379
+ */
12380
+ dominance?: number | null;
12381
+ /** Dominant */
12382
+ dominant: string;
12383
+ /**
12384
+ * Emotional Shifts
12385
+ * @default null
12386
+ */
12387
+ emotional_shifts?: number | null;
12388
+ /**
12389
+ * Language Sentiment
12390
+ * @default null
12391
+ */
12392
+ language_sentiment?: number | null;
12393
+ /**
12394
+ * Language Toxicity
12395
+ * @default null
12396
+ */
12397
+ language_toxicity?: {
12398
+ [key: string]: number;
12399
+ } | null;
12400
+ /**
12401
+ * Provider
12402
+ * @default null
12403
+ */
12404
+ provider?: string | null;
12405
+ /**
12406
+ * Recent Bursts
12407
+ * @default null
12408
+ */
12409
+ recent_bursts?: components["schemas"]["EmotionBurst"][] | null;
12410
+ /**
12411
+ * Scores
12412
+ * @default null
12413
+ */
12414
+ scores?: components["schemas"]["EmotionScore"][] | null;
12415
+ /**
12416
+ * Segment Arousal
12417
+ * @default null
12418
+ */
12419
+ segment_arousal?: number | null;
12420
+ /**
12421
+ * Segment Dominant
12422
+ * @default null
12423
+ */
12424
+ segment_dominant?: string | null;
12425
+ /**
12426
+ * Segment Valence
12427
+ * @default null
12428
+ */
12429
+ segment_valence?: number | null;
12430
+ /** @default null */
12431
+ speaker?: components["schemas"]["SpeakerAcoustics"] | null;
12432
+ /**
12433
+ * Speaker Similarity
12434
+ * @default null
12435
+ */
12436
+ speaker_similarity?: number | null;
12437
+ /**
12438
+ * Total Segments
12439
+ * @default null
12440
+ */
12441
+ total_segments?: number | null;
12442
+ /**
12443
+ * Trend
12444
+ * @default null
12445
+ */
12446
+ trend?: ("improving" | "stable" | "deteriorating") | null;
12447
+ /**
12448
+ * Turn Count
12449
+ * @default null
12450
+ */
12451
+ turn_count?: number | null;
12452
+ /**
12453
+ * @description discriminator enum property added by openapi-typescript
12454
+ * @enum {string}
12455
+ */
12456
+ type: "emotion";
12457
+ /** Valence */
12458
+ valence: number;
12459
+ /**
12460
+ * Verified Speaker Id
12461
+ * @default null
12462
+ */
12463
+ verified_speaker_id?: string | null;
12464
+ };
12465
+ /** EmotionScore */
12466
+ EmotionScore: {
12467
+ /** Name */
12468
+ name: string;
12469
+ /** Score */
12470
+ score: number;
12471
+ };
12292
12472
  /**
12293
12473
  * EmotionSummary
12294
12474
  * @description Aggregated emotional analysis across the call.
@@ -12355,6 +12535,44 @@ export interface components {
12355
12535
  */
12356
12536
  trigger?: string | null;
12357
12537
  };
12538
+ /** EmpathyClassifiedEvent */
12539
+ EmpathyClassifiedEvent: {
12540
+ /** Empathy Baseline */
12541
+ empathy_baseline: number;
12542
+ /**
12543
+ * Filler Type
12544
+ * @enum {string}
12545
+ */
12546
+ filler_type: "empathy" | "receipt" | "working";
12547
+ /** Should Pause */
12548
+ should_pause: boolean;
12549
+ /** Suppress Filler */
12550
+ suppress_filler: boolean;
12551
+ /** Tier */
12552
+ tier: number;
12553
+ /**
12554
+ * Tier Name
12555
+ * @enum {string}
12556
+ */
12557
+ tier_name: "FUNCTIONAL" | "LIGHT_TOUCH" | "FULL_EMPATHY" | "HOLD_SPACE";
12558
+ /**
12559
+ * @description discriminator enum property added by openapi-typescript
12560
+ * @enum {string}
12561
+ */
12562
+ type: "empathy_classified";
12563
+ };
12564
+ /** EncounterUpdatedEvent */
12565
+ EncounterUpdatedEvent: {
12566
+ /** Encounter Entity Id */
12567
+ encounter_entity_id: string;
12568
+ /**
12569
+ * @description discriminator enum property added by openapi-typescript
12570
+ * @enum {string}
12571
+ */
12572
+ event_type: "encounter.updated";
12573
+ /** Session Id */
12574
+ session_id: string;
12575
+ };
12358
12576
  /**
12359
12577
  * EndpointConfig
12360
12578
  * @description Configuration for a single integration endpoint.
@@ -14679,7 +14897,7 @@ export interface components {
14679
14897
  * @description Communication protocol
14680
14898
  * @enum {string}
14681
14899
  */
14682
- protocol: "rest" | "fhir" | "mcp";
14900
+ protocol: "rest" | "fhir" | "mcp" | "desktop";
14683
14901
  /**
14684
14902
  * Updated At
14685
14903
  * Format: date-time
@@ -15153,6 +15371,31 @@ export interface components {
15153
15371
  */
15154
15372
  event_count?: number;
15155
15373
  };
15374
+ /** LatencyEvent */
15375
+ LatencyEvent: {
15376
+ /** Audio Ttfb Ms */
15377
+ audio_ttfb_ms: number;
15378
+ /** Continuation */
15379
+ continuation: boolean;
15380
+ /** E2E Ttfb Ms */
15381
+ e2e_ttfb_ms: number;
15382
+ /** Engine Ms */
15383
+ engine_ms: number;
15384
+ /**
15385
+ * Is Greeting
15386
+ * @default false
15387
+ */
15388
+ is_greeting?: boolean;
15389
+ /** Nav Ms */
15390
+ nav_ms: number;
15391
+ /** Render Ms */
15392
+ render_ms: number;
15393
+ /**
15394
+ * @description discriminator enum property added by openapi-typescript
15395
+ * @enum {string}
15396
+ */
15397
+ type: "latency";
15398
+ };
15156
15399
  /**
15157
15400
  * LatencySummary
15158
15401
  * @description Audio latency and silence metrics.
@@ -15841,6 +16084,75 @@ export interface components {
15841
16084
  workspace_id: string;
15842
16085
  };
15843
16086
  NameString: string;
16087
+ /** NarrativeUpdatedEvent */
16088
+ NarrativeUpdatedEvent: {
16089
+ /** Confidence */
16090
+ confidence: number;
16091
+ /** Event Count */
16092
+ event_count: number;
16093
+ /** Event Id */
16094
+ event_id: string;
16095
+ /**
16096
+ * @description discriminator enum property added by openapi-typescript
16097
+ * @enum {string}
16098
+ */
16099
+ event_type: "self_image.brief_generated";
16100
+ /** Target Entity Id */
16101
+ target_entity_id: string;
16102
+ /** Target Entity Type */
16103
+ target_entity_type: string;
16104
+ /** Version */
16105
+ version: string;
16106
+ };
16107
+ /** NavTimingEvent */
16108
+ NavTimingEvent: {
16109
+ /**
16110
+ * Input Tokens
16111
+ * @default null
16112
+ */
16113
+ input_tokens?: number | null;
16114
+ /**
16115
+ * Model
16116
+ * @default null
16117
+ */
16118
+ model?: string | null;
16119
+ /** Nav Ms */
16120
+ nav_ms: number;
16121
+ /**
16122
+ * Output Tokens
16123
+ * @default null
16124
+ */
16125
+ output_tokens?: number | null;
16126
+ /** Render Ms */
16127
+ render_ms: number;
16128
+ /**
16129
+ * Retry Attempts
16130
+ * @default null
16131
+ */
16132
+ retry_attempts?: number | null;
16133
+ /**
16134
+ * Selected Action
16135
+ * @default null
16136
+ */
16137
+ selected_action?: string | null;
16138
+ /**
16139
+ * State
16140
+ * @default null
16141
+ */
16142
+ state?: string | null;
16143
+ /** Total Ms */
16144
+ total_ms: number;
16145
+ /**
16146
+ * @description discriminator enum property added by openapi-typescript
16147
+ * @enum {string}
16148
+ */
16149
+ type: "nav_timing";
16150
+ /**
16151
+ * Used Fallback
16152
+ * @default null
16153
+ */
16154
+ used_fallback?: boolean | null;
16155
+ };
15844
16156
  /** NonDesiredState */
15845
16157
  NonDesiredState: {
15846
16158
  /**
@@ -15892,7 +16204,7 @@ export interface components {
15892
16204
  /** Smoking */
15893
16205
  smoking: components["schemas"]["NoteRollupCategoryEntry"][];
15894
16206
  };
15895
- ObserverSSEEvent: components["schemas"]["UserTranscriptEvent"] | components["schemas"]["AgentTranscriptEvent"] | components["schemas"]["ToolCallStartedEvent"] | components["schemas"]["ToolCallCompletedEvent"] | components["schemas"]["ForwardCallResolvedEvent"] | components["schemas"]["SpeakerMutedEvent"];
16207
+ ObserverSSEEvent: components["schemas"]["AgentTranscriptDeltaEvent"] | components["schemas"]["AgentTranscriptEvent"] | components["schemas"]["BargeInEvent"] | components["schemas"]["CompoundEmotionEvent"] | components["schemas"]["EmotionEvent"] | components["schemas"]["EmpathyClassifiedEvent"] | components["schemas"]["ForwardCallResolvedEvent"] | components["schemas"]["LatencyEvent"] | components["schemas"]["NavTimingEvent"] | components["schemas"]["ParticipantJoinedEvent"] | components["schemas"]["ParticipantLeftEvent"] | components["schemas"]["SessionEndEvent"] | components["schemas"]["SessionInfoEvent"] | components["schemas"]["SessionStartEvent"] | components["schemas"]["SpeakerMutedEvent"] | components["schemas"]["StateTransitionEvent"] | components["schemas"]["ToolCallCompletedEvent"] | components["schemas"]["ToolCallStartedEvent"] | components["schemas"]["UserTranscriptEvent"] | components["schemas"]["VoiceContextAppliedEvent"];
15896
16208
  /** OcrRequest */
15897
16209
  OcrRequest: {
15898
16210
  /**
@@ -15932,8 +16244,11 @@ export interface components {
15932
16244
  * @enum {string}
15933
16245
  */
15934
16246
  event_type: "operator.joined_call";
15935
- /** Mode */
15936
- mode: string;
16247
+ /**
16248
+ * Mode
16249
+ * @enum {string}
16250
+ */
16251
+ mode: "listen" | "takeover";
15937
16252
  /** Operator Id */
15938
16253
  operator_id: string;
15939
16254
  };
@@ -15963,8 +16278,11 @@ export interface components {
15963
16278
  * @enum {string}
15964
16279
  */
15965
16280
  event_type: "operator.mode_changed";
15966
- /** Mode */
15967
- mode: string;
16281
+ /**
16282
+ * Mode
16283
+ * @enum {string}
16284
+ */
16285
+ mode: "listen" | "takeover";
15968
16286
  /** Operator Id */
15969
16287
  operator_id: string;
15970
16288
  };
@@ -16210,8 +16528,11 @@ export interface components {
16210
16528
  event_type: "operator.status_changed";
16211
16529
  /** Operator Id */
16212
16530
  operator_id: string;
16213
- /** Status */
16214
- status: string;
16531
+ /**
16532
+ * Status
16533
+ * @enum {string}
16534
+ */
16535
+ status: "online" | "busy" | "offline";
16215
16536
  };
16216
16537
  /** OperatorStatusCounts */
16217
16538
  OperatorStatusCounts: {
@@ -16735,48 +17056,117 @@ export interface components {
16735
17056
  */
16736
17057
  rows: unknown[][];
16737
17058
  };
16738
- /** PatientBurdenDetailResponse */
16739
- PatientBurdenDetailResponse: {
16740
- /** Age Adjusted Charlson Index */
16741
- age_adjusted_charlson_index: number;
16742
- /** Age Bucket Now */
16743
- age_bucket_now?: string | null;
16744
- /** Age Cci Points */
16745
- age_cci_points: number;
16746
- /** Age Now */
16747
- age_now?: number | null;
16748
- /** As Of Date */
16749
- as_of_date?: string | null;
16750
- charlson_flags: components["schemas"]["CharlsonCategoryFlags"];
16751
- /** Charlson Index */
16752
- charlson_index: number;
16753
- /** Days Since Most Recent Onset */
16754
- days_since_most_recent_onset?: number | null;
16755
- /** Gender */
16756
- gender?: string | null;
16757
- /** Most Recent Active Onset Date */
16758
- most_recent_active_onset_date?: string | null;
16759
- /** N Active Conditions */
16760
- n_active_conditions: number;
16761
- /** N Distinct Code Systems */
16762
- n_distinct_code_systems?: number | null;
16763
- /** N Distinct Codes */
16764
- n_distinct_codes?: number | null;
16765
- /** N Lifetime Condition Records */
16766
- n_lifetime_condition_records?: number | null;
16767
- /** N Lifetime Distinct Codes */
16768
- n_lifetime_distinct_codes?: number | null;
16769
- /** Oldest Active Onset Date */
16770
- oldest_active_onset_date?: string | null;
16771
- /** Patient Entity Id */
16772
- patient_entity_id: string;
16773
- /** Recent Onset Count 365D */
16774
- recent_onset_count_365d?: number | null;
16775
- /** Workspace Id */
16776
- workspace_id: string;
16777
- };
16778
- /** PatientBurdenResponse */
16779
- PatientBurdenResponse: {
17059
+ /** ParticipantJoinedEvent */
17060
+ ParticipantJoinedEvent: {
17061
+ /** Conference Sid */
17062
+ conference_sid: string;
17063
+ /**
17064
+ * Display Name
17065
+ * @default null
17066
+ */
17067
+ display_name?: string | null;
17068
+ /**
17069
+ * Operator Entity Id
17070
+ * @default null
17071
+ */
17072
+ operator_entity_id?: string | null;
17073
+ /** Participant Id */
17074
+ participant_id: string;
17075
+ /**
17076
+ * Participant Name
17077
+ * @default null
17078
+ */
17079
+ participant_name?: string | null;
17080
+ /**
17081
+ * Participant Role
17082
+ * @enum {string}
17083
+ */
17084
+ participant_role: "caller" | "agent" | "operator";
17085
+ /**
17086
+ * Phone Number
17087
+ * @default null
17088
+ */
17089
+ phone_number?: string | null;
17090
+ /**
17091
+ * @description discriminator enum property added by openapi-typescript
17092
+ * @enum {string}
17093
+ */
17094
+ type: "participant_joined";
17095
+ };
17096
+ /** ParticipantLeftEvent */
17097
+ ParticipantLeftEvent: {
17098
+ /** Conference Sid */
17099
+ conference_sid: string;
17100
+ /**
17101
+ * Display Name
17102
+ * @default null
17103
+ */
17104
+ display_name?: string | null;
17105
+ /**
17106
+ * Operator Entity Id
17107
+ * @default null
17108
+ */
17109
+ operator_entity_id?: string | null;
17110
+ /** Participant Id */
17111
+ participant_id: string;
17112
+ /**
17113
+ * Participant Role
17114
+ * @enum {string}
17115
+ */
17116
+ participant_role: "caller" | "agent" | "operator";
17117
+ /**
17118
+ * Phone Number
17119
+ * @default null
17120
+ */
17121
+ phone_number?: string | null;
17122
+ /**
17123
+ * @description discriminator enum property added by openapi-typescript
17124
+ * @enum {string}
17125
+ */
17126
+ type: "participant_left";
17127
+ };
17128
+ /** PatientBurdenDetailResponse */
17129
+ PatientBurdenDetailResponse: {
17130
+ /** Age Adjusted Charlson Index */
17131
+ age_adjusted_charlson_index: number;
17132
+ /** Age Bucket Now */
17133
+ age_bucket_now?: string | null;
17134
+ /** Age Cci Points */
17135
+ age_cci_points: number;
17136
+ /** Age Now */
17137
+ age_now?: number | null;
17138
+ /** As Of Date */
17139
+ as_of_date?: string | null;
17140
+ charlson_flags: components["schemas"]["CharlsonCategoryFlags"];
17141
+ /** Charlson Index */
17142
+ charlson_index: number;
17143
+ /** Days Since Most Recent Onset */
17144
+ days_since_most_recent_onset?: number | null;
17145
+ /** Gender */
17146
+ gender?: string | null;
17147
+ /** Most Recent Active Onset Date */
17148
+ most_recent_active_onset_date?: string | null;
17149
+ /** N Active Conditions */
17150
+ n_active_conditions: number;
17151
+ /** N Distinct Code Systems */
17152
+ n_distinct_code_systems?: number | null;
17153
+ /** N Distinct Codes */
17154
+ n_distinct_codes?: number | null;
17155
+ /** N Lifetime Condition Records */
17156
+ n_lifetime_condition_records?: number | null;
17157
+ /** N Lifetime Distinct Codes */
17158
+ n_lifetime_distinct_codes?: number | null;
17159
+ /** Oldest Active Onset Date */
17160
+ oldest_active_onset_date?: string | null;
17161
+ /** Patient Entity Id */
17162
+ patient_entity_id: string;
17163
+ /** Recent Onset Count 365D */
17164
+ recent_onset_count_365d?: number | null;
17165
+ /** Workspace Id */
17166
+ workspace_id: string;
17167
+ };
17168
+ /** PatientBurdenResponse */
17169
+ PatientBurdenResponse: {
16780
17170
  /** Count */
16781
17171
  count: number;
16782
17172
  /** Items */
@@ -17042,6 +17432,12 @@ export interface components {
17042
17432
  nationality?: string | null;
17043
17433
  /** Patient Id */
17044
17434
  patient_id: string;
17435
+ /** Pca X */
17436
+ pca_x?: number | null;
17437
+ /** Pca Y */
17438
+ pca_y?: number | null;
17439
+ /** Pca Z */
17440
+ pca_z?: number | null;
17045
17441
  /** Risk Tier */
17046
17442
  risk_tier?: number | null;
17047
17443
  /** Umap X */
@@ -18150,6 +18546,39 @@ export interface components {
18150
18546
  /** Rejected */
18151
18547
  rejected: number;
18152
18548
  };
18549
+ /** ReviewSubmittedEvent */
18550
+ ReviewSubmittedEvent: {
18551
+ /**
18552
+ * Action
18553
+ * @enum {string}
18554
+ */
18555
+ action: "approve" | "reject" | "correct" | "batch_approve" | "batch_reject";
18556
+ /**
18557
+ * Count
18558
+ * @default null
18559
+ */
18560
+ count?: number | null;
18561
+ /**
18562
+ * Entity Id
18563
+ * @default null
18564
+ */
18565
+ entity_id?: string | null;
18566
+ /**
18567
+ * Entity Type
18568
+ * @default null
18569
+ */
18570
+ entity_type?: string | null;
18571
+ /**
18572
+ * @description discriminator enum property added by openapi-typescript
18573
+ * @enum {string}
18574
+ */
18575
+ event_type: "review.submitted";
18576
+ /**
18577
+ * Item Id
18578
+ * @default null
18579
+ */
18580
+ item_id?: string | null;
18581
+ };
18153
18582
  /**
18154
18583
  * RiskSignalConfig
18155
18584
  * @description Per-workspace risk scoring config. Stored on Service.
@@ -18857,6 +19286,107 @@ export interface components {
18857
19286
  /** Tts Model */
18858
19287
  tts_model?: ("sonic-turbo" | "sonic-3") | null;
18859
19288
  };
19289
+ /** SessionEndEvent */
19290
+ SessionEndEvent: {
19291
+ /**
19292
+ * Call Sid
19293
+ * @default null
19294
+ */
19295
+ call_sid?: string | null;
19296
+ /**
19297
+ * Completion Reason
19298
+ * @default
19299
+ */
19300
+ completion_reason?: string;
19301
+ /**
19302
+ * Duration S
19303
+ * @default 0
19304
+ */
19305
+ duration_s?: number;
19306
+ /**
19307
+ * Emotional Summary
19308
+ * @default null
19309
+ */
19310
+ emotional_summary?: {
19311
+ [key: string]: unknown;
19312
+ } | null;
19313
+ /**
19314
+ * Final State
19315
+ * @default
19316
+ */
19317
+ final_state?: string;
19318
+ /**
19319
+ * Has Recording
19320
+ * @default null
19321
+ */
19322
+ has_recording?: boolean | null;
19323
+ /**
19324
+ * Session Id
19325
+ * @default null
19326
+ */
19327
+ session_id?: string | null;
19328
+ /**
19329
+ * Trace Id
19330
+ * @default null
19331
+ */
19332
+ trace_id?: string | null;
19333
+ /**
19334
+ * Turns
19335
+ * @default 0
19336
+ */
19337
+ turns?: number;
19338
+ /**
19339
+ * @description discriminator enum property added by openapi-typescript
19340
+ * @enum {string}
19341
+ */
19342
+ type: "session_end";
19343
+ };
19344
+ /** SessionInfoEvent */
19345
+ SessionInfoEvent: {
19346
+ /** Call Sid */
19347
+ call_sid: string;
19348
+ /**
19349
+ * Caller Id
19350
+ * @default
19351
+ */
19352
+ caller_id?: string;
19353
+ /**
19354
+ * Current State
19355
+ * @default
19356
+ */
19357
+ current_state?: string;
19358
+ /**
19359
+ * Direction
19360
+ * @default inbound
19361
+ * @enum {string}
19362
+ */
19363
+ direction?: "inbound" | "outbound" | "playground" | "simulated" | "test";
19364
+ /**
19365
+ * Duration Seconds
19366
+ * @default 0
19367
+ */
19368
+ duration_seconds?: number;
19369
+ /**
19370
+ * Service Id
19371
+ * @default
19372
+ */
19373
+ service_id?: string;
19374
+ /**
19375
+ * Start Time
19376
+ * @default 0
19377
+ */
19378
+ start_time?: number;
19379
+ /**
19380
+ * @description discriminator enum property added by openapi-typescript
19381
+ * @enum {string}
19382
+ */
19383
+ type: "session_info";
19384
+ /**
19385
+ * Workspace Id
19386
+ * @default
19387
+ */
19388
+ workspace_id?: string;
19389
+ };
18860
19390
  /** SessionResponse */
18861
19391
  SessionResponse: {
18862
19392
  /** Created At */
@@ -18864,6 +19394,49 @@ export interface components {
18864
19394
  /** Id */
18865
19395
  id: string;
18866
19396
  };
19397
+ /** SessionStartEvent */
19398
+ SessionStartEvent: {
19399
+ /**
19400
+ * Call Sid
19401
+ * @default null
19402
+ */
19403
+ call_sid?: string | null;
19404
+ /**
19405
+ * Initial State
19406
+ * @default null
19407
+ */
19408
+ initial_state?: string | null;
19409
+ /**
19410
+ * Mode
19411
+ * @default null
19412
+ */
19413
+ mode?: string | null;
19414
+ /**
19415
+ * Service Id
19416
+ * @default null
19417
+ */
19418
+ service_id?: string | null;
19419
+ /**
19420
+ * Session Id
19421
+ * @default null
19422
+ */
19423
+ session_id?: string | null;
19424
+ /**
19425
+ * Trace Id
19426
+ * @default null
19427
+ */
19428
+ trace_id?: string | null;
19429
+ /**
19430
+ * @description discriminator enum property added by openapi-typescript
19431
+ * @enum {string}
19432
+ */
19433
+ type: "session_start";
19434
+ /**
19435
+ * Workspace Id
19436
+ * @default null
19437
+ */
19438
+ workspace_id?: string | null;
19439
+ };
18867
19440
  /** SessionStatusResponse */
18868
19441
  SessionStatusResponse: {
18869
19442
  /** Connected */
@@ -19164,6 +19737,28 @@ export interface components {
19164
19737
  */
19165
19738
  safety_response?: string;
19166
19739
  };
19740
+ /** SimulationTurnStoredEvent */
19741
+ SimulationTurnStoredEvent: {
19742
+ /**
19743
+ * @description discriminator enum property added by openapi-typescript
19744
+ * @enum {string}
19745
+ */
19746
+ event_type: "simulation.turn_stored";
19747
+ /** Is Terminal */
19748
+ is_terminal: boolean;
19749
+ /** Run Id */
19750
+ run_id: string;
19751
+ /** Service Id */
19752
+ service_id: string;
19753
+ /** Session Id */
19754
+ session_id: string;
19755
+ /** State After */
19756
+ state_after: string;
19757
+ /** State Before */
19758
+ state_before: string;
19759
+ /** Turn Index */
19760
+ turn_index: number;
19761
+ };
19167
19762
  /** SinkSyncStatus */
19168
19763
  SinkSyncStatus: {
19169
19764
  /**
@@ -19483,6 +20078,34 @@ export interface components {
19483
20078
  /** Workspace Id */
19484
20079
  workspace_id: string;
19485
20080
  };
20081
+ /** SpeakerAcoustics */
20082
+ SpeakerAcoustics: {
20083
+ /**
20084
+ * Energy Delta
20085
+ * @default null
20086
+ */
20087
+ energy_delta?: number | null;
20088
+ /**
20089
+ * Energy Trend
20090
+ * @default null
20091
+ */
20092
+ energy_trend?: ("rising" | "falling" | "stable") | null;
20093
+ /**
20094
+ * Normalized
20095
+ * @default null
20096
+ */
20097
+ normalized?: boolean | null;
20098
+ /**
20099
+ * Pitch Delta
20100
+ * @default null
20101
+ */
20102
+ pitch_delta?: number | null;
20103
+ /**
20104
+ * Zcr Delta
20105
+ * @default null
20106
+ */
20107
+ zcr_delta?: number | null;
20108
+ };
19486
20109
  /** SpeakerMutedEvent */
19487
20110
  SpeakerMutedEvent: {
19488
20111
  /** Muted */
@@ -19529,6 +20152,28 @@ export interface components {
19529
20152
  */
19530
20153
  topic_risk_score?: number;
19531
20154
  };
20155
+ /** StateTransitionEvent */
20156
+ StateTransitionEvent: {
20157
+ /**
20158
+ * Annotation
20159
+ * @default null
20160
+ */
20161
+ annotation?: string | null;
20162
+ /** Next State */
20163
+ next_state: string;
20164
+ /** Previous State */
20165
+ previous_state: string;
20166
+ /**
20167
+ * Transition Type
20168
+ * @default null
20169
+ */
20170
+ transition_type?: string | null;
20171
+ /**
20172
+ * @description discriminator enum property added by openapi-typescript
20173
+ * @enum {string}
20174
+ */
20175
+ type: "state_transition";
20176
+ };
19532
20177
  /**
19533
20178
  * StaticToolDef
19534
20179
  * @description A built-in tool available to companion agents.
@@ -19700,8 +20345,11 @@ export interface components {
19700
20345
  };
19701
20346
  /** SurfaceCreatedEvent */
19702
20347
  SurfaceCreatedEvent: {
19703
- /** Channel */
19704
- channel: string;
20348
+ /**
20349
+ * Channel
20350
+ * @default null
20351
+ */
20352
+ channel?: string | null;
19705
20353
  /** Entity Id */
19706
20354
  entity_id: string;
19707
20355
  /**
@@ -19753,6 +20401,16 @@ export interface components {
19753
20401
  * @enum {string}
19754
20402
  */
19755
20403
  event_type: "surface.delivered";
20404
+ /**
20405
+ * Message Id
20406
+ * @default null
20407
+ */
20408
+ message_id?: string | null;
20409
+ /**
20410
+ * Short Url
20411
+ * @default null
20412
+ */
20413
+ short_url?: string | null;
19756
20414
  /** Surface Id */
19757
20415
  surface_id: string;
19758
20416
  };
@@ -19805,8 +20463,8 @@ export interface components {
19805
20463
  * @enum {string}
19806
20464
  */
19807
20465
  event_type: "surface.field_saved";
19808
- /** Field Id */
19809
- field_id: string;
20466
+ /** Field Key */
20467
+ field_key: string;
19810
20468
  /** Surface Id */
19811
20469
  surface_id: string;
19812
20470
  };
@@ -19951,8 +20609,11 @@ export interface components {
19951
20609
  * @enum {string}
19952
20610
  */
19953
20611
  event_type: "surface.review_rejected";
19954
- /** Reason */
19955
- reason: string;
20612
+ /**
20613
+ * Reason
20614
+ * @default null
20615
+ */
20616
+ reason?: string | null;
19956
20617
  /** Surface Id */
19957
20618
  surface_id: string;
19958
20619
  };
@@ -20022,6 +20683,11 @@ export interface components {
20022
20683
  * @enum {string}
20023
20684
  */
20024
20685
  event_type: "surface.submitted";
20686
+ /**
20687
+ * Fields Submitted
20688
+ * @default null
20689
+ */
20690
+ fields_submitted?: string[] | null;
20025
20691
  /**
20026
20692
  * Submitted At
20027
20693
  * @default null
@@ -20399,6 +21065,48 @@ export interface components {
20399
21065
  */
20400
21066
  sub_tool_logs: components["schemas"]["SubToolLog"][];
20401
21067
  };
21068
+ /** TextCompletedEvent */
21069
+ TextCompletedEvent: {
21070
+ /** Channel Kind */
21071
+ channel_kind: string;
21072
+ /**
21073
+ * Completion Reason
21074
+ * @default null
21075
+ */
21076
+ completion_reason?: string | null;
21077
+ /** Duration Seconds */
21078
+ duration_seconds: number;
21079
+ /**
21080
+ * @description discriminator enum property added by openapi-typescript
21081
+ * @enum {string}
21082
+ */
21083
+ event_type: "text.completed";
21084
+ /** Final State */
21085
+ final_state: string;
21086
+ /** Session Id */
21087
+ session_id: string;
21088
+ /** Turn Count */
21089
+ turn_count: number;
21090
+ };
21091
+ /** TextStartedEvent */
21092
+ TextStartedEvent: {
21093
+ /** Channel Kind */
21094
+ channel_kind: string;
21095
+ /**
21096
+ * Entity Id
21097
+ * @default null
21098
+ */
21099
+ entity_id?: string | null;
21100
+ /**
21101
+ * @description discriminator enum property added by openapi-typescript
21102
+ * @enum {string}
21103
+ */
21104
+ event_type: "text.started";
21105
+ /** Service Id */
21106
+ service_id: string;
21107
+ /** Session Id */
21108
+ session_id: string;
21109
+ };
20402
21110
  /** ThroughputBucket */
20403
21111
  ThroughputBucket: {
20404
21112
  /** Bucket */
@@ -20891,6 +21599,34 @@ export interface components {
20891
21599
  /** Year Month */
20892
21600
  year_month: string;
20893
21601
  };
21602
+ /** TriggerCompletedEvent */
21603
+ TriggerCompletedEvent: {
21604
+ /**
21605
+ * @description discriminator enum property added by openapi-typescript
21606
+ * @enum {string}
21607
+ */
21608
+ event_type: "trigger.completed";
21609
+ /** Status */
21610
+ status: string;
21611
+ /** Trigger Id */
21612
+ trigger_id: string;
21613
+ /** Trigger Name */
21614
+ trigger_name: string;
21615
+ };
21616
+ /** TriggerFailedEvent */
21617
+ TriggerFailedEvent: {
21618
+ /**
21619
+ * @description discriminator enum property added by openapi-typescript
21620
+ * @enum {string}
21621
+ */
21622
+ event_type: "trigger.failed";
21623
+ /** Status */
21624
+ status: string;
21625
+ /** Trigger Id */
21626
+ trigger_id: string;
21627
+ /** Trigger Name */
21628
+ trigger_name: string;
21629
+ };
20894
21630
  /** TriggerFireResponse */
20895
21631
  TriggerFireResponse: {
20896
21632
  /**
@@ -20910,6 +21646,23 @@ export interface components {
20910
21646
  */
20911
21647
  trigger_id: string;
20912
21648
  };
21649
+ /** TriggerFiredEvent */
21650
+ TriggerFiredEvent: {
21651
+ /**
21652
+ * @description discriminator enum property added by openapi-typescript
21653
+ * @enum {string}
21654
+ */
21655
+ event_type: "trigger.fired";
21656
+ /**
21657
+ * Manual
21658
+ * @default false
21659
+ */
21660
+ manual?: boolean;
21661
+ /** Trigger Id */
21662
+ trigger_id: string;
21663
+ /** Trigger Name */
21664
+ trigger_name: string;
21665
+ };
20913
21666
  /** TriggerResponse */
20914
21667
  TriggerResponse: {
20915
21668
  /**
@@ -21746,6 +22499,35 @@ export interface components {
21746
22499
  /** Voice Id */
21747
22500
  voice_id: string;
21748
22501
  };
22502
+ /** VoiceContextAppliedEvent */
22503
+ VoiceContextAppliedEvent: {
22504
+ /** Emotion Detection Enabled */
22505
+ emotion_detection_enabled: boolean;
22506
+ /** Filler Enabled */
22507
+ filler_enabled: boolean;
22508
+ /** Reasoning */
22509
+ reasoning: string;
22510
+ /**
22511
+ * Tts Emotion
22512
+ * @default null
22513
+ */
22514
+ tts_emotion?: string | null;
22515
+ /**
22516
+ * Tts Speed
22517
+ * @default null
22518
+ */
22519
+ tts_speed?: number | null;
22520
+ /**
22521
+ * Tts Volume
22522
+ * @default null
22523
+ */
22524
+ tts_volume?: number | null;
22525
+ /**
22526
+ * @description discriminator enum property added by openapi-typescript
22527
+ * @enum {string}
22528
+ */
22529
+ type: "voice_context_applied";
22530
+ };
21749
22531
  /** VoiceJudgeRecentResponse */
21750
22532
  VoiceJudgeRecentResponse: {
21751
22533
  /** Count */
@@ -22337,7 +23119,7 @@ export interface components {
22337
23119
  */
22338
23120
  updated_at: string;
22339
23121
  };
22340
- WorkspaceSSEEvent: components["schemas"]["CallStartedEvent"] | components["schemas"]["CallEndedEvent"] | components["schemas"]["CallEscalatedEvent"] | components["schemas"]["SurfaceCreatedEvent"] | components["schemas"]["SurfaceDeliveredEvent"] | components["schemas"]["SurfaceUpdatedEvent"] | components["schemas"]["SurfaceArchivedEvent"] | components["schemas"]["SurfaceReshapedEvent"] | components["schemas"]["SurfaceSubmittedEvent"] | components["schemas"]["SurfaceFieldSavedEvent"] | components["schemas"]["SurfaceOpenedEvent"] | components["schemas"]["SurfacePendingReviewEvent"] | components["schemas"]["SurfaceReviewApprovedEvent"] | components["schemas"]["SurfaceReviewRejectedEvent"] | components["schemas"]["PipelineSyncCompletedEvent"] | components["schemas"]["PipelineErrorEvent"] | components["schemas"]["OperatorRegisteredEvent"] | components["schemas"]["OperatorStatusChangedEvent"] | components["schemas"]["OperatorProfileUpdatedEvent"] | components["schemas"]["OperatorJoinedCallEvent"] | components["schemas"]["OperatorLeftCallEvent"] | components["schemas"]["OperatorModeChangedEvent"] | components["schemas"]["OperatorWrapUpEvent"];
23122
+ WorkspaceSSEEvent: components["schemas"]["CallStartedEvent"] | components["schemas"]["CallEndedEvent"] | components["schemas"]["CallEscalatedEvent"] | components["schemas"]["EncounterUpdatedEvent"] | components["schemas"]["NarrativeUpdatedEvent"] | components["schemas"]["ReviewSubmittedEvent"] | components["schemas"]["SimulationTurnStoredEvent"] | components["schemas"]["SurfaceCreatedEvent"] | components["schemas"]["SurfaceDeliveredEvent"] | components["schemas"]["SurfaceUpdatedEvent"] | components["schemas"]["SurfaceArchivedEvent"] | components["schemas"]["SurfaceReshapedEvent"] | components["schemas"]["SurfaceSubmittedEvent"] | components["schemas"]["SurfaceFieldSavedEvent"] | components["schemas"]["SurfaceOpenedEvent"] | components["schemas"]["SurfacePendingReviewEvent"] | components["schemas"]["SurfaceReviewApprovedEvent"] | components["schemas"]["SurfaceReviewRejectedEvent"] | components["schemas"]["TextStartedEvent"] | components["schemas"]["TextCompletedEvent"] | components["schemas"]["TriggerFiredEvent"] | components["schemas"]["TriggerCompletedEvent"] | components["schemas"]["TriggerFailedEvent"] | components["schemas"]["PipelineSyncCompletedEvent"] | components["schemas"]["PipelineErrorEvent"] | components["schemas"]["OperatorRegisteredEvent"] | components["schemas"]["OperatorStatusChangedEvent"] | components["schemas"]["OperatorProfileUpdatedEvent"] | components["schemas"]["OperatorJoinedCallEvent"] | components["schemas"]["OperatorLeftCallEvent"] | components["schemas"]["OperatorModeChangedEvent"] | components["schemas"]["OperatorWrapUpEvent"];
22341
23123
  /**
22342
23124
  * WrapUpRequest
22343
23125
  * @description Request to record operator intervention wrap-up.