telnyx 7.30.0-beta.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 +14 -0
- package/client.d.mts +30 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -13
- package/client.d.ts.map +1 -1
- package/client.js +18 -3
- package/client.js.map +1 -1
- package/client.mjs +18 -3
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +20 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +20 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +25 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +23 -0
- package/core/pagination.mjs.map +1 -1
- package/lib/login-token.d.mts +7 -3
- package/lib/login-token.d.mts.map +1 -1
- package/lib/login-token.d.ts +7 -3
- package/lib/login-token.d.ts.map +1 -1
- package/lib/login-token.js.map +1 -1
- package/lib/login-token.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/{tts-integrations.js → agent-gateways.js} +2 -2
- 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/ai.d.mts +9 -4
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +9 -4
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +204 -108
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +204 -108
- 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/assistants/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/chat.d.mts +3 -5
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +3 -5
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.d.mts +27 -2
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +27 -2
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js +23 -1
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs +23 -1
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/conversations/index.d.mts +1 -1
- package/resources/ai/conversations/index.d.mts.map +1 -1
- package/resources/ai/conversations/index.d.ts +1 -1
- package/resources/ai/conversations/index.d.ts.map +1 -1
- package/resources/ai/conversations/index.js.map +1 -1
- package/resources/ai/conversations/index.mjs.map +1 -1
- package/resources/ai/index.d.mts +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +2 -2
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +2 -2
- 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 +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +4 -4
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +4 -4
- 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 +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 +23 -5
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +23 -5
- 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/ai/memory/namespaces/settings.d.mts +23 -27
- package/resources/ai/memory/namespaces/settings.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/settings.d.ts +23 -27
- package/resources/ai/memory/namespaces/settings.d.ts.map +1 -1
- package/resources/ai/openai/chat.d.mts +3 -5
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +3 -5
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tests/test-framework/v1/v1.d.mts +15 -5
- package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -1
- package/resources/ai/tests/test-framework/v1/v1.d.ts +15 -5
- package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +222 -0
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +222 -0
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/browser-sessions/actions.d.mts +13 -7
- package/resources/browser-sessions/actions.d.mts.map +1 -1
- package/resources/browser-sessions/actions.d.ts +13 -7
- package/resources/browser-sessions/actions.d.ts.map +1 -1
- package/resources/browser-sessions/browser-sessions.d.mts +6 -2
- package/resources/browser-sessions/browser-sessions.d.mts.map +1 -1
- package/resources/browser-sessions/browser-sessions.d.ts +6 -2
- package/resources/browser-sessions/browser-sessions.d.ts.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/compute/funcs/export.d.mts +33 -35
- package/resources/compute/funcs/export.d.mts.map +1 -1
- package/resources/compute/funcs/export.d.ts +33 -35
- package/resources/compute/funcs/export.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.d.mts +2 -2
- package/resources/compute/funcs/funcs.d.mts.map +1 -1
- package/resources/compute/funcs/funcs.d.ts +2 -2
- package/resources/compute/funcs/funcs.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.js.map +1 -1
- package/resources/compute/funcs/funcs.mjs.map +1 -1
- package/resources/compute/funcs/index.d.mts +1 -1
- package/resources/compute/funcs/index.d.mts.map +1 -1
- package/resources/compute/funcs/index.d.ts +1 -1
- package/resources/compute/funcs/index.d.ts.map +1 -1
- package/resources/compute/funcs/index.js.map +1 -1
- package/resources/compute/funcs/index.mjs +1 -1
- package/resources/compute/funcs/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/email/dedicated-ips/dedicated-ips.d.mts.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.js +2 -2
- package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.mjs +2 -2
- package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -1
- package/resources/email-events.d.mts +84 -106
- package/resources/email-events.d.mts.map +1 -1
- package/resources/email-events.d.ts +84 -106
- package/resources/email-events.d.ts.map +1 -1
- package/resources/email-events.js +5 -1
- package/resources/email-events.js.map +1 -1
- package/resources/email-events.mjs +5 -1
- package/resources/email-events.mjs.map +1 -1
- package/resources/email-messages/email-messages.d.mts +1 -7
- package/resources/email-messages/email-messages.d.mts.map +1 -1
- package/resources/email-messages/email-messages.d.ts +1 -7
- package/resources/email-messages/email-messages.d.ts.map +1 -1
- package/resources/email-messages/email-messages.js.map +1 -1
- package/resources/email-messages/email-messages.mjs.map +1 -1
- package/resources/email-templates.d.mts +16 -70
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +16 -70
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/enterprises/enterprises.d.mts +2 -2
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +2 -2
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +1 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.mts +26 -29
- package/resources/enterprises/reputation/external-verification.d.mts.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.ts +26 -29
- package/resources/enterprises/reputation/external-verification.d.ts.map +1 -1
- package/resources/enterprises/reputation/external-verification.js +3 -3
- package/resources/enterprises/reputation/external-verification.js.map +1 -1
- package/resources/enterprises/reputation/external-verification.mjs +1 -1
- package/resources/enterprises/reputation/external-verification.mjs.map +1 -1
- package/resources/enterprises/reputation/index.d.mts +1 -1
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +1 -1
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +2 -2
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +1 -1
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +3 -3
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +3 -3
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +2 -2
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +3 -3
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/enterprises/verify-email.d.mts +27 -29
- package/resources/enterprises/verify-email.d.mts.map +1 -1
- package/resources/enterprises/verify-email.d.ts +27 -29
- package/resources/enterprises/verify-email.d.ts.map +1 -1
- package/resources/index.d.mts +9 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- 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/messages/messages.d.mts +32 -2
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +32 -2
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts +11 -0
- package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +11 -0
- package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
- package/resources/number-lookup.d.mts +5 -0
- package/resources/number-lookup.d.mts.map +1 -1
- package/resources/number-lookup.d.ts +5 -0
- package/resources/number-lookup.d.ts.map +1 -1
- package/resources/pay-connectors.d.mts +7 -7
- package/resources/pay-connectors.d.mts.map +1 -1
- package/resources/pay-connectors.d.ts +7 -7
- package/resources/pay-connectors.d.ts.map +1 -1
- package/resources/phone-numbers/index.d.mts +1 -1
- package/resources/phone-numbers/index.d.mts.map +1 -1
- package/resources/phone-numbers/index.d.ts +1 -1
- package/resources/phone-numbers/index.d.ts.map +1 -1
- package/resources/phone-numbers/index.js.map +1 -1
- package/resources/phone-numbers/index.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +21 -57
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +21 -57
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +2 -2
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +2 -2
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/portouts/portouts.d.mts +2 -1
- package/resources/portouts/portouts.d.mts.map +1 -1
- package/resources/portouts/portouts.d.ts +2 -1
- package/resources/portouts/portouts.d.ts.map +1 -1
- package/resources/portouts/portouts.js +2 -1
- package/resources/portouts/portouts.js.map +1 -1
- package/resources/portouts/portouts.mjs +2 -1
- package/resources/portouts/portouts.mjs.map +1 -1
- package/resources/telephony-credentials.d.mts +54 -24
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +54 -24
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +31 -27
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +31 -27
- package/resources/telephony-credentials.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/voice-clones.d.mts +4 -4
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +4 -4
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/webhooks.d.mts +139 -23
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +139 -23
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.d.mts +2 -2
- package/resources/whatsapp/business-accounts/business-accounts.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.d.ts +2 -2
- package/resources/whatsapp/business-accounts/business-accounts.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.js.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.mjs.map +1 -1
- package/resources/whatsapp/business-accounts/index.d.mts +1 -1
- package/resources/whatsapp/business-accounts/index.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/index.d.ts +1 -1
- package/resources/whatsapp/business-accounts/index.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/index.js.map +1 -1
- package/resources/whatsapp/business-accounts/index.mjs.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts +7 -66
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts +7 -66
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.js +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.js.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.mjs +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/hosted-signups.d.mts +11 -73
- package/resources/whatsapp/hosted-signups.d.mts.map +1 -1
- package/resources/whatsapp/hosted-signups.d.ts +11 -73
- package/resources/whatsapp/hosted-signups.d.ts.map +1 -1
- package/resources/whatsapp/hosted-signups.js +5 -2
- package/resources/whatsapp/hosted-signups.js.map +1 -1
- package/resources/whatsapp/hosted-signups.mjs +5 -2
- package/resources/whatsapp/hosted-signups.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +2 -2
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +2 -2
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +9 -135
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +9 -135
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +4 -4
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -4
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +103 -6
- package/src/core/pagination.ts +58 -0
- package/src/lib/login-token.ts +8 -4
- 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/{tts-integrations.ts → agent-gateways.ts} +1 -1
- package/src/resources/ai/ai.ts +12 -0
- package/src/resources/ai/assistants/assistants.ts +241 -143
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/chat.ts +3 -5
- package/src/resources/ai/conversations/conversations.ts +39 -1
- package/src/resources/ai/conversations/index.ts +1 -0
- package/src/resources/ai/index.ts +3 -0
- package/src/resources/ai/memory/namespaces/index.ts +8 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +11 -1
- package/src/resources/ai/memory/namespaces/profiles/index.ts +1 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +29 -4
- package/src/resources/ai/memory/namespaces/settings.ts +25 -27
- package/src/resources/ai/openai/chat.ts +3 -5
- package/src/resources/ai/tests/test-framework/v1/v1.ts +5 -5
- package/src/resources/ai/tools.ts +366 -0
- package/src/resources/browser-sessions/actions.ts +7 -7
- package/src/resources/browser-sessions/browser-sessions.ts +2 -2
- 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/compute/funcs/export.ts +41 -42
- package/src/resources/compute/funcs/funcs.ts +2 -1
- package/src/resources/compute/funcs/index.ts +6 -1
- package/src/resources/conferences/actions.ts +2 -1
- package/src/resources/email/dedicated-ips/dedicated-ips.ts +3 -2
- package/src/resources/email-events.ts +128 -147
- package/src/resources/email-messages/email-messages.ts +1 -7
- package/src/resources/email-templates.ts +17 -78
- package/src/resources/enterprises/enterprises.ts +2 -0
- package/src/resources/enterprises/index.ts +1 -0
- package/src/resources/enterprises/reputation/external-verification.ts +32 -34
- package/src/resources/enterprises/reputation/index.ts +2 -1
- package/src/resources/enterprises/reputation/reputation.ts +6 -4
- package/src/resources/enterprises/verify-email.ts +29 -30
- package/src/resources/index.ts +40 -1
- 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/messages/messages.ts +32 -2
- package/src/resources/messaging-profiles/messaging-profiles.ts +12 -0
- package/src/resources/number-lookup.ts +6 -0
- package/src/resources/pay-connectors.ts +7 -7
- package/src/resources/phone-numbers/index.ts +2 -0
- package/src/resources/phone-numbers/jobs.ts +22 -60
- package/src/resources/phone-numbers/phone-numbers.ts +4 -0
- package/src/resources/portouts/portouts.ts +2 -1
- package/src/resources/telephony-credentials.ts +74 -41
- package/src/resources/text-to-speech/text-to-speech.ts +81 -5
- package/src/resources/user-profile.ts +357 -0
- package/src/resources/voice-clones.ts +4 -4
- package/src/resources/webhooks.ts +226 -20
- package/src/resources/whatsapp/business-accounts/business-accounts.ts +0 -4
- package/src/resources/whatsapp/business-accounts/index.ts +0 -2
- package/src/resources/whatsapp/business-accounts/phone-numbers.ts +7 -98
- package/src/resources/whatsapp/hosted-signups.ts +18 -97
- package/src/resources/whatsapp/index.ts +4 -4
- package/src/resources/whatsapp/phone-numbers/index.ts +2 -2
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +11 -197
- package/src/resources/whatsapp/whatsapp.ts +8 -8
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/tts-integrations/actions.d.mts +0 -4
- package/resources/tts-integrations/actions.d.mts.map +0 -1
- package/resources/tts-integrations/actions.d.ts +0 -4
- package/resources/tts-integrations/actions.d.ts.map +0 -1
- package/resources/tts-integrations/actions.js +0 -9
- package/resources/tts-integrations/actions.js.map +0 -1
- package/resources/tts-integrations/actions.mjs +0 -5
- package/resources/tts-integrations/actions.mjs.map +0 -1
- package/resources/tts-integrations/index.d.mts +0 -3
- package/resources/tts-integrations/index.d.mts.map +0 -1
- package/resources/tts-integrations/index.d.ts +0 -3
- package/resources/tts-integrations/index.d.ts.map +0 -1
- package/resources/tts-integrations/index.js +0 -9
- package/resources/tts-integrations/index.js.map +0 -1
- package/resources/tts-integrations/index.mjs +0 -4
- package/resources/tts-integrations/index.mjs.map +0 -1
- package/resources/tts-integrations/tts-integrations.d.mts +0 -10
- package/resources/tts-integrations/tts-integrations.d.mts.map +0 -1
- package/resources/tts-integrations/tts-integrations.d.ts +0 -10
- package/resources/tts-integrations/tts-integrations.d.ts.map +0 -1
- package/resources/tts-integrations/tts-integrations.js +0 -17
- package/resources/tts-integrations/tts-integrations.js.map +0 -1
- package/resources/tts-integrations/tts-integrations.mjs +0 -12
- package/resources/tts-integrations/tts-integrations.mjs.map +0 -1
- package/resources/tts-integrations.d.mts +0 -2
- package/resources/tts-integrations.d.mts.map +0 -1
- package/resources/tts-integrations.d.ts +0 -2
- package/resources/tts-integrations.d.ts.map +0 -1
- package/resources/tts-integrations.js.map +0 -1
- package/resources/tts-integrations.mjs +0 -3
- package/resources/tts-integrations.mjs.map +0 -1
- package/src/resources/tts-integrations/actions.ts +0 -5
- package/src/resources/tts-integrations/index.ts +0 -4
- package/src/resources/tts-integrations/tts-integrations.ts +0 -15
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as APIsAPI from './apis';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* MCP servers on an instance, served to agents at one MCP endpoint.
|
|
11
|
+
*/
|
|
12
|
+
export class McpServers extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Lists the MCP servers the instance serves at `{gateway_url}/mcp`, without their
|
|
15
|
+
* credentials. The instance must be `ready`; otherwise the request answers `409`.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const mcpServers =
|
|
20
|
+
* await client.agentGateways.mcpServers.list(
|
|
21
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<McpServerListResponse> {
|
|
26
|
+
return this._client.get(path`/agent_gateways/${instanceID}/mcp_servers`, options);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Adds an MCP server. The instance serves its tools at `{gateway_url}/mcp`, each
|
|
31
|
+
* named with the server's `name` and a hyphen, to the keys granted the server and,
|
|
32
|
+
* with `open_to_every_key`, to every key. The instance must be `ready`; otherwise
|
|
33
|
+
* the request answers `409`.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const agentGatewayMcpServerResponse =
|
|
38
|
+
* await client.agentGateways.mcpServers.create(
|
|
39
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
40
|
+
* {
|
|
41
|
+
* name: 'orders',
|
|
42
|
+
* url: 'http://10.40.3.7:9000/mcp',
|
|
43
|
+
* auth: {
|
|
44
|
+
* type: 'api_key',
|
|
45
|
+
* value: 'example-orders-key',
|
|
46
|
+
* },
|
|
47
|
+
* forwarded_headers: ['X-Request-Id'],
|
|
48
|
+
* static_headers: { 'X-Env': 'prod' },
|
|
49
|
+
* },
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
create(
|
|
54
|
+
instanceID: string,
|
|
55
|
+
body: McpServerCreateParams,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): APIPromise<AgentGatewayMcpServerResponse> {
|
|
58
|
+
return this._client.post(path`/agent_gateways/${instanceID}/mcp_servers`, { body, ...options });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Removes an MCP server and returns it as it was. Its `id` stays in the tool
|
|
63
|
+
* permissions that name it until they are next set. The instance must be `ready`;
|
|
64
|
+
* otherwise the request answers `409`.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const agentGatewayMcpServerResponse =
|
|
69
|
+
* await client.agentGateways.mcpServers.delete(
|
|
70
|
+
* '88d5a97b-4080-4855-8bac-a39811b1dc24',
|
|
71
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
delete(
|
|
76
|
+
serverID: string,
|
|
77
|
+
params: McpServerDeleteParams,
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): APIPromise<AgentGatewayMcpServerResponse> {
|
|
80
|
+
const { instance_id } = params;
|
|
81
|
+
return this._client.delete(path`/agent_gateways/${instance_id}/mcp_servers/${serverID}`, options);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Changes an MCP server's settings. A field left out stays as it is. `auth` is
|
|
86
|
+
* replaced whole, `tools: []` exposes every tool, and `static_headers: {}` clears
|
|
87
|
+
* the headers. The instance must be `ready`; otherwise the request answers `409`.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const agentGatewayMcpServerResponse =
|
|
92
|
+
* await client.agentGateways.mcpServers.update(
|
|
93
|
+
* '88d5a97b-4080-4855-8bac-a39811b1dc24',
|
|
94
|
+
* {
|
|
95
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
96
|
+
* tools: ['get_order', 'create_ticket'],
|
|
97
|
+
* },
|
|
98
|
+
* );
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
update(
|
|
102
|
+
serverID: string,
|
|
103
|
+
params: McpServerUpdateParams,
|
|
104
|
+
options?: RequestOptions,
|
|
105
|
+
): APIPromise<AgentGatewayMcpServerResponse> {
|
|
106
|
+
const { instance_id, ...body } = params;
|
|
107
|
+
return this._client.patch(path`/agent_gateways/${instance_id}/mcp_servers/${serverID}`, {
|
|
108
|
+
body,
|
|
109
|
+
...options,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The gateway signs each request with AWS Signature Version 4. Without keys or a
|
|
116
|
+
* role, it uses the instance's own AWS identity. Keys are write-only.
|
|
117
|
+
*/
|
|
118
|
+
export interface AgentGatewayAwsSigV4Auth {
|
|
119
|
+
/**
|
|
120
|
+
* The AWS region to sign for.
|
|
121
|
+
*/
|
|
122
|
+
region: string;
|
|
123
|
+
|
|
124
|
+
type: 'aws_sigv4';
|
|
125
|
+
|
|
126
|
+
access_key_id?: string | null;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The ARN of a role for the gateway to assume.
|
|
130
|
+
*/
|
|
131
|
+
role_name?: string | null;
|
|
132
|
+
|
|
133
|
+
secret_access_key?: string | null;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The AWS service to sign for.
|
|
137
|
+
*/
|
|
138
|
+
service?: string;
|
|
139
|
+
|
|
140
|
+
session_token?: string | null;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface AgentGatewayMcpServer {
|
|
144
|
+
/**
|
|
145
|
+
* Identifies the server.
|
|
146
|
+
*/
|
|
147
|
+
id: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The server's outbound authentication method. Credentials are never returned.
|
|
151
|
+
*/
|
|
152
|
+
auth: APIsAPI.AgentGatewayShownAuth;
|
|
153
|
+
|
|
154
|
+
created_at: string | null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Headers copied from the agent's request, by name.
|
|
158
|
+
*/
|
|
159
|
+
forwarded_headers: Array<string>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* A name for the server, unique on the instance across MCP servers and APIs,
|
|
163
|
+
* regardless of case. Letters, digits, `_`, and `.`. The gateway prefixes the
|
|
164
|
+
* server's tools with it and a hyphen.
|
|
165
|
+
*/
|
|
166
|
+
name: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* `true` lets every key on the instance use the server, granted or not.
|
|
170
|
+
*/
|
|
171
|
+
open_to_every_key: boolean;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Headers sent on every request.
|
|
175
|
+
*/
|
|
176
|
+
static_headers: { [key: string]: string };
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The tools the server exposes to every key, by name. `[]` exposes every tool.
|
|
180
|
+
*/
|
|
181
|
+
tools: Array<string>;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* `http` for Streamable HTTP, or `sse` for Server-Sent Events.
|
|
185
|
+
*/
|
|
186
|
+
transport: 'http' | 'sse';
|
|
187
|
+
|
|
188
|
+
updated_at: string | null;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The server's MCP endpoint.
|
|
192
|
+
*/
|
|
193
|
+
url: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface AgentGatewayMcpServerResponse {
|
|
197
|
+
data: AgentGatewayMcpServer;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface McpServerListResponse {
|
|
201
|
+
data: Array<AgentGatewayMcpServer>;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export interface McpServerCreateParams {
|
|
205
|
+
/**
|
|
206
|
+
* A name for the server, unique on the instance across MCP servers and APIs,
|
|
207
|
+
* regardless of case. Up to 100 letters, digits, `_`, and `.`. The gateway
|
|
208
|
+
* prefixes the server's tools with it and a hyphen.
|
|
209
|
+
*/
|
|
210
|
+
name: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The server's MCP endpoint, `http` or `https`.
|
|
214
|
+
*/
|
|
215
|
+
url: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* How the gateway authenticates to the server. Replaced whole on an update;
|
|
219
|
+
* `{"type": "none"}` removes the credential.
|
|
220
|
+
*/
|
|
221
|
+
auth?:
|
|
222
|
+
| APIsAPI.AgentGatewayNoAuth
|
|
223
|
+
| APIsAPI.AgentGatewayStaticAuth
|
|
224
|
+
| APIsAPI.AgentGatewayOAuthClientCredentials
|
|
225
|
+
| APIsAPI.AgentGatewayPassthroughAuth
|
|
226
|
+
| AgentGatewayAwsSigV4Auth;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Headers copied from the agent's request, by name.
|
|
230
|
+
*/
|
|
231
|
+
forwarded_headers?: Array<string>;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* `true` lets every key on the instance use the server, granted or not.
|
|
235
|
+
*/
|
|
236
|
+
open_to_every_key?: boolean;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Headers sent on every request.
|
|
240
|
+
*/
|
|
241
|
+
static_headers?: { [key: string]: string };
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The tools the server exposes to every key, by name. `[]` exposes every tool.
|
|
245
|
+
*/
|
|
246
|
+
tools?: Array<string>;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* `http` for Streamable HTTP, or `sse` for Server-Sent Events.
|
|
250
|
+
*/
|
|
251
|
+
transport?: 'http' | 'sse';
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface McpServerDeleteParams {
|
|
255
|
+
/**
|
|
256
|
+
* The Agent Gateway's `id`.
|
|
257
|
+
*/
|
|
258
|
+
instance_id: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface McpServerUpdateParams {
|
|
262
|
+
/**
|
|
263
|
+
* Path param: The Agent Gateway's `id`.
|
|
264
|
+
*/
|
|
265
|
+
instance_id: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Body param: How the gateway authenticates to the server. Replaced whole on an
|
|
269
|
+
* update; `{"type": "none"}` removes the credential.
|
|
270
|
+
*/
|
|
271
|
+
auth?:
|
|
272
|
+
| APIsAPI.AgentGatewayNoAuth
|
|
273
|
+
| APIsAPI.AgentGatewayStaticAuth
|
|
274
|
+
| APIsAPI.AgentGatewayOAuthClientCredentials
|
|
275
|
+
| APIsAPI.AgentGatewayPassthroughAuth
|
|
276
|
+
| AgentGatewayAwsSigV4Auth;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Body param: Headers copied from the agent's request, by name.
|
|
280
|
+
*/
|
|
281
|
+
forwarded_headers?: Array<string>;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Body param: A name for the server, unique on the instance across MCP servers and
|
|
285
|
+
* APIs, regardless of case. Letters, digits, `_`, and `.`. The gateway prefixes
|
|
286
|
+
* the server's tools with it and a hyphen.
|
|
287
|
+
*/
|
|
288
|
+
name?: string;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Body param: `true` lets every key on the instance use the server, granted or
|
|
292
|
+
* not.
|
|
293
|
+
*/
|
|
294
|
+
open_to_every_key?: boolean;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Body param: Headers sent on every request.
|
|
298
|
+
*/
|
|
299
|
+
static_headers?: { [key: string]: string };
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Body param: The tools the server exposes to every key, by name. `[]` exposes
|
|
303
|
+
* every tool.
|
|
304
|
+
*/
|
|
305
|
+
tools?: Array<string>;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Body param: `http` for Streamable HTTP, or `sse` for Server-Sent Events.
|
|
309
|
+
*/
|
|
310
|
+
transport?: 'http' | 'sse';
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Body param: The server's MCP endpoint, `http` or `https`.
|
|
314
|
+
*/
|
|
315
|
+
url?: string;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export declare namespace McpServers {
|
|
319
|
+
export {
|
|
320
|
+
type AgentGatewayAwsSigV4Auth as AgentGatewayAwsSigV4Auth,
|
|
321
|
+
type AgentGatewayMcpServer as AgentGatewayMcpServer,
|
|
322
|
+
type AgentGatewayMcpServerResponse as AgentGatewayMcpServerResponse,
|
|
323
|
+
type McpServerListResponse as McpServerListResponse,
|
|
324
|
+
type McpServerCreateParams as McpServerCreateParams,
|
|
325
|
+
type McpServerDeleteParams as McpServerDeleteParams,
|
|
326
|
+
type McpServerUpdateParams as McpServerUpdateParams,
|
|
327
|
+
};
|
|
328
|
+
}
|
|
@@ -0,0 +1,348 @@
|
|
|
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
|
+
* Named sets of guardrails an instance applies to requests.
|
|
10
|
+
*/
|
|
11
|
+
export class Policies extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Lists the instance's policies, each in its current version.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const policies = await client.agentGateways.policies.list(
|
|
18
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<PolicyListResponse> {
|
|
23
|
+
return this._client.get(path`/agent_gateways/${instanceID}/policies`, options);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Creates a named set of guardrails. It applies from the next request on, to the
|
|
28
|
+
* requests that name it in `policies` and to those its
|
|
29
|
+
* [attachments](https://developers.telnyx.com/api-reference/agent-gateway-policy-attachments/attach-a-policy)
|
|
30
|
+
* match.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const agentGatewayPolicyResponse =
|
|
35
|
+
* await client.agentGateways.policies.create(
|
|
36
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
37
|
+
* {
|
|
38
|
+
* name: 'baseline',
|
|
39
|
+
* description: 'Mask personal data',
|
|
40
|
+
* guardrails: { add: ['mask-pii'] },
|
|
41
|
+
* },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
create(
|
|
46
|
+
instanceID: string,
|
|
47
|
+
body: PolicyCreateParams,
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): APIPromise<AgentGatewayPolicyResponse> {
|
|
50
|
+
return this._client.post(path`/agent_gateways/${instanceID}/policies`, { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Deletes a policy and every version of it, and returns it as it was. A policy
|
|
55
|
+
* that an attachment names, or that another policy builds on, cannot be deleted.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const agentGatewayPolicyResponse =
|
|
60
|
+
* await client.agentGateways.policies.delete('strict', {
|
|
61
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
delete(
|
|
66
|
+
name: string,
|
|
67
|
+
params: PolicyDeleteParams,
|
|
68
|
+
options?: RequestOptions,
|
|
69
|
+
): APIPromise<AgentGatewayPolicyResponse> {
|
|
70
|
+
const { instance_id } = params;
|
|
71
|
+
return this._client.delete(path`/agent_gateways/${instance_id}/policies/${name}`, options);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Returns one policy, in its current version.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const agentGatewayPolicyResponse =
|
|
80
|
+
* await client.agentGateways.policies.retrieve('strict', {
|
|
81
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
retrieve(
|
|
86
|
+
name: string,
|
|
87
|
+
params: PolicyRetrieveParams,
|
|
88
|
+
options?: RequestOptions,
|
|
89
|
+
): APIPromise<AgentGatewayPolicyResponse> {
|
|
90
|
+
const { instance_id } = params;
|
|
91
|
+
return this._client.get(path`/agent_gateways/${instance_id}/policies/${name}`, options);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Changes a policy, which publishes a new version of it. A field left out stays as
|
|
96
|
+
* it is; `guardrails` and `pipeline` are replaced whole, and `model: null` removes
|
|
97
|
+
* the condition.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* const agentGatewayPolicyResponse =
|
|
102
|
+
* await client.agentGateways.policies.update('strict', {
|
|
103
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
104
|
+
* description: 'Baseline plus a word check',
|
|
105
|
+
* });
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
update(
|
|
109
|
+
name: string,
|
|
110
|
+
params: PolicyUpdateParams,
|
|
111
|
+
options?: RequestOptions,
|
|
112
|
+
): APIPromise<AgentGatewayPolicyResponse> {
|
|
113
|
+
const { instance_id, ...body } = params;
|
|
114
|
+
return this._client.patch(path`/agent_gateways/${instance_id}/policies/${name}`, { body, ...options });
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A named set of guardrails.
|
|
120
|
+
*/
|
|
121
|
+
export interface AgentGatewayPolicy {
|
|
122
|
+
/**
|
|
123
|
+
* A policy this one builds on, by name. The policy starts with the base's
|
|
124
|
+
* guardrails.
|
|
125
|
+
*/
|
|
126
|
+
base: string | null;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* When the policy's current version was created. An update creates a new version.
|
|
130
|
+
*/
|
|
131
|
+
created_at: string | null;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* What the policy is for.
|
|
135
|
+
*/
|
|
136
|
+
description: string | null;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The guardrails a policy adds to its base's, and the ones it removes from them,
|
|
140
|
+
* by name.
|
|
141
|
+
*/
|
|
142
|
+
guardrails: AgentGatewayPolicyGuardrails;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* A condition on the model, by name or regular expression. The policy's guardrails
|
|
146
|
+
* run only on requests for a matching model. `null` matches every model.
|
|
147
|
+
*/
|
|
148
|
+
model: string | null;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* A name, unique on the instance. A request names the policy in its `policies`
|
|
152
|
+
* field.
|
|
153
|
+
*/
|
|
154
|
+
name: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Ordered steps that run in place of the policy's guardrails running
|
|
158
|
+
* independently.
|
|
159
|
+
*/
|
|
160
|
+
pipeline: AgentGatewayPolicyPipeline | null;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* When the policy last changed.
|
|
164
|
+
*/
|
|
165
|
+
updated_at: string | null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The guardrails a policy adds to its base's, and the ones it removes from them,
|
|
170
|
+
* by name.
|
|
171
|
+
*/
|
|
172
|
+
export interface AgentGatewayPolicyGuardrails {
|
|
173
|
+
/**
|
|
174
|
+
* Guardrails the policy runs in addition to its base's.
|
|
175
|
+
*/
|
|
176
|
+
add?: Array<string>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Guardrails from its base that the policy does not run.
|
|
180
|
+
*/
|
|
181
|
+
remove?: Array<string>;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Ordered steps that run in place of the policy's guardrails running
|
|
186
|
+
* independently.
|
|
187
|
+
*/
|
|
188
|
+
export interface AgentGatewayPolicyPipeline {
|
|
189
|
+
/**
|
|
190
|
+
* `before_request` runs the steps on the request, and `after_request` on the
|
|
191
|
+
* model's response.
|
|
192
|
+
*/
|
|
193
|
+
hook: 'before_request' | 'after_request';
|
|
194
|
+
|
|
195
|
+
steps: Array<AgentGatewayPolicyStep>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface AgentGatewayPolicyResponse {
|
|
199
|
+
/**
|
|
200
|
+
* A named set of guardrails.
|
|
201
|
+
*/
|
|
202
|
+
data: AgentGatewayPolicy;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* One pipeline step: a guardrail, and what happens when it passes, fails, or
|
|
207
|
+
* errors.
|
|
208
|
+
*/
|
|
209
|
+
export interface AgentGatewayPolicyStep {
|
|
210
|
+
/**
|
|
211
|
+
* A guardrail on the instance, by name.
|
|
212
|
+
*/
|
|
213
|
+
guardrail: string;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The response that replaces the model's when an outcome is `respond`. Required
|
|
217
|
+
* with `respond`.
|
|
218
|
+
*/
|
|
219
|
+
message?: string | null;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* What happens when the guardrail errors. Left out, the same as `on_fail`.
|
|
223
|
+
*/
|
|
224
|
+
on_error?: 'next' | 'allow' | 'block' | 'respond' | null;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* What happens when the guardrail fails.
|
|
228
|
+
*/
|
|
229
|
+
on_fail?: 'next' | 'allow' | 'block' | 'respond';
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* What happens when the guardrail passes. `next` goes on to the next step, `allow`
|
|
233
|
+
* allows the request, `block` blocks it, and `respond` answers with `message`.
|
|
234
|
+
*/
|
|
235
|
+
on_pass?: 'next' | 'allow' | 'block' | 'respond';
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* `true` hands the step's modified request, such as masked text, to the next step.
|
|
239
|
+
*/
|
|
240
|
+
pass_data?: boolean;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface PolicyListResponse {
|
|
244
|
+
data: Array<AgentGatewayPolicy>;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface PolicyCreateParams {
|
|
248
|
+
/**
|
|
249
|
+
* A name, unique on the instance. A request names the policy in its `policies`
|
|
250
|
+
* field.
|
|
251
|
+
*/
|
|
252
|
+
name: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* A policy this one builds on, by name. The policy starts with the base's
|
|
256
|
+
* guardrails.
|
|
257
|
+
*/
|
|
258
|
+
base?: string | null;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* What the policy is for.
|
|
262
|
+
*/
|
|
263
|
+
description?: string | null;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The guardrails a policy adds to its base's, and the ones it removes from them,
|
|
267
|
+
* by name.
|
|
268
|
+
*/
|
|
269
|
+
guardrails?: AgentGatewayPolicyGuardrails;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* A condition on the model, by name or regular expression. The policy's guardrails
|
|
273
|
+
* run only on requests for a matching model. `null` matches every model.
|
|
274
|
+
*/
|
|
275
|
+
model?: string | null;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Ordered steps that run in place of the policy's guardrails running
|
|
279
|
+
* independently.
|
|
280
|
+
*/
|
|
281
|
+
pipeline?: AgentGatewayPolicyPipeline | null;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export interface PolicyDeleteParams {
|
|
285
|
+
/**
|
|
286
|
+
* The Agent Gateway's `id`.
|
|
287
|
+
*/
|
|
288
|
+
instance_id: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface PolicyRetrieveParams {
|
|
292
|
+
/**
|
|
293
|
+
* The Agent Gateway's `id`.
|
|
294
|
+
*/
|
|
295
|
+
instance_id: string;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export interface PolicyUpdateParams {
|
|
299
|
+
/**
|
|
300
|
+
* Path param: The Agent Gateway's `id`.
|
|
301
|
+
*/
|
|
302
|
+
instance_id: string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Body param: A policy this one builds on, by name. The policy starts with the
|
|
306
|
+
* base's guardrails.
|
|
307
|
+
*/
|
|
308
|
+
base?: string | null;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Body param: What the policy is for.
|
|
312
|
+
*/
|
|
313
|
+
description?: string | null;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Body param: The guardrails a policy adds to its base's, and the ones it removes
|
|
317
|
+
* from them, by name.
|
|
318
|
+
*/
|
|
319
|
+
guardrails?: AgentGatewayPolicyGuardrails;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Body param: A condition on the model, by name or regular expression. The
|
|
323
|
+
* policy's guardrails run only on requests for a matching model. `null` matches
|
|
324
|
+
* every model.
|
|
325
|
+
*/
|
|
326
|
+
model?: string | null;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Body param: Ordered steps that run in place of the policy's guardrails running
|
|
330
|
+
* independently.
|
|
331
|
+
*/
|
|
332
|
+
pipeline?: AgentGatewayPolicyPipeline | null;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export declare namespace Policies {
|
|
336
|
+
export {
|
|
337
|
+
type AgentGatewayPolicy as AgentGatewayPolicy,
|
|
338
|
+
type AgentGatewayPolicyGuardrails as AgentGatewayPolicyGuardrails,
|
|
339
|
+
type AgentGatewayPolicyPipeline as AgentGatewayPolicyPipeline,
|
|
340
|
+
type AgentGatewayPolicyResponse as AgentGatewayPolicyResponse,
|
|
341
|
+
type AgentGatewayPolicyStep as AgentGatewayPolicyStep,
|
|
342
|
+
type PolicyListResponse as PolicyListResponse,
|
|
343
|
+
type PolicyCreateParams as PolicyCreateParams,
|
|
344
|
+
type PolicyDeleteParams as PolicyDeleteParams,
|
|
345
|
+
type PolicyRetrieveParams as PolicyRetrieveParams,
|
|
346
|
+
type PolicyUpdateParams as PolicyUpdateParams,
|
|
347
|
+
};
|
|
348
|
+
}
|