@amigo-ai/platform-sdk 0.82.0 → 0.84.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 +1 -0
- package/dist/index.cjs +22 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +2 -2
- package/dist/resources/sessions.js +18 -1
- package/dist/resources/sessions.js.map +1 -1
- package/dist/types/generated/api.d.ts +745 -122
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/external-integrations.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/integrations.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.map +1 -1
- package/dist/types/resources/sessions.d.ts +26 -0
- package/dist/types/resources/sessions.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/triggers.d.ts +36 -12
- package/dist/types/resources/triggers.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WorkspaceScopedResource, extractData } from './base.js';
|
|
1
|
+
import { WorkspaceScopedResource, extractData, untypedClient } from './base.js';
|
|
2
2
|
/**
|
|
3
3
|
* Sessions — operator visibility into **live agent calls**. List the
|
|
4
4
|
* currently active sessions across the workspace, and inject a one-shot
|
|
@@ -18,6 +18,23 @@ export class SessionsResource extends WorkspaceScopedResource {
|
|
|
18
18
|
params: { path: { workspace_id: this.workspaceId } },
|
|
19
19
|
}));
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Live Agones fleet capacity (workspace-global) — Ready/Allocated/total
|
|
23
|
+
* GameServers plus headroom against the maxReplicas ceiling. `fleet`
|
|
24
|
+
* selects the voice fleet (default) or the isolated `tool-runner` fleet;
|
|
25
|
+
* omitted, the server defaults to voice. Operator-only.
|
|
26
|
+
*
|
|
27
|
+
* The `fleet` query param is typed locally until the generated spec picks
|
|
28
|
+
* it up via sdk-sync; the response schema is already generated.
|
|
29
|
+
*/
|
|
30
|
+
async getFleetStatus(opts) {
|
|
31
|
+
return extractData(await untypedClient(this.client).GET('/v1/{workspace_id}/sessions/fleet-status', {
|
|
32
|
+
params: {
|
|
33
|
+
path: { workspace_id: this.workspaceId },
|
|
34
|
+
query: opts?.fleet === undefined ? undefined : { fleet: opts.fleet },
|
|
35
|
+
},
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
21
38
|
/** Inject a one-shot directive (text/audio) into a live call session */
|
|
22
39
|
async inject(callSid, body) {
|
|
23
40
|
return extractData(await this.client.POST('/v1/{workspace_id}/sessions/{call_sid}/inject', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../src/resources/sessions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../src/resources/sessions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAK/E;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,gBAAiB,SAAQ,uBAAuB;IAC3D,0DAA0D;IAC1D,KAAK,CAAC,UAAU;QACd,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,oCAAoC,EAAE;YAC1D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE;SACrD,CAAC,CACH,CAAA;IACH,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,cAAc,CAAC,IAA4B;QAC/C,OAAO,WAAW,CAChB,MAAM,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