@amigo-ai/platform-sdk 0.4.6 → 0.5.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/LICENSE +1 -1
- package/README.md +2 -2
- package/api.md +1 -0
- package/dist/index.cjs +17 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +17 -0
- package/dist/index.mjs.map +2 -2
- package/dist/resources/data-sources.js +15 -0
- package/dist/resources/data-sources.js.map +1 -1
- package/dist/types/generated/api.d.ts +3232 -403
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +126 -22
- package/dist/types/resources/actions.d.ts.map +1 -1
- package/dist/types/resources/agents.d.ts +102 -16
- package/dist/types/resources/agents.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +74 -22
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/api-keys.d.ts +16 -3
- package/dist/types/resources/api-keys.d.ts.map +1 -1
- package/dist/types/resources/audit.d.ts +87 -31
- package/dist/types/resources/audit.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +42 -9
- package/dist/types/resources/billing.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +169 -65
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/compliance.d.ts +6 -6
- package/dist/types/resources/context-graphs.d.ts +814 -17
- package/dist/types/resources/context-graphs.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +83 -31
- package/dist/types/resources/data-sources.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts +49 -22
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +379 -49
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/memory.d.ts +48 -4
- package/dist/types/resources/memory.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts +189 -64
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +20 -7
- package/dist/types/resources/personas.d.ts.map +1 -1
- package/dist/types/resources/phone-numbers.d.ts +46 -8
- package/dist/types/resources/phone-numbers.d.ts.map +1 -1
- package/dist/types/resources/recordings.d.ts +4 -4
- package/dist/types/resources/review-queue.d.ts +350 -49
- package/dist/types/resources/review-queue.d.ts.map +1 -1
- package/dist/types/resources/safety.d.ts +32 -6
- package/dist/types/resources/safety.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts +242 -47
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +404 -36
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +150 -22
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +117 -21
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/triggers.d.ts +92 -64
- package/dist/types/resources/triggers.d.ts.map +1 -1
- package/dist/types/resources/webhook-destinations.d.ts +44 -20
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +14 -3
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +323 -122
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://docs.amigo.ai">Product Docs</a>
|
|
11
11
|
·
|
|
12
|
-
<a href="https://docs.amigo.ai/developer-guide">Developer Guide</a>
|
|
12
|
+
<a href="https://docs.amigo.ai/developer-guide/platform-api/platform-sdk">Developer Guide</a>
|
|
13
13
|
·
|
|
14
14
|
<a href="https://docs.amigo.ai/api-reference">API Reference</a>
|
|
15
15
|
·
|
|
@@ -39,7 +39,7 @@ The SDK is the typed client boundary between your runtime and the workspace-scop
|
|
|
39
39
|
| Need | Best entry point |
|
|
40
40
|
| ------------------------------------------- | -------------------------------------------------------- |
|
|
41
41
|
| Product architecture and deployment context | [docs.amigo.ai](https://docs.amigo.ai/) |
|
|
42
|
-
| Tutorials and integration guidance | [Developer Guide](https://docs.amigo.ai/developer-guide) |
|
|
42
|
+
| Tutorials and integration guidance | [Developer Guide](https://docs.amigo.ai/developer-guide/platform-api/platform-sdk) |
|
|
43
43
|
| Endpoint-by-endpoint REST reference | [API Reference](https://docs.amigo.ai/api-reference) |
|
|
44
44
|
| Repo-local SDK examples | [examples/README.md](./examples/README.md) |
|
|
45
45
|
| Generated package surface | [api.md](./api.md) |
|
package/api.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1561,6 +1561,23 @@ var DataSourcesResource = class extends WorkspaceScopedResource {
|
|
|
1561
1561
|
})
|
|
1562
1562
|
);
|
|
1563
1563
|
}
|
|
1564
|
+
/**
|
|
1565
|
+
* Trigger a one-off manual sync of a data source.
|
|
1566
|
+
*
|
|
1567
|
+
* Bypasses the business-hours gate and per-resource cadence counter on
|
|
1568
|
+
* connector-runner. Resolves with `{ status: "started", ... }` once the
|
|
1569
|
+
* request is queued — the poll itself runs asynchronously. Platform-api
|
|
1570
|
+
* returns 409 if the source is already mid-sync (see
|
|
1571
|
+
* `TriggerSyncConflictResponse` for the body shape), 503 if
|
|
1572
|
+
* connector-runner is unreachable.
|
|
1573
|
+
*/
|
|
1574
|
+
async triggerSync(dataSourceId2) {
|
|
1575
|
+
return extractData(
|
|
1576
|
+
await this.client.POST("/v1/{workspace_id}/data-sources/{data_source_id}/sync", {
|
|
1577
|
+
params: { path: { workspace_id: this.workspaceId, data_source_id: dataSourceId2 } }
|
|
1578
|
+
})
|
|
1579
|
+
);
|
|
1580
|
+
}
|
|
1564
1581
|
};
|
|
1565
1582
|
|
|
1566
1583
|
// src/resources/world.ts
|