@amigo-ai/platform-sdk 0.5.0 → 0.5.2

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.
@@ -3220,6 +3220,26 @@ export interface paths {
3220
3220
  patch?: never;
3221
3221
  trace?: never;
3222
3222
  };
3223
+ "/v1/{workspace_id}/intake/links/{link_id}/uploads/{upload_id}/download": {
3224
+ parameters: {
3225
+ query?: never;
3226
+ header?: never;
3227
+ path?: never;
3228
+ cookie?: never;
3229
+ };
3230
+ /**
3231
+ * Download an uploaded file
3232
+ * @description Proxy the raw file bytes from the UC Volume back to the caller.
3233
+ */
3234
+ get: operations["download-intake-upload"];
3235
+ put?: never;
3236
+ post?: never;
3237
+ delete?: never;
3238
+ options?: never;
3239
+ head?: never;
3240
+ patch?: never;
3241
+ trace?: never;
3242
+ };
3223
3243
  "/v1/{workspace_id}/integrations": {
3224
3244
  parameters: {
3225
3245
  query?: never;
@@ -5094,10 +5114,6 @@ export interface paths {
5094
5114
  /**
5095
5115
  * Finalize Encounter
5096
5116
  * @description Physician finalizes the encounter. Locks the encounter for EHR sync.
5097
- *
5098
- * Reads the encounter entity's projected state and snapshots SOAP + ICD-10
5099
- * into the finalize event. This event uses ENCOUNTER_FINALIZED source which
5100
- * is outbound-eligible — connector-runner routes it to EHR write handlers.
5101
5117
  */
5102
5118
  post: operations["finalize-encounter"];
5103
5119
  delete?: never;
@@ -5166,86 +5182,6 @@ export interface paths {
5166
5182
  patch?: never;
5167
5183
  trace?: never;
5168
5184
  };
5169
- "/v1/{workspace_id}/scribe/sessions": {
5170
- parameters: {
5171
- query?: never;
5172
- header?: never;
5173
- path?: never;
5174
- cookie?: never;
5175
- };
5176
- get?: never;
5177
- put?: never;
5178
- /**
5179
- * Create Session
5180
- * @description Create a scribe encounter session. Proxies to agent-engine.
5181
- */
5182
- post: operations["create-scribe-session"];
5183
- delete?: never;
5184
- options?: never;
5185
- head?: never;
5186
- patch?: never;
5187
- trace?: never;
5188
- };
5189
- "/v1/{workspace_id}/scribe/sessions/{session_id}/end": {
5190
- parameters: {
5191
- query?: never;
5192
- header?: never;
5193
- path?: never;
5194
- cookie?: never;
5195
- };
5196
- get?: never;
5197
- put?: never;
5198
- /**
5199
- * End Session
5200
- * @description End a scribe encounter session. Writes encounter.ended with duration.
5201
- */
5202
- post: operations["end-scribe-session"];
5203
- delete?: never;
5204
- options?: never;
5205
- head?: never;
5206
- patch?: never;
5207
- trace?: never;
5208
- };
5209
- "/v1/{workspace_id}/scribe/sessions/{session_id}/snapshot": {
5210
- parameters: {
5211
- query?: never;
5212
- header?: never;
5213
- path?: never;
5214
- cookie?: never;
5215
- };
5216
- /**
5217
- * Get Snapshot
5218
- * @description Get current scribe session state.
5219
- */
5220
- get: operations["scribe-session-snapshot"];
5221
- put?: never;
5222
- post?: never;
5223
- delete?: never;
5224
- options?: never;
5225
- head?: never;
5226
- patch?: never;
5227
- trace?: never;
5228
- };
5229
- "/v1/{workspace_id}/scribe/sessions/{session_id}/transcript": {
5230
- parameters: {
5231
- query?: never;
5232
- header?: never;
5233
- path?: never;
5234
- cookie?: never;
5235
- };
5236
- get?: never;
5237
- put?: never;
5238
- /**
5239
- * Process Transcript
5240
- * @description Process a batch of transcript segments through the scribe engine.
5241
- */
5242
- post: operations["scribe-process-transcript"];
5243
- delete?: never;
5244
- options?: never;
5245
- head?: never;
5246
- patch?: never;
5247
- trace?: never;
5248
- };
5249
5185
  "/v1/{workspace_id}/sensorium/connector-health": {
5250
5186
  parameters: {
5251
5187
  query?: never;
@@ -10322,15 +10258,6 @@ export interface components {
10322
10258
  */
10323
10259
  sync_strategy?: "manual" | "scheduled" | "webhook" | "continuous";
10324
10260
  };
10325
- /** CreateEncounterRequest */
10326
- CreateEncounterRequest: {
10327
- /** Patient Entity Id */
10328
- patient_entity_id?: string | null;
10329
- /** Practitioner Name */
10330
- practitioner_name?: string | null;
10331
- /** Service Id */
10332
- service_id: string;
10333
- };
10334
10261
  /** CreateIntegrationRequest */
10335
10262
  CreateIntegrationRequest: {
10336
10263
  auth?: components["schemas"]["AuthConfigWithSecrets"] | null;
@@ -10374,7 +10301,7 @@ export interface components {
10374
10301
  /** CreateLinkRequest */
10375
10302
  CreateLinkRequest: {
10376
10303
  customer_slug: components["schemas"]["SlugString"];
10377
- display_name?: components["schemas"]["NameString"] | null;
10304
+ display_name?: components["schemas"]["DescriptionString"] | null;
10378
10305
  /**
10379
10306
  * Expires In Hours
10380
10307
  * @default 168
@@ -12233,32 +12160,6 @@ export interface components {
12233
12160
  */
12234
12161
  trigger?: string | null;
12235
12162
  };
12236
- /** EncounterSessionResponse */
12237
- EncounterSessionResponse: {
12238
- /** Encounter Entity Id */
12239
- encounter_entity_id: string;
12240
- /** Greeting */
12241
- greeting: string;
12242
- /** Is Terminal */
12243
- is_terminal: boolean;
12244
- /** Session Id */
12245
- session_id: string;
12246
- } & {
12247
- [key: string]: unknown;
12248
- };
12249
- /** EncounterSnapshotResponse */
12250
- EncounterSnapshotResponse: {
12251
- /** Current State */
12252
- current_state: string;
12253
- /** Encounter Entity Id */
12254
- encounter_entity_id: string;
12255
- /** Is Terminal */
12256
- is_terminal: boolean;
12257
- /** Session Id */
12258
- session_id: string;
12259
- } & {
12260
- [key: string]: unknown;
12261
- };
12262
12163
  /**
12263
12164
  * EndpointConfig
12264
12165
  * @description Configuration for a single integration endpoint.
@@ -17189,29 +17090,35 @@ export interface components {
17189
17090
  * ProgressHint
17190
17091
  * @description How the agent narrates waiting on a tool.
17191
17092
  *
17192
- * The actual utterance is generated from tool semantics + turn emotion +
17193
- * patient context. Operators describe the shape of the wait, the engine
17194
- * chooses the words.
17195
- *
17196
- * ``custom_phrase`` is a narrow escape hatch for demo-critical slow tools
17197
- * where generic templates cannot cover the wait. Gated: only honored when
17198
- * ``expected_latency_ms >= 4000`` and ``progress_class`` is set, and the
17199
- * phrase is at most 30 words. The gate keeps the surface small so the
17200
- * engine-picks-words contract holds for the bulk of tools.
17093
+ * ``deterministic=true``: scripted ``phrases`` play verbatim in order.
17094
+ * ``deterministic=false``: engine picks ``phrases`` are hints.
17095
+ * ``trigger_delay_ms``: milliseconds before first filler (0 = immediate).
17096
+ * ``interval_ms``: milliseconds between subsequent fillers.
17201
17097
  */
17202
17098
  ProgressHint: {
17203
17099
  /** Custom Phrase */
17204
17100
  custom_phrase?: string | null;
17101
+ /**
17102
+ * Deterministic
17103
+ * @default false
17104
+ */
17105
+ deterministic?: boolean;
17205
17106
  /** Expected Latency Ms */
17206
17107
  expected_latency_ms?: number | null;
17108
+ /** Interval Ms */
17109
+ interval_ms?: number | null;
17207
17110
  /**
17208
17111
  * Mode
17209
17112
  * @default auto
17210
17113
  * @enum {string}
17211
17114
  */
17212
17115
  mode?: "auto" | "silent" | "backchannel" | "verbal";
17116
+ /** Phrases */
17117
+ phrases?: string[] | null;
17213
17118
  /** Progress Class */
17214
17119
  progress_class?: ("lookup" | "write" | "external_call" | "compute" | "multi_step") | null;
17120
+ /** Trigger Delay Ms */
17121
+ trigger_delay_ms?: number | null;
17215
17122
  };
17216
17123
  /** ProvisionResponse */
17217
17124
  ProvisionResponse: {
@@ -18645,7 +18552,10 @@ export interface components {
18645
18552
  SimulationRunResponse: {
18646
18553
  /** Branch Name */
18647
18554
  branch_name?: string | null;
18648
- bridge_request?: components["schemas"]["BridgeRequest"] | null;
18555
+ /** Bridge Request */
18556
+ bridge_request?: {
18557
+ [key: string]: unknown;
18558
+ } | null;
18649
18559
  /** Completed At */
18650
18560
  completed_at?: string | null;
18651
18561
  /** Created At */
@@ -18658,7 +18568,9 @@ export interface components {
18658
18568
  /** Objective */
18659
18569
  objective?: string | null;
18660
18570
  /** Scenarios */
18661
- scenarios?: components["schemas"]["Scenario"][] | null;
18571
+ scenarios?: {
18572
+ [key: string]: unknown;
18573
+ }[] | null;
18662
18574
  /**
18663
18575
  * Service Id
18664
18576
  * Format: uuid
@@ -19901,6 +19813,10 @@ export interface components {
19901
19813
  * @default
19902
19814
  */
19903
19815
  additional_instruction?: string;
19816
+ /** Audio Filler Triggered After */
19817
+ audio_filler_triggered_after?: number | null;
19818
+ /** Audio Fillers */
19819
+ audio_fillers?: string[] | null;
19904
19820
  /**
19905
19821
  * Navigate On Completion
19906
19822
  * @default false
@@ -20250,64 +20166,6 @@ export interface components {
20250
20166
  */
20251
20167
  what_happened: string;
20252
20168
  };
20253
- /** TranscriptInput */
20254
- TranscriptInput: {
20255
- /** Segments */
20256
- segments: components["schemas"]["TranscriptSegmentInput"][];
20257
- };
20258
- /** TranscriptProcessResponse */
20259
- TranscriptProcessResponse: {
20260
- /**
20261
- * Agent Text
20262
- * @default
20263
- */
20264
- agent_text?: string;
20265
- /**
20266
- * Alerts
20267
- * @default []
20268
- */
20269
- alerts?: {
20270
- [key: string]: unknown;
20271
- }[];
20272
- /**
20273
- * Entities Discovered
20274
- * @default []
20275
- */
20276
- entities_discovered?: {
20277
- [key: string]: unknown;
20278
- }[];
20279
- /**
20280
- * Icd10 Suggestions
20281
- * @default []
20282
- */
20283
- icd10_suggestions?: {
20284
- [key: string]: unknown;
20285
- }[];
20286
- /**
20287
- * Is Terminal
20288
- * @default false
20289
- */
20290
- is_terminal?: boolean;
20291
- /**
20292
- * Soap Updates
20293
- * @default []
20294
- */
20295
- soap_updates?: {
20296
- [key: string]: unknown;
20297
- }[];
20298
- /**
20299
- * State After
20300
- * @default
20301
- */
20302
- state_after?: string;
20303
- /**
20304
- * State Before
20305
- * @default
20306
- */
20307
- state_before?: string;
20308
- } & {
20309
- [key: string]: unknown;
20310
- };
20311
20169
  /** TranscriptSegment */
20312
20170
  TranscriptSegment: {
20313
20171
  /** Confidence */
@@ -20321,15 +20179,6 @@ export interface components {
20321
20179
  /** Transcript */
20322
20180
  transcript: string;
20323
20181
  };
20324
- /** TranscriptSegmentInput */
20325
- TranscriptSegmentInput: {
20326
- /** Speaker */
20327
- speaker: string;
20328
- /** Text */
20329
- text: string;
20330
- /** Timestamp */
20331
- timestamp: number;
20332
- };
20333
20182
  /** TrendResponse */
20334
20183
  TrendResponse: {
20335
20184
  /** Code */
@@ -21961,6 +21810,11 @@ export interface components {
21961
21810
  src__routes__simulations__CreateSessionRequest: {
21962
21811
  /** Branch Name */
21963
21812
  branch_name?: string | null;
21813
+ /**
21814
+ * Caller Id
21815
+ * @description Simulated caller phone number for patient resolution. When omitted or blank the agent-engine falls back to the sim-orchestrator sentinel.
21816
+ */
21817
+ caller_id?: string | null;
21964
21818
  /**
21965
21819
  * Service Id
21966
21820
  * Format: uuid
@@ -22583,11 +22437,7 @@ export interface operations {
22583
22437
  };
22584
22438
  cookie?: never;
22585
22439
  };
22586
- requestBody: {
22587
- content: {
22588
- "application/octet-stream": string;
22589
- };
22590
- };
22440
+ requestBody?: never;
22591
22441
  responses: {
22592
22442
  /** @description Successful Response */
22593
22443
  200: {
@@ -29399,6 +29249,46 @@ export interface operations {
29399
29249
  };
29400
29250
  };
29401
29251
  };
29252
+ "download-intake-upload": {
29253
+ parameters: {
29254
+ query?: never;
29255
+ header?: never;
29256
+ path: {
29257
+ link_id: string;
29258
+ upload_id: string;
29259
+ workspace_id: string;
29260
+ };
29261
+ cookie?: never;
29262
+ };
29263
+ requestBody?: never;
29264
+ responses: {
29265
+ /** @description File bytes with Content-Disposition: attachment */
29266
+ 200: {
29267
+ headers: {
29268
+ [name: string]: unknown;
29269
+ };
29270
+ content: {
29271
+ "application/octet-stream": string;
29272
+ };
29273
+ };
29274
+ /** @description Link, upload, or file not found */
29275
+ 404: {
29276
+ headers: {
29277
+ [name: string]: unknown;
29278
+ };
29279
+ content?: never;
29280
+ };
29281
+ /** @description Validation Error */
29282
+ 422: {
29283
+ headers: {
29284
+ [name: string]: unknown;
29285
+ };
29286
+ content: {
29287
+ "application/json": components["schemas"]["HTTPValidationError"];
29288
+ };
29289
+ };
29290
+ };
29291
+ };
29402
29292
  "list-integrations": {
29403
29293
  parameters: {
29404
29294
  query?: {
@@ -33619,143 +33509,6 @@ export interface operations {
33619
33509
  };
33620
33510
  };
33621
33511
  };
33622
- "create-scribe-session": {
33623
- parameters: {
33624
- query?: never;
33625
- header?: never;
33626
- path: {
33627
- workspace_id: string;
33628
- };
33629
- cookie?: never;
33630
- };
33631
- requestBody: {
33632
- content: {
33633
- "application/json": components["schemas"]["CreateEncounterRequest"];
33634
- };
33635
- };
33636
- responses: {
33637
- /** @description Successful Response */
33638
- 200: {
33639
- headers: {
33640
- [name: string]: unknown;
33641
- };
33642
- content: {
33643
- "application/json": components["schemas"]["EncounterSessionResponse"];
33644
- };
33645
- };
33646
- /** @description Validation Error */
33647
- 422: {
33648
- headers: {
33649
- [name: string]: unknown;
33650
- };
33651
- content: {
33652
- "application/json": components["schemas"]["HTTPValidationError"];
33653
- };
33654
- };
33655
- };
33656
- };
33657
- "end-scribe-session": {
33658
- parameters: {
33659
- query?: never;
33660
- header?: never;
33661
- path: {
33662
- session_id: string;
33663
- workspace_id: string;
33664
- };
33665
- cookie?: never;
33666
- };
33667
- requestBody?: never;
33668
- responses: {
33669
- /** @description Successful Response */
33670
- 200: {
33671
- headers: {
33672
- [name: string]: unknown;
33673
- };
33674
- content: {
33675
- "application/json": {
33676
- [key: string]: unknown;
33677
- };
33678
- };
33679
- };
33680
- /** @description Validation Error */
33681
- 422: {
33682
- headers: {
33683
- [name: string]: unknown;
33684
- };
33685
- content: {
33686
- "application/json": components["schemas"]["HTTPValidationError"];
33687
- };
33688
- };
33689
- };
33690
- };
33691
- "scribe-session-snapshot": {
33692
- parameters: {
33693
- query?: never;
33694
- header?: never;
33695
- path: {
33696
- session_id: string;
33697
- workspace_id: string;
33698
- };
33699
- cookie?: never;
33700
- };
33701
- requestBody?: never;
33702
- responses: {
33703
- /** @description Successful Response */
33704
- 200: {
33705
- headers: {
33706
- [name: string]: unknown;
33707
- };
33708
- content: {
33709
- "application/json": components["schemas"]["EncounterSnapshotResponse"];
33710
- };
33711
- };
33712
- /** @description Validation Error */
33713
- 422: {
33714
- headers: {
33715
- [name: string]: unknown;
33716
- };
33717
- content: {
33718
- "application/json": components["schemas"]["HTTPValidationError"];
33719
- };
33720
- };
33721
- };
33722
- };
33723
- "scribe-process-transcript": {
33724
- parameters: {
33725
- query?: never;
33726
- header?: never;
33727
- path: {
33728
- session_id: string;
33729
- workspace_id: string;
33730
- };
33731
- cookie?: never;
33732
- };
33733
- requestBody: {
33734
- content: {
33735
- "application/json": components["schemas"]["TranscriptInput"];
33736
- };
33737
- };
33738
- responses: {
33739
- /** @description Successful Response */
33740
- 200: {
33741
- headers: {
33742
- [name: string]: unknown;
33743
- };
33744
- content: {
33745
- "application/json": components["schemas"]["TranscriptProcessResponse"];
33746
- };
33747
- };
33748
- /** @description Validation Error */
33749
- 422: {
33750
- headers: {
33751
- [name: string]: unknown;
33752
- };
33753
- content: {
33754
- "application/json": components["schemas"]["HTTPValidationError"];
33755
- };
33756
- };
33757
- };
33758
- };
33759
33512
  "get-sensorium-connector-health": {
33760
33513
  parameters: {
33761
33514
  query?: never;