telnyx 7.30.0 → 7.31.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/CHANGELOG.md +7 -0
- package/client.d.mts +22 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +22 -4
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-gateways/agent-gateways.d.mts +360 -0
- package/resources/agent-gateways/agent-gateways.d.mts.map +1 -0
- package/resources/agent-gateways/agent-gateways.d.ts +360 -0
- package/resources/agent-gateways/agent-gateways.d.ts.map +1 -0
- package/resources/agent-gateways/agent-gateways.js +140 -0
- package/resources/agent-gateways/agent-gateways.js.map +1 -0
- package/resources/agent-gateways/agent-gateways.mjs +135 -0
- package/resources/agent-gateways/agent-gateways.mjs.map +1 -0
- package/resources/agent-gateways/apis.d.mts +300 -0
- package/resources/agent-gateways/apis.d.mts.map +1 -0
- package/resources/agent-gateways/apis.d.ts +300 -0
- package/resources/agent-gateways/apis.d.ts.map +1 -0
- package/resources/agent-gateways/apis.js +89 -0
- package/resources/agent-gateways/apis.js.map +1 -0
- package/resources/agent-gateways/apis.mjs +85 -0
- package/resources/agent-gateways/apis.mjs.map +1 -0
- package/resources/agent-gateways/guardrails.d.mts +210 -0
- package/resources/agent-gateways/guardrails.d.mts.map +1 -0
- package/resources/agent-gateways/guardrails.d.ts +210 -0
- package/resources/agent-gateways/guardrails.d.ts.map +1 -0
- package/resources/agent-gateways/guardrails.js +96 -0
- package/resources/agent-gateways/guardrails.js.map +1 -0
- package/resources/agent-gateways/guardrails.mjs +92 -0
- package/resources/agent-gateways/guardrails.mjs.map +1 -0
- package/resources/agent-gateways/index.d.mts +9 -0
- package/resources/agent-gateways/index.d.mts.map +1 -0
- package/resources/agent-gateways/index.d.ts +9 -0
- package/resources/agent-gateways/index.d.ts.map +1 -0
- package/resources/agent-gateways/index.js +21 -0
- package/resources/agent-gateways/index.js.map +1 -0
- package/resources/agent-gateways/index.mjs +10 -0
- package/resources/agent-gateways/index.mjs.map +1 -0
- package/resources/agent-gateways/keys/index.d.mts +3 -0
- package/resources/agent-gateways/keys/index.d.mts.map +1 -0
- package/resources/agent-gateways/keys/index.d.ts +3 -0
- package/resources/agent-gateways/keys/index.d.ts.map +1 -0
- package/resources/agent-gateways/keys/index.js +9 -0
- package/resources/agent-gateways/keys/index.js.map +1 -0
- package/resources/agent-gateways/keys/index.mjs +4 -0
- package/resources/agent-gateways/keys/index.mjs.map +1 -0
- package/resources/agent-gateways/keys/keys.d.mts +329 -0
- package/resources/agent-gateways/keys/keys.d.mts.map +1 -0
- package/resources/agent-gateways/keys/keys.d.ts +329 -0
- package/resources/agent-gateways/keys/keys.d.ts.map +1 -0
- package/resources/agent-gateways/keys/keys.js +99 -0
- package/resources/agent-gateways/keys/keys.js.map +1 -0
- package/resources/agent-gateways/keys/keys.mjs +94 -0
- package/resources/agent-gateways/keys/keys.mjs.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.d.mts +103 -0
- package/resources/agent-gateways/keys/tool-permissions.d.mts.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.d.ts +103 -0
- package/resources/agent-gateways/keys/tool-permissions.d.ts.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.js +62 -0
- package/resources/agent-gateways/keys/tool-permissions.js.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.mjs +58 -0
- package/resources/agent-gateways/keys/tool-permissions.mjs.map +1 -0
- package/resources/agent-gateways/keys.d.mts +2 -0
- package/resources/agent-gateways/keys.d.mts.map +1 -0
- package/resources/agent-gateways/keys.d.ts +2 -0
- package/resources/agent-gateways/keys.d.ts.map +1 -0
- package/resources/agent-gateways/keys.js +6 -0
- package/resources/agent-gateways/keys.js.map +1 -0
- package/resources/agent-gateways/keys.mjs +3 -0
- package/resources/agent-gateways/keys.mjs.map +1 -0
- package/resources/agent-gateways/mcp-servers.d.mts +246 -0
- package/resources/agent-gateways/mcp-servers.d.mts.map +1 -0
- package/resources/agent-gateways/mcp-servers.d.ts +246 -0
- package/resources/agent-gateways/mcp-servers.d.ts.map +1 -0
- package/resources/agent-gateways/mcp-servers.js +97 -0
- package/resources/agent-gateways/mcp-servers.js.map +1 -0
- package/resources/agent-gateways/mcp-servers.mjs +93 -0
- package/resources/agent-gateways/mcp-servers.mjs.map +1 -0
- package/resources/agent-gateways/policies.d.mts +266 -0
- package/resources/agent-gateways/policies.d.mts.map +1 -0
- package/resources/agent-gateways/policies.d.ts +266 -0
- package/resources/agent-gateways/policies.d.ts.map +1 -0
- package/resources/agent-gateways/policies.js +97 -0
- package/resources/agent-gateways/policies.js.map +1 -0
- package/resources/agent-gateways/policies.mjs +93 -0
- package/resources/agent-gateways/policies.mjs.map +1 -0
- package/resources/agent-gateways/policy-attachments.d.mts +123 -0
- package/resources/agent-gateways/policy-attachments.d.mts.map +1 -0
- package/resources/agent-gateways/policy-attachments.d.ts +123 -0
- package/resources/agent-gateways/policy-attachments.d.ts.map +1 -0
- package/resources/agent-gateways/policy-attachments.js +63 -0
- package/resources/agent-gateways/policy-attachments.js.map +1 -0
- package/resources/agent-gateways/policy-attachments.mjs +59 -0
- package/resources/agent-gateways/policy-attachments.mjs.map +1 -0
- package/resources/agent-gateways/teams/index.d.mts +3 -0
- package/resources/agent-gateways/teams/index.d.mts.map +1 -0
- package/resources/agent-gateways/teams/index.d.ts +3 -0
- package/resources/agent-gateways/teams/index.d.ts.map +1 -0
- package/resources/agent-gateways/teams/index.js +9 -0
- package/resources/agent-gateways/teams/index.js.map +1 -0
- package/resources/agent-gateways/teams/index.mjs +4 -0
- package/resources/agent-gateways/teams/index.mjs.map +1 -0
- package/resources/agent-gateways/teams/teams.d.mts +210 -0
- package/resources/agent-gateways/teams/teams.d.mts.map +1 -0
- package/resources/agent-gateways/teams/teams.d.ts +210 -0
- package/resources/agent-gateways/teams/teams.d.ts.map +1 -0
- package/resources/agent-gateways/teams/teams.js +98 -0
- package/resources/agent-gateways/teams/teams.js.map +1 -0
- package/resources/agent-gateways/teams/teams.mjs +93 -0
- package/resources/agent-gateways/teams/teams.mjs.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.d.mts +82 -0
- package/resources/agent-gateways/teams/tool-permissions.d.mts.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.d.ts +82 -0
- package/resources/agent-gateways/teams/tool-permissions.d.ts.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.js +62 -0
- package/resources/agent-gateways/teams/tool-permissions.js.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.mjs +58 -0
- package/resources/agent-gateways/teams/tool-permissions.mjs.map +1 -0
- package/resources/agent-gateways/teams.d.mts +2 -0
- package/resources/agent-gateways/teams.d.mts.map +1 -0
- package/resources/agent-gateways/teams.d.ts +2 -0
- package/resources/agent-gateways/teams.d.ts.map +1 -0
- package/resources/agent-gateways/teams.js +6 -0
- package/resources/agent-gateways/teams.js.map +1 -0
- package/resources/agent-gateways/teams.mjs +3 -0
- package/resources/agent-gateways/teams.mjs.map +1 -0
- package/resources/agent-gateways.d.mts +2 -0
- package/resources/agent-gateways.d.mts.map +1 -0
- package/resources/agent-gateways.d.ts +2 -0
- package/resources/agent-gateways.d.ts.map +1 -0
- package/resources/agent-gateways.js +6 -0
- package/resources/agent-gateways.js.map +1 -0
- package/resources/agent-gateways.mjs +3 -0
- package/resources/agent-gateways.mjs.map +1 -0
- package/resources/ai/assistants/assistants.d.mts +23 -9
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +23 -9
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +20 -2
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +20 -2
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/calendar-connections/calendar-connections.d.mts +380 -0
- package/resources/calendar-connections/calendar-connections.d.mts.map +1 -0
- package/resources/calendar-connections/calendar-connections.d.ts +380 -0
- package/resources/calendar-connections/calendar-connections.d.ts.map +1 -0
- package/resources/calendar-connections/calendar-connections.js +102 -0
- package/resources/calendar-connections/calendar-connections.js.map +1 -0
- package/resources/calendar-connections/calendar-connections.mjs +97 -0
- package/resources/calendar-connections/calendar-connections.mjs.map +1 -0
- package/resources/calendar-connections/index.d.mts +3 -0
- package/resources/calendar-connections/index.d.mts.map +1 -0
- package/resources/calendar-connections/index.d.ts +3 -0
- package/resources/calendar-connections/index.d.ts.map +1 -0
- package/resources/calendar-connections/index.js +9 -0
- package/resources/calendar-connections/index.js.map +1 -0
- package/resources/calendar-connections/index.mjs +4 -0
- package/resources/calendar-connections/index.mjs.map +1 -0
- package/resources/calendar-connections/meetings.d.mts +149 -0
- package/resources/calendar-connections/meetings.d.mts.map +1 -0
- package/resources/calendar-connections/meetings.d.ts +149 -0
- package/resources/calendar-connections/meetings.d.ts.map +1 -0
- package/resources/calendar-connections/meetings.js +47 -0
- package/resources/calendar-connections/meetings.js.map +1 -0
- package/resources/calendar-connections/meetings.mjs +43 -0
- package/resources/calendar-connections/meetings.mjs.map +1 -0
- package/resources/calendar-connections.d.mts +2 -0
- package/resources/calendar-connections.d.mts.map +1 -0
- package/resources/calendar-connections.d.ts +2 -0
- package/resources/calendar-connections.d.ts.map +1 -0
- package/resources/calendar-connections.js +6 -0
- package/resources/calendar-connections.js.map +1 -0
- package/resources/calendar-connections.mjs +3 -0
- package/resources/calendar-connections.mjs.map +1 -0
- package/resources/calls/actions.d.mts +11 -5
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +11 -5
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +4 -4
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +4 -4
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +1 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +1 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +6 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/meeting-bot/calendar.d.mts +34 -0
- package/resources/meeting-bot/calendar.d.mts.map +1 -0
- package/resources/meeting-bot/calendar.d.ts +34 -0
- package/resources/meeting-bot/calendar.d.ts.map +1 -0
- package/resources/meeting-bot/calendar.js +26 -0
- package/resources/meeting-bot/calendar.js.map +1 -0
- package/resources/meeting-bot/calendar.mjs +22 -0
- package/resources/meeting-bot/calendar.mjs.map +1 -0
- package/resources/meeting-bot/index.d.mts +3 -0
- package/resources/meeting-bot/index.d.mts.map +1 -0
- package/resources/meeting-bot/index.d.ts +3 -0
- package/resources/meeting-bot/index.d.ts.map +1 -0
- package/resources/meeting-bot/index.js +9 -0
- package/resources/meeting-bot/index.js.map +1 -0
- package/resources/meeting-bot/index.mjs +4 -0
- package/resources/meeting-bot/index.mjs.map +1 -0
- package/resources/meeting-bot/meeting-bot.d.mts +10 -0
- package/resources/meeting-bot/meeting-bot.d.mts.map +1 -0
- package/resources/meeting-bot/meeting-bot.d.ts +10 -0
- package/resources/meeting-bot/meeting-bot.d.ts.map +1 -0
- package/resources/meeting-bot/meeting-bot.js +17 -0
- package/resources/meeting-bot/meeting-bot.js.map +1 -0
- package/resources/meeting-bot/meeting-bot.mjs +12 -0
- package/resources/meeting-bot/meeting-bot.mjs.map +1 -0
- package/resources/meeting-bot.d.mts +2 -0
- package/resources/meeting-bot.d.mts.map +1 -0
- package/resources/meeting-bot.d.ts +2 -0
- package/resources/meeting-bot.d.ts.map +1 -0
- package/resources/meeting-bot.js +6 -0
- package/resources/meeting-bot.js.map +1 -0
- package/resources/meeting-bot.mjs +3 -0
- package/resources/meeting-bot.mjs.map +1 -0
- package/resources/meeting-sessions/actions.d.mts +17 -11
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +17 -11
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +14 -10
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +14 -10
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/artifacts.d.mts +8 -7
- package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
- package/resources/meeting-sessions/artifacts.d.ts +8 -7
- package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
- package/resources/meeting-sessions/artifacts.js +8 -7
- package/resources/meeting-sessions/artifacts.js.map +1 -1
- package/resources/meeting-sessions/artifacts.mjs +8 -7
- package/resources/meeting-sessions/artifacts.mjs.map +1 -1
- package/resources/meeting-sessions/index.d.mts +1 -1
- package/resources/meeting-sessions/index.d.mts.map +1 -1
- package/resources/meeting-sessions/index.d.ts +1 -1
- package/resources/meeting-sessions/index.d.ts.map +1 -1
- package/resources/meeting-sessions/index.js.map +1 -1
- package/resources/meeting-sessions/index.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +281 -103
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +281 -103
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +53 -21
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +53 -21
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +45 -5
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +45 -5
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech/text-to-speech.js +8 -2
- package/resources/text-to-speech/text-to-speech.js.map +1 -1
- package/resources/text-to-speech/text-to-speech.mjs +8 -2
- package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
- package/resources/user-profile.d.mts +284 -0
- package/resources/user-profile.d.mts.map +1 -0
- package/resources/user-profile.d.ts +284 -0
- package/resources/user-profile.d.ts.map +1 -0
- package/resources/user-profile.js +42 -0
- package/resources/user-profile.js.map +1 -0
- package/resources/user-profile.mjs +38 -0
- package/resources/user-profile.mjs.map +1 -0
- package/resources/webhooks.d.mts +129 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +129 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +90 -0
- package/src/resources/agent-gateways/agent-gateways.ts +605 -0
- package/src/resources/agent-gateways/apis.ts +388 -0
- package/src/resources/agent-gateways/guardrails.ts +304 -0
- package/src/resources/agent-gateways/index.ts +87 -0
- package/src/resources/agent-gateways/keys/index.ts +20 -0
- package/src/resources/agent-gateways/keys/keys.ts +437 -0
- package/src/resources/agent-gateways/keys/tool-permissions.ts +139 -0
- package/src/resources/agent-gateways/keys.ts +3 -0
- package/src/resources/agent-gateways/mcp-servers.ts +328 -0
- package/src/resources/agent-gateways/policies.ts +348 -0
- package/src/resources/agent-gateways/policy-attachments.ts +167 -0
- package/src/resources/agent-gateways/teams/index.ts +16 -0
- package/src/resources/agent-gateways/teams/teams.ts +282 -0
- package/src/resources/agent-gateways/teams/tool-permissions.ts +112 -0
- package/src/resources/agent-gateways/teams.ts +3 -0
- package/src/resources/agent-gateways.ts +3 -0
- package/src/resources/ai/assistants/assistants.ts +24 -9
- package/src/resources/ai/memory/namespaces/index.ts +1 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +2 -0
- package/src/resources/ai/memory/namespaces/profiles/index.ts +1 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +24 -1
- package/src/resources/calendar-connections/calendar-connections.ts +486 -0
- package/src/resources/calendar-connections/index.ts +21 -0
- package/src/resources/calendar-connections/meetings.ts +205 -0
- package/src/resources/calendar-connections.ts +3 -0
- package/src/resources/calls/actions.ts +16 -4
- package/src/resources/calls/calls.ts +6 -2
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/conferences/actions.ts +2 -1
- package/src/resources/index.ts +36 -0
- package/src/resources/meeting-bot/calendar.ts +54 -0
- package/src/resources/meeting-bot/index.ts +8 -0
- package/src/resources/meeting-bot/meeting-bot.ts +23 -0
- package/src/resources/meeting-bot.ts +3 -0
- package/src/resources/meeting-sessions/actions.ts +17 -11
- package/src/resources/meeting-sessions/artifacts.ts +8 -7
- package/src/resources/meeting-sessions/index.ts +4 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +321 -102
- package/src/resources/text-to-speech/text-to-speech.ts +81 -5
- package/src/resources/user-profile.ts +357 -0
- package/src/resources/webhooks.ts +216 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as ToolPermissionsAPI from "./tool-permissions.js";
|
|
3
|
+
import { AgentGatewayToolPermissions, AgentGatewayToolPermissionsResponse, ToolPermissionCreateParams, ToolPermissionListParams, ToolPermissions } from "./tool-permissions.js";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Keys on an instance.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Keys extends APIResource {
|
|
10
|
+
toolPermissions: ToolPermissionsAPI.ToolPermissions;
|
|
11
|
+
/**
|
|
12
|
+
* Lists the instance's keys, without their values. Returns the first 100. The
|
|
13
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const keys = await client.agentGateways.keys.list(
|
|
18
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(instanceID: string, query?: KeyListParams | null | undefined, options?: RequestOptions): APIPromise<KeyListResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Issues a key on the instance. The key's value is in this response only. Every
|
|
25
|
+
* field is optional; a key without `models` may use every model the instance
|
|
26
|
+
* serves. The instance must be `ready`; otherwise the request answers `409`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const key = await client.agentGateways.keys.create(
|
|
31
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
32
|
+
* {
|
|
33
|
+
* budget_resets_every: '30d',
|
|
34
|
+
* max_budget: 20,
|
|
35
|
+
* max_parallel_requests: 4,
|
|
36
|
+
* models: ['GLM-5.3-Flash'],
|
|
37
|
+
* name: 'support-agent',
|
|
38
|
+
* requests_per_minute: 60,
|
|
39
|
+
* team_id: '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
40
|
+
* },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
create(instanceID: string, body: KeyCreateParams, options?: RequestOptions): APIPromise<KeyCreateResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Revokes a key and returns it as it was, without its value. The instance must be
|
|
47
|
+
* `ready`; otherwise the request answers `409`.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const agentGatewayKeyResponse =
|
|
52
|
+
* await client.agentGateways.keys.delete(
|
|
53
|
+
* '5f1c3a0e9b7d4c2a8e6f0b1d3c5a7e9f2b4d6c8a0e1f3a5c7e9b1d3f5a7c9e0b',
|
|
54
|
+
* { instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996' },
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
delete(keyID: string, params: KeyDeleteParams, options?: RequestOptions): APIPromise<AgentGatewayKeyResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Changes a key's settings without reissuing it. A field left out stays as it is,
|
|
61
|
+
* and `null` clears it. `models: []` lifts the model restriction. `expires_in`
|
|
62
|
+
* counts from now. Setting `blocked` to `true` makes the instance refuse the key
|
|
63
|
+
* with `401` while keeping its settings and spend; `false` lets it through again.
|
|
64
|
+
* The instance must be `ready`; otherwise the request answers `409`.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const agentGatewayKeyResponse =
|
|
69
|
+
* await client.agentGateways.keys.update(
|
|
70
|
+
* '5f1c3a0e9b7d4c2a8e6f0b1d3c5a7e9f2b4d6c8a0e1f3a5c7e9b1d3f5a7c9e0b',
|
|
71
|
+
* {
|
|
72
|
+
* instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
73
|
+
* blocked: true,
|
|
74
|
+
* },
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
update(keyID: string, params: KeyUpdateParams, options?: RequestOptions): APIPromise<AgentGatewayKeyResponse>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* A key on an instance, without its value.
|
|
82
|
+
*/
|
|
83
|
+
export interface AgentGatewayKey {
|
|
84
|
+
/**
|
|
85
|
+
* Identifies the key. It is a 64-character hash the instance stores in place of
|
|
86
|
+
* the key's value.
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
/**
|
|
90
|
+
* Whether the instance refuses the key.
|
|
91
|
+
*/
|
|
92
|
+
blocked: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* When the key's spend next resets.
|
|
95
|
+
*/
|
|
96
|
+
budget_resets_at: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* How often the key's spend resets, such as `30d`.
|
|
99
|
+
*/
|
|
100
|
+
budget_resets_every: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* When the key was issued.
|
|
103
|
+
*/
|
|
104
|
+
created_at: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* When the key stops working; `null` when it does not expire.
|
|
107
|
+
*/
|
|
108
|
+
expires_at: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* The most the key may spend, in USD, until its budget resets.
|
|
111
|
+
*/
|
|
112
|
+
max_budget: number | null;
|
|
113
|
+
/**
|
|
114
|
+
* The most requests the key may have in flight at once.
|
|
115
|
+
*/
|
|
116
|
+
max_parallel_requests: number | null;
|
|
117
|
+
/**
|
|
118
|
+
* The models the key may use. Empty means every model the instance serves.
|
|
119
|
+
*/
|
|
120
|
+
models: Array<string>;
|
|
121
|
+
/**
|
|
122
|
+
* A label for people; `null` when none was given.
|
|
123
|
+
*/
|
|
124
|
+
name: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* The most requests the key may make per minute.
|
|
127
|
+
*/
|
|
128
|
+
requests_per_minute: number | null;
|
|
129
|
+
/**
|
|
130
|
+
* What the key has spent since its budget last reset, in USD.
|
|
131
|
+
*/
|
|
132
|
+
spend: number;
|
|
133
|
+
/**
|
|
134
|
+
* The team the key belongs to, if any.
|
|
135
|
+
*/
|
|
136
|
+
team_id: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* The most tokens the key may use per minute.
|
|
139
|
+
*/
|
|
140
|
+
tokens_per_minute: number | null;
|
|
141
|
+
}
|
|
142
|
+
export interface AgentGatewayKeyResponse {
|
|
143
|
+
/**
|
|
144
|
+
* A key on an instance, without its value.
|
|
145
|
+
*/
|
|
146
|
+
data: AgentGatewayKey;
|
|
147
|
+
}
|
|
148
|
+
export interface KeyCreateResponse {
|
|
149
|
+
/**
|
|
150
|
+
* A key that was just issued: the only response that carries its value.
|
|
151
|
+
*/
|
|
152
|
+
data: KeyCreateResponse.Data;
|
|
153
|
+
}
|
|
154
|
+
export declare namespace KeyCreateResponse {
|
|
155
|
+
/**
|
|
156
|
+
* A key that was just issued: the only response that carries its value.
|
|
157
|
+
*/
|
|
158
|
+
interface Data {
|
|
159
|
+
/**
|
|
160
|
+
* Identifies the key. It is a 64-character hash the instance stores in place of
|
|
161
|
+
* the key's value.
|
|
162
|
+
*/
|
|
163
|
+
id: string;
|
|
164
|
+
/**
|
|
165
|
+
* Whether the instance refuses the key.
|
|
166
|
+
*/
|
|
167
|
+
blocked: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* When the key's spend next resets.
|
|
170
|
+
*/
|
|
171
|
+
budget_resets_at: string | null;
|
|
172
|
+
/**
|
|
173
|
+
* How often the key's spend resets, such as `30d`.
|
|
174
|
+
*/
|
|
175
|
+
budget_resets_every: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* When the key was issued.
|
|
178
|
+
*/
|
|
179
|
+
created_at: string | null;
|
|
180
|
+
/**
|
|
181
|
+
* When the key stops working; `null` when it does not expire.
|
|
182
|
+
*/
|
|
183
|
+
expires_at: string | null;
|
|
184
|
+
/**
|
|
185
|
+
* The key's value, sent as `Authorization: Bearer <key>` to the instance. Shown
|
|
186
|
+
* only in this response.
|
|
187
|
+
*/
|
|
188
|
+
key: string;
|
|
189
|
+
/**
|
|
190
|
+
* The most the key may spend, in USD, until its budget resets.
|
|
191
|
+
*/
|
|
192
|
+
max_budget: number | null;
|
|
193
|
+
/**
|
|
194
|
+
* The most requests the key may have in flight at once.
|
|
195
|
+
*/
|
|
196
|
+
max_parallel_requests: number | null;
|
|
197
|
+
/**
|
|
198
|
+
* The models the key may use. Empty means every model the instance serves.
|
|
199
|
+
*/
|
|
200
|
+
models: Array<string>;
|
|
201
|
+
/**
|
|
202
|
+
* A label for people; `null` when none was given.
|
|
203
|
+
*/
|
|
204
|
+
name: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* The most requests the key may make per minute.
|
|
207
|
+
*/
|
|
208
|
+
requests_per_minute: number | null;
|
|
209
|
+
/**
|
|
210
|
+
* What the key has spent since its budget last reset, in USD.
|
|
211
|
+
*/
|
|
212
|
+
spend: number;
|
|
213
|
+
/**
|
|
214
|
+
* The team the key belongs to, if any.
|
|
215
|
+
*/
|
|
216
|
+
team_id: string | null;
|
|
217
|
+
/**
|
|
218
|
+
* The most tokens the key may use per minute.
|
|
219
|
+
*/
|
|
220
|
+
tokens_per_minute: number | null;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export interface KeyListResponse {
|
|
224
|
+
data: Array<AgentGatewayKey>;
|
|
225
|
+
}
|
|
226
|
+
export interface KeyListParams {
|
|
227
|
+
/**
|
|
228
|
+
* Only the keys of this team.
|
|
229
|
+
*/
|
|
230
|
+
team_id?: string;
|
|
231
|
+
}
|
|
232
|
+
export interface KeyCreateParams {
|
|
233
|
+
/**
|
|
234
|
+
* How often the spend resets: a number and a unit, `s`, `m`, `h`, or `d`.
|
|
235
|
+
*/
|
|
236
|
+
budget_resets_every?: string | null;
|
|
237
|
+
/**
|
|
238
|
+
* How long until the key stops working: a number and a unit, `s`, `m`, `h`, or
|
|
239
|
+
* `d`.
|
|
240
|
+
*/
|
|
241
|
+
expires_in?: string | null;
|
|
242
|
+
/**
|
|
243
|
+
* The most the key may spend, in USD.
|
|
244
|
+
*/
|
|
245
|
+
max_budget?: number | null;
|
|
246
|
+
/**
|
|
247
|
+
* The most requests the key may have in flight at once.
|
|
248
|
+
*/
|
|
249
|
+
max_parallel_requests?: number | null;
|
|
250
|
+
/**
|
|
251
|
+
* The models the key may use. Leave it out to allow every model.
|
|
252
|
+
*/
|
|
253
|
+
models?: Array<string> | null;
|
|
254
|
+
/**
|
|
255
|
+
* A label for people, unique on the instance.
|
|
256
|
+
*/
|
|
257
|
+
name?: string | null;
|
|
258
|
+
/**
|
|
259
|
+
* The most requests the key may make per minute.
|
|
260
|
+
*/
|
|
261
|
+
requests_per_minute?: number | null;
|
|
262
|
+
/**
|
|
263
|
+
* A team on the instance. The key shares the team's model list, budget, and rate
|
|
264
|
+
* limits.
|
|
265
|
+
*/
|
|
266
|
+
team_id?: string | null;
|
|
267
|
+
/**
|
|
268
|
+
* The most tokens the key may use per minute.
|
|
269
|
+
*/
|
|
270
|
+
tokens_per_minute?: number | null;
|
|
271
|
+
}
|
|
272
|
+
export interface KeyDeleteParams {
|
|
273
|
+
/**
|
|
274
|
+
* The Agent Gateway's `id`.
|
|
275
|
+
*/
|
|
276
|
+
instance_id: string;
|
|
277
|
+
}
|
|
278
|
+
export interface KeyUpdateParams {
|
|
279
|
+
/**
|
|
280
|
+
* Path param: The Agent Gateway's `id`.
|
|
281
|
+
*/
|
|
282
|
+
instance_id: string;
|
|
283
|
+
/**
|
|
284
|
+
* Body param: `true` makes the instance refuse the key; `false` lets it through
|
|
285
|
+
* again.
|
|
286
|
+
*/
|
|
287
|
+
blocked?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Body param: How often the spend resets.
|
|
290
|
+
*/
|
|
291
|
+
budget_resets_every?: string | null;
|
|
292
|
+
/**
|
|
293
|
+
* Body param: How long from now until the key stops working.
|
|
294
|
+
*/
|
|
295
|
+
expires_in?: string | null;
|
|
296
|
+
/**
|
|
297
|
+
* Body param: The most the key may spend, in USD.
|
|
298
|
+
*/
|
|
299
|
+
max_budget?: number | null;
|
|
300
|
+
/**
|
|
301
|
+
* Body param: The most requests the key may have in flight at once.
|
|
302
|
+
*/
|
|
303
|
+
max_parallel_requests?: number | null;
|
|
304
|
+
/**
|
|
305
|
+
* Body param: The models the key may use. `[]` allows every model.
|
|
306
|
+
*/
|
|
307
|
+
models?: Array<string>;
|
|
308
|
+
/**
|
|
309
|
+
* Body param: A label for people.
|
|
310
|
+
*/
|
|
311
|
+
name?: string;
|
|
312
|
+
/**
|
|
313
|
+
* Body param: The most requests the key may make per minute.
|
|
314
|
+
*/
|
|
315
|
+
requests_per_minute?: number | null;
|
|
316
|
+
/**
|
|
317
|
+
* Body param: Move the key to this team, or `null` to leave its team.
|
|
318
|
+
*/
|
|
319
|
+
team_id?: string | null;
|
|
320
|
+
/**
|
|
321
|
+
* Body param: The most tokens the key may use per minute.
|
|
322
|
+
*/
|
|
323
|
+
tokens_per_minute?: number | null;
|
|
324
|
+
}
|
|
325
|
+
export declare namespace Keys {
|
|
326
|
+
export { type AgentGatewayKey as AgentGatewayKey, type AgentGatewayKeyResponse as AgentGatewayKeyResponse, type KeyCreateResponse as KeyCreateResponse, type KeyListResponse as KeyListResponse, type KeyListParams as KeyListParams, type KeyCreateParams as KeyCreateParams, type KeyDeleteParams as KeyDeleteParams, type KeyUpdateParams as KeyUpdateParams, };
|
|
327
|
+
export { ToolPermissions as ToolPermissions, type AgentGatewayToolPermissions as AgentGatewayToolPermissions, type AgentGatewayToolPermissionsResponse as AgentGatewayToolPermissionsResponse, type ToolPermissionListParams as ToolPermissionListParams, type ToolPermissionCreateParams as ToolPermissionCreateParams, };
|
|
328
|
+
}
|
|
329
|
+
//# sourceMappingURL=keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/resources/agent-gateways/keys/keys.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,kBAAkB,8BAA2B;AACzD,OAAO,EACL,2BAA2B,EAC3B,mCAAmC,EACnC,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EAChB,8BAA2B;AAC5B,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC,eAAe,EAAE,kBAAkB,CAAC,eAAe,CAAwD;IAE3G;;;;;;;;;;OAUG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAI1G;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ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AAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,eAAe,IAAI,eAAe,EAClC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Keys = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ToolPermissionsAPI = tslib_1.__importStar(require("./tool-permissions.js"));
|
|
8
|
+
const tool_permissions_1 = require("./tool-permissions.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
/**
|
|
11
|
+
* Keys on an instance.
|
|
12
|
+
*/
|
|
13
|
+
class Keys extends resource_1.APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.toolPermissions = new ToolPermissionsAPI.ToolPermissions(this._client);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Lists the instance's keys, without their values. Returns the first 100. The
|
|
20
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const keys = await client.agentGateways.keys.list(
|
|
25
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
list(instanceID, query = {}, options) {
|
|
30
|
+
return this._client.get((0, path_1.path) `/agent_gateways/${instanceID}/keys`, { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Issues a key on the instance. The key's value is in this response only. Every
|
|
34
|
+
* field is optional; a key without `models` may use every model the instance
|
|
35
|
+
* serves. The instance must be `ready`; otherwise the request answers `409`.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const key = await client.agentGateways.keys.create(
|
|
40
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
41
|
+
* {
|
|
42
|
+
* budget_resets_every: '30d',
|
|
43
|
+
* max_budget: 20,
|
|
44
|
+
* max_parallel_requests: 4,
|
|
45
|
+
* models: ['GLM-5.3-Flash'],
|
|
46
|
+
* name: 'support-agent',
|
|
47
|
+
* requests_per_minute: 60,
|
|
48
|
+
* team_id: '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
49
|
+
* },
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
create(instanceID, body, options) {
|
|
54
|
+
return this._client.post((0, path_1.path) `/agent_gateways/${instanceID}/keys`, { body, ...options });
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Revokes a key and returns it as it was, without its value. The instance must be
|
|
58
|
+
* `ready`; otherwise the request answers `409`.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const agentGatewayKeyResponse =
|
|
63
|
+
* await client.agentGateways.keys.delete(
|
|
64
|
+
* '5f1c3a0e9b7d4c2a8e6f0b1d3c5a7e9f2b4d6c8a0e1f3a5c7e9b1d3f5a7c9e0b',
|
|
65
|
+
* { instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996' },
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
delete(keyID, params, options) {
|
|
70
|
+
const { instance_id } = params;
|
|
71
|
+
return this._client.delete((0, path_1.path) `/agent_gateways/${instance_id}/keys/${keyID}`, options);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Changes a key's settings without reissuing it. A field left out stays as it is,
|
|
75
|
+
* and `null` clears it. `models: []` lifts the model restriction. `expires_in`
|
|
76
|
+
* counts from now. Setting `blocked` to `true` makes the instance refuse the key
|
|
77
|
+
* with `401` while keeping its settings and spend; `false` lets it through again.
|
|
78
|
+
* The instance must be `ready`; otherwise the request answers `409`.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* const agentGatewayKeyResponse =
|
|
83
|
+
* await client.agentGateways.keys.update(
|
|
84
|
+
* '5f1c3a0e9b7d4c2a8e6f0b1d3c5a7e9f2b4d6c8a0e1f3a5c7e9b1d3f5a7c9e0b',
|
|
85
|
+
* {
|
|
86
|
+
* instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
87
|
+
* blocked: true,
|
|
88
|
+
* },
|
|
89
|
+
* );
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
update(keyID, params, options) {
|
|
93
|
+
const { instance_id, ...body } = params;
|
|
94
|
+
return this._client.patch((0, path_1.path) `/agent_gateways/${instance_id}/keys/${keyID}`, { body, ...options });
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.Keys = Keys;
|
|
98
|
+
Keys.ToolPermissions = tool_permissions_1.ToolPermissions;
|
|
99
|
+
//# sourceMappingURL=keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../src/resources/agent-gateways/keys/keys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,kFAAyD;AACzD,4DAM4B;AAG5B,0DAAoD;AAEpD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GAAG,kCAAe,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as ToolPermissionsAPI from "./tool-permissions.mjs";
|
|
4
|
+
import { ToolPermissions, } from "./tool-permissions.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Keys on an instance.
|
|
8
|
+
*/
|
|
9
|
+
export class Keys extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.toolPermissions = new ToolPermissionsAPI.ToolPermissions(this._client);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Lists the instance's keys, without their values. Returns the first 100. The
|
|
16
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const keys = await client.agentGateways.keys.list(
|
|
21
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(instanceID, query = {}, options) {
|
|
26
|
+
return this._client.get(path `/agent_gateways/${instanceID}/keys`, { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Issues a key on the instance. The key's value is in this response only. Every
|
|
30
|
+
* field is optional; a key without `models` may use every model the instance
|
|
31
|
+
* serves. The instance must be `ready`; otherwise the request answers `409`.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const key = await client.agentGateways.keys.create(
|
|
36
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
37
|
+
* {
|
|
38
|
+
* budget_resets_every: '30d',
|
|
39
|
+
* max_budget: 20,
|
|
40
|
+
* max_parallel_requests: 4,
|
|
41
|
+
* models: ['GLM-5.3-Flash'],
|
|
42
|
+
* name: 'support-agent',
|
|
43
|
+
* requests_per_minute: 60,
|
|
44
|
+
* team_id: '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
45
|
+
* },
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
create(instanceID, body, options) {
|
|
50
|
+
return this._client.post(path `/agent_gateways/${instanceID}/keys`, { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Revokes a key and returns it as it was, without its value. The instance must be
|
|
54
|
+
* `ready`; otherwise the request answers `409`.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const agentGatewayKeyResponse =
|
|
59
|
+
* await client.agentGateways.keys.delete(
|
|
60
|
+
* '5f1c3a0e9b7d4c2a8e6f0b1d3c5a7e9f2b4d6c8a0e1f3a5c7e9b1d3f5a7c9e0b',
|
|
61
|
+
* { instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996' },
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
delete(keyID, params, options) {
|
|
66
|
+
const { instance_id } = params;
|
|
67
|
+
return this._client.delete(path `/agent_gateways/${instance_id}/keys/${keyID}`, options);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Changes a key's settings without reissuing it. A field left out stays as it is,
|
|
71
|
+
* and `null` clears it. `models: []` lifts the model restriction. `expires_in`
|
|
72
|
+
* counts from now. Setting `blocked` to `true` makes the instance refuse the key
|
|
73
|
+
* with `401` while keeping its settings and spend; `false` lets it through again.
|
|
74
|
+
* The instance must be `ready`; otherwise the request answers `409`.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const agentGatewayKeyResponse =
|
|
79
|
+
* await client.agentGateways.keys.update(
|
|
80
|
+
* '5f1c3a0e9b7d4c2a8e6f0b1d3c5a7e9f2b4d6c8a0e1f3a5c7e9b1d3f5a7c9e0b',
|
|
81
|
+
* {
|
|
82
|
+
* instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
83
|
+
* blocked: true,
|
|
84
|
+
* },
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
update(keyID, params, options) {
|
|
89
|
+
const { instance_id, ...body } = params;
|
|
90
|
+
return this._client.patch(path `/agent_gateways/${instance_id}/keys/${keyID}`, { body, ...options });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
Keys.ToolPermissions = ToolPermissions;
|
|
94
|
+
//# sourceMappingURL=keys.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.mjs","sourceRoot":"","sources":["../../../src/resources/agent-gateways/keys/keys.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EAKL,eAAe,GAChB,+BAA2B;AAG5B,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+F7G,CAAC;IA7FC;;;;;;;;;;OAUG;IACH,IAAI,CACF,UAAkB,EAClB,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,UAAU,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,UAAkB,EAAE,IAAqB,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,mBAAmB,UAAU,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,KAAa,EACb,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,mBAAmB,WAAW,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,KAAa,EACb,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,WAAW,SAAS,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;AA6SD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* The MCP servers and tools a key or team may use.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ToolPermissions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the MCP servers and APIs the key may use, and the tools within each.
|
|
10
|
+
* `servers: []` means none. The instance must be `ready`; otherwise the request
|
|
11
|
+
* answers `409`.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const agentGatewayToolPermissionsResponse =
|
|
16
|
+
* await client.agentGateways.keys.toolPermissions.list(
|
|
17
|
+
* 'f739ad190d29e2a5e658c3a486111953e6c18d746fd04374962ab150aae17757',
|
|
18
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(keyID: string, params: ToolPermissionListParams, options?: RequestOptions): APIPromise<AgentGatewayToolPermissionsResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Replaces the grant whole and returns it. Every server must be one of the
|
|
25
|
+
* instance's MCP servers or APIs, named once. A key reaches the servers granted to
|
|
26
|
+
* it or to its team, and the servers open to every key; when both grant, only the
|
|
27
|
+
* servers in both. The instance must be `ready`; otherwise the request answers
|
|
28
|
+
* `409`.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const agentGatewayToolPermissionsResponse =
|
|
33
|
+
* await client.agentGateways.keys.toolPermissions.create(
|
|
34
|
+
* 'f739ad190d29e2a5e658c3a486111953e6c18d746fd04374962ab150aae17757',
|
|
35
|
+
* {
|
|
36
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
37
|
+
* servers: [
|
|
38
|
+
* {
|
|
39
|
+
* id: '88d5a97b-4080-4855-8bac-a39811b1dc24',
|
|
40
|
+
* tools: ['get_order'],
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* },
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
create(keyID: string, params: ToolPermissionCreateParams, options?: RequestOptions): APIPromise<AgentGatewayToolPermissionsResponse>;
|
|
48
|
+
}
|
|
49
|
+
export interface AgentGatewayToolPermissions {
|
|
50
|
+
/**
|
|
51
|
+
* The servers granted, each with its tools. `[]` grants none.
|
|
52
|
+
*/
|
|
53
|
+
servers: Array<AgentGatewayToolPermissions.Server>;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace AgentGatewayToolPermissions {
|
|
56
|
+
interface Server {
|
|
57
|
+
/**
|
|
58
|
+
* An MCP server's or API's `id` on the instance.
|
|
59
|
+
*/
|
|
60
|
+
id: string;
|
|
61
|
+
/**
|
|
62
|
+
* The tools the grant covers, by name without the server prefix. `[]` covers every
|
|
63
|
+
* tool the server exposes.
|
|
64
|
+
*/
|
|
65
|
+
tools?: Array<string>;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export interface AgentGatewayToolPermissionsResponse {
|
|
69
|
+
data: AgentGatewayToolPermissions;
|
|
70
|
+
}
|
|
71
|
+
export interface ToolPermissionListParams {
|
|
72
|
+
/**
|
|
73
|
+
* The Agent Gateway's `id`.
|
|
74
|
+
*/
|
|
75
|
+
instance_id: string;
|
|
76
|
+
}
|
|
77
|
+
export interface ToolPermissionCreateParams {
|
|
78
|
+
/**
|
|
79
|
+
* Path param: The Agent Gateway's `id`.
|
|
80
|
+
*/
|
|
81
|
+
instance_id: string;
|
|
82
|
+
/**
|
|
83
|
+
* Body param: The servers granted, each with its tools. `[]` grants none.
|
|
84
|
+
*/
|
|
85
|
+
servers: Array<ToolPermissionCreateParams.Server>;
|
|
86
|
+
}
|
|
87
|
+
export declare namespace ToolPermissionCreateParams {
|
|
88
|
+
interface Server {
|
|
89
|
+
/**
|
|
90
|
+
* An MCP server's or API's `id` on the instance.
|
|
91
|
+
*/
|
|
92
|
+
id: string;
|
|
93
|
+
/**
|
|
94
|
+
* The tools the grant covers, by name without the server prefix. `[]` covers every
|
|
95
|
+
* tool the server exposes.
|
|
96
|
+
*/
|
|
97
|
+
tools?: Array<string>;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export declare namespace ToolPermissions {
|
|
101
|
+
export { type AgentGatewayToolPermissions as AgentGatewayToolPermissions, type AgentGatewayToolPermissionsResponse as AgentGatewayToolPermissionsResponse, type ToolPermissionListParams as ToolPermissionListParams, type ToolPermissionCreateParams as ToolPermissionCreateParams, };
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=tool-permissions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-permissions.d.mts","sourceRoot":"","sources":["../../../src/resources/agent-gateways/keys/tool-permissions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAKlD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;CAOnD;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;CACpD;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,MAAM;QACrB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;;WAGG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACvB;CACF;AAED,MAAM,WAAW,mCAAmC;IAClD,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;CACnD;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,MAAM;QACrB;;WAEG;QACH,EAAE,EAAE,MAAM,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