@amigo-ai/platform-sdk 0.37.0 → 0.40.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/api.md +1 -0
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +2 -2
- package/dist/resources/functions.js +14 -0
- package/dist/resources/functions.js.map +1 -1
- package/dist/types/generated/api.d.ts +262 -3
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +3 -3
- package/dist/types/resources/functions.d.ts +39 -0
- 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/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -56,6 +56,20 @@ export class FunctionsResource extends WorkspaceScopedResource {
|
|
|
56
56
|
body,
|
|
57
57
|
}));
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* List the ``latest`` version of every V109-registered platform
|
|
61
|
+
* function in the workspace. Returns one row per function (the
|
|
62
|
+
* alias-pinned latest version).
|
|
63
|
+
*
|
|
64
|
+
* Distinct from :meth:`list` which reads the legacy
|
|
65
|
+
* ``workspace.settings["functions"]`` JSONB store; both surfaces
|
|
66
|
+
* co-exist while callers migrate. Prefer this for V109 functions.
|
|
67
|
+
*/
|
|
68
|
+
async listRegistered() {
|
|
69
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/functions/registered', {
|
|
70
|
+
params: { path: { workspace_id: this.workspaceId } },
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
59
73
|
/**
|
|
60
74
|
* List all immutable versions of a registered function, newest first.
|
|
61
75
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../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C,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sDAAsD,EAAE;YAC7E,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE;YACjF,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,OAAO,CACX,YAAoB,EACpB,IAA6C;QAE7C,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sDAAsD,EAAE;YAC7E,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE;YACjF,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,CACZ,YAAoB,EACpB,IAA8C;QAE9C,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uDAAuD,EAAE;YAC9E,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE;YACjF,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;CACF"}
|
|
@@ -3227,6 +3227,39 @@ export interface paths {
|
|
|
3227
3227
|
patch?: never;
|
|
3228
3228
|
trace?: never;
|
|
3229
3229
|
};
|
|
3230
|
+
"/v1/{workspace_id}/functions/registered": {
|
|
3231
|
+
parameters: {
|
|
3232
|
+
query?: never;
|
|
3233
|
+
header?: never;
|
|
3234
|
+
path?: never;
|
|
3235
|
+
cookie?: never;
|
|
3236
|
+
};
|
|
3237
|
+
/**
|
|
3238
|
+
* List latest version of every V109 platform function in the workspace
|
|
3239
|
+
* @description List the ``latest`` version of every V109-registered function
|
|
3240
|
+
* in the workspace.
|
|
3241
|
+
*
|
|
3242
|
+
* Returns one row per function (the alias-pinned latest version).
|
|
3243
|
+
* The Studio + SDK use this to render a workspace-wide directory of
|
|
3244
|
+
* deployed platform functions; the per-function ``/{name}/versions``
|
|
3245
|
+
* endpoint returns history for a specific function.
|
|
3246
|
+
*
|
|
3247
|
+
* Note this is **distinct** from ``GET /v1/{ws}/functions``, which
|
|
3248
|
+
* reads ``workspace.settings["functions"]`` JSONB (pre-V109 shape).
|
|
3249
|
+
* Both paths co-exist; clients should prefer this one for
|
|
3250
|
+
* V109-registered functions.
|
|
3251
|
+
*
|
|
3252
|
+
* Permissions: ``Workspace.view`` (read role and above).
|
|
3253
|
+
*/
|
|
3254
|
+
get: operations["list-registered-functions"];
|
|
3255
|
+
put?: never;
|
|
3256
|
+
post?: never;
|
|
3257
|
+
delete?: never;
|
|
3258
|
+
options?: never;
|
|
3259
|
+
head?: never;
|
|
3260
|
+
patch?: never;
|
|
3261
|
+
trace?: never;
|
|
3262
|
+
};
|
|
3230
3263
|
"/v1/{workspace_id}/functions/sync": {
|
|
3231
3264
|
parameters: {
|
|
3232
3265
|
query?: never;
|
|
@@ -5181,6 +5214,34 @@ export interface paths {
|
|
|
5181
5214
|
patch?: never;
|
|
5182
5215
|
trace?: never;
|
|
5183
5216
|
};
|
|
5217
|
+
"/v1/{workspace_id}/prompt-logs": {
|
|
5218
|
+
parameters: {
|
|
5219
|
+
query?: never;
|
|
5220
|
+
header?: never;
|
|
5221
|
+
path?: never;
|
|
5222
|
+
cookie?: never;
|
|
5223
|
+
};
|
|
5224
|
+
/**
|
|
5225
|
+
* List prompt logs for a workspace
|
|
5226
|
+
* @description Lists ``prompt_log`` events emitted by agent-engine — full system prompt, conversation history, tool catalog, LLM model, and response — for auditing and debugging. Reads the Delta ``world_events`` ledger via Databricks SQL; typical latency is 1-5s with a 15s ceiling on cold-start.
|
|
5227
|
+
*
|
|
5228
|
+
* **Conversation filter**: pass ``conversation_id`` (UUID from ``world.entities``) for the canonical mental model — works uniformly across voice, text, sim, and scribe modalities. ``call_sid`` is the legacy direct-SID filter (Twilio CA-SID for voice, session_id UUID otherwise) and is mutually exclusive with ``conversation_id``.
|
|
5229
|
+
*
|
|
5230
|
+
* **Other filters**: ``prompt_type``, ``state_name``, ``from_ts``, ``to_ts``. When no selectivity-bearing filter (conversation_id / call_sid / time range) is supplied, the query is auto-capped to the last 7 days; the applied window is reported in ``applied_time_window_days``.
|
|
5231
|
+
*
|
|
5232
|
+
* **Pagination**: peek-ahead — ``has_more`` is true when more rows exist; use ``next_offset`` to fetch the next page.
|
|
5233
|
+
*
|
|
5234
|
+
* **Auth**: admin or owner role required. Reads are audit-logged (``prompt_logs.queried``); responses can include PHI from prompt history.
|
|
5235
|
+
*/
|
|
5236
|
+
get: operations["list-prompt-logs"];
|
|
5237
|
+
put?: never;
|
|
5238
|
+
post?: never;
|
|
5239
|
+
delete?: never;
|
|
5240
|
+
options?: never;
|
|
5241
|
+
head?: never;
|
|
5242
|
+
patch?: never;
|
|
5243
|
+
trace?: never;
|
|
5244
|
+
};
|
|
5184
5245
|
"/v1/{workspace_id}/query/{schema}/{table}": {
|
|
5185
5246
|
parameters: {
|
|
5186
5247
|
query?: never;
|
|
@@ -10178,7 +10239,7 @@ export interface components {
|
|
|
10178
10239
|
/** Caller Id */
|
|
10179
10240
|
caller_id?: string | null;
|
|
10180
10241
|
/** Completion Reason */
|
|
10181
|
-
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null;
|
|
10242
|
+
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled" | "max_duration" | "idle_timeout" | "client_stop" | "transport_error" | "disconnected" | "transport_closed" | "unknown" | "conference_ended") | null;
|
|
10182
10243
|
/** Conference Sid */
|
|
10183
10244
|
conference_sid?: string | null;
|
|
10184
10245
|
config?: components["schemas"]["ConversationConfig"] | null;
|
|
@@ -10288,7 +10349,7 @@ export interface components {
|
|
|
10288
10349
|
* Completion Reason
|
|
10289
10350
|
* @enum {string}
|
|
10290
10351
|
*/
|
|
10291
|
-
completion_reason: "completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled";
|
|
10352
|
+
completion_reason: "completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled" | "max_duration" | "idle_timeout" | "client_stop" | "transport_error" | "disconnected" | "transport_closed" | "unknown" | "conference_ended";
|
|
10292
10353
|
/**
|
|
10293
10354
|
* Direction
|
|
10294
10355
|
* @enum {string}
|
|
@@ -10493,7 +10554,7 @@ export interface components {
|
|
|
10493
10554
|
* Completion Reason
|
|
10494
10555
|
* @description Why the call ended
|
|
10495
10556
|
*/
|
|
10496
|
-
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled") | null;
|
|
10557
|
+
completion_reason?: ("completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled" | "max_duration" | "idle_timeout" | "client_stop" | "transport_error" | "disconnected" | "transport_closed" | "unknown" | "conference_ended") | null;
|
|
10497
10558
|
/**
|
|
10498
10559
|
* Direction
|
|
10499
10560
|
* @description Call direction
|
|
@@ -21282,6 +21343,99 @@ export interface components {
|
|
|
21282
21343
|
/** Version */
|
|
21283
21344
|
version: number;
|
|
21284
21345
|
};
|
|
21346
|
+
/**
|
|
21347
|
+
* PromptLogEntry
|
|
21348
|
+
* @description One ``prompt_log`` event projection — full LLM input + output for a turn.
|
|
21349
|
+
*
|
|
21350
|
+
* Unbounded string fields (``system_prompt``, ``full_prompt``,
|
|
21351
|
+
* ``llm_response``) reflect the producer's payload as-is — typically
|
|
21352
|
+
* 1-50 KB each, occasionally larger for long histories. SDK consumers
|
|
21353
|
+
* should not assume a max length.
|
|
21354
|
+
*/
|
|
21355
|
+
PromptLogEntry: {
|
|
21356
|
+
/** Action */
|
|
21357
|
+
action?: string | null;
|
|
21358
|
+
/** Call Sid */
|
|
21359
|
+
call_sid?: string | null;
|
|
21360
|
+
/**
|
|
21361
|
+
* Data Parse Error
|
|
21362
|
+
* @default false
|
|
21363
|
+
*/
|
|
21364
|
+
data_parse_error?: boolean;
|
|
21365
|
+
/** Effective At */
|
|
21366
|
+
effective_at?: string | null;
|
|
21367
|
+
/**
|
|
21368
|
+
* Event Id
|
|
21369
|
+
* Format: uuid
|
|
21370
|
+
*/
|
|
21371
|
+
event_id: string;
|
|
21372
|
+
/** Full Prompt */
|
|
21373
|
+
full_prompt?: string | null;
|
|
21374
|
+
/** Has Tools */
|
|
21375
|
+
has_tools?: boolean | null;
|
|
21376
|
+
/** History */
|
|
21377
|
+
history?: {
|
|
21378
|
+
[key: string]: unknown;
|
|
21379
|
+
}[] | null;
|
|
21380
|
+
/** Ingested At */
|
|
21381
|
+
ingested_at?: string | null;
|
|
21382
|
+
/** Llm Model */
|
|
21383
|
+
llm_model?: string | null;
|
|
21384
|
+
/** Llm Response */
|
|
21385
|
+
llm_response?: string | null;
|
|
21386
|
+
/** Prompt Type */
|
|
21387
|
+
prompt_type?: string | null;
|
|
21388
|
+
/** Service Id */
|
|
21389
|
+
service_id?: string | null;
|
|
21390
|
+
/** Session Id */
|
|
21391
|
+
session_id?: string | null;
|
|
21392
|
+
/** Source */
|
|
21393
|
+
source?: string | null;
|
|
21394
|
+
/** Source System */
|
|
21395
|
+
source_system?: string | null;
|
|
21396
|
+
/** State Name */
|
|
21397
|
+
state_name?: string | null;
|
|
21398
|
+
/** System Prompt */
|
|
21399
|
+
system_prompt?: string | null;
|
|
21400
|
+
/** Tool Names */
|
|
21401
|
+
tool_names?: string[];
|
|
21402
|
+
/** Turn Index */
|
|
21403
|
+
turn_index?: number | null;
|
|
21404
|
+
/**
|
|
21405
|
+
* Workspace Id
|
|
21406
|
+
* Format: uuid
|
|
21407
|
+
*/
|
|
21408
|
+
workspace_id: string;
|
|
21409
|
+
};
|
|
21410
|
+
/** PromptLogListResponse */
|
|
21411
|
+
PromptLogListResponse: {
|
|
21412
|
+
/**
|
|
21413
|
+
* Applied Time Window Days
|
|
21414
|
+
* @description Auto-applied time bound (in days) when no call_sid/from_ts/to_ts was passed. Null when the caller supplied an explicit selectivity-bearing filter.
|
|
21415
|
+
*/
|
|
21416
|
+
applied_time_window_days?: number | null;
|
|
21417
|
+
/** Count */
|
|
21418
|
+
count: number;
|
|
21419
|
+
/** Has More */
|
|
21420
|
+
has_more: boolean;
|
|
21421
|
+
/** Items */
|
|
21422
|
+
items: components["schemas"]["PromptLogEntry"][];
|
|
21423
|
+
/**
|
|
21424
|
+
* Next Offset
|
|
21425
|
+
* @description Pass back as offset to fetch the next page; null when has_more is false
|
|
21426
|
+
*/
|
|
21427
|
+
next_offset?: number | null;
|
|
21428
|
+
/**
|
|
21429
|
+
* Resolved Call Sid
|
|
21430
|
+
* @description When ``conversation_id`` was supplied, this is the underlying ``call_sid`` that the lookup resolved to. Useful for callers that want to drill into per-call surfaces afterward without re-querying ``world.entities``. Null when the caller filtered by ``call_sid`` directly or did not filter by conversation.
|
|
21431
|
+
*/
|
|
21432
|
+
resolved_call_sid?: string | null;
|
|
21433
|
+
/**
|
|
21434
|
+
* Resolved Conversation Kind
|
|
21435
|
+
* @description ``entity_type`` of the conversation entity when ``conversation_id`` was supplied (``call`` for voice/sim/scribe, ``conversation`` for text/sms/whatsapp/email). Null otherwise.
|
|
21436
|
+
*/
|
|
21437
|
+
resolved_conversation_kind?: ("call" | "conversation") | null;
|
|
21438
|
+
};
|
|
21285
21439
|
/**
|
|
21286
21440
|
* ProviderType
|
|
21287
21441
|
* @description Messaging provider that implements a channel.
|
|
@@ -36544,6 +36698,35 @@ export interface operations {
|
|
|
36544
36698
|
};
|
|
36545
36699
|
};
|
|
36546
36700
|
};
|
|
36701
|
+
"list-registered-functions": {
|
|
36702
|
+
parameters: {
|
|
36703
|
+
query?: never;
|
|
36704
|
+
header?: never;
|
|
36705
|
+
path: {
|
|
36706
|
+
workspace_id: string;
|
|
36707
|
+
};
|
|
36708
|
+
cookie?: never;
|
|
36709
|
+
};
|
|
36710
|
+
requestBody?: never;
|
|
36711
|
+
responses: {
|
|
36712
|
+
/** @description Successful Response */
|
|
36713
|
+
200: {
|
|
36714
|
+
headers: {
|
|
36715
|
+
[name: string]: unknown;
|
|
36716
|
+
};
|
|
36717
|
+
content: {
|
|
36718
|
+
"application/json": components["schemas"]["FunctionVersionListResponse"];
|
|
36719
|
+
};
|
|
36720
|
+
};
|
|
36721
|
+
/** @description Rate limited */
|
|
36722
|
+
429: {
|
|
36723
|
+
headers: {
|
|
36724
|
+
[name: string]: unknown;
|
|
36725
|
+
};
|
|
36726
|
+
content?: never;
|
|
36727
|
+
};
|
|
36728
|
+
};
|
|
36729
|
+
};
|
|
36547
36730
|
"sync-catalog": {
|
|
36548
36731
|
parameters: {
|
|
36549
36732
|
query?: never;
|
|
@@ -40943,6 +41126,82 @@ export interface operations {
|
|
|
40943
41126
|
};
|
|
40944
41127
|
};
|
|
40945
41128
|
};
|
|
41129
|
+
"list-prompt-logs": {
|
|
41130
|
+
parameters: {
|
|
41131
|
+
query?: {
|
|
41132
|
+
/** @description Conversation entity UUID (canonical identifier across all modalities — voice, text/web, sms, sim, scribe). Resolves to the underlying ``call_sid`` via ``world.entities``. Mutually exclusive with the ``call_sid`` query parameter. */
|
|
41133
|
+
conversation_id?: string | null;
|
|
41134
|
+
/** @description Direct conversation identifier as stored on the prompt-log event: Twilio CA-SID for voice calls, session_id UUID for text/sim/scribe sessions. Most callers should use ``conversation_id`` instead — this is kept for legacy callers and external systems that hold the SID directly. Mutually exclusive with ``conversation_id``. */
|
|
41135
|
+
call_sid?: string | null;
|
|
41136
|
+
/** @description Filter by prompt_type (e.g. engage_user, navigation, tool) */
|
|
41137
|
+
prompt_type?: string | null;
|
|
41138
|
+
/** @description Filter by HSM state_name at render time */
|
|
41139
|
+
state_name?: string | null;
|
|
41140
|
+
/** @description Inclusive lower bound on effective_at */
|
|
41141
|
+
from_ts?: string | null;
|
|
41142
|
+
/** @description Exclusive upper bound on effective_at */
|
|
41143
|
+
to_ts?: string | null;
|
|
41144
|
+
/** @description Max rows to return (default 20, max 200) */
|
|
41145
|
+
limit?: number;
|
|
41146
|
+
/** @description Offset for pagination (max 10000) */
|
|
41147
|
+
offset?: number;
|
|
41148
|
+
};
|
|
41149
|
+
header?: never;
|
|
41150
|
+
path: {
|
|
41151
|
+
workspace_id: string;
|
|
41152
|
+
};
|
|
41153
|
+
cookie?: never;
|
|
41154
|
+
};
|
|
41155
|
+
requestBody?: never;
|
|
41156
|
+
responses: {
|
|
41157
|
+
/** @description Prompt log entries (newest first) */
|
|
41158
|
+
200: {
|
|
41159
|
+
headers: {
|
|
41160
|
+
[name: string]: unknown;
|
|
41161
|
+
};
|
|
41162
|
+
content: {
|
|
41163
|
+
"application/json": components["schemas"]["PromptLogListResponse"];
|
|
41164
|
+
};
|
|
41165
|
+
};
|
|
41166
|
+
/** @description Mutually exclusive filters supplied */
|
|
41167
|
+
400: {
|
|
41168
|
+
headers: {
|
|
41169
|
+
[name: string]: unknown;
|
|
41170
|
+
};
|
|
41171
|
+
content?: never;
|
|
41172
|
+
};
|
|
41173
|
+
/** @description Caller is not admin/owner */
|
|
41174
|
+
403: {
|
|
41175
|
+
headers: {
|
|
41176
|
+
[name: string]: unknown;
|
|
41177
|
+
};
|
|
41178
|
+
content?: never;
|
|
41179
|
+
};
|
|
41180
|
+
/** @description conversation_id does not match any conversation in this workspace */
|
|
41181
|
+
404: {
|
|
41182
|
+
headers: {
|
|
41183
|
+
[name: string]: unknown;
|
|
41184
|
+
};
|
|
41185
|
+
content?: never;
|
|
41186
|
+
};
|
|
41187
|
+
/** @description Validation Error */
|
|
41188
|
+
422: {
|
|
41189
|
+
headers: {
|
|
41190
|
+
[name: string]: unknown;
|
|
41191
|
+
};
|
|
41192
|
+
content: {
|
|
41193
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
41194
|
+
};
|
|
41195
|
+
};
|
|
41196
|
+
/** @description Raw world event reads disabled or warehouse unavailable */
|
|
41197
|
+
503: {
|
|
41198
|
+
headers: {
|
|
41199
|
+
[name: string]: unknown;
|
|
41200
|
+
};
|
|
41201
|
+
content?: never;
|
|
41202
|
+
};
|
|
41203
|
+
};
|
|
41204
|
+
};
|
|
40946
41205
|
query_table_v1__workspace_id__query__schema___table__get: {
|
|
40947
41206
|
parameters: {
|
|
40948
41207
|
query?: {
|