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,210 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as ToolPermissionsAPI from "./tool-permissions.mjs";
|
|
3
|
+
import { ToolPermissionCreateParams, ToolPermissionListParams, ToolPermissions } from "./tool-permissions.mjs";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Teams on an instance: shared model lists, budgets, and rate limits.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Teams extends APIResource {
|
|
10
|
+
toolPermissions: ToolPermissionsAPI.ToolPermissions;
|
|
11
|
+
/**
|
|
12
|
+
* Lists the instance's teams. The instance must be `ready`; otherwise the request
|
|
13
|
+
* answers `409`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const teams = await client.agentGateways.teams.list(
|
|
18
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<TeamListResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a team on the instance. A team is a model list, a budget, and rate
|
|
25
|
+
* limits that its keys share. Names need not be unique; the `id` identifies the
|
|
26
|
+
* team. The instance must be `ready`; otherwise the request answers `409`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const agentGatewayTeamResponse =
|
|
31
|
+
* await client.agentGateways.teams.create(
|
|
32
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
33
|
+
* {
|
|
34
|
+
* name: 'support',
|
|
35
|
+
* budget_resets_every: '30d',
|
|
36
|
+
* max_budget: 50,
|
|
37
|
+
* models: ['GLM-5.3-Flash', 'Qwen3.8-27B-nothink'],
|
|
38
|
+
* requests_per_minute: 120,
|
|
39
|
+
* },
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
create(instanceID: string, body: TeamCreateParams, options?: RequestOptions): APIPromise<AgentGatewayTeamResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Deletes a team that has no keys and returns it. A team that still has keys
|
|
46
|
+
* answers `409`; delete or move its keys first. The instance must be `ready`;
|
|
47
|
+
* otherwise the request answers `409`.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const agentGatewayTeamResponse =
|
|
52
|
+
* await client.agentGateways.teams.delete(
|
|
53
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
54
|
+
* { instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996' },
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
delete(teamID: string, params: TeamDeleteParams, options?: RequestOptions): APIPromise<AgentGatewayTeamResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Changes a team's settings. A field left out stays as it is, and `null` clears
|
|
61
|
+
* it. `models: []` lifts the model restriction. Setting `blocked` to `true` makes
|
|
62
|
+
* the instance refuse every key in the team with `401`. The instance must be
|
|
63
|
+
* `ready`; otherwise the request answers `409`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const agentGatewayTeamResponse =
|
|
68
|
+
* await client.agentGateways.teams.update(
|
|
69
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
70
|
+
* {
|
|
71
|
+
* instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
72
|
+
* max_budget: 100,
|
|
73
|
+
* },
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
update(teamID: string, params: TeamUpdateParams, options?: RequestOptions): APIPromise<AgentGatewayTeamResponse>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A team on an instance: a model list, a budget, and rate limits that its keys
|
|
81
|
+
* share.
|
|
82
|
+
*/
|
|
83
|
+
export interface AgentGatewayTeam {
|
|
84
|
+
/**
|
|
85
|
+
* Identifies the team.
|
|
86
|
+
*/
|
|
87
|
+
id: string;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the instance refuses every key in the team.
|
|
90
|
+
*/
|
|
91
|
+
blocked: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* When the team's spend next resets.
|
|
94
|
+
*/
|
|
95
|
+
budget_resets_at: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* How often the team's spend resets, such as `30d`.
|
|
98
|
+
*/
|
|
99
|
+
budget_resets_every: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* When the team was created.
|
|
102
|
+
*/
|
|
103
|
+
created_at: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* The most the team's keys may spend together, in USD, until the budget resets.
|
|
106
|
+
*/
|
|
107
|
+
max_budget: number | null;
|
|
108
|
+
/**
|
|
109
|
+
* The models the team's keys may use. Empty means every model the instance serves.
|
|
110
|
+
*/
|
|
111
|
+
models: Array<string>;
|
|
112
|
+
/**
|
|
113
|
+
* A label for people. Names need not be unique.
|
|
114
|
+
*/
|
|
115
|
+
name: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* The most requests the team's keys may make per minute, together.
|
|
118
|
+
*/
|
|
119
|
+
requests_per_minute: number | null;
|
|
120
|
+
/**
|
|
121
|
+
* What the team's keys have spent since the budget last reset, in USD.
|
|
122
|
+
*/
|
|
123
|
+
spend: number;
|
|
124
|
+
/**
|
|
125
|
+
* The most tokens the team's keys may use per minute, together.
|
|
126
|
+
*/
|
|
127
|
+
tokens_per_minute: number | null;
|
|
128
|
+
}
|
|
129
|
+
export interface AgentGatewayTeamResponse {
|
|
130
|
+
/**
|
|
131
|
+
* A team on an instance: a model list, a budget, and rate limits that its keys
|
|
132
|
+
* share.
|
|
133
|
+
*/
|
|
134
|
+
data: AgentGatewayTeam;
|
|
135
|
+
}
|
|
136
|
+
export interface TeamListResponse {
|
|
137
|
+
data: Array<AgentGatewayTeam>;
|
|
138
|
+
}
|
|
139
|
+
export interface TeamCreateParams {
|
|
140
|
+
/**
|
|
141
|
+
* A label for people.
|
|
142
|
+
*/
|
|
143
|
+
name: string;
|
|
144
|
+
/**
|
|
145
|
+
* How often the spend resets: a number and a unit, `s`, `m`, `h`, or `d`.
|
|
146
|
+
*/
|
|
147
|
+
budget_resets_every?: string | null;
|
|
148
|
+
/**
|
|
149
|
+
* The most the team's keys may spend together, in USD.
|
|
150
|
+
*/
|
|
151
|
+
max_budget?: number | null;
|
|
152
|
+
/**
|
|
153
|
+
* The models the team's keys may use. Leave it out to allow every model.
|
|
154
|
+
*/
|
|
155
|
+
models?: Array<string> | null;
|
|
156
|
+
/**
|
|
157
|
+
* The most requests the team's keys may make per minute, together.
|
|
158
|
+
*/
|
|
159
|
+
requests_per_minute?: number | null;
|
|
160
|
+
/**
|
|
161
|
+
* The most tokens the team's keys may use per minute, together.
|
|
162
|
+
*/
|
|
163
|
+
tokens_per_minute?: number | null;
|
|
164
|
+
}
|
|
165
|
+
export interface TeamDeleteParams {
|
|
166
|
+
/**
|
|
167
|
+
* The Agent Gateway's `id`.
|
|
168
|
+
*/
|
|
169
|
+
instance_id: string;
|
|
170
|
+
}
|
|
171
|
+
export interface TeamUpdateParams {
|
|
172
|
+
/**
|
|
173
|
+
* Path param: The Agent Gateway's `id`.
|
|
174
|
+
*/
|
|
175
|
+
instance_id: string;
|
|
176
|
+
/**
|
|
177
|
+
* Body param: `true` makes the instance refuse every key in the team; `false` lets
|
|
178
|
+
* them through again.
|
|
179
|
+
*/
|
|
180
|
+
blocked?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Body param: How often the spend resets.
|
|
183
|
+
*/
|
|
184
|
+
budget_resets_every?: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* Body param: The most the team's keys may spend together, in USD.
|
|
187
|
+
*/
|
|
188
|
+
max_budget?: number | null;
|
|
189
|
+
/**
|
|
190
|
+
* Body param: The models the team's keys may use. `[]` allows every model.
|
|
191
|
+
*/
|
|
192
|
+
models?: Array<string>;
|
|
193
|
+
/**
|
|
194
|
+
* Body param: A label for people.
|
|
195
|
+
*/
|
|
196
|
+
name?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Body param: The most requests the team's keys may make per minute, together.
|
|
199
|
+
*/
|
|
200
|
+
requests_per_minute?: number | null;
|
|
201
|
+
/**
|
|
202
|
+
* Body param: The most tokens the team's keys may use per minute, together.
|
|
203
|
+
*/
|
|
204
|
+
tokens_per_minute?: number | null;
|
|
205
|
+
}
|
|
206
|
+
export declare namespace Teams {
|
|
207
|
+
export { type AgentGatewayTeam as AgentGatewayTeam, type AgentGatewayTeamResponse as AgentGatewayTeamResponse, type TeamListResponse as TeamListResponse, type TeamCreateParams as TeamCreateParams, type TeamDeleteParams as TeamDeleteParams, type TeamUpdateParams as TeamUpdateParams, };
|
|
208
|
+
export { ToolPermissions as ToolPermissions, type ToolPermissionListParams as ToolPermissionListParams, type ToolPermissionCreateParams as ToolPermissionCreateParams, };
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=teams.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.mts","sourceRoot":"","sources":["../../../src/resources/agent-gateways/teams/teams.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as ToolPermissionsAPI from "./tool-permissions.js";
|
|
3
|
+
import { ToolPermissionCreateParams, ToolPermissionListParams, ToolPermissions } from "./tool-permissions.js";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Teams on an instance: shared model lists, budgets, and rate limits.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Teams extends APIResource {
|
|
10
|
+
toolPermissions: ToolPermissionsAPI.ToolPermissions;
|
|
11
|
+
/**
|
|
12
|
+
* Lists the instance's teams. The instance must be `ready`; otherwise the request
|
|
13
|
+
* answers `409`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const teams = await client.agentGateways.teams.list(
|
|
18
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<TeamListResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a team on the instance. A team is a model list, a budget, and rate
|
|
25
|
+
* limits that its keys share. Names need not be unique; the `id` identifies the
|
|
26
|
+
* team. The instance must be `ready`; otherwise the request answers `409`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const agentGatewayTeamResponse =
|
|
31
|
+
* await client.agentGateways.teams.create(
|
|
32
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
33
|
+
* {
|
|
34
|
+
* name: 'support',
|
|
35
|
+
* budget_resets_every: '30d',
|
|
36
|
+
* max_budget: 50,
|
|
37
|
+
* models: ['GLM-5.3-Flash', 'Qwen3.8-27B-nothink'],
|
|
38
|
+
* requests_per_minute: 120,
|
|
39
|
+
* },
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
create(instanceID: string, body: TeamCreateParams, options?: RequestOptions): APIPromise<AgentGatewayTeamResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Deletes a team that has no keys and returns it. A team that still has keys
|
|
46
|
+
* answers `409`; delete or move its keys first. The instance must be `ready`;
|
|
47
|
+
* otherwise the request answers `409`.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const agentGatewayTeamResponse =
|
|
52
|
+
* await client.agentGateways.teams.delete(
|
|
53
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
54
|
+
* { instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996' },
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
delete(teamID: string, params: TeamDeleteParams, options?: RequestOptions): APIPromise<AgentGatewayTeamResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Changes a team's settings. A field left out stays as it is, and `null` clears
|
|
61
|
+
* it. `models: []` lifts the model restriction. Setting `blocked` to `true` makes
|
|
62
|
+
* the instance refuse every key in the team with `401`. The instance must be
|
|
63
|
+
* `ready`; otherwise the request answers `409`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const agentGatewayTeamResponse =
|
|
68
|
+
* await client.agentGateways.teams.update(
|
|
69
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
70
|
+
* {
|
|
71
|
+
* instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
72
|
+
* max_budget: 100,
|
|
73
|
+
* },
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
update(teamID: string, params: TeamUpdateParams, options?: RequestOptions): APIPromise<AgentGatewayTeamResponse>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A team on an instance: a model list, a budget, and rate limits that its keys
|
|
81
|
+
* share.
|
|
82
|
+
*/
|
|
83
|
+
export interface AgentGatewayTeam {
|
|
84
|
+
/**
|
|
85
|
+
* Identifies the team.
|
|
86
|
+
*/
|
|
87
|
+
id: string;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the instance refuses every key in the team.
|
|
90
|
+
*/
|
|
91
|
+
blocked: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* When the team's spend next resets.
|
|
94
|
+
*/
|
|
95
|
+
budget_resets_at: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* How often the team's spend resets, such as `30d`.
|
|
98
|
+
*/
|
|
99
|
+
budget_resets_every: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* When the team was created.
|
|
102
|
+
*/
|
|
103
|
+
created_at: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* The most the team's keys may spend together, in USD, until the budget resets.
|
|
106
|
+
*/
|
|
107
|
+
max_budget: number | null;
|
|
108
|
+
/**
|
|
109
|
+
* The models the team's keys may use. Empty means every model the instance serves.
|
|
110
|
+
*/
|
|
111
|
+
models: Array<string>;
|
|
112
|
+
/**
|
|
113
|
+
* A label for people. Names need not be unique.
|
|
114
|
+
*/
|
|
115
|
+
name: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* The most requests the team's keys may make per minute, together.
|
|
118
|
+
*/
|
|
119
|
+
requests_per_minute: number | null;
|
|
120
|
+
/**
|
|
121
|
+
* What the team's keys have spent since the budget last reset, in USD.
|
|
122
|
+
*/
|
|
123
|
+
spend: number;
|
|
124
|
+
/**
|
|
125
|
+
* The most tokens the team's keys may use per minute, together.
|
|
126
|
+
*/
|
|
127
|
+
tokens_per_minute: number | null;
|
|
128
|
+
}
|
|
129
|
+
export interface AgentGatewayTeamResponse {
|
|
130
|
+
/**
|
|
131
|
+
* A team on an instance: a model list, a budget, and rate limits that its keys
|
|
132
|
+
* share.
|
|
133
|
+
*/
|
|
134
|
+
data: AgentGatewayTeam;
|
|
135
|
+
}
|
|
136
|
+
export interface TeamListResponse {
|
|
137
|
+
data: Array<AgentGatewayTeam>;
|
|
138
|
+
}
|
|
139
|
+
export interface TeamCreateParams {
|
|
140
|
+
/**
|
|
141
|
+
* A label for people.
|
|
142
|
+
*/
|
|
143
|
+
name: string;
|
|
144
|
+
/**
|
|
145
|
+
* How often the spend resets: a number and a unit, `s`, `m`, `h`, or `d`.
|
|
146
|
+
*/
|
|
147
|
+
budget_resets_every?: string | null;
|
|
148
|
+
/**
|
|
149
|
+
* The most the team's keys may spend together, in USD.
|
|
150
|
+
*/
|
|
151
|
+
max_budget?: number | null;
|
|
152
|
+
/**
|
|
153
|
+
* The models the team's keys may use. Leave it out to allow every model.
|
|
154
|
+
*/
|
|
155
|
+
models?: Array<string> | null;
|
|
156
|
+
/**
|
|
157
|
+
* The most requests the team's keys may make per minute, together.
|
|
158
|
+
*/
|
|
159
|
+
requests_per_minute?: number | null;
|
|
160
|
+
/**
|
|
161
|
+
* The most tokens the team's keys may use per minute, together.
|
|
162
|
+
*/
|
|
163
|
+
tokens_per_minute?: number | null;
|
|
164
|
+
}
|
|
165
|
+
export interface TeamDeleteParams {
|
|
166
|
+
/**
|
|
167
|
+
* The Agent Gateway's `id`.
|
|
168
|
+
*/
|
|
169
|
+
instance_id: string;
|
|
170
|
+
}
|
|
171
|
+
export interface TeamUpdateParams {
|
|
172
|
+
/**
|
|
173
|
+
* Path param: The Agent Gateway's `id`.
|
|
174
|
+
*/
|
|
175
|
+
instance_id: string;
|
|
176
|
+
/**
|
|
177
|
+
* Body param: `true` makes the instance refuse every key in the team; `false` lets
|
|
178
|
+
* them through again.
|
|
179
|
+
*/
|
|
180
|
+
blocked?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Body param: How often the spend resets.
|
|
183
|
+
*/
|
|
184
|
+
budget_resets_every?: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* Body param: The most the team's keys may spend together, in USD.
|
|
187
|
+
*/
|
|
188
|
+
max_budget?: number | null;
|
|
189
|
+
/**
|
|
190
|
+
* Body param: The models the team's keys may use. `[]` allows every model.
|
|
191
|
+
*/
|
|
192
|
+
models?: Array<string>;
|
|
193
|
+
/**
|
|
194
|
+
* Body param: A label for people.
|
|
195
|
+
*/
|
|
196
|
+
name?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Body param: The most requests the team's keys may make per minute, together.
|
|
199
|
+
*/
|
|
200
|
+
requests_per_minute?: number | null;
|
|
201
|
+
/**
|
|
202
|
+
* Body param: The most tokens the team's keys may use per minute, together.
|
|
203
|
+
*/
|
|
204
|
+
tokens_per_minute?: number | null;
|
|
205
|
+
}
|
|
206
|
+
export declare namespace Teams {
|
|
207
|
+
export { type AgentGatewayTeam as AgentGatewayTeam, type AgentGatewayTeamResponse as AgentGatewayTeamResponse, type TeamListResponse as TeamListResponse, type TeamCreateParams as TeamCreateParams, type TeamDeleteParams as TeamDeleteParams, type TeamUpdateParams as TeamUpdateParams, };
|
|
208
|
+
export { ToolPermissions as ToolPermissions, type ToolPermissionListParams as ToolPermissionListParams, type ToolPermissionCreateParams as ToolPermissionCreateParams, };
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=teams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../../src/resources/agent-gateways/teams/teams.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Teams = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ToolPermissionsAPI = tslib_1.__importStar(require("./tool-permissions.js"));
|
|
8
|
+
const tool_permissions_1 = require("./tool-permissions.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
/**
|
|
11
|
+
* Teams on an instance: shared model lists, budgets, and rate limits.
|
|
12
|
+
*/
|
|
13
|
+
class Teams extends resource_1.APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.toolPermissions = new ToolPermissionsAPI.ToolPermissions(this._client);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Lists the instance's teams. The instance must be `ready`; otherwise the request
|
|
20
|
+
* answers `409`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const teams = await client.agentGateways.teams.list(
|
|
25
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
list(instanceID, options) {
|
|
30
|
+
return this._client.get((0, path_1.path) `/agent_gateways/${instanceID}/teams`, options);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Creates a team on the instance. A team is a model list, a budget, and rate
|
|
34
|
+
* limits that its keys share. Names need not be unique; the `id` identifies the
|
|
35
|
+
* team. The instance must be `ready`; otherwise the request answers `409`.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const agentGatewayTeamResponse =
|
|
40
|
+
* await client.agentGateways.teams.create(
|
|
41
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
42
|
+
* {
|
|
43
|
+
* name: 'support',
|
|
44
|
+
* budget_resets_every: '30d',
|
|
45
|
+
* max_budget: 50,
|
|
46
|
+
* models: ['GLM-5.3-Flash', 'Qwen3.8-27B-nothink'],
|
|
47
|
+
* requests_per_minute: 120,
|
|
48
|
+
* },
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
create(instanceID, body, options) {
|
|
53
|
+
return this._client.post((0, path_1.path) `/agent_gateways/${instanceID}/teams`, { body, ...options });
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Deletes a team that has no keys and returns it. A team that still has keys
|
|
57
|
+
* answers `409`; delete or move its keys first. The instance must be `ready`;
|
|
58
|
+
* otherwise the request answers `409`.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const agentGatewayTeamResponse =
|
|
63
|
+
* await client.agentGateways.teams.delete(
|
|
64
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
65
|
+
* { instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996' },
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
delete(teamID, params, options) {
|
|
70
|
+
const { instance_id } = params;
|
|
71
|
+
return this._client.delete((0, path_1.path) `/agent_gateways/${instance_id}/teams/${teamID}`, options);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Changes a team's settings. A field left out stays as it is, and `null` clears
|
|
75
|
+
* it. `models: []` lifts the model restriction. Setting `blocked` to `true` makes
|
|
76
|
+
* the instance refuse every key in the team with `401`. The instance must be
|
|
77
|
+
* `ready`; otherwise the request answers `409`.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* const agentGatewayTeamResponse =
|
|
82
|
+
* await client.agentGateways.teams.update(
|
|
83
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
84
|
+
* {
|
|
85
|
+
* instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
86
|
+
* max_budget: 100,
|
|
87
|
+
* },
|
|
88
|
+
* );
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
update(teamID, params, options) {
|
|
92
|
+
const { instance_id, ...body } = params;
|
|
93
|
+
return this._client.patch((0, path_1.path) `/agent_gateways/${instance_id}/teams/${teamID}`, { body, ...options });
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.Teams = Teams;
|
|
97
|
+
Teams.ToolPermissions = tool_permissions_1.ToolPermissions;
|
|
98
|
+
//# sourceMappingURL=teams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.js","sourceRoot":"","sources":["../../../src/resources/agent-gateways/teams/teams.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,kFAAyD;AACzD,4DAA2G;AAG3G,0DAAoD;AAEpD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8F7G,CAAC;IA5FC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,UAAkB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,UAAU,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,UAAU,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,UAAU,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;CACF;AA/FD,sBA+FC;AA6JD,KAAK,CAAC,eAAe,GAAG,kCAAe,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as ToolPermissionsAPI from "./tool-permissions.mjs";
|
|
4
|
+
import { ToolPermissions } from "./tool-permissions.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Teams on an instance: shared model lists, budgets, and rate limits.
|
|
8
|
+
*/
|
|
9
|
+
export class Teams extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.toolPermissions = new ToolPermissionsAPI.ToolPermissions(this._client);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Lists the instance's teams. The instance must be `ready`; otherwise the request
|
|
16
|
+
* answers `409`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const teams = await client.agentGateways.teams.list(
|
|
21
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(instanceID, options) {
|
|
26
|
+
return this._client.get(path `/agent_gateways/${instanceID}/teams`, options);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Creates a team on the instance. A team is a model list, a budget, and rate
|
|
30
|
+
* limits that its keys share. Names need not be unique; the `id` identifies the
|
|
31
|
+
* team. The instance must be `ready`; otherwise the request answers `409`.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const agentGatewayTeamResponse =
|
|
36
|
+
* await client.agentGateways.teams.create(
|
|
37
|
+
* 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
38
|
+
* {
|
|
39
|
+
* name: 'support',
|
|
40
|
+
* budget_resets_every: '30d',
|
|
41
|
+
* max_budget: 50,
|
|
42
|
+
* models: ['GLM-5.3-Flash', 'Qwen3.8-27B-nothink'],
|
|
43
|
+
* requests_per_minute: 120,
|
|
44
|
+
* },
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
create(instanceID, body, options) {
|
|
49
|
+
return this._client.post(path `/agent_gateways/${instanceID}/teams`, { body, ...options });
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Deletes a team that has no keys and returns it. A team that still has keys
|
|
53
|
+
* answers `409`; delete or move its keys first. The instance must be `ready`;
|
|
54
|
+
* otherwise the request answers `409`.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const agentGatewayTeamResponse =
|
|
59
|
+
* await client.agentGateways.teams.delete(
|
|
60
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
61
|
+
* { instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996' },
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
delete(teamID, params, options) {
|
|
66
|
+
const { instance_id } = params;
|
|
67
|
+
return this._client.delete(path `/agent_gateways/${instance_id}/teams/${teamID}`, options);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Changes a team's settings. A field left out stays as it is, and `null` clears
|
|
71
|
+
* it. `models: []` lifts the model restriction. Setting `blocked` to `true` makes
|
|
72
|
+
* the instance refuse every key in the team with `401`. The instance must be
|
|
73
|
+
* `ready`; otherwise the request answers `409`.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const agentGatewayTeamResponse =
|
|
78
|
+
* await client.agentGateways.teams.update(
|
|
79
|
+
* '0b6c5d4e-3f2a-4b1c-9d8e-7f6a5b4c3d2e',
|
|
80
|
+
* {
|
|
81
|
+
* instance_id: 'ecffdf4b-93ea-4a7b-8295-51dfd2077996',
|
|
82
|
+
* max_budget: 100,
|
|
83
|
+
* },
|
|
84
|
+
* );
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
update(teamID, params, options) {
|
|
88
|
+
const { instance_id, ...body } = params;
|
|
89
|
+
return this._client.patch(path `/agent_gateways/${instance_id}/teams/${teamID}`, { body, ...options });
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
Teams.ToolPermissions = ToolPermissions;
|
|
93
|
+
//# sourceMappingURL=teams.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.mjs","sourceRoot":"","sources":["../../../src/resources/agent-gateways/teams/teams.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EAAwD,eAAe,EAAE,+BAA2B;AAG3G,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8F7G,CAAC;IA5FC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,UAAkB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,UAAU,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,mBAAmB,UAAU,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,mBAAmB,WAAW,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,WAAW,UAAU,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;CACF;AA6JD,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC"}
|