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,300 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* REST APIs on an instance, served to agents as tools.
|
|
6
|
+
*/
|
|
7
|
+
export declare class APIs extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Lists the REST APIs the instance serves as tools, without their credentials. The
|
|
10
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const apis = await client.agentGateways.apis.list(
|
|
15
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<APIListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Adds a REST API by its OpenAPI description. Each operation becomes a tool at
|
|
22
|
+
* `{gateway_url}/mcp`, named with the API's `name`, a hyphen, and the lowercased
|
|
23
|
+
* `operationId`. A description the gateway cannot fetch yields an API with no
|
|
24
|
+
* tools. The instance must be `ready`; otherwise the request answers `409`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const agentGatewayAPIResponse =
|
|
29
|
+
* await client.agentGateways.apis.create(
|
|
30
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
31
|
+
* {
|
|
32
|
+
* name: 'petstore',
|
|
33
|
+
* spec_url:
|
|
34
|
+
* 'https://petstore3.swagger.io/api/v3/openapi.json',
|
|
35
|
+
* base_url: 'https://petstore3.swagger.io/api/v3',
|
|
36
|
+
* open_to_every_key: true,
|
|
37
|
+
* },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
create(instanceID: string, body: APICreateParams, options?: RequestOptions): APIPromise<AgentGatewayAPIResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Removes an API and returns it as it was. An MCP server's `id` answers `404`. The
|
|
44
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const agentGatewayAPIResponse =
|
|
49
|
+
* await client.agentGateways.apis.delete(
|
|
50
|
+
* 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
|
|
51
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
delete(apiID: string, params: APIDeleteParams, options?: RequestOptions): APIPromise<AgentGatewayAPIResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Changes an API's settings. A field left out stays as it is, `"base_url": null`
|
|
58
|
+
* clears the base URL, and `auth` is replaced whole. The instance must be `ready`;
|
|
59
|
+
* otherwise the request answers `409`.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const agentGatewayAPIResponse =
|
|
64
|
+
* await client.agentGateways.apis.update(
|
|
65
|
+
* 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
|
|
66
|
+
* {
|
|
67
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
68
|
+
* tools: ['findpetsbystatus', 'getpetbyid'],
|
|
69
|
+
* },
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
update(apiID: string, params: APIUpdateParams, options?: RequestOptions): APIPromise<AgentGatewayAPIResponse>;
|
|
74
|
+
}
|
|
75
|
+
export interface AgentGatewayAPI {
|
|
76
|
+
/**
|
|
77
|
+
* Identifies the API.
|
|
78
|
+
*/
|
|
79
|
+
id: string;
|
|
80
|
+
/**
|
|
81
|
+
* The server's outbound authentication method. Credentials are never returned.
|
|
82
|
+
*/
|
|
83
|
+
auth: AgentGatewayShownAuth;
|
|
84
|
+
/**
|
|
85
|
+
* Where the gateway sends the API's requests. `null` takes the description's first
|
|
86
|
+
* `servers` entry.
|
|
87
|
+
*/
|
|
88
|
+
base_url: string | null;
|
|
89
|
+
created_at: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Headers copied from the agent's request, by name.
|
|
92
|
+
*/
|
|
93
|
+
forwarded_headers: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
* A name for the API, unique on the instance across MCP servers and APIs,
|
|
96
|
+
* regardless of case. Letters, digits, `_`, and `.`. The gateway prefixes the
|
|
97
|
+
* API's tools with it and a hyphen.
|
|
98
|
+
*/
|
|
99
|
+
name: string;
|
|
100
|
+
/**
|
|
101
|
+
* `true` lets every key on the instance use the server, granted or not.
|
|
102
|
+
*/
|
|
103
|
+
open_to_every_key: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* The URL of the API's OpenAPI description.
|
|
106
|
+
*/
|
|
107
|
+
spec_url: string;
|
|
108
|
+
/**
|
|
109
|
+
* Headers sent on every request.
|
|
110
|
+
*/
|
|
111
|
+
static_headers: {
|
|
112
|
+
[key: string]: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* The operations the API exposes as tools, by tool name. `[]` exposes every
|
|
116
|
+
* operation.
|
|
117
|
+
*/
|
|
118
|
+
tools: Array<string>;
|
|
119
|
+
updated_at: string | null;
|
|
120
|
+
}
|
|
121
|
+
export interface AgentGatewayAPIResponse {
|
|
122
|
+
data: AgentGatewayAPI;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The gateway sends no credential.
|
|
126
|
+
*/
|
|
127
|
+
export interface AgentGatewayNoAuth {
|
|
128
|
+
type?: 'none';
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The gateway gets its own access token with the `client_credentials` grant and
|
|
132
|
+
* sends it as a bearer token on every request, renewing it before it expires. The
|
|
133
|
+
* client ID and secret are write-only.
|
|
134
|
+
*/
|
|
135
|
+
export interface AgentGatewayOAuthClientCredentials {
|
|
136
|
+
client_id: string;
|
|
137
|
+
client_secret: string;
|
|
138
|
+
/**
|
|
139
|
+
* The OAuth provider's token endpoint.
|
|
140
|
+
*/
|
|
141
|
+
token_url: string;
|
|
142
|
+
type: 'oauth_client_credentials';
|
|
143
|
+
/**
|
|
144
|
+
* The token's audience, sent in the token request.
|
|
145
|
+
*/
|
|
146
|
+
audience?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* Whether the client ID and secret go in the token request's body or as HTTP Basic
|
|
149
|
+
* authentication.
|
|
150
|
+
*/
|
|
151
|
+
credentials_in?: 'body' | 'basic';
|
|
152
|
+
/**
|
|
153
|
+
* The resource the token is for, sent in the token request.
|
|
154
|
+
*/
|
|
155
|
+
resource?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* The scopes to request.
|
|
158
|
+
*/
|
|
159
|
+
scopes?: Array<string>;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The gateway forwards the agent's own `Authorization` header to the server
|
|
163
|
+
* unchanged.
|
|
164
|
+
*/
|
|
165
|
+
export interface AgentGatewayPassthroughAuth {
|
|
166
|
+
type?: 'passthrough';
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* The server's outbound authentication method. Credentials are never returned.
|
|
170
|
+
*/
|
|
171
|
+
export interface AgentGatewayShownAuth {
|
|
172
|
+
/**
|
|
173
|
+
* The method's `type`.
|
|
174
|
+
*/
|
|
175
|
+
type: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* A static credential the gateway sends on every request. Write-only: responses
|
|
179
|
+
* show its `type` only.
|
|
180
|
+
*/
|
|
181
|
+
export interface AgentGatewayStaticAuth {
|
|
182
|
+
/**
|
|
183
|
+
* How the credential is sent: `api_key` as `X-API-Key: <value>`, `bearer_token` as
|
|
184
|
+
* `Authorization: Bearer <value>`, `basic` as
|
|
185
|
+
* `Authorization: Basic <base64 of value>` with `value` in the form
|
|
186
|
+
* `user:password`, `token` as `Authorization: token <value>`, and `authorization`
|
|
187
|
+
* as `Authorization: <value>`.
|
|
188
|
+
*/
|
|
189
|
+
type: 'api_key' | 'bearer_token' | 'basic' | 'token' | 'authorization';
|
|
190
|
+
/**
|
|
191
|
+
* The credential.
|
|
192
|
+
*/
|
|
193
|
+
value: string;
|
|
194
|
+
/**
|
|
195
|
+
* A header name that replaces `X-API-Key` or `Authorization`.
|
|
196
|
+
*/
|
|
197
|
+
header?: string | null;
|
|
198
|
+
}
|
|
199
|
+
export interface APIListResponse {
|
|
200
|
+
data: Array<AgentGatewayAPI>;
|
|
201
|
+
}
|
|
202
|
+
export interface APICreateParams {
|
|
203
|
+
/**
|
|
204
|
+
* A name for the API, unique on the instance across MCP servers and APIs,
|
|
205
|
+
* regardless of case. Up to 100 letters, digits, `_`, and `.`. The gateway
|
|
206
|
+
* prefixes the API's tools with it and a hyphen.
|
|
207
|
+
*/
|
|
208
|
+
name: string;
|
|
209
|
+
/**
|
|
210
|
+
* The URL of the API's OpenAPI description: OpenAPI 3.0, OpenAPI 3.1, or Swagger
|
|
211
|
+
* 2.0.
|
|
212
|
+
*/
|
|
213
|
+
spec_url: string;
|
|
214
|
+
/**
|
|
215
|
+
* How the gateway authenticates to the API. AWS Signature Version 4 is for MCP
|
|
216
|
+
* servers only. Replaced whole on an update.
|
|
217
|
+
*/
|
|
218
|
+
auth?: AgentGatewayNoAuth | AgentGatewayStaticAuth | AgentGatewayOAuthClientCredentials | AgentGatewayPassthroughAuth;
|
|
219
|
+
/**
|
|
220
|
+
* Where the gateway sends the API's requests. Without it, the gateway takes the
|
|
221
|
+
* description's first `servers` entry.
|
|
222
|
+
*/
|
|
223
|
+
base_url?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
* Headers copied from the agent's request, by name.
|
|
226
|
+
*/
|
|
227
|
+
forwarded_headers?: Array<string>;
|
|
228
|
+
/**
|
|
229
|
+
* `true` lets every key on the instance use the server, granted or not.
|
|
230
|
+
*/
|
|
231
|
+
open_to_every_key?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Headers sent on every request.
|
|
234
|
+
*/
|
|
235
|
+
static_headers?: {
|
|
236
|
+
[key: string]: string;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* The operations the API exposes as tools, by tool name. `[]` exposes every
|
|
240
|
+
* operation.
|
|
241
|
+
*/
|
|
242
|
+
tools?: Array<string>;
|
|
243
|
+
}
|
|
244
|
+
export interface APIDeleteParams {
|
|
245
|
+
/**
|
|
246
|
+
* The Agent Gateway's `id`.
|
|
247
|
+
*/
|
|
248
|
+
instance_id: string;
|
|
249
|
+
}
|
|
250
|
+
export interface APIUpdateParams {
|
|
251
|
+
/**
|
|
252
|
+
* Path param: The Agent Gateway's `id`.
|
|
253
|
+
*/
|
|
254
|
+
instance_id: string;
|
|
255
|
+
/**
|
|
256
|
+
* Body param: How the gateway authenticates to the API. AWS Signature Version 4 is
|
|
257
|
+
* for MCP servers only. Replaced whole on an update.
|
|
258
|
+
*/
|
|
259
|
+
auth?: AgentGatewayNoAuth | AgentGatewayStaticAuth | AgentGatewayOAuthClientCredentials | AgentGatewayPassthroughAuth;
|
|
260
|
+
/**
|
|
261
|
+
* Body param: Where the gateway sends the API's requests. Without it, the gateway
|
|
262
|
+
* takes the description's first `servers` entry.
|
|
263
|
+
*/
|
|
264
|
+
base_url?: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* Body param: Headers copied from the agent's request, by name.
|
|
267
|
+
*/
|
|
268
|
+
forwarded_headers?: Array<string>;
|
|
269
|
+
/**
|
|
270
|
+
* Body param: A name for the API, unique on the instance across MCP servers and
|
|
271
|
+
* APIs, regardless of case. Letters, digits, `_`, and `.`. The gateway prefixes
|
|
272
|
+
* the API's tools with it and a hyphen.
|
|
273
|
+
*/
|
|
274
|
+
name?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Body param: `true` lets every key on the instance use the server, granted or
|
|
277
|
+
* not.
|
|
278
|
+
*/
|
|
279
|
+
open_to_every_key?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Body param: The URL of the API's OpenAPI description: OpenAPI 3.0, OpenAPI 3.1,
|
|
282
|
+
* or Swagger 2.0.
|
|
283
|
+
*/
|
|
284
|
+
spec_url?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Body param: Headers sent on every request.
|
|
287
|
+
*/
|
|
288
|
+
static_headers?: {
|
|
289
|
+
[key: string]: string;
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* Body param: The operations the API exposes as tools, by tool name. `[]` exposes
|
|
293
|
+
* every operation.
|
|
294
|
+
*/
|
|
295
|
+
tools?: Array<string>;
|
|
296
|
+
}
|
|
297
|
+
export declare namespace APIs {
|
|
298
|
+
export { type AgentGatewayAPI as AgentGatewayAPI, type AgentGatewayAPIResponse as AgentGatewayAPIResponse, type AgentGatewayNoAuth as AgentGatewayNoAuth, type AgentGatewayOAuthClientCredentials as AgentGatewayOAuthClientCredentials, type AgentGatewayPassthroughAuth as AgentGatewayPassthroughAuth, type AgentGatewayShownAuth as AgentGatewayShownAuth, type AgentGatewayStaticAuth as AgentGatewayStaticAuth, type APIListResponse as APIListResponse, type APICreateParams as APICreateParams, type APIDeleteParams as APIDeleteParams, type APIUpdateParams as APIUpdateParams, };
|
|
299
|
+
}
|
|
300
|
+
//# sourceMappingURL=apis.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apis.d.mts","sourceRoot":"","sources":["../../src/resources/agent-gateways/apis.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI/E;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAKtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAIvC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAC;IAE5B;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,iBAAiB,EA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AAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAE3C;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* REST APIs on an instance, served to agents as tools.
|
|
6
|
+
*/
|
|
7
|
+
export declare class APIs extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Lists the REST APIs the instance serves as tools, without their credentials. The
|
|
10
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const apis = await client.agentGateways.apis.list(
|
|
15
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<APIListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Adds a REST API by its OpenAPI description. Each operation becomes a tool at
|
|
22
|
+
* `{gateway_url}/mcp`, named with the API's `name`, a hyphen, and the lowercased
|
|
23
|
+
* `operationId`. A description the gateway cannot fetch yields an API with no
|
|
24
|
+
* tools. The instance must be `ready`; otherwise the request answers `409`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const agentGatewayAPIResponse =
|
|
29
|
+
* await client.agentGateways.apis.create(
|
|
30
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
31
|
+
* {
|
|
32
|
+
* name: 'petstore',
|
|
33
|
+
* spec_url:
|
|
34
|
+
* 'https://petstore3.swagger.io/api/v3/openapi.json',
|
|
35
|
+
* base_url: 'https://petstore3.swagger.io/api/v3',
|
|
36
|
+
* open_to_every_key: true,
|
|
37
|
+
* },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
create(instanceID: string, body: APICreateParams, options?: RequestOptions): APIPromise<AgentGatewayAPIResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Removes an API and returns it as it was. An MCP server's `id` answers `404`. The
|
|
44
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const agentGatewayAPIResponse =
|
|
49
|
+
* await client.agentGateways.apis.delete(
|
|
50
|
+
* 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
|
|
51
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
delete(apiID: string, params: APIDeleteParams, options?: RequestOptions): APIPromise<AgentGatewayAPIResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Changes an API's settings. A field left out stays as it is, `"base_url": null`
|
|
58
|
+
* clears the base URL, and `auth` is replaced whole. The instance must be `ready`;
|
|
59
|
+
* otherwise the request answers `409`.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const agentGatewayAPIResponse =
|
|
64
|
+
* await client.agentGateways.apis.update(
|
|
65
|
+
* 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
|
|
66
|
+
* {
|
|
67
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
68
|
+
* tools: ['findpetsbystatus', 'getpetbyid'],
|
|
69
|
+
* },
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
update(apiID: string, params: APIUpdateParams, options?: RequestOptions): APIPromise<AgentGatewayAPIResponse>;
|
|
74
|
+
}
|
|
75
|
+
export interface AgentGatewayAPI {
|
|
76
|
+
/**
|
|
77
|
+
* Identifies the API.
|
|
78
|
+
*/
|
|
79
|
+
id: string;
|
|
80
|
+
/**
|
|
81
|
+
* The server's outbound authentication method. Credentials are never returned.
|
|
82
|
+
*/
|
|
83
|
+
auth: AgentGatewayShownAuth;
|
|
84
|
+
/**
|
|
85
|
+
* Where the gateway sends the API's requests. `null` takes the description's first
|
|
86
|
+
* `servers` entry.
|
|
87
|
+
*/
|
|
88
|
+
base_url: string | null;
|
|
89
|
+
created_at: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Headers copied from the agent's request, by name.
|
|
92
|
+
*/
|
|
93
|
+
forwarded_headers: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
* A name for the API, unique on the instance across MCP servers and APIs,
|
|
96
|
+
* regardless of case. Letters, digits, `_`, and `.`. The gateway prefixes the
|
|
97
|
+
* API's tools with it and a hyphen.
|
|
98
|
+
*/
|
|
99
|
+
name: string;
|
|
100
|
+
/**
|
|
101
|
+
* `true` lets every key on the instance use the server, granted or not.
|
|
102
|
+
*/
|
|
103
|
+
open_to_every_key: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* The URL of the API's OpenAPI description.
|
|
106
|
+
*/
|
|
107
|
+
spec_url: string;
|
|
108
|
+
/**
|
|
109
|
+
* Headers sent on every request.
|
|
110
|
+
*/
|
|
111
|
+
static_headers: {
|
|
112
|
+
[key: string]: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* The operations the API exposes as tools, by tool name. `[]` exposes every
|
|
116
|
+
* operation.
|
|
117
|
+
*/
|
|
118
|
+
tools: Array<string>;
|
|
119
|
+
updated_at: string | null;
|
|
120
|
+
}
|
|
121
|
+
export interface AgentGatewayAPIResponse {
|
|
122
|
+
data: AgentGatewayAPI;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The gateway sends no credential.
|
|
126
|
+
*/
|
|
127
|
+
export interface AgentGatewayNoAuth {
|
|
128
|
+
type?: 'none';
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The gateway gets its own access token with the `client_credentials` grant and
|
|
132
|
+
* sends it as a bearer token on every request, renewing it before it expires. The
|
|
133
|
+
* client ID and secret are write-only.
|
|
134
|
+
*/
|
|
135
|
+
export interface AgentGatewayOAuthClientCredentials {
|
|
136
|
+
client_id: string;
|
|
137
|
+
client_secret: string;
|
|
138
|
+
/**
|
|
139
|
+
* The OAuth provider's token endpoint.
|
|
140
|
+
*/
|
|
141
|
+
token_url: string;
|
|
142
|
+
type: 'oauth_client_credentials';
|
|
143
|
+
/**
|
|
144
|
+
* The token's audience, sent in the token request.
|
|
145
|
+
*/
|
|
146
|
+
audience?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* Whether the client ID and secret go in the token request's body or as HTTP Basic
|
|
149
|
+
* authentication.
|
|
150
|
+
*/
|
|
151
|
+
credentials_in?: 'body' | 'basic';
|
|
152
|
+
/**
|
|
153
|
+
* The resource the token is for, sent in the token request.
|
|
154
|
+
*/
|
|
155
|
+
resource?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* The scopes to request.
|
|
158
|
+
*/
|
|
159
|
+
scopes?: Array<string>;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The gateway forwards the agent's own `Authorization` header to the server
|
|
163
|
+
* unchanged.
|
|
164
|
+
*/
|
|
165
|
+
export interface AgentGatewayPassthroughAuth {
|
|
166
|
+
type?: 'passthrough';
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* The server's outbound authentication method. Credentials are never returned.
|
|
170
|
+
*/
|
|
171
|
+
export interface AgentGatewayShownAuth {
|
|
172
|
+
/**
|
|
173
|
+
* The method's `type`.
|
|
174
|
+
*/
|
|
175
|
+
type: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* A static credential the gateway sends on every request. Write-only: responses
|
|
179
|
+
* show its `type` only.
|
|
180
|
+
*/
|
|
181
|
+
export interface AgentGatewayStaticAuth {
|
|
182
|
+
/**
|
|
183
|
+
* How the credential is sent: `api_key` as `X-API-Key: <value>`, `bearer_token` as
|
|
184
|
+
* `Authorization: Bearer <value>`, `basic` as
|
|
185
|
+
* `Authorization: Basic <base64 of value>` with `value` in the form
|
|
186
|
+
* `user:password`, `token` as `Authorization: token <value>`, and `authorization`
|
|
187
|
+
* as `Authorization: <value>`.
|
|
188
|
+
*/
|
|
189
|
+
type: 'api_key' | 'bearer_token' | 'basic' | 'token' | 'authorization';
|
|
190
|
+
/**
|
|
191
|
+
* The credential.
|
|
192
|
+
*/
|
|
193
|
+
value: string;
|
|
194
|
+
/**
|
|
195
|
+
* A header name that replaces `X-API-Key` or `Authorization`.
|
|
196
|
+
*/
|
|
197
|
+
header?: string | null;
|
|
198
|
+
}
|
|
199
|
+
export interface APIListResponse {
|
|
200
|
+
data: Array<AgentGatewayAPI>;
|
|
201
|
+
}
|
|
202
|
+
export interface APICreateParams {
|
|
203
|
+
/**
|
|
204
|
+
* A name for the API, unique on the instance across MCP servers and APIs,
|
|
205
|
+
* regardless of case. Up to 100 letters, digits, `_`, and `.`. The gateway
|
|
206
|
+
* prefixes the API's tools with it and a hyphen.
|
|
207
|
+
*/
|
|
208
|
+
name: string;
|
|
209
|
+
/**
|
|
210
|
+
* The URL of the API's OpenAPI description: OpenAPI 3.0, OpenAPI 3.1, or Swagger
|
|
211
|
+
* 2.0.
|
|
212
|
+
*/
|
|
213
|
+
spec_url: string;
|
|
214
|
+
/**
|
|
215
|
+
* How the gateway authenticates to the API. AWS Signature Version 4 is for MCP
|
|
216
|
+
* servers only. Replaced whole on an update.
|
|
217
|
+
*/
|
|
218
|
+
auth?: AgentGatewayNoAuth | AgentGatewayStaticAuth | AgentGatewayOAuthClientCredentials | AgentGatewayPassthroughAuth;
|
|
219
|
+
/**
|
|
220
|
+
* Where the gateway sends the API's requests. Without it, the gateway takes the
|
|
221
|
+
* description's first `servers` entry.
|
|
222
|
+
*/
|
|
223
|
+
base_url?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
* Headers copied from the agent's request, by name.
|
|
226
|
+
*/
|
|
227
|
+
forwarded_headers?: Array<string>;
|
|
228
|
+
/**
|
|
229
|
+
* `true` lets every key on the instance use the server, granted or not.
|
|
230
|
+
*/
|
|
231
|
+
open_to_every_key?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Headers sent on every request.
|
|
234
|
+
*/
|
|
235
|
+
static_headers?: {
|
|
236
|
+
[key: string]: string;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* The operations the API exposes as tools, by tool name. `[]` exposes every
|
|
240
|
+
* operation.
|
|
241
|
+
*/
|
|
242
|
+
tools?: Array<string>;
|
|
243
|
+
}
|
|
244
|
+
export interface APIDeleteParams {
|
|
245
|
+
/**
|
|
246
|
+
* The Agent Gateway's `id`.
|
|
247
|
+
*/
|
|
248
|
+
instance_id: string;
|
|
249
|
+
}
|
|
250
|
+
export interface APIUpdateParams {
|
|
251
|
+
/**
|
|
252
|
+
* Path param: The Agent Gateway's `id`.
|
|
253
|
+
*/
|
|
254
|
+
instance_id: string;
|
|
255
|
+
/**
|
|
256
|
+
* Body param: How the gateway authenticates to the API. AWS Signature Version 4 is
|
|
257
|
+
* for MCP servers only. Replaced whole on an update.
|
|
258
|
+
*/
|
|
259
|
+
auth?: AgentGatewayNoAuth | AgentGatewayStaticAuth | AgentGatewayOAuthClientCredentials | AgentGatewayPassthroughAuth;
|
|
260
|
+
/**
|
|
261
|
+
* Body param: Where the gateway sends the API's requests. Without it, the gateway
|
|
262
|
+
* takes the description's first `servers` entry.
|
|
263
|
+
*/
|
|
264
|
+
base_url?: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* Body param: Headers copied from the agent's request, by name.
|
|
267
|
+
*/
|
|
268
|
+
forwarded_headers?: Array<string>;
|
|
269
|
+
/**
|
|
270
|
+
* Body param: A name for the API, unique on the instance across MCP servers and
|
|
271
|
+
* APIs, regardless of case. Letters, digits, `_`, and `.`. The gateway prefixes
|
|
272
|
+
* the API's tools with it and a hyphen.
|
|
273
|
+
*/
|
|
274
|
+
name?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Body param: `true` lets every key on the instance use the server, granted or
|
|
277
|
+
* not.
|
|
278
|
+
*/
|
|
279
|
+
open_to_every_key?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Body param: The URL of the API's OpenAPI description: OpenAPI 3.0, OpenAPI 3.1,
|
|
282
|
+
* or Swagger 2.0.
|
|
283
|
+
*/
|
|
284
|
+
spec_url?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Body param: Headers sent on every request.
|
|
287
|
+
*/
|
|
288
|
+
static_headers?: {
|
|
289
|
+
[key: string]: string;
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* Body param: The operations the API exposes as tools, by tool name. `[]` exposes
|
|
293
|
+
* every operation.
|
|
294
|
+
*/
|
|
295
|
+
tools?: Array<string>;
|
|
296
|
+
}
|
|
297
|
+
export declare namespace APIs {
|
|
298
|
+
export { type AgentGatewayAPI as AgentGatewayAPI, type AgentGatewayAPIResponse as AgentGatewayAPIResponse, type AgentGatewayNoAuth as AgentGatewayNoAuth, type AgentGatewayOAuthClientCredentials as AgentGatewayOAuthClientCredentials, type AgentGatewayPassthroughAuth as AgentGatewayPassthroughAuth, type AgentGatewayShownAuth as AgentGatewayShownAuth, type AgentGatewayStaticAuth as AgentGatewayStaticAuth, type APIListResponse as APIListResponse, type APICreateParams as APICreateParams, type APIDeleteParams as APIDeleteParams, type APIUpdateParams as APIUpdateParams, };
|
|
299
|
+
}
|
|
300
|
+
//# sourceMappingURL=apis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apis.d.ts","sourceRoot":"","sources":["../../src/resources/agent-gateways/apis.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI/E;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAKtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAIvC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAA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