@amigo-ai/platform-sdk 0.54.0 → 0.55.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/api.md +0 -12
- package/dist/index.cjs +0 -63
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -63
- package/dist/index.mjs.map +3 -3
- package/dist/types/generated/api.d.ts +20 -840
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +0 -3
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +0 -3
- 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.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/types/resources/crm.d.ts +0 -207
- package/dist/types/resources/crm.d.ts.map +0 -1
package/api.md
CHANGED
|
@@ -483,18 +483,6 @@ All workspace-scoped resources also expose `withOptions(options)`.
|
|
|
483
483
|
- `sessions.get`
|
|
484
484
|
- `sessions.chat`
|
|
485
485
|
|
|
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
486
|
### `commandCenter`
|
|
499
487
|
|
|
500
488
|
- `get`
|
package/dist/index.cjs
CHANGED
|
@@ -4829,66 +4829,6 @@ var InsightsResource = class extends WorkspaceScopedResource {
|
|
|
4829
4829
|
};
|
|
4830
4830
|
};
|
|
4831
4831
|
|
|
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
4832
|
// src/resources/command-center.ts
|
|
4893
4833
|
var CommandCenterResource = class extends WorkspaceScopedResource {
|
|
4894
4834
|
/** Get the current command-center snapshot */
|
|
@@ -6079,8 +6019,6 @@ var AmigoClient = class _AmigoClient {
|
|
|
6079
6019
|
fhir;
|
|
6080
6020
|
/** Natural-language insights — schema, suggestions, SQL, chat sessions */
|
|
6081
6021
|
insights;
|
|
6082
|
-
/** CRM — contacts, companies, deals, pipeline (sync from connected CRM integration) */
|
|
6083
|
-
crm;
|
|
6084
6022
|
/** Command Center — rolled-up workspace homepage snapshot */
|
|
6085
6023
|
commandCenter;
|
|
6086
6024
|
/** Sensorium — operator-facing live agent loop observability */
|
|
@@ -6211,7 +6149,6 @@ var AmigoClient = class _AmigoClient {
|
|
|
6211
6149
|
mutable.observers = new ObserversResource(client, workspaceId2, agentBaseUrl);
|
|
6212
6150
|
mutable.fhir = new FhirResource(client, workspaceId2);
|
|
6213
6151
|
mutable.insights = new InsightsResource(client, workspaceId2);
|
|
6214
|
-
mutable.crm = new CrmResource(client, workspaceId2);
|
|
6215
6152
|
mutable.commandCenter = new CommandCenterResource(client, workspaceId2);
|
|
6216
6153
|
mutable.sensorium = new SensoriumResource(client, workspaceId2);
|
|
6217
6154
|
mutable.dataQuery = new DataQueryResource(client, workspaceId2);
|