@amigo-ai/platform-sdk 0.48.3 → 0.49.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/index.cjs.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/generated/api.d.ts +87 -5
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/context-graphs.d.ts +24 -0
- package/dist/types/resources/context-graphs.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/dist/types/resources/world.d.ts +4 -4
- package/dist/types/resources/world.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;
|
|
@@ -8791,6 +8811,8 @@ export interface components {
|
|
|
8791
8811
|
name: string;
|
|
8792
8812
|
/** Objective */
|
|
8793
8813
|
objective: string;
|
|
8814
|
+
/** Preload */
|
|
8815
|
+
preload?: components["schemas"]["PreloadSpec"][];
|
|
8794
8816
|
/** Surface Spec Template */
|
|
8795
8817
|
surface_spec_template?: {
|
|
8796
8818
|
[key: string]: unknown;
|
|
@@ -8843,6 +8865,8 @@ export interface components {
|
|
|
8843
8865
|
name: string;
|
|
8844
8866
|
/** Objective */
|
|
8845
8867
|
objective: string;
|
|
8868
|
+
/** Preload */
|
|
8869
|
+
preload?: components["schemas"]["PreloadSpec"][];
|
|
8846
8870
|
/** Surface Spec Template */
|
|
8847
8871
|
surface_spec_template?: {
|
|
8848
8872
|
[key: string]: unknown;
|
|
@@ -10123,6 +10147,11 @@ export interface components {
|
|
|
10123
10147
|
* @default 3
|
|
10124
10148
|
*/
|
|
10125
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;
|
|
10126
10155
|
exploration?: components["schemas"]["ExplorationConfig"] | null;
|
|
10127
10156
|
/**
|
|
10128
10157
|
* Max Turns
|
|
@@ -11131,6 +11160,18 @@ export interface components {
|
|
|
11131
11160
|
/** Status */
|
|
11132
11161
|
status: string;
|
|
11133
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
|
+
};
|
|
11134
11175
|
/**
|
|
11135
11176
|
* ClinicOpenHoursParams
|
|
11136
11177
|
* @description Workspace clinic open-hours by weekday.
|
|
@@ -21077,6 +21118,24 @@ export interface components {
|
|
|
21077
21118
|
*/
|
|
21078
21119
|
workspace_id: string;
|
|
21079
21120
|
};
|
|
21121
|
+
/**
|
|
21122
|
+
* PreloadSpec
|
|
21123
|
+
* @description A tool call executed deterministically by the engine on state entry.
|
|
21124
|
+
*
|
|
21125
|
+
* Unlike LLM-driven tool calls, preloads run before any LLM turn —
|
|
21126
|
+
* the results appear in the interaction log so the engage LLM sees
|
|
21127
|
+
* them as pre-loaded context. All preloads in a state execute in
|
|
21128
|
+
* parallel. Param values support ``{caller_mrn}`` and ``{entity_id}``
|
|
21129
|
+
* template variables resolved from the session's caller context.
|
|
21130
|
+
*/
|
|
21131
|
+
PreloadSpec: {
|
|
21132
|
+
/** Params */
|
|
21133
|
+
params?: {
|
|
21134
|
+
[key: string]: unknown;
|
|
21135
|
+
};
|
|
21136
|
+
/** Tool Id */
|
|
21137
|
+
tool_id: string;
|
|
21138
|
+
};
|
|
21080
21139
|
/** PrevalenceResponse */
|
|
21081
21140
|
PrevalenceResponse: {
|
|
21082
21141
|
/** Count */
|
|
@@ -21372,11 +21431,10 @@ export interface components {
|
|
|
21372
21431
|
* ProviderType
|
|
21373
21432
|
* @description Messaging provider that implements a channel.
|
|
21374
21433
|
*
|
|
21375
|
-
* Multiple providers
|
|
21376
|
-
* Infobip both support SMS).
|
|
21434
|
+
* Multiple providers may serve the same ChannelKind.
|
|
21377
21435
|
* @enum {string}
|
|
21378
21436
|
*/
|
|
21379
|
-
ProviderType: "twilio" | "
|
|
21437
|
+
ProviderType: "twilio" | "websocket";
|
|
21380
21438
|
/** ProvisionResponse */
|
|
21381
21439
|
ProvisionResponse: {
|
|
21382
21440
|
workspace: components["schemas"]["WorkspaceResponse"];
|
|
@@ -29166,12 +29224,12 @@ export interface components {
|
|
|
29166
29224
|
branch_name?: string | null;
|
|
29167
29225
|
/**
|
|
29168
29226
|
* Caller Id
|
|
29169
|
-
* @description Simulated caller phone number
|
|
29227
|
+
* @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.
|
|
29170
29228
|
*/
|
|
29171
29229
|
caller_id?: string | null;
|
|
29172
29230
|
/**
|
|
29173
29231
|
* Entity Id
|
|
29174
|
-
* @description
|
|
29232
|
+
* @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).
|
|
29175
29233
|
*/
|
|
29176
29234
|
entity_id?: string | null;
|
|
29177
29235
|
/**
|
|
@@ -33725,6 +33783,28 @@ export interface operations {
|
|
|
33725
33783
|
};
|
|
33726
33784
|
};
|
|
33727
33785
|
};
|
|
33786
|
+
"get-client-config": {
|
|
33787
|
+
parameters: {
|
|
33788
|
+
query?: never;
|
|
33789
|
+
header?: never;
|
|
33790
|
+
path: {
|
|
33791
|
+
workspace_id: string;
|
|
33792
|
+
};
|
|
33793
|
+
cookie?: never;
|
|
33794
|
+
};
|
|
33795
|
+
requestBody?: never;
|
|
33796
|
+
responses: {
|
|
33797
|
+
/** @description Successful Response */
|
|
33798
|
+
200: {
|
|
33799
|
+
headers: {
|
|
33800
|
+
[name: string]: unknown;
|
|
33801
|
+
};
|
|
33802
|
+
content: {
|
|
33803
|
+
"application/json": components["schemas"]["ClientConfigResponse"];
|
|
33804
|
+
};
|
|
33805
|
+
};
|
|
33806
|
+
};
|
|
33807
|
+
};
|
|
33728
33808
|
"list-context_graphs": {
|
|
33729
33809
|
parameters: {
|
|
33730
33810
|
query?: {
|
|
@@ -49296,6 +49376,8 @@ export interface operations {
|
|
|
49296
49376
|
q?: string | null;
|
|
49297
49377
|
limit?: number;
|
|
49298
49378
|
offset?: number;
|
|
49379
|
+
/** @description Sort order (PostgREST-style, e.g. last_event_at.desc, display_name.asc) */
|
|
49380
|
+
order?: string | null;
|
|
49299
49381
|
/** @description Filter by has_projection flag */
|
|
49300
49382
|
has_projection?: boolean | null;
|
|
49301
49383
|
/** @description Filter by event source (e.g. voice_agent, connector_runner) */
|