@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.
Files changed (64) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -2
  3. package/api.md +1 -0
  4. package/dist/index.cjs +17 -0
  5. package/dist/index.cjs.map +2 -2
  6. package/dist/index.mjs +17 -0
  7. package/dist/index.mjs.map +2 -2
  8. package/dist/resources/data-sources.js +15 -0
  9. package/dist/resources/data-sources.js.map +1 -1
  10. package/dist/types/generated/api.d.ts +3232 -403
  11. package/dist/types/generated/api.d.ts.map +1 -1
  12. package/dist/types/resources/actions.d.ts +126 -22
  13. package/dist/types/resources/actions.d.ts.map +1 -1
  14. package/dist/types/resources/agents.d.ts +102 -16
  15. package/dist/types/resources/agents.d.ts.map +1 -1
  16. package/dist/types/resources/analytics.d.ts +74 -22
  17. package/dist/types/resources/analytics.d.ts.map +1 -1
  18. package/dist/types/resources/api-keys.d.ts +16 -3
  19. package/dist/types/resources/api-keys.d.ts.map +1 -1
  20. package/dist/types/resources/audit.d.ts +87 -31
  21. package/dist/types/resources/audit.d.ts.map +1 -1
  22. package/dist/types/resources/billing.d.ts +42 -9
  23. package/dist/types/resources/billing.d.ts.map +1 -1
  24. package/dist/types/resources/calls.d.ts +169 -65
  25. package/dist/types/resources/calls.d.ts.map +1 -1
  26. package/dist/types/resources/compliance.d.ts +6 -6
  27. package/dist/types/resources/context-graphs.d.ts +814 -17
  28. package/dist/types/resources/context-graphs.d.ts.map +1 -1
  29. package/dist/types/resources/data-sources.d.ts +83 -31
  30. package/dist/types/resources/data-sources.d.ts.map +1 -1
  31. package/dist/types/resources/functions.d.ts +49 -22
  32. package/dist/types/resources/functions.d.ts.map +1 -1
  33. package/dist/types/resources/integrations.d.ts +379 -49
  34. package/dist/types/resources/integrations.d.ts.map +1 -1
  35. package/dist/types/resources/memory.d.ts +48 -4
  36. package/dist/types/resources/memory.d.ts.map +1 -1
  37. package/dist/types/resources/operators.d.ts +189 -64
  38. package/dist/types/resources/operators.d.ts.map +1 -1
  39. package/dist/types/resources/personas.d.ts +20 -7
  40. package/dist/types/resources/personas.d.ts.map +1 -1
  41. package/dist/types/resources/phone-numbers.d.ts +46 -8
  42. package/dist/types/resources/phone-numbers.d.ts.map +1 -1
  43. package/dist/types/resources/recordings.d.ts +4 -4
  44. package/dist/types/resources/review-queue.d.ts +350 -49
  45. package/dist/types/resources/review-queue.d.ts.map +1 -1
  46. package/dist/types/resources/safety.d.ts +32 -6
  47. package/dist/types/resources/safety.d.ts.map +1 -1
  48. package/dist/types/resources/services.d.ts +242 -47
  49. package/dist/types/resources/services.d.ts.map +1 -1
  50. package/dist/types/resources/settings.d.ts +404 -36
  51. package/dist/types/resources/settings.d.ts.map +1 -1
  52. package/dist/types/resources/simulations.d.ts +150 -22
  53. package/dist/types/resources/simulations.d.ts.map +1 -1
  54. package/dist/types/resources/skills.d.ts +117 -21
  55. package/dist/types/resources/skills.d.ts.map +1 -1
  56. package/dist/types/resources/triggers.d.ts +92 -64
  57. package/dist/types/resources/triggers.d.ts.map +1 -1
  58. package/dist/types/resources/webhook-destinations.d.ts +44 -20
  59. package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
  60. package/dist/types/resources/workspaces.d.ts +14 -3
  61. package/dist/types/resources/workspaces.d.ts.map +1 -1
  62. package/dist/types/resources/world.d.ts +323 -122
  63. package/dist/types/resources/world.d.ts.map +1 -1
  64. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Amigo AI
3
+ Copyright (c) 2026 Amigo Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
@@ -180,6 +180,7 @@ All workspace-scoped resources also expose `withOptions(options)`.
180
180
  - `delete`
181
181
  - `getStatus`
182
182
  - `getSyncHistory`
183
+ - `triggerSync`
183
184
 
184
185
  ### `world`
185
186
 
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