@amigo-ai/platform-sdk 0.37.0 → 0.39.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.
@@ -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":["../../src/resources/functions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEhE,MAAM,OAAO,iBAAkB,SAAQ,uBAAuB;IAC5D,KAAK,CAAC,IAAI;QACR,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,8BAA8B,EAAE;YACpD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;SACrD,CAAC,CACH,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAoD;QAC/D,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,8BAA8B,EAAE;YACrD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;YACpD,IAAI;SACL,CAAC,CACH,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CAAC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AM,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,32 @@ 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
+ * **Filters**: ``call_sid``, ``prompt_type``, ``state_name``, ``from_ts``, ``to_ts``. When no selectivity-bearing filter (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``.
5229
+ *
5230
+ * **Pagination**: peek-ahead — ``has_more`` is true when more rows exist; use ``next_offset`` to fetch the next page.
5231
+ *
5232
+ * **Auth**: admin or owner role required. Reads are audit-logged (``prompt_logs.queried``); responses can include PHI from prompt history.
5233
+ */
5234
+ get: operations["list-prompt-logs"];
5235
+ put?: never;
5236
+ post?: never;
5237
+ delete?: never;
5238
+ options?: never;
5239
+ head?: never;
5240
+ patch?: never;
5241
+ trace?: never;
5242
+ };
5184
5243
  "/v1/{workspace_id}/query/{schema}/{table}": {
5185
5244
  parameters: {
5186
5245
  query?: never;
@@ -10178,7 +10237,7 @@ export interface components {
10178
10237
  /** Caller Id */
10179
10238
  caller_id?: string | null;
10180
10239
  /** 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;
10240
+ 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
10241
  /** Conference Sid */
10183
10242
  conference_sid?: string | null;
10184
10243
  config?: components["schemas"]["ConversationConfig"] | null;
@@ -10288,7 +10347,7 @@ export interface components {
10288
10347
  * Completion Reason
10289
10348
  * @enum {string}
10290
10349
  */
10291
- completion_reason: "completed" | "abandoned" | "escalated" | "transferred" | "timeout" | "error" | "voicemail" | "no_answer" | "caller_hangup" | "forwarded" | "terminal_state" | "warm_transfer_completed" | "no_inbound_audio" | "cancelled";
10350
+ 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
10351
  /**
10293
10352
  * Direction
10294
10353
  * @enum {string}
@@ -10493,7 +10552,7 @@ export interface components {
10493
10552
  * Completion Reason
10494
10553
  * @description Why the call ended
10495
10554
  */
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;
10555
+ 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
10556
  /**
10498
10557
  * Direction
10499
10558
  * @description Call direction
@@ -21282,6 +21341,89 @@ export interface components {
21282
21341
  /** Version */
21283
21342
  version: number;
21284
21343
  };
21344
+ /**
21345
+ * PromptLogEntry
21346
+ * @description One ``prompt_log`` event projection — full LLM input + output for a turn.
21347
+ *
21348
+ * Unbounded string fields (``system_prompt``, ``full_prompt``,
21349
+ * ``llm_response``) reflect the producer's payload as-is — typically
21350
+ * 1-50 KB each, occasionally larger for long histories. SDK consumers
21351
+ * should not assume a max length.
21352
+ */
21353
+ PromptLogEntry: {
21354
+ /** Action */
21355
+ action?: string | null;
21356
+ /** Call Sid */
21357
+ call_sid?: string | null;
21358
+ /**
21359
+ * Data Parse Error
21360
+ * @default false
21361
+ */
21362
+ data_parse_error?: boolean;
21363
+ /** Effective At */
21364
+ effective_at?: string | null;
21365
+ /**
21366
+ * Event Id
21367
+ * Format: uuid
21368
+ */
21369
+ event_id: string;
21370
+ /** Full Prompt */
21371
+ full_prompt?: string | null;
21372
+ /** Has Tools */
21373
+ has_tools?: boolean | null;
21374
+ /** History */
21375
+ history?: {
21376
+ [key: string]: unknown;
21377
+ }[] | null;
21378
+ /** Ingested At */
21379
+ ingested_at?: string | null;
21380
+ /** Llm Model */
21381
+ llm_model?: string | null;
21382
+ /** Llm Response */
21383
+ llm_response?: string | null;
21384
+ /** Prompt Type */
21385
+ prompt_type?: string | null;
21386
+ /** Service Id */
21387
+ service_id?: string | null;
21388
+ /** Session Id */
21389
+ session_id?: string | null;
21390
+ /** Source */
21391
+ source?: string | null;
21392
+ /** Source System */
21393
+ source_system?: string | null;
21394
+ /** State Name */
21395
+ state_name?: string | null;
21396
+ /** System Prompt */
21397
+ system_prompt?: string | null;
21398
+ /** Tool Names */
21399
+ tool_names?: string[];
21400
+ /** Turn Index */
21401
+ turn_index?: number | null;
21402
+ /**
21403
+ * Workspace Id
21404
+ * Format: uuid
21405
+ */
21406
+ workspace_id: string;
21407
+ };
21408
+ /** PromptLogListResponse */
21409
+ PromptLogListResponse: {
21410
+ /**
21411
+ * Applied Time Window Days
21412
+ * @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.
21413
+ */
21414
+ applied_time_window_days?: number | null;
21415
+ /** Count */
21416
+ count: number;
21417
+ /** Has More */
21418
+ has_more: boolean;
21419
+ /** Items */
21420
+ items: components["schemas"]["PromptLogEntry"][];
21421
+ /**
21422
+ * Next Offset
21423
+ * @description Pass back as offset to fetch the next page; null when has_more is false
21424
+ */
21425
+ next_offset?: number | null;
21426
+ };
21285
21427
  /**
21286
21428
  * ProviderType
21287
21429
  * @description Messaging provider that implements a channel.
@@ -36544,6 +36686,35 @@ export interface operations {
36544
36686
  };
36545
36687
  };
36546
36688
  };
36689
+ "list-registered-functions": {
36690
+ parameters: {
36691
+ query?: never;
36692
+ header?: never;
36693
+ path: {
36694
+ workspace_id: string;
36695
+ };
36696
+ cookie?: never;
36697
+ };
36698
+ requestBody?: never;
36699
+ responses: {
36700
+ /** @description Successful Response */
36701
+ 200: {
36702
+ headers: {
36703
+ [name: string]: unknown;
36704
+ };
36705
+ content: {
36706
+ "application/json": components["schemas"]["FunctionVersionListResponse"];
36707
+ };
36708
+ };
36709
+ /** @description Rate limited */
36710
+ 429: {
36711
+ headers: {
36712
+ [name: string]: unknown;
36713
+ };
36714
+ content?: never;
36715
+ };
36716
+ };
36717
+ };
36547
36718
  "sync-catalog": {
36548
36719
  parameters: {
36549
36720
  query?: never;
@@ -40943,6 +41114,66 @@ export interface operations {
40943
41114
  };
40944
41115
  };
40945
41116
  };
41117
+ "list-prompt-logs": {
41118
+ parameters: {
41119
+ query?: {
41120
+ /** @description Filter to a single call (Twilio SID or simulation session id) */
41121
+ call_sid?: string | null;
41122
+ /** @description Filter by prompt_type (e.g. engage_user, navigation, tool) */
41123
+ prompt_type?: string | null;
41124
+ /** @description Filter by HSM state_name at render time */
41125
+ state_name?: string | null;
41126
+ /** @description Inclusive lower bound on effective_at */
41127
+ from_ts?: string | null;
41128
+ /** @description Exclusive upper bound on effective_at */
41129
+ to_ts?: string | null;
41130
+ /** @description Max rows to return (default 20, max 200) */
41131
+ limit?: number;
41132
+ /** @description Offset for pagination (max 10000) */
41133
+ offset?: number;
41134
+ };
41135
+ header?: never;
41136
+ path: {
41137
+ workspace_id: string;
41138
+ };
41139
+ cookie?: never;
41140
+ };
41141
+ requestBody?: never;
41142
+ responses: {
41143
+ /** @description Prompt log entries (newest first) */
41144
+ 200: {
41145
+ headers: {
41146
+ [name: string]: unknown;
41147
+ };
41148
+ content: {
41149
+ "application/json": components["schemas"]["PromptLogListResponse"];
41150
+ };
41151
+ };
41152
+ /** @description Caller is not admin/owner */
41153
+ 403: {
41154
+ headers: {
41155
+ [name: string]: unknown;
41156
+ };
41157
+ content?: never;
41158
+ };
41159
+ /** @description Validation Error */
41160
+ 422: {
41161
+ headers: {
41162
+ [name: string]: unknown;
41163
+ };
41164
+ content: {
41165
+ "application/json": components["schemas"]["HTTPValidationError"];
41166
+ };
41167
+ };
41168
+ /** @description Raw world event reads disabled or warehouse unavailable */
41169
+ 503: {
41170
+ headers: {
41171
+ [name: string]: unknown;
41172
+ };
41173
+ content?: never;
41174
+ };
41175
+ };
41176
+ };
40946
41177
  query_table_v1__workspace_id__query__schema___table__get: {
40947
41178
  parameters: {
40948
41179
  query?: {