@amigo-ai/platform-sdk 0.49.0 → 0.51.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 +15 -41
- package/api.md +4 -2
- package/assets/readme/platform-architecture.svg +2 -2
- package/dist/index.cjs +22 -23
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +22 -23
- package/dist/index.mjs.map +2 -2
- package/dist/resources/prompt-logs.js +2 -2
- package/dist/resources/settings.js +0 -9
- package/dist/resources/settings.js.map +1 -1
- package/dist/resources/workspace-database.js +21 -9
- package/dist/resources/workspace-database.js.map +1 -1
- package/dist/types/generated/api.d.ts +391 -1722
- 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.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/prompt-logs.d.ts +2 -2
- package/dist/types/resources/services.d.ts +5 -5
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +0 -68
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/workspace-database.d.ts +44 -86
- package/dist/types/resources/workspace-database.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1418,7 +1418,7 @@ var PromptLogsResource = class extends WorkspaceScopedResource {
|
|
|
1418
1418
|
*
|
|
1419
1419
|
* When ``params.conversation_id`` is supplied, the response surfaces
|
|
1420
1420
|
* ``resolved_call_sid`` (the call_sid the lookup mapped to) and
|
|
1421
|
-
* ``resolved_conversation_kind`` (``"call"`` for voice/sim
|
|
1421
|
+
* ``resolved_conversation_kind`` (``"call"`` for voice/sim,
|
|
1422
1422
|
* ``"conversation"`` for text/sms/whatsapp/email) so you can drill
|
|
1423
1423
|
* into per-call surfaces afterward without re-querying
|
|
1424
1424
|
* ``world.entities``.
|
|
@@ -3183,19 +3183,6 @@ var SettingsResource = class extends WorkspaceScopedResource {
|
|
|
3183
3183
|
})
|
|
3184
3184
|
)
|
|
3185
3185
|
};
|
|
3186
|
-
scribe = {
|
|
3187
|
-
get: async () => extractData(
|
|
3188
|
-
await this.client.GET("/v1/{workspace_id}/settings/scribe", {
|
|
3189
|
-
params: { path: { workspace_id: this.workspaceId } }
|
|
3190
|
-
})
|
|
3191
|
-
),
|
|
3192
|
-
update: async (body) => extractData(
|
|
3193
|
-
await this.client.PUT("/v1/{workspace_id}/settings/scribe", {
|
|
3194
|
-
params: { path: { workspace_id: this.workspaceId } },
|
|
3195
|
-
body
|
|
3196
|
-
})
|
|
3197
|
-
)
|
|
3198
|
-
};
|
|
3199
3186
|
metrics = {
|
|
3200
3187
|
get: async () => extractData(
|
|
3201
3188
|
await this.client.GET("/v1/{workspace_id}/settings/metrics", {
|
|
@@ -5572,31 +5559,43 @@ var SessionsResource = class extends WorkspaceScopedResource {
|
|
|
5572
5559
|
|
|
5573
5560
|
// src/resources/workspace-database.ts
|
|
5574
5561
|
var WorkspaceDatabaseResource = class extends WorkspaceScopedResource {
|
|
5562
|
+
get(path, init) {
|
|
5563
|
+
return this.client.GET(path, init);
|
|
5564
|
+
}
|
|
5565
|
+
post(path, init) {
|
|
5566
|
+
return this.client.POST(path, init);
|
|
5567
|
+
}
|
|
5568
|
+
patch(path, init) {
|
|
5569
|
+
return this.client.PATCH(path, init);
|
|
5570
|
+
}
|
|
5571
|
+
delete(path, init) {
|
|
5572
|
+
return this.client.DELETE(path, init);
|
|
5573
|
+
}
|
|
5575
5574
|
// -- Fork lifecycle -------------------------------------------------------
|
|
5576
5575
|
async getFork() {
|
|
5577
5576
|
return extractData(
|
|
5578
|
-
await this.
|
|
5577
|
+
await this.get("/v1/{workspace_id}/fork", {
|
|
5579
5578
|
params: { path: { workspace_id: this.workspaceId } }
|
|
5580
5579
|
})
|
|
5581
5580
|
);
|
|
5582
5581
|
}
|
|
5583
5582
|
async createFork(body) {
|
|
5584
5583
|
return extractData(
|
|
5585
|
-
await this.
|
|
5584
|
+
await this.post("/v1/{workspace_id}/fork", {
|
|
5586
5585
|
params: { path: { workspace_id: this.workspaceId } },
|
|
5587
5586
|
body
|
|
5588
5587
|
})
|
|
5589
5588
|
);
|
|
5590
5589
|
}
|
|
5591
5590
|
async deleteFork() {
|
|
5592
|
-
await this.
|
|
5591
|
+
await this.delete("/v1/{workspace_id}/fork", {
|
|
5593
5592
|
params: { path: { workspace_id: this.workspaceId } }
|
|
5594
5593
|
});
|
|
5595
5594
|
}
|
|
5596
5595
|
// -- Query execution ------------------------------------------------------
|
|
5597
5596
|
async executeQuery(body) {
|
|
5598
5597
|
return extractData(
|
|
5599
|
-
await this.
|
|
5598
|
+
await this.post("/v1/{workspace_id}/lakebase/query", {
|
|
5600
5599
|
params: { path: { workspace_id: this.workspaceId } },
|
|
5601
5600
|
body
|
|
5602
5601
|
})
|
|
@@ -5605,7 +5604,7 @@ var WorkspaceDatabaseResource = class extends WorkspaceScopedResource {
|
|
|
5605
5604
|
// -- Query tool CRUD ------------------------------------------------------
|
|
5606
5605
|
async listQueryTools(params) {
|
|
5607
5606
|
return extractData(
|
|
5608
|
-
await this.
|
|
5607
|
+
await this.get("/v1/{workspace_id}/query-tools", {
|
|
5609
5608
|
params: { path: { workspace_id: this.workspaceId }, query: params }
|
|
5610
5609
|
})
|
|
5611
5610
|
);
|
|
@@ -5615,7 +5614,7 @@ var WorkspaceDatabaseResource = class extends WorkspaceScopedResource {
|
|
|
5615
5614
|
}
|
|
5616
5615
|
async createQueryTool(body) {
|
|
5617
5616
|
return extractData(
|
|
5618
|
-
await this.
|
|
5617
|
+
await this.post("/v1/{workspace_id}/query-tools", {
|
|
5619
5618
|
params: { path: { workspace_id: this.workspaceId } },
|
|
5620
5619
|
body
|
|
5621
5620
|
})
|
|
@@ -5623,20 +5622,20 @@ var WorkspaceDatabaseResource = class extends WorkspaceScopedResource {
|
|
|
5623
5622
|
}
|
|
5624
5623
|
async updateQueryTool(toolId, body) {
|
|
5625
5624
|
return extractData(
|
|
5626
|
-
await this.
|
|
5625
|
+
await this.patch("/v1/{workspace_id}/query-tools/{tool_id}", {
|
|
5627
5626
|
params: { path: { workspace_id: this.workspaceId, tool_id: toolId } },
|
|
5628
5627
|
body
|
|
5629
5628
|
})
|
|
5630
5629
|
);
|
|
5631
5630
|
}
|
|
5632
5631
|
async deleteQueryTool(toolId) {
|
|
5633
|
-
await this.
|
|
5632
|
+
await this.delete("/v1/{workspace_id}/query-tools/{tool_id}", {
|
|
5634
5633
|
params: { path: { workspace_id: this.workspaceId, tool_id: toolId } }
|
|
5635
5634
|
});
|
|
5636
5635
|
}
|
|
5637
5636
|
async testQueryTool(toolId, body) {
|
|
5638
5637
|
return extractData(
|
|
5639
|
-
await this.
|
|
5638
|
+
await this.post("/v1/{workspace_id}/query-tools/{tool_id}/test", {
|
|
5640
5639
|
params: { path: { workspace_id: this.workspaceId, tool_id: toolId } },
|
|
5641
5640
|
body
|
|
5642
5641
|
})
|