@amigo-ai/platform-sdk 0.48.4 → 0.50.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.
- package/dist/types/generated/api.d.ts +100 -17
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1883,6 +1883,26 @@ export interface paths {
|
|
|
1883
1883
|
patch?: never;
|
|
1884
1884
|
trace?: never;
|
|
1885
1885
|
};
|
|
1886
|
+
"/v1/{workspace_id}/config/client": {
|
|
1887
|
+
parameters: {
|
|
1888
|
+
query?: never;
|
|
1889
|
+
header?: never;
|
|
1890
|
+
path?: never;
|
|
1891
|
+
cookie?: never;
|
|
1892
|
+
};
|
|
1893
|
+
/**
|
|
1894
|
+
* Get client configuration
|
|
1895
|
+
* @description Return client-safe configuration for the authenticated workspace.
|
|
1896
|
+
*/
|
|
1897
|
+
get: operations["get-client-config"];
|
|
1898
|
+
put?: never;
|
|
1899
|
+
post?: never;
|
|
1900
|
+
delete?: never;
|
|
1901
|
+
options?: never;
|
|
1902
|
+
head?: never;
|
|
1903
|
+
patch?: never;
|
|
1904
|
+
trace?: never;
|
|
1905
|
+
};
|
|
1886
1906
|
"/v1/{workspace_id}/context-graphs": {
|
|
1887
1907
|
parameters: {
|
|
1888
1908
|
query?: never;
|
|
@@ -10127,6 +10147,11 @@ export interface components {
|
|
|
10127
10147
|
* @default 3
|
|
10128
10148
|
*/
|
|
10129
10149
|
concurrency?: number;
|
|
10150
|
+
/**
|
|
10151
|
+
* Entity Id
|
|
10152
|
+
* @description Optional world entity UUID to bind caller context for every scenario session created by this bridge run. The value is forwarded to each scenario's session-create call and inherited by any forks; identical precedence rules apply per-session (entity match wins over phone, stale UUID falls back to phone lookup, malformed UUID returns 422). Use this to pin an entire regression suite to a specific test patient.
|
|
10153
|
+
*/
|
|
10154
|
+
entity_id?: string | null;
|
|
10130
10155
|
exploration?: components["schemas"]["ExplorationConfig"] | null;
|
|
10131
10156
|
/**
|
|
10132
10157
|
* Max Turns
|
|
@@ -11135,6 +11160,18 @@ export interface components {
|
|
|
11135
11160
|
/** Status */
|
|
11136
11161
|
status: string;
|
|
11137
11162
|
};
|
|
11163
|
+
/**
|
|
11164
|
+
* ClientConfigResponse
|
|
11165
|
+
* @description Client-safe configuration values.
|
|
11166
|
+
*
|
|
11167
|
+
* Values returned here are safe to embed in browser-side code.
|
|
11168
|
+
* API keys are restricted by HTTP referrer or similar origin
|
|
11169
|
+
* controls at the provider level.
|
|
11170
|
+
*/
|
|
11171
|
+
ClientConfigResponse: {
|
|
11172
|
+
/** Google Maps Api Key */
|
|
11173
|
+
google_maps_api_key?: string | null;
|
|
11174
|
+
};
|
|
11138
11175
|
/**
|
|
11139
11176
|
* ClinicOpenHoursParams
|
|
11140
11177
|
* @description Workspace clinic open-hours by weekday.
|
|
@@ -12345,10 +12382,10 @@ export interface components {
|
|
|
12345
12382
|
/** CreateConversationRequest */
|
|
12346
12383
|
CreateConversationRequest: {
|
|
12347
12384
|
/**
|
|
12348
|
-
*
|
|
12349
|
-
* @
|
|
12385
|
+
* Context
|
|
12386
|
+
* @description Injected into the agent's prompt as caller/patient context for this conversation.
|
|
12350
12387
|
*/
|
|
12351
|
-
|
|
12388
|
+
context?: string | null;
|
|
12352
12389
|
/** Entity Id */
|
|
12353
12390
|
entity_id?: string | null;
|
|
12354
12391
|
/**
|
|
@@ -12356,6 +12393,16 @@ export interface components {
|
|
|
12356
12393
|
* Format: uuid
|
|
12357
12394
|
*/
|
|
12358
12395
|
service_id: string;
|
|
12396
|
+
/**
|
|
12397
|
+
* Start Mode
|
|
12398
|
+
* @default user_first
|
|
12399
|
+
* @enum {string}
|
|
12400
|
+
*/
|
|
12401
|
+
start_mode?: "user_first" | "agent_first";
|
|
12402
|
+
/** Viewport Height */
|
|
12403
|
+
viewport_height?: number | null;
|
|
12404
|
+
/** Viewport Width */
|
|
12405
|
+
viewport_width?: number | null;
|
|
12359
12406
|
};
|
|
12360
12407
|
/** CreateCustomerRequest */
|
|
12361
12408
|
CreateCustomerRequest: {
|
|
@@ -13070,22 +13117,28 @@ export interface components {
|
|
|
13070
13117
|
*/
|
|
13071
13118
|
trigger_id: string;
|
|
13072
13119
|
};
|
|
13073
|
-
/**
|
|
13120
|
+
/**
|
|
13121
|
+
* CreateWorkspaceRequest
|
|
13122
|
+
* @description Request body for ``POST /v1/me/workspaces``.
|
|
13123
|
+
*
|
|
13124
|
+
* ``region`` is intentionally not exposed here — the workspace is created
|
|
13125
|
+
* in the region of the platform-api pod that handles the request (each
|
|
13126
|
+
* region's CD pipeline serves its own ingress host), and a workspace
|
|
13127
|
+
* cannot migrate between regions. The handler derives it from
|
|
13128
|
+
* ``app.env.aws_region``.
|
|
13129
|
+
*
|
|
13130
|
+
* ``environment`` has no default: it is a load-bearing routing field
|
|
13131
|
+
* (staging vs production downstream), and ``PATCH .../convert_environment``
|
|
13132
|
+
* is the supported migration path. Callers must commit to a value.
|
|
13133
|
+
*/
|
|
13074
13134
|
CreateWorkspaceRequest: {
|
|
13075
13135
|
backend_org_id?: components["schemas"]["StrippedNonemptyString"] | null;
|
|
13076
13136
|
/**
|
|
13077
13137
|
* Environment
|
|
13078
|
-
* @default staging
|
|
13079
13138
|
* @enum {string}
|
|
13080
13139
|
*/
|
|
13081
|
-
environment
|
|
13140
|
+
environment: "production" | "staging" | "development";
|
|
13082
13141
|
name: components["schemas"]["StrippedNonemptyString"];
|
|
13083
|
-
/**
|
|
13084
|
-
* Region
|
|
13085
|
-
* @default us-east-1
|
|
13086
|
-
* @enum {string}
|
|
13087
|
-
*/
|
|
13088
|
-
region?: "us-east-1" | "ap-southeast-2" | "eu-central-1" | "ca-central-1";
|
|
13089
13142
|
slug: components["schemas"]["SlugString"];
|
|
13090
13143
|
};
|
|
13091
13144
|
/** CrmActivityItem */
|
|
@@ -21394,11 +21447,10 @@ export interface components {
|
|
|
21394
21447
|
* ProviderType
|
|
21395
21448
|
* @description Messaging provider that implements a channel.
|
|
21396
21449
|
*
|
|
21397
|
-
* Multiple providers
|
|
21398
|
-
* Infobip both support SMS).
|
|
21450
|
+
* Multiple providers may serve the same ChannelKind.
|
|
21399
21451
|
* @enum {string}
|
|
21400
21452
|
*/
|
|
21401
|
-
ProviderType: "twilio" | "
|
|
21453
|
+
ProviderType: "twilio" | "websocket";
|
|
21402
21454
|
/** ProvisionResponse */
|
|
21403
21455
|
ProvisionResponse: {
|
|
21404
21456
|
workspace: components["schemas"]["WorkspaceResponse"];
|
|
@@ -27129,12 +27181,21 @@ export interface components {
|
|
|
27129
27181
|
TurnRequest: {
|
|
27130
27182
|
/** Content */
|
|
27131
27183
|
content?: components["schemas"]["ContentPartPayload"][] | null;
|
|
27184
|
+
/**
|
|
27185
|
+
* Context
|
|
27186
|
+
* @description Injected into the agent's prompt as caller/patient context for this turn.
|
|
27187
|
+
*/
|
|
27188
|
+
context?: string | null;
|
|
27132
27189
|
/** Media Type */
|
|
27133
27190
|
media_type?: string | null;
|
|
27134
27191
|
/** Media Url */
|
|
27135
27192
|
media_url?: string | null;
|
|
27136
27193
|
/** Message */
|
|
27137
27194
|
message: string;
|
|
27195
|
+
/** Viewport Height */
|
|
27196
|
+
viewport_height?: number | null;
|
|
27197
|
+
/** Viewport Width */
|
|
27198
|
+
viewport_width?: number | null;
|
|
27138
27199
|
};
|
|
27139
27200
|
/** TurnResponse */
|
|
27140
27201
|
TurnResponse: {
|
|
@@ -29188,12 +29249,12 @@ export interface components {
|
|
|
29188
29249
|
branch_name?: string | null;
|
|
29189
29250
|
/**
|
|
29190
29251
|
* Caller Id
|
|
29191
|
-
* @description Simulated caller phone number
|
|
29252
|
+
* @description Simulated caller phone number used to resolve patient context when `entity_id` is not provided (or does not match a row). Omitted/blank values are normalized to the `sim-orchestrator` sentinel, which yields no phone match and an empty caller context — same default the voice test-call WebSocket uses, so patient lookups resolve consistently across modalities.
|
|
29192
29253
|
*/
|
|
29193
29254
|
caller_id?: string | null;
|
|
29194
29255
|
/**
|
|
29195
29256
|
* Entity Id
|
|
29196
|
-
* @description
|
|
29257
|
+
* @description Optional world entity UUID to bind caller context directly. Precedence rules: (1) when this resolves to a world entity in the workspace, it WINS — `caller_id` is not used for identity resolution, and the resolution provenance is `entity_id_lookup`; (2) when this is a well-formed UUID with no matching entity (stale, deleted, wrong workspace), the session falls back to phone lookup against `caller_id` (provenance `phone_lookup`) — no error is raised, the sim is survivable; (3) malformed UUIDs are rejected with HTTP 422 before the request reaches agent-engine. The supplied `caller_id` is still recorded on the active call and surfaced in the greeting metadata in case (1).
|
|
29197
29258
|
*/
|
|
29198
29259
|
entity_id?: string | null;
|
|
29199
29260
|
/**
|
|
@@ -33747,6 +33808,28 @@ export interface operations {
|
|
|
33747
33808
|
};
|
|
33748
33809
|
};
|
|
33749
33810
|
};
|
|
33811
|
+
"get-client-config": {
|
|
33812
|
+
parameters: {
|
|
33813
|
+
query?: never;
|
|
33814
|
+
header?: never;
|
|
33815
|
+
path: {
|
|
33816
|
+
workspace_id: string;
|
|
33817
|
+
};
|
|
33818
|
+
cookie?: never;
|
|
33819
|
+
};
|
|
33820
|
+
requestBody?: never;
|
|
33821
|
+
responses: {
|
|
33822
|
+
/** @description Successful Response */
|
|
33823
|
+
200: {
|
|
33824
|
+
headers: {
|
|
33825
|
+
[name: string]: unknown;
|
|
33826
|
+
};
|
|
33827
|
+
content: {
|
|
33828
|
+
"application/json": components["schemas"]["ClientConfigResponse"];
|
|
33829
|
+
};
|
|
33830
|
+
};
|
|
33831
|
+
};
|
|
33832
|
+
};
|
|
33750
33833
|
"list-context_graphs": {
|
|
33751
33834
|
parameters: {
|
|
33752
33835
|
query?: {
|