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,167 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Where an instance applies each policy.
|
|
10
|
+
*/
|
|
11
|
+
export class PolicyAttachments extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Lists where the instance applies each policy.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const policyAttachments =
|
|
18
|
+
* await client.agentGateways.policyAttachments.list(
|
|
19
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<PolicyAttachmentListResponse> {
|
|
24
|
+
return this._client.get(path`/agent_gateways/${instanceID}/policy_attachments`, options);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Applies a policy to every request, or to the requests for the models named. It
|
|
29
|
+
* applies from the next request on.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const agentGatewayPolicyAttachmentResponse =
|
|
34
|
+
* await client.agentGateways.policyAttachments.create(
|
|
35
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
36
|
+
* {
|
|
37
|
+
* policy: 'strict',
|
|
38
|
+
* models: ['GLM-5.3*'],
|
|
39
|
+
* priority: 10,
|
|
40
|
+
* },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
create(
|
|
45
|
+
instanceID: string,
|
|
46
|
+
body: PolicyAttachmentCreateParams,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): APIPromise<AgentGatewayPolicyAttachmentResponse> {
|
|
49
|
+
return this._client.post(path`/agent_gateways/${instanceID}/policy_attachments`, { body, ...options });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Removes an attachment and returns it as it was. The policy stays.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const agentGatewayPolicyAttachmentResponse =
|
|
58
|
+
* await client.agentGateways.policyAttachments.delete(
|
|
59
|
+
* '3394712f-2ad5-428a-8a3d-7a08d4b2906d',
|
|
60
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
delete(
|
|
65
|
+
attachmentID: string,
|
|
66
|
+
params: PolicyAttachmentDeleteParams,
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): APIPromise<AgentGatewayPolicyAttachmentResponse> {
|
|
69
|
+
const { instance_id } = params;
|
|
70
|
+
return this._client.delete(
|
|
71
|
+
path`/agent_gateways/${instance_id}/policy_attachments/${attachmentID}`,
|
|
72
|
+
options,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Where an instance applies a policy.
|
|
79
|
+
*/
|
|
80
|
+
export interface AgentGatewayPolicyAttachment {
|
|
81
|
+
/**
|
|
82
|
+
* The attachment's ID.
|
|
83
|
+
*/
|
|
84
|
+
id: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* When the attachment was created.
|
|
88
|
+
*/
|
|
89
|
+
created_at: string | null;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* `true` applies the policy only to the requests no other attachment matches.
|
|
93
|
+
*/
|
|
94
|
+
default: boolean;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The models whose requests the policy applies to, by name. A name can use `*` as
|
|
98
|
+
* a wildcard. Empty applies the policy to every request.
|
|
99
|
+
*/
|
|
100
|
+
models: Array<string>;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The policy to apply, by name.
|
|
104
|
+
*/
|
|
105
|
+
policy: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* An attachment with a priority applies before the others.
|
|
109
|
+
*/
|
|
110
|
+
priority: number | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* When the attachment last changed.
|
|
114
|
+
*/
|
|
115
|
+
updated_at: string | null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface AgentGatewayPolicyAttachmentResponse {
|
|
119
|
+
/**
|
|
120
|
+
* Where an instance applies a policy.
|
|
121
|
+
*/
|
|
122
|
+
data: AgentGatewayPolicyAttachment;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface PolicyAttachmentListResponse {
|
|
126
|
+
data: Array<AgentGatewayPolicyAttachment>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface PolicyAttachmentCreateParams {
|
|
130
|
+
/**
|
|
131
|
+
* The policy to apply, by name.
|
|
132
|
+
*/
|
|
133
|
+
policy: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* `true` applies the policy only to the requests no other attachment matches.
|
|
137
|
+
*/
|
|
138
|
+
default?: boolean;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The models whose requests the policy applies to, by name. A name can use `*` as
|
|
142
|
+
* a wildcard. Empty applies the policy to every request.
|
|
143
|
+
*/
|
|
144
|
+
models?: Array<string>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* An attachment with a priority applies before the others.
|
|
148
|
+
*/
|
|
149
|
+
priority?: number | null;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface PolicyAttachmentDeleteParams {
|
|
153
|
+
/**
|
|
154
|
+
* The Agent Gateway's `id`.
|
|
155
|
+
*/
|
|
156
|
+
instance_id: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export declare namespace PolicyAttachments {
|
|
160
|
+
export {
|
|
161
|
+
type AgentGatewayPolicyAttachment as AgentGatewayPolicyAttachment,
|
|
162
|
+
type AgentGatewayPolicyAttachmentResponse as AgentGatewayPolicyAttachmentResponse,
|
|
163
|
+
type PolicyAttachmentListResponse as PolicyAttachmentListResponse,
|
|
164
|
+
type PolicyAttachmentCreateParams as PolicyAttachmentCreateParams,
|
|
165
|
+
type PolicyAttachmentDeleteParams as PolicyAttachmentDeleteParams,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Teams,
|
|
5
|
+
type AgentGatewayTeam,
|
|
6
|
+
type AgentGatewayTeamResponse,
|
|
7
|
+
type TeamListResponse,
|
|
8
|
+
type TeamCreateParams,
|
|
9
|
+
type TeamDeleteParams,
|
|
10
|
+
type TeamUpdateParams,
|
|
11
|
+
} from './teams';
|
|
12
|
+
export {
|
|
13
|
+
ToolPermissions,
|
|
14
|
+
type ToolPermissionListParams,
|
|
15
|
+
type ToolPermissionCreateParams,
|
|
16
|
+
} from './tool-permissions';
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as ToolPermissionsAPI from './tool-permissions';
|
|
5
|
+
import { ToolPermissionCreateParams, ToolPermissionListParams, ToolPermissions } from './tool-permissions';
|
|
6
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Teams on an instance: shared model lists, budgets, and rate limits.
|
|
12
|
+
*/
|
|
13
|
+
export class Teams extends APIResource {
|
|
14
|
+
toolPermissions: ToolPermissionsAPI.ToolPermissions = new ToolPermissionsAPI.ToolPermissions(this._client);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Lists the instance's teams. The instance must be `ready`; otherwise the request
|
|
18
|
+
* answers `409`.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const teams = await client.agentGateways.teams.list(
|
|
23
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<TeamListResponse> {
|
|
28
|
+
return this._client.get(path`/agent_gateways/${instanceID}/teams`, options);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Creates a team on the instance. A team is a model list, a budget, and rate
|
|
33
|
+
* limits that its keys share. Names need not be unique; the `id` identifies the
|
|
34
|
+
* team. The instance must be `ready`; otherwise the request answers `409`.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const agentGatewayTeamResponse =
|
|
39
|
+
* await client.agentGateways.teams.create(
|
|
40
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
41
|
+
* {
|
|
42
|
+
* name: 'support',
|
|
43
|
+
* budget_resets_every: '30d',
|
|
44
|
+
* max_budget: 50,
|
|
45
|
+
* models: ['GLM-5.3-Flash', 'Qwen3.8-27B-nothink'],
|
|
46
|
+
* requests_per_minute: 120,
|
|
47
|
+
* },
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
create(
|
|
52
|
+
instanceID: string,
|
|
53
|
+
body: TeamCreateParams,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<AgentGatewayTeamResponse> {
|
|
56
|
+
return this._client.post(path`/agent_gateways/${instanceID}/teams`, { body, ...options });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Deletes a team that has no keys and returns it. A team that still has keys
|
|
61
|
+
* answers `409`; delete or move its keys first. The instance must be `ready`;
|
|
62
|
+
* otherwise the request answers `409`.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const agentGatewayTeamResponse =
|
|
67
|
+
* await client.agentGateways.teams.delete(
|
|
68
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
69
|
+
* { instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996' },
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
delete(
|
|
74
|
+
teamID: string,
|
|
75
|
+
params: TeamDeleteParams,
|
|
76
|
+
options?: RequestOptions,
|
|
77
|
+
): APIPromise<AgentGatewayTeamResponse> {
|
|
78
|
+
const { instance_id } = params;
|
|
79
|
+
return this._client.delete(path`/agent_gateways/${instance_id}/teams/${teamID}`, options);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Changes a team's settings. A field left out stays as it is, and `null` clears
|
|
84
|
+
* it. `models: []` lifts the model restriction. Setting `blocked` to `true` makes
|
|
85
|
+
* the instance refuse every key in the team with `401`. The instance must be
|
|
86
|
+
* `ready`; otherwise the request answers `409`.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* const agentGatewayTeamResponse =
|
|
91
|
+
* await client.agentGateways.teams.update(
|
|
92
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
93
|
+
* {
|
|
94
|
+
* instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
95
|
+
* max_budget: 100,
|
|
96
|
+
* },
|
|
97
|
+
* );
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
update(
|
|
101
|
+
teamID: string,
|
|
102
|
+
params: TeamUpdateParams,
|
|
103
|
+
options?: RequestOptions,
|
|
104
|
+
): APIPromise<AgentGatewayTeamResponse> {
|
|
105
|
+
const { instance_id, ...body } = params;
|
|
106
|
+
return this._client.patch(path`/agent_gateways/${instance_id}/teams/${teamID}`, { body, ...options });
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* A team on an instance: a model list, a budget, and rate limits that its keys
|
|
112
|
+
* share.
|
|
113
|
+
*/
|
|
114
|
+
export interface AgentGatewayTeam {
|
|
115
|
+
/**
|
|
116
|
+
* Identifies the team.
|
|
117
|
+
*/
|
|
118
|
+
id: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Whether the instance refuses every key in the team.
|
|
122
|
+
*/
|
|
123
|
+
blocked: boolean;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* When the team's spend next resets.
|
|
127
|
+
*/
|
|
128
|
+
budget_resets_at: string | null;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* How often the team's spend resets, such as `30d`.
|
|
132
|
+
*/
|
|
133
|
+
budget_resets_every: string | null;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* When the team was created.
|
|
137
|
+
*/
|
|
138
|
+
created_at: string | null;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The most the team's keys may spend together, in USD, until the budget resets.
|
|
142
|
+
*/
|
|
143
|
+
max_budget: number | null;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The models the team's keys may use. Empty means every model the instance serves.
|
|
147
|
+
*/
|
|
148
|
+
models: Array<string>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* A label for people. Names need not be unique.
|
|
152
|
+
*/
|
|
153
|
+
name: string | null;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The most requests the team's keys may make per minute, together.
|
|
157
|
+
*/
|
|
158
|
+
requests_per_minute: number | null;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* What the team's keys have spent since the budget last reset, in USD.
|
|
162
|
+
*/
|
|
163
|
+
spend: number;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The most tokens the team's keys may use per minute, together.
|
|
167
|
+
*/
|
|
168
|
+
tokens_per_minute: number | null;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface AgentGatewayTeamResponse {
|
|
172
|
+
/**
|
|
173
|
+
* A team on an instance: a model list, a budget, and rate limits that its keys
|
|
174
|
+
* share.
|
|
175
|
+
*/
|
|
176
|
+
data: AgentGatewayTeam;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export interface TeamListResponse {
|
|
180
|
+
data: Array<AgentGatewayTeam>;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface TeamCreateParams {
|
|
184
|
+
/**
|
|
185
|
+
* A label for people.
|
|
186
|
+
*/
|
|
187
|
+
name: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* How often the spend resets: a number and a unit, `s`, `m`, `h`, or `d`.
|
|
191
|
+
*/
|
|
192
|
+
budget_resets_every?: string | null;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The most the team's keys may spend together, in USD.
|
|
196
|
+
*/
|
|
197
|
+
max_budget?: number | null;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* The models the team's keys may use. Leave it out to allow every model.
|
|
201
|
+
*/
|
|
202
|
+
models?: Array<string> | null;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* The most requests the team's keys may make per minute, together.
|
|
206
|
+
*/
|
|
207
|
+
requests_per_minute?: number | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The most tokens the team's keys may use per minute, together.
|
|
211
|
+
*/
|
|
212
|
+
tokens_per_minute?: number | null;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface TeamDeleteParams {
|
|
216
|
+
/**
|
|
217
|
+
* The Agent Gateway's `id`.
|
|
218
|
+
*/
|
|
219
|
+
instance_id: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface TeamUpdateParams {
|
|
223
|
+
/**
|
|
224
|
+
* Path param: The Agent Gateway's `id`.
|
|
225
|
+
*/
|
|
226
|
+
instance_id: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Body param: `true` makes the instance refuse every key in the team; `false` lets
|
|
230
|
+
* them through again.
|
|
231
|
+
*/
|
|
232
|
+
blocked?: boolean;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Body param: How often the spend resets.
|
|
236
|
+
*/
|
|
237
|
+
budget_resets_every?: string | null;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Body param: The most the team's keys may spend together, in USD.
|
|
241
|
+
*/
|
|
242
|
+
max_budget?: number | null;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Body param: The models the team's keys may use. `[]` allows every model.
|
|
246
|
+
*/
|
|
247
|
+
models?: Array<string>;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Body param: A label for people.
|
|
251
|
+
*/
|
|
252
|
+
name?: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Body param: The most requests the team's keys may make per minute, together.
|
|
256
|
+
*/
|
|
257
|
+
requests_per_minute?: number | null;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Body param: The most tokens the team's keys may use per minute, together.
|
|
261
|
+
*/
|
|
262
|
+
tokens_per_minute?: number | null;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
Teams.ToolPermissions = ToolPermissions;
|
|
266
|
+
|
|
267
|
+
export declare namespace Teams {
|
|
268
|
+
export {
|
|
269
|
+
type AgentGatewayTeam as AgentGatewayTeam,
|
|
270
|
+
type AgentGatewayTeamResponse as AgentGatewayTeamResponse,
|
|
271
|
+
type TeamListResponse as TeamListResponse,
|
|
272
|
+
type TeamCreateParams as TeamCreateParams,
|
|
273
|
+
type TeamDeleteParams as TeamDeleteParams,
|
|
274
|
+
type TeamUpdateParams as TeamUpdateParams,
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
export {
|
|
278
|
+
ToolPermissions as ToolPermissions,
|
|
279
|
+
type ToolPermissionListParams as ToolPermissionListParams,
|
|
280
|
+
type ToolPermissionCreateParams as ToolPermissionCreateParams,
|
|
281
|
+
};
|
|
282
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as ToolPermissionsAPI from '../keys/tool-permissions';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The MCP servers and tools a key or team may use.
|
|
11
|
+
*/
|
|
12
|
+
export class ToolPermissions extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Returns the MCP servers and APIs the team's keys may use, and the tools within
|
|
15
|
+
* each. `servers: []` means none. The instance must be `ready`; otherwise the
|
|
16
|
+
* request answers `409`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const agentGatewayToolPermissionsResponse =
|
|
21
|
+
* await client.agentGateways.teams.toolPermissions.list(
|
|
22
|
+
* 'd7b21324-a2bf-406c-ba49-c6ec4d23d476',
|
|
23
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(
|
|
28
|
+
teamID: string,
|
|
29
|
+
params: ToolPermissionListParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<ToolPermissionsAPI.AgentGatewayToolPermissionsResponse> {
|
|
32
|
+
const { instance_id } = params;
|
|
33
|
+
return this._client.get(path`/agent_gateways/${instance_id}/teams/${teamID}/tool_permissions`, options);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Replaces the grant whole and returns it. Every server must be one of the
|
|
38
|
+
* instance's MCP servers or APIs, named once. A key reaches the servers granted to
|
|
39
|
+
* it or to its team, and the servers open to every key; when both grant, only the
|
|
40
|
+
* servers in both. The instance must be `ready`; otherwise the request answers
|
|
41
|
+
* `409`.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const agentGatewayToolPermissionsResponse =
|
|
46
|
+
* await client.agentGateways.teams.toolPermissions.create(
|
|
47
|
+
* 'd7b21324-a2bf-406c-ba49-c6ec4d23d476',
|
|
48
|
+
* {
|
|
49
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
50
|
+
* servers: [
|
|
51
|
+
* {
|
|
52
|
+
* id: '88d5a97b-4080-4855-8bac-a39811b1dc24',
|
|
53
|
+
* tools: ['get_order'],
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
create(
|
|
61
|
+
teamID: string,
|
|
62
|
+
params: ToolPermissionCreateParams,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): APIPromise<ToolPermissionsAPI.AgentGatewayToolPermissionsResponse> {
|
|
65
|
+
const { instance_id, ...body } = params;
|
|
66
|
+
return this._client.put(path`/agent_gateways/${instance_id}/teams/${teamID}/tool_permissions`, {
|
|
67
|
+
body,
|
|
68
|
+
...options,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface ToolPermissionListParams {
|
|
74
|
+
/**
|
|
75
|
+
* The Agent Gateway's `id`.
|
|
76
|
+
*/
|
|
77
|
+
instance_id: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface ToolPermissionCreateParams {
|
|
81
|
+
/**
|
|
82
|
+
* Path param: The Agent Gateway's `id`.
|
|
83
|
+
*/
|
|
84
|
+
instance_id: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Body param: The servers granted, each with its tools. `[]` grants none.
|
|
88
|
+
*/
|
|
89
|
+
servers: Array<ToolPermissionCreateParams.Server>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export namespace ToolPermissionCreateParams {
|
|
93
|
+
export interface Server {
|
|
94
|
+
/**
|
|
95
|
+
* An MCP server's or API's `id` on the instance.
|
|
96
|
+
*/
|
|
97
|
+
id: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The tools the grant covers, by name without the server prefix. `[]` covers every
|
|
101
|
+
* tool the server exposes.
|
|
102
|
+
*/
|
|
103
|
+
tools?: Array<string>;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export declare namespace ToolPermissions {
|
|
108
|
+
export {
|
|
109
|
+
type ToolPermissionListParams as ToolPermissionListParams,
|
|
110
|
+
type ToolPermissionCreateParams as ToolPermissionCreateParams,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -2604,6 +2604,15 @@ export interface InferenceEmbeddingVoiceSettings {
|
|
|
2604
2604
|
*/
|
|
2605
2605
|
expressive_mode?: boolean;
|
|
2606
2606
|
|
|
2607
|
+
/**
|
|
2608
|
+
* Two-letter ISO 639-1 code of the language the voice speaks, for example `es`.
|
|
2609
|
+
* Only applicable to Soniox and AssemblyAI voices, which speak every language of
|
|
2610
|
+
* their model. AssemblyAI accepts `en`, `es`, `de`, `fr`, `it`, and `pt`, as a
|
|
2611
|
+
* literal code: a dynamic variable is rejected. When unset, the voice speaks
|
|
2612
|
+
* English.
|
|
2613
|
+
*/
|
|
2614
|
+
language?: string | null;
|
|
2615
|
+
|
|
2607
2616
|
/**
|
|
2608
2617
|
* Enhances recognition for specific languages and dialects during MiniMax TTS
|
|
2609
2618
|
* synthesis. Default is null (no boost). Set to 'auto' for automatic language
|
|
@@ -3210,15 +3219,21 @@ export interface PrivacySettings {
|
|
|
3210
3219
|
* served elsewhere. Enabling it requires a data-locality region with in-region
|
|
3211
3220
|
* inference (USA, EU, AUS, UAE; see
|
|
3212
3221
|
* [Inference regions](https://developers.telnyx.com/docs/inference/models/regions)),
|
|
3213
|
-
*
|
|
3214
|
-
*
|
|
3215
|
-
*
|
|
3216
|
-
*
|
|
3217
|
-
*
|
|
3218
|
-
*
|
|
3219
|
-
*
|
|
3220
|
-
*
|
|
3221
|
-
*
|
|
3222
|
+
* models for the assistant, its fallback, and any conversation-flow node that
|
|
3223
|
+
* overrides the model that are either Telnyx-hosted or a customer-provided
|
|
3224
|
+
* `external_llm` endpoint (third-party model providers are refused), and, when
|
|
3225
|
+
* `insight_settings.model` is set, an insight model available in that region; the
|
|
3226
|
+
* request is rejected otherwise. A voice call fails when it starts if its STT
|
|
3227
|
+
* model or TTS voice is not self-hosted by Telnyx, if the assistant uses a
|
|
3228
|
+
* speech-to-speech model, or if the call's media is anchored outside the region.
|
|
3229
|
+
* URLs Telnyx is configured to call — an `external_llm` endpoint, webhook tools,
|
|
3230
|
+
* Voice API callbacks, or a recording storage destination — are followed as-is:
|
|
3231
|
+
* Telnyx cannot verify where a customer-supplied URL processes requests, and
|
|
3232
|
+
* keeping those steps in your region is your responsibility. Once enabled, send
|
|
3233
|
+
* web chat requests and WebSocket or WebRTC conversations to your region's API
|
|
3234
|
+
* hostname: one entering the platform in another region is refused rather than
|
|
3235
|
+
* forwarded, because forwarding it would already have moved the content across the
|
|
3236
|
+
* border. See
|
|
3222
3237
|
* [Data residency](https://developers.telnyx.com/docs/inference/data-residency#in-region-processing-for-ai-assistants).
|
|
3223
3238
|
* Defaults to false.
|
|
3224
3239
|
*/
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from './settings';
|
|
12
12
|
import * as ProfilesAPI from './profiles/profiles';
|
|
13
13
|
import {
|
|
14
|
+
AgentMemoryPageMeta,
|
|
14
15
|
PageMeta,
|
|
15
16
|
ProfileDeleteParams,
|
|
16
17
|
ProfileDeleteResponse,
|
|
@@ -178,6 +179,7 @@ export declare namespace Namespaces {
|
|
|
178
179
|
|
|
179
180
|
export {
|
|
180
181
|
Profiles as Profiles,
|
|
182
|
+
type AgentMemoryPageMeta as AgentMemoryPageMeta,
|
|
181
183
|
type PageMeta as PageMeta,
|
|
182
184
|
type ProfileListResponse as ProfileListResponse,
|
|
183
185
|
type ProfileDeleteResponse as ProfileDeleteResponse,
|