@amigo-ai/platform-sdk 0.23.0 → 0.25.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 +8 -2
- package/dist/core/errors.js +155 -9
- package/dist/core/errors.js.map +1 -1
- package/dist/core/reconnecting-websocket.js +371 -0
- package/dist/core/reconnecting-websocket.js.map +1 -0
- package/dist/index.cjs +1021 -17
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1021 -17
- package/dist/index.mjs.map +4 -4
- package/dist/resources/events.js +588 -0
- package/dist/resources/events.js.map +1 -0
- package/dist/resources/integrations.js +25 -0
- package/dist/resources/integrations.js.map +1 -1
- package/dist/resources/observers.js +238 -0
- package/dist/resources/observers.js.map +1 -0
- package/dist/resources/workspaces.js +4 -8
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/types/core/errors.d.ts +93 -1
- package/dist/types/core/errors.d.ts.map +1 -1
- package/dist/types/core/reconnecting-websocket.d.ts +156 -0
- package/dist/types/core/reconnecting-websocket.d.ts.map +1 -0
- package/dist/types/generated/api.d.ts +628 -104
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +45 -2
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +45 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/events.d.ts +193 -0
- package/dist/types/resources/events.d.ts.map +1 -0
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +33 -0
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/observers.d.ts +148 -0
- package/dist/types/resources/observers.d.ts.map +1 -0
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +4 -15
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voice-call observer real-time stream.
|
|
3
|
+
*
|
|
4
|
+
* The voice agent ("agent-engine") exposes a per-call WebSocket that emits
|
|
5
|
+
* the live timeline of a call: transcripts (user + agent), emotion / empathy
|
|
6
|
+
* frames, latency markers, tool invocations, navigation timing, and lifecycle
|
|
7
|
+
* events (start / end / participant join / leave).
|
|
8
|
+
*
|
|
9
|
+
* This resource is the canonical SDK consumer for that stream. Before it
|
|
10
|
+
* existed, every developer-console-style app re-implemented the loop by hand
|
|
11
|
+
* — different idle thresholds, missing close-code handling for the long list
|
|
12
|
+
* of voice-specific 4xxx codes (4001 unauthorized, 4003 forbidden, 4029 rate
|
|
13
|
+
* limit, 4100 token expired), and inconsistent reconnect backoff.
|
|
14
|
+
*
|
|
15
|
+
* The implementation composes {@link createReconnectingWebSocket} with a
|
|
16
|
+
* lightweight ``ObserverSSEEvent`` parser. Frames that don't deserialize or
|
|
17
|
+
* lack a recognized ``type`` discriminator are dropped — the stream remains
|
|
18
|
+
* forward-compatible with new event types added on the server before the SDK
|
|
19
|
+
* spec snapshot picks them up.
|
|
20
|
+
*
|
|
21
|
+
* @see ConversationsResource.subscribeTextStream for the analogous text-stream
|
|
22
|
+
* helper.
|
|
23
|
+
*/
|
|
24
|
+
import { type ReconnectingWebSocketError, type ReconnectingWebSocketHandle, type ReconnectingWebSocketState, type WebSocketFactory } from '../core/reconnecting-websocket.js';
|
|
25
|
+
import { type PlatformFetch } from '../core/openapi-client.js';
|
|
26
|
+
import type { components } from '../generated/api.js';
|
|
27
|
+
import { WorkspaceScopedResource } from './base.js';
|
|
28
|
+
/**
|
|
29
|
+
* Discriminated union of every observer stream event variant. Members carry
|
|
30
|
+
* their own ``type`` literal — narrow with ``switch (event.type)``.
|
|
31
|
+
*/
|
|
32
|
+
export type ObserverSSEEvent = components['schemas']['ObserverSSEEvent'];
|
|
33
|
+
/** Discriminator literal for {@link ObserverSSEEvent} members. */
|
|
34
|
+
export type ObserverSSEEventType = ObserverSSEEvent['type'];
|
|
35
|
+
/** Auth subprotocol pair for the observer WebSocket. */
|
|
36
|
+
export type ObserverAuthProtocols = readonly ['auth', string];
|
|
37
|
+
/** Options for {@link ObserversResource.subscribe}. */
|
|
38
|
+
export interface ObserverSubscribeOptions {
|
|
39
|
+
/**
|
|
40
|
+
* The Twilio Call SID (``CA…``) identifying the call to observe. The
|
|
41
|
+
* server returns 4004 if the call is unknown — most often a race in test
|
|
42
|
+
* suites where the call hasn't been registered yet.
|
|
43
|
+
*/
|
|
44
|
+
callSid: string;
|
|
45
|
+
/**
|
|
46
|
+
* Bearer token for ``Sec-WebSocket-Protocol: auth, <token>``. If the
|
|
47
|
+
* token contains characters that aren't valid in a WebSocket subprotocol
|
|
48
|
+
* the helper throws ``ConfigurationError`` synchronously — the wire
|
|
49
|
+
* protocol cannot carry it and a runtime failure mid-call would be much
|
|
50
|
+
* harder to diagnose.
|
|
51
|
+
*/
|
|
52
|
+
token: string;
|
|
53
|
+
/**
|
|
54
|
+
* Full observer URL override. Defaults to
|
|
55
|
+
* ``${agentBaseUrl}/v1/{workspace_id}/observers/{call_sid}/ws`` with
|
|
56
|
+
* ``http`` mapped to ``ws`` and ``https`` mapped to ``wss``. The override
|
|
57
|
+
* must be an absolute ws/wss URL with no query string or fragment — SDK-
|
|
58
|
+
* managed query params are appended by the helper.
|
|
59
|
+
*/
|
|
60
|
+
observerUrl?: string;
|
|
61
|
+
/** Cancellation signal — aborting closes the connection. */
|
|
62
|
+
signal?: AbortSignal;
|
|
63
|
+
/** Fired once per typed event delivered by the server. */
|
|
64
|
+
onEvent: (event: ObserverSSEEvent) => void;
|
|
65
|
+
/** Fired on each lifecycle transition. */
|
|
66
|
+
onStateChange?: (state: ReconnectingWebSocketState) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Fired just before each reconnect attempt with the planned delay and
|
|
69
|
+
* the close code that triggered the reconnect (or ``undefined`` for the
|
|
70
|
+
* first attempt after a watchdog-driven close).
|
|
71
|
+
*/
|
|
72
|
+
onReconnect?: (info: {
|
|
73
|
+
attempt: number;
|
|
74
|
+
delayMs: number;
|
|
75
|
+
closeCode: number | undefined;
|
|
76
|
+
}) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Fired exactly once on terminal failure (auth rejected, reconnect
|
|
79
|
+
* budget exhausted, abort, or one of the terminal close codes 4001 /
|
|
80
|
+
* 4003 / 4100 / 4403). Will not fire on ordinary disconnect-and-reconnect.
|
|
81
|
+
*/
|
|
82
|
+
onError?: (error: ReconnectingWebSocketError) => void;
|
|
83
|
+
/** Idle watchdog (ms). Defaults to 60s for voice-call streams. */
|
|
84
|
+
idleTimeoutMs?: number;
|
|
85
|
+
/** Initial reconnect backoff (ms). Defaults to 1000. */
|
|
86
|
+
initialDelayMs?: number;
|
|
87
|
+
/** Cap on reconnect backoff (ms). Defaults to 30_000. */
|
|
88
|
+
maxDelayMs?: number;
|
|
89
|
+
/** Reconnect budget. Defaults to 10. */
|
|
90
|
+
maxReconnects?: number;
|
|
91
|
+
/** Custom WebSocket factory — primarily for tests. */
|
|
92
|
+
webSocketFactory?: WebSocketFactory;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Build browser WebSocket subprotocols for the observer stream.
|
|
96
|
+
*
|
|
97
|
+
* Identical wire format to the text-stream subprotocol pair —
|
|
98
|
+
* ``Sec-WebSocket-Protocol: auth, <token>`` — but exposed as its own
|
|
99
|
+
* function so consumers do not have to reason about cross-resource sharing
|
|
100
|
+
* and so the SDK can evolve the auth scheme independently per stream.
|
|
101
|
+
*
|
|
102
|
+
* @security The returned tuple contains the raw bearer token. Do not log,
|
|
103
|
+
* persist, serialize, or otherwise expose this value.
|
|
104
|
+
*/
|
|
105
|
+
export declare function observerAuthProtocols(token: string): ObserverAuthProtocols;
|
|
106
|
+
/**
|
|
107
|
+
* Voice-call observer resource.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* const handle = client.observers.subscribe({
|
|
112
|
+
* callSid: 'CAxxx',
|
|
113
|
+
* token: bearerToken,
|
|
114
|
+
* onEvent: (event) => {
|
|
115
|
+
* switch (event.type) {
|
|
116
|
+
* case 'agent_transcript_delta':
|
|
117
|
+
* renderAgentDelta(event.text)
|
|
118
|
+
* break
|
|
119
|
+
* case 'user_transcript':
|
|
120
|
+
* renderUserTurn(event.text)
|
|
121
|
+
* break
|
|
122
|
+
* case 'session_end':
|
|
123
|
+
* showSummary(event)
|
|
124
|
+
* break
|
|
125
|
+
* }
|
|
126
|
+
* },
|
|
127
|
+
* onError: (err) => console.error('observer terminal:', err.reason),
|
|
128
|
+
* })
|
|
129
|
+
*
|
|
130
|
+
* // Later, to stop:
|
|
131
|
+
* handle.close()
|
|
132
|
+
* await handle.done
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
export declare class ObserversResource extends WorkspaceScopedResource {
|
|
136
|
+
private readonly agentBaseUrl;
|
|
137
|
+
constructor(client: PlatformFetch, workspaceId: string, agentBaseUrl?: string);
|
|
138
|
+
/**
|
|
139
|
+
* Subscribe to the live observer stream for a call.
|
|
140
|
+
*
|
|
141
|
+
* Returns a {@link ReconnectingWebSocketHandle} that resolves
|
|
142
|
+
* ``handle.done`` when the stream terminates (consumer-aborted, terminal
|
|
143
|
+
* close code, or reconnect budget exhausted). Errors are surfaced through
|
|
144
|
+
* ``onError``; the promise never rejects.
|
|
145
|
+
*/
|
|
146
|
+
subscribe(options: ObserverSubscribeOptions): ReconnectingWebSocketHandle;
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=observers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observers.d.ts","sourceRoot":"","sources":["../../../src/resources/observers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,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Q,CAAC,YAAY;;;;;;;;;;;;;;uBAOE,UAAU,CAAC,SAAS,CAAC,CAAC,4BAA4B,CAAC;;;;;;;;;;;;;MAOzE;IAED,QAAQ,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAOK,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOtE;CACF"}
|
|
@@ -6,23 +6,12 @@ import type { ListParams } from '../core/utils.js';
|
|
|
6
6
|
* Manage Amigo Platform workspaces.
|
|
7
7
|
* Workspaces are the top-level tenancy boundary for all resources.
|
|
8
8
|
*
|
|
9
|
-
* Note: list
|
|
10
|
-
*
|
|
9
|
+
* Note: list operates at account level (/v1/workspaces); creation goes
|
|
10
|
+
* through the authenticated self-service flow. The unauthenticated
|
|
11
|
+
* ``POST /v1/workspaces`` was removed in platform-api PR #2378 (orphan-
|
|
12
|
+
* maker). Get/update/archive/provision operate on a specific workspace.
|
|
11
13
|
*/
|
|
12
14
|
export declare class WorkspacesResource extends WorkspaceScopedResource {
|
|
13
|
-
/** Create a new workspace (unauthenticated — no owner membership created) */
|
|
14
|
-
create(body: components['schemas']['CreateWorkspaceRequest']): Promise<{
|
|
15
|
-
backend_org_id: string | null;
|
|
16
|
-
connector_type: string | null;
|
|
17
|
-
created_at: string;
|
|
18
|
-
environment: string;
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
provisioned_at: string | null;
|
|
22
|
-
region: string;
|
|
23
|
-
slug: string;
|
|
24
|
-
updated_at: string;
|
|
25
|
-
} & import("../index.js").ResponseMetadata>;
|
|
26
15
|
/** Create a workspace for the authenticated user and attach owner access */
|
|
27
16
|
createSelfService(body: components['schemas']['CreateWorkspaceRequest']): Promise<{
|
|
28
17
|
backend_org_id: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;;;;;;GAQG;AACH,qBAAa,kBAAmB,SAAQ,uBAAuB;IAC7D,4EAA4E;IACtE,iBAAiB,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC;;;;;;;;;;;;IAQ7E,wDAAwD;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;IAQ9B,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;IAIlC,mCAAmC;IAC7B,GAAG,CAAC,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM;;;;;;;;;;;;IAQnC,gCAAgC;IAC1B,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM;;;;;;;;;;;;IAS7F,wCAAwC;IAClC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC,EAAE,EAAE,CAAC,EAAE,WAAW,GAAG,MA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