telnyx 7.30.0 → 7.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +22 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +22 -4
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-gateways/agent-gateways.d.mts +360 -0
- package/resources/agent-gateways/agent-gateways.d.mts.map +1 -0
- package/resources/agent-gateways/agent-gateways.d.ts +360 -0
- package/resources/agent-gateways/agent-gateways.d.ts.map +1 -0
- package/resources/agent-gateways/agent-gateways.js +140 -0
- package/resources/agent-gateways/agent-gateways.js.map +1 -0
- package/resources/agent-gateways/agent-gateways.mjs +135 -0
- package/resources/agent-gateways/agent-gateways.mjs.map +1 -0
- package/resources/agent-gateways/apis.d.mts +300 -0
- package/resources/agent-gateways/apis.d.mts.map +1 -0
- package/resources/agent-gateways/apis.d.ts +300 -0
- package/resources/agent-gateways/apis.d.ts.map +1 -0
- package/resources/agent-gateways/apis.js +89 -0
- package/resources/agent-gateways/apis.js.map +1 -0
- package/resources/agent-gateways/apis.mjs +85 -0
- package/resources/agent-gateways/apis.mjs.map +1 -0
- package/resources/agent-gateways/guardrails.d.mts +210 -0
- package/resources/agent-gateways/guardrails.d.mts.map +1 -0
- package/resources/agent-gateways/guardrails.d.ts +210 -0
- package/resources/agent-gateways/guardrails.d.ts.map +1 -0
- package/resources/agent-gateways/guardrails.js +96 -0
- package/resources/agent-gateways/guardrails.js.map +1 -0
- package/resources/agent-gateways/guardrails.mjs +92 -0
- package/resources/agent-gateways/guardrails.mjs.map +1 -0
- package/resources/agent-gateways/index.d.mts +9 -0
- package/resources/agent-gateways/index.d.mts.map +1 -0
- package/resources/agent-gateways/index.d.ts +9 -0
- package/resources/agent-gateways/index.d.ts.map +1 -0
- package/resources/agent-gateways/index.js +21 -0
- package/resources/agent-gateways/index.js.map +1 -0
- package/resources/agent-gateways/index.mjs +10 -0
- package/resources/agent-gateways/index.mjs.map +1 -0
- package/resources/agent-gateways/keys/index.d.mts +3 -0
- package/resources/agent-gateways/keys/index.d.mts.map +1 -0
- package/resources/agent-gateways/keys/index.d.ts +3 -0
- package/resources/agent-gateways/keys/index.d.ts.map +1 -0
- package/resources/agent-gateways/keys/index.js +9 -0
- package/resources/agent-gateways/keys/index.js.map +1 -0
- package/resources/agent-gateways/keys/index.mjs +4 -0
- package/resources/agent-gateways/keys/index.mjs.map +1 -0
- package/resources/agent-gateways/keys/keys.d.mts +329 -0
- package/resources/agent-gateways/keys/keys.d.mts.map +1 -0
- package/resources/agent-gateways/keys/keys.d.ts +329 -0
- package/resources/agent-gateways/keys/keys.d.ts.map +1 -0
- package/resources/agent-gateways/keys/keys.js +99 -0
- package/resources/agent-gateways/keys/keys.js.map +1 -0
- package/resources/agent-gateways/keys/keys.mjs +94 -0
- package/resources/agent-gateways/keys/keys.mjs.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.d.mts +103 -0
- package/resources/agent-gateways/keys/tool-permissions.d.mts.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.d.ts +103 -0
- package/resources/agent-gateways/keys/tool-permissions.d.ts.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.js +62 -0
- package/resources/agent-gateways/keys/tool-permissions.js.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.mjs +58 -0
- package/resources/agent-gateways/keys/tool-permissions.mjs.map +1 -0
- package/resources/agent-gateways/keys.d.mts +2 -0
- package/resources/agent-gateways/keys.d.mts.map +1 -0
- package/resources/agent-gateways/keys.d.ts +2 -0
- package/resources/agent-gateways/keys.d.ts.map +1 -0
- package/resources/agent-gateways/keys.js +6 -0
- package/resources/agent-gateways/keys.js.map +1 -0
- package/resources/agent-gateways/keys.mjs +3 -0
- package/resources/agent-gateways/keys.mjs.map +1 -0
- package/resources/agent-gateways/mcp-servers.d.mts +246 -0
- package/resources/agent-gateways/mcp-servers.d.mts.map +1 -0
- package/resources/agent-gateways/mcp-servers.d.ts +246 -0
- package/resources/agent-gateways/mcp-servers.d.ts.map +1 -0
- package/resources/agent-gateways/mcp-servers.js +97 -0
- package/resources/agent-gateways/mcp-servers.js.map +1 -0
- package/resources/agent-gateways/mcp-servers.mjs +93 -0
- package/resources/agent-gateways/mcp-servers.mjs.map +1 -0
- package/resources/agent-gateways/policies.d.mts +266 -0
- package/resources/agent-gateways/policies.d.mts.map +1 -0
- package/resources/agent-gateways/policies.d.ts +266 -0
- package/resources/agent-gateways/policies.d.ts.map +1 -0
- package/resources/agent-gateways/policies.js +97 -0
- package/resources/agent-gateways/policies.js.map +1 -0
- package/resources/agent-gateways/policies.mjs +93 -0
- package/resources/agent-gateways/policies.mjs.map +1 -0
- package/resources/agent-gateways/policy-attachments.d.mts +123 -0
- package/resources/agent-gateways/policy-attachments.d.mts.map +1 -0
- package/resources/agent-gateways/policy-attachments.d.ts +123 -0
- package/resources/agent-gateways/policy-attachments.d.ts.map +1 -0
- package/resources/agent-gateways/policy-attachments.js +63 -0
- package/resources/agent-gateways/policy-attachments.js.map +1 -0
- package/resources/agent-gateways/policy-attachments.mjs +59 -0
- package/resources/agent-gateways/policy-attachments.mjs.map +1 -0
- package/resources/agent-gateways/teams/index.d.mts +3 -0
- package/resources/agent-gateways/teams/index.d.mts.map +1 -0
- package/resources/agent-gateways/teams/index.d.ts +3 -0
- package/resources/agent-gateways/teams/index.d.ts.map +1 -0
- package/resources/agent-gateways/teams/index.js +9 -0
- package/resources/agent-gateways/teams/index.js.map +1 -0
- package/resources/agent-gateways/teams/index.mjs +4 -0
- package/resources/agent-gateways/teams/index.mjs.map +1 -0
- package/resources/agent-gateways/teams/teams.d.mts +210 -0
- package/resources/agent-gateways/teams/teams.d.mts.map +1 -0
- package/resources/agent-gateways/teams/teams.d.ts +210 -0
- package/resources/agent-gateways/teams/teams.d.ts.map +1 -0
- package/resources/agent-gateways/teams/teams.js +98 -0
- package/resources/agent-gateways/teams/teams.js.map +1 -0
- package/resources/agent-gateways/teams/teams.mjs +93 -0
- package/resources/agent-gateways/teams/teams.mjs.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.d.mts +82 -0
- package/resources/agent-gateways/teams/tool-permissions.d.mts.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.d.ts +82 -0
- package/resources/agent-gateways/teams/tool-permissions.d.ts.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.js +62 -0
- package/resources/agent-gateways/teams/tool-permissions.js.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.mjs +58 -0
- package/resources/agent-gateways/teams/tool-permissions.mjs.map +1 -0
- package/resources/agent-gateways/teams.d.mts +2 -0
- package/resources/agent-gateways/teams.d.mts.map +1 -0
- package/resources/agent-gateways/teams.d.ts +2 -0
- package/resources/agent-gateways/teams.d.ts.map +1 -0
- package/resources/agent-gateways/teams.js +6 -0
- package/resources/agent-gateways/teams.js.map +1 -0
- package/resources/agent-gateways/teams.mjs +3 -0
- package/resources/agent-gateways/teams.mjs.map +1 -0
- package/resources/agent-gateways.d.mts +2 -0
- package/resources/agent-gateways.d.mts.map +1 -0
- package/resources/agent-gateways.d.ts +2 -0
- package/resources/agent-gateways.d.ts.map +1 -0
- package/resources/agent-gateways.js +6 -0
- package/resources/agent-gateways.js.map +1 -0
- package/resources/agent-gateways.mjs +3 -0
- package/resources/agent-gateways.mjs.map +1 -0
- package/resources/ai/assistants/assistants.d.mts +23 -9
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +23 -9
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +20 -2
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +20 -2
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/calendar-connections/calendar-connections.d.mts +380 -0
- package/resources/calendar-connections/calendar-connections.d.mts.map +1 -0
- package/resources/calendar-connections/calendar-connections.d.ts +380 -0
- package/resources/calendar-connections/calendar-connections.d.ts.map +1 -0
- package/resources/calendar-connections/calendar-connections.js +102 -0
- package/resources/calendar-connections/calendar-connections.js.map +1 -0
- package/resources/calendar-connections/calendar-connections.mjs +97 -0
- package/resources/calendar-connections/calendar-connections.mjs.map +1 -0
- package/resources/calendar-connections/index.d.mts +3 -0
- package/resources/calendar-connections/index.d.mts.map +1 -0
- package/resources/calendar-connections/index.d.ts +3 -0
- package/resources/calendar-connections/index.d.ts.map +1 -0
- package/resources/calendar-connections/index.js +9 -0
- package/resources/calendar-connections/index.js.map +1 -0
- package/resources/calendar-connections/index.mjs +4 -0
- package/resources/calendar-connections/index.mjs.map +1 -0
- package/resources/calendar-connections/meetings.d.mts +149 -0
- package/resources/calendar-connections/meetings.d.mts.map +1 -0
- package/resources/calendar-connections/meetings.d.ts +149 -0
- package/resources/calendar-connections/meetings.d.ts.map +1 -0
- package/resources/calendar-connections/meetings.js +47 -0
- package/resources/calendar-connections/meetings.js.map +1 -0
- package/resources/calendar-connections/meetings.mjs +43 -0
- package/resources/calendar-connections/meetings.mjs.map +1 -0
- package/resources/calendar-connections.d.mts +2 -0
- package/resources/calendar-connections.d.mts.map +1 -0
- package/resources/calendar-connections.d.ts +2 -0
- package/resources/calendar-connections.d.ts.map +1 -0
- package/resources/calendar-connections.js +6 -0
- package/resources/calendar-connections.js.map +1 -0
- package/resources/calendar-connections.mjs +3 -0
- package/resources/calendar-connections.mjs.map +1 -0
- package/resources/calls/actions.d.mts +11 -5
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +11 -5
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +4 -4
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +4 -4
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +1 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +1 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +6 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/meeting-bot/calendar.d.mts +34 -0
- package/resources/meeting-bot/calendar.d.mts.map +1 -0
- package/resources/meeting-bot/calendar.d.ts +34 -0
- package/resources/meeting-bot/calendar.d.ts.map +1 -0
- package/resources/meeting-bot/calendar.js +26 -0
- package/resources/meeting-bot/calendar.js.map +1 -0
- package/resources/meeting-bot/calendar.mjs +22 -0
- package/resources/meeting-bot/calendar.mjs.map +1 -0
- package/resources/meeting-bot/index.d.mts +3 -0
- package/resources/meeting-bot/index.d.mts.map +1 -0
- package/resources/meeting-bot/index.d.ts +3 -0
- package/resources/meeting-bot/index.d.ts.map +1 -0
- package/resources/meeting-bot/index.js +9 -0
- package/resources/meeting-bot/index.js.map +1 -0
- package/resources/meeting-bot/index.mjs +4 -0
- package/resources/meeting-bot/index.mjs.map +1 -0
- package/resources/meeting-bot/meeting-bot.d.mts +10 -0
- package/resources/meeting-bot/meeting-bot.d.mts.map +1 -0
- package/resources/meeting-bot/meeting-bot.d.ts +10 -0
- package/resources/meeting-bot/meeting-bot.d.ts.map +1 -0
- package/resources/meeting-bot/meeting-bot.js +17 -0
- package/resources/meeting-bot/meeting-bot.js.map +1 -0
- package/resources/meeting-bot/meeting-bot.mjs +12 -0
- package/resources/meeting-bot/meeting-bot.mjs.map +1 -0
- package/resources/meeting-bot.d.mts +2 -0
- package/resources/meeting-bot.d.mts.map +1 -0
- package/resources/meeting-bot.d.ts +2 -0
- package/resources/meeting-bot.d.ts.map +1 -0
- package/resources/meeting-bot.js +6 -0
- package/resources/meeting-bot.js.map +1 -0
- package/resources/meeting-bot.mjs +3 -0
- package/resources/meeting-bot.mjs.map +1 -0
- package/resources/meeting-sessions/actions.d.mts +17 -11
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +17 -11
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +14 -10
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +14 -10
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/artifacts.d.mts +8 -7
- package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
- package/resources/meeting-sessions/artifacts.d.ts +8 -7
- package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
- package/resources/meeting-sessions/artifacts.js +8 -7
- package/resources/meeting-sessions/artifacts.js.map +1 -1
- package/resources/meeting-sessions/artifacts.mjs +8 -7
- package/resources/meeting-sessions/artifacts.mjs.map +1 -1
- package/resources/meeting-sessions/index.d.mts +1 -1
- package/resources/meeting-sessions/index.d.mts.map +1 -1
- package/resources/meeting-sessions/index.d.ts +1 -1
- package/resources/meeting-sessions/index.d.ts.map +1 -1
- package/resources/meeting-sessions/index.js.map +1 -1
- package/resources/meeting-sessions/index.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +281 -103
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +281 -103
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +53 -21
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +53 -21
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +45 -5
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +45 -5
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech/text-to-speech.js +8 -2
- package/resources/text-to-speech/text-to-speech.js.map +1 -1
- package/resources/text-to-speech/text-to-speech.mjs +8 -2
- package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
- package/resources/user-profile.d.mts +284 -0
- package/resources/user-profile.d.mts.map +1 -0
- package/resources/user-profile.d.ts +284 -0
- package/resources/user-profile.d.ts.map +1 -0
- package/resources/user-profile.js +42 -0
- package/resources/user-profile.js.map +1 -0
- package/resources/user-profile.mjs +38 -0
- package/resources/user-profile.mjs.map +1 -0
- package/resources/webhooks.d.mts +129 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +129 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +90 -0
- package/src/resources/agent-gateways/agent-gateways.ts +605 -0
- package/src/resources/agent-gateways/apis.ts +388 -0
- package/src/resources/agent-gateways/guardrails.ts +304 -0
- package/src/resources/agent-gateways/index.ts +87 -0
- package/src/resources/agent-gateways/keys/index.ts +20 -0
- package/src/resources/agent-gateways/keys/keys.ts +437 -0
- package/src/resources/agent-gateways/keys/tool-permissions.ts +139 -0
- package/src/resources/agent-gateways/keys.ts +3 -0
- package/src/resources/agent-gateways/mcp-servers.ts +328 -0
- package/src/resources/agent-gateways/policies.ts +348 -0
- package/src/resources/agent-gateways/policy-attachments.ts +167 -0
- package/src/resources/agent-gateways/teams/index.ts +16 -0
- package/src/resources/agent-gateways/teams/teams.ts +282 -0
- package/src/resources/agent-gateways/teams/tool-permissions.ts +112 -0
- package/src/resources/agent-gateways/teams.ts +3 -0
- package/src/resources/agent-gateways.ts +3 -0
- package/src/resources/ai/assistants/assistants.ts +24 -9
- package/src/resources/ai/memory/namespaces/index.ts +1 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +2 -0
- package/src/resources/ai/memory/namespaces/profiles/index.ts +1 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +24 -1
- package/src/resources/calendar-connections/calendar-connections.ts +486 -0
- package/src/resources/calendar-connections/index.ts +21 -0
- package/src/resources/calendar-connections/meetings.ts +205 -0
- package/src/resources/calendar-connections.ts +3 -0
- package/src/resources/calls/actions.ts +16 -4
- package/src/resources/calls/calls.ts +6 -2
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/conferences/actions.ts +2 -1
- package/src/resources/index.ts +36 -0
- package/src/resources/meeting-bot/calendar.ts +54 -0
- package/src/resources/meeting-bot/index.ts +8 -0
- package/src/resources/meeting-bot/meeting-bot.ts +23 -0
- package/src/resources/meeting-bot.ts +3 -0
- package/src/resources/meeting-sessions/actions.ts +17 -11
- package/src/resources/meeting-sessions/artifacts.ts +8 -7
- package/src/resources/meeting-sessions/index.ts +4 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +321 -102
- package/src/resources/text-to-speech/text-to-speech.ts +81 -5
- package/src/resources/user-profile.ts +357 -0
- package/src/resources/webhooks.ts +216 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
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.APIs = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* REST APIs on an instance, served to agents as tools.
|
|
9
|
+
*/
|
|
10
|
+
class APIs extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Lists the REST APIs the instance serves as tools, without their credentials. The
|
|
13
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const apis = await client.agentGateways.apis.list(
|
|
18
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(instanceID, options) {
|
|
23
|
+
return this._client.get((0, path_1.path) `/agent_gateways/${instanceID}/apis`, options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Adds a REST API by its OpenAPI description. Each operation becomes a tool at
|
|
27
|
+
* `{gateway_url}/mcp`, named with the API's `name`, a hyphen, and the lowercased
|
|
28
|
+
* `operationId`. A description the gateway cannot fetch yields an API with no
|
|
29
|
+
* tools. The instance must be `ready`; otherwise the request answers `409`.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const agentGatewayAPIResponse =
|
|
34
|
+
* await client.agentGateways.apis.create(
|
|
35
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
36
|
+
* {
|
|
37
|
+
* name: 'petstore',
|
|
38
|
+
* spec_url:
|
|
39
|
+
* 'https://petstore3.swagger.io/api/v3/openapi.json',
|
|
40
|
+
* base_url: 'https://petstore3.swagger.io/api/v3',
|
|
41
|
+
* open_to_every_key: true,
|
|
42
|
+
* },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
create(instanceID, body, options) {
|
|
47
|
+
return this._client.post((0, path_1.path) `/agent_gateways/${instanceID}/apis`, { body, ...options });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Removes an API and returns it as it was. An MCP server's `id` answers `404`. The
|
|
51
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const agentGatewayAPIResponse =
|
|
56
|
+
* await client.agentGateways.apis.delete(
|
|
57
|
+
* 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
|
|
58
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
delete(apiID, params, options) {
|
|
63
|
+
const { instance_id } = params;
|
|
64
|
+
return this._client.delete((0, path_1.path) `/agent_gateways/${instance_id}/apis/${apiID}`, options);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Changes an API's settings. A field left out stays as it is, `"base_url": null`
|
|
68
|
+
* clears the base URL, and `auth` is replaced whole. The instance must be `ready`;
|
|
69
|
+
* otherwise the request answers `409`.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const agentGatewayAPIResponse =
|
|
74
|
+
* await client.agentGateways.apis.update(
|
|
75
|
+
* 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
|
|
76
|
+
* {
|
|
77
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
78
|
+
* tools: ['findpetsbystatus', 'getpetbyid'],
|
|
79
|
+
* },
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
update(apiID, params, options) {
|
|
84
|
+
const { instance_id, ...body } = params;
|
|
85
|
+
return this._client.patch((0, path_1.path) `/agent_gateways/${instance_id}/apis/${apiID}`, { body, ...options });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.APIs = APIs;
|
|
89
|
+
//# sourceMappingURL=apis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../src/resources/agent-gateways/apis.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,UAAkB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,UAAU,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,UAAU,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,KAAa,EACb,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,KAAa,EACb,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,SAAS,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;AA5FD,oBA4FC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* REST APIs on an instance, served to agents as tools.
|
|
6
|
+
*/
|
|
7
|
+
export 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, options) {
|
|
20
|
+
return this._client.get(path `/agent_gateways/${instanceID}/apis`, options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Adds a REST API by its OpenAPI description. Each operation becomes a tool at
|
|
24
|
+
* `{gateway_url}/mcp`, named with the API's `name`, a hyphen, and the lowercased
|
|
25
|
+
* `operationId`. A description the gateway cannot fetch yields an API with no
|
|
26
|
+
* tools. The instance must be `ready`; otherwise the request answers `409`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const agentGatewayAPIResponse =
|
|
31
|
+
* await client.agentGateways.apis.create(
|
|
32
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
33
|
+
* {
|
|
34
|
+
* name: 'petstore',
|
|
35
|
+
* spec_url:
|
|
36
|
+
* 'https://petstore3.swagger.io/api/v3/openapi.json',
|
|
37
|
+
* base_url: 'https://petstore3.swagger.io/api/v3',
|
|
38
|
+
* open_to_every_key: true,
|
|
39
|
+
* },
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
create(instanceID, body, options) {
|
|
44
|
+
return this._client.post(path `/agent_gateways/${instanceID}/apis`, { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Removes an API and returns it as it was. An MCP server's `id` answers `404`. The
|
|
48
|
+
* instance must be `ready`; otherwise the request answers `409`.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const agentGatewayAPIResponse =
|
|
53
|
+
* await client.agentGateways.apis.delete(
|
|
54
|
+
* 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
|
|
55
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
delete(apiID, params, options) {
|
|
60
|
+
const { instance_id } = params;
|
|
61
|
+
return this._client.delete(path `/agent_gateways/${instance_id}/apis/${apiID}`, options);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Changes an API's settings. A field left out stays as it is, `"base_url": null`
|
|
65
|
+
* clears the base URL, and `auth` is replaced whole. The instance must be `ready`;
|
|
66
|
+
* otherwise the request answers `409`.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const agentGatewayAPIResponse =
|
|
71
|
+
* await client.agentGateways.apis.update(
|
|
72
|
+
* 'dbe53cc0-bf7e-4f7a-8d84-752d19890eb3',
|
|
73
|
+
* {
|
|
74
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
75
|
+
* tools: ['findpetsbystatus', 'getpetbyid'],
|
|
76
|
+
* },
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
update(apiID, params, options) {
|
|
81
|
+
const { instance_id, ...body } = params;
|
|
82
|
+
return this._client.patch(path `/agent_gateways/${instance_id}/apis/${apiID}`, { body, ...options });
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=apis.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apis.mjs","sourceRoot":"","sources":["../../src/resources/agent-gateways/apis.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,UAAkB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,UAAU,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,mBAAmB,UAAU,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,KAAa,EACb,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,mBAAmB,WAAW,SAAS,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,KAAa,EACb,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,WAAW,SAAS,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF"}
|
|
@@ -0,0 +1,210 @@
|
|
|
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
|
+
* Checks an instance runs on model and tool requests.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Guardrails extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Lists the instance's guardrails, without their secrets. The instance must be
|
|
10
|
+
* `ready`; otherwise the request answers `409`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const guardrails =
|
|
15
|
+
* await client.agentGateways.guardrails.list(
|
|
16
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<GuardrailListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Adds a check the instance runs on model and tool requests. It runs on every
|
|
23
|
+
* request when `always_on`, and otherwise on the requests that name it in
|
|
24
|
+
* `guardrails`. The instance must be `ready`; otherwise the request answers `409`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const agentGatewayGuardrailResponse =
|
|
29
|
+
* await client.agentGateways.guardrails.create(
|
|
30
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
31
|
+
* {
|
|
32
|
+
* modes: ['before_request'],
|
|
33
|
+
* name: 'mask-pii',
|
|
34
|
+
* type: 'content_filter',
|
|
35
|
+
* settings: {
|
|
36
|
+
* patterns: [
|
|
37
|
+
* { name: 'us_ssn', action: 'mask' },
|
|
38
|
+
* { name: 'email', action: 'mask' },
|
|
39
|
+
* ],
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
create(instanceID: string, body: GuardrailCreateParams, options?: RequestOptions): APIPromise<AgentGatewayGuardrailResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Removes a guardrail and returns it as it was. The instance must be `ready`;
|
|
48
|
+
* otherwise the request answers `409`.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const agentGatewayGuardrailResponse =
|
|
53
|
+
* await client.agentGateways.guardrails.delete(
|
|
54
|
+
* '9645e556-6532-4341-8cab-21b58cdef529',
|
|
55
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
delete(guardrailID: string, params: GuardrailDeleteParams, options?: RequestOptions): APIPromise<AgentGatewayGuardrailResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Changes a guardrail's `name`, `modes`, `always_on`, or `settings`. `settings` is
|
|
62
|
+
* replaced whole, secrets included. The `type` cannot change. The instance must be
|
|
63
|
+
* `ready`; otherwise the request answers `409`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const agentGatewayGuardrailResponse =
|
|
68
|
+
* await client.agentGateways.guardrails.update(
|
|
69
|
+
* '9645e556-6532-4341-8cab-21b58cdef529',
|
|
70
|
+
* {
|
|
71
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
72
|
+
* always_on: true,
|
|
73
|
+
* },
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
update(guardrailID: string, params: GuardrailUpdateParams, options?: RequestOptions): APIPromise<AgentGatewayGuardrailResponse>;
|
|
78
|
+
}
|
|
79
|
+
export interface AgentGatewayGuardrail {
|
|
80
|
+
/**
|
|
81
|
+
* Identifies the guardrail.
|
|
82
|
+
*/
|
|
83
|
+
id: string;
|
|
84
|
+
/**
|
|
85
|
+
* Whether it runs on every request.
|
|
86
|
+
*/
|
|
87
|
+
always_on: boolean;
|
|
88
|
+
created_at: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* When the guardrail runs.
|
|
91
|
+
*/
|
|
92
|
+
modes: Array<'before_request' | 'during_request' | 'after_request' | 'logging_only' | 'before_tool_request' | 'during_tool_request' | 'after_tool_request'>;
|
|
93
|
+
/**
|
|
94
|
+
* What a request names in its `guardrails` field.
|
|
95
|
+
*/
|
|
96
|
+
name: string;
|
|
97
|
+
/**
|
|
98
|
+
* The type's settings. `content_filter`: `patterns` (prebuilt patterns by name,
|
|
99
|
+
* such as `us_ssn` or `email`), `regexes`, `keywords`, and `categories` (such as
|
|
100
|
+
* `prompt_injection`), each with an `action` of `block` or `mask`.
|
|
101
|
+
* `tool_permission`: `rules` (`id`, `tool_name`, `tool_type`, `decision`,
|
|
102
|
+
* `argument_patterns`), a `default` decision, and `on_denied` (`block` or
|
|
103
|
+
* `rewrite`). `model_judge`: a `model` on the instance and weighted `criteria`
|
|
104
|
+
* (`name`, `description`, `weight`, the weights summing to 100). `custom_code`:
|
|
105
|
+
* `code` defining `apply_guardrail(inputs, request_data, input_type)`. `lakera`:
|
|
106
|
+
* `api_key`, `project_id`, `api_base`. `presidio`: `analyzer_url`,
|
|
107
|
+
* `anonymizer_url`, `entities` (entity name to `block` or `mask`), `language`.
|
|
108
|
+
* `bedrock`: `guardrail_id`, `version`, `region`, and `access_key_id` with
|
|
109
|
+
* `secret_access_key`, or `role_name`. `azure_content_safety`: `api_key`,
|
|
110
|
+
* `endpoint`, `severity` (0 to 7). Provider secrets are write-only. Responses
|
|
111
|
+
* leave the secrets out.
|
|
112
|
+
*/
|
|
113
|
+
settings: {
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
};
|
|
116
|
+
type: 'content_filter' | 'tool_permission' | 'model_judge' | 'custom_code' | 'lakera' | 'presidio' | 'bedrock' | 'azure_content_safety';
|
|
117
|
+
updated_at: string | null;
|
|
118
|
+
}
|
|
119
|
+
export interface AgentGatewayGuardrailResponse {
|
|
120
|
+
data: AgentGatewayGuardrail;
|
|
121
|
+
}
|
|
122
|
+
export interface GuardrailListResponse {
|
|
123
|
+
data: Array<AgentGatewayGuardrail>;
|
|
124
|
+
}
|
|
125
|
+
export interface GuardrailCreateParams {
|
|
126
|
+
/**
|
|
127
|
+
* When the guardrail runs. Each type runs in some modes only.
|
|
128
|
+
*/
|
|
129
|
+
modes: Array<'before_request' | 'during_request' | 'after_request' | 'logging_only' | 'before_tool_request' | 'during_tool_request' | 'after_tool_request'>;
|
|
130
|
+
/**
|
|
131
|
+
* A name, unique on the instance. A request names it in its `guardrails` field.
|
|
132
|
+
*/
|
|
133
|
+
name: string;
|
|
134
|
+
/**
|
|
135
|
+
* The kind of check. It cannot change after create.
|
|
136
|
+
*/
|
|
137
|
+
type: 'content_filter' | 'tool_permission' | 'model_judge' | 'custom_code' | 'lakera' | 'presidio' | 'bedrock' | 'azure_content_safety';
|
|
138
|
+
/**
|
|
139
|
+
* `true` runs the guardrail on every request, and a request cannot turn it off.
|
|
140
|
+
* `false` runs it on the requests that name it.
|
|
141
|
+
*/
|
|
142
|
+
always_on?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* The type's settings. `content_filter`: `patterns` (prebuilt patterns by `name`,
|
|
145
|
+
* such as `us_ssn` or `email`), `regexes` (each a `name`, which tags masked
|
|
146
|
+
* matches, and a `pattern`), `keywords` (each a `keyword`), and `categories` (each
|
|
147
|
+
* a `name`), each entry with an `action` of `block` or `mask`. `tool_permission`:
|
|
148
|
+
* `rules` (`id`, `tool_name`, `tool_type`, `decision`, `argument_patterns`), a
|
|
149
|
+
* `default` decision, and `on_denied` (`block` or `rewrite`). `model_judge`: a
|
|
150
|
+
* `model` on the instance and weighted `criteria` (`name`, `description`,
|
|
151
|
+
* `weight`, the weights summing to 100). `custom_code`: `code` defining
|
|
152
|
+
* `apply_guardrail(inputs, request_data, input_type)`. `lakera`: `api_key`,
|
|
153
|
+
* `project_id`, `api_base`. `presidio`: `analyzer_url`, `anonymizer_url`,
|
|
154
|
+
* `entities` (entity name to `block` or `mask`), `language`. `bedrock`:
|
|
155
|
+
* `guardrail_id`, `version`, `region`, and `access_key_id` with
|
|
156
|
+
* `secret_access_key`, or `role_name`. `azure_content_safety`: `api_key`,
|
|
157
|
+
* `endpoint`, `severity` (0 to 7). Provider secrets are write-only.
|
|
158
|
+
*/
|
|
159
|
+
settings?: {
|
|
160
|
+
[key: string]: unknown;
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
export interface GuardrailDeleteParams {
|
|
164
|
+
/**
|
|
165
|
+
* The Agent Gateway's `id`.
|
|
166
|
+
*/
|
|
167
|
+
instance_id: string;
|
|
168
|
+
}
|
|
169
|
+
export interface GuardrailUpdateParams {
|
|
170
|
+
/**
|
|
171
|
+
* Path param: The Agent Gateway's `id`.
|
|
172
|
+
*/
|
|
173
|
+
instance_id: string;
|
|
174
|
+
/**
|
|
175
|
+
* Body param: `true` runs the guardrail on every request, and a request cannot
|
|
176
|
+
* turn it off. `false` runs it on the requests that name it.
|
|
177
|
+
*/
|
|
178
|
+
always_on?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Body param: When the guardrail runs. Each type runs in some modes only.
|
|
181
|
+
*/
|
|
182
|
+
modes?: Array<'before_request' | 'during_request' | 'after_request' | 'logging_only' | 'before_tool_request' | 'during_tool_request' | 'after_tool_request'>;
|
|
183
|
+
/**
|
|
184
|
+
* Body param: A name, unique on the instance. A request names it in its
|
|
185
|
+
* `guardrails` field.
|
|
186
|
+
*/
|
|
187
|
+
name?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Body param: The type's settings. `content_filter`: `patterns` (prebuilt patterns
|
|
190
|
+
* by name, such as `us_ssn` or `email`), `regexes`, `keywords`, and `categories`
|
|
191
|
+
* (such as `prompt_injection`), each with an `action` of `block` or `mask`.
|
|
192
|
+
* `tool_permission`: `rules` (`id`, `tool_name`, `tool_type`, `decision`,
|
|
193
|
+
* `argument_patterns`), a `default` decision, and `on_denied` (`block` or
|
|
194
|
+
* `rewrite`). `model_judge`: a `model` on the instance and weighted `criteria`
|
|
195
|
+
* (`name`, `description`, `weight`, the weights summing to 100). `custom_code`:
|
|
196
|
+
* `code` defining `apply_guardrail(inputs, request_data, input_type)`. `lakera`:
|
|
197
|
+
* `api_key`, `project_id`, `api_base`. `presidio`: `analyzer_url`,
|
|
198
|
+
* `anonymizer_url`, `entities` (entity name to `block` or `mask`), `language`.
|
|
199
|
+
* `bedrock`: `guardrail_id`, `version`, `region`, and `access_key_id` with
|
|
200
|
+
* `secret_access_key`, or `role_name`. `azure_content_safety`: `api_key`,
|
|
201
|
+
* `endpoint`, `severity` (0 to 7). Provider secrets are write-only.
|
|
202
|
+
*/
|
|
203
|
+
settings?: {
|
|
204
|
+
[key: string]: unknown;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
export declare namespace Guardrails {
|
|
208
|
+
export { type AgentGatewayGuardrail as AgentGatewayGuardrail, type AgentGatewayGuardrailResponse as AgentGatewayGuardrailResponse, type GuardrailListResponse as GuardrailListResponse, type GuardrailCreateParams as GuardrailCreateParams, type GuardrailDeleteParams as GuardrailDeleteParams, type GuardrailUpdateParams as GuardrailUpdateParams, };
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=guardrails.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardrails.d.mts","sourceRoot":"","sources":["../../src/resources/agent-gateways/guardrails.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,210 @@
|
|
|
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
|
+
* Checks an instance runs on model and tool requests.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Guardrails extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Lists the instance's guardrails, without their secrets. The instance must be
|
|
10
|
+
* `ready`; otherwise the request answers `409`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const guardrails =
|
|
15
|
+
* await client.agentGateways.guardrails.list(
|
|
16
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(instanceID: string, options?: RequestOptions): APIPromise<GuardrailListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Adds a check the instance runs on model and tool requests. It runs on every
|
|
23
|
+
* request when `always_on`, and otherwise on the requests that name it in
|
|
24
|
+
* `guardrails`. The instance must be `ready`; otherwise the request answers `409`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const agentGatewayGuardrailResponse =
|
|
29
|
+
* await client.agentGateways.guardrails.create(
|
|
30
|
+
* '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
31
|
+
* {
|
|
32
|
+
* modes: ['before_request'],
|
|
33
|
+
* name: 'mask-pii',
|
|
34
|
+
* type: 'content_filter',
|
|
35
|
+
* settings: {
|
|
36
|
+
* patterns: [
|
|
37
|
+
* { name: 'us_ssn', action: 'mask' },
|
|
38
|
+
* { name: 'email', action: 'mask' },
|
|
39
|
+
* ],
|
|
40
|
+
* },
|
|
41
|
+
* },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
create(instanceID: string, body: GuardrailCreateParams, options?: RequestOptions): APIPromise<AgentGatewayGuardrailResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Removes a guardrail and returns it as it was. The instance must be `ready`;
|
|
48
|
+
* otherwise the request answers `409`.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const agentGatewayGuardrailResponse =
|
|
53
|
+
* await client.agentGateways.guardrails.delete(
|
|
54
|
+
* '9645e556-6532-4341-8cab-21b58cdef529',
|
|
55
|
+
* { instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a' },
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
delete(guardrailID: string, params: GuardrailDeleteParams, options?: RequestOptions): APIPromise<AgentGatewayGuardrailResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Changes a guardrail's `name`, `modes`, `always_on`, or `settings`. `settings` is
|
|
62
|
+
* replaced whole, secrets included. The `type` cannot change. The instance must be
|
|
63
|
+
* `ready`; otherwise the request answers `409`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const agentGatewayGuardrailResponse =
|
|
68
|
+
* await client.agentGateways.guardrails.update(
|
|
69
|
+
* '9645e556-6532-4341-8cab-21b58cdef529',
|
|
70
|
+
* {
|
|
71
|
+
* instance_id: '32ce035d-3165-4031-b1a7-a7c0c259590a',
|
|
72
|
+
* always_on: true,
|
|
73
|
+
* },
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
update(guardrailID: string, params: GuardrailUpdateParams, options?: RequestOptions): APIPromise<AgentGatewayGuardrailResponse>;
|
|
78
|
+
}
|
|
79
|
+
export interface AgentGatewayGuardrail {
|
|
80
|
+
/**
|
|
81
|
+
* Identifies the guardrail.
|
|
82
|
+
*/
|
|
83
|
+
id: string;
|
|
84
|
+
/**
|
|
85
|
+
* Whether it runs on every request.
|
|
86
|
+
*/
|
|
87
|
+
always_on: boolean;
|
|
88
|
+
created_at: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* When the guardrail runs.
|
|
91
|
+
*/
|
|
92
|
+
modes: Array<'before_request' | 'during_request' | 'after_request' | 'logging_only' | 'before_tool_request' | 'during_tool_request' | 'after_tool_request'>;
|
|
93
|
+
/**
|
|
94
|
+
* What a request names in its `guardrails` field.
|
|
95
|
+
*/
|
|
96
|
+
name: string;
|
|
97
|
+
/**
|
|
98
|
+
* The type's settings. `content_filter`: `patterns` (prebuilt patterns by name,
|
|
99
|
+
* such as `us_ssn` or `email`), `regexes`, `keywords`, and `categories` (such as
|
|
100
|
+
* `prompt_injection`), each with an `action` of `block` or `mask`.
|
|
101
|
+
* `tool_permission`: `rules` (`id`, `tool_name`, `tool_type`, `decision`,
|
|
102
|
+
* `argument_patterns`), a `default` decision, and `on_denied` (`block` or
|
|
103
|
+
* `rewrite`). `model_judge`: a `model` on the instance and weighted `criteria`
|
|
104
|
+
* (`name`, `description`, `weight`, the weights summing to 100). `custom_code`:
|
|
105
|
+
* `code` defining `apply_guardrail(inputs, request_data, input_type)`. `lakera`:
|
|
106
|
+
* `api_key`, `project_id`, `api_base`. `presidio`: `analyzer_url`,
|
|
107
|
+
* `anonymizer_url`, `entities` (entity name to `block` or `mask`), `language`.
|
|
108
|
+
* `bedrock`: `guardrail_id`, `version`, `region`, and `access_key_id` with
|
|
109
|
+
* `secret_access_key`, or `role_name`. `azure_content_safety`: `api_key`,
|
|
110
|
+
* `endpoint`, `severity` (0 to 7). Provider secrets are write-only. Responses
|
|
111
|
+
* leave the secrets out.
|
|
112
|
+
*/
|
|
113
|
+
settings: {
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
};
|
|
116
|
+
type: 'content_filter' | 'tool_permission' | 'model_judge' | 'custom_code' | 'lakera' | 'presidio' | 'bedrock' | 'azure_content_safety';
|
|
117
|
+
updated_at: string | null;
|
|
118
|
+
}
|
|
119
|
+
export interface AgentGatewayGuardrailResponse {
|
|
120
|
+
data: AgentGatewayGuardrail;
|
|
121
|
+
}
|
|
122
|
+
export interface GuardrailListResponse {
|
|
123
|
+
data: Array<AgentGatewayGuardrail>;
|
|
124
|
+
}
|
|
125
|
+
export interface GuardrailCreateParams {
|
|
126
|
+
/**
|
|
127
|
+
* When the guardrail runs. Each type runs in some modes only.
|
|
128
|
+
*/
|
|
129
|
+
modes: Array<'before_request' | 'during_request' | 'after_request' | 'logging_only' | 'before_tool_request' | 'during_tool_request' | 'after_tool_request'>;
|
|
130
|
+
/**
|
|
131
|
+
* A name, unique on the instance. A request names it in its `guardrails` field.
|
|
132
|
+
*/
|
|
133
|
+
name: string;
|
|
134
|
+
/**
|
|
135
|
+
* The kind of check. It cannot change after create.
|
|
136
|
+
*/
|
|
137
|
+
type: 'content_filter' | 'tool_permission' | 'model_judge' | 'custom_code' | 'lakera' | 'presidio' | 'bedrock' | 'azure_content_safety';
|
|
138
|
+
/**
|
|
139
|
+
* `true` runs the guardrail on every request, and a request cannot turn it off.
|
|
140
|
+
* `false` runs it on the requests that name it.
|
|
141
|
+
*/
|
|
142
|
+
always_on?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* The type's settings. `content_filter`: `patterns` (prebuilt patterns by `name`,
|
|
145
|
+
* such as `us_ssn` or `email`), `regexes` (each a `name`, which tags masked
|
|
146
|
+
* matches, and a `pattern`), `keywords` (each a `keyword`), and `categories` (each
|
|
147
|
+
* a `name`), each entry with an `action` of `block` or `mask`. `tool_permission`:
|
|
148
|
+
* `rules` (`id`, `tool_name`, `tool_type`, `decision`, `argument_patterns`), a
|
|
149
|
+
* `default` decision, and `on_denied` (`block` or `rewrite`). `model_judge`: a
|
|
150
|
+
* `model` on the instance and weighted `criteria` (`name`, `description`,
|
|
151
|
+
* `weight`, the weights summing to 100). `custom_code`: `code` defining
|
|
152
|
+
* `apply_guardrail(inputs, request_data, input_type)`. `lakera`: `api_key`,
|
|
153
|
+
* `project_id`, `api_base`. `presidio`: `analyzer_url`, `anonymizer_url`,
|
|
154
|
+
* `entities` (entity name to `block` or `mask`), `language`. `bedrock`:
|
|
155
|
+
* `guardrail_id`, `version`, `region`, and `access_key_id` with
|
|
156
|
+
* `secret_access_key`, or `role_name`. `azure_content_safety`: `api_key`,
|
|
157
|
+
* `endpoint`, `severity` (0 to 7). Provider secrets are write-only.
|
|
158
|
+
*/
|
|
159
|
+
settings?: {
|
|
160
|
+
[key: string]: unknown;
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
export interface GuardrailDeleteParams {
|
|
164
|
+
/**
|
|
165
|
+
* The Agent Gateway's `id`.
|
|
166
|
+
*/
|
|
167
|
+
instance_id: string;
|
|
168
|
+
}
|
|
169
|
+
export interface GuardrailUpdateParams {
|
|
170
|
+
/**
|
|
171
|
+
* Path param: The Agent Gateway's `id`.
|
|
172
|
+
*/
|
|
173
|
+
instance_id: string;
|
|
174
|
+
/**
|
|
175
|
+
* Body param: `true` runs the guardrail on every request, and a request cannot
|
|
176
|
+
* turn it off. `false` runs it on the requests that name it.
|
|
177
|
+
*/
|
|
178
|
+
always_on?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Body param: When the guardrail runs. Each type runs in some modes only.
|
|
181
|
+
*/
|
|
182
|
+
modes?: Array<'before_request' | 'during_request' | 'after_request' | 'logging_only' | 'before_tool_request' | 'during_tool_request' | 'after_tool_request'>;
|
|
183
|
+
/**
|
|
184
|
+
* Body param: A name, unique on the instance. A request names it in its
|
|
185
|
+
* `guardrails` field.
|
|
186
|
+
*/
|
|
187
|
+
name?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Body param: The type's settings. `content_filter`: `patterns` (prebuilt patterns
|
|
190
|
+
* by name, such as `us_ssn` or `email`), `regexes`, `keywords`, and `categories`
|
|
191
|
+
* (such as `prompt_injection`), each with an `action` of `block` or `mask`.
|
|
192
|
+
* `tool_permission`: `rules` (`id`, `tool_name`, `tool_type`, `decision`,
|
|
193
|
+
* `argument_patterns`), a `default` decision, and `on_denied` (`block` or
|
|
194
|
+
* `rewrite`). `model_judge`: a `model` on the instance and weighted `criteria`
|
|
195
|
+
* (`name`, `description`, `weight`, the weights summing to 100). `custom_code`:
|
|
196
|
+
* `code` defining `apply_guardrail(inputs, request_data, input_type)`. `lakera`:
|
|
197
|
+
* `api_key`, `project_id`, `api_base`. `presidio`: `analyzer_url`,
|
|
198
|
+
* `anonymizer_url`, `entities` (entity name to `block` or `mask`), `language`.
|
|
199
|
+
* `bedrock`: `guardrail_id`, `version`, `region`, and `access_key_id` with
|
|
200
|
+
* `secret_access_key`, or `role_name`. `azure_content_safety`: `api_key`,
|
|
201
|
+
* `endpoint`, `severity` (0 to 7). Provider secrets are write-only.
|
|
202
|
+
*/
|
|
203
|
+
settings?: {
|
|
204
|
+
[key: string]: unknown;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
export declare namespace Guardrails {
|
|
208
|
+
export { type AgentGatewayGuardrail as AgentGatewayGuardrail, type AgentGatewayGuardrailResponse as AgentGatewayGuardrailResponse, type GuardrailListResponse as GuardrailListResponse, type GuardrailCreateParams as GuardrailCreateParams, type GuardrailDeleteParams as GuardrailDeleteParams, type GuardrailUpdateParams as GuardrailUpdateParams, };
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=guardrails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guardrails.d.ts","sourceRoot":"","sources":["../../src/resources/agent-gateways/guardrails.ts"],"names":[],"mappings":"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"}
|