@amigo-ai/platform-sdk 0.67.0 → 0.69.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 (35) hide show
  1. package/README.md +0 -21
  2. package/api.md +0 -8
  3. package/dist/index.cjs +13 -56
  4. package/dist/index.cjs.map +4 -4
  5. package/dist/index.js +0 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +13 -56
  8. package/dist/index.mjs.map +4 -4
  9. package/dist/resources/conversations.js +12 -1
  10. package/dist/resources/conversations.js.map +1 -1
  11. package/dist/resources/settings.js +0 -9
  12. package/dist/resources/settings.js.map +1 -1
  13. package/dist/types/generated/api.d.ts +551 -557
  14. package/dist/types/generated/api.d.ts.map +1 -1
  15. package/dist/types/index.d.cts +0 -2
  16. package/dist/types/index.d.cts.map +1 -1
  17. package/dist/types/index.d.ts +0 -2
  18. package/dist/types/index.d.ts.map +1 -1
  19. package/dist/types/resources/audit.d.ts +6 -6
  20. package/dist/types/resources/conversations.d.ts +11 -1
  21. package/dist/types/resources/conversations.d.ts.map +1 -1
  22. package/dist/types/resources/external-integrations.d.ts.map +1 -1
  23. package/dist/types/resources/intake.d.ts.map +1 -1
  24. package/dist/types/resources/metrics.d.ts.map +1 -1
  25. package/dist/types/resources/operators.d.ts.map +1 -1
  26. package/dist/types/resources/services.d.ts.map +1 -1
  27. package/dist/types/resources/settings.d.ts +0 -32
  28. package/dist/types/resources/settings.d.ts.map +1 -1
  29. package/dist/types/resources/surfaces.d.ts.map +1 -1
  30. package/dist/types/resources/world.d.ts.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/resources/memory.js +0 -40
  33. package/dist/resources/memory.js.map +0 -1
  34. package/dist/types/resources/memory.d.ts +0 -96
  35. package/dist/types/resources/memory.d.ts.map +0 -1
package/README.md CHANGED
@@ -701,23 +701,6 @@ const comparison = await client.analytics.compareCallPeriods({
701
701
  })
702
702
  ```
703
703
 
704
- ### Agent Memory
705
-
706
- Agent Memory tracks structured long-term facts about entities across conversations.
707
-
708
- ```typescript
709
- // Get all dimension scores for an entity
710
- const dims = await client.memory.getEntityDimensions('entity-id')
711
- console.log(dims.dimensions) // preferences, health_history, etc.
712
-
713
- // Get individual facts for a dimension
714
- const facts = await client.memory.getEntityFacts('entity-id', { dimension: 'preferences' })
715
-
716
- // Workspace-level memory health
717
- const analytics = await client.memory.getAnalytics()
718
- console.log(analytics.coverage_rate, analytics.total_facts)
719
- ```
720
-
721
704
  ### Integrations
722
705
 
723
706
  ```typescript
@@ -747,10 +730,6 @@ await client.settings.voice.update({ voice_id: 'new-voice-id', speed: 1.1 })
747
730
  // Retention
748
731
  const retention = await client.settings.retention.get()
749
732
  await client.settings.retention.update({ call_recordings_days: 90 })
750
-
751
- // Memory dimensions
752
- const memory = await client.settings.memory.get()
753
- console.log(memory.dimensions) // list of configured memory dimensions
754
733
  ```
755
734
 
756
735
  ### Surfaces (Patient Forms)
package/api.md CHANGED
@@ -355,8 +355,6 @@ All workspace-scoped resources also expose `withOptions(options)`.
355
355
  - `branding.update`
356
356
  - `outreach.get`
357
357
  - `outreach.update`
358
- - `memory.get`
359
- - `memory.update`
360
358
  - `retention.get`
361
359
  - `retention.update`
362
360
  - `gapScanner.get`
@@ -378,12 +376,6 @@ All workspace-scoped resources also expose `withOptions(options)`.
378
376
  - `getInvoice`
379
377
  - `getInvoicePdf`
380
378
 
381
- ### `memory`
382
-
383
- - `getEntityDimensions`
384
- - `getEntityFacts`
385
- - `getAnalytics`
386
-
387
379
  ### `reviewQueue`
388
380
 
389
381
  - `list`
package/dist/index.cjs CHANGED
@@ -2272,11 +2272,22 @@ var ConversationsResource = class extends WorkspaceScopedResource {
2272
2272
  })
2273
2273
  );
2274
2274
  }
2275
- async get(conversationId) {
2275
+ /**
2276
+ * Fetch a conversation's detail, including its turns.
2277
+ *
2278
+ * Pass `options.includeToolCalls: true` to include per-turn `tool_calls`
2279
+ * metadata on the returned turns. Server-side default is `false` — without
2280
+ * this opt-in the `tool_calls` arrays will be empty even when the agent
2281
+ * invoked tools, matching the `createTurn` opt-in.
2282
+ */
2283
+ async get(conversationId, options) {
2276
2284
  return extractData(
2277
2285
  await this.client.GET("/v1/{workspace_id}/conversations/{conversation_id}", {
2278
2286
  params: {
2279
- path: { workspace_id: this.workspaceId, conversation_id: conversationId }
2287
+ path: { workspace_id: this.workspaceId, conversation_id: conversationId },
2288
+ ...options?.includeToolCalls !== void 0 && {
2289
+ query: { include_tool_calls: options.includeToolCalls }
2290
+ }
2280
2291
  }
2281
2292
  })
2282
2293
  );
@@ -3386,19 +3397,6 @@ var SettingsResource = class extends WorkspaceScopedResource {
3386
3397
  })
3387
3398
  )
3388
3399
  };
3389
- memory = {
3390
- get: async () => extractData(
3391
- await this.client.GET("/v1/{workspace_id}/settings/memory", {
3392
- params: { path: { workspace_id: this.workspaceId } }
3393
- })
3394
- ),
3395
- update: async (body) => extractData(
3396
- await this.client.PUT("/v1/{workspace_id}/settings/memory", {
3397
- params: { path: { workspace_id: this.workspaceId } },
3398
- body
3399
- })
3400
- )
3401
- };
3402
3400
  retention = {
3403
3401
  get: async () => extractData(
3404
3402
  await this.client.GET("/v1/{workspace_id}/settings/retention", {
@@ -3529,45 +3527,6 @@ var BillingResource = class extends WorkspaceScopedResource {
3529
3527
  }
3530
3528
  };
3531
3529
 
3532
- // src/resources/memory.ts
3533
- var MemoryResource = class extends WorkspaceScopedResource {
3534
- /**
3535
- * Get all memory dimension scores for an entity.
3536
- * Scores reflect how complete and confident each dimension's facts are.
3537
- */
3538
- async getEntityDimensions(entityId2) {
3539
- return extractData(
3540
- await this.client.GET("/v1/{workspace_id}/memory/{entity_id}/dimensions", {
3541
- params: { path: { workspace_id: this.workspaceId, entity_id: entityId2 } }
3542
- })
3543
- );
3544
- }
3545
- /**
3546
- * Get individual memory facts for an entity, optionally filtered by dimension.
3547
- */
3548
- async getEntityFacts(entityId2, params) {
3549
- return extractData(
3550
- await this.client.GET("/v1/{workspace_id}/memory/{entity_id}/facts", {
3551
- params: {
3552
- path: { workspace_id: this.workspaceId, entity_id: entityId2 },
3553
- query: params
3554
- }
3555
- })
3556
- );
3557
- }
3558
- /**
3559
- * Get workspace-level memory analytics — coverage rates, dimension health,
3560
- * and fact ingestion trends.
3561
- */
3562
- async getAnalytics() {
3563
- return extractData(
3564
- await this.client.GET("/v1/{workspace_id}/memory/analytics", {
3565
- params: { path: { workspace_id: this.workspaceId } }
3566
- })
3567
- );
3568
- }
3569
- };
3570
-
3571
3530
  // src/resources/review-queue.ts
3572
3531
  var ReviewQueueResource = class extends WorkspaceScopedResource {
3573
3532
  async list(params) {
@@ -6179,7 +6138,6 @@ var AmigoClient = class _AmigoClient {
6179
6138
  metrics;
6180
6139
  settings;
6181
6140
  billing;
6182
- memory;
6183
6141
  reviewQueue;
6184
6142
  recordings;
6185
6143
  audit;
@@ -6318,7 +6276,6 @@ var AmigoClient = class _AmigoClient {
6318
6276
  mutable.metrics = new MetricsResource(client, workspaceId2);
6319
6277
  mutable.settings = new SettingsResource(client, workspaceId2);
6320
6278
  mutable.billing = new BillingResource(client, workspaceId2);
6321
- mutable.memory = new MemoryResource(client, workspaceId2);
6322
6279
  mutable.reviewQueue = new ReviewQueueResource(client, workspaceId2);
6323
6280
  mutable.recordings = new RecordingsResource(client, workspaceId2);
6324
6281
  mutable.audit = new AuditResource(client, workspaceId2);