@amigo-ai/platform-sdk 0.101.0 → 0.102.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/README.md +0 -14
- package/api.md +1 -3
- package/dist/index.cjs +0 -15
- package/dist/index.cjs.map +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -15
- package/dist/index.mjs.map +2 -2
- 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 +1 -1
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.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
|
@@ -2411,14 +2411,6 @@ var CallsResource = class extends WorkspaceScopedResource {
|
|
|
2411
2411
|
})
|
|
2412
2412
|
);
|
|
2413
2413
|
}
|
|
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
2414
|
/** Get performance benchmarks for a time period */
|
|
2423
2415
|
async getBenchmarks(params) {
|
|
2424
2416
|
return extractData(
|
|
@@ -2483,13 +2475,6 @@ var ConversationsResource = class extends WorkspaceScopedResource {
|
|
|
2483
2475
|
super(client, workspaceId2);
|
|
2484
2476
|
this.agentBaseUrl = agentBaseUrl;
|
|
2485
2477
|
}
|
|
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
2478
|
async create(request) {
|
|
2494
2479
|
return extractData(
|
|
2495
2480
|
await this.client.POST("/v1/{workspace_id}/conversations", {
|