@amigo-ai/platform-sdk 0.5.2 → 0.5.3

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 (52) hide show
  1. package/README.md +81 -7
  2. package/api.md +3 -0
  3. package/dist/index.cjs +42 -10
  4. package/dist/index.cjs.map +2 -2
  5. package/dist/index.mjs +42 -10
  6. package/dist/index.mjs.map +2 -2
  7. package/dist/resources/base.js +7 -2
  8. package/dist/resources/base.js.map +1 -1
  9. package/dist/resources/operators.js.map +1 -1
  10. package/dist/resources/personas.js.map +1 -1
  11. package/dist/resources/webhook-destinations.js.map +1 -1
  12. package/dist/resources/workspaces.js +22 -0
  13. package/dist/resources/workspaces.js.map +1 -1
  14. package/dist/resources/world.js.map +1 -1
  15. package/dist/types/generated/api.d.ts +13373 -13213
  16. package/dist/types/generated/api.d.ts.map +1 -1
  17. package/dist/types/resources/actions.d.ts +166 -166
  18. package/dist/types/resources/agents.d.ts +88 -88
  19. package/dist/types/resources/analytics.d.ts +39 -39
  20. package/dist/types/resources/api-keys.d.ts +29 -29
  21. package/dist/types/resources/audit.d.ts +73 -73
  22. package/dist/types/resources/base.d.ts.map +1 -1
  23. package/dist/types/resources/billing.d.ts +36 -36
  24. package/dist/types/resources/calls.d.ts +106 -106
  25. package/dist/types/resources/compliance.d.ts +17 -17
  26. package/dist/types/resources/context-graphs.d.ts +643 -643
  27. package/dist/types/resources/data-sources.d.ts +81 -81
  28. package/dist/types/resources/functions.d.ts +22 -22
  29. package/dist/types/resources/functions.d.ts.map +1 -1
  30. package/dist/types/resources/integrations.d.ts +258 -258
  31. package/dist/types/resources/memory.d.ts +35 -35
  32. package/dist/types/resources/operators.d.ts +147 -147
  33. package/dist/types/resources/operators.d.ts.map +1 -1
  34. package/dist/types/resources/personas.d.ts +37 -37
  35. package/dist/types/resources/personas.d.ts.map +1 -1
  36. package/dist/types/resources/phone-numbers.d.ts +62 -62
  37. package/dist/types/resources/recordings.d.ts +9 -9
  38. package/dist/types/resources/review-queue.d.ts +331 -331
  39. package/dist/types/resources/safety.d.ts +33 -33
  40. package/dist/types/resources/services.d.ts +142 -142
  41. package/dist/types/resources/settings.d.ts +254 -254
  42. package/dist/types/resources/settings.d.ts.map +1 -1
  43. package/dist/types/resources/simulations.d.ts +73 -73
  44. package/dist/types/resources/skills.d.ts +163 -163
  45. package/dist/types/resources/triggers.d.ts +74 -74
  46. package/dist/types/resources/webhook-destinations.d.ts +57 -57
  47. package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
  48. package/dist/types/resources/workspaces.d.ts +69 -35
  49. package/dist/types/resources/workspaces.d.ts.map +1 -1
  50. package/dist/types/resources/world.d.ts +216 -216
  51. package/dist/types/resources/world.d.ts.map +1 -1
  52. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -664,7 +664,10 @@ var WorkspaceScopedResource = class {
664
664
  if (!page.has_more || page.continuation_token === null || page.continuation_token === void 0) {
665
665
  break;
666
666
  }
667
- nextParams = { ...nextParams, continuation_token: page.continuation_token };
667
+ nextParams = {
668
+ ...nextParams,
669
+ continuation_token: page.continuation_token
670
+ };
668
671
  }
669
672
  }
670
673
  async *iterateOffsetPaginatedList(fetchPage, selectItems, params) {
@@ -810,6 +813,34 @@ var WorkspacesResource = class extends WorkspaceScopedResource {
810
813
  })
811
814
  );
812
815
  }
816
+ /** Provision a workspace (seed integrations, mark as provisioned) */
817
+ async provision(id) {
818
+ return extractData(
819
+ await this.client.POST("/v1/workspaces/{workspace_id}/provision", {
820
+ params: { path: { workspace_id: id ?? this.workspaceId } }
821
+ })
822
+ );
823
+ }
824
+ /** Pre-check environment conversion warnings */
825
+ async checkEnvironment(target, id) {
826
+ return extractData(
827
+ await this.client.GET("/v1/workspaces/{workspace_id}/environment-check", {
828
+ params: {
829
+ path: { workspace_id: id ?? this.workspaceId },
830
+ query: target ? { target } : void 0
831
+ }
832
+ })
833
+ );
834
+ }
835
+ /** Convert workspace between staging and production */
836
+ async convertEnvironment(body, id) {
837
+ return extractData(
838
+ await this.client.POST("/v1/workspaces/{workspace_id}/convert-environment", {
839
+ params: { path: { workspace_id: id ?? this.workspaceId } },
840
+ body
841
+ })
842
+ );
843
+ }
813
844
  };
814
845
 
815
846
  // src/resources/api-keys.ts
@@ -1063,7 +1094,11 @@ var OperatorsResource = class extends WorkspaceScopedResource {
1063
1094
  );
1064
1095
  }
1065
1096
  listAutoPaging(params) {
1066
- return this.iterateOffsetPaginatedList((pageParams) => this.list(pageParams), (page) => page.items, params);
1097
+ return this.iterateOffsetPaginatedList(
1098
+ (pageParams) => this.list(pageParams),
1099
+ (page) => page.items,
1100
+ params
1101
+ );
1067
1102
  }
1068
1103
  async create(body) {
1069
1104
  return extractData(
@@ -2656,15 +2691,12 @@ var WebhookDestinationsResource = class extends WorkspaceScopedResource {
2656
2691
  }
2657
2692
  async listDeliveries(destinationId, params) {
2658
2693
  return extractData(
2659
- await this.client.GET(
2660
- "/v1/{workspace_id}/webhook-destinations/{destination_id}/deliveries",
2661
- {
2662
- params: {
2663
- path: { workspace_id: this.workspaceId, destination_id: destinationId },
2664
- query: params
2665
- }
2694
+ await this.client.GET("/v1/{workspace_id}/webhook-destinations/{destination_id}/deliveries", {
2695
+ params: {
2696
+ path: { workspace_id: this.workspaceId, destination_id: destinationId },
2697
+ query: params
2666
2698
  }
2667
- )
2699
+ })
2668
2700
  );
2669
2701
  }
2670
2702
  listDeliveriesAutoPaging(destinationId, params) {