@amigo-ai/platform-sdk 0.101.0 → 0.102.1
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/README.md +0 -14
- package/api.md +1 -3
- package/dist/index.cjs +10 -15
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -15
- package/dist/index.mjs.map +2 -2
- package/dist/resources/agent-runs.js +10 -0
- package/dist/resources/agent-runs.js.map +1 -1
- package/dist/resources/calls.js +0 -6
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/conversations.js +0 -5
- package/dist/resources/conversations.js.map +1 -1
- package/dist/types/generated/api.d.ts +60 -327
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +3 -1
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/agent-runs.d.ts +8 -0
- package/dist/types/resources/agent-runs.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +0 -4
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/conversations.d.ts +1 -5
- package/dist/types/resources/conversations.d.ts.map +1 -1
- package/dist/types/resources/external-integrations.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/integrations.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.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -853,20 +853,6 @@ await client.triggers.resume(trigger.id)
|
|
|
853
853
|
const runs = await client.triggers.listRuns(trigger.id)
|
|
854
854
|
```
|
|
855
855
|
|
|
856
|
-
### Review Queue
|
|
857
|
-
|
|
858
|
-
```typescript
|
|
859
|
-
const stats = await client.reviewQueue.getStats()
|
|
860
|
-
const dashboard = await client.reviewQueue.getDashboard()
|
|
861
|
-
const { items } = await client.reviewQueue.list({ status: 'pending' })
|
|
862
|
-
|
|
863
|
-
// Claim, approve, reject, correct
|
|
864
|
-
await client.reviewQueue.claim('item-id')
|
|
865
|
-
await client.reviewQueue.approve('item-id', { notes: 'Verified correct' })
|
|
866
|
-
await client.reviewQueue.reject('item-id', { reason: 'Data mismatch' })
|
|
867
|
-
await client.reviewQueue.batchApprove({ item_ids: ['id1', 'id2'] })
|
|
868
|
-
```
|
|
869
|
-
|
|
870
856
|
### Compliance
|
|
871
857
|
|
|
872
858
|
```typescript
|
package/api.md
CHANGED
|
@@ -52,7 +52,7 @@ Notes:
|
|
|
52
52
|
- Webhooks: `verifyWebhookSignature`, `parseWebhookEvent`, `WebhookVerificationError`
|
|
53
53
|
- Pagination and response helpers: `paginate`, `buildLastResponse`, `extractRequestId`
|
|
54
54
|
- Conversation helpers: `sessionConnectAuthProtocols`, `textStreamAuthProtocols`
|
|
55
|
-
- Conversation types: `ChannelKind`, `ConversationDetail`, `
|
|
55
|
+
- Conversation types: `ChannelKind`, `ConversationDetail`, `ConversationTurn`, `ConversationTurnAvailableAction`, `ConversationTurnStateTransition`, `CreateConversationRequest`, `SessionConnectUrlParams`, `SwitchChannelRequest`, `TextStreamAuthProtocols` (WebSocket constructor subprotocol tuple), `TextStreamUrlParams`, `TurnDoneEvent`, `TurnErrorEvent`, `TurnMessageEvent`, `TurnRequest`, `TurnResponse`, `TurnConversationSnapshot`, `TurnStreamEvent`, `TurnThinkingEvent`, `TurnTokenEvent`, `TurnToolCallCompletedEvent`, `TurnToolCallStartedEvent`
|
|
56
56
|
- Voice provider constants: `STT_PROVIDERS`, `TTS_PROVIDERS`, `VOICE_SESSION_PROVIDERS`
|
|
57
57
|
- Voice provider types: `AgentVoiceConfig`, `ServiceVoiceConfigInput`, `ServiceVoiceConfigOutput`, `SttProvider`, `TtsProvider`, `VoiceSessionProvider`, `VoiceSettingsRequest`, `VoiceSettingsResponse`
|
|
58
58
|
- Response and hook types: `PaginatedList`, `ListParams`, `LastResponseInfo`, `ResponseMetadata`, `WithResponseMetadata`, `AmigoResponse`, `RetryOptions`, `RateLimitInfo`, `ClientHooks`, `RequestHookContext`, `ResponseHookContext`, `ErrorHookContext`
|
|
@@ -268,7 +268,6 @@ All workspace-scoped resources also expose `withOptions(options)`.
|
|
|
268
268
|
- `get`
|
|
269
269
|
- `getTimeline`
|
|
270
270
|
- `getIntelligence`
|
|
271
|
-
- `getActiveIntelligence`
|
|
272
271
|
- `getBenchmarks`
|
|
273
272
|
- `getPhoneVolume`
|
|
274
273
|
- `getTraceAnalysis`
|
|
@@ -278,7 +277,6 @@ All workspace-scoped resources also expose `withOptions(options)`.
|
|
|
278
277
|
|
|
279
278
|
### `conversations`
|
|
280
279
|
|
|
281
|
-
- `list`
|
|
282
280
|
- `create`
|
|
283
281
|
- `get`
|
|
284
282
|
- `close`
|
package/dist/index.cjs
CHANGED
|
@@ -30,6 +30,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
+
AGENT_RUN_FRAMEWORKS: () => AGENT_RUN_FRAMEWORKS,
|
|
34
|
+
AGENT_RUN_FRAMEWORK_LABELS: () => AGENT_RUN_FRAMEWORK_LABELS,
|
|
33
35
|
AmigoClient: () => AmigoClient,
|
|
34
36
|
AmigoError: () => AmigoError,
|
|
35
37
|
AuthenticationError: () => AuthenticationError,
|
|
@@ -1354,6 +1356,14 @@ var AgentsResource = class extends WorkspaceScopedResource {
|
|
|
1354
1356
|
};
|
|
1355
1357
|
|
|
1356
1358
|
// src/resources/agent-runs.ts
|
|
1359
|
+
var AGENT_RUN_FRAMEWORKS = {
|
|
1360
|
+
OPENAI_AGENTS: "openai-agents",
|
|
1361
|
+
CLAUDE_AGENT_SDK: "claude-agent-sdk"
|
|
1362
|
+
};
|
|
1363
|
+
var AGENT_RUN_FRAMEWORK_LABELS = {
|
|
1364
|
+
[AGENT_RUN_FRAMEWORKS.OPENAI_AGENTS]: "OpenAI Agents SDK",
|
|
1365
|
+
[AGENT_RUN_FRAMEWORKS.CLAUDE_AGENT_SDK]: "Anthropic Claude Agent SDK"
|
|
1366
|
+
};
|
|
1357
1367
|
var AgentRunsResource = class extends WorkspaceScopedResource {
|
|
1358
1368
|
/**
|
|
1359
1369
|
* Launch a framework agent run — a platform run (`service_id` + `framework`)
|
|
@@ -2411,14 +2421,6 @@ var CallsResource = class extends WorkspaceScopedResource {
|
|
|
2411
2421
|
})
|
|
2412
2422
|
);
|
|
2413
2423
|
}
|
|
2414
|
-
/** Get active intelligence across all in-progress calls */
|
|
2415
|
-
async getActiveIntelligence() {
|
|
2416
|
-
return extractData(
|
|
2417
|
-
await this.client.GET("/v1/{workspace_id}/calls/active/intelligence", {
|
|
2418
|
-
params: { path: { workspace_id: this.workspaceId } }
|
|
2419
|
-
})
|
|
2420
|
-
);
|
|
2421
|
-
}
|
|
2422
2424
|
/** Get performance benchmarks for a time period */
|
|
2423
2425
|
async getBenchmarks(params) {
|
|
2424
2426
|
return extractData(
|
|
@@ -2483,13 +2485,6 @@ var ConversationsResource = class extends WorkspaceScopedResource {
|
|
|
2483
2485
|
super(client, workspaceId2);
|
|
2484
2486
|
this.agentBaseUrl = agentBaseUrl;
|
|
2485
2487
|
}
|
|
2486
|
-
async list(params) {
|
|
2487
|
-
return extractData(
|
|
2488
|
-
await this.client.GET("/v1/{workspace_id}/conversations", {
|
|
2489
|
-
params: { path: { workspace_id: this.workspaceId }, query: params }
|
|
2490
|
-
})
|
|
2491
|
-
);
|
|
2492
|
-
}
|
|
2493
2488
|
async create(request) {
|
|
2494
2489
|
return extractData(
|
|
2495
2490
|
await this.client.POST("/v1/{workspace_id}/conversations", {
|