airlock-bot 0.2.38 → 0.3.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/README.md +21 -39
- package/dist/airlock/tools.d.ts +4 -0
- package/dist/airlock/tools.d.ts.map +1 -1
- package/dist/airlock/tools.js +12 -0
- package/dist/airlock/tools.js.map +1 -1
- package/dist/audit/db.d.ts +7 -0
- package/dist/audit/db.d.ts.map +1 -1
- package/dist/audit/db.js +19 -3
- package/dist/audit/db.js.map +1 -1
- package/dist/backend/airlock-adapter.d.ts +10 -0
- package/dist/backend/airlock-adapter.d.ts.map +1 -1
- package/dist/backend/airlock-adapter.js +183 -1
- package/dist/backend/airlock-adapter.js.map +1 -1
- package/dist/backend/cli/builder.d.ts.map +1 -1
- package/dist/backend/cli/builder.js +10 -3
- package/dist/backend/cli/builder.js.map +1 -1
- package/dist/backend/mcp-adapter.d.ts +1 -0
- package/dist/backend/mcp-adapter.d.ts.map +1 -1
- package/dist/backend/mcp-adapter.js +5 -0
- package/dist/backend/mcp-adapter.js.map +1 -1
- package/dist/backend/openapi/adapter.d.ts.map +1 -1
- package/dist/backend/openapi/adapter.js +33 -18
- package/dist/backend/openapi/adapter.js.map +1 -1
- package/dist/backend/types.d.ts +8 -0
- package/dist/backend/types.d.ts.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +71 -279
- package/dist/config/loader.js.map +1 -1
- package/dist/config/profiles.d.ts +3 -1
- package/dist/config/profiles.d.ts.map +1 -1
- package/dist/config/profiles.js +63 -0
- package/dist/config/profiles.js.map +1 -1
- package/dist/config/schema.d.ts +2671 -147
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +227 -2
- package/dist/config/schema.js.map +1 -1
- package/dist/configure-cli/cli.d.ts.map +1 -1
- package/dist/configure-cli/cli.js +1 -2
- package/dist/configure-cli/cli.js.map +1 -1
- package/dist/configure-web/cli.js +23 -1
- package/dist/configure-web/cli.js.map +1 -1
- package/dist/discover/strategies/completion.d.ts.map +1 -1
- package/dist/discover/strategies/completion.js +3 -3
- package/dist/discover/strategies/completion.js.map +1 -1
- package/dist/gateway.d.ts +5 -0
- package/dist/gateway.d.ts.map +1 -1
- package/dist/gateway.js +84 -5
- package/dist/gateway.js.map +1 -1
- package/dist/hitl/batcher.d.ts +2 -0
- package/dist/hitl/batcher.d.ts.map +1 -1
- package/dist/hitl/batcher.js +16 -0
- package/dist/hitl/batcher.js.map +1 -1
- package/dist/introspect/cli.d.ts +25 -1
- package/dist/introspect/cli.d.ts.map +1 -1
- package/dist/introspect/cli.js +97 -3
- package/dist/introspect/cli.js.map +1 -1
- package/dist/middleware/chain-builder.d.ts +1 -1
- package/dist/middleware/chain-builder.d.ts.map +1 -1
- package/dist/middleware/chain-builder.js +4 -2
- package/dist/middleware/chain-builder.js.map +1 -1
- package/dist/middleware/core/allowlist.d.ts.map +1 -1
- package/dist/middleware/core/allowlist.js +1 -0
- package/dist/middleware/core/allowlist.js.map +1 -1
- package/dist/middleware/core/arg-policy.d.ts.map +1 -1
- package/dist/middleware/core/arg-policy.js +2 -0
- package/dist/middleware/core/arg-policy.js.map +1 -1
- package/dist/middleware/core/command-policy.d.ts +13 -0
- package/dist/middleware/core/command-policy.d.ts.map +1 -0
- package/dist/middleware/core/command-policy.js +94 -0
- package/dist/middleware/core/command-policy.js.map +1 -0
- package/dist/middleware/core/exec-policy.d.ts.map +1 -1
- package/dist/middleware/core/exec-policy.js +1 -0
- package/dist/middleware/core/exec-policy.js.map +1 -1
- package/dist/middleware/core/execute.d.ts +2 -0
- package/dist/middleware/core/execute.d.ts.map +1 -1
- package/dist/middleware/core/execute.js +73 -1
- package/dist/middleware/core/execute.js.map +1 -1
- package/dist/middleware/core/hitl-gate.d.ts.map +1 -1
- package/dist/middleware/core/hitl-gate.js +7 -0
- package/dist/middleware/core/hitl-gate.js.map +1 -1
- package/dist/middleware/detectors/injection-detector.d.ts.map +1 -1
- package/dist/middleware/detectors/injection-detector.js +2 -0
- package/dist/middleware/detectors/injection-detector.js.map +1 -1
- package/dist/middleware/detectors/sensitivity-classifier.js +1 -0
- package/dist/middleware/detectors/sensitivity-classifier.js.map +1 -1
- package/dist/middleware/post/canary-token-injector.d.ts.map +1 -1
- package/dist/middleware/post/canary-token-injector.js +1 -0
- package/dist/middleware/post/canary-token-injector.js.map +1 -1
- package/dist/middleware/post/output-injection-detector.d.ts.map +1 -1
- package/dist/middleware/post/output-injection-detector.js +1 -0
- package/dist/middleware/post/output-injection-detector.js.map +1 -1
- package/dist/middleware/post/untrusted-envelope.d.ts.map +1 -1
- package/dist/middleware/post/untrusted-envelope.js +7 -0
- package/dist/middleware/post/untrusted-envelope.js.map +1 -1
- package/dist/mobile/api.d.ts.map +1 -1
- package/dist/mobile/api.js +5 -1
- package/dist/mobile/api.js.map +1 -1
- package/dist/mobile/apns.d.ts.map +1 -1
- package/dist/mobile/apns.js +2 -1
- package/dist/mobile/apns.js.map +1 -1
- package/dist/pool/client-credentials.d.ts +46 -0
- package/dist/pool/client-credentials.d.ts.map +1 -0
- package/dist/pool/client-credentials.js +204 -0
- package/dist/pool/client-credentials.js.map +1 -0
- package/dist/pool/credential-health.d.ts +54 -0
- package/dist/pool/credential-health.d.ts.map +1 -0
- package/dist/pool/credential-health.js +262 -0
- package/dist/pool/credential-health.js.map +1 -0
- package/dist/pool/http-client.d.ts +49 -1
- package/dist/pool/http-client.d.ts.map +1 -1
- package/dist/pool/http-client.js +298 -16
- package/dist/pool/http-client.js.map +1 -1
- package/dist/pool/oauth-provider.d.ts +21 -0
- package/dist/pool/oauth-provider.d.ts.map +1 -1
- package/dist/pool/oauth-provider.js +117 -8
- package/dist/pool/oauth-provider.js.map +1 -1
- package/dist/pool/oauth-timing.d.ts +3 -0
- package/dist/pool/oauth-timing.d.ts.map +1 -0
- package/dist/pool/oauth-timing.js +8 -0
- package/dist/pool/oauth-timing.js.map +1 -0
- package/dist/pool/pool.d.ts +6 -0
- package/dist/pool/pool.d.ts.map +1 -1
- package/dist/pool/pool.js +15 -2
- package/dist/pool/pool.js.map +1 -1
- package/dist/pool/sse-client.d.ts +7 -0
- package/dist/pool/sse-client.d.ts.map +1 -1
- package/dist/pool/sse-client.js +41 -3
- package/dist/pool/sse-client.js.map +1 -1
- package/dist/pool/status.d.ts +6 -0
- package/dist/pool/status.d.ts.map +1 -0
- package/dist/pool/status.js +2 -0
- package/dist/pool/status.js.map +1 -0
- package/dist/pool/stdio-client.d.ts +8 -0
- package/dist/pool/stdio-client.d.ts.map +1 -1
- package/dist/pool/stdio-client.js +34 -1
- package/dist/pool/stdio-client.js.map +1 -1
- package/dist/registry/registry.d.ts +47 -4
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +145 -10
- package/dist/registry/registry.js.map +1 -1
- package/dist/registry/sanitizer.d.ts +16 -1
- package/dist/registry/sanitizer.d.ts.map +1 -1
- package/dist/registry/sanitizer.js +70 -11
- package/dist/registry/sanitizer.js.map +1 -1
- package/dist/stdio-mode.d.ts.map +1 -1
- package/dist/stdio-mode.js +36 -6
- package/dist/stdio-mode.js.map +1 -1
- package/dist/tools/api.d.ts +1 -0
- package/dist/tools/api.d.ts.map +1 -1
- package/dist/tools/api.js +10 -2
- package/dist/tools/api.js.map +1 -1
- package/dist/transport/agent-server.d.ts.map +1 -1
- package/dist/transport/agent-server.js +24 -1
- package/dist/transport/agent-server.js.map +1 -1
- package/dist/transport/http-server.d.ts +2 -0
- package/dist/transport/http-server.d.ts.map +1 -1
- package/dist/transport/http-server.js +59 -3
- package/dist/transport/http-server.js.map +1 -1
- package/dist/transport/keepalive.d.ts +27 -0
- package/dist/transport/keepalive.d.ts.map +1 -0
- package/dist/transport/keepalive.js +30 -0
- package/dist/transport/keepalive.js.map +1 -0
- package/dist/transport/session-limiter.d.ts +84 -0
- package/dist/transport/session-limiter.d.ts.map +1 -0
- package/dist/transport/session-limiter.js +189 -0
- package/dist/transport/session-limiter.js.map +1 -0
- package/dist/transport/sse-server.d.ts +2 -0
- package/dist/transport/sse-server.d.ts.map +1 -1
- package/dist/transport/sse-server.js +17 -3
- package/dist/transport/sse-server.js.map +1 -1
- package/dist/util/atomic-file.d.ts +9 -0
- package/dist/util/atomic-file.d.ts.map +1 -0
- package/dist/util/atomic-file.js +39 -0
- package/dist/util/atomic-file.js.map +1 -0
- package/examples/airlock.yaml +55 -0
- package/package.json +3 -3
- package/schema.json +573 -4
package/dist/config/schema.d.ts
CHANGED
|
@@ -1,6 +1,115 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare function withEnvVarResolution<T>(resolve: boolean, fn: () => T): T;
|
|
3
|
+
/**
|
|
4
|
+
* A cheap, read-only call used to prove the provider's CREDENTIAL still works — as opposed to
|
|
5
|
+
* `mcpHealth`, which only proves the transport is reachable. The distinction is not academic: a
|
|
6
|
+
* Google Workspace sidecar answers MCP happily for weeks after its refresh token dies, so the
|
|
7
|
+
* gateway reported `ok` the entire time nobody could read mail.
|
|
8
|
+
*
|
|
9
|
+
* Pick the cheapest read the provider offers, and scope it tightly — this runs unattended.
|
|
10
|
+
*
|
|
11
|
+
* Classification: a thrown error or an `isError` result is a failure, and the failure text decides
|
|
12
|
+
* `auth_required` vs `error`. Providers that report expired credentials as a SUCCESSFUL text
|
|
13
|
+
* response (the Google sidecar's "ACTION REQUIRED: authorize…" is one) can't be caught that way,
|
|
14
|
+
* which is what `expect_contains` / `reject_contains` are for. Prefer `expect_contains` and anchor
|
|
15
|
+
* it on the shape of a healthy response: `reject_contains` matches the whole payload, so a probe
|
|
16
|
+
* that returns user data can trip on the phrase appearing in that data (an email subject line
|
|
17
|
+
* reading "Action Required" would do it).
|
|
18
|
+
*/
|
|
19
|
+
export declare const CredentialProbeConfig: z.ZodObject<{
|
|
20
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
21
|
+
tool: z.ZodString;
|
|
22
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
23
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
24
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
25
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
26
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
27
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
28
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
29
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
30
|
+
}, "strict", z.ZodTypeAny, {
|
|
31
|
+
tool: string;
|
|
32
|
+
args: Record<string, unknown>;
|
|
33
|
+
interval_ms: number;
|
|
34
|
+
timeout_ms: number;
|
|
35
|
+
expect_contains?: string | undefined;
|
|
36
|
+
reject_contains?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
tool: string;
|
|
39
|
+
args?: Record<string, unknown> | undefined;
|
|
40
|
+
expect_contains?: string | undefined;
|
|
41
|
+
reject_contains?: string | undefined;
|
|
42
|
+
interval_ms?: number | undefined;
|
|
43
|
+
timeout_ms?: number | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export type CredentialProbeConfig = z.infer<typeof CredentialProbeConfig>;
|
|
46
|
+
/**
|
|
47
|
+
* OAuth2 client-credentials grant — the gateway authenticates as the APPLICATION, with no user in
|
|
48
|
+
* the loop and no browser flow. Use it for provider-side bot/service identities: actions land as
|
|
49
|
+
* the app rather than as whoever last authorized it, which is what makes an autonomous agent's
|
|
50
|
+
* writes attributable.
|
|
51
|
+
*
|
|
52
|
+
* Distinct from `oauth: true`, which is the authorization-code flow and carries a USER's identity.
|
|
53
|
+
* The two are mutually exclusive (see the loader diagnostic) — a provider has one identity.
|
|
54
|
+
*
|
|
55
|
+
* Tokens are minted on demand, cached to disk, and re-minted proactively before expiry or reactively
|
|
56
|
+
* on a 401. Disk caching is load-bearing rather than an optimization: issuers cap how many tokens an
|
|
57
|
+
* app may hold at once (Linear allows 1000), so a gateway that minted on every restart would burn
|
|
58
|
+
* through that quota.
|
|
59
|
+
*/
|
|
60
|
+
export declare const ClientCredentialsConfig: z.ZodObject<{
|
|
61
|
+
/** The issuer's token endpoint, e.g. `https://api.linear.app/oauth/token`. */
|
|
62
|
+
token_url: z.ZodString;
|
|
63
|
+
client_id: z.ZodEffects<z.ZodString, string, string>;
|
|
64
|
+
client_secret: z.ZodEffects<z.ZodString, string, string>;
|
|
65
|
+
/**
|
|
66
|
+
* Scopes to request, verbatim — the separator is the issuer's to define (Linear uses commas,
|
|
67
|
+
* the OAuth2 spec says spaces), so the string is passed through untouched. Omit to accept the
|
|
68
|
+
* issuer's default scopes. NOTE: some issuers revoke every live token when an app's scopes
|
|
69
|
+
* change, so treat this as a value that is changed deliberately, not tuned.
|
|
70
|
+
*/
|
|
71
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, "strict", z.ZodTypeAny, {
|
|
73
|
+
client_id: string;
|
|
74
|
+
client_secret: string;
|
|
75
|
+
token_url: string;
|
|
76
|
+
scope?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
client_id: string;
|
|
79
|
+
client_secret: string;
|
|
80
|
+
token_url: string;
|
|
81
|
+
scope?: string | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
export type ClientCredentialsConfig = z.infer<typeof ClientCredentialsConfig>;
|
|
3
84
|
export declare const McpServerConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
85
|
+
credential_probe: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
87
|
+
tool: z.ZodString;
|
|
88
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
89
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
90
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
91
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
92
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
93
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
94
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
95
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
96
|
+
}, "strict", z.ZodTypeAny, {
|
|
97
|
+
tool: string;
|
|
98
|
+
args: Record<string, unknown>;
|
|
99
|
+
interval_ms: number;
|
|
100
|
+
timeout_ms: number;
|
|
101
|
+
expect_contains?: string | undefined;
|
|
102
|
+
reject_contains?: string | undefined;
|
|
103
|
+
}, {
|
|
104
|
+
tool: string;
|
|
105
|
+
args?: Record<string, unknown> | undefined;
|
|
106
|
+
expect_contains?: string | undefined;
|
|
107
|
+
reject_contains?: string | undefined;
|
|
108
|
+
interval_ms?: number | undefined;
|
|
109
|
+
timeout_ms?: number | undefined;
|
|
110
|
+
}>>;
|
|
111
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
112
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
4
113
|
type: z.ZodLiteral<"stdio">;
|
|
5
114
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
6
115
|
command: z.ZodString;
|
|
@@ -8,17 +117,65 @@ export declare const McpServerConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
8
117
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
|
|
9
118
|
}, "strict", z.ZodTypeAny, {
|
|
10
119
|
type: "stdio";
|
|
120
|
+
args: string[];
|
|
11
121
|
enabled: boolean;
|
|
12
122
|
command: string;
|
|
13
|
-
args: string[];
|
|
14
123
|
env?: Record<string, string> | undefined;
|
|
124
|
+
credential_probe?: {
|
|
125
|
+
tool: string;
|
|
126
|
+
args: Record<string, unknown>;
|
|
127
|
+
interval_ms: number;
|
|
128
|
+
timeout_ms: number;
|
|
129
|
+
expect_contains?: string | undefined;
|
|
130
|
+
reject_contains?: string | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
instructions?: string | undefined;
|
|
133
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
15
134
|
}, {
|
|
16
135
|
type: "stdio";
|
|
17
136
|
command: string;
|
|
18
|
-
enabled?: boolean | undefined;
|
|
19
137
|
args?: string[] | undefined;
|
|
138
|
+
enabled?: boolean | undefined;
|
|
20
139
|
env?: Record<string, string> | undefined;
|
|
140
|
+
credential_probe?: {
|
|
141
|
+
tool: string;
|
|
142
|
+
args?: Record<string, unknown> | undefined;
|
|
143
|
+
expect_contains?: string | undefined;
|
|
144
|
+
reject_contains?: string | undefined;
|
|
145
|
+
interval_ms?: number | undefined;
|
|
146
|
+
timeout_ms?: number | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
instructions?: string | undefined;
|
|
149
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
21
150
|
}>, z.ZodObject<{
|
|
151
|
+
credential_probe: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
153
|
+
tool: z.ZodString;
|
|
154
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
155
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
156
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
157
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
158
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
159
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
160
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
161
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
162
|
+
}, "strict", z.ZodTypeAny, {
|
|
163
|
+
tool: string;
|
|
164
|
+
args: Record<string, unknown>;
|
|
165
|
+
interval_ms: number;
|
|
166
|
+
timeout_ms: number;
|
|
167
|
+
expect_contains?: string | undefined;
|
|
168
|
+
reject_contains?: string | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
tool: string;
|
|
171
|
+
args?: Record<string, unknown> | undefined;
|
|
172
|
+
expect_contains?: string | undefined;
|
|
173
|
+
reject_contains?: string | undefined;
|
|
174
|
+
interval_ms?: number | undefined;
|
|
175
|
+
timeout_ms?: number | undefined;
|
|
176
|
+
}>>;
|
|
177
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
178
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
22
179
|
type: z.ZodLiteral<"sse">;
|
|
23
180
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
24
181
|
url: z.ZodString;
|
|
@@ -27,13 +184,61 @@ export declare const McpServerConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
27
184
|
url: string;
|
|
28
185
|
type: "sse";
|
|
29
186
|
enabled: boolean;
|
|
187
|
+
credential_probe?: {
|
|
188
|
+
tool: string;
|
|
189
|
+
args: Record<string, unknown>;
|
|
190
|
+
interval_ms: number;
|
|
191
|
+
timeout_ms: number;
|
|
192
|
+
expect_contains?: string | undefined;
|
|
193
|
+
reject_contains?: string | undefined;
|
|
194
|
+
} | undefined;
|
|
195
|
+
instructions?: string | undefined;
|
|
196
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
30
197
|
headers?: Record<string, string> | undefined;
|
|
31
198
|
}, {
|
|
32
199
|
url: string;
|
|
33
200
|
type: "sse";
|
|
34
201
|
enabled?: boolean | undefined;
|
|
202
|
+
credential_probe?: {
|
|
203
|
+
tool: string;
|
|
204
|
+
args?: Record<string, unknown> | undefined;
|
|
205
|
+
expect_contains?: string | undefined;
|
|
206
|
+
reject_contains?: string | undefined;
|
|
207
|
+
interval_ms?: number | undefined;
|
|
208
|
+
timeout_ms?: number | undefined;
|
|
209
|
+
} | undefined;
|
|
210
|
+
instructions?: string | undefined;
|
|
211
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
35
212
|
headers?: Record<string, string> | undefined;
|
|
36
213
|
}>, z.ZodObject<{
|
|
214
|
+
credential_probe: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
216
|
+
tool: z.ZodString;
|
|
217
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
218
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
219
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
220
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
221
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
222
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
223
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
224
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
225
|
+
}, "strict", z.ZodTypeAny, {
|
|
226
|
+
tool: string;
|
|
227
|
+
args: Record<string, unknown>;
|
|
228
|
+
interval_ms: number;
|
|
229
|
+
timeout_ms: number;
|
|
230
|
+
expect_contains?: string | undefined;
|
|
231
|
+
reject_contains?: string | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
tool: string;
|
|
234
|
+
args?: Record<string, unknown> | undefined;
|
|
235
|
+
expect_contains?: string | undefined;
|
|
236
|
+
reject_contains?: string | undefined;
|
|
237
|
+
interval_ms?: number | undefined;
|
|
238
|
+
timeout_ms?: number | undefined;
|
|
239
|
+
}>>;
|
|
240
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
241
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
37
242
|
type: z.ZodLiteral<"http">;
|
|
38
243
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
39
244
|
url: z.ZodString;
|
|
@@ -43,16 +248,62 @@ export declare const McpServerConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
43
248
|
oauth_callback_url: z.ZodOptional<z.ZodString>;
|
|
44
249
|
client_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
45
250
|
client_secret: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
251
|
+
client_credentials: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
/** The issuer's token endpoint, e.g. `https://api.linear.app/oauth/token`. */
|
|
253
|
+
token_url: z.ZodString;
|
|
254
|
+
client_id: z.ZodEffects<z.ZodString, string, string>;
|
|
255
|
+
client_secret: z.ZodEffects<z.ZodString, string, string>;
|
|
256
|
+
/**
|
|
257
|
+
* Scopes to request, verbatim — the separator is the issuer's to define (Linear uses commas,
|
|
258
|
+
* the OAuth2 spec says spaces), so the string is passed through untouched. Omit to accept the
|
|
259
|
+
* issuer's default scopes. NOTE: some issuers revoke every live token when an app's scopes
|
|
260
|
+
* change, so treat this as a value that is changed deliberately, not tuned.
|
|
261
|
+
*/
|
|
262
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
263
|
+
}, "strict", z.ZodTypeAny, {
|
|
264
|
+
client_id: string;
|
|
265
|
+
client_secret: string;
|
|
266
|
+
token_url: string;
|
|
267
|
+
scope?: string | undefined;
|
|
268
|
+
}, {
|
|
269
|
+
client_id: string;
|
|
270
|
+
client_secret: string;
|
|
271
|
+
token_url: string;
|
|
272
|
+
scope?: string | undefined;
|
|
273
|
+
}>>;
|
|
274
|
+
/**
|
|
275
|
+
* Per-request MCP SDK deadline. The SDK otherwise imposes an invisible 60s default even when
|
|
276
|
+
* Airlock's outer call_execution_timeout_ms is higher, so slow but healthy providers can
|
|
277
|
+
* never use the operator-configured execution budget.
|
|
278
|
+
*/
|
|
279
|
+
request_timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
46
280
|
}, "strict", z.ZodTypeAny, {
|
|
47
281
|
url: string;
|
|
48
282
|
type: "http";
|
|
49
283
|
oauth: boolean;
|
|
50
284
|
enabled: boolean;
|
|
51
285
|
oauth_callback_port: number;
|
|
286
|
+
request_timeout_ms: number;
|
|
52
287
|
client_id?: string | undefined;
|
|
53
288
|
client_secret?: string | undefined;
|
|
289
|
+
credential_probe?: {
|
|
290
|
+
tool: string;
|
|
291
|
+
args: Record<string, unknown>;
|
|
292
|
+
interval_ms: number;
|
|
293
|
+
timeout_ms: number;
|
|
294
|
+
expect_contains?: string | undefined;
|
|
295
|
+
reject_contains?: string | undefined;
|
|
296
|
+
} | undefined;
|
|
297
|
+
instructions?: string | undefined;
|
|
298
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
54
299
|
headers?: Record<string, string> | undefined;
|
|
55
300
|
oauth_callback_url?: string | undefined;
|
|
301
|
+
client_credentials?: {
|
|
302
|
+
client_id: string;
|
|
303
|
+
client_secret: string;
|
|
304
|
+
token_url: string;
|
|
305
|
+
scope?: string | undefined;
|
|
306
|
+
} | undefined;
|
|
56
307
|
}, {
|
|
57
308
|
url: string;
|
|
58
309
|
type: "http";
|
|
@@ -60,32 +311,89 @@ export declare const McpServerConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
60
311
|
client_id?: string | undefined;
|
|
61
312
|
client_secret?: string | undefined;
|
|
62
313
|
enabled?: boolean | undefined;
|
|
314
|
+
credential_probe?: {
|
|
315
|
+
tool: string;
|
|
316
|
+
args?: Record<string, unknown> | undefined;
|
|
317
|
+
expect_contains?: string | undefined;
|
|
318
|
+
reject_contains?: string | undefined;
|
|
319
|
+
interval_ms?: number | undefined;
|
|
320
|
+
timeout_ms?: number | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
instructions?: string | undefined;
|
|
323
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
63
324
|
headers?: Record<string, string> | undefined;
|
|
64
325
|
oauth_callback_port?: number | undefined;
|
|
65
326
|
oauth_callback_url?: string | undefined;
|
|
327
|
+
client_credentials?: {
|
|
328
|
+
client_id: string;
|
|
329
|
+
client_secret: string;
|
|
330
|
+
token_url: string;
|
|
331
|
+
scope?: string | undefined;
|
|
332
|
+
} | undefined;
|
|
333
|
+
request_timeout_ms?: number | undefined;
|
|
66
334
|
}>]>;
|
|
67
335
|
export type McpServerConfig = z.infer<typeof McpServerConfig>;
|
|
68
336
|
export declare const BuiltinProviderConfig: z.ZodObject<{
|
|
337
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
338
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
69
339
|
type: z.ZodLiteral<"builtin">;
|
|
70
340
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
71
341
|
}, "strict", z.ZodTypeAny, {
|
|
72
342
|
type: "builtin";
|
|
73
343
|
enabled: boolean;
|
|
344
|
+
instructions?: string | undefined;
|
|
345
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
74
346
|
}, {
|
|
75
347
|
type: "builtin";
|
|
76
348
|
enabled?: boolean | undefined;
|
|
349
|
+
instructions?: string | undefined;
|
|
350
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
77
351
|
}>;
|
|
78
352
|
export type BuiltinProviderConfig = z.infer<typeof BuiltinProviderConfig>;
|
|
79
353
|
export declare const ProviderConfig: z.ZodUnion<[z.ZodLiteral<"builtin">, z.ZodObject<{
|
|
354
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
355
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
80
356
|
type: z.ZodLiteral<"builtin">;
|
|
81
357
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
82
358
|
}, "strict", z.ZodTypeAny, {
|
|
83
359
|
type: "builtin";
|
|
84
360
|
enabled: boolean;
|
|
361
|
+
instructions?: string | undefined;
|
|
362
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
85
363
|
}, {
|
|
86
364
|
type: "builtin";
|
|
87
365
|
enabled?: boolean | undefined;
|
|
366
|
+
instructions?: string | undefined;
|
|
367
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
88
368
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
369
|
+
credential_probe: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
371
|
+
tool: z.ZodString;
|
|
372
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
373
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
374
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
375
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
376
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
377
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
378
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
379
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
380
|
+
}, "strict", z.ZodTypeAny, {
|
|
381
|
+
tool: string;
|
|
382
|
+
args: Record<string, unknown>;
|
|
383
|
+
interval_ms: number;
|
|
384
|
+
timeout_ms: number;
|
|
385
|
+
expect_contains?: string | undefined;
|
|
386
|
+
reject_contains?: string | undefined;
|
|
387
|
+
}, {
|
|
388
|
+
tool: string;
|
|
389
|
+
args?: Record<string, unknown> | undefined;
|
|
390
|
+
expect_contains?: string | undefined;
|
|
391
|
+
reject_contains?: string | undefined;
|
|
392
|
+
interval_ms?: number | undefined;
|
|
393
|
+
timeout_ms?: number | undefined;
|
|
394
|
+
}>>;
|
|
395
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
396
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
89
397
|
type: z.ZodLiteral<"stdio">;
|
|
90
398
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
91
399
|
command: z.ZodString;
|
|
@@ -93,17 +401,65 @@ export declare const ProviderConfig: z.ZodUnion<[z.ZodLiteral<"builtin">, z.ZodO
|
|
|
93
401
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
|
|
94
402
|
}, "strict", z.ZodTypeAny, {
|
|
95
403
|
type: "stdio";
|
|
404
|
+
args: string[];
|
|
96
405
|
enabled: boolean;
|
|
97
406
|
command: string;
|
|
98
|
-
args: string[];
|
|
99
407
|
env?: Record<string, string> | undefined;
|
|
408
|
+
credential_probe?: {
|
|
409
|
+
tool: string;
|
|
410
|
+
args: Record<string, unknown>;
|
|
411
|
+
interval_ms: number;
|
|
412
|
+
timeout_ms: number;
|
|
413
|
+
expect_contains?: string | undefined;
|
|
414
|
+
reject_contains?: string | undefined;
|
|
415
|
+
} | undefined;
|
|
416
|
+
instructions?: string | undefined;
|
|
417
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
100
418
|
}, {
|
|
101
419
|
type: "stdio";
|
|
102
420
|
command: string;
|
|
103
|
-
enabled?: boolean | undefined;
|
|
104
421
|
args?: string[] | undefined;
|
|
422
|
+
enabled?: boolean | undefined;
|
|
105
423
|
env?: Record<string, string> | undefined;
|
|
424
|
+
credential_probe?: {
|
|
425
|
+
tool: string;
|
|
426
|
+
args?: Record<string, unknown> | undefined;
|
|
427
|
+
expect_contains?: string | undefined;
|
|
428
|
+
reject_contains?: string | undefined;
|
|
429
|
+
interval_ms?: number | undefined;
|
|
430
|
+
timeout_ms?: number | undefined;
|
|
431
|
+
} | undefined;
|
|
432
|
+
instructions?: string | undefined;
|
|
433
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
106
434
|
}>, z.ZodObject<{
|
|
435
|
+
credential_probe: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
437
|
+
tool: z.ZodString;
|
|
438
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
439
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
440
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
441
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
442
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
443
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
444
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
445
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
446
|
+
}, "strict", z.ZodTypeAny, {
|
|
447
|
+
tool: string;
|
|
448
|
+
args: Record<string, unknown>;
|
|
449
|
+
interval_ms: number;
|
|
450
|
+
timeout_ms: number;
|
|
451
|
+
expect_contains?: string | undefined;
|
|
452
|
+
reject_contains?: string | undefined;
|
|
453
|
+
}, {
|
|
454
|
+
tool: string;
|
|
455
|
+
args?: Record<string, unknown> | undefined;
|
|
456
|
+
expect_contains?: string | undefined;
|
|
457
|
+
reject_contains?: string | undefined;
|
|
458
|
+
interval_ms?: number | undefined;
|
|
459
|
+
timeout_ms?: number | undefined;
|
|
460
|
+
}>>;
|
|
461
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
462
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
107
463
|
type: z.ZodLiteral<"sse">;
|
|
108
464
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
109
465
|
url: z.ZodString;
|
|
@@ -112,13 +468,61 @@ export declare const ProviderConfig: z.ZodUnion<[z.ZodLiteral<"builtin">, z.ZodO
|
|
|
112
468
|
url: string;
|
|
113
469
|
type: "sse";
|
|
114
470
|
enabled: boolean;
|
|
471
|
+
credential_probe?: {
|
|
472
|
+
tool: string;
|
|
473
|
+
args: Record<string, unknown>;
|
|
474
|
+
interval_ms: number;
|
|
475
|
+
timeout_ms: number;
|
|
476
|
+
expect_contains?: string | undefined;
|
|
477
|
+
reject_contains?: string | undefined;
|
|
478
|
+
} | undefined;
|
|
479
|
+
instructions?: string | undefined;
|
|
480
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
115
481
|
headers?: Record<string, string> | undefined;
|
|
116
482
|
}, {
|
|
117
483
|
url: string;
|
|
118
484
|
type: "sse";
|
|
119
485
|
enabled?: boolean | undefined;
|
|
486
|
+
credential_probe?: {
|
|
487
|
+
tool: string;
|
|
488
|
+
args?: Record<string, unknown> | undefined;
|
|
489
|
+
expect_contains?: string | undefined;
|
|
490
|
+
reject_contains?: string | undefined;
|
|
491
|
+
interval_ms?: number | undefined;
|
|
492
|
+
timeout_ms?: number | undefined;
|
|
493
|
+
} | undefined;
|
|
494
|
+
instructions?: string | undefined;
|
|
495
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
120
496
|
headers?: Record<string, string> | undefined;
|
|
121
497
|
}>, z.ZodObject<{
|
|
498
|
+
credential_probe: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
500
|
+
tool: z.ZodString;
|
|
501
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
502
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
503
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
504
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
505
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
506
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
507
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
508
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
509
|
+
}, "strict", z.ZodTypeAny, {
|
|
510
|
+
tool: string;
|
|
511
|
+
args: Record<string, unknown>;
|
|
512
|
+
interval_ms: number;
|
|
513
|
+
timeout_ms: number;
|
|
514
|
+
expect_contains?: string | undefined;
|
|
515
|
+
reject_contains?: string | undefined;
|
|
516
|
+
}, {
|
|
517
|
+
tool: string;
|
|
518
|
+
args?: Record<string, unknown> | undefined;
|
|
519
|
+
expect_contains?: string | undefined;
|
|
520
|
+
reject_contains?: string | undefined;
|
|
521
|
+
interval_ms?: number | undefined;
|
|
522
|
+
timeout_ms?: number | undefined;
|
|
523
|
+
}>>;
|
|
524
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
525
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
122
526
|
type: z.ZodLiteral<"http">;
|
|
123
527
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
124
528
|
url: z.ZodString;
|
|
@@ -128,16 +532,62 @@ export declare const ProviderConfig: z.ZodUnion<[z.ZodLiteral<"builtin">, z.ZodO
|
|
|
128
532
|
oauth_callback_url: z.ZodOptional<z.ZodString>;
|
|
129
533
|
client_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
130
534
|
client_secret: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
535
|
+
client_credentials: z.ZodOptional<z.ZodObject<{
|
|
536
|
+
/** The issuer's token endpoint, e.g. `https://api.linear.app/oauth/token`. */
|
|
537
|
+
token_url: z.ZodString;
|
|
538
|
+
client_id: z.ZodEffects<z.ZodString, string, string>;
|
|
539
|
+
client_secret: z.ZodEffects<z.ZodString, string, string>;
|
|
540
|
+
/**
|
|
541
|
+
* Scopes to request, verbatim — the separator is the issuer's to define (Linear uses commas,
|
|
542
|
+
* the OAuth2 spec says spaces), so the string is passed through untouched. Omit to accept the
|
|
543
|
+
* issuer's default scopes. NOTE: some issuers revoke every live token when an app's scopes
|
|
544
|
+
* change, so treat this as a value that is changed deliberately, not tuned.
|
|
545
|
+
*/
|
|
546
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
547
|
+
}, "strict", z.ZodTypeAny, {
|
|
548
|
+
client_id: string;
|
|
549
|
+
client_secret: string;
|
|
550
|
+
token_url: string;
|
|
551
|
+
scope?: string | undefined;
|
|
552
|
+
}, {
|
|
553
|
+
client_id: string;
|
|
554
|
+
client_secret: string;
|
|
555
|
+
token_url: string;
|
|
556
|
+
scope?: string | undefined;
|
|
557
|
+
}>>;
|
|
558
|
+
/**
|
|
559
|
+
* Per-request MCP SDK deadline. The SDK otherwise imposes an invisible 60s default even when
|
|
560
|
+
* Airlock's outer call_execution_timeout_ms is higher, so slow but healthy providers can
|
|
561
|
+
* never use the operator-configured execution budget.
|
|
562
|
+
*/
|
|
563
|
+
request_timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
131
564
|
}, "strict", z.ZodTypeAny, {
|
|
132
565
|
url: string;
|
|
133
566
|
type: "http";
|
|
134
567
|
oauth: boolean;
|
|
135
568
|
enabled: boolean;
|
|
136
569
|
oauth_callback_port: number;
|
|
570
|
+
request_timeout_ms: number;
|
|
137
571
|
client_id?: string | undefined;
|
|
138
572
|
client_secret?: string | undefined;
|
|
573
|
+
credential_probe?: {
|
|
574
|
+
tool: string;
|
|
575
|
+
args: Record<string, unknown>;
|
|
576
|
+
interval_ms: number;
|
|
577
|
+
timeout_ms: number;
|
|
578
|
+
expect_contains?: string | undefined;
|
|
579
|
+
reject_contains?: string | undefined;
|
|
580
|
+
} | undefined;
|
|
581
|
+
instructions?: string | undefined;
|
|
582
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
139
583
|
headers?: Record<string, string> | undefined;
|
|
140
584
|
oauth_callback_url?: string | undefined;
|
|
585
|
+
client_credentials?: {
|
|
586
|
+
client_id: string;
|
|
587
|
+
client_secret: string;
|
|
588
|
+
token_url: string;
|
|
589
|
+
scope?: string | undefined;
|
|
590
|
+
} | undefined;
|
|
141
591
|
}, {
|
|
142
592
|
url: string;
|
|
143
593
|
type: "http";
|
|
@@ -145,13 +595,47 @@ export declare const ProviderConfig: z.ZodUnion<[z.ZodLiteral<"builtin">, z.ZodO
|
|
|
145
595
|
client_id?: string | undefined;
|
|
146
596
|
client_secret?: string | undefined;
|
|
147
597
|
enabled?: boolean | undefined;
|
|
598
|
+
credential_probe?: {
|
|
599
|
+
tool: string;
|
|
600
|
+
args?: Record<string, unknown> | undefined;
|
|
601
|
+
expect_contains?: string | undefined;
|
|
602
|
+
reject_contains?: string | undefined;
|
|
603
|
+
interval_ms?: number | undefined;
|
|
604
|
+
timeout_ms?: number | undefined;
|
|
605
|
+
} | undefined;
|
|
606
|
+
instructions?: string | undefined;
|
|
607
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
148
608
|
headers?: Record<string, string> | undefined;
|
|
149
609
|
oauth_callback_port?: number | undefined;
|
|
150
610
|
oauth_callback_url?: string | undefined;
|
|
611
|
+
client_credentials?: {
|
|
612
|
+
client_id: string;
|
|
613
|
+
client_secret: string;
|
|
614
|
+
token_url: string;
|
|
615
|
+
scope?: string | undefined;
|
|
616
|
+
} | undefined;
|
|
617
|
+
request_timeout_ms?: number | undefined;
|
|
151
618
|
}>]>]>;
|
|
152
619
|
export type ProviderConfig = z.infer<typeof ProviderConfig>;
|
|
153
620
|
/** Extract only MCP server configs from the providers map */
|
|
154
621
|
export declare function getMcpConfigs(providers: Record<string, ProviderConfig>): Record<string, McpServerConfig>;
|
|
622
|
+
/**
|
|
623
|
+
* Credential probes for the providers that declare one, keyed by provider id. Providers without a
|
|
624
|
+
* probe are simply absent — the monitor still reports on them, using the transport's own OAuth
|
|
625
|
+
* state, and says `unknown` rather than guessing.
|
|
626
|
+
*/
|
|
627
|
+
export declare function getCredentialProbes(providers: Record<string, ProviderConfig>): Record<string, CredentialProbeConfig>;
|
|
628
|
+
export interface ProviderInstructionsConfig {
|
|
629
|
+
/** Operator-authored text. Trusted: never scrubbed or truncated. */
|
|
630
|
+
instructions?: string;
|
|
631
|
+
/** Whether the provider's own advertised instructions are included alongside it. */
|
|
632
|
+
upstream: 'include' | 'ignore';
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Per-provider instruction settings, keyed by provider id. Providers declared as the bare string
|
|
636
|
+
* `'builtin'` carry no settings and fall back to the defaults.
|
|
637
|
+
*/
|
|
638
|
+
export declare function getProviderInstructions(providers: Record<string, ProviderConfig>): Record<string, ProviderInstructionsConfig>;
|
|
155
639
|
/** Extract the set of builtin provider names (e.g. "exec", "http") */
|
|
156
640
|
export declare function getBuiltinProviders(providers: Record<string, ProviderConfig>): Set<string>;
|
|
157
641
|
export declare const SandboxFilesystemConfig: z.ZodObject<{
|
|
@@ -853,6 +1337,60 @@ export declare const ToolArgPolicyConfig: z.ZodRecord<z.ZodString, z.ZodRecord<z
|
|
|
853
1337
|
value_set?: string | undefined;
|
|
854
1338
|
}[]]>>>;
|
|
855
1339
|
export type ToolArgPolicyConfig = z.infer<typeof ToolArgPolicyConfig>;
|
|
1340
|
+
export declare const CommandPolicyRuleConfig: z.ZodEffects<z.ZodObject<{
|
|
1341
|
+
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1342
|
+
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1343
|
+
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1344
|
+
default: z.ZodOptional<z.ZodEnum<["allow", "ask", "deny"]>>;
|
|
1345
|
+
}, "strict", z.ZodTypeAny, {
|
|
1346
|
+
allow: string[];
|
|
1347
|
+
ask: string[];
|
|
1348
|
+
deny: string[];
|
|
1349
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
1350
|
+
}, {
|
|
1351
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
1352
|
+
allow?: string[] | undefined;
|
|
1353
|
+
ask?: string[] | undefined;
|
|
1354
|
+
deny?: string[] | undefined;
|
|
1355
|
+
}>, {
|
|
1356
|
+
allow: string[];
|
|
1357
|
+
ask: string[];
|
|
1358
|
+
deny: string[];
|
|
1359
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
1360
|
+
}, {
|
|
1361
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
1362
|
+
allow?: string[] | undefined;
|
|
1363
|
+
ask?: string[] | undefined;
|
|
1364
|
+
deny?: string[] | undefined;
|
|
1365
|
+
}>;
|
|
1366
|
+
export type CommandPolicyRuleConfig = z.infer<typeof CommandPolicyRuleConfig>;
|
|
1367
|
+
export declare const CommandPolicyConfig: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
1368
|
+
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1369
|
+
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1370
|
+
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1371
|
+
default: z.ZodOptional<z.ZodEnum<["allow", "ask", "deny"]>>;
|
|
1372
|
+
}, "strict", z.ZodTypeAny, {
|
|
1373
|
+
allow: string[];
|
|
1374
|
+
ask: string[];
|
|
1375
|
+
deny: string[];
|
|
1376
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
1377
|
+
}, {
|
|
1378
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
1379
|
+
allow?: string[] | undefined;
|
|
1380
|
+
ask?: string[] | undefined;
|
|
1381
|
+
deny?: string[] | undefined;
|
|
1382
|
+
}>, {
|
|
1383
|
+
allow: string[];
|
|
1384
|
+
ask: string[];
|
|
1385
|
+
deny: string[];
|
|
1386
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
1387
|
+
}, {
|
|
1388
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
1389
|
+
allow?: string[] | undefined;
|
|
1390
|
+
ask?: string[] | undefined;
|
|
1391
|
+
deny?: string[] | undefined;
|
|
1392
|
+
}>>>;
|
|
1393
|
+
export type CommandPolicyConfig = z.infer<typeof CommandPolicyConfig>;
|
|
856
1394
|
export declare const ArgScopeConfig: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>>, {
|
|
857
1395
|
[k: string]: string[];
|
|
858
1396
|
}, Record<string, string | [string, ...string[]]>>;
|
|
@@ -872,7 +1410,13 @@ export declare const ArgDimensionConfig: z.ZodObject<{
|
|
|
872
1410
|
}>;
|
|
873
1411
|
export type ArgDimensionConfig = z.infer<typeof ArgDimensionConfig>;
|
|
874
1412
|
export declare const ToolOverride: z.ZodObject<{
|
|
1413
|
+
/** Replaces the upstream description entirely. */
|
|
875
1414
|
description: z.ZodOptional<z.ZodString>;
|
|
1415
|
+
/**
|
|
1416
|
+
* Appended after whatever description survives (upstream, or `description` when set). Use this
|
|
1417
|
+
* for house rules you want on top of the vendor's docs without restating them by hand.
|
|
1418
|
+
*/
|
|
1419
|
+
description_append: z.ZodOptional<z.ZodString>;
|
|
876
1420
|
alias_of: z.ZodOptional<z.ZodString>;
|
|
877
1421
|
sandbox_presets: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
|
|
878
1422
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
@@ -1140,6 +1684,7 @@ export declare const ToolOverride: z.ZodObject<{
|
|
|
1140
1684
|
label?: string | undefined;
|
|
1141
1685
|
value_set?: string | undefined;
|
|
1142
1686
|
}[]> | undefined;
|
|
1687
|
+
description_append?: string | undefined;
|
|
1143
1688
|
alias_of?: string | undefined;
|
|
1144
1689
|
sandbox?: {
|
|
1145
1690
|
filesystem?: {
|
|
@@ -1198,6 +1743,7 @@ export declare const ToolOverride: z.ZodObject<{
|
|
|
1198
1743
|
label?: string | undefined;
|
|
1199
1744
|
value_set?: string | undefined;
|
|
1200
1745
|
}[]]> | undefined;
|
|
1746
|
+
description_append?: string | undefined;
|
|
1201
1747
|
alias_of?: string | undefined;
|
|
1202
1748
|
sandbox_presets?: string | string[] | undefined;
|
|
1203
1749
|
sandbox?: {
|
|
@@ -1213,6 +1759,7 @@ export declare const ToolOverride: z.ZodObject<{
|
|
|
1213
1759
|
} | undefined;
|
|
1214
1760
|
} | undefined;
|
|
1215
1761
|
}>;
|
|
1762
|
+
export type ToolOverride = z.infer<typeof ToolOverride>;
|
|
1216
1763
|
export declare const AgentExecConfig: z.ZodObject<{
|
|
1217
1764
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1218
1765
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1238,13 +1785,13 @@ export declare const AgentHttpConfig: z.ZodObject<{
|
|
|
1238
1785
|
max_response_bytes: z.ZodDefault<z.ZodNumber>;
|
|
1239
1786
|
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
1240
1787
|
}, "strict", z.ZodTypeAny, {
|
|
1788
|
+
timeout_ms: number;
|
|
1241
1789
|
domain_allowlist: string[];
|
|
1242
1790
|
max_response_bytes: number;
|
|
1243
|
-
timeout_ms: number;
|
|
1244
1791
|
}, {
|
|
1792
|
+
timeout_ms?: number | undefined;
|
|
1245
1793
|
domain_allowlist?: string[] | undefined;
|
|
1246
1794
|
max_response_bytes?: number | undefined;
|
|
1247
|
-
timeout_ms?: number | undefined;
|
|
1248
1795
|
}>;
|
|
1249
1796
|
export type AgentHttpConfig = z.infer<typeof AgentHttpConfig>;
|
|
1250
1797
|
export declare const RememberAllowRule: z.ZodObject<{
|
|
@@ -1279,11 +1826,11 @@ export declare const MiddlewareItemConfig: z.ZodObject<{
|
|
|
1279
1826
|
enabled: boolean;
|
|
1280
1827
|
model?: string | undefined;
|
|
1281
1828
|
tools?: string[] | undefined;
|
|
1282
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
1283
1829
|
exclude?: string[] | undefined;
|
|
1284
1830
|
max_requests?: number | undefined;
|
|
1285
1831
|
window_ms?: number | undefined;
|
|
1286
1832
|
per?: "tool" | "agent" | undefined;
|
|
1833
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
1287
1834
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
1288
1835
|
inference_url?: string | undefined;
|
|
1289
1836
|
threshold?: number | undefined;
|
|
@@ -1294,12 +1841,12 @@ export declare const MiddlewareItemConfig: z.ZodObject<{
|
|
|
1294
1841
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
1295
1842
|
model?: string | undefined;
|
|
1296
1843
|
tools?: string[] | undefined;
|
|
1297
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
1298
1844
|
enabled?: boolean | undefined;
|
|
1299
1845
|
exclude?: string[] | undefined;
|
|
1300
1846
|
max_requests?: number | undefined;
|
|
1301
1847
|
window_ms?: number | undefined;
|
|
1302
1848
|
per?: "tool" | "agent" | undefined;
|
|
1849
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
1303
1850
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
1304
1851
|
inference_url?: string | undefined;
|
|
1305
1852
|
threshold?: number | undefined;
|
|
@@ -1308,9 +1855,39 @@ export declare const MiddlewareItemConfig: z.ZodObject<{
|
|
|
1308
1855
|
threshold_chars?: number | undefined;
|
|
1309
1856
|
}>;
|
|
1310
1857
|
export type MiddlewareItemConfig = z.infer<typeof MiddlewareItemConfig>;
|
|
1858
|
+
export declare const LimitsConfig: z.ZodObject<{
|
|
1859
|
+
max_sessions_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
1860
|
+
max_sessions_global: z.ZodOptional<z.ZodNumber>;
|
|
1861
|
+
session_idle_ms: z.ZodOptional<z.ZodNumber>;
|
|
1862
|
+
session_max_lifetime_ms: z.ZodOptional<z.ZodNumber>;
|
|
1863
|
+
new_session_max: z.ZodOptional<z.ZodNumber>;
|
|
1864
|
+
new_session_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
1865
|
+
max_concurrent_calls_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
1866
|
+
call_execution_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
1867
|
+
}, "strict", z.ZodTypeAny, {
|
|
1868
|
+
max_sessions_per_agent?: number | undefined;
|
|
1869
|
+
max_sessions_global?: number | undefined;
|
|
1870
|
+
session_idle_ms?: number | undefined;
|
|
1871
|
+
session_max_lifetime_ms?: number | undefined;
|
|
1872
|
+
new_session_max?: number | undefined;
|
|
1873
|
+
new_session_window_ms?: number | undefined;
|
|
1874
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
1875
|
+
call_execution_timeout_ms?: number | undefined;
|
|
1876
|
+
}, {
|
|
1877
|
+
max_sessions_per_agent?: number | undefined;
|
|
1878
|
+
max_sessions_global?: number | undefined;
|
|
1879
|
+
session_idle_ms?: number | undefined;
|
|
1880
|
+
session_max_lifetime_ms?: number | undefined;
|
|
1881
|
+
new_session_max?: number | undefined;
|
|
1882
|
+
new_session_window_ms?: number | undefined;
|
|
1883
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
1884
|
+
call_execution_timeout_ms?: number | undefined;
|
|
1885
|
+
}>;
|
|
1886
|
+
export type LimitsConfig = z.infer<typeof LimitsConfig>;
|
|
1311
1887
|
export declare const AgentConfig: z.ZodObject<{
|
|
1312
1888
|
token: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1313
1889
|
extends: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1890
|
+
inherit_default: z.ZodDefault<z.ZodBoolean>;
|
|
1314
1891
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1315
1892
|
remember_allow: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1316
1893
|
tool: z.ZodString;
|
|
@@ -1325,7 +1902,13 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
1325
1902
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1326
1903
|
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1327
1904
|
tool_overrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1905
|
+
/** Replaces the upstream description entirely. */
|
|
1328
1906
|
description: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
/**
|
|
1908
|
+
* Appended after whatever description survives (upstream, or `description` when set). Use this
|
|
1909
|
+
* for house rules you want on top of the vendor's docs without restating them by hand.
|
|
1910
|
+
*/
|
|
1911
|
+
description_append: z.ZodOptional<z.ZodString>;
|
|
1329
1912
|
alias_of: z.ZodOptional<z.ZodString>;
|
|
1330
1913
|
sandbox_presets: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
|
|
1331
1914
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
@@ -1593,6 +2176,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
1593
2176
|
label?: string | undefined;
|
|
1594
2177
|
value_set?: string | undefined;
|
|
1595
2178
|
}[]> | undefined;
|
|
2179
|
+
description_append?: string | undefined;
|
|
1596
2180
|
alias_of?: string | undefined;
|
|
1597
2181
|
sandbox?: {
|
|
1598
2182
|
filesystem?: {
|
|
@@ -1651,6 +2235,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
1651
2235
|
label?: string | undefined;
|
|
1652
2236
|
value_set?: string | undefined;
|
|
1653
2237
|
}[]]> | undefined;
|
|
2238
|
+
description_append?: string | undefined;
|
|
1654
2239
|
alias_of?: string | undefined;
|
|
1655
2240
|
sandbox_presets?: string | string[] | undefined;
|
|
1656
2241
|
sandbox?: {
|
|
@@ -1866,6 +2451,32 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
1866
2451
|
arg_scope: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>>, {
|
|
1867
2452
|
[k: string]: string[];
|
|
1868
2453
|
}, Record<string, string | [string, ...string[]]>>>;
|
|
2454
|
+
command_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
2455
|
+
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2456
|
+
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2457
|
+
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2458
|
+
default: z.ZodOptional<z.ZodEnum<["allow", "ask", "deny"]>>;
|
|
2459
|
+
}, "strict", z.ZodTypeAny, {
|
|
2460
|
+
allow: string[];
|
|
2461
|
+
ask: string[];
|
|
2462
|
+
deny: string[];
|
|
2463
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
2464
|
+
}, {
|
|
2465
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
2466
|
+
allow?: string[] | undefined;
|
|
2467
|
+
ask?: string[] | undefined;
|
|
2468
|
+
deny?: string[] | undefined;
|
|
2469
|
+
}>, {
|
|
2470
|
+
allow: string[];
|
|
2471
|
+
ask: string[];
|
|
2472
|
+
deny: string[];
|
|
2473
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
2474
|
+
}, {
|
|
2475
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
2476
|
+
allow?: string[] | undefined;
|
|
2477
|
+
ask?: string[] | undefined;
|
|
2478
|
+
deny?: string[] | undefined;
|
|
2479
|
+
}>>>>;
|
|
1869
2480
|
exec: z.ZodDefault<z.ZodObject<{
|
|
1870
2481
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1871
2482
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1890,13 +2501,13 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
1890
2501
|
max_response_bytes: z.ZodDefault<z.ZodNumber>;
|
|
1891
2502
|
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
1892
2503
|
}, "strict", z.ZodTypeAny, {
|
|
2504
|
+
timeout_ms: number;
|
|
1893
2505
|
domain_allowlist: string[];
|
|
1894
2506
|
max_response_bytes: number;
|
|
1895
|
-
timeout_ms: number;
|
|
1896
2507
|
}, {
|
|
2508
|
+
timeout_ms?: number | undefined;
|
|
1897
2509
|
domain_allowlist?: string[] | undefined;
|
|
1898
2510
|
max_response_bytes?: number | undefined;
|
|
1899
|
-
timeout_ms?: number | undefined;
|
|
1900
2511
|
}>>;
|
|
1901
2512
|
sandbox: z.ZodDefault<z.ZodObject<{
|
|
1902
2513
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2049,11 +2660,11 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2049
2660
|
enabled: boolean;
|
|
2050
2661
|
model?: string | undefined;
|
|
2051
2662
|
tools?: string[] | undefined;
|
|
2052
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
2053
2663
|
exclude?: string[] | undefined;
|
|
2054
2664
|
max_requests?: number | undefined;
|
|
2055
2665
|
window_ms?: number | undefined;
|
|
2056
2666
|
per?: "tool" | "agent" | undefined;
|
|
2667
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
2057
2668
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
2058
2669
|
inference_url?: string | undefined;
|
|
2059
2670
|
threshold?: number | undefined;
|
|
@@ -2064,12 +2675,12 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2064
2675
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
2065
2676
|
model?: string | undefined;
|
|
2066
2677
|
tools?: string[] | undefined;
|
|
2067
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
2068
2678
|
enabled?: boolean | undefined;
|
|
2069
2679
|
exclude?: string[] | undefined;
|
|
2070
2680
|
max_requests?: number | undefined;
|
|
2071
2681
|
window_ms?: number | undefined;
|
|
2072
2682
|
per?: "tool" | "agent" | undefined;
|
|
2683
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
2073
2684
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
2074
2685
|
inference_url?: string | undefined;
|
|
2075
2686
|
threshold?: number | undefined;
|
|
@@ -2077,13 +2688,44 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2077
2688
|
max_chars?: number | undefined;
|
|
2078
2689
|
threshold_chars?: number | undefined;
|
|
2079
2690
|
}>, "many">>;
|
|
2691
|
+
expose_tools_api: z.ZodDefault<z.ZodBoolean>;
|
|
2692
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2693
|
+
max_sessions_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
2694
|
+
max_sessions_global: z.ZodOptional<z.ZodNumber>;
|
|
2695
|
+
session_idle_ms: z.ZodOptional<z.ZodNumber>;
|
|
2696
|
+
session_max_lifetime_ms: z.ZodOptional<z.ZodNumber>;
|
|
2697
|
+
new_session_max: z.ZodOptional<z.ZodNumber>;
|
|
2698
|
+
new_session_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
2699
|
+
max_concurrent_calls_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
2700
|
+
call_execution_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
2701
|
+
}, "strict", z.ZodTypeAny, {
|
|
2702
|
+
max_sessions_per_agent?: number | undefined;
|
|
2703
|
+
max_sessions_global?: number | undefined;
|
|
2704
|
+
session_idle_ms?: number | undefined;
|
|
2705
|
+
session_max_lifetime_ms?: number | undefined;
|
|
2706
|
+
new_session_max?: number | undefined;
|
|
2707
|
+
new_session_window_ms?: number | undefined;
|
|
2708
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
2709
|
+
call_execution_timeout_ms?: number | undefined;
|
|
2710
|
+
}, {
|
|
2711
|
+
max_sessions_per_agent?: number | undefined;
|
|
2712
|
+
max_sessions_global?: number | undefined;
|
|
2713
|
+
session_idle_ms?: number | undefined;
|
|
2714
|
+
session_max_lifetime_ms?: number | undefined;
|
|
2715
|
+
new_session_max?: number | undefined;
|
|
2716
|
+
new_session_window_ms?: number | undefined;
|
|
2717
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
2718
|
+
call_execution_timeout_ms?: number | undefined;
|
|
2719
|
+
}>>;
|
|
2080
2720
|
}, "strict", z.ZodTypeAny, {
|
|
2081
2721
|
http: {
|
|
2722
|
+
timeout_ms: number;
|
|
2082
2723
|
domain_allowlist: string[];
|
|
2083
2724
|
max_response_bytes: number;
|
|
2084
|
-
timeout_ms: number;
|
|
2085
2725
|
};
|
|
2086
2726
|
allow: string[];
|
|
2727
|
+
ask: string[];
|
|
2728
|
+
deny: string[];
|
|
2087
2729
|
sandbox: {
|
|
2088
2730
|
enabled: boolean;
|
|
2089
2731
|
filesystem: {
|
|
@@ -2110,9 +2752,8 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2110
2752
|
} | undefined;
|
|
2111
2753
|
}>;
|
|
2112
2754
|
};
|
|
2113
|
-
ask: string[];
|
|
2114
|
-
deny: string[];
|
|
2115
2755
|
extends: string[];
|
|
2756
|
+
inherit_default: boolean;
|
|
2116
2757
|
remember_allow: {
|
|
2117
2758
|
tool: string;
|
|
2118
2759
|
expires_at?: string | undefined;
|
|
@@ -2135,6 +2776,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2135
2776
|
label?: string | undefined;
|
|
2136
2777
|
value_set?: string | undefined;
|
|
2137
2778
|
}[]> | undefined;
|
|
2779
|
+
description_append?: string | undefined;
|
|
2138
2780
|
alias_of?: string | undefined;
|
|
2139
2781
|
sandbox?: {
|
|
2140
2782
|
filesystem?: {
|
|
@@ -2156,6 +2798,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2156
2798
|
deny: string[];
|
|
2157
2799
|
default_timeout_ms: number;
|
|
2158
2800
|
};
|
|
2801
|
+
expose_tools_api: boolean;
|
|
2159
2802
|
token?: string | undefined;
|
|
2160
2803
|
arg_policy?: Record<string, Record<string, {
|
|
2161
2804
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -2175,16 +2818,22 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2175
2818
|
arg_scope?: {
|
|
2176
2819
|
[k: string]: string[];
|
|
2177
2820
|
} | undefined;
|
|
2821
|
+
command_policy?: Record<string, Record<string, {
|
|
2822
|
+
allow: string[];
|
|
2823
|
+
ask: string[];
|
|
2824
|
+
deny: string[];
|
|
2825
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
2826
|
+
}>> | undefined;
|
|
2178
2827
|
middleware?: {
|
|
2179
2828
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
2180
2829
|
enabled: boolean;
|
|
2181
2830
|
model?: string | undefined;
|
|
2182
2831
|
tools?: string[] | undefined;
|
|
2183
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
2184
2832
|
exclude?: string[] | undefined;
|
|
2185
2833
|
max_requests?: number | undefined;
|
|
2186
2834
|
window_ms?: number | undefined;
|
|
2187
2835
|
per?: "tool" | "agent" | undefined;
|
|
2836
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
2188
2837
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
2189
2838
|
inference_url?: string | undefined;
|
|
2190
2839
|
threshold?: number | undefined;
|
|
@@ -2192,13 +2841,25 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2192
2841
|
max_chars?: number | undefined;
|
|
2193
2842
|
threshold_chars?: number | undefined;
|
|
2194
2843
|
}[] | undefined;
|
|
2844
|
+
limits?: {
|
|
2845
|
+
max_sessions_per_agent?: number | undefined;
|
|
2846
|
+
max_sessions_global?: number | undefined;
|
|
2847
|
+
session_idle_ms?: number | undefined;
|
|
2848
|
+
session_max_lifetime_ms?: number | undefined;
|
|
2849
|
+
new_session_max?: number | undefined;
|
|
2850
|
+
new_session_window_ms?: number | undefined;
|
|
2851
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
2852
|
+
call_execution_timeout_ms?: number | undefined;
|
|
2853
|
+
} | undefined;
|
|
2195
2854
|
}, {
|
|
2196
2855
|
http?: {
|
|
2856
|
+
timeout_ms?: number | undefined;
|
|
2197
2857
|
domain_allowlist?: string[] | undefined;
|
|
2198
2858
|
max_response_bytes?: number | undefined;
|
|
2199
|
-
timeout_ms?: number | undefined;
|
|
2200
2859
|
} | undefined;
|
|
2201
2860
|
allow?: string[] | undefined;
|
|
2861
|
+
ask?: string[] | undefined;
|
|
2862
|
+
deny?: string[] | undefined;
|
|
2202
2863
|
sandbox?: {
|
|
2203
2864
|
enabled?: boolean | undefined;
|
|
2204
2865
|
filesystem?: {
|
|
@@ -2225,10 +2886,9 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2225
2886
|
} | undefined;
|
|
2226
2887
|
}> | undefined;
|
|
2227
2888
|
} | undefined;
|
|
2228
|
-
ask?: string[] | undefined;
|
|
2229
|
-
deny?: string[] | undefined;
|
|
2230
2889
|
token?: string | undefined;
|
|
2231
2890
|
extends?: string[] | undefined;
|
|
2891
|
+
inherit_default?: boolean | undefined;
|
|
2232
2892
|
remember_allow?: {
|
|
2233
2893
|
tool: string;
|
|
2234
2894
|
expires_at?: string | undefined;
|
|
@@ -2278,6 +2938,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2278
2938
|
label?: string | undefined;
|
|
2279
2939
|
value_set?: string | undefined;
|
|
2280
2940
|
}[]]> | undefined;
|
|
2941
|
+
description_append?: string | undefined;
|
|
2281
2942
|
alias_of?: string | undefined;
|
|
2282
2943
|
sandbox_presets?: string | string[] | undefined;
|
|
2283
2944
|
sandbox?: {
|
|
@@ -2337,6 +2998,12 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2337
2998
|
value_set?: string | undefined;
|
|
2338
2999
|
}[]]>> | undefined;
|
|
2339
3000
|
arg_scope?: Record<string, string | [string, ...string[]]> | undefined;
|
|
3001
|
+
command_policy?: Record<string, Record<string, {
|
|
3002
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
3003
|
+
allow?: string[] | undefined;
|
|
3004
|
+
ask?: string[] | undefined;
|
|
3005
|
+
deny?: string[] | undefined;
|
|
3006
|
+
}>> | undefined;
|
|
2340
3007
|
exec?: {
|
|
2341
3008
|
env?: Record<string, string> | undefined;
|
|
2342
3009
|
allow?: string[] | undefined;
|
|
@@ -2348,12 +3015,12 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2348
3015
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
2349
3016
|
model?: string | undefined;
|
|
2350
3017
|
tools?: string[] | undefined;
|
|
2351
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
2352
3018
|
enabled?: boolean | undefined;
|
|
2353
3019
|
exclude?: string[] | undefined;
|
|
2354
3020
|
max_requests?: number | undefined;
|
|
2355
3021
|
window_ms?: number | undefined;
|
|
2356
3022
|
per?: "tool" | "agent" | undefined;
|
|
3023
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
2357
3024
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
2358
3025
|
inference_url?: string | undefined;
|
|
2359
3026
|
threshold?: number | undefined;
|
|
@@ -2361,6 +3028,17 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2361
3028
|
max_chars?: number | undefined;
|
|
2362
3029
|
threshold_chars?: number | undefined;
|
|
2363
3030
|
}[] | undefined;
|
|
3031
|
+
expose_tools_api?: boolean | undefined;
|
|
3032
|
+
limits?: {
|
|
3033
|
+
max_sessions_per_agent?: number | undefined;
|
|
3034
|
+
max_sessions_global?: number | undefined;
|
|
3035
|
+
session_idle_ms?: number | undefined;
|
|
3036
|
+
session_max_lifetime_ms?: number | undefined;
|
|
3037
|
+
new_session_max?: number | undefined;
|
|
3038
|
+
new_session_window_ms?: number | undefined;
|
|
3039
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
3040
|
+
call_execution_timeout_ms?: number | undefined;
|
|
3041
|
+
} | undefined;
|
|
2364
3042
|
}>;
|
|
2365
3043
|
export type AgentConfig = z.infer<typeof AgentConfig>;
|
|
2366
3044
|
export declare const ProfileConfig: z.ZodObject<{
|
|
@@ -2368,35 +3046,385 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
2368
3046
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2369
3047
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2370
3048
|
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
3049
|
+
tool_overrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3050
|
+
/** Replaces the upstream description entirely. */
|
|
3051
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3052
|
+
/**
|
|
3053
|
+
* Appended after whatever description survives (upstream, or `description` when set). Use this
|
|
3054
|
+
* for house rules you want on top of the vendor's docs without restating them by hand.
|
|
3055
|
+
*/
|
|
3056
|
+
description_append: z.ZodOptional<z.ZodString>;
|
|
3057
|
+
alias_of: z.ZodOptional<z.ZodString>;
|
|
3058
|
+
sandbox_presets: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
|
|
3059
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
3060
|
+
filesystem: z.ZodOptional<z.ZodObject<{
|
|
3061
|
+
allow_write: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3062
|
+
deny_read: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3063
|
+
deny_write: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3064
|
+
allow_read: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3065
|
+
}, "strict", z.ZodTypeAny, {
|
|
3066
|
+
allow_write: string[];
|
|
3067
|
+
deny_read: string[];
|
|
3068
|
+
deny_write: string[];
|
|
3069
|
+
allow_read?: string[] | undefined;
|
|
3070
|
+
}, {
|
|
3071
|
+
allow_write?: string[] | undefined;
|
|
3072
|
+
deny_read?: string[] | undefined;
|
|
3073
|
+
deny_write?: string[] | undefined;
|
|
3074
|
+
allow_read?: string[] | undefined;
|
|
3075
|
+
}>>;
|
|
3076
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
3077
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3078
|
+
denied_domains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3079
|
+
}, "strict", z.ZodTypeAny, {
|
|
3080
|
+
allowed_domains: string[];
|
|
3081
|
+
denied_domains: string[];
|
|
3082
|
+
}, {
|
|
3083
|
+
allowed_domains?: string[] | undefined;
|
|
3084
|
+
denied_domains?: string[] | undefined;
|
|
3085
|
+
}>>;
|
|
3086
|
+
}, "strict", z.ZodTypeAny, {
|
|
3087
|
+
filesystem?: {
|
|
3088
|
+
allow_write: string[];
|
|
3089
|
+
deny_read: string[];
|
|
3090
|
+
deny_write: string[];
|
|
3091
|
+
allow_read?: string[] | undefined;
|
|
3092
|
+
} | undefined;
|
|
3093
|
+
network?: {
|
|
3094
|
+
allowed_domains: string[];
|
|
3095
|
+
denied_domains: string[];
|
|
3096
|
+
} | undefined;
|
|
3097
|
+
}, {
|
|
3098
|
+
filesystem?: {
|
|
3099
|
+
allow_write?: string[] | undefined;
|
|
3100
|
+
deny_read?: string[] | undefined;
|
|
3101
|
+
deny_write?: string[] | undefined;
|
|
3102
|
+
allow_read?: string[] | undefined;
|
|
3103
|
+
} | undefined;
|
|
3104
|
+
network?: {
|
|
3105
|
+
allowed_domains?: string[] | undefined;
|
|
3106
|
+
denied_domains?: string[] | undefined;
|
|
3107
|
+
} | undefined;
|
|
3108
|
+
}>>;
|
|
3109
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
3110
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3111
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
3112
|
+
in: z.ZodOptional<z.ZodString>;
|
|
3113
|
+
glob_in: z.ZodOptional<z.ZodString>;
|
|
3114
|
+
each_in: z.ZodOptional<z.ZodString>;
|
|
3115
|
+
glob_allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3116
|
+
each_allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3117
|
+
normalize: z.ZodOptional<z.ZodArray<z.ZodEnum<["phone", "email", "lower", "trim"]>, "many">>;
|
|
3118
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3119
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3120
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3121
|
+
value_set: z.ZodOptional<z.ZodString>;
|
|
3122
|
+
expose_values: z.ZodOptional<z.ZodBoolean>;
|
|
3123
|
+
}, "strict", z.ZodTypeAny, {
|
|
3124
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3125
|
+
in?: string | undefined;
|
|
3126
|
+
required?: boolean | undefined;
|
|
3127
|
+
path?: string | undefined;
|
|
3128
|
+
expose_values?: boolean | undefined;
|
|
3129
|
+
allow?: unknown[] | undefined;
|
|
3130
|
+
equals?: unknown;
|
|
3131
|
+
glob_in?: string | undefined;
|
|
3132
|
+
each_in?: string | undefined;
|
|
3133
|
+
glob_allow?: string[] | undefined;
|
|
3134
|
+
each_allow?: unknown[] | undefined;
|
|
3135
|
+
label?: string | undefined;
|
|
3136
|
+
value_set?: string | undefined;
|
|
3137
|
+
}, {
|
|
3138
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3139
|
+
in?: string | undefined;
|
|
3140
|
+
required?: boolean | undefined;
|
|
3141
|
+
path?: string | undefined;
|
|
3142
|
+
expose_values?: boolean | undefined;
|
|
3143
|
+
allow?: unknown[] | undefined;
|
|
3144
|
+
equals?: unknown;
|
|
3145
|
+
glob_in?: string | undefined;
|
|
3146
|
+
each_in?: string | undefined;
|
|
3147
|
+
glob_allow?: string[] | undefined;
|
|
3148
|
+
each_allow?: unknown[] | undefined;
|
|
3149
|
+
label?: string | undefined;
|
|
3150
|
+
value_set?: string | undefined;
|
|
3151
|
+
}>, {
|
|
3152
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3153
|
+
in?: string | undefined;
|
|
3154
|
+
required?: boolean | undefined;
|
|
3155
|
+
path?: string | undefined;
|
|
3156
|
+
expose_values?: boolean | undefined;
|
|
3157
|
+
allow?: unknown[] | undefined;
|
|
3158
|
+
equals?: unknown;
|
|
3159
|
+
glob_in?: string | undefined;
|
|
3160
|
+
each_in?: string | undefined;
|
|
3161
|
+
glob_allow?: string[] | undefined;
|
|
3162
|
+
each_allow?: unknown[] | undefined;
|
|
3163
|
+
label?: string | undefined;
|
|
3164
|
+
value_set?: string | undefined;
|
|
3165
|
+
}, {
|
|
3166
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3167
|
+
in?: string | undefined;
|
|
3168
|
+
required?: boolean | undefined;
|
|
3169
|
+
path?: string | undefined;
|
|
3170
|
+
expose_values?: boolean | undefined;
|
|
3171
|
+
allow?: unknown[] | undefined;
|
|
3172
|
+
equals?: unknown;
|
|
3173
|
+
glob_in?: string | undefined;
|
|
3174
|
+
each_in?: string | undefined;
|
|
3175
|
+
glob_allow?: string[] | undefined;
|
|
3176
|
+
each_allow?: unknown[] | undefined;
|
|
3177
|
+
label?: string | undefined;
|
|
3178
|
+
value_set?: string | undefined;
|
|
3179
|
+
}>, z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3180
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3181
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
3182
|
+
in: z.ZodOptional<z.ZodString>;
|
|
3183
|
+
glob_in: z.ZodOptional<z.ZodString>;
|
|
3184
|
+
each_in: z.ZodOptional<z.ZodString>;
|
|
3185
|
+
glob_allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3186
|
+
each_allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3187
|
+
normalize: z.ZodOptional<z.ZodArray<z.ZodEnum<["phone", "email", "lower", "trim"]>, "many">>;
|
|
3188
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3189
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3190
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3191
|
+
value_set: z.ZodOptional<z.ZodString>;
|
|
3192
|
+
expose_values: z.ZodOptional<z.ZodBoolean>;
|
|
3193
|
+
}, "strict", z.ZodTypeAny, {
|
|
3194
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3195
|
+
in?: string | undefined;
|
|
3196
|
+
required?: boolean | undefined;
|
|
3197
|
+
path?: string | undefined;
|
|
3198
|
+
expose_values?: boolean | undefined;
|
|
3199
|
+
allow?: unknown[] | undefined;
|
|
3200
|
+
equals?: unknown;
|
|
3201
|
+
glob_in?: string | undefined;
|
|
3202
|
+
each_in?: string | undefined;
|
|
3203
|
+
glob_allow?: string[] | undefined;
|
|
3204
|
+
each_allow?: unknown[] | undefined;
|
|
3205
|
+
label?: string | undefined;
|
|
3206
|
+
value_set?: string | undefined;
|
|
3207
|
+
}, {
|
|
3208
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3209
|
+
in?: string | undefined;
|
|
3210
|
+
required?: boolean | undefined;
|
|
3211
|
+
path?: string | undefined;
|
|
3212
|
+
expose_values?: boolean | undefined;
|
|
3213
|
+
allow?: unknown[] | undefined;
|
|
3214
|
+
equals?: unknown;
|
|
3215
|
+
glob_in?: string | undefined;
|
|
3216
|
+
each_in?: string | undefined;
|
|
3217
|
+
glob_allow?: string[] | undefined;
|
|
3218
|
+
each_allow?: unknown[] | undefined;
|
|
3219
|
+
label?: string | undefined;
|
|
3220
|
+
value_set?: string | undefined;
|
|
3221
|
+
}>, {
|
|
3222
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3223
|
+
in?: string | undefined;
|
|
3224
|
+
required?: boolean | undefined;
|
|
3225
|
+
path?: string | undefined;
|
|
3226
|
+
expose_values?: boolean | undefined;
|
|
3227
|
+
allow?: unknown[] | undefined;
|
|
3228
|
+
equals?: unknown;
|
|
3229
|
+
glob_in?: string | undefined;
|
|
3230
|
+
each_in?: string | undefined;
|
|
3231
|
+
glob_allow?: string[] | undefined;
|
|
3232
|
+
each_allow?: unknown[] | undefined;
|
|
3233
|
+
label?: string | undefined;
|
|
3234
|
+
value_set?: string | undefined;
|
|
3235
|
+
}, {
|
|
3236
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3237
|
+
in?: string | undefined;
|
|
3238
|
+
required?: boolean | undefined;
|
|
3239
|
+
path?: string | undefined;
|
|
3240
|
+
expose_values?: boolean | undefined;
|
|
3241
|
+
allow?: unknown[] | undefined;
|
|
3242
|
+
equals?: unknown;
|
|
3243
|
+
glob_in?: string | undefined;
|
|
3244
|
+
each_in?: string | undefined;
|
|
3245
|
+
glob_allow?: string[] | undefined;
|
|
3246
|
+
each_allow?: unknown[] | undefined;
|
|
3247
|
+
label?: string | undefined;
|
|
3248
|
+
value_set?: string | undefined;
|
|
3249
|
+
}>, "atleastone">]>, {
|
|
3250
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3251
|
+
in?: string | undefined;
|
|
3252
|
+
required?: boolean | undefined;
|
|
3253
|
+
path?: string | undefined;
|
|
3254
|
+
expose_values?: boolean | undefined;
|
|
3255
|
+
allow?: unknown[] | undefined;
|
|
3256
|
+
equals?: unknown;
|
|
3257
|
+
glob_in?: string | undefined;
|
|
3258
|
+
each_in?: string | undefined;
|
|
3259
|
+
glob_allow?: string[] | undefined;
|
|
3260
|
+
each_allow?: unknown[] | undefined;
|
|
3261
|
+
label?: string | undefined;
|
|
3262
|
+
value_set?: string | undefined;
|
|
3263
|
+
}[], {
|
|
3264
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3265
|
+
in?: string | undefined;
|
|
3266
|
+
required?: boolean | undefined;
|
|
3267
|
+
path?: string | undefined;
|
|
3268
|
+
expose_values?: boolean | undefined;
|
|
3269
|
+
allow?: unknown[] | undefined;
|
|
3270
|
+
equals?: unknown;
|
|
3271
|
+
glob_in?: string | undefined;
|
|
3272
|
+
each_in?: string | undefined;
|
|
3273
|
+
glob_allow?: string[] | undefined;
|
|
3274
|
+
each_allow?: unknown[] | undefined;
|
|
3275
|
+
label?: string | undefined;
|
|
3276
|
+
value_set?: string | undefined;
|
|
3277
|
+
} | [{
|
|
3278
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3279
|
+
in?: string | undefined;
|
|
3280
|
+
required?: boolean | undefined;
|
|
3281
|
+
path?: string | undefined;
|
|
3282
|
+
expose_values?: boolean | undefined;
|
|
3283
|
+
allow?: unknown[] | undefined;
|
|
3284
|
+
equals?: unknown;
|
|
3285
|
+
glob_in?: string | undefined;
|
|
3286
|
+
each_in?: string | undefined;
|
|
3287
|
+
glob_allow?: string[] | undefined;
|
|
3288
|
+
each_allow?: unknown[] | undefined;
|
|
3289
|
+
label?: string | undefined;
|
|
3290
|
+
value_set?: string | undefined;
|
|
3291
|
+
}, ...{
|
|
3292
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3293
|
+
in?: string | undefined;
|
|
3294
|
+
required?: boolean | undefined;
|
|
3295
|
+
path?: string | undefined;
|
|
3296
|
+
expose_values?: boolean | undefined;
|
|
3297
|
+
allow?: unknown[] | undefined;
|
|
3298
|
+
equals?: unknown;
|
|
3299
|
+
glob_in?: string | undefined;
|
|
3300
|
+
each_in?: string | undefined;
|
|
3301
|
+
glob_allow?: string[] | undefined;
|
|
3302
|
+
each_allow?: unknown[] | undefined;
|
|
3303
|
+
label?: string | undefined;
|
|
3304
|
+
value_set?: string | undefined;
|
|
3305
|
+
}[]]>>>;
|
|
3306
|
+
}, "strict", z.ZodTypeAny, {
|
|
3307
|
+
sandbox_presets: string[];
|
|
3308
|
+
description?: string | undefined;
|
|
3309
|
+
args?: Record<string, {
|
|
3310
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3311
|
+
in?: string | undefined;
|
|
3312
|
+
required?: boolean | undefined;
|
|
3313
|
+
path?: string | undefined;
|
|
3314
|
+
expose_values?: boolean | undefined;
|
|
3315
|
+
allow?: unknown[] | undefined;
|
|
3316
|
+
equals?: unknown;
|
|
3317
|
+
glob_in?: string | undefined;
|
|
3318
|
+
each_in?: string | undefined;
|
|
3319
|
+
glob_allow?: string[] | undefined;
|
|
3320
|
+
each_allow?: unknown[] | undefined;
|
|
3321
|
+
label?: string | undefined;
|
|
3322
|
+
value_set?: string | undefined;
|
|
3323
|
+
}[]> | undefined;
|
|
3324
|
+
description_append?: string | undefined;
|
|
3325
|
+
alias_of?: string | undefined;
|
|
3326
|
+
sandbox?: {
|
|
3327
|
+
filesystem?: {
|
|
3328
|
+
allow_write: string[];
|
|
3329
|
+
deny_read: string[];
|
|
3330
|
+
deny_write: string[];
|
|
3331
|
+
allow_read?: string[] | undefined;
|
|
3332
|
+
} | undefined;
|
|
3333
|
+
network?: {
|
|
3334
|
+
allowed_domains: string[];
|
|
3335
|
+
denied_domains: string[];
|
|
3336
|
+
} | undefined;
|
|
3337
|
+
} | undefined;
|
|
3338
|
+
}, {
|
|
3339
|
+
description?: string | undefined;
|
|
3340
|
+
args?: Record<string, {
|
|
3341
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3342
|
+
in?: string | undefined;
|
|
3343
|
+
required?: boolean | undefined;
|
|
3344
|
+
path?: string | undefined;
|
|
3345
|
+
expose_values?: boolean | undefined;
|
|
3346
|
+
allow?: unknown[] | undefined;
|
|
3347
|
+
equals?: unknown;
|
|
3348
|
+
glob_in?: string | undefined;
|
|
3349
|
+
each_in?: string | undefined;
|
|
3350
|
+
glob_allow?: string[] | undefined;
|
|
3351
|
+
each_allow?: unknown[] | undefined;
|
|
3352
|
+
label?: string | undefined;
|
|
3353
|
+
value_set?: string | undefined;
|
|
3354
|
+
} | [{
|
|
3355
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3356
|
+
in?: string | undefined;
|
|
3357
|
+
required?: boolean | undefined;
|
|
3358
|
+
path?: string | undefined;
|
|
3359
|
+
expose_values?: boolean | undefined;
|
|
3360
|
+
allow?: unknown[] | undefined;
|
|
3361
|
+
equals?: unknown;
|
|
3362
|
+
glob_in?: string | undefined;
|
|
3363
|
+
each_in?: string | undefined;
|
|
3364
|
+
glob_allow?: string[] | undefined;
|
|
3365
|
+
each_allow?: unknown[] | undefined;
|
|
3366
|
+
label?: string | undefined;
|
|
3367
|
+
value_set?: string | undefined;
|
|
3368
|
+
}, ...{
|
|
3369
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3370
|
+
in?: string | undefined;
|
|
3371
|
+
required?: boolean | undefined;
|
|
3372
|
+
path?: string | undefined;
|
|
3373
|
+
expose_values?: boolean | undefined;
|
|
3374
|
+
allow?: unknown[] | undefined;
|
|
3375
|
+
equals?: unknown;
|
|
3376
|
+
glob_in?: string | undefined;
|
|
3377
|
+
each_in?: string | undefined;
|
|
3378
|
+
glob_allow?: string[] | undefined;
|
|
3379
|
+
each_allow?: unknown[] | undefined;
|
|
3380
|
+
label?: string | undefined;
|
|
3381
|
+
value_set?: string | undefined;
|
|
3382
|
+
}[]]> | undefined;
|
|
3383
|
+
description_append?: string | undefined;
|
|
3384
|
+
alias_of?: string | undefined;
|
|
3385
|
+
sandbox_presets?: string | string[] | undefined;
|
|
3386
|
+
sandbox?: {
|
|
3387
|
+
filesystem?: {
|
|
3388
|
+
allow_write?: string[] | undefined;
|
|
3389
|
+
deny_read?: string[] | undefined;
|
|
3390
|
+
deny_write?: string[] | undefined;
|
|
3391
|
+
allow_read?: string[] | undefined;
|
|
3392
|
+
} | undefined;
|
|
3393
|
+
network?: {
|
|
3394
|
+
allowed_domains?: string[] | undefined;
|
|
3395
|
+
denied_domains?: string[] | undefined;
|
|
3396
|
+
} | undefined;
|
|
3397
|
+
} | undefined;
|
|
3398
|
+
}>>>;
|
|
3399
|
+
arg_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
3400
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3401
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
3402
|
+
in: z.ZodOptional<z.ZodString>;
|
|
3403
|
+
glob_in: z.ZodOptional<z.ZodString>;
|
|
3404
|
+
each_in: z.ZodOptional<z.ZodString>;
|
|
3405
|
+
glob_allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3406
|
+
each_allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3407
|
+
normalize: z.ZodOptional<z.ZodArray<z.ZodEnum<["phone", "email", "lower", "trim"]>, "many">>;
|
|
3408
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3409
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3410
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3411
|
+
value_set: z.ZodOptional<z.ZodString>;
|
|
3412
|
+
expose_values: z.ZodOptional<z.ZodBoolean>;
|
|
3413
|
+
}, "strict", z.ZodTypeAny, {
|
|
3414
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3415
|
+
in?: string | undefined;
|
|
3416
|
+
required?: boolean | undefined;
|
|
3417
|
+
path?: string | undefined;
|
|
3418
|
+
expose_values?: boolean | undefined;
|
|
3419
|
+
allow?: unknown[] | undefined;
|
|
3420
|
+
equals?: unknown;
|
|
3421
|
+
glob_in?: string | undefined;
|
|
3422
|
+
each_in?: string | undefined;
|
|
3423
|
+
glob_allow?: string[] | undefined;
|
|
3424
|
+
each_allow?: unknown[] | undefined;
|
|
3425
|
+
label?: string | undefined;
|
|
3426
|
+
value_set?: string | undefined;
|
|
3427
|
+
}, {
|
|
2400
3428
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
2401
3429
|
in?: string | undefined;
|
|
2402
3430
|
required?: boolean | undefined;
|
|
@@ -2568,11 +3596,70 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
2568
3596
|
arg_scope: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>>, {
|
|
2569
3597
|
[k: string]: string[];
|
|
2570
3598
|
}, Record<string, string | [string, ...string[]]>>>;
|
|
3599
|
+
command_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
3600
|
+
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3601
|
+
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3602
|
+
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3603
|
+
default: z.ZodOptional<z.ZodEnum<["allow", "ask", "deny"]>>;
|
|
3604
|
+
}, "strict", z.ZodTypeAny, {
|
|
3605
|
+
allow: string[];
|
|
3606
|
+
ask: string[];
|
|
3607
|
+
deny: string[];
|
|
3608
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
3609
|
+
}, {
|
|
3610
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
3611
|
+
allow?: string[] | undefined;
|
|
3612
|
+
ask?: string[] | undefined;
|
|
3613
|
+
deny?: string[] | undefined;
|
|
3614
|
+
}>, {
|
|
3615
|
+
allow: string[];
|
|
3616
|
+
ask: string[];
|
|
3617
|
+
deny: string[];
|
|
3618
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
3619
|
+
}, {
|
|
3620
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
3621
|
+
allow?: string[] | undefined;
|
|
3622
|
+
ask?: string[] | undefined;
|
|
3623
|
+
deny?: string[] | undefined;
|
|
3624
|
+
}>>>>;
|
|
2571
3625
|
}, "strict", z.ZodTypeAny, {
|
|
2572
3626
|
allow: string[];
|
|
2573
3627
|
ask: string[];
|
|
2574
3628
|
deny: string[];
|
|
2575
3629
|
extends: string[];
|
|
3630
|
+
tool_overrides: Record<string, {
|
|
3631
|
+
sandbox_presets: string[];
|
|
3632
|
+
description?: string | undefined;
|
|
3633
|
+
args?: Record<string, {
|
|
3634
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3635
|
+
in?: string | undefined;
|
|
3636
|
+
required?: boolean | undefined;
|
|
3637
|
+
path?: string | undefined;
|
|
3638
|
+
expose_values?: boolean | undefined;
|
|
3639
|
+
allow?: unknown[] | undefined;
|
|
3640
|
+
equals?: unknown;
|
|
3641
|
+
glob_in?: string | undefined;
|
|
3642
|
+
each_in?: string | undefined;
|
|
3643
|
+
glob_allow?: string[] | undefined;
|
|
3644
|
+
each_allow?: unknown[] | undefined;
|
|
3645
|
+
label?: string | undefined;
|
|
3646
|
+
value_set?: string | undefined;
|
|
3647
|
+
}[]> | undefined;
|
|
3648
|
+
description_append?: string | undefined;
|
|
3649
|
+
alias_of?: string | undefined;
|
|
3650
|
+
sandbox?: {
|
|
3651
|
+
filesystem?: {
|
|
3652
|
+
allow_write: string[];
|
|
3653
|
+
deny_read: string[];
|
|
3654
|
+
deny_write: string[];
|
|
3655
|
+
allow_read?: string[] | undefined;
|
|
3656
|
+
} | undefined;
|
|
3657
|
+
network?: {
|
|
3658
|
+
allowed_domains: string[];
|
|
3659
|
+
denied_domains: string[];
|
|
3660
|
+
} | undefined;
|
|
3661
|
+
} | undefined;
|
|
3662
|
+
}>;
|
|
2576
3663
|
arg_policy?: Record<string, Record<string, {
|
|
2577
3664
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
2578
3665
|
in?: string | undefined;
|
|
@@ -2591,11 +3678,78 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
2591
3678
|
arg_scope?: {
|
|
2592
3679
|
[k: string]: string[];
|
|
2593
3680
|
} | undefined;
|
|
3681
|
+
command_policy?: Record<string, Record<string, {
|
|
3682
|
+
allow: string[];
|
|
3683
|
+
ask: string[];
|
|
3684
|
+
deny: string[];
|
|
3685
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
3686
|
+
}>> | undefined;
|
|
2594
3687
|
}, {
|
|
2595
3688
|
allow?: string[] | undefined;
|
|
2596
3689
|
ask?: string[] | undefined;
|
|
2597
3690
|
deny?: string[] | undefined;
|
|
2598
3691
|
extends?: string[] | undefined;
|
|
3692
|
+
tool_overrides?: Record<string, {
|
|
3693
|
+
description?: string | undefined;
|
|
3694
|
+
args?: Record<string, {
|
|
3695
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3696
|
+
in?: string | undefined;
|
|
3697
|
+
required?: boolean | undefined;
|
|
3698
|
+
path?: string | undefined;
|
|
3699
|
+
expose_values?: boolean | undefined;
|
|
3700
|
+
allow?: unknown[] | undefined;
|
|
3701
|
+
equals?: unknown;
|
|
3702
|
+
glob_in?: string | undefined;
|
|
3703
|
+
each_in?: string | undefined;
|
|
3704
|
+
glob_allow?: string[] | undefined;
|
|
3705
|
+
each_allow?: unknown[] | undefined;
|
|
3706
|
+
label?: string | undefined;
|
|
3707
|
+
value_set?: string | undefined;
|
|
3708
|
+
} | [{
|
|
3709
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3710
|
+
in?: string | undefined;
|
|
3711
|
+
required?: boolean | undefined;
|
|
3712
|
+
path?: string | undefined;
|
|
3713
|
+
expose_values?: boolean | undefined;
|
|
3714
|
+
allow?: unknown[] | undefined;
|
|
3715
|
+
equals?: unknown;
|
|
3716
|
+
glob_in?: string | undefined;
|
|
3717
|
+
each_in?: string | undefined;
|
|
3718
|
+
glob_allow?: string[] | undefined;
|
|
3719
|
+
each_allow?: unknown[] | undefined;
|
|
3720
|
+
label?: string | undefined;
|
|
3721
|
+
value_set?: string | undefined;
|
|
3722
|
+
}, ...{
|
|
3723
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3724
|
+
in?: string | undefined;
|
|
3725
|
+
required?: boolean | undefined;
|
|
3726
|
+
path?: string | undefined;
|
|
3727
|
+
expose_values?: boolean | undefined;
|
|
3728
|
+
allow?: unknown[] | undefined;
|
|
3729
|
+
equals?: unknown;
|
|
3730
|
+
glob_in?: string | undefined;
|
|
3731
|
+
each_in?: string | undefined;
|
|
3732
|
+
glob_allow?: string[] | undefined;
|
|
3733
|
+
each_allow?: unknown[] | undefined;
|
|
3734
|
+
label?: string | undefined;
|
|
3735
|
+
value_set?: string | undefined;
|
|
3736
|
+
}[]]> | undefined;
|
|
3737
|
+
description_append?: string | undefined;
|
|
3738
|
+
alias_of?: string | undefined;
|
|
3739
|
+
sandbox_presets?: string | string[] | undefined;
|
|
3740
|
+
sandbox?: {
|
|
3741
|
+
filesystem?: {
|
|
3742
|
+
allow_write?: string[] | undefined;
|
|
3743
|
+
deny_read?: string[] | undefined;
|
|
3744
|
+
deny_write?: string[] | undefined;
|
|
3745
|
+
allow_read?: string[] | undefined;
|
|
3746
|
+
} | undefined;
|
|
3747
|
+
network?: {
|
|
3748
|
+
allowed_domains?: string[] | undefined;
|
|
3749
|
+
denied_domains?: string[] | undefined;
|
|
3750
|
+
} | undefined;
|
|
3751
|
+
} | undefined;
|
|
3752
|
+
}> | undefined;
|
|
2599
3753
|
arg_policy?: Record<string, Record<string, {
|
|
2600
3754
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
2601
3755
|
in?: string | undefined;
|
|
@@ -2640,6 +3794,12 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
2640
3794
|
value_set?: string | undefined;
|
|
2641
3795
|
}[]]>> | undefined;
|
|
2642
3796
|
arg_scope?: Record<string, string | [string, ...string[]]> | undefined;
|
|
3797
|
+
command_policy?: Record<string, Record<string, {
|
|
3798
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
3799
|
+
allow?: string[] | undefined;
|
|
3800
|
+
ask?: string[] | undefined;
|
|
3801
|
+
deny?: string[] | undefined;
|
|
3802
|
+
}>> | undefined;
|
|
2643
3803
|
}>;
|
|
2644
3804
|
export type ProfileConfig = z.infer<typeof ProfileConfig>;
|
|
2645
3805
|
export declare const ApprovalProviderConfig: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -3118,10 +4278,58 @@ export type HitlConfig = ApprovalsConfig;
|
|
|
3118
4278
|
export declare const SecurityConfig: z.ZodObject<{
|
|
3119
4279
|
blocked_hosts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3120
4280
|
allowed_local: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4281
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
4282
|
+
max_sessions_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
4283
|
+
max_sessions_global: z.ZodOptional<z.ZodNumber>;
|
|
4284
|
+
session_idle_ms: z.ZodOptional<z.ZodNumber>;
|
|
4285
|
+
session_max_lifetime_ms: z.ZodOptional<z.ZodNumber>;
|
|
4286
|
+
new_session_max: z.ZodOptional<z.ZodNumber>;
|
|
4287
|
+
new_session_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
4288
|
+
max_concurrent_calls_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
4289
|
+
call_execution_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
4290
|
+
}, "strict", z.ZodTypeAny, {
|
|
4291
|
+
max_sessions_per_agent?: number | undefined;
|
|
4292
|
+
max_sessions_global?: number | undefined;
|
|
4293
|
+
session_idle_ms?: number | undefined;
|
|
4294
|
+
session_max_lifetime_ms?: number | undefined;
|
|
4295
|
+
new_session_max?: number | undefined;
|
|
4296
|
+
new_session_window_ms?: number | undefined;
|
|
4297
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
4298
|
+
call_execution_timeout_ms?: number | undefined;
|
|
4299
|
+
}, {
|
|
4300
|
+
max_sessions_per_agent?: number | undefined;
|
|
4301
|
+
max_sessions_global?: number | undefined;
|
|
4302
|
+
session_idle_ms?: number | undefined;
|
|
4303
|
+
session_max_lifetime_ms?: number | undefined;
|
|
4304
|
+
new_session_max?: number | undefined;
|
|
4305
|
+
new_session_window_ms?: number | undefined;
|
|
4306
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
4307
|
+
call_execution_timeout_ms?: number | undefined;
|
|
4308
|
+
}>>;
|
|
3121
4309
|
}, "strict", z.ZodTypeAny, {
|
|
3122
4310
|
blocked_hosts: string[];
|
|
3123
4311
|
allowed_local: string[];
|
|
4312
|
+
limits?: {
|
|
4313
|
+
max_sessions_per_agent?: number | undefined;
|
|
4314
|
+
max_sessions_global?: number | undefined;
|
|
4315
|
+
session_idle_ms?: number | undefined;
|
|
4316
|
+
session_max_lifetime_ms?: number | undefined;
|
|
4317
|
+
new_session_max?: number | undefined;
|
|
4318
|
+
new_session_window_ms?: number | undefined;
|
|
4319
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
4320
|
+
call_execution_timeout_ms?: number | undefined;
|
|
4321
|
+
} | undefined;
|
|
3124
4322
|
}, {
|
|
4323
|
+
limits?: {
|
|
4324
|
+
max_sessions_per_agent?: number | undefined;
|
|
4325
|
+
max_sessions_global?: number | undefined;
|
|
4326
|
+
session_idle_ms?: number | undefined;
|
|
4327
|
+
session_max_lifetime_ms?: number | undefined;
|
|
4328
|
+
new_session_max?: number | undefined;
|
|
4329
|
+
new_session_window_ms?: number | undefined;
|
|
4330
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
4331
|
+
call_execution_timeout_ms?: number | undefined;
|
|
4332
|
+
} | undefined;
|
|
3125
4333
|
blocked_hosts?: string[] | undefined;
|
|
3126
4334
|
allowed_local?: string[] | undefined;
|
|
3127
4335
|
}>;
|
|
@@ -3163,6 +4371,8 @@ export declare const ManagementApiConfig: z.ZodObject<{
|
|
|
3163
4371
|
expose_hook_api?: boolean | undefined;
|
|
3164
4372
|
}>;
|
|
3165
4373
|
export type ManagementApiConfig = z.infer<typeof ManagementApiConfig>;
|
|
4374
|
+
export declare const ToolsApiMode: z.ZodEnum<["all", "none", "per-agent"]>;
|
|
4375
|
+
export type ToolsApiMode = z.infer<typeof ToolsApiMode>;
|
|
3166
4376
|
export declare const ServerConfig: z.ZodEffects<z.ZodObject<{
|
|
3167
4377
|
port: z.ZodDefault<z.ZodNumber>;
|
|
3168
4378
|
host: z.ZodDefault<z.ZodString>;
|
|
@@ -3170,7 +4380,7 @@ export declare const ServerConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3170
4380
|
auth_required: z.ZodDefault<z.ZodBoolean>;
|
|
3171
4381
|
require_agent_tokens: z.ZodDefault<z.ZodBoolean>;
|
|
3172
4382
|
allowed_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3173
|
-
expose_tools_api: z.ZodDefault<z.
|
|
4383
|
+
expose_tools_api: z.ZodDefault<z.ZodEffects<z.ZodEnum<["all", "none", "per-agent"]>, "all" | "none" | "per-agent", unknown>>;
|
|
3174
4384
|
management_api: z.ZodDefault<z.ZodObject<{
|
|
3175
4385
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3176
4386
|
api_secret: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -3196,12 +4406,12 @@ export declare const ServerConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3196
4406
|
expose_management_api: z.ZodOptional<z.ZodBoolean>;
|
|
3197
4407
|
expose_hook_api: z.ZodOptional<z.ZodBoolean>;
|
|
3198
4408
|
}, "strict", z.ZodTypeAny, {
|
|
4409
|
+
auth_required: boolean;
|
|
3199
4410
|
port: number;
|
|
4411
|
+
expose_tools_api: "all" | "none" | "per-agent";
|
|
3200
4412
|
host: string;
|
|
3201
|
-
auth_required: boolean;
|
|
3202
4413
|
require_agent_tokens: boolean;
|
|
3203
4414
|
allowed_origins: string[];
|
|
3204
|
-
expose_tools_api: boolean;
|
|
3205
4415
|
management_api: {
|
|
3206
4416
|
port: number;
|
|
3207
4417
|
enabled: boolean;
|
|
@@ -3214,14 +4424,14 @@ export declare const ServerConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3214
4424
|
expose_hook_api?: boolean | undefined;
|
|
3215
4425
|
expose_management_api?: boolean | undefined;
|
|
3216
4426
|
}, {
|
|
4427
|
+
auth_required?: boolean | undefined;
|
|
3217
4428
|
port?: number | undefined;
|
|
4429
|
+
expose_tools_api?: unknown;
|
|
3218
4430
|
host?: string | undefined;
|
|
3219
4431
|
api_secret?: string | undefined;
|
|
3220
4432
|
expose_hook_api?: boolean | undefined;
|
|
3221
|
-
auth_required?: boolean | undefined;
|
|
3222
4433
|
require_agent_tokens?: boolean | undefined;
|
|
3223
4434
|
allowed_origins?: string[] | undefined;
|
|
3224
|
-
expose_tools_api?: boolean | undefined;
|
|
3225
4435
|
management_api?: {
|
|
3226
4436
|
port?: number | undefined;
|
|
3227
4437
|
enabled?: boolean | undefined;
|
|
@@ -3240,24 +4450,24 @@ export declare const ServerConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3240
4450
|
insecure_remote_bind: boolean;
|
|
3241
4451
|
api_secret?: string | undefined;
|
|
3242
4452
|
};
|
|
4453
|
+
auth_required: boolean;
|
|
3243
4454
|
port: number;
|
|
4455
|
+
expose_tools_api: "all" | "none" | "per-agent";
|
|
3244
4456
|
host: string;
|
|
3245
|
-
auth_required: boolean;
|
|
3246
4457
|
require_agent_tokens: boolean;
|
|
3247
4458
|
allowed_origins: string[];
|
|
3248
|
-
expose_tools_api: boolean;
|
|
3249
4459
|
api_secret?: string | undefined;
|
|
3250
4460
|
expose_hook_api?: boolean | undefined;
|
|
3251
4461
|
expose_management_api?: boolean | undefined;
|
|
3252
4462
|
}, {
|
|
4463
|
+
auth_required?: boolean | undefined;
|
|
3253
4464
|
port?: number | undefined;
|
|
4465
|
+
expose_tools_api?: unknown;
|
|
3254
4466
|
host?: string | undefined;
|
|
3255
4467
|
api_secret?: string | undefined;
|
|
3256
4468
|
expose_hook_api?: boolean | undefined;
|
|
3257
|
-
auth_required?: boolean | undefined;
|
|
3258
4469
|
require_agent_tokens?: boolean | undefined;
|
|
3259
4470
|
allowed_origins?: string[] | undefined;
|
|
3260
|
-
expose_tools_api?: boolean | undefined;
|
|
3261
4471
|
management_api?: {
|
|
3262
4472
|
port?: number | undefined;
|
|
3263
4473
|
enabled?: boolean | undefined;
|
|
@@ -3269,20 +4479,20 @@ export declare const ServerConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3269
4479
|
expose_management_api?: boolean | undefined;
|
|
3270
4480
|
}>;
|
|
3271
4481
|
export type ServerConfig = z.infer<typeof ServerConfig>;
|
|
3272
|
-
export declare const LINT_RULE_IDS: readonly ["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref"];
|
|
4482
|
+
export declare const LINT_RULE_IDS: readonly ["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref", "unallocated-tool", "dead-allow"];
|
|
3273
4483
|
export type LintRuleId = (typeof LINT_RULE_IDS)[number];
|
|
3274
|
-
export declare const LintRuleIdConfig: z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref"]>;
|
|
4484
|
+
export declare const LintRuleIdConfig: z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref", "unallocated-tool", "dead-allow"]>;
|
|
3275
4485
|
export declare const LintRuleSeverityConfig: z.ZodEnum<["info", "warn", "error"]>;
|
|
3276
4486
|
export type LintRuleSeverity = z.infer<typeof LintRuleSeverityConfig>;
|
|
3277
4487
|
export declare const LintConfig: z.ZodObject<{
|
|
3278
|
-
disable: z.ZodDefault<z.ZodArray<z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref"]>, "many">>;
|
|
3279
|
-
severity: z.ZodDefault<z.ZodRecord<z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref"]>, z.ZodEnum<["info", "warn", "error"]>>>;
|
|
4488
|
+
disable: z.ZodDefault<z.ZodArray<z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref", "unallocated-tool", "dead-allow"]>, "many">>;
|
|
4489
|
+
severity: z.ZodDefault<z.ZodRecord<z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref", "unallocated-tool", "dead-allow"]>, z.ZodEnum<["info", "warn", "error"]>>>;
|
|
3280
4490
|
}, "strict", z.ZodTypeAny, {
|
|
3281
|
-
disable: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref")[];
|
|
3282
|
-
severity: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref", "error" | "warn" | "info">>;
|
|
4491
|
+
disable: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow")[];
|
|
4492
|
+
severity: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow", "error" | "warn" | "info">>;
|
|
3283
4493
|
}, {
|
|
3284
|
-
disable?: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref")[] | undefined;
|
|
3285
|
-
severity?: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref", "error" | "warn" | "info">> | undefined;
|
|
4494
|
+
disable?: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow")[] | undefined;
|
|
4495
|
+
severity?: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow", "error" | "warn" | "info">> | undefined;
|
|
3286
4496
|
}>;
|
|
3287
4497
|
export type LintConfig = z.infer<typeof LintConfig>;
|
|
3288
4498
|
export declare const CliParamConfig: z.ZodObject<{
|
|
@@ -3515,9 +4725,10 @@ export declare const ApiConfig: z.ZodObject<{
|
|
|
3515
4725
|
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
3516
4726
|
max_response_bytes: z.ZodDefault<z.ZodNumber>;
|
|
3517
4727
|
}, "strict", z.ZodTypeAny, {
|
|
3518
|
-
max_response_bytes: number;
|
|
3519
4728
|
timeout_ms: number;
|
|
4729
|
+
max_response_bytes: number;
|
|
3520
4730
|
spec: string;
|
|
4731
|
+
include?: string[] | undefined;
|
|
3521
4732
|
exclude?: string[] | undefined;
|
|
3522
4733
|
base_url?: string | undefined;
|
|
3523
4734
|
auth?: {
|
|
@@ -3528,11 +4739,11 @@ export declare const ApiConfig: z.ZodObject<{
|
|
|
3528
4739
|
type: "header";
|
|
3529
4740
|
value: string;
|
|
3530
4741
|
} | undefined;
|
|
3531
|
-
include?: string[] | undefined;
|
|
3532
4742
|
}, {
|
|
3533
4743
|
spec: string;
|
|
3534
|
-
|
|
4744
|
+
include?: string[] | undefined;
|
|
3535
4745
|
timeout_ms?: number | undefined;
|
|
4746
|
+
max_response_bytes?: number | undefined;
|
|
3536
4747
|
exclude?: string[] | undefined;
|
|
3537
4748
|
base_url?: string | undefined;
|
|
3538
4749
|
auth?: {
|
|
@@ -3543,7 +4754,6 @@ export declare const ApiConfig: z.ZodObject<{
|
|
|
3543
4754
|
type: "header";
|
|
3544
4755
|
value: string;
|
|
3545
4756
|
} | undefined;
|
|
3546
|
-
include?: string[] | undefined;
|
|
3547
4757
|
}>;
|
|
3548
4758
|
export type ApiConfig = z.infer<typeof ApiConfig>;
|
|
3549
4759
|
export declare const SandboxPresetConfig: z.ZodObject<{
|
|
@@ -3599,15 +4809,49 @@ export declare const SandboxPresetConfig: z.ZodObject<{
|
|
|
3599
4809
|
export type SandboxPresetConfig = z.infer<typeof SandboxPresetConfig>;
|
|
3600
4810
|
export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
3601
4811
|
providers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"builtin">, z.ZodObject<{
|
|
4812
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
4813
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
3602
4814
|
type: z.ZodLiteral<"builtin">;
|
|
3603
4815
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3604
4816
|
}, "strict", z.ZodTypeAny, {
|
|
3605
4817
|
type: "builtin";
|
|
3606
4818
|
enabled: boolean;
|
|
4819
|
+
instructions?: string | undefined;
|
|
4820
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
3607
4821
|
}, {
|
|
3608
4822
|
type: "builtin";
|
|
3609
4823
|
enabled?: boolean | undefined;
|
|
4824
|
+
instructions?: string | undefined;
|
|
4825
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
3610
4826
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4827
|
+
credential_probe: z.ZodOptional<z.ZodObject<{
|
|
4828
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
4829
|
+
tool: z.ZodString;
|
|
4830
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4831
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
4832
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
4833
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
4834
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
4835
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
4836
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
4837
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
4838
|
+
}, "strict", z.ZodTypeAny, {
|
|
4839
|
+
tool: string;
|
|
4840
|
+
args: Record<string, unknown>;
|
|
4841
|
+
interval_ms: number;
|
|
4842
|
+
timeout_ms: number;
|
|
4843
|
+
expect_contains?: string | undefined;
|
|
4844
|
+
reject_contains?: string | undefined;
|
|
4845
|
+
}, {
|
|
4846
|
+
tool: string;
|
|
4847
|
+
args?: Record<string, unknown> | undefined;
|
|
4848
|
+
expect_contains?: string | undefined;
|
|
4849
|
+
reject_contains?: string | undefined;
|
|
4850
|
+
interval_ms?: number | undefined;
|
|
4851
|
+
timeout_ms?: number | undefined;
|
|
4852
|
+
}>>;
|
|
4853
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
4854
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
3611
4855
|
type: z.ZodLiteral<"stdio">;
|
|
3612
4856
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3613
4857
|
command: z.ZodString;
|
|
@@ -3615,17 +4859,65 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3615
4859
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
|
|
3616
4860
|
}, "strict", z.ZodTypeAny, {
|
|
3617
4861
|
type: "stdio";
|
|
4862
|
+
args: string[];
|
|
3618
4863
|
enabled: boolean;
|
|
3619
4864
|
command: string;
|
|
3620
|
-
args: string[];
|
|
3621
4865
|
env?: Record<string, string> | undefined;
|
|
4866
|
+
credential_probe?: {
|
|
4867
|
+
tool: string;
|
|
4868
|
+
args: Record<string, unknown>;
|
|
4869
|
+
interval_ms: number;
|
|
4870
|
+
timeout_ms: number;
|
|
4871
|
+
expect_contains?: string | undefined;
|
|
4872
|
+
reject_contains?: string | undefined;
|
|
4873
|
+
} | undefined;
|
|
4874
|
+
instructions?: string | undefined;
|
|
4875
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
3622
4876
|
}, {
|
|
3623
4877
|
type: "stdio";
|
|
3624
4878
|
command: string;
|
|
3625
|
-
enabled?: boolean | undefined;
|
|
3626
4879
|
args?: string[] | undefined;
|
|
4880
|
+
enabled?: boolean | undefined;
|
|
3627
4881
|
env?: Record<string, string> | undefined;
|
|
4882
|
+
credential_probe?: {
|
|
4883
|
+
tool: string;
|
|
4884
|
+
args?: Record<string, unknown> | undefined;
|
|
4885
|
+
expect_contains?: string | undefined;
|
|
4886
|
+
reject_contains?: string | undefined;
|
|
4887
|
+
interval_ms?: number | undefined;
|
|
4888
|
+
timeout_ms?: number | undefined;
|
|
4889
|
+
} | undefined;
|
|
4890
|
+
instructions?: string | undefined;
|
|
4891
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
3628
4892
|
}>, z.ZodObject<{
|
|
4893
|
+
credential_probe: z.ZodOptional<z.ZodObject<{
|
|
4894
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
4895
|
+
tool: z.ZodString;
|
|
4896
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4897
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
4898
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
4899
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
4900
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
4901
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
4902
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
4903
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
4904
|
+
}, "strict", z.ZodTypeAny, {
|
|
4905
|
+
tool: string;
|
|
4906
|
+
args: Record<string, unknown>;
|
|
4907
|
+
interval_ms: number;
|
|
4908
|
+
timeout_ms: number;
|
|
4909
|
+
expect_contains?: string | undefined;
|
|
4910
|
+
reject_contains?: string | undefined;
|
|
4911
|
+
}, {
|
|
4912
|
+
tool: string;
|
|
4913
|
+
args?: Record<string, unknown> | undefined;
|
|
4914
|
+
expect_contains?: string | undefined;
|
|
4915
|
+
reject_contains?: string | undefined;
|
|
4916
|
+
interval_ms?: number | undefined;
|
|
4917
|
+
timeout_ms?: number | undefined;
|
|
4918
|
+
}>>;
|
|
4919
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
4920
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
3629
4921
|
type: z.ZodLiteral<"sse">;
|
|
3630
4922
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3631
4923
|
url: z.ZodString;
|
|
@@ -3634,13 +4926,61 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3634
4926
|
url: string;
|
|
3635
4927
|
type: "sse";
|
|
3636
4928
|
enabled: boolean;
|
|
4929
|
+
credential_probe?: {
|
|
4930
|
+
tool: string;
|
|
4931
|
+
args: Record<string, unknown>;
|
|
4932
|
+
interval_ms: number;
|
|
4933
|
+
timeout_ms: number;
|
|
4934
|
+
expect_contains?: string | undefined;
|
|
4935
|
+
reject_contains?: string | undefined;
|
|
4936
|
+
} | undefined;
|
|
4937
|
+
instructions?: string | undefined;
|
|
4938
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
3637
4939
|
headers?: Record<string, string> | undefined;
|
|
3638
4940
|
}, {
|
|
3639
4941
|
url: string;
|
|
3640
4942
|
type: "sse";
|
|
3641
4943
|
enabled?: boolean | undefined;
|
|
4944
|
+
credential_probe?: {
|
|
4945
|
+
tool: string;
|
|
4946
|
+
args?: Record<string, unknown> | undefined;
|
|
4947
|
+
expect_contains?: string | undefined;
|
|
4948
|
+
reject_contains?: string | undefined;
|
|
4949
|
+
interval_ms?: number | undefined;
|
|
4950
|
+
timeout_ms?: number | undefined;
|
|
4951
|
+
} | undefined;
|
|
4952
|
+
instructions?: string | undefined;
|
|
4953
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
3642
4954
|
headers?: Record<string, string> | undefined;
|
|
3643
4955
|
}>, z.ZodObject<{
|
|
4956
|
+
credential_probe: z.ZodOptional<z.ZodObject<{
|
|
4957
|
+
/** Provider-local tool name — unprefixed, e.g. `search_gmail_messages`. */
|
|
4958
|
+
tool: z.ZodString;
|
|
4959
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4960
|
+
/** Healthy responses must contain this substring; otherwise the credential is auth_required. */
|
|
4961
|
+
expect_contains: z.ZodOptional<z.ZodString>;
|
|
4962
|
+
/** Healthy responses must NOT contain this substring. See the caveat above. */
|
|
4963
|
+
reject_contains: z.ZodOptional<z.ZodString>;
|
|
4964
|
+
/** Cache TTL. Floored at a minute so a hot /health poll can't hammer a provider's API quota. */
|
|
4965
|
+
interval_ms: z.ZodDefault<z.ZodNumber>;
|
|
4966
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
4967
|
+
}, "strict", z.ZodTypeAny, {
|
|
4968
|
+
tool: string;
|
|
4969
|
+
args: Record<string, unknown>;
|
|
4970
|
+
interval_ms: number;
|
|
4971
|
+
timeout_ms: number;
|
|
4972
|
+
expect_contains?: string | undefined;
|
|
4973
|
+
reject_contains?: string | undefined;
|
|
4974
|
+
}, {
|
|
4975
|
+
tool: string;
|
|
4976
|
+
args?: Record<string, unknown> | undefined;
|
|
4977
|
+
expect_contains?: string | undefined;
|
|
4978
|
+
reject_contains?: string | undefined;
|
|
4979
|
+
interval_ms?: number | undefined;
|
|
4980
|
+
timeout_ms?: number | undefined;
|
|
4981
|
+
}>>;
|
|
4982
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
4983
|
+
upstream_instructions: z.ZodOptional<z.ZodEnum<["include", "ignore"]>>;
|
|
3644
4984
|
type: z.ZodLiteral<"http">;
|
|
3645
4985
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3646
4986
|
url: z.ZodString;
|
|
@@ -3650,16 +4990,62 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3650
4990
|
oauth_callback_url: z.ZodOptional<z.ZodString>;
|
|
3651
4991
|
client_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
3652
4992
|
client_secret: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4993
|
+
client_credentials: z.ZodOptional<z.ZodObject<{
|
|
4994
|
+
/** The issuer's token endpoint, e.g. `https://api.linear.app/oauth/token`. */
|
|
4995
|
+
token_url: z.ZodString;
|
|
4996
|
+
client_id: z.ZodEffects<z.ZodString, string, string>;
|
|
4997
|
+
client_secret: z.ZodEffects<z.ZodString, string, string>;
|
|
4998
|
+
/**
|
|
4999
|
+
* Scopes to request, verbatim — the separator is the issuer's to define (Linear uses commas,
|
|
5000
|
+
* the OAuth2 spec says spaces), so the string is passed through untouched. Omit to accept the
|
|
5001
|
+
* issuer's default scopes. NOTE: some issuers revoke every live token when an app's scopes
|
|
5002
|
+
* change, so treat this as a value that is changed deliberately, not tuned.
|
|
5003
|
+
*/
|
|
5004
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
5005
|
+
}, "strict", z.ZodTypeAny, {
|
|
5006
|
+
client_id: string;
|
|
5007
|
+
client_secret: string;
|
|
5008
|
+
token_url: string;
|
|
5009
|
+
scope?: string | undefined;
|
|
5010
|
+
}, {
|
|
5011
|
+
client_id: string;
|
|
5012
|
+
client_secret: string;
|
|
5013
|
+
token_url: string;
|
|
5014
|
+
scope?: string | undefined;
|
|
5015
|
+
}>>;
|
|
5016
|
+
/**
|
|
5017
|
+
* Per-request MCP SDK deadline. The SDK otherwise imposes an invisible 60s default even when
|
|
5018
|
+
* Airlock's outer call_execution_timeout_ms is higher, so slow but healthy providers can
|
|
5019
|
+
* never use the operator-configured execution budget.
|
|
5020
|
+
*/
|
|
5021
|
+
request_timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
3653
5022
|
}, "strict", z.ZodTypeAny, {
|
|
3654
5023
|
url: string;
|
|
3655
5024
|
type: "http";
|
|
3656
5025
|
oauth: boolean;
|
|
3657
5026
|
enabled: boolean;
|
|
3658
5027
|
oauth_callback_port: number;
|
|
5028
|
+
request_timeout_ms: number;
|
|
3659
5029
|
client_id?: string | undefined;
|
|
3660
5030
|
client_secret?: string | undefined;
|
|
5031
|
+
credential_probe?: {
|
|
5032
|
+
tool: string;
|
|
5033
|
+
args: Record<string, unknown>;
|
|
5034
|
+
interval_ms: number;
|
|
5035
|
+
timeout_ms: number;
|
|
5036
|
+
expect_contains?: string | undefined;
|
|
5037
|
+
reject_contains?: string | undefined;
|
|
5038
|
+
} | undefined;
|
|
5039
|
+
instructions?: string | undefined;
|
|
5040
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
3661
5041
|
headers?: Record<string, string> | undefined;
|
|
3662
5042
|
oauth_callback_url?: string | undefined;
|
|
5043
|
+
client_credentials?: {
|
|
5044
|
+
client_id: string;
|
|
5045
|
+
client_secret: string;
|
|
5046
|
+
token_url: string;
|
|
5047
|
+
scope?: string | undefined;
|
|
5048
|
+
} | undefined;
|
|
3663
5049
|
}, {
|
|
3664
5050
|
url: string;
|
|
3665
5051
|
type: "http";
|
|
@@ -3667,9 +5053,26 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3667
5053
|
client_id?: string | undefined;
|
|
3668
5054
|
client_secret?: string | undefined;
|
|
3669
5055
|
enabled?: boolean | undefined;
|
|
5056
|
+
credential_probe?: {
|
|
5057
|
+
tool: string;
|
|
5058
|
+
args?: Record<string, unknown> | undefined;
|
|
5059
|
+
expect_contains?: string | undefined;
|
|
5060
|
+
reject_contains?: string | undefined;
|
|
5061
|
+
interval_ms?: number | undefined;
|
|
5062
|
+
timeout_ms?: number | undefined;
|
|
5063
|
+
} | undefined;
|
|
5064
|
+
instructions?: string | undefined;
|
|
5065
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
3670
5066
|
headers?: Record<string, string> | undefined;
|
|
3671
5067
|
oauth_callback_port?: number | undefined;
|
|
3672
5068
|
oauth_callback_url?: string | undefined;
|
|
5069
|
+
client_credentials?: {
|
|
5070
|
+
client_id: string;
|
|
5071
|
+
client_secret: string;
|
|
5072
|
+
token_url: string;
|
|
5073
|
+
scope?: string | undefined;
|
|
5074
|
+
} | undefined;
|
|
5075
|
+
request_timeout_ms?: number | undefined;
|
|
3673
5076
|
}>]>]>>>;
|
|
3674
5077
|
value_sets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodUnknown, "atleastone">, z.ZodObject<{
|
|
3675
5078
|
values: z.ZodArray<z.ZodUnknown, "atleastone">;
|
|
@@ -3705,6 +5108,356 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3705
5108
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3706
5109
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3707
5110
|
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5111
|
+
tool_overrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5112
|
+
/** Replaces the upstream description entirely. */
|
|
5113
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5114
|
+
/**
|
|
5115
|
+
* Appended after whatever description survives (upstream, or `description` when set). Use this
|
|
5116
|
+
* for house rules you want on top of the vendor's docs without restating them by hand.
|
|
5117
|
+
*/
|
|
5118
|
+
description_append: z.ZodOptional<z.ZodString>;
|
|
5119
|
+
alias_of: z.ZodOptional<z.ZodString>;
|
|
5120
|
+
sandbox_presets: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
|
|
5121
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
5122
|
+
filesystem: z.ZodOptional<z.ZodObject<{
|
|
5123
|
+
allow_write: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5124
|
+
deny_read: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5125
|
+
deny_write: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5126
|
+
allow_read: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5127
|
+
}, "strict", z.ZodTypeAny, {
|
|
5128
|
+
allow_write: string[];
|
|
5129
|
+
deny_read: string[];
|
|
5130
|
+
deny_write: string[];
|
|
5131
|
+
allow_read?: string[] | undefined;
|
|
5132
|
+
}, {
|
|
5133
|
+
allow_write?: string[] | undefined;
|
|
5134
|
+
deny_read?: string[] | undefined;
|
|
5135
|
+
deny_write?: string[] | undefined;
|
|
5136
|
+
allow_read?: string[] | undefined;
|
|
5137
|
+
}>>;
|
|
5138
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
5139
|
+
allowed_domains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5140
|
+
denied_domains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5141
|
+
}, "strict", z.ZodTypeAny, {
|
|
5142
|
+
allowed_domains: string[];
|
|
5143
|
+
denied_domains: string[];
|
|
5144
|
+
}, {
|
|
5145
|
+
allowed_domains?: string[] | undefined;
|
|
5146
|
+
denied_domains?: string[] | undefined;
|
|
5147
|
+
}>>;
|
|
5148
|
+
}, "strict", z.ZodTypeAny, {
|
|
5149
|
+
filesystem?: {
|
|
5150
|
+
allow_write: string[];
|
|
5151
|
+
deny_read: string[];
|
|
5152
|
+
deny_write: string[];
|
|
5153
|
+
allow_read?: string[] | undefined;
|
|
5154
|
+
} | undefined;
|
|
5155
|
+
network?: {
|
|
5156
|
+
allowed_domains: string[];
|
|
5157
|
+
denied_domains: string[];
|
|
5158
|
+
} | undefined;
|
|
5159
|
+
}, {
|
|
5160
|
+
filesystem?: {
|
|
5161
|
+
allow_write?: string[] | undefined;
|
|
5162
|
+
deny_read?: string[] | undefined;
|
|
5163
|
+
deny_write?: string[] | undefined;
|
|
5164
|
+
allow_read?: string[] | undefined;
|
|
5165
|
+
} | undefined;
|
|
5166
|
+
network?: {
|
|
5167
|
+
allowed_domains?: string[] | undefined;
|
|
5168
|
+
denied_domains?: string[] | undefined;
|
|
5169
|
+
} | undefined;
|
|
5170
|
+
}>>;
|
|
5171
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
5172
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
5173
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
5174
|
+
in: z.ZodOptional<z.ZodString>;
|
|
5175
|
+
glob_in: z.ZodOptional<z.ZodString>;
|
|
5176
|
+
each_in: z.ZodOptional<z.ZodString>;
|
|
5177
|
+
glob_allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5178
|
+
each_allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
5179
|
+
normalize: z.ZodOptional<z.ZodArray<z.ZodEnum<["phone", "email", "lower", "trim"]>, "many">>;
|
|
5180
|
+
path: z.ZodOptional<z.ZodString>;
|
|
5181
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5182
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5183
|
+
value_set: z.ZodOptional<z.ZodString>;
|
|
5184
|
+
expose_values: z.ZodOptional<z.ZodBoolean>;
|
|
5185
|
+
}, "strict", z.ZodTypeAny, {
|
|
5186
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5187
|
+
in?: string | undefined;
|
|
5188
|
+
required?: boolean | undefined;
|
|
5189
|
+
path?: string | undefined;
|
|
5190
|
+
expose_values?: boolean | undefined;
|
|
5191
|
+
allow?: unknown[] | undefined;
|
|
5192
|
+
equals?: unknown;
|
|
5193
|
+
glob_in?: string | undefined;
|
|
5194
|
+
each_in?: string | undefined;
|
|
5195
|
+
glob_allow?: string[] | undefined;
|
|
5196
|
+
each_allow?: unknown[] | undefined;
|
|
5197
|
+
label?: string | undefined;
|
|
5198
|
+
value_set?: string | undefined;
|
|
5199
|
+
}, {
|
|
5200
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5201
|
+
in?: string | undefined;
|
|
5202
|
+
required?: boolean | undefined;
|
|
5203
|
+
path?: string | undefined;
|
|
5204
|
+
expose_values?: boolean | undefined;
|
|
5205
|
+
allow?: unknown[] | undefined;
|
|
5206
|
+
equals?: unknown;
|
|
5207
|
+
glob_in?: string | undefined;
|
|
5208
|
+
each_in?: string | undefined;
|
|
5209
|
+
glob_allow?: string[] | undefined;
|
|
5210
|
+
each_allow?: unknown[] | undefined;
|
|
5211
|
+
label?: string | undefined;
|
|
5212
|
+
value_set?: string | undefined;
|
|
5213
|
+
}>, {
|
|
5214
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5215
|
+
in?: string | undefined;
|
|
5216
|
+
required?: boolean | undefined;
|
|
5217
|
+
path?: string | undefined;
|
|
5218
|
+
expose_values?: boolean | undefined;
|
|
5219
|
+
allow?: unknown[] | undefined;
|
|
5220
|
+
equals?: unknown;
|
|
5221
|
+
glob_in?: string | undefined;
|
|
5222
|
+
each_in?: string | undefined;
|
|
5223
|
+
glob_allow?: string[] | undefined;
|
|
5224
|
+
each_allow?: unknown[] | undefined;
|
|
5225
|
+
label?: string | undefined;
|
|
5226
|
+
value_set?: string | undefined;
|
|
5227
|
+
}, {
|
|
5228
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5229
|
+
in?: string | undefined;
|
|
5230
|
+
required?: boolean | undefined;
|
|
5231
|
+
path?: string | undefined;
|
|
5232
|
+
expose_values?: boolean | undefined;
|
|
5233
|
+
allow?: unknown[] | undefined;
|
|
5234
|
+
equals?: unknown;
|
|
5235
|
+
glob_in?: string | undefined;
|
|
5236
|
+
each_in?: string | undefined;
|
|
5237
|
+
glob_allow?: string[] | undefined;
|
|
5238
|
+
each_allow?: unknown[] | undefined;
|
|
5239
|
+
label?: string | undefined;
|
|
5240
|
+
value_set?: string | undefined;
|
|
5241
|
+
}>, z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
5242
|
+
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
5243
|
+
equals: z.ZodOptional<z.ZodUnknown>;
|
|
5244
|
+
in: z.ZodOptional<z.ZodString>;
|
|
5245
|
+
glob_in: z.ZodOptional<z.ZodString>;
|
|
5246
|
+
each_in: z.ZodOptional<z.ZodString>;
|
|
5247
|
+
glob_allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5248
|
+
each_allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
5249
|
+
normalize: z.ZodOptional<z.ZodArray<z.ZodEnum<["phone", "email", "lower", "trim"]>, "many">>;
|
|
5250
|
+
path: z.ZodOptional<z.ZodString>;
|
|
5251
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5252
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5253
|
+
value_set: z.ZodOptional<z.ZodString>;
|
|
5254
|
+
expose_values: z.ZodOptional<z.ZodBoolean>;
|
|
5255
|
+
}, "strict", z.ZodTypeAny, {
|
|
5256
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5257
|
+
in?: string | undefined;
|
|
5258
|
+
required?: boolean | undefined;
|
|
5259
|
+
path?: string | undefined;
|
|
5260
|
+
expose_values?: boolean | undefined;
|
|
5261
|
+
allow?: unknown[] | undefined;
|
|
5262
|
+
equals?: unknown;
|
|
5263
|
+
glob_in?: string | undefined;
|
|
5264
|
+
each_in?: string | undefined;
|
|
5265
|
+
glob_allow?: string[] | undefined;
|
|
5266
|
+
each_allow?: unknown[] | undefined;
|
|
5267
|
+
label?: string | undefined;
|
|
5268
|
+
value_set?: string | undefined;
|
|
5269
|
+
}, {
|
|
5270
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5271
|
+
in?: string | undefined;
|
|
5272
|
+
required?: boolean | undefined;
|
|
5273
|
+
path?: string | undefined;
|
|
5274
|
+
expose_values?: boolean | undefined;
|
|
5275
|
+
allow?: unknown[] | undefined;
|
|
5276
|
+
equals?: unknown;
|
|
5277
|
+
glob_in?: string | undefined;
|
|
5278
|
+
each_in?: string | undefined;
|
|
5279
|
+
glob_allow?: string[] | undefined;
|
|
5280
|
+
each_allow?: unknown[] | undefined;
|
|
5281
|
+
label?: string | undefined;
|
|
5282
|
+
value_set?: string | undefined;
|
|
5283
|
+
}>, {
|
|
5284
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5285
|
+
in?: string | undefined;
|
|
5286
|
+
required?: boolean | undefined;
|
|
5287
|
+
path?: string | undefined;
|
|
5288
|
+
expose_values?: boolean | undefined;
|
|
5289
|
+
allow?: unknown[] | undefined;
|
|
5290
|
+
equals?: unknown;
|
|
5291
|
+
glob_in?: string | undefined;
|
|
5292
|
+
each_in?: string | undefined;
|
|
5293
|
+
glob_allow?: string[] | undefined;
|
|
5294
|
+
each_allow?: unknown[] | undefined;
|
|
5295
|
+
label?: string | undefined;
|
|
5296
|
+
value_set?: string | undefined;
|
|
5297
|
+
}, {
|
|
5298
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5299
|
+
in?: string | undefined;
|
|
5300
|
+
required?: boolean | undefined;
|
|
5301
|
+
path?: string | undefined;
|
|
5302
|
+
expose_values?: boolean | undefined;
|
|
5303
|
+
allow?: unknown[] | undefined;
|
|
5304
|
+
equals?: unknown;
|
|
5305
|
+
glob_in?: string | undefined;
|
|
5306
|
+
each_in?: string | undefined;
|
|
5307
|
+
glob_allow?: string[] | undefined;
|
|
5308
|
+
each_allow?: unknown[] | undefined;
|
|
5309
|
+
label?: string | undefined;
|
|
5310
|
+
value_set?: string | undefined;
|
|
5311
|
+
}>, "atleastone">]>, {
|
|
5312
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5313
|
+
in?: string | undefined;
|
|
5314
|
+
required?: boolean | undefined;
|
|
5315
|
+
path?: string | undefined;
|
|
5316
|
+
expose_values?: boolean | undefined;
|
|
5317
|
+
allow?: unknown[] | undefined;
|
|
5318
|
+
equals?: unknown;
|
|
5319
|
+
glob_in?: string | undefined;
|
|
5320
|
+
each_in?: string | undefined;
|
|
5321
|
+
glob_allow?: string[] | undefined;
|
|
5322
|
+
each_allow?: unknown[] | undefined;
|
|
5323
|
+
label?: string | undefined;
|
|
5324
|
+
value_set?: string | undefined;
|
|
5325
|
+
}[], {
|
|
5326
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5327
|
+
in?: string | undefined;
|
|
5328
|
+
required?: boolean | undefined;
|
|
5329
|
+
path?: string | undefined;
|
|
5330
|
+
expose_values?: boolean | undefined;
|
|
5331
|
+
allow?: unknown[] | undefined;
|
|
5332
|
+
equals?: unknown;
|
|
5333
|
+
glob_in?: string | undefined;
|
|
5334
|
+
each_in?: string | undefined;
|
|
5335
|
+
glob_allow?: string[] | undefined;
|
|
5336
|
+
each_allow?: unknown[] | undefined;
|
|
5337
|
+
label?: string | undefined;
|
|
5338
|
+
value_set?: string | undefined;
|
|
5339
|
+
} | [{
|
|
5340
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5341
|
+
in?: string | undefined;
|
|
5342
|
+
required?: boolean | undefined;
|
|
5343
|
+
path?: string | undefined;
|
|
5344
|
+
expose_values?: boolean | undefined;
|
|
5345
|
+
allow?: unknown[] | undefined;
|
|
5346
|
+
equals?: unknown;
|
|
5347
|
+
glob_in?: string | undefined;
|
|
5348
|
+
each_in?: string | undefined;
|
|
5349
|
+
glob_allow?: string[] | undefined;
|
|
5350
|
+
each_allow?: unknown[] | undefined;
|
|
5351
|
+
label?: string | undefined;
|
|
5352
|
+
value_set?: string | undefined;
|
|
5353
|
+
}, ...{
|
|
5354
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5355
|
+
in?: string | undefined;
|
|
5356
|
+
required?: boolean | undefined;
|
|
5357
|
+
path?: string | undefined;
|
|
5358
|
+
expose_values?: boolean | undefined;
|
|
5359
|
+
allow?: unknown[] | undefined;
|
|
5360
|
+
equals?: unknown;
|
|
5361
|
+
glob_in?: string | undefined;
|
|
5362
|
+
each_in?: string | undefined;
|
|
5363
|
+
glob_allow?: string[] | undefined;
|
|
5364
|
+
each_allow?: unknown[] | undefined;
|
|
5365
|
+
label?: string | undefined;
|
|
5366
|
+
value_set?: string | undefined;
|
|
5367
|
+
}[]]>>>;
|
|
5368
|
+
}, "strict", z.ZodTypeAny, {
|
|
5369
|
+
sandbox_presets: string[];
|
|
5370
|
+
description?: string | undefined;
|
|
5371
|
+
args?: Record<string, {
|
|
5372
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5373
|
+
in?: string | undefined;
|
|
5374
|
+
required?: boolean | undefined;
|
|
5375
|
+
path?: string | undefined;
|
|
5376
|
+
expose_values?: boolean | undefined;
|
|
5377
|
+
allow?: unknown[] | undefined;
|
|
5378
|
+
equals?: unknown;
|
|
5379
|
+
glob_in?: string | undefined;
|
|
5380
|
+
each_in?: string | undefined;
|
|
5381
|
+
glob_allow?: string[] | undefined;
|
|
5382
|
+
each_allow?: unknown[] | undefined;
|
|
5383
|
+
label?: string | undefined;
|
|
5384
|
+
value_set?: string | undefined;
|
|
5385
|
+
}[]> | undefined;
|
|
5386
|
+
description_append?: string | undefined;
|
|
5387
|
+
alias_of?: string | undefined;
|
|
5388
|
+
sandbox?: {
|
|
5389
|
+
filesystem?: {
|
|
5390
|
+
allow_write: string[];
|
|
5391
|
+
deny_read: string[];
|
|
5392
|
+
deny_write: string[];
|
|
5393
|
+
allow_read?: string[] | undefined;
|
|
5394
|
+
} | undefined;
|
|
5395
|
+
network?: {
|
|
5396
|
+
allowed_domains: string[];
|
|
5397
|
+
denied_domains: string[];
|
|
5398
|
+
} | undefined;
|
|
5399
|
+
} | undefined;
|
|
5400
|
+
}, {
|
|
5401
|
+
description?: string | undefined;
|
|
5402
|
+
args?: Record<string, {
|
|
5403
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5404
|
+
in?: string | undefined;
|
|
5405
|
+
required?: boolean | undefined;
|
|
5406
|
+
path?: string | undefined;
|
|
5407
|
+
expose_values?: boolean | undefined;
|
|
5408
|
+
allow?: unknown[] | undefined;
|
|
5409
|
+
equals?: unknown;
|
|
5410
|
+
glob_in?: string | undefined;
|
|
5411
|
+
each_in?: string | undefined;
|
|
5412
|
+
glob_allow?: string[] | undefined;
|
|
5413
|
+
each_allow?: unknown[] | undefined;
|
|
5414
|
+
label?: string | undefined;
|
|
5415
|
+
value_set?: string | undefined;
|
|
5416
|
+
} | [{
|
|
5417
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5418
|
+
in?: string | undefined;
|
|
5419
|
+
required?: boolean | undefined;
|
|
5420
|
+
path?: string | undefined;
|
|
5421
|
+
expose_values?: boolean | undefined;
|
|
5422
|
+
allow?: unknown[] | undefined;
|
|
5423
|
+
equals?: unknown;
|
|
5424
|
+
glob_in?: string | undefined;
|
|
5425
|
+
each_in?: string | undefined;
|
|
5426
|
+
glob_allow?: string[] | undefined;
|
|
5427
|
+
each_allow?: unknown[] | undefined;
|
|
5428
|
+
label?: string | undefined;
|
|
5429
|
+
value_set?: string | undefined;
|
|
5430
|
+
}, ...{
|
|
5431
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5432
|
+
in?: string | undefined;
|
|
5433
|
+
required?: boolean | undefined;
|
|
5434
|
+
path?: string | undefined;
|
|
5435
|
+
expose_values?: boolean | undefined;
|
|
5436
|
+
allow?: unknown[] | undefined;
|
|
5437
|
+
equals?: unknown;
|
|
5438
|
+
glob_in?: string | undefined;
|
|
5439
|
+
each_in?: string | undefined;
|
|
5440
|
+
glob_allow?: string[] | undefined;
|
|
5441
|
+
each_allow?: unknown[] | undefined;
|
|
5442
|
+
label?: string | undefined;
|
|
5443
|
+
value_set?: string | undefined;
|
|
5444
|
+
}[]]> | undefined;
|
|
5445
|
+
description_append?: string | undefined;
|
|
5446
|
+
alias_of?: string | undefined;
|
|
5447
|
+
sandbox_presets?: string | string[] | undefined;
|
|
5448
|
+
sandbox?: {
|
|
5449
|
+
filesystem?: {
|
|
5450
|
+
allow_write?: string[] | undefined;
|
|
5451
|
+
deny_read?: string[] | undefined;
|
|
5452
|
+
deny_write?: string[] | undefined;
|
|
5453
|
+
allow_read?: string[] | undefined;
|
|
5454
|
+
} | undefined;
|
|
5455
|
+
network?: {
|
|
5456
|
+
allowed_domains?: string[] | undefined;
|
|
5457
|
+
denied_domains?: string[] | undefined;
|
|
5458
|
+
} | undefined;
|
|
5459
|
+
} | undefined;
|
|
5460
|
+
}>>>;
|
|
3708
5461
|
arg_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
3709
5462
|
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3710
5463
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -3905,11 +5658,70 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3905
5658
|
arg_scope: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>>, {
|
|
3906
5659
|
[k: string]: string[];
|
|
3907
5660
|
}, Record<string, string | [string, ...string[]]>>>;
|
|
5661
|
+
command_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
5662
|
+
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5663
|
+
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5664
|
+
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5665
|
+
default: z.ZodOptional<z.ZodEnum<["allow", "ask", "deny"]>>;
|
|
5666
|
+
}, "strict", z.ZodTypeAny, {
|
|
5667
|
+
allow: string[];
|
|
5668
|
+
ask: string[];
|
|
5669
|
+
deny: string[];
|
|
5670
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
5671
|
+
}, {
|
|
5672
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
5673
|
+
allow?: string[] | undefined;
|
|
5674
|
+
ask?: string[] | undefined;
|
|
5675
|
+
deny?: string[] | undefined;
|
|
5676
|
+
}>, {
|
|
5677
|
+
allow: string[];
|
|
5678
|
+
ask: string[];
|
|
5679
|
+
deny: string[];
|
|
5680
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
5681
|
+
}, {
|
|
5682
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
5683
|
+
allow?: string[] | undefined;
|
|
5684
|
+
ask?: string[] | undefined;
|
|
5685
|
+
deny?: string[] | undefined;
|
|
5686
|
+
}>>>>;
|
|
3908
5687
|
}, "strict", z.ZodTypeAny, {
|
|
3909
5688
|
allow: string[];
|
|
3910
5689
|
ask: string[];
|
|
3911
5690
|
deny: string[];
|
|
3912
5691
|
extends: string[];
|
|
5692
|
+
tool_overrides: Record<string, {
|
|
5693
|
+
sandbox_presets: string[];
|
|
5694
|
+
description?: string | undefined;
|
|
5695
|
+
args?: Record<string, {
|
|
5696
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5697
|
+
in?: string | undefined;
|
|
5698
|
+
required?: boolean | undefined;
|
|
5699
|
+
path?: string | undefined;
|
|
5700
|
+
expose_values?: boolean | undefined;
|
|
5701
|
+
allow?: unknown[] | undefined;
|
|
5702
|
+
equals?: unknown;
|
|
5703
|
+
glob_in?: string | undefined;
|
|
5704
|
+
each_in?: string | undefined;
|
|
5705
|
+
glob_allow?: string[] | undefined;
|
|
5706
|
+
each_allow?: unknown[] | undefined;
|
|
5707
|
+
label?: string | undefined;
|
|
5708
|
+
value_set?: string | undefined;
|
|
5709
|
+
}[]> | undefined;
|
|
5710
|
+
description_append?: string | undefined;
|
|
5711
|
+
alias_of?: string | undefined;
|
|
5712
|
+
sandbox?: {
|
|
5713
|
+
filesystem?: {
|
|
5714
|
+
allow_write: string[];
|
|
5715
|
+
deny_read: string[];
|
|
5716
|
+
deny_write: string[];
|
|
5717
|
+
allow_read?: string[] | undefined;
|
|
5718
|
+
} | undefined;
|
|
5719
|
+
network?: {
|
|
5720
|
+
allowed_domains: string[];
|
|
5721
|
+
denied_domains: string[];
|
|
5722
|
+
} | undefined;
|
|
5723
|
+
} | undefined;
|
|
5724
|
+
}>;
|
|
3913
5725
|
arg_policy?: Record<string, Record<string, {
|
|
3914
5726
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3915
5727
|
in?: string | undefined;
|
|
@@ -3928,11 +5740,78 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3928
5740
|
arg_scope?: {
|
|
3929
5741
|
[k: string]: string[];
|
|
3930
5742
|
} | undefined;
|
|
5743
|
+
command_policy?: Record<string, Record<string, {
|
|
5744
|
+
allow: string[];
|
|
5745
|
+
ask: string[];
|
|
5746
|
+
deny: string[];
|
|
5747
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
5748
|
+
}>> | undefined;
|
|
3931
5749
|
}, {
|
|
3932
5750
|
allow?: string[] | undefined;
|
|
3933
5751
|
ask?: string[] | undefined;
|
|
3934
5752
|
deny?: string[] | undefined;
|
|
3935
5753
|
extends?: string[] | undefined;
|
|
5754
|
+
tool_overrides?: Record<string, {
|
|
5755
|
+
description?: string | undefined;
|
|
5756
|
+
args?: Record<string, {
|
|
5757
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5758
|
+
in?: string | undefined;
|
|
5759
|
+
required?: boolean | undefined;
|
|
5760
|
+
path?: string | undefined;
|
|
5761
|
+
expose_values?: boolean | undefined;
|
|
5762
|
+
allow?: unknown[] | undefined;
|
|
5763
|
+
equals?: unknown;
|
|
5764
|
+
glob_in?: string | undefined;
|
|
5765
|
+
each_in?: string | undefined;
|
|
5766
|
+
glob_allow?: string[] | undefined;
|
|
5767
|
+
each_allow?: unknown[] | undefined;
|
|
5768
|
+
label?: string | undefined;
|
|
5769
|
+
value_set?: string | undefined;
|
|
5770
|
+
} | [{
|
|
5771
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5772
|
+
in?: string | undefined;
|
|
5773
|
+
required?: boolean | undefined;
|
|
5774
|
+
path?: string | undefined;
|
|
5775
|
+
expose_values?: boolean | undefined;
|
|
5776
|
+
allow?: unknown[] | undefined;
|
|
5777
|
+
equals?: unknown;
|
|
5778
|
+
glob_in?: string | undefined;
|
|
5779
|
+
each_in?: string | undefined;
|
|
5780
|
+
glob_allow?: string[] | undefined;
|
|
5781
|
+
each_allow?: unknown[] | undefined;
|
|
5782
|
+
label?: string | undefined;
|
|
5783
|
+
value_set?: string | undefined;
|
|
5784
|
+
}, ...{
|
|
5785
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5786
|
+
in?: string | undefined;
|
|
5787
|
+
required?: boolean | undefined;
|
|
5788
|
+
path?: string | undefined;
|
|
5789
|
+
expose_values?: boolean | undefined;
|
|
5790
|
+
allow?: unknown[] | undefined;
|
|
5791
|
+
equals?: unknown;
|
|
5792
|
+
glob_in?: string | undefined;
|
|
5793
|
+
each_in?: string | undefined;
|
|
5794
|
+
glob_allow?: string[] | undefined;
|
|
5795
|
+
each_allow?: unknown[] | undefined;
|
|
5796
|
+
label?: string | undefined;
|
|
5797
|
+
value_set?: string | undefined;
|
|
5798
|
+
}[]]> | undefined;
|
|
5799
|
+
description_append?: string | undefined;
|
|
5800
|
+
alias_of?: string | undefined;
|
|
5801
|
+
sandbox_presets?: string | string[] | undefined;
|
|
5802
|
+
sandbox?: {
|
|
5803
|
+
filesystem?: {
|
|
5804
|
+
allow_write?: string[] | undefined;
|
|
5805
|
+
deny_read?: string[] | undefined;
|
|
5806
|
+
deny_write?: string[] | undefined;
|
|
5807
|
+
allow_read?: string[] | undefined;
|
|
5808
|
+
} | undefined;
|
|
5809
|
+
network?: {
|
|
5810
|
+
allowed_domains?: string[] | undefined;
|
|
5811
|
+
denied_domains?: string[] | undefined;
|
|
5812
|
+
} | undefined;
|
|
5813
|
+
} | undefined;
|
|
5814
|
+
}> | undefined;
|
|
3936
5815
|
arg_policy?: Record<string, Record<string, {
|
|
3937
5816
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
3938
5817
|
in?: string | undefined;
|
|
@@ -3977,7 +5856,14 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
3977
5856
|
value_set?: string | undefined;
|
|
3978
5857
|
}[]]>> | undefined;
|
|
3979
5858
|
arg_scope?: Record<string, string | [string, ...string[]]> | undefined;
|
|
5859
|
+
command_policy?: Record<string, Record<string, {
|
|
5860
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
5861
|
+
allow?: string[] | undefined;
|
|
5862
|
+
ask?: string[] | undefined;
|
|
5863
|
+
deny?: string[] | undefined;
|
|
5864
|
+
}>> | undefined;
|
|
3980
5865
|
}>>>;
|
|
5866
|
+
default_profile: z.ZodOptional<z.ZodString>;
|
|
3981
5867
|
sandbox_presets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3982
5868
|
filesystem: z.ZodOptional<z.ZodObject<{
|
|
3983
5869
|
allow_write: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -4156,9 +6042,10 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4156
6042
|
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
4157
6043
|
max_response_bytes: z.ZodDefault<z.ZodNumber>;
|
|
4158
6044
|
}, "strict", z.ZodTypeAny, {
|
|
4159
|
-
max_response_bytes: number;
|
|
4160
6045
|
timeout_ms: number;
|
|
6046
|
+
max_response_bytes: number;
|
|
4161
6047
|
spec: string;
|
|
6048
|
+
include?: string[] | undefined;
|
|
4162
6049
|
exclude?: string[] | undefined;
|
|
4163
6050
|
base_url?: string | undefined;
|
|
4164
6051
|
auth?: {
|
|
@@ -4169,11 +6056,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4169
6056
|
type: "header";
|
|
4170
6057
|
value: string;
|
|
4171
6058
|
} | undefined;
|
|
4172
|
-
include?: string[] | undefined;
|
|
4173
6059
|
}, {
|
|
4174
6060
|
spec: string;
|
|
4175
|
-
|
|
6061
|
+
include?: string[] | undefined;
|
|
4176
6062
|
timeout_ms?: number | undefined;
|
|
6063
|
+
max_response_bytes?: number | undefined;
|
|
4177
6064
|
exclude?: string[] | undefined;
|
|
4178
6065
|
base_url?: string | undefined;
|
|
4179
6066
|
auth?: {
|
|
@@ -4184,11 +6071,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4184
6071
|
type: "header";
|
|
4185
6072
|
value: string;
|
|
4186
6073
|
} | undefined;
|
|
4187
|
-
include?: string[] | undefined;
|
|
4188
6074
|
}>>>;
|
|
4189
6075
|
agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4190
6076
|
token: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4191
6077
|
extends: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6078
|
+
inherit_default: z.ZodDefault<z.ZodBoolean>;
|
|
4192
6079
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4193
6080
|
remember_allow: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4194
6081
|
tool: z.ZodString;
|
|
@@ -4203,7 +6090,13 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4203
6090
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4204
6091
|
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4205
6092
|
tool_overrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6093
|
+
/** Replaces the upstream description entirely. */
|
|
4206
6094
|
description: z.ZodOptional<z.ZodString>;
|
|
6095
|
+
/**
|
|
6096
|
+
* Appended after whatever description survives (upstream, or `description` when set). Use this
|
|
6097
|
+
* for house rules you want on top of the vendor's docs without restating them by hand.
|
|
6098
|
+
*/
|
|
6099
|
+
description_append: z.ZodOptional<z.ZodString>;
|
|
4207
6100
|
alias_of: z.ZodOptional<z.ZodString>;
|
|
4208
6101
|
sandbox_presets: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
|
|
4209
6102
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
@@ -4471,6 +6364,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4471
6364
|
label?: string | undefined;
|
|
4472
6365
|
value_set?: string | undefined;
|
|
4473
6366
|
}[]> | undefined;
|
|
6367
|
+
description_append?: string | undefined;
|
|
4474
6368
|
alias_of?: string | undefined;
|
|
4475
6369
|
sandbox?: {
|
|
4476
6370
|
filesystem?: {
|
|
@@ -4529,6 +6423,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4529
6423
|
label?: string | undefined;
|
|
4530
6424
|
value_set?: string | undefined;
|
|
4531
6425
|
}[]]> | undefined;
|
|
6426
|
+
description_append?: string | undefined;
|
|
4532
6427
|
alias_of?: string | undefined;
|
|
4533
6428
|
sandbox_presets?: string | string[] | undefined;
|
|
4534
6429
|
sandbox?: {
|
|
@@ -4744,6 +6639,32 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4744
6639
|
arg_scope: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>>, {
|
|
4745
6640
|
[k: string]: string[];
|
|
4746
6641
|
}, Record<string, string | [string, ...string[]]>>>;
|
|
6642
|
+
command_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
6643
|
+
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6644
|
+
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6645
|
+
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
6646
|
+
default: z.ZodOptional<z.ZodEnum<["allow", "ask", "deny"]>>;
|
|
6647
|
+
}, "strict", z.ZodTypeAny, {
|
|
6648
|
+
allow: string[];
|
|
6649
|
+
ask: string[];
|
|
6650
|
+
deny: string[];
|
|
6651
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
6652
|
+
}, {
|
|
6653
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
6654
|
+
allow?: string[] | undefined;
|
|
6655
|
+
ask?: string[] | undefined;
|
|
6656
|
+
deny?: string[] | undefined;
|
|
6657
|
+
}>, {
|
|
6658
|
+
allow: string[];
|
|
6659
|
+
ask: string[];
|
|
6660
|
+
deny: string[];
|
|
6661
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
6662
|
+
}, {
|
|
6663
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
6664
|
+
allow?: string[] | undefined;
|
|
6665
|
+
ask?: string[] | undefined;
|
|
6666
|
+
deny?: string[] | undefined;
|
|
6667
|
+
}>>>>;
|
|
4747
6668
|
exec: z.ZodDefault<z.ZodObject<{
|
|
4748
6669
|
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4749
6670
|
ask: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -4768,13 +6689,13 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4768
6689
|
max_response_bytes: z.ZodDefault<z.ZodNumber>;
|
|
4769
6690
|
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
4770
6691
|
}, "strict", z.ZodTypeAny, {
|
|
6692
|
+
timeout_ms: number;
|
|
4771
6693
|
domain_allowlist: string[];
|
|
4772
6694
|
max_response_bytes: number;
|
|
4773
|
-
timeout_ms: number;
|
|
4774
6695
|
}, {
|
|
6696
|
+
timeout_ms?: number | undefined;
|
|
4775
6697
|
domain_allowlist?: string[] | undefined;
|
|
4776
6698
|
max_response_bytes?: number | undefined;
|
|
4777
|
-
timeout_ms?: number | undefined;
|
|
4778
6699
|
}>>;
|
|
4779
6700
|
sandbox: z.ZodDefault<z.ZodObject<{
|
|
4780
6701
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -4927,11 +6848,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4927
6848
|
enabled: boolean;
|
|
4928
6849
|
model?: string | undefined;
|
|
4929
6850
|
tools?: string[] | undefined;
|
|
4930
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
4931
6851
|
exclude?: string[] | undefined;
|
|
4932
6852
|
max_requests?: number | undefined;
|
|
4933
6853
|
window_ms?: number | undefined;
|
|
4934
6854
|
per?: "tool" | "agent" | undefined;
|
|
6855
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
4935
6856
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
4936
6857
|
inference_url?: string | undefined;
|
|
4937
6858
|
threshold?: number | undefined;
|
|
@@ -4942,12 +6863,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4942
6863
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
4943
6864
|
model?: string | undefined;
|
|
4944
6865
|
tools?: string[] | undefined;
|
|
4945
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
4946
6866
|
enabled?: boolean | undefined;
|
|
4947
6867
|
exclude?: string[] | undefined;
|
|
4948
6868
|
max_requests?: number | undefined;
|
|
4949
6869
|
window_ms?: number | undefined;
|
|
4950
6870
|
per?: "tool" | "agent" | undefined;
|
|
6871
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
4951
6872
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
4952
6873
|
inference_url?: string | undefined;
|
|
4953
6874
|
threshold?: number | undefined;
|
|
@@ -4955,13 +6876,44 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4955
6876
|
max_chars?: number | undefined;
|
|
4956
6877
|
threshold_chars?: number | undefined;
|
|
4957
6878
|
}>, "many">>;
|
|
6879
|
+
expose_tools_api: z.ZodDefault<z.ZodBoolean>;
|
|
6880
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
6881
|
+
max_sessions_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
6882
|
+
max_sessions_global: z.ZodOptional<z.ZodNumber>;
|
|
6883
|
+
session_idle_ms: z.ZodOptional<z.ZodNumber>;
|
|
6884
|
+
session_max_lifetime_ms: z.ZodOptional<z.ZodNumber>;
|
|
6885
|
+
new_session_max: z.ZodOptional<z.ZodNumber>;
|
|
6886
|
+
new_session_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
6887
|
+
max_concurrent_calls_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
6888
|
+
call_execution_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
6889
|
+
}, "strict", z.ZodTypeAny, {
|
|
6890
|
+
max_sessions_per_agent?: number | undefined;
|
|
6891
|
+
max_sessions_global?: number | undefined;
|
|
6892
|
+
session_idle_ms?: number | undefined;
|
|
6893
|
+
session_max_lifetime_ms?: number | undefined;
|
|
6894
|
+
new_session_max?: number | undefined;
|
|
6895
|
+
new_session_window_ms?: number | undefined;
|
|
6896
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
6897
|
+
call_execution_timeout_ms?: number | undefined;
|
|
6898
|
+
}, {
|
|
6899
|
+
max_sessions_per_agent?: number | undefined;
|
|
6900
|
+
max_sessions_global?: number | undefined;
|
|
6901
|
+
session_idle_ms?: number | undefined;
|
|
6902
|
+
session_max_lifetime_ms?: number | undefined;
|
|
6903
|
+
new_session_max?: number | undefined;
|
|
6904
|
+
new_session_window_ms?: number | undefined;
|
|
6905
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
6906
|
+
call_execution_timeout_ms?: number | undefined;
|
|
6907
|
+
}>>;
|
|
4958
6908
|
}, "strict", z.ZodTypeAny, {
|
|
4959
6909
|
http: {
|
|
6910
|
+
timeout_ms: number;
|
|
4960
6911
|
domain_allowlist: string[];
|
|
4961
6912
|
max_response_bytes: number;
|
|
4962
|
-
timeout_ms: number;
|
|
4963
6913
|
};
|
|
4964
6914
|
allow: string[];
|
|
6915
|
+
ask: string[];
|
|
6916
|
+
deny: string[];
|
|
4965
6917
|
sandbox: {
|
|
4966
6918
|
enabled: boolean;
|
|
4967
6919
|
filesystem: {
|
|
@@ -4988,9 +6940,8 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
4988
6940
|
} | undefined;
|
|
4989
6941
|
}>;
|
|
4990
6942
|
};
|
|
4991
|
-
ask: string[];
|
|
4992
|
-
deny: string[];
|
|
4993
6943
|
extends: string[];
|
|
6944
|
+
inherit_default: boolean;
|
|
4994
6945
|
remember_allow: {
|
|
4995
6946
|
tool: string;
|
|
4996
6947
|
expires_at?: string | undefined;
|
|
@@ -5013,6 +6964,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5013
6964
|
label?: string | undefined;
|
|
5014
6965
|
value_set?: string | undefined;
|
|
5015
6966
|
}[]> | undefined;
|
|
6967
|
+
description_append?: string | undefined;
|
|
5016
6968
|
alias_of?: string | undefined;
|
|
5017
6969
|
sandbox?: {
|
|
5018
6970
|
filesystem?: {
|
|
@@ -5034,6 +6986,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5034
6986
|
deny: string[];
|
|
5035
6987
|
default_timeout_ms: number;
|
|
5036
6988
|
};
|
|
6989
|
+
expose_tools_api: boolean;
|
|
5037
6990
|
token?: string | undefined;
|
|
5038
6991
|
arg_policy?: Record<string, Record<string, {
|
|
5039
6992
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -5053,16 +7006,22 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5053
7006
|
arg_scope?: {
|
|
5054
7007
|
[k: string]: string[];
|
|
5055
7008
|
} | undefined;
|
|
7009
|
+
command_policy?: Record<string, Record<string, {
|
|
7010
|
+
allow: string[];
|
|
7011
|
+
ask: string[];
|
|
7012
|
+
deny: string[];
|
|
7013
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
7014
|
+
}>> | undefined;
|
|
5056
7015
|
middleware?: {
|
|
5057
7016
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
5058
7017
|
enabled: boolean;
|
|
5059
7018
|
model?: string | undefined;
|
|
5060
7019
|
tools?: string[] | undefined;
|
|
5061
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
5062
7020
|
exclude?: string[] | undefined;
|
|
5063
7021
|
max_requests?: number | undefined;
|
|
5064
7022
|
window_ms?: number | undefined;
|
|
5065
7023
|
per?: "tool" | "agent" | undefined;
|
|
7024
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
5066
7025
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
5067
7026
|
inference_url?: string | undefined;
|
|
5068
7027
|
threshold?: number | undefined;
|
|
@@ -5070,13 +7029,25 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5070
7029
|
max_chars?: number | undefined;
|
|
5071
7030
|
threshold_chars?: number | undefined;
|
|
5072
7031
|
}[] | undefined;
|
|
7032
|
+
limits?: {
|
|
7033
|
+
max_sessions_per_agent?: number | undefined;
|
|
7034
|
+
max_sessions_global?: number | undefined;
|
|
7035
|
+
session_idle_ms?: number | undefined;
|
|
7036
|
+
session_max_lifetime_ms?: number | undefined;
|
|
7037
|
+
new_session_max?: number | undefined;
|
|
7038
|
+
new_session_window_ms?: number | undefined;
|
|
7039
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
7040
|
+
call_execution_timeout_ms?: number | undefined;
|
|
7041
|
+
} | undefined;
|
|
5073
7042
|
}, {
|
|
5074
7043
|
http?: {
|
|
7044
|
+
timeout_ms?: number | undefined;
|
|
5075
7045
|
domain_allowlist?: string[] | undefined;
|
|
5076
7046
|
max_response_bytes?: number | undefined;
|
|
5077
|
-
timeout_ms?: number | undefined;
|
|
5078
7047
|
} | undefined;
|
|
5079
7048
|
allow?: string[] | undefined;
|
|
7049
|
+
ask?: string[] | undefined;
|
|
7050
|
+
deny?: string[] | undefined;
|
|
5080
7051
|
sandbox?: {
|
|
5081
7052
|
enabled?: boolean | undefined;
|
|
5082
7053
|
filesystem?: {
|
|
@@ -5103,10 +7074,9 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5103
7074
|
} | undefined;
|
|
5104
7075
|
}> | undefined;
|
|
5105
7076
|
} | undefined;
|
|
5106
|
-
ask?: string[] | undefined;
|
|
5107
|
-
deny?: string[] | undefined;
|
|
5108
7077
|
token?: string | undefined;
|
|
5109
7078
|
extends?: string[] | undefined;
|
|
7079
|
+
inherit_default?: boolean | undefined;
|
|
5110
7080
|
remember_allow?: {
|
|
5111
7081
|
tool: string;
|
|
5112
7082
|
expires_at?: string | undefined;
|
|
@@ -5156,6 +7126,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5156
7126
|
label?: string | undefined;
|
|
5157
7127
|
value_set?: string | undefined;
|
|
5158
7128
|
}[]]> | undefined;
|
|
7129
|
+
description_append?: string | undefined;
|
|
5159
7130
|
alias_of?: string | undefined;
|
|
5160
7131
|
sandbox_presets?: string | string[] | undefined;
|
|
5161
7132
|
sandbox?: {
|
|
@@ -5215,6 +7186,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5215
7186
|
value_set?: string | undefined;
|
|
5216
7187
|
}[]]>> | undefined;
|
|
5217
7188
|
arg_scope?: Record<string, string | [string, ...string[]]> | undefined;
|
|
7189
|
+
command_policy?: Record<string, Record<string, {
|
|
7190
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
7191
|
+
allow?: string[] | undefined;
|
|
7192
|
+
ask?: string[] | undefined;
|
|
7193
|
+
deny?: string[] | undefined;
|
|
7194
|
+
}>> | undefined;
|
|
5218
7195
|
exec?: {
|
|
5219
7196
|
env?: Record<string, string> | undefined;
|
|
5220
7197
|
allow?: string[] | undefined;
|
|
@@ -5226,12 +7203,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5226
7203
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
5227
7204
|
model?: string | undefined;
|
|
5228
7205
|
tools?: string[] | undefined;
|
|
5229
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
5230
7206
|
enabled?: boolean | undefined;
|
|
5231
7207
|
exclude?: string[] | undefined;
|
|
5232
7208
|
max_requests?: number | undefined;
|
|
5233
7209
|
window_ms?: number | undefined;
|
|
5234
7210
|
per?: "tool" | "agent" | undefined;
|
|
7211
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
5235
7212
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
5236
7213
|
inference_url?: string | undefined;
|
|
5237
7214
|
threshold?: number | undefined;
|
|
@@ -5239,6 +7216,17 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5239
7216
|
max_chars?: number | undefined;
|
|
5240
7217
|
threshold_chars?: number | undefined;
|
|
5241
7218
|
}[] | undefined;
|
|
7219
|
+
expose_tools_api?: boolean | undefined;
|
|
7220
|
+
limits?: {
|
|
7221
|
+
max_sessions_per_agent?: number | undefined;
|
|
7222
|
+
max_sessions_global?: number | undefined;
|
|
7223
|
+
session_idle_ms?: number | undefined;
|
|
7224
|
+
session_max_lifetime_ms?: number | undefined;
|
|
7225
|
+
new_session_max?: number | undefined;
|
|
7226
|
+
new_session_window_ms?: number | undefined;
|
|
7227
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
7228
|
+
call_execution_timeout_ms?: number | undefined;
|
|
7229
|
+
} | undefined;
|
|
5242
7230
|
}>>>;
|
|
5243
7231
|
approvals: z.ZodDefault<z.ZodObject<{
|
|
5244
7232
|
provider: z.ZodDefault<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -5606,10 +7594,58 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5606
7594
|
security: z.ZodDefault<z.ZodObject<{
|
|
5607
7595
|
blocked_hosts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5608
7596
|
allowed_local: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7597
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
7598
|
+
max_sessions_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
7599
|
+
max_sessions_global: z.ZodOptional<z.ZodNumber>;
|
|
7600
|
+
session_idle_ms: z.ZodOptional<z.ZodNumber>;
|
|
7601
|
+
session_max_lifetime_ms: z.ZodOptional<z.ZodNumber>;
|
|
7602
|
+
new_session_max: z.ZodOptional<z.ZodNumber>;
|
|
7603
|
+
new_session_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
7604
|
+
max_concurrent_calls_per_agent: z.ZodOptional<z.ZodNumber>;
|
|
7605
|
+
call_execution_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
7606
|
+
}, "strict", z.ZodTypeAny, {
|
|
7607
|
+
max_sessions_per_agent?: number | undefined;
|
|
7608
|
+
max_sessions_global?: number | undefined;
|
|
7609
|
+
session_idle_ms?: number | undefined;
|
|
7610
|
+
session_max_lifetime_ms?: number | undefined;
|
|
7611
|
+
new_session_max?: number | undefined;
|
|
7612
|
+
new_session_window_ms?: number | undefined;
|
|
7613
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
7614
|
+
call_execution_timeout_ms?: number | undefined;
|
|
7615
|
+
}, {
|
|
7616
|
+
max_sessions_per_agent?: number | undefined;
|
|
7617
|
+
max_sessions_global?: number | undefined;
|
|
7618
|
+
session_idle_ms?: number | undefined;
|
|
7619
|
+
session_max_lifetime_ms?: number | undefined;
|
|
7620
|
+
new_session_max?: number | undefined;
|
|
7621
|
+
new_session_window_ms?: number | undefined;
|
|
7622
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
7623
|
+
call_execution_timeout_ms?: number | undefined;
|
|
7624
|
+
}>>;
|
|
5609
7625
|
}, "strict", z.ZodTypeAny, {
|
|
5610
7626
|
blocked_hosts: string[];
|
|
5611
7627
|
allowed_local: string[];
|
|
7628
|
+
limits?: {
|
|
7629
|
+
max_sessions_per_agent?: number | undefined;
|
|
7630
|
+
max_sessions_global?: number | undefined;
|
|
7631
|
+
session_idle_ms?: number | undefined;
|
|
7632
|
+
session_max_lifetime_ms?: number | undefined;
|
|
7633
|
+
new_session_max?: number | undefined;
|
|
7634
|
+
new_session_window_ms?: number | undefined;
|
|
7635
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
7636
|
+
call_execution_timeout_ms?: number | undefined;
|
|
7637
|
+
} | undefined;
|
|
5612
7638
|
}, {
|
|
7639
|
+
limits?: {
|
|
7640
|
+
max_sessions_per_agent?: number | undefined;
|
|
7641
|
+
max_sessions_global?: number | undefined;
|
|
7642
|
+
session_idle_ms?: number | undefined;
|
|
7643
|
+
session_max_lifetime_ms?: number | undefined;
|
|
7644
|
+
new_session_max?: number | undefined;
|
|
7645
|
+
new_session_window_ms?: number | undefined;
|
|
7646
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
7647
|
+
call_execution_timeout_ms?: number | undefined;
|
|
7648
|
+
} | undefined;
|
|
5613
7649
|
blocked_hosts?: string[] | undefined;
|
|
5614
7650
|
allowed_local?: string[] | undefined;
|
|
5615
7651
|
}>>;
|
|
@@ -5633,7 +7669,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5633
7669
|
auth_required: z.ZodDefault<z.ZodBoolean>;
|
|
5634
7670
|
require_agent_tokens: z.ZodDefault<z.ZodBoolean>;
|
|
5635
7671
|
allowed_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
5636
|
-
expose_tools_api: z.ZodDefault<z.
|
|
7672
|
+
expose_tools_api: z.ZodDefault<z.ZodEffects<z.ZodEnum<["all", "none", "per-agent"]>, "all" | "none" | "per-agent", unknown>>;
|
|
5637
7673
|
management_api: z.ZodDefault<z.ZodObject<{
|
|
5638
7674
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5639
7675
|
api_secret: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -5659,12 +7695,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5659
7695
|
expose_management_api: z.ZodOptional<z.ZodBoolean>;
|
|
5660
7696
|
expose_hook_api: z.ZodOptional<z.ZodBoolean>;
|
|
5661
7697
|
}, "strict", z.ZodTypeAny, {
|
|
7698
|
+
auth_required: boolean;
|
|
5662
7699
|
port: number;
|
|
7700
|
+
expose_tools_api: "all" | "none" | "per-agent";
|
|
5663
7701
|
host: string;
|
|
5664
|
-
auth_required: boolean;
|
|
5665
7702
|
require_agent_tokens: boolean;
|
|
5666
7703
|
allowed_origins: string[];
|
|
5667
|
-
expose_tools_api: boolean;
|
|
5668
7704
|
management_api: {
|
|
5669
7705
|
port: number;
|
|
5670
7706
|
enabled: boolean;
|
|
@@ -5677,14 +7713,14 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5677
7713
|
expose_hook_api?: boolean | undefined;
|
|
5678
7714
|
expose_management_api?: boolean | undefined;
|
|
5679
7715
|
}, {
|
|
7716
|
+
auth_required?: boolean | undefined;
|
|
5680
7717
|
port?: number | undefined;
|
|
7718
|
+
expose_tools_api?: unknown;
|
|
5681
7719
|
host?: string | undefined;
|
|
5682
7720
|
api_secret?: string | undefined;
|
|
5683
7721
|
expose_hook_api?: boolean | undefined;
|
|
5684
|
-
auth_required?: boolean | undefined;
|
|
5685
7722
|
require_agent_tokens?: boolean | undefined;
|
|
5686
7723
|
allowed_origins?: string[] | undefined;
|
|
5687
|
-
expose_tools_api?: boolean | undefined;
|
|
5688
7724
|
management_api?: {
|
|
5689
7725
|
port?: number | undefined;
|
|
5690
7726
|
enabled?: boolean | undefined;
|
|
@@ -5703,24 +7739,24 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5703
7739
|
insecure_remote_bind: boolean;
|
|
5704
7740
|
api_secret?: string | undefined;
|
|
5705
7741
|
};
|
|
7742
|
+
auth_required: boolean;
|
|
5706
7743
|
port: number;
|
|
7744
|
+
expose_tools_api: "all" | "none" | "per-agent";
|
|
5707
7745
|
host: string;
|
|
5708
|
-
auth_required: boolean;
|
|
5709
7746
|
require_agent_tokens: boolean;
|
|
5710
7747
|
allowed_origins: string[];
|
|
5711
|
-
expose_tools_api: boolean;
|
|
5712
7748
|
api_secret?: string | undefined;
|
|
5713
7749
|
expose_hook_api?: boolean | undefined;
|
|
5714
7750
|
expose_management_api?: boolean | undefined;
|
|
5715
7751
|
}, {
|
|
7752
|
+
auth_required?: boolean | undefined;
|
|
5716
7753
|
port?: number | undefined;
|
|
7754
|
+
expose_tools_api?: unknown;
|
|
5717
7755
|
host?: string | undefined;
|
|
5718
7756
|
api_secret?: string | undefined;
|
|
5719
7757
|
expose_hook_api?: boolean | undefined;
|
|
5720
|
-
auth_required?: boolean | undefined;
|
|
5721
7758
|
require_agent_tokens?: boolean | undefined;
|
|
5722
7759
|
allowed_origins?: string[] | undefined;
|
|
5723
|
-
expose_tools_api?: boolean | undefined;
|
|
5724
7760
|
management_api?: {
|
|
5725
7761
|
port?: number | undefined;
|
|
5726
7762
|
enabled?: boolean | undefined;
|
|
@@ -5732,14 +7768,14 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5732
7768
|
expose_management_api?: boolean | undefined;
|
|
5733
7769
|
}>>;
|
|
5734
7770
|
lint: z.ZodDefault<z.ZodObject<{
|
|
5735
|
-
disable: z.ZodDefault<z.ZodArray<z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref"]>, "many">>;
|
|
5736
|
-
severity: z.ZodDefault<z.ZodRecord<z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref"]>, z.ZodEnum<["info", "warn", "error"]>>>;
|
|
7771
|
+
disable: z.ZodDefault<z.ZodArray<z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref", "unallocated-tool", "dead-allow"]>, "many">>;
|
|
7772
|
+
severity: z.ZodDefault<z.ZodRecord<z.ZodEnum<["dead-deny", "unused-profile", "unused-value-set", "unused-dimension", "empty-agent", "missing-env-ref", "unresolvable-ref", "unallocated-tool", "dead-allow"]>, z.ZodEnum<["info", "warn", "error"]>>>;
|
|
5737
7773
|
}, "strict", z.ZodTypeAny, {
|
|
5738
|
-
disable: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref")[];
|
|
5739
|
-
severity: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref", "error" | "warn" | "info">>;
|
|
7774
|
+
disable: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow")[];
|
|
7775
|
+
severity: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow", "error" | "warn" | "info">>;
|
|
5740
7776
|
}, {
|
|
5741
|
-
disable?: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref")[] | undefined;
|
|
5742
|
-
severity?: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref", "error" | "warn" | "info">> | undefined;
|
|
7777
|
+
disable?: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow")[] | undefined;
|
|
7778
|
+
severity?: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow", "error" | "warn" | "info">> | undefined;
|
|
5743
7779
|
}>>;
|
|
5744
7780
|
}, "strict", z.ZodTypeAny, {
|
|
5745
7781
|
sandbox_presets: Record<string, {
|
|
@@ -5756,14 +7792,34 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5756
7792
|
}>;
|
|
5757
7793
|
providers: Record<string, {
|
|
5758
7794
|
type: "stdio";
|
|
7795
|
+
args: string[];
|
|
5759
7796
|
enabled: boolean;
|
|
5760
7797
|
command: string;
|
|
5761
|
-
args: string[];
|
|
5762
7798
|
env?: Record<string, string> | undefined;
|
|
7799
|
+
credential_probe?: {
|
|
7800
|
+
tool: string;
|
|
7801
|
+
args: Record<string, unknown>;
|
|
7802
|
+
interval_ms: number;
|
|
7803
|
+
timeout_ms: number;
|
|
7804
|
+
expect_contains?: string | undefined;
|
|
7805
|
+
reject_contains?: string | undefined;
|
|
7806
|
+
} | undefined;
|
|
7807
|
+
instructions?: string | undefined;
|
|
7808
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
5763
7809
|
} | {
|
|
5764
7810
|
url: string;
|
|
5765
7811
|
type: "sse";
|
|
5766
7812
|
enabled: boolean;
|
|
7813
|
+
credential_probe?: {
|
|
7814
|
+
tool: string;
|
|
7815
|
+
args: Record<string, unknown>;
|
|
7816
|
+
interval_ms: number;
|
|
7817
|
+
timeout_ms: number;
|
|
7818
|
+
expect_contains?: string | undefined;
|
|
7819
|
+
reject_contains?: string | undefined;
|
|
7820
|
+
} | undefined;
|
|
7821
|
+
instructions?: string | undefined;
|
|
7822
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
5767
7823
|
headers?: Record<string, string> | undefined;
|
|
5768
7824
|
} | {
|
|
5769
7825
|
url: string;
|
|
@@ -5771,13 +7827,32 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5771
7827
|
oauth: boolean;
|
|
5772
7828
|
enabled: boolean;
|
|
5773
7829
|
oauth_callback_port: number;
|
|
7830
|
+
request_timeout_ms: number;
|
|
5774
7831
|
client_id?: string | undefined;
|
|
5775
7832
|
client_secret?: string | undefined;
|
|
7833
|
+
credential_probe?: {
|
|
7834
|
+
tool: string;
|
|
7835
|
+
args: Record<string, unknown>;
|
|
7836
|
+
interval_ms: number;
|
|
7837
|
+
timeout_ms: number;
|
|
7838
|
+
expect_contains?: string | undefined;
|
|
7839
|
+
reject_contains?: string | undefined;
|
|
7840
|
+
} | undefined;
|
|
7841
|
+
instructions?: string | undefined;
|
|
7842
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
5776
7843
|
headers?: Record<string, string> | undefined;
|
|
5777
7844
|
oauth_callback_url?: string | undefined;
|
|
7845
|
+
client_credentials?: {
|
|
7846
|
+
client_id: string;
|
|
7847
|
+
client_secret: string;
|
|
7848
|
+
token_url: string;
|
|
7849
|
+
scope?: string | undefined;
|
|
7850
|
+
} | undefined;
|
|
5778
7851
|
} | "builtin" | {
|
|
5779
7852
|
type: "builtin";
|
|
5780
7853
|
enabled: boolean;
|
|
7854
|
+
instructions?: string | undefined;
|
|
7855
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
5781
7856
|
}>;
|
|
5782
7857
|
value_sets: Record<string, {
|
|
5783
7858
|
values: [unknown, ...unknown[]];
|
|
@@ -5793,6 +7868,39 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5793
7868
|
ask: string[];
|
|
5794
7869
|
deny: string[];
|
|
5795
7870
|
extends: string[];
|
|
7871
|
+
tool_overrides: Record<string, {
|
|
7872
|
+
sandbox_presets: string[];
|
|
7873
|
+
description?: string | undefined;
|
|
7874
|
+
args?: Record<string, {
|
|
7875
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
7876
|
+
in?: string | undefined;
|
|
7877
|
+
required?: boolean | undefined;
|
|
7878
|
+
path?: string | undefined;
|
|
7879
|
+
expose_values?: boolean | undefined;
|
|
7880
|
+
allow?: unknown[] | undefined;
|
|
7881
|
+
equals?: unknown;
|
|
7882
|
+
glob_in?: string | undefined;
|
|
7883
|
+
each_in?: string | undefined;
|
|
7884
|
+
glob_allow?: string[] | undefined;
|
|
7885
|
+
each_allow?: unknown[] | undefined;
|
|
7886
|
+
label?: string | undefined;
|
|
7887
|
+
value_set?: string | undefined;
|
|
7888
|
+
}[]> | undefined;
|
|
7889
|
+
description_append?: string | undefined;
|
|
7890
|
+
alias_of?: string | undefined;
|
|
7891
|
+
sandbox?: {
|
|
7892
|
+
filesystem?: {
|
|
7893
|
+
allow_write: string[];
|
|
7894
|
+
deny_read: string[];
|
|
7895
|
+
deny_write: string[];
|
|
7896
|
+
allow_read?: string[] | undefined;
|
|
7897
|
+
} | undefined;
|
|
7898
|
+
network?: {
|
|
7899
|
+
allowed_domains: string[];
|
|
7900
|
+
denied_domains: string[];
|
|
7901
|
+
} | undefined;
|
|
7902
|
+
} | undefined;
|
|
7903
|
+
}>;
|
|
5796
7904
|
arg_policy?: Record<string, Record<string, {
|
|
5797
7905
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
5798
7906
|
in?: string | undefined;
|
|
@@ -5811,6 +7919,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5811
7919
|
arg_scope?: {
|
|
5812
7920
|
[k: string]: string[];
|
|
5813
7921
|
} | undefined;
|
|
7922
|
+
command_policy?: Record<string, Record<string, {
|
|
7923
|
+
allow: string[];
|
|
7924
|
+
ask: string[];
|
|
7925
|
+
deny: string[];
|
|
7926
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
7927
|
+
}>> | undefined;
|
|
5814
7928
|
}>;
|
|
5815
7929
|
clis: Record<string, {
|
|
5816
7930
|
max_output_bytes: number;
|
|
@@ -5833,9 +7947,10 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5833
7947
|
shell?: string | undefined;
|
|
5834
7948
|
}>;
|
|
5835
7949
|
apis: Record<string, {
|
|
5836
|
-
max_response_bytes: number;
|
|
5837
7950
|
timeout_ms: number;
|
|
7951
|
+
max_response_bytes: number;
|
|
5838
7952
|
spec: string;
|
|
7953
|
+
include?: string[] | undefined;
|
|
5839
7954
|
exclude?: string[] | undefined;
|
|
5840
7955
|
base_url?: string | undefined;
|
|
5841
7956
|
auth?: {
|
|
@@ -5846,15 +7961,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5846
7961
|
type: "header";
|
|
5847
7962
|
value: string;
|
|
5848
7963
|
} | undefined;
|
|
5849
|
-
include?: string[] | undefined;
|
|
5850
7964
|
}>;
|
|
5851
7965
|
agents: Record<string, {
|
|
5852
7966
|
http: {
|
|
7967
|
+
timeout_ms: number;
|
|
5853
7968
|
domain_allowlist: string[];
|
|
5854
7969
|
max_response_bytes: number;
|
|
5855
|
-
timeout_ms: number;
|
|
5856
7970
|
};
|
|
5857
7971
|
allow: string[];
|
|
7972
|
+
ask: string[];
|
|
7973
|
+
deny: string[];
|
|
5858
7974
|
sandbox: {
|
|
5859
7975
|
enabled: boolean;
|
|
5860
7976
|
filesystem: {
|
|
@@ -5881,9 +7997,8 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5881
7997
|
} | undefined;
|
|
5882
7998
|
}>;
|
|
5883
7999
|
};
|
|
5884
|
-
ask: string[];
|
|
5885
|
-
deny: string[];
|
|
5886
8000
|
extends: string[];
|
|
8001
|
+
inherit_default: boolean;
|
|
5887
8002
|
remember_allow: {
|
|
5888
8003
|
tool: string;
|
|
5889
8004
|
expires_at?: string | undefined;
|
|
@@ -5906,6 +8021,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5906
8021
|
label?: string | undefined;
|
|
5907
8022
|
value_set?: string | undefined;
|
|
5908
8023
|
}[]> | undefined;
|
|
8024
|
+
description_append?: string | undefined;
|
|
5909
8025
|
alias_of?: string | undefined;
|
|
5910
8026
|
sandbox?: {
|
|
5911
8027
|
filesystem?: {
|
|
@@ -5927,6 +8043,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5927
8043
|
deny: string[];
|
|
5928
8044
|
default_timeout_ms: number;
|
|
5929
8045
|
};
|
|
8046
|
+
expose_tools_api: boolean;
|
|
5930
8047
|
token?: string | undefined;
|
|
5931
8048
|
arg_policy?: Record<string, Record<string, {
|
|
5932
8049
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -5946,16 +8063,22 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5946
8063
|
arg_scope?: {
|
|
5947
8064
|
[k: string]: string[];
|
|
5948
8065
|
} | undefined;
|
|
8066
|
+
command_policy?: Record<string, Record<string, {
|
|
8067
|
+
allow: string[];
|
|
8068
|
+
ask: string[];
|
|
8069
|
+
deny: string[];
|
|
8070
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
8071
|
+
}>> | undefined;
|
|
5949
8072
|
middleware?: {
|
|
5950
8073
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
5951
8074
|
enabled: boolean;
|
|
5952
8075
|
model?: string | undefined;
|
|
5953
8076
|
tools?: string[] | undefined;
|
|
5954
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
5955
8077
|
exclude?: string[] | undefined;
|
|
5956
8078
|
max_requests?: number | undefined;
|
|
5957
8079
|
window_ms?: number | undefined;
|
|
5958
8080
|
per?: "tool" | "agent" | undefined;
|
|
8081
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
5959
8082
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
5960
8083
|
inference_url?: string | undefined;
|
|
5961
8084
|
threshold?: number | undefined;
|
|
@@ -5963,6 +8086,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5963
8086
|
max_chars?: number | undefined;
|
|
5964
8087
|
threshold_chars?: number | undefined;
|
|
5965
8088
|
}[] | undefined;
|
|
8089
|
+
limits?: {
|
|
8090
|
+
max_sessions_per_agent?: number | undefined;
|
|
8091
|
+
max_sessions_global?: number | undefined;
|
|
8092
|
+
session_idle_ms?: number | undefined;
|
|
8093
|
+
session_max_lifetime_ms?: number | undefined;
|
|
8094
|
+
new_session_max?: number | undefined;
|
|
8095
|
+
new_session_window_ms?: number | undefined;
|
|
8096
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
8097
|
+
call_execution_timeout_ms?: number | undefined;
|
|
8098
|
+
} | undefined;
|
|
5966
8099
|
}>;
|
|
5967
8100
|
approvals: {
|
|
5968
8101
|
timeout_ms: number;
|
|
@@ -6042,6 +8175,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6042
8175
|
security: {
|
|
6043
8176
|
blocked_hosts: string[];
|
|
6044
8177
|
allowed_local: string[];
|
|
8178
|
+
limits?: {
|
|
8179
|
+
max_sessions_per_agent?: number | undefined;
|
|
8180
|
+
max_sessions_global?: number | undefined;
|
|
8181
|
+
session_idle_ms?: number | undefined;
|
|
8182
|
+
session_max_lifetime_ms?: number | undefined;
|
|
8183
|
+
new_session_max?: number | undefined;
|
|
8184
|
+
new_session_window_ms?: number | undefined;
|
|
8185
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
8186
|
+
call_execution_timeout_ms?: number | undefined;
|
|
8187
|
+
} | undefined;
|
|
6045
8188
|
};
|
|
6046
8189
|
audit: {
|
|
6047
8190
|
db_path: string;
|
|
@@ -6057,20 +8200,21 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6057
8200
|
insecure_remote_bind: boolean;
|
|
6058
8201
|
api_secret?: string | undefined;
|
|
6059
8202
|
};
|
|
8203
|
+
auth_required: boolean;
|
|
6060
8204
|
port: number;
|
|
8205
|
+
expose_tools_api: "all" | "none" | "per-agent";
|
|
6061
8206
|
host: string;
|
|
6062
|
-
auth_required: boolean;
|
|
6063
8207
|
require_agent_tokens: boolean;
|
|
6064
8208
|
allowed_origins: string[];
|
|
6065
|
-
expose_tools_api: boolean;
|
|
6066
8209
|
api_secret?: string | undefined;
|
|
6067
8210
|
expose_hook_api?: boolean | undefined;
|
|
6068
8211
|
expose_management_api?: boolean | undefined;
|
|
6069
8212
|
};
|
|
6070
8213
|
lint: {
|
|
6071
|
-
disable: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref")[];
|
|
6072
|
-
severity: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref", "error" | "warn" | "info">>;
|
|
8214
|
+
disable: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow")[];
|
|
8215
|
+
severity: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow", "error" | "warn" | "info">>;
|
|
6073
8216
|
};
|
|
8217
|
+
default_profile?: string | undefined;
|
|
6074
8218
|
}, {
|
|
6075
8219
|
sandbox_presets?: Record<string, {
|
|
6076
8220
|
filesystem?: {
|
|
@@ -6087,13 +8231,33 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6087
8231
|
providers?: Record<string, {
|
|
6088
8232
|
type: "stdio";
|
|
6089
8233
|
command: string;
|
|
6090
|
-
enabled?: boolean | undefined;
|
|
6091
8234
|
args?: string[] | undefined;
|
|
8235
|
+
enabled?: boolean | undefined;
|
|
6092
8236
|
env?: Record<string, string> | undefined;
|
|
8237
|
+
credential_probe?: {
|
|
8238
|
+
tool: string;
|
|
8239
|
+
args?: Record<string, unknown> | undefined;
|
|
8240
|
+
expect_contains?: string | undefined;
|
|
8241
|
+
reject_contains?: string | undefined;
|
|
8242
|
+
interval_ms?: number | undefined;
|
|
8243
|
+
timeout_ms?: number | undefined;
|
|
8244
|
+
} | undefined;
|
|
8245
|
+
instructions?: string | undefined;
|
|
8246
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6093
8247
|
} | {
|
|
6094
8248
|
url: string;
|
|
6095
8249
|
type: "sse";
|
|
6096
8250
|
enabled?: boolean | undefined;
|
|
8251
|
+
credential_probe?: {
|
|
8252
|
+
tool: string;
|
|
8253
|
+
args?: Record<string, unknown> | undefined;
|
|
8254
|
+
expect_contains?: string | undefined;
|
|
8255
|
+
reject_contains?: string | undefined;
|
|
8256
|
+
interval_ms?: number | undefined;
|
|
8257
|
+
timeout_ms?: number | undefined;
|
|
8258
|
+
} | undefined;
|
|
8259
|
+
instructions?: string | undefined;
|
|
8260
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6097
8261
|
headers?: Record<string, string> | undefined;
|
|
6098
8262
|
} | {
|
|
6099
8263
|
url: string;
|
|
@@ -6102,12 +8266,31 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6102
8266
|
client_id?: string | undefined;
|
|
6103
8267
|
client_secret?: string | undefined;
|
|
6104
8268
|
enabled?: boolean | undefined;
|
|
8269
|
+
credential_probe?: {
|
|
8270
|
+
tool: string;
|
|
8271
|
+
args?: Record<string, unknown> | undefined;
|
|
8272
|
+
expect_contains?: string | undefined;
|
|
8273
|
+
reject_contains?: string | undefined;
|
|
8274
|
+
interval_ms?: number | undefined;
|
|
8275
|
+
timeout_ms?: number | undefined;
|
|
8276
|
+
} | undefined;
|
|
8277
|
+
instructions?: string | undefined;
|
|
8278
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6105
8279
|
headers?: Record<string, string> | undefined;
|
|
6106
8280
|
oauth_callback_port?: number | undefined;
|
|
6107
8281
|
oauth_callback_url?: string | undefined;
|
|
8282
|
+
client_credentials?: {
|
|
8283
|
+
client_id: string;
|
|
8284
|
+
client_secret: string;
|
|
8285
|
+
token_url: string;
|
|
8286
|
+
scope?: string | undefined;
|
|
8287
|
+
} | undefined;
|
|
8288
|
+
request_timeout_ms?: number | undefined;
|
|
6108
8289
|
} | "builtin" | {
|
|
6109
8290
|
type: "builtin";
|
|
6110
8291
|
enabled?: boolean | undefined;
|
|
8292
|
+
instructions?: string | undefined;
|
|
8293
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6111
8294
|
}> | undefined;
|
|
6112
8295
|
value_sets?: Record<string, [unknown, ...unknown[]] | {
|
|
6113
8296
|
values: [unknown, ...unknown[]];
|
|
@@ -6123,6 +8306,67 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6123
8306
|
ask?: string[] | undefined;
|
|
6124
8307
|
deny?: string[] | undefined;
|
|
6125
8308
|
extends?: string[] | undefined;
|
|
8309
|
+
tool_overrides?: Record<string, {
|
|
8310
|
+
description?: string | undefined;
|
|
8311
|
+
args?: Record<string, {
|
|
8312
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
8313
|
+
in?: string | undefined;
|
|
8314
|
+
required?: boolean | undefined;
|
|
8315
|
+
path?: string | undefined;
|
|
8316
|
+
expose_values?: boolean | undefined;
|
|
8317
|
+
allow?: unknown[] | undefined;
|
|
8318
|
+
equals?: unknown;
|
|
8319
|
+
glob_in?: string | undefined;
|
|
8320
|
+
each_in?: string | undefined;
|
|
8321
|
+
glob_allow?: string[] | undefined;
|
|
8322
|
+
each_allow?: unknown[] | undefined;
|
|
8323
|
+
label?: string | undefined;
|
|
8324
|
+
value_set?: string | undefined;
|
|
8325
|
+
} | [{
|
|
8326
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
8327
|
+
in?: string | undefined;
|
|
8328
|
+
required?: boolean | undefined;
|
|
8329
|
+
path?: string | undefined;
|
|
8330
|
+
expose_values?: boolean | undefined;
|
|
8331
|
+
allow?: unknown[] | undefined;
|
|
8332
|
+
equals?: unknown;
|
|
8333
|
+
glob_in?: string | undefined;
|
|
8334
|
+
each_in?: string | undefined;
|
|
8335
|
+
glob_allow?: string[] | undefined;
|
|
8336
|
+
each_allow?: unknown[] | undefined;
|
|
8337
|
+
label?: string | undefined;
|
|
8338
|
+
value_set?: string | undefined;
|
|
8339
|
+
}, ...{
|
|
8340
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
8341
|
+
in?: string | undefined;
|
|
8342
|
+
required?: boolean | undefined;
|
|
8343
|
+
path?: string | undefined;
|
|
8344
|
+
expose_values?: boolean | undefined;
|
|
8345
|
+
allow?: unknown[] | undefined;
|
|
8346
|
+
equals?: unknown;
|
|
8347
|
+
glob_in?: string | undefined;
|
|
8348
|
+
each_in?: string | undefined;
|
|
8349
|
+
glob_allow?: string[] | undefined;
|
|
8350
|
+
each_allow?: unknown[] | undefined;
|
|
8351
|
+
label?: string | undefined;
|
|
8352
|
+
value_set?: string | undefined;
|
|
8353
|
+
}[]]> | undefined;
|
|
8354
|
+
description_append?: string | undefined;
|
|
8355
|
+
alias_of?: string | undefined;
|
|
8356
|
+
sandbox_presets?: string | string[] | undefined;
|
|
8357
|
+
sandbox?: {
|
|
8358
|
+
filesystem?: {
|
|
8359
|
+
allow_write?: string[] | undefined;
|
|
8360
|
+
deny_read?: string[] | undefined;
|
|
8361
|
+
deny_write?: string[] | undefined;
|
|
8362
|
+
allow_read?: string[] | undefined;
|
|
8363
|
+
} | undefined;
|
|
8364
|
+
network?: {
|
|
8365
|
+
allowed_domains?: string[] | undefined;
|
|
8366
|
+
denied_domains?: string[] | undefined;
|
|
8367
|
+
} | undefined;
|
|
8368
|
+
} | undefined;
|
|
8369
|
+
}> | undefined;
|
|
6126
8370
|
arg_policy?: Record<string, Record<string, {
|
|
6127
8371
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
6128
8372
|
in?: string | undefined;
|
|
@@ -6167,7 +8411,14 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6167
8411
|
value_set?: string | undefined;
|
|
6168
8412
|
}[]]>> | undefined;
|
|
6169
8413
|
arg_scope?: Record<string, string | [string, ...string[]]> | undefined;
|
|
8414
|
+
command_policy?: Record<string, Record<string, {
|
|
8415
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
8416
|
+
allow?: string[] | undefined;
|
|
8417
|
+
ask?: string[] | undefined;
|
|
8418
|
+
deny?: string[] | undefined;
|
|
8419
|
+
}>> | undefined;
|
|
6170
8420
|
}> | undefined;
|
|
8421
|
+
default_profile?: string | undefined;
|
|
6171
8422
|
clis?: Record<string, {
|
|
6172
8423
|
cwd?: string | undefined;
|
|
6173
8424
|
discovered?: string | undefined;
|
|
@@ -6190,8 +8441,9 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6190
8441
|
}> | undefined;
|
|
6191
8442
|
apis?: Record<string, {
|
|
6192
8443
|
spec: string;
|
|
6193
|
-
|
|
8444
|
+
include?: string[] | undefined;
|
|
6194
8445
|
timeout_ms?: number | undefined;
|
|
8446
|
+
max_response_bytes?: number | undefined;
|
|
6195
8447
|
exclude?: string[] | undefined;
|
|
6196
8448
|
base_url?: string | undefined;
|
|
6197
8449
|
auth?: {
|
|
@@ -6202,15 +8454,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6202
8454
|
type: "header";
|
|
6203
8455
|
value: string;
|
|
6204
8456
|
} | undefined;
|
|
6205
|
-
include?: string[] | undefined;
|
|
6206
8457
|
}> | undefined;
|
|
6207
8458
|
agents?: Record<string, {
|
|
6208
8459
|
http?: {
|
|
8460
|
+
timeout_ms?: number | undefined;
|
|
6209
8461
|
domain_allowlist?: string[] | undefined;
|
|
6210
8462
|
max_response_bytes?: number | undefined;
|
|
6211
|
-
timeout_ms?: number | undefined;
|
|
6212
8463
|
} | undefined;
|
|
6213
8464
|
allow?: string[] | undefined;
|
|
8465
|
+
ask?: string[] | undefined;
|
|
8466
|
+
deny?: string[] | undefined;
|
|
6214
8467
|
sandbox?: {
|
|
6215
8468
|
enabled?: boolean | undefined;
|
|
6216
8469
|
filesystem?: {
|
|
@@ -6237,10 +8490,9 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6237
8490
|
} | undefined;
|
|
6238
8491
|
}> | undefined;
|
|
6239
8492
|
} | undefined;
|
|
6240
|
-
ask?: string[] | undefined;
|
|
6241
|
-
deny?: string[] | undefined;
|
|
6242
8493
|
token?: string | undefined;
|
|
6243
8494
|
extends?: string[] | undefined;
|
|
8495
|
+
inherit_default?: boolean | undefined;
|
|
6244
8496
|
remember_allow?: {
|
|
6245
8497
|
tool: string;
|
|
6246
8498
|
expires_at?: string | undefined;
|
|
@@ -6290,6 +8542,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6290
8542
|
label?: string | undefined;
|
|
6291
8543
|
value_set?: string | undefined;
|
|
6292
8544
|
}[]]> | undefined;
|
|
8545
|
+
description_append?: string | undefined;
|
|
6293
8546
|
alias_of?: string | undefined;
|
|
6294
8547
|
sandbox_presets?: string | string[] | undefined;
|
|
6295
8548
|
sandbox?: {
|
|
@@ -6349,6 +8602,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6349
8602
|
value_set?: string | undefined;
|
|
6350
8603
|
}[]]>> | undefined;
|
|
6351
8604
|
arg_scope?: Record<string, string | [string, ...string[]]> | undefined;
|
|
8605
|
+
command_policy?: Record<string, Record<string, {
|
|
8606
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
8607
|
+
allow?: string[] | undefined;
|
|
8608
|
+
ask?: string[] | undefined;
|
|
8609
|
+
deny?: string[] | undefined;
|
|
8610
|
+
}>> | undefined;
|
|
6352
8611
|
exec?: {
|
|
6353
8612
|
env?: Record<string, string> | undefined;
|
|
6354
8613
|
allow?: string[] | undefined;
|
|
@@ -6360,12 +8619,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6360
8619
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
6361
8620
|
model?: string | undefined;
|
|
6362
8621
|
tools?: string[] | undefined;
|
|
6363
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
6364
8622
|
enabled?: boolean | undefined;
|
|
6365
8623
|
exclude?: string[] | undefined;
|
|
6366
8624
|
max_requests?: number | undefined;
|
|
6367
8625
|
window_ms?: number | undefined;
|
|
6368
8626
|
per?: "tool" | "agent" | undefined;
|
|
8627
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
6369
8628
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
6370
8629
|
inference_url?: string | undefined;
|
|
6371
8630
|
threshold?: number | undefined;
|
|
@@ -6373,6 +8632,17 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6373
8632
|
max_chars?: number | undefined;
|
|
6374
8633
|
threshold_chars?: number | undefined;
|
|
6375
8634
|
}[] | undefined;
|
|
8635
|
+
expose_tools_api?: boolean | undefined;
|
|
8636
|
+
limits?: {
|
|
8637
|
+
max_sessions_per_agent?: number | undefined;
|
|
8638
|
+
max_sessions_global?: number | undefined;
|
|
8639
|
+
session_idle_ms?: number | undefined;
|
|
8640
|
+
session_max_lifetime_ms?: number | undefined;
|
|
8641
|
+
new_session_max?: number | undefined;
|
|
8642
|
+
new_session_window_ms?: number | undefined;
|
|
8643
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
8644
|
+
call_execution_timeout_ms?: number | undefined;
|
|
8645
|
+
} | undefined;
|
|
6376
8646
|
}> | undefined;
|
|
6377
8647
|
approvals?: {
|
|
6378
8648
|
timeout_ms?: number | undefined;
|
|
@@ -6450,6 +8720,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6450
8720
|
batch_window_ms?: number | undefined;
|
|
6451
8721
|
} | undefined;
|
|
6452
8722
|
security?: {
|
|
8723
|
+
limits?: {
|
|
8724
|
+
max_sessions_per_agent?: number | undefined;
|
|
8725
|
+
max_sessions_global?: number | undefined;
|
|
8726
|
+
session_idle_ms?: number | undefined;
|
|
8727
|
+
session_max_lifetime_ms?: number | undefined;
|
|
8728
|
+
new_session_max?: number | undefined;
|
|
8729
|
+
new_session_window_ms?: number | undefined;
|
|
8730
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
8731
|
+
call_execution_timeout_ms?: number | undefined;
|
|
8732
|
+
} | undefined;
|
|
6453
8733
|
blocked_hosts?: string[] | undefined;
|
|
6454
8734
|
allowed_local?: string[] | undefined;
|
|
6455
8735
|
} | undefined;
|
|
@@ -6459,14 +8739,14 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6459
8739
|
redact_fields?: string[] | undefined;
|
|
6460
8740
|
} | undefined;
|
|
6461
8741
|
server?: {
|
|
8742
|
+
auth_required?: boolean | undefined;
|
|
6462
8743
|
port?: number | undefined;
|
|
8744
|
+
expose_tools_api?: unknown;
|
|
6463
8745
|
host?: string | undefined;
|
|
6464
8746
|
api_secret?: string | undefined;
|
|
6465
8747
|
expose_hook_api?: boolean | undefined;
|
|
6466
|
-
auth_required?: boolean | undefined;
|
|
6467
8748
|
require_agent_tokens?: boolean | undefined;
|
|
6468
8749
|
allowed_origins?: string[] | undefined;
|
|
6469
|
-
expose_tools_api?: boolean | undefined;
|
|
6470
8750
|
management_api?: {
|
|
6471
8751
|
port?: number | undefined;
|
|
6472
8752
|
enabled?: boolean | undefined;
|
|
@@ -6478,18 +8758,20 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6478
8758
|
expose_management_api?: boolean | undefined;
|
|
6479
8759
|
} | undefined;
|
|
6480
8760
|
lint?: {
|
|
6481
|
-
disable?: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref")[] | undefined;
|
|
6482
|
-
severity?: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref", "error" | "warn" | "info">> | undefined;
|
|
8761
|
+
disable?: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow")[] | undefined;
|
|
8762
|
+
severity?: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow", "error" | "warn" | "info">> | undefined;
|
|
6483
8763
|
} | undefined;
|
|
6484
8764
|
}>, {
|
|
6485
8765
|
agents: {
|
|
6486
8766
|
[k: string]: {
|
|
6487
8767
|
http: {
|
|
8768
|
+
timeout_ms: number;
|
|
6488
8769
|
domain_allowlist: string[];
|
|
6489
8770
|
max_response_bytes: number;
|
|
6490
|
-
timeout_ms: number;
|
|
6491
8771
|
};
|
|
6492
8772
|
allow: string[];
|
|
8773
|
+
ask: string[];
|
|
8774
|
+
deny: string[];
|
|
6493
8775
|
sandbox: {
|
|
6494
8776
|
enabled: boolean;
|
|
6495
8777
|
filesystem: {
|
|
@@ -6516,9 +8798,8 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6516
8798
|
} | undefined;
|
|
6517
8799
|
}>;
|
|
6518
8800
|
};
|
|
6519
|
-
ask: string[];
|
|
6520
|
-
deny: string[];
|
|
6521
8801
|
extends: string[];
|
|
8802
|
+
inherit_default: boolean;
|
|
6522
8803
|
remember_allow: {
|
|
6523
8804
|
tool: string;
|
|
6524
8805
|
expires_at?: string | undefined;
|
|
@@ -6541,6 +8822,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6541
8822
|
label?: string | undefined;
|
|
6542
8823
|
value_set?: string | undefined;
|
|
6543
8824
|
}[]> | undefined;
|
|
8825
|
+
description_append?: string | undefined;
|
|
6544
8826
|
alias_of?: string | undefined;
|
|
6545
8827
|
sandbox?: {
|
|
6546
8828
|
filesystem?: {
|
|
@@ -6562,6 +8844,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6562
8844
|
deny: string[];
|
|
6563
8845
|
default_timeout_ms: number;
|
|
6564
8846
|
};
|
|
8847
|
+
expose_tools_api: boolean;
|
|
6565
8848
|
token?: string | undefined;
|
|
6566
8849
|
arg_policy?: Record<string, Record<string, {
|
|
6567
8850
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -6581,16 +8864,22 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6581
8864
|
arg_scope?: {
|
|
6582
8865
|
[k: string]: string[];
|
|
6583
8866
|
} | undefined;
|
|
8867
|
+
command_policy?: Record<string, Record<string, {
|
|
8868
|
+
allow: string[];
|
|
8869
|
+
ask: string[];
|
|
8870
|
+
deny: string[];
|
|
8871
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
8872
|
+
}>> | undefined;
|
|
6584
8873
|
middleware?: {
|
|
6585
8874
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
6586
8875
|
enabled: boolean;
|
|
6587
8876
|
model?: string | undefined;
|
|
6588
8877
|
tools?: string[] | undefined;
|
|
6589
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
6590
8878
|
exclude?: string[] | undefined;
|
|
6591
8879
|
max_requests?: number | undefined;
|
|
6592
8880
|
window_ms?: number | undefined;
|
|
6593
8881
|
per?: "tool" | "agent" | undefined;
|
|
8882
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
6594
8883
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
6595
8884
|
inference_url?: string | undefined;
|
|
6596
8885
|
threshold?: number | undefined;
|
|
@@ -6598,6 +8887,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6598
8887
|
max_chars?: number | undefined;
|
|
6599
8888
|
threshold_chars?: number | undefined;
|
|
6600
8889
|
}[] | undefined;
|
|
8890
|
+
limits?: {
|
|
8891
|
+
max_sessions_per_agent?: number | undefined;
|
|
8892
|
+
max_sessions_global?: number | undefined;
|
|
8893
|
+
session_idle_ms?: number | undefined;
|
|
8894
|
+
session_max_lifetime_ms?: number | undefined;
|
|
8895
|
+
new_session_max?: number | undefined;
|
|
8896
|
+
new_session_window_ms?: number | undefined;
|
|
8897
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
8898
|
+
call_execution_timeout_ms?: number | undefined;
|
|
8899
|
+
} | undefined;
|
|
6601
8900
|
};
|
|
6602
8901
|
};
|
|
6603
8902
|
sandbox_presets: Record<string, {
|
|
@@ -6614,14 +8913,34 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6614
8913
|
}>;
|
|
6615
8914
|
providers: Record<string, {
|
|
6616
8915
|
type: "stdio";
|
|
8916
|
+
args: string[];
|
|
6617
8917
|
enabled: boolean;
|
|
6618
8918
|
command: string;
|
|
6619
|
-
args: string[];
|
|
6620
8919
|
env?: Record<string, string> | undefined;
|
|
8920
|
+
credential_probe?: {
|
|
8921
|
+
tool: string;
|
|
8922
|
+
args: Record<string, unknown>;
|
|
8923
|
+
interval_ms: number;
|
|
8924
|
+
timeout_ms: number;
|
|
8925
|
+
expect_contains?: string | undefined;
|
|
8926
|
+
reject_contains?: string | undefined;
|
|
8927
|
+
} | undefined;
|
|
8928
|
+
instructions?: string | undefined;
|
|
8929
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6621
8930
|
} | {
|
|
6622
8931
|
url: string;
|
|
6623
8932
|
type: "sse";
|
|
6624
8933
|
enabled: boolean;
|
|
8934
|
+
credential_probe?: {
|
|
8935
|
+
tool: string;
|
|
8936
|
+
args: Record<string, unknown>;
|
|
8937
|
+
interval_ms: number;
|
|
8938
|
+
timeout_ms: number;
|
|
8939
|
+
expect_contains?: string | undefined;
|
|
8940
|
+
reject_contains?: string | undefined;
|
|
8941
|
+
} | undefined;
|
|
8942
|
+
instructions?: string | undefined;
|
|
8943
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6625
8944
|
headers?: Record<string, string> | undefined;
|
|
6626
8945
|
} | {
|
|
6627
8946
|
url: string;
|
|
@@ -6629,13 +8948,32 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6629
8948
|
oauth: boolean;
|
|
6630
8949
|
enabled: boolean;
|
|
6631
8950
|
oauth_callback_port: number;
|
|
8951
|
+
request_timeout_ms: number;
|
|
6632
8952
|
client_id?: string | undefined;
|
|
6633
8953
|
client_secret?: string | undefined;
|
|
8954
|
+
credential_probe?: {
|
|
8955
|
+
tool: string;
|
|
8956
|
+
args: Record<string, unknown>;
|
|
8957
|
+
interval_ms: number;
|
|
8958
|
+
timeout_ms: number;
|
|
8959
|
+
expect_contains?: string | undefined;
|
|
8960
|
+
reject_contains?: string | undefined;
|
|
8961
|
+
} | undefined;
|
|
8962
|
+
instructions?: string | undefined;
|
|
8963
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6634
8964
|
headers?: Record<string, string> | undefined;
|
|
6635
8965
|
oauth_callback_url?: string | undefined;
|
|
8966
|
+
client_credentials?: {
|
|
8967
|
+
client_id: string;
|
|
8968
|
+
client_secret: string;
|
|
8969
|
+
token_url: string;
|
|
8970
|
+
scope?: string | undefined;
|
|
8971
|
+
} | undefined;
|
|
6636
8972
|
} | "builtin" | {
|
|
6637
8973
|
type: "builtin";
|
|
6638
8974
|
enabled: boolean;
|
|
8975
|
+
instructions?: string | undefined;
|
|
8976
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6639
8977
|
}>;
|
|
6640
8978
|
value_sets: Record<string, {
|
|
6641
8979
|
values: [unknown, ...unknown[]];
|
|
@@ -6651,6 +8989,39 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6651
8989
|
ask: string[];
|
|
6652
8990
|
deny: string[];
|
|
6653
8991
|
extends: string[];
|
|
8992
|
+
tool_overrides: Record<string, {
|
|
8993
|
+
sandbox_presets: string[];
|
|
8994
|
+
description?: string | undefined;
|
|
8995
|
+
args?: Record<string, {
|
|
8996
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
8997
|
+
in?: string | undefined;
|
|
8998
|
+
required?: boolean | undefined;
|
|
8999
|
+
path?: string | undefined;
|
|
9000
|
+
expose_values?: boolean | undefined;
|
|
9001
|
+
allow?: unknown[] | undefined;
|
|
9002
|
+
equals?: unknown;
|
|
9003
|
+
glob_in?: string | undefined;
|
|
9004
|
+
each_in?: string | undefined;
|
|
9005
|
+
glob_allow?: string[] | undefined;
|
|
9006
|
+
each_allow?: unknown[] | undefined;
|
|
9007
|
+
label?: string | undefined;
|
|
9008
|
+
value_set?: string | undefined;
|
|
9009
|
+
}[]> | undefined;
|
|
9010
|
+
description_append?: string | undefined;
|
|
9011
|
+
alias_of?: string | undefined;
|
|
9012
|
+
sandbox?: {
|
|
9013
|
+
filesystem?: {
|
|
9014
|
+
allow_write: string[];
|
|
9015
|
+
deny_read: string[];
|
|
9016
|
+
deny_write: string[];
|
|
9017
|
+
allow_read?: string[] | undefined;
|
|
9018
|
+
} | undefined;
|
|
9019
|
+
network?: {
|
|
9020
|
+
allowed_domains: string[];
|
|
9021
|
+
denied_domains: string[];
|
|
9022
|
+
} | undefined;
|
|
9023
|
+
} | undefined;
|
|
9024
|
+
}>;
|
|
6654
9025
|
arg_policy?: Record<string, Record<string, {
|
|
6655
9026
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
6656
9027
|
in?: string | undefined;
|
|
@@ -6669,6 +9040,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6669
9040
|
arg_scope?: {
|
|
6670
9041
|
[k: string]: string[];
|
|
6671
9042
|
} | undefined;
|
|
9043
|
+
command_policy?: Record<string, Record<string, {
|
|
9044
|
+
allow: string[];
|
|
9045
|
+
ask: string[];
|
|
9046
|
+
deny: string[];
|
|
9047
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
9048
|
+
}>> | undefined;
|
|
6672
9049
|
}>;
|
|
6673
9050
|
clis: Record<string, {
|
|
6674
9051
|
max_output_bytes: number;
|
|
@@ -6691,9 +9068,10 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6691
9068
|
shell?: string | undefined;
|
|
6692
9069
|
}>;
|
|
6693
9070
|
apis: Record<string, {
|
|
6694
|
-
max_response_bytes: number;
|
|
6695
9071
|
timeout_ms: number;
|
|
9072
|
+
max_response_bytes: number;
|
|
6696
9073
|
spec: string;
|
|
9074
|
+
include?: string[] | undefined;
|
|
6697
9075
|
exclude?: string[] | undefined;
|
|
6698
9076
|
base_url?: string | undefined;
|
|
6699
9077
|
auth?: {
|
|
@@ -6704,7 +9082,6 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6704
9082
|
type: "header";
|
|
6705
9083
|
value: string;
|
|
6706
9084
|
} | undefined;
|
|
6707
|
-
include?: string[] | undefined;
|
|
6708
9085
|
}>;
|
|
6709
9086
|
approvals: {
|
|
6710
9087
|
timeout_ms: number;
|
|
@@ -6784,6 +9161,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6784
9161
|
security: {
|
|
6785
9162
|
blocked_hosts: string[];
|
|
6786
9163
|
allowed_local: string[];
|
|
9164
|
+
limits?: {
|
|
9165
|
+
max_sessions_per_agent?: number | undefined;
|
|
9166
|
+
max_sessions_global?: number | undefined;
|
|
9167
|
+
session_idle_ms?: number | undefined;
|
|
9168
|
+
session_max_lifetime_ms?: number | undefined;
|
|
9169
|
+
new_session_max?: number | undefined;
|
|
9170
|
+
new_session_window_ms?: number | undefined;
|
|
9171
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
9172
|
+
call_execution_timeout_ms?: number | undefined;
|
|
9173
|
+
} | undefined;
|
|
6787
9174
|
};
|
|
6788
9175
|
audit: {
|
|
6789
9176
|
db_path: string;
|
|
@@ -6799,20 +9186,21 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6799
9186
|
insecure_remote_bind: boolean;
|
|
6800
9187
|
api_secret?: string | undefined;
|
|
6801
9188
|
};
|
|
9189
|
+
auth_required: boolean;
|
|
6802
9190
|
port: number;
|
|
9191
|
+
expose_tools_api: "all" | "none" | "per-agent";
|
|
6803
9192
|
host: string;
|
|
6804
|
-
auth_required: boolean;
|
|
6805
9193
|
require_agent_tokens: boolean;
|
|
6806
9194
|
allowed_origins: string[];
|
|
6807
|
-
expose_tools_api: boolean;
|
|
6808
9195
|
api_secret?: string | undefined;
|
|
6809
9196
|
expose_hook_api?: boolean | undefined;
|
|
6810
9197
|
expose_management_api?: boolean | undefined;
|
|
6811
9198
|
};
|
|
6812
9199
|
lint: {
|
|
6813
|
-
disable: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref")[];
|
|
6814
|
-
severity: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref", "error" | "warn" | "info">>;
|
|
9200
|
+
disable: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow")[];
|
|
9201
|
+
severity: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow", "error" | "warn" | "info">>;
|
|
6815
9202
|
};
|
|
9203
|
+
default_profile?: string | undefined;
|
|
6816
9204
|
}, {
|
|
6817
9205
|
sandbox_presets?: Record<string, {
|
|
6818
9206
|
filesystem?: {
|
|
@@ -6829,13 +9217,33 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6829
9217
|
providers?: Record<string, {
|
|
6830
9218
|
type: "stdio";
|
|
6831
9219
|
command: string;
|
|
6832
|
-
enabled?: boolean | undefined;
|
|
6833
9220
|
args?: string[] | undefined;
|
|
9221
|
+
enabled?: boolean | undefined;
|
|
6834
9222
|
env?: Record<string, string> | undefined;
|
|
9223
|
+
credential_probe?: {
|
|
9224
|
+
tool: string;
|
|
9225
|
+
args?: Record<string, unknown> | undefined;
|
|
9226
|
+
expect_contains?: string | undefined;
|
|
9227
|
+
reject_contains?: string | undefined;
|
|
9228
|
+
interval_ms?: number | undefined;
|
|
9229
|
+
timeout_ms?: number | undefined;
|
|
9230
|
+
} | undefined;
|
|
9231
|
+
instructions?: string | undefined;
|
|
9232
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6835
9233
|
} | {
|
|
6836
9234
|
url: string;
|
|
6837
9235
|
type: "sse";
|
|
6838
9236
|
enabled?: boolean | undefined;
|
|
9237
|
+
credential_probe?: {
|
|
9238
|
+
tool: string;
|
|
9239
|
+
args?: Record<string, unknown> | undefined;
|
|
9240
|
+
expect_contains?: string | undefined;
|
|
9241
|
+
reject_contains?: string | undefined;
|
|
9242
|
+
interval_ms?: number | undefined;
|
|
9243
|
+
timeout_ms?: number | undefined;
|
|
9244
|
+
} | undefined;
|
|
9245
|
+
instructions?: string | undefined;
|
|
9246
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6839
9247
|
headers?: Record<string, string> | undefined;
|
|
6840
9248
|
} | {
|
|
6841
9249
|
url: string;
|
|
@@ -6844,12 +9252,31 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6844
9252
|
client_id?: string | undefined;
|
|
6845
9253
|
client_secret?: string | undefined;
|
|
6846
9254
|
enabled?: boolean | undefined;
|
|
9255
|
+
credential_probe?: {
|
|
9256
|
+
tool: string;
|
|
9257
|
+
args?: Record<string, unknown> | undefined;
|
|
9258
|
+
expect_contains?: string | undefined;
|
|
9259
|
+
reject_contains?: string | undefined;
|
|
9260
|
+
interval_ms?: number | undefined;
|
|
9261
|
+
timeout_ms?: number | undefined;
|
|
9262
|
+
} | undefined;
|
|
9263
|
+
instructions?: string | undefined;
|
|
9264
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6847
9265
|
headers?: Record<string, string> | undefined;
|
|
6848
9266
|
oauth_callback_port?: number | undefined;
|
|
6849
9267
|
oauth_callback_url?: string | undefined;
|
|
9268
|
+
client_credentials?: {
|
|
9269
|
+
client_id: string;
|
|
9270
|
+
client_secret: string;
|
|
9271
|
+
token_url: string;
|
|
9272
|
+
scope?: string | undefined;
|
|
9273
|
+
} | undefined;
|
|
9274
|
+
request_timeout_ms?: number | undefined;
|
|
6850
9275
|
} | "builtin" | {
|
|
6851
9276
|
type: "builtin";
|
|
6852
9277
|
enabled?: boolean | undefined;
|
|
9278
|
+
instructions?: string | undefined;
|
|
9279
|
+
upstream_instructions?: "ignore" | "include" | undefined;
|
|
6853
9280
|
}> | undefined;
|
|
6854
9281
|
value_sets?: Record<string, [unknown, ...unknown[]] | {
|
|
6855
9282
|
values: [unknown, ...unknown[]];
|
|
@@ -6865,6 +9292,67 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6865
9292
|
ask?: string[] | undefined;
|
|
6866
9293
|
deny?: string[] | undefined;
|
|
6867
9294
|
extends?: string[] | undefined;
|
|
9295
|
+
tool_overrides?: Record<string, {
|
|
9296
|
+
description?: string | undefined;
|
|
9297
|
+
args?: Record<string, {
|
|
9298
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
9299
|
+
in?: string | undefined;
|
|
9300
|
+
required?: boolean | undefined;
|
|
9301
|
+
path?: string | undefined;
|
|
9302
|
+
expose_values?: boolean | undefined;
|
|
9303
|
+
allow?: unknown[] | undefined;
|
|
9304
|
+
equals?: unknown;
|
|
9305
|
+
glob_in?: string | undefined;
|
|
9306
|
+
each_in?: string | undefined;
|
|
9307
|
+
glob_allow?: string[] | undefined;
|
|
9308
|
+
each_allow?: unknown[] | undefined;
|
|
9309
|
+
label?: string | undefined;
|
|
9310
|
+
value_set?: string | undefined;
|
|
9311
|
+
} | [{
|
|
9312
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
9313
|
+
in?: string | undefined;
|
|
9314
|
+
required?: boolean | undefined;
|
|
9315
|
+
path?: string | undefined;
|
|
9316
|
+
expose_values?: boolean | undefined;
|
|
9317
|
+
allow?: unknown[] | undefined;
|
|
9318
|
+
equals?: unknown;
|
|
9319
|
+
glob_in?: string | undefined;
|
|
9320
|
+
each_in?: string | undefined;
|
|
9321
|
+
glob_allow?: string[] | undefined;
|
|
9322
|
+
each_allow?: unknown[] | undefined;
|
|
9323
|
+
label?: string | undefined;
|
|
9324
|
+
value_set?: string | undefined;
|
|
9325
|
+
}, ...{
|
|
9326
|
+
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
9327
|
+
in?: string | undefined;
|
|
9328
|
+
required?: boolean | undefined;
|
|
9329
|
+
path?: string | undefined;
|
|
9330
|
+
expose_values?: boolean | undefined;
|
|
9331
|
+
allow?: unknown[] | undefined;
|
|
9332
|
+
equals?: unknown;
|
|
9333
|
+
glob_in?: string | undefined;
|
|
9334
|
+
each_in?: string | undefined;
|
|
9335
|
+
glob_allow?: string[] | undefined;
|
|
9336
|
+
each_allow?: unknown[] | undefined;
|
|
9337
|
+
label?: string | undefined;
|
|
9338
|
+
value_set?: string | undefined;
|
|
9339
|
+
}[]]> | undefined;
|
|
9340
|
+
description_append?: string | undefined;
|
|
9341
|
+
alias_of?: string | undefined;
|
|
9342
|
+
sandbox_presets?: string | string[] | undefined;
|
|
9343
|
+
sandbox?: {
|
|
9344
|
+
filesystem?: {
|
|
9345
|
+
allow_write?: string[] | undefined;
|
|
9346
|
+
deny_read?: string[] | undefined;
|
|
9347
|
+
deny_write?: string[] | undefined;
|
|
9348
|
+
allow_read?: string[] | undefined;
|
|
9349
|
+
} | undefined;
|
|
9350
|
+
network?: {
|
|
9351
|
+
allowed_domains?: string[] | undefined;
|
|
9352
|
+
denied_domains?: string[] | undefined;
|
|
9353
|
+
} | undefined;
|
|
9354
|
+
} | undefined;
|
|
9355
|
+
}> | undefined;
|
|
6868
9356
|
arg_policy?: Record<string, Record<string, {
|
|
6869
9357
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
6870
9358
|
in?: string | undefined;
|
|
@@ -6909,7 +9397,14 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6909
9397
|
value_set?: string | undefined;
|
|
6910
9398
|
}[]]>> | undefined;
|
|
6911
9399
|
arg_scope?: Record<string, string | [string, ...string[]]> | undefined;
|
|
9400
|
+
command_policy?: Record<string, Record<string, {
|
|
9401
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
9402
|
+
allow?: string[] | undefined;
|
|
9403
|
+
ask?: string[] | undefined;
|
|
9404
|
+
deny?: string[] | undefined;
|
|
9405
|
+
}>> | undefined;
|
|
6912
9406
|
}> | undefined;
|
|
9407
|
+
default_profile?: string | undefined;
|
|
6913
9408
|
clis?: Record<string, {
|
|
6914
9409
|
cwd?: string | undefined;
|
|
6915
9410
|
discovered?: string | undefined;
|
|
@@ -6932,8 +9427,9 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6932
9427
|
}> | undefined;
|
|
6933
9428
|
apis?: Record<string, {
|
|
6934
9429
|
spec: string;
|
|
6935
|
-
|
|
9430
|
+
include?: string[] | undefined;
|
|
6936
9431
|
timeout_ms?: number | undefined;
|
|
9432
|
+
max_response_bytes?: number | undefined;
|
|
6937
9433
|
exclude?: string[] | undefined;
|
|
6938
9434
|
base_url?: string | undefined;
|
|
6939
9435
|
auth?: {
|
|
@@ -6944,15 +9440,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6944
9440
|
type: "header";
|
|
6945
9441
|
value: string;
|
|
6946
9442
|
} | undefined;
|
|
6947
|
-
include?: string[] | undefined;
|
|
6948
9443
|
}> | undefined;
|
|
6949
9444
|
agents?: Record<string, {
|
|
6950
9445
|
http?: {
|
|
9446
|
+
timeout_ms?: number | undefined;
|
|
6951
9447
|
domain_allowlist?: string[] | undefined;
|
|
6952
9448
|
max_response_bytes?: number | undefined;
|
|
6953
|
-
timeout_ms?: number | undefined;
|
|
6954
9449
|
} | undefined;
|
|
6955
9450
|
allow?: string[] | undefined;
|
|
9451
|
+
ask?: string[] | undefined;
|
|
9452
|
+
deny?: string[] | undefined;
|
|
6956
9453
|
sandbox?: {
|
|
6957
9454
|
enabled?: boolean | undefined;
|
|
6958
9455
|
filesystem?: {
|
|
@@ -6979,10 +9476,9 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6979
9476
|
} | undefined;
|
|
6980
9477
|
}> | undefined;
|
|
6981
9478
|
} | undefined;
|
|
6982
|
-
ask?: string[] | undefined;
|
|
6983
|
-
deny?: string[] | undefined;
|
|
6984
9479
|
token?: string | undefined;
|
|
6985
9480
|
extends?: string[] | undefined;
|
|
9481
|
+
inherit_default?: boolean | undefined;
|
|
6986
9482
|
remember_allow?: {
|
|
6987
9483
|
tool: string;
|
|
6988
9484
|
expires_at?: string | undefined;
|
|
@@ -7032,6 +9528,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7032
9528
|
label?: string | undefined;
|
|
7033
9529
|
value_set?: string | undefined;
|
|
7034
9530
|
}[]]> | undefined;
|
|
9531
|
+
description_append?: string | undefined;
|
|
7035
9532
|
alias_of?: string | undefined;
|
|
7036
9533
|
sandbox_presets?: string | string[] | undefined;
|
|
7037
9534
|
sandbox?: {
|
|
@@ -7091,6 +9588,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7091
9588
|
value_set?: string | undefined;
|
|
7092
9589
|
}[]]>> | undefined;
|
|
7093
9590
|
arg_scope?: Record<string, string | [string, ...string[]]> | undefined;
|
|
9591
|
+
command_policy?: Record<string, Record<string, {
|
|
9592
|
+
default?: "allow" | "ask" | "deny" | undefined;
|
|
9593
|
+
allow?: string[] | undefined;
|
|
9594
|
+
ask?: string[] | undefined;
|
|
9595
|
+
deny?: string[] | undefined;
|
|
9596
|
+
}>> | undefined;
|
|
7094
9597
|
exec?: {
|
|
7095
9598
|
env?: Record<string, string> | undefined;
|
|
7096
9599
|
allow?: string[] | undefined;
|
|
@@ -7102,12 +9605,12 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7102
9605
|
name: "schema-validator" | "rate-limiter" | "untrusted-envelope" | "strip-query-params" | "output-injection-detector" | "canary-token-injector" | "output-size-limiter" | "output-summarizer" | "injection-detector" | "sensitivity-classifier";
|
|
7103
9606
|
model?: string | undefined;
|
|
7104
9607
|
tools?: string[] | undefined;
|
|
7105
|
-
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
7106
9608
|
enabled?: boolean | undefined;
|
|
7107
9609
|
exclude?: string[] | undefined;
|
|
7108
9610
|
max_requests?: number | undefined;
|
|
7109
9611
|
window_ms?: number | undefined;
|
|
7110
9612
|
per?: "tool" | "agent" | undefined;
|
|
9613
|
+
mode?: "detect" | "mangle" | "escalate" | undefined;
|
|
7111
9614
|
backend?: "regex" | "deberta" | "heuristic" | "llm" | undefined;
|
|
7112
9615
|
inference_url?: string | undefined;
|
|
7113
9616
|
threshold?: number | undefined;
|
|
@@ -7115,6 +9618,17 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7115
9618
|
max_chars?: number | undefined;
|
|
7116
9619
|
threshold_chars?: number | undefined;
|
|
7117
9620
|
}[] | undefined;
|
|
9621
|
+
expose_tools_api?: boolean | undefined;
|
|
9622
|
+
limits?: {
|
|
9623
|
+
max_sessions_per_agent?: number | undefined;
|
|
9624
|
+
max_sessions_global?: number | undefined;
|
|
9625
|
+
session_idle_ms?: number | undefined;
|
|
9626
|
+
session_max_lifetime_ms?: number | undefined;
|
|
9627
|
+
new_session_max?: number | undefined;
|
|
9628
|
+
new_session_window_ms?: number | undefined;
|
|
9629
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
9630
|
+
call_execution_timeout_ms?: number | undefined;
|
|
9631
|
+
} | undefined;
|
|
7118
9632
|
}> | undefined;
|
|
7119
9633
|
approvals?: {
|
|
7120
9634
|
timeout_ms?: number | undefined;
|
|
@@ -7192,6 +9706,16 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7192
9706
|
batch_window_ms?: number | undefined;
|
|
7193
9707
|
} | undefined;
|
|
7194
9708
|
security?: {
|
|
9709
|
+
limits?: {
|
|
9710
|
+
max_sessions_per_agent?: number | undefined;
|
|
9711
|
+
max_sessions_global?: number | undefined;
|
|
9712
|
+
session_idle_ms?: number | undefined;
|
|
9713
|
+
session_max_lifetime_ms?: number | undefined;
|
|
9714
|
+
new_session_max?: number | undefined;
|
|
9715
|
+
new_session_window_ms?: number | undefined;
|
|
9716
|
+
max_concurrent_calls_per_agent?: number | undefined;
|
|
9717
|
+
call_execution_timeout_ms?: number | undefined;
|
|
9718
|
+
} | undefined;
|
|
7195
9719
|
blocked_hosts?: string[] | undefined;
|
|
7196
9720
|
allowed_local?: string[] | undefined;
|
|
7197
9721
|
} | undefined;
|
|
@@ -7201,14 +9725,14 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7201
9725
|
redact_fields?: string[] | undefined;
|
|
7202
9726
|
} | undefined;
|
|
7203
9727
|
server?: {
|
|
9728
|
+
auth_required?: boolean | undefined;
|
|
7204
9729
|
port?: number | undefined;
|
|
9730
|
+
expose_tools_api?: unknown;
|
|
7205
9731
|
host?: string | undefined;
|
|
7206
9732
|
api_secret?: string | undefined;
|
|
7207
9733
|
expose_hook_api?: boolean | undefined;
|
|
7208
|
-
auth_required?: boolean | undefined;
|
|
7209
9734
|
require_agent_tokens?: boolean | undefined;
|
|
7210
9735
|
allowed_origins?: string[] | undefined;
|
|
7211
|
-
expose_tools_api?: boolean | undefined;
|
|
7212
9736
|
management_api?: {
|
|
7213
9737
|
port?: number | undefined;
|
|
7214
9738
|
enabled?: boolean | undefined;
|
|
@@ -7220,8 +9744,8 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7220
9744
|
expose_management_api?: boolean | undefined;
|
|
7221
9745
|
} | undefined;
|
|
7222
9746
|
lint?: {
|
|
7223
|
-
disable?: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref")[] | undefined;
|
|
7224
|
-
severity?: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref", "error" | "warn" | "info">> | undefined;
|
|
9747
|
+
disable?: ("dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow")[] | undefined;
|
|
9748
|
+
severity?: Partial<Record<"dead-deny" | "unused-profile" | "unused-value-set" | "unused-dimension" | "empty-agent" | "missing-env-ref" | "unresolvable-ref" | "unallocated-tool" | "dead-allow", "error" | "warn" | "info">> | undefined;
|
|
7225
9749
|
} | undefined;
|
|
7226
9750
|
}>;
|
|
7227
9751
|
export type GatewayConfig = z.infer<typeof GatewayConfig>;
|