@amigo-ai/platform-sdk 0.55.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 -9
- package/dist/core/branded-types.js +0 -1
- package/dist/core/branded-types.js.map +1 -1
- package/dist/index.cjs +0 -46
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -46
- 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 +0 -397
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +2 -4
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +2 -4
- package/dist/types/index.d.ts.map +1 -1
- 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/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/package.json +1 -1
- package/dist/resources/personas.js +0 -34
- package/dist/resources/personas.js.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`
|
|
@@ -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":[],"mappings":"AA+BA,uBAAuB;AACvB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAU,EAAe,EAAE,CAAC,EAAiB,CAAA;AACzE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAY,EAAE,CAAC,EAAc,CAAA;AAChE,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAU,EAAW,EAAE,CAAC,EAAa,CAAA;AAC7D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAU,EAAW,EAAE,CAAC,EAAa,CAAA;AAC7D,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAY,EAAE,CAAC,EAAc,CAAA;AAChE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAU,EAAa,EAAE,CAAC,EAAe,CAAA;AACnE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAU,EAAkB,EAAE,CAAC,EAAoB,CAAA;AAClF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAU,EAAU,EAAE,CAAC,EAAY,CAAA;AAC1D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAU,EAAiB,EAAE,CAAC,EAAmB,CAAA;AAC/E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAU,EAAiB,EAAE,CAAC,EAAmB,CAAA;AAC/E,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAY,EAAE,CAAC,EAAc,CAAA;AAChE,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAU,EAAW,EAAE,CAAC,EAAa,CAAA;AAC7D,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAU,EAAa,EAAE,CAAC,EAAe,CAAA;AACnE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAc,EAAE,CAAC,EAAgB,CAAA;AACtE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAU,EAAa,EAAE,CAAC,EAAe,CAAA;AACnE,MAAM,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) {
|
|
@@ -5349,7 +5306,6 @@ var WorkspaceDatabaseResource = class extends WorkspaceScopedResource {
|
|
|
5349
5306
|
var workspaceId = (id) => id;
|
|
5350
5307
|
var apiKeyId = (id) => id;
|
|
5351
5308
|
var agentId = (id) => id;
|
|
5352
|
-
var personaId = (id) => id;
|
|
5353
5309
|
var skillId = (id) => id;
|
|
5354
5310
|
var actionId = (id) => id;
|
|
5355
5311
|
var serviceId = (id) => id;
|
|
@@ -6001,7 +5957,6 @@ var AmigoClient = class _AmigoClient {
|
|
|
6001
5957
|
settings;
|
|
6002
5958
|
billing;
|
|
6003
5959
|
memory;
|
|
6004
|
-
personas;
|
|
6005
5960
|
reviewQueue;
|
|
6006
5961
|
recordings;
|
|
6007
5962
|
audit;
|
|
@@ -6138,7 +6093,6 @@ var AmigoClient = class _AmigoClient {
|
|
|
6138
6093
|
mutable.settings = new SettingsResource(client, workspaceId2);
|
|
6139
6094
|
mutable.billing = new BillingResource(client, workspaceId2);
|
|
6140
6095
|
mutable.memory = new MemoryResource(client, workspaceId2);
|
|
6141
|
-
mutable.personas = new PersonasResource(client, workspaceId2);
|
|
6142
6096
|
mutable.reviewQueue = new ReviewQueueResource(client, workspaceId2);
|
|
6143
6097
|
mutable.recordings = new RecordingsResource(client, workspaceId2);
|
|
6144
6098
|
mutable.audit = new AuditResource(client, workspaceId2);
|