@amigo-ai/platform-sdk 0.54.0 → 0.56.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 +0 -10
- package/api.md +0 -21
- package/dist/core/branded-types.js +0 -1
- package/dist/core/branded-types.js.map +1 -1
- package/dist/index.cjs +0 -109
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -109
- package/dist/index.mjs.map +4 -4
- package/dist/types/core/branded-types.d.ts +0 -2
- package/dist/types/core/branded-types.d.ts.map +1 -1
- package/dist/types/generated/api.d.ts +20 -1237
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +2 -7
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +2 -7
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +5 -5
- 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/pipeline.d.ts +3 -3
- package/dist/types/resources/services.d.ts +0 -10
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +0 -10
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/resources/crm.js +0 -52
- package/dist/resources/crm.js.map +0 -1
- package/dist/resources/personas.js +0 -34
- package/dist/resources/personas.js.map +0 -1
- package/dist/types/resources/crm.d.ts +0 -207
- package/dist/types/resources/crm.d.ts.map +0 -1
- package/dist/types/resources/personas.d.ts +0 -87
- package/dist/types/resources/personas.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -686,16 +686,6 @@ await client.reviewQueue.reject('item-id', { reason: 'Data mismatch' })
|
|
|
686
686
|
await client.reviewQueue.batchApprove({ item_ids: ['id1', 'id2'] })
|
|
687
687
|
```
|
|
688
688
|
|
|
689
|
-
### Personas
|
|
690
|
-
|
|
691
|
-
```typescript
|
|
692
|
-
const persona = await client.personas.create({
|
|
693
|
-
name: 'Friendly Scheduler',
|
|
694
|
-
voice_style: 'warm and professional',
|
|
695
|
-
})
|
|
696
|
-
const { items: personas } = await client.personas.list()
|
|
697
|
-
```
|
|
698
|
-
|
|
699
689
|
### Compliance
|
|
700
690
|
|
|
701
691
|
```typescript
|
package/api.md
CHANGED
|
@@ -368,15 +368,6 @@ All workspace-scoped resources also expose `withOptions(options)`.
|
|
|
368
368
|
- `getEntityFacts`
|
|
369
369
|
- `getAnalytics`
|
|
370
370
|
|
|
371
|
-
### `personas`
|
|
372
|
-
|
|
373
|
-
- `list`
|
|
374
|
-
- `listAutoPaging`
|
|
375
|
-
- `create`
|
|
376
|
-
- `get`
|
|
377
|
-
- `update`
|
|
378
|
-
- `delete`
|
|
379
|
-
|
|
380
371
|
### `reviewQueue`
|
|
381
372
|
|
|
382
373
|
- `list`
|
|
@@ -483,18 +474,6 @@ All workspace-scoped resources also expose `withOptions(options)`.
|
|
|
483
474
|
- `sessions.get`
|
|
484
475
|
- `sessions.chat`
|
|
485
476
|
|
|
486
|
-
### `crm`
|
|
487
|
-
|
|
488
|
-
- `getStatus`
|
|
489
|
-
- `contacts.list`
|
|
490
|
-
- `contacts.get`
|
|
491
|
-
- `contacts.getTimeline`
|
|
492
|
-
- `companies.list`
|
|
493
|
-
- `companies.get`
|
|
494
|
-
- `deals.list`
|
|
495
|
-
- `deals.get`
|
|
496
|
-
- `deals.getPipeline`
|
|
497
|
-
|
|
498
477
|
### `commandCenter`
|
|
499
478
|
|
|
500
479
|
- `get`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branded-types.js","sourceRoot":"","sources":["../../src/core/branded-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"branded-types.js","sourceRoot":"","sources":["../../src/core/branded-types.ts"],"names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CAAC,MAAM,eAAe,GAAG,CAAC,EAAU,EAAmB,EAAE,CAAC,EAAqB,CAAA;AACrF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAAU,EAAuB,EAAE,CAAC,EAAyB,CAAA;AACjG,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAU,EAAmB,EAAE,CAAC,EAAqB,CAAA;AACrF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAc,EAAE,CAAC,EAAgB,CAAA;AACtE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAU,EAAgB,EAAE,CAAC,EAAkB,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -95,7 +95,6 @@ __export(index_exports, {
|
|
|
95
95
|
paginate: () => paginate,
|
|
96
96
|
parseRateLimitHeaders: () => parseRateLimitHeaders,
|
|
97
97
|
parseWebhookEvent: () => parseWebhookEvent,
|
|
98
|
-
personaId: () => personaId,
|
|
99
98
|
phoneNumberId: () => phoneNumberId,
|
|
100
99
|
serviceId: () => serviceId,
|
|
101
100
|
sessionConnectAuthProtocols: () => sessionConnectAuthProtocols,
|
|
@@ -3345,48 +3344,6 @@ var MemoryResource = class extends WorkspaceScopedResource {
|
|
|
3345
3344
|
}
|
|
3346
3345
|
};
|
|
3347
3346
|
|
|
3348
|
-
// src/resources/personas.ts
|
|
3349
|
-
var PersonasResource = class extends WorkspaceScopedResource {
|
|
3350
|
-
async list(params) {
|
|
3351
|
-
return extractData(
|
|
3352
|
-
await this.client.GET("/v1/{workspace_id}/personas", {
|
|
3353
|
-
params: { path: { workspace_id: this.workspaceId }, query: params }
|
|
3354
|
-
})
|
|
3355
|
-
);
|
|
3356
|
-
}
|
|
3357
|
-
listAutoPaging(params) {
|
|
3358
|
-
return this.iteratePaginatedList((pageParams) => this.list(pageParams), params);
|
|
3359
|
-
}
|
|
3360
|
-
async create(body) {
|
|
3361
|
-
return extractData(
|
|
3362
|
-
await this.client.POST("/v1/{workspace_id}/personas", {
|
|
3363
|
-
params: { path: { workspace_id: this.workspaceId } },
|
|
3364
|
-
body
|
|
3365
|
-
})
|
|
3366
|
-
);
|
|
3367
|
-
}
|
|
3368
|
-
async get(personaId2) {
|
|
3369
|
-
return extractData(
|
|
3370
|
-
await this.client.GET("/v1/{workspace_id}/personas/{persona_id}", {
|
|
3371
|
-
params: { path: { workspace_id: this.workspaceId, persona_id: personaId2 } }
|
|
3372
|
-
})
|
|
3373
|
-
);
|
|
3374
|
-
}
|
|
3375
|
-
async update(personaId2, body) {
|
|
3376
|
-
return extractData(
|
|
3377
|
-
await this.client.PATCH("/v1/{workspace_id}/personas/{persona_id}", {
|
|
3378
|
-
params: { path: { workspace_id: this.workspaceId, persona_id: personaId2 } },
|
|
3379
|
-
body
|
|
3380
|
-
})
|
|
3381
|
-
);
|
|
3382
|
-
}
|
|
3383
|
-
async delete(personaId2) {
|
|
3384
|
-
await this.client.DELETE("/v1/{workspace_id}/personas/{persona_id}", {
|
|
3385
|
-
params: { path: { workspace_id: this.workspaceId, persona_id: personaId2 } }
|
|
3386
|
-
});
|
|
3387
|
-
}
|
|
3388
|
-
};
|
|
3389
|
-
|
|
3390
3347
|
// src/resources/review-queue.ts
|
|
3391
3348
|
var ReviewQueueResource = class extends WorkspaceScopedResource {
|
|
3392
3349
|
async list(params) {
|
|
@@ -4829,66 +4786,6 @@ var InsightsResource = class extends WorkspaceScopedResource {
|
|
|
4829
4786
|
};
|
|
4830
4787
|
};
|
|
4831
4788
|
|
|
4832
|
-
// src/resources/crm.ts
|
|
4833
|
-
var CrmResource = class extends WorkspaceScopedResource {
|
|
4834
|
-
/** Health/status of the workspace's CRM integration sync */
|
|
4835
|
-
async getStatus() {
|
|
4836
|
-
return extractData(
|
|
4837
|
-
await this.client.GET("/v1/{workspace_id}/crm/status", {
|
|
4838
|
-
params: { path: { workspace_id: this.workspaceId } }
|
|
4839
|
-
})
|
|
4840
|
-
);
|
|
4841
|
-
}
|
|
4842
|
-
contacts = {
|
|
4843
|
-
list: async (params) => extractData(
|
|
4844
|
-
await this.client.GET("/v1/{workspace_id}/crm/contacts", {
|
|
4845
|
-
params: { path: { workspace_id: this.workspaceId }, query: params }
|
|
4846
|
-
})
|
|
4847
|
-
),
|
|
4848
|
-
get: async (contactId) => extractData(
|
|
4849
|
-
await this.client.GET("/v1/{workspace_id}/crm/contacts/{contact_id}", {
|
|
4850
|
-
params: { path: { workspace_id: this.workspaceId, contact_id: contactId } }
|
|
4851
|
-
})
|
|
4852
|
-
),
|
|
4853
|
-
/** Per-contact activity timeline (calls, emails, deal events) */
|
|
4854
|
-
getTimeline: async (contactId) => extractData(
|
|
4855
|
-
await this.client.GET("/v1/{workspace_id}/crm/contacts/{contact_id}/timeline", {
|
|
4856
|
-
params: { path: { workspace_id: this.workspaceId, contact_id: contactId } }
|
|
4857
|
-
})
|
|
4858
|
-
)
|
|
4859
|
-
};
|
|
4860
|
-
companies = {
|
|
4861
|
-
list: async (params) => extractData(
|
|
4862
|
-
await this.client.GET("/v1/{workspace_id}/crm/companies", {
|
|
4863
|
-
params: { path: { workspace_id: this.workspaceId }, query: params }
|
|
4864
|
-
})
|
|
4865
|
-
),
|
|
4866
|
-
get: async (companyId) => extractData(
|
|
4867
|
-
await this.client.GET("/v1/{workspace_id}/crm/companies/{company_id}", {
|
|
4868
|
-
params: { path: { workspace_id: this.workspaceId, company_id: companyId } }
|
|
4869
|
-
})
|
|
4870
|
-
)
|
|
4871
|
-
};
|
|
4872
|
-
deals = {
|
|
4873
|
-
list: async (params) => extractData(
|
|
4874
|
-
await this.client.GET("/v1/{workspace_id}/crm/deals", {
|
|
4875
|
-
params: { path: { workspace_id: this.workspaceId }, query: params }
|
|
4876
|
-
})
|
|
4877
|
-
),
|
|
4878
|
-
get: async (dealId) => extractData(
|
|
4879
|
-
await this.client.GET("/v1/{workspace_id}/crm/deals/{deal_id}", {
|
|
4880
|
-
params: { path: { workspace_id: this.workspaceId, deal_id: dealId } }
|
|
4881
|
-
})
|
|
4882
|
-
),
|
|
4883
|
-
/** Aggregated pipeline view: deals grouped by stage with rolled-up totals */
|
|
4884
|
-
getPipeline: async () => extractData(
|
|
4885
|
-
await this.client.GET("/v1/{workspace_id}/crm/deals/pipeline", {
|
|
4886
|
-
params: { path: { workspace_id: this.workspaceId } }
|
|
4887
|
-
})
|
|
4888
|
-
)
|
|
4889
|
-
};
|
|
4890
|
-
};
|
|
4891
|
-
|
|
4892
4789
|
// src/resources/command-center.ts
|
|
4893
4790
|
var CommandCenterResource = class extends WorkspaceScopedResource {
|
|
4894
4791
|
/** Get the current command-center snapshot */
|
|
@@ -5409,7 +5306,6 @@ var WorkspaceDatabaseResource = class extends WorkspaceScopedResource {
|
|
|
5409
5306
|
var workspaceId = (id) => id;
|
|
5410
5307
|
var apiKeyId = (id) => id;
|
|
5411
5308
|
var agentId = (id) => id;
|
|
5412
|
-
var personaId = (id) => id;
|
|
5413
5309
|
var skillId = (id) => id;
|
|
5414
5310
|
var actionId = (id) => id;
|
|
5415
5311
|
var serviceId = (id) => id;
|
|
@@ -6061,7 +5957,6 @@ var AmigoClient = class _AmigoClient {
|
|
|
6061
5957
|
settings;
|
|
6062
5958
|
billing;
|
|
6063
5959
|
memory;
|
|
6064
|
-
personas;
|
|
6065
5960
|
reviewQueue;
|
|
6066
5961
|
recordings;
|
|
6067
5962
|
audit;
|
|
@@ -6079,8 +5974,6 @@ var AmigoClient = class _AmigoClient {
|
|
|
6079
5974
|
fhir;
|
|
6080
5975
|
/** Natural-language insights — schema, suggestions, SQL, chat sessions */
|
|
6081
5976
|
insights;
|
|
6082
|
-
/** CRM — contacts, companies, deals, pipeline (sync from connected CRM integration) */
|
|
6083
|
-
crm;
|
|
6084
5977
|
/** Command Center — rolled-up workspace homepage snapshot */
|
|
6085
5978
|
commandCenter;
|
|
6086
5979
|
/** Sensorium — operator-facing live agent loop observability */
|
|
@@ -6200,7 +6093,6 @@ var AmigoClient = class _AmigoClient {
|
|
|
6200
6093
|
mutable.settings = new SettingsResource(client, workspaceId2);
|
|
6201
6094
|
mutable.billing = new BillingResource(client, workspaceId2);
|
|
6202
6095
|
mutable.memory = new MemoryResource(client, workspaceId2);
|
|
6203
|
-
mutable.personas = new PersonasResource(client, workspaceId2);
|
|
6204
6096
|
mutable.reviewQueue = new ReviewQueueResource(client, workspaceId2);
|
|
6205
6097
|
mutable.recordings = new RecordingsResource(client, workspaceId2);
|
|
6206
6098
|
mutable.audit = new AuditResource(client, workspaceId2);
|
|
@@ -6211,7 +6103,6 @@ var AmigoClient = class _AmigoClient {
|
|
|
6211
6103
|
mutable.observers = new ObserversResource(client, workspaceId2, agentBaseUrl);
|
|
6212
6104
|
mutable.fhir = new FhirResource(client, workspaceId2);
|
|
6213
6105
|
mutable.insights = new InsightsResource(client, workspaceId2);
|
|
6214
|
-
mutable.crm = new CrmResource(client, workspaceId2);
|
|
6215
6106
|
mutable.commandCenter = new CommandCenterResource(client, workspaceId2);
|
|
6216
6107
|
mutable.sensorium = new SensoriumResource(client, workspaceId2);
|
|
6217
6108
|
mutable.dataQuery = new DataQueryResource(client, workspaceId2);
|