@amigo-ai/platform-sdk 0.82.0 → 0.83.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 +538 -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
package/dist/index.mjs
CHANGED
|
@@ -5166,6 +5166,28 @@ var SessionsResource = class extends WorkspaceScopedResource {
|
|
|
5166
5166
|
})
|
|
5167
5167
|
);
|
|
5168
5168
|
}
|
|
5169
|
+
/**
|
|
5170
|
+
* Live Agones fleet capacity (workspace-global) — Ready/Allocated/total
|
|
5171
|
+
* GameServers plus headroom against the maxReplicas ceiling. `fleet`
|
|
5172
|
+
* selects the voice fleet (default) or the isolated `tool-runner` fleet;
|
|
5173
|
+
* omitted, the server defaults to voice. Operator-only.
|
|
5174
|
+
*
|
|
5175
|
+
* The `fleet` query param is typed locally until the generated spec picks
|
|
5176
|
+
* it up via sdk-sync; the response schema is already generated.
|
|
5177
|
+
*/
|
|
5178
|
+
async getFleetStatus(opts) {
|
|
5179
|
+
return extractData(
|
|
5180
|
+
await untypedClient(this.client).GET(
|
|
5181
|
+
"/v1/{workspace_id}/sessions/fleet-status",
|
|
5182
|
+
{
|
|
5183
|
+
params: {
|
|
5184
|
+
path: { workspace_id: this.workspaceId },
|
|
5185
|
+
query: opts?.fleet === void 0 ? void 0 : { fleet: opts.fleet }
|
|
5186
|
+
}
|
|
5187
|
+
}
|
|
5188
|
+
)
|
|
5189
|
+
);
|
|
5190
|
+
}
|
|
5169
5191
|
/** Inject a one-shot directive (text/audio) into a live call session */
|
|
5170
5192
|
async inject(callSid, body) {
|
|
5171
5193
|
return extractData(
|