airlock-bot 0.3.0 → 0.3.2
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/dist/airlock/tools.d.ts +10 -2
- package/dist/airlock/tools.d.ts.map +1 -1
- package/dist/airlock/tools.js +17 -0
- package/dist/airlock/tools.js.map +1 -1
- package/dist/allowlist/engine.d.ts.map +1 -1
- package/dist/allowlist/engine.js +15 -0
- package/dist/allowlist/engine.js.map +1 -1
- package/dist/audit/db.d.ts +22 -0
- package/dist/audit/db.d.ts.map +1 -1
- package/dist/audit/db.js +68 -3
- package/dist/audit/db.js.map +1 -1
- package/dist/audit/logger.d.ts +7 -1
- package/dist/audit/logger.d.ts.map +1 -1
- package/dist/audit/logger.js +18 -0
- package/dist/audit/logger.js.map +1 -1
- package/dist/backend/airlock-adapter.d.ts +10 -1
- package/dist/backend/airlock-adapter.d.ts.map +1 -1
- package/dist/backend/airlock-adapter.js +230 -10
- package/dist/backend/airlock-adapter.js.map +1 -1
- package/dist/backend/factory.d.ts.map +1 -1
- package/dist/backend/factory.js +6 -0
- package/dist/backend/factory.js.map +1 -1
- package/dist/config/schema.d.ts +606 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +70 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/configure-web/cli.d.ts.map +1 -1
- package/dist/configure-web/cli.js +85 -1
- package/dist/configure-web/cli.js.map +1 -1
- package/dist/gateway.d.ts +1 -0
- package/dist/gateway.d.ts.map +1 -1
- package/dist/gateway.js +23 -10
- package/dist/gateway.js.map +1 -1
- package/dist/hitl/api.d.ts.map +1 -1
- package/dist/hitl/api.js +9 -2
- package/dist/hitl/api.js.map +1 -1
- package/dist/hitl/approval-dashboard.d.ts +5 -1
- package/dist/hitl/approval-dashboard.d.ts.map +1 -1
- package/dist/hitl/approval-dashboard.js +72 -6
- package/dist/hitl/approval-dashboard.js.map +1 -1
- package/dist/hitl/approval-stream.d.ts.map +1 -1
- package/dist/hitl/approval-stream.js +1 -0
- package/dist/hitl/approval-stream.js.map +1 -1
- package/dist/hitl/engine.d.ts +149 -4
- package/dist/hitl/engine.d.ts.map +1 -1
- package/dist/hitl/engine.js +559 -93
- package/dist/hitl/engine.js.map +1 -1
- package/dist/hitl/formatter.d.ts.map +1 -1
- package/dist/hitl/formatter.js +55 -9
- package/dist/hitl/formatter.js.map +1 -1
- package/dist/hitl/grant-api.d.ts +32 -0
- package/dist/hitl/grant-api.d.ts.map +1 -0
- package/dist/hitl/grant-api.js +249 -0
- package/dist/hitl/grant-api.js.map +1 -0
- package/dist/hitl/grants.d.ts +146 -0
- package/dist/hitl/grants.d.ts.map +1 -0
- package/dist/hitl/grants.js +252 -0
- package/dist/hitl/grants.js.map +1 -0
- package/dist/hitl/parser.d.ts +9 -0
- package/dist/hitl/parser.d.ts.map +1 -1
- package/dist/hitl/parser.js +56 -4
- package/dist/hitl/parser.js.map +1 -1
- package/dist/hitl/preview.d.ts +41 -0
- package/dist/hitl/preview.d.ts.map +1 -0
- package/dist/hitl/preview.js +235 -0
- package/dist/hitl/preview.js.map +1 -0
- package/dist/hitl/provider-factory.d.ts +2 -0
- package/dist/hitl/provider-factory.d.ts.map +1 -1
- package/dist/hitl/provider-factory.js +1 -1
- package/dist/hitl/provider-factory.js.map +1 -1
- package/dist/hitl/providers/dashboard.d.ts +3 -1
- package/dist/hitl/providers/dashboard.d.ts.map +1 -1
- package/dist/hitl/providers/dashboard.js +4 -2
- package/dist/hitl/providers/dashboard.js.map +1 -1
- package/dist/hitl/providers/ios.d.ts.map +1 -1
- package/dist/hitl/providers/ios.js +80 -12
- package/dist/hitl/providers/ios.js.map +1 -1
- package/dist/hitl/providers/macos.d.ts +2 -0
- package/dist/hitl/providers/macos.d.ts.map +1 -1
- package/dist/hitl/providers/macos.js +85 -3
- package/dist/hitl/providers/macos.js.map +1 -1
- package/dist/hitl/providers/openclaw.js +3 -9
- package/dist/hitl/providers/openclaw.js.map +1 -1
- package/dist/hitl/providers/stdio.js +3 -9
- package/dist/hitl/providers/stdio.js.map +1 -1
- package/dist/hitl/providers/telegram.js +3 -9
- package/dist/hitl/providers/telegram.js.map +1 -1
- package/dist/hitl/providers/tui.d.ts.map +1 -1
- package/dist/hitl/providers/tui.js +35 -2
- package/dist/hitl/providers/tui.js.map +1 -1
- package/dist/hitl/providers/types.d.ts +28 -2
- package/dist/hitl/providers/types.d.ts.map +1 -1
- package/dist/hitl/runtime.d.ts +18 -0
- package/dist/hitl/runtime.d.ts.map +1 -0
- package/dist/hitl/runtime.js +60 -0
- package/dist/hitl/runtime.js.map +1 -0
- package/dist/hook/api.d.ts +6 -1
- package/dist/hook/api.d.ts.map +1 -1
- package/dist/hook/api.js +50 -12
- package/dist/hook/api.js.map +1 -1
- package/dist/middleware/core/allowlist.d.ts.map +1 -1
- package/dist/middleware/core/allowlist.js +4 -1
- package/dist/middleware/core/allowlist.js.map +1 -1
- package/dist/middleware/core/hitl-gate.d.ts +4 -1
- package/dist/middleware/core/hitl-gate.d.ts.map +1 -1
- package/dist/middleware/core/hitl-gate.js +125 -35
- package/dist/middleware/core/hitl-gate.js.map +1 -1
- package/dist/middleware/types.d.ts +2 -0
- package/dist/middleware/types.d.ts.map +1 -1
- package/dist/mobile/api.d.ts +2 -0
- package/dist/mobile/api.d.ts.map +1 -1
- package/dist/mobile/api.js +48 -2
- package/dist/mobile/api.js.map +1 -1
- package/dist/mobile/apns.d.ts +37 -0
- package/dist/mobile/apns.d.ts.map +1 -1
- package/dist/mobile/apns.js +71 -23
- package/dist/mobile/apns.js.map +1 -1
- package/dist/registry/airlock-policy.js +1 -1
- package/dist/registry/airlock-policy.js.map +1 -1
- package/dist/registry/registry.d.ts +3 -0
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +15 -13
- package/dist/registry/registry.js.map +1 -1
- package/dist/stdio-mode.d.ts.map +1 -1
- package/dist/stdio-mode.js +45 -11
- package/dist/stdio-mode.js.map +1 -1
- package/dist/transport/agent-server.d.ts.map +1 -1
- package/dist/transport/agent-server.js +24 -10
- 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 +67 -7
- package/dist/transport/http-server.js.map +1 -1
- package/dist/transport/session-limiter.d.ts +2 -0
- package/dist/transport/session-limiter.d.ts.map +1 -1
- package/dist/transport/session-limiter.js +5 -3
- package/dist/transport/session-limiter.js.map +1 -1
- package/dist/util/stable-json.d.ts +3 -0
- package/dist/util/stable-json.d.ts.map +1 -0
- package/dist/util/stable-json.js +10 -0
- package/dist/util/stable-json.js.map +1 -0
- package/dist/util/tool-name.d.ts +9 -0
- package/dist/util/tool-name.d.ts.map +1 -0
- package/dist/util/tool-name.js +14 -0
- package/dist/util/tool-name.js.map +1 -0
- package/examples/approval-previews.yaml +144 -0
- package/package.json +1 -1
- package/schema.json +168 -1
package/dist/config/schema.d.ts
CHANGED
|
@@ -1666,6 +1666,11 @@ export declare const ToolOverride: z.ZodObject<{
|
|
|
1666
1666
|
label?: string | undefined;
|
|
1667
1667
|
value_set?: string | undefined;
|
|
1668
1668
|
}[]]>>>;
|
|
1669
|
+
/**
|
|
1670
|
+
* Safety tier used by tier-scoped approval grants ("allow read-only gmail tools for 15m").
|
|
1671
|
+
* Overrides the tier derived from the tool's MCP annotations.
|
|
1672
|
+
*/
|
|
1673
|
+
tier: z.ZodOptional<z.ZodEnum<["read", "write", "destructive"]>>;
|
|
1669
1674
|
}, "strict", z.ZodTypeAny, {
|
|
1670
1675
|
sandbox_presets: string[];
|
|
1671
1676
|
description?: string | undefined;
|
|
@@ -1698,6 +1703,7 @@ export declare const ToolOverride: z.ZodObject<{
|
|
|
1698
1703
|
denied_domains: string[];
|
|
1699
1704
|
} | undefined;
|
|
1700
1705
|
} | undefined;
|
|
1706
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
1701
1707
|
}, {
|
|
1702
1708
|
description?: string | undefined;
|
|
1703
1709
|
args?: Record<string, {
|
|
@@ -1758,6 +1764,7 @@ export declare const ToolOverride: z.ZodObject<{
|
|
|
1758
1764
|
denied_domains?: string[] | undefined;
|
|
1759
1765
|
} | undefined;
|
|
1760
1766
|
} | undefined;
|
|
1767
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
1761
1768
|
}>;
|
|
1762
1769
|
export type ToolOverride = z.infer<typeof ToolOverride>;
|
|
1763
1770
|
export declare const AgentExecConfig: z.ZodObject<{
|
|
@@ -2158,6 +2165,11 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2158
2165
|
label?: string | undefined;
|
|
2159
2166
|
value_set?: string | undefined;
|
|
2160
2167
|
}[]]>>>;
|
|
2168
|
+
/**
|
|
2169
|
+
* Safety tier used by tier-scoped approval grants ("allow read-only gmail tools for 15m").
|
|
2170
|
+
* Overrides the tier derived from the tool's MCP annotations.
|
|
2171
|
+
*/
|
|
2172
|
+
tier: z.ZodOptional<z.ZodEnum<["read", "write", "destructive"]>>;
|
|
2161
2173
|
}, "strict", z.ZodTypeAny, {
|
|
2162
2174
|
sandbox_presets: string[];
|
|
2163
2175
|
description?: string | undefined;
|
|
@@ -2190,6 +2202,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2190
2202
|
denied_domains: string[];
|
|
2191
2203
|
} | undefined;
|
|
2192
2204
|
} | undefined;
|
|
2205
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
2193
2206
|
}, {
|
|
2194
2207
|
description?: string | undefined;
|
|
2195
2208
|
args?: Record<string, {
|
|
@@ -2250,6 +2263,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2250
2263
|
denied_domains?: string[] | undefined;
|
|
2251
2264
|
} | undefined;
|
|
2252
2265
|
} | undefined;
|
|
2266
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
2253
2267
|
}>>>;
|
|
2254
2268
|
arg_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
2255
2269
|
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -2717,6 +2731,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2717
2731
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
2718
2732
|
call_execution_timeout_ms?: number | undefined;
|
|
2719
2733
|
}>>;
|
|
2734
|
+
approval_mode: z.ZodOptional<z.ZodEnum<["sync", "async"]>>;
|
|
2720
2735
|
}, "strict", z.ZodTypeAny, {
|
|
2721
2736
|
http: {
|
|
2722
2737
|
timeout_ms: number;
|
|
@@ -2790,6 +2805,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2790
2805
|
denied_domains: string[];
|
|
2791
2806
|
} | undefined;
|
|
2792
2807
|
} | undefined;
|
|
2808
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
2793
2809
|
}>;
|
|
2794
2810
|
exec: {
|
|
2795
2811
|
env: Record<string, string>;
|
|
@@ -2851,6 +2867,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2851
2867
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
2852
2868
|
call_execution_timeout_ms?: number | undefined;
|
|
2853
2869
|
} | undefined;
|
|
2870
|
+
approval_mode?: "sync" | "async" | undefined;
|
|
2854
2871
|
}, {
|
|
2855
2872
|
http?: {
|
|
2856
2873
|
timeout_ms?: number | undefined;
|
|
@@ -2953,6 +2970,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
2953
2970
|
denied_domains?: string[] | undefined;
|
|
2954
2971
|
} | undefined;
|
|
2955
2972
|
} | undefined;
|
|
2973
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
2956
2974
|
}> | undefined;
|
|
2957
2975
|
arg_policy?: Record<string, Record<string, {
|
|
2958
2976
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -3039,6 +3057,7 @@ export declare const AgentConfig: z.ZodObject<{
|
|
|
3039
3057
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
3040
3058
|
call_execution_timeout_ms?: number | undefined;
|
|
3041
3059
|
} | undefined;
|
|
3060
|
+
approval_mode?: "sync" | "async" | undefined;
|
|
3042
3061
|
}>;
|
|
3043
3062
|
export type AgentConfig = z.infer<typeof AgentConfig>;
|
|
3044
3063
|
export declare const ProfileConfig: z.ZodObject<{
|
|
@@ -3303,6 +3322,11 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
3303
3322
|
label?: string | undefined;
|
|
3304
3323
|
value_set?: string | undefined;
|
|
3305
3324
|
}[]]>>>;
|
|
3325
|
+
/**
|
|
3326
|
+
* Safety tier used by tier-scoped approval grants ("allow read-only gmail tools for 15m").
|
|
3327
|
+
* Overrides the tier derived from the tool's MCP annotations.
|
|
3328
|
+
*/
|
|
3329
|
+
tier: z.ZodOptional<z.ZodEnum<["read", "write", "destructive"]>>;
|
|
3306
3330
|
}, "strict", z.ZodTypeAny, {
|
|
3307
3331
|
sandbox_presets: string[];
|
|
3308
3332
|
description?: string | undefined;
|
|
@@ -3335,6 +3359,7 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
3335
3359
|
denied_domains: string[];
|
|
3336
3360
|
} | undefined;
|
|
3337
3361
|
} | undefined;
|
|
3362
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
3338
3363
|
}, {
|
|
3339
3364
|
description?: string | undefined;
|
|
3340
3365
|
args?: Record<string, {
|
|
@@ -3395,6 +3420,7 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
3395
3420
|
denied_domains?: string[] | undefined;
|
|
3396
3421
|
} | undefined;
|
|
3397
3422
|
} | undefined;
|
|
3423
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
3398
3424
|
}>>>;
|
|
3399
3425
|
arg_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
3400
3426
|
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -3659,6 +3685,7 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
3659
3685
|
denied_domains: string[];
|
|
3660
3686
|
} | undefined;
|
|
3661
3687
|
} | undefined;
|
|
3688
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
3662
3689
|
}>;
|
|
3663
3690
|
arg_policy?: Record<string, Record<string, {
|
|
3664
3691
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -3749,6 +3776,7 @@ export declare const ProfileConfig: z.ZodObject<{
|
|
|
3749
3776
|
denied_domains?: string[] | undefined;
|
|
3750
3777
|
} | undefined;
|
|
3751
3778
|
} | undefined;
|
|
3779
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
3752
3780
|
}> | undefined;
|
|
3753
3781
|
arg_policy?: Record<string, Record<string, {
|
|
3754
3782
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -3910,6 +3938,119 @@ export declare const ApprovalProviderConfig: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3910
3938
|
}>]>;
|
|
3911
3939
|
export type ApprovalProviderConfig = z.infer<typeof ApprovalProviderConfig>;
|
|
3912
3940
|
export type HitlProviderConfig = ApprovalProviderConfig;
|
|
3941
|
+
export declare const ApprovalPreviewConfig: z.ZodObject<{
|
|
3942
|
+
tool: z.ZodString;
|
|
3943
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3944
|
+
args_from: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3945
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3946
|
+
label: z.ZodString;
|
|
3947
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3948
|
+
text_prefix: z.ZodOptional<z.ZodString>;
|
|
3949
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
3950
|
+
}, "strict", z.ZodTypeAny, {
|
|
3951
|
+
label: string;
|
|
3952
|
+
primary: boolean;
|
|
3953
|
+
path?: string | undefined;
|
|
3954
|
+
text_prefix?: string | undefined;
|
|
3955
|
+
}, {
|
|
3956
|
+
label: string;
|
|
3957
|
+
path?: string | undefined;
|
|
3958
|
+
text_prefix?: string | undefined;
|
|
3959
|
+
primary?: boolean | undefined;
|
|
3960
|
+
}>, {
|
|
3961
|
+
label: string;
|
|
3962
|
+
primary: boolean;
|
|
3963
|
+
path?: string | undefined;
|
|
3964
|
+
text_prefix?: string | undefined;
|
|
3965
|
+
}, {
|
|
3966
|
+
label: string;
|
|
3967
|
+
path?: string | undefined;
|
|
3968
|
+
text_prefix?: string | undefined;
|
|
3969
|
+
primary?: boolean | undefined;
|
|
3970
|
+
}>, "many">>;
|
|
3971
|
+
request_fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3972
|
+
label: z.ZodString;
|
|
3973
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3974
|
+
text_prefix: z.ZodOptional<z.ZodString>;
|
|
3975
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
3976
|
+
}, "strict", z.ZodTypeAny, {
|
|
3977
|
+
label: string;
|
|
3978
|
+
primary: boolean;
|
|
3979
|
+
path?: string | undefined;
|
|
3980
|
+
text_prefix?: string | undefined;
|
|
3981
|
+
}, {
|
|
3982
|
+
label: string;
|
|
3983
|
+
path?: string | undefined;
|
|
3984
|
+
text_prefix?: string | undefined;
|
|
3985
|
+
primary?: boolean | undefined;
|
|
3986
|
+
}>, {
|
|
3987
|
+
label: string;
|
|
3988
|
+
primary: boolean;
|
|
3989
|
+
path?: string | undefined;
|
|
3990
|
+
text_prefix?: string | undefined;
|
|
3991
|
+
}, {
|
|
3992
|
+
label: string;
|
|
3993
|
+
path?: string | undefined;
|
|
3994
|
+
text_prefix?: string | undefined;
|
|
3995
|
+
primary?: boolean | undefined;
|
|
3996
|
+
}>, "many">>;
|
|
3997
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
3998
|
+
max_chars: z.ZodDefault<z.ZodNumber>;
|
|
3999
|
+
}, "strict", z.ZodTypeAny, {
|
|
4000
|
+
tool: string;
|
|
4001
|
+
args: Record<string, unknown>;
|
|
4002
|
+
timeout_ms: number;
|
|
4003
|
+
max_chars: number;
|
|
4004
|
+
args_from: Record<string, string>;
|
|
4005
|
+
fields?: {
|
|
4006
|
+
label: string;
|
|
4007
|
+
primary: boolean;
|
|
4008
|
+
path?: string | undefined;
|
|
4009
|
+
text_prefix?: string | undefined;
|
|
4010
|
+
}[] | undefined;
|
|
4011
|
+
request_fields?: {
|
|
4012
|
+
label: string;
|
|
4013
|
+
primary: boolean;
|
|
4014
|
+
path?: string | undefined;
|
|
4015
|
+
text_prefix?: string | undefined;
|
|
4016
|
+
}[] | undefined;
|
|
4017
|
+
}, {
|
|
4018
|
+
tool: string;
|
|
4019
|
+
args?: Record<string, unknown> | undefined;
|
|
4020
|
+
timeout_ms?: number | undefined;
|
|
4021
|
+
max_chars?: number | undefined;
|
|
4022
|
+
args_from?: Record<string, string> | undefined;
|
|
4023
|
+
fields?: {
|
|
4024
|
+
label: string;
|
|
4025
|
+
path?: string | undefined;
|
|
4026
|
+
text_prefix?: string | undefined;
|
|
4027
|
+
primary?: boolean | undefined;
|
|
4028
|
+
}[] | undefined;
|
|
4029
|
+
request_fields?: {
|
|
4030
|
+
label: string;
|
|
4031
|
+
path?: string | undefined;
|
|
4032
|
+
text_prefix?: string | undefined;
|
|
4033
|
+
primary?: boolean | undefined;
|
|
4034
|
+
}[] | undefined;
|
|
4035
|
+
}>;
|
|
4036
|
+
export type ApprovalPreviewConfig = z.infer<typeof ApprovalPreviewConfig>;
|
|
4037
|
+
export declare const ApprovalGrantsConfig: z.ZodObject<{
|
|
4038
|
+
default_duration_ms: z.ZodDefault<z.ZodNumber>;
|
|
4039
|
+
max_duration_ms: z.ZodDefault<z.ZodNumber>;
|
|
4040
|
+
plan_ttl_ms: z.ZodDefault<z.ZodNumber>;
|
|
4041
|
+
async_ttl_ms: z.ZodDefault<z.ZodNumber>;
|
|
4042
|
+
}, "strict", z.ZodTypeAny, {
|
|
4043
|
+
default_duration_ms: number;
|
|
4044
|
+
max_duration_ms: number;
|
|
4045
|
+
plan_ttl_ms: number;
|
|
4046
|
+
async_ttl_ms: number;
|
|
4047
|
+
}, {
|
|
4048
|
+
default_duration_ms?: number | undefined;
|
|
4049
|
+
max_duration_ms?: number | undefined;
|
|
4050
|
+
plan_ttl_ms?: number | undefined;
|
|
4051
|
+
async_ttl_ms?: number | undefined;
|
|
4052
|
+
}>;
|
|
4053
|
+
export type ApprovalGrantsConfig = z.infer<typeof ApprovalGrantsConfig>;
|
|
3913
4054
|
export declare const ApprovalsConfig: z.ZodObject<{
|
|
3914
4055
|
provider: z.ZodDefault<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3915
4056
|
type: z.ZodLiteral<"telegram">;
|
|
@@ -4124,8 +4265,121 @@ export declare const ApprovalsConfig: z.ZodObject<{
|
|
|
4124
4265
|
}>]>, "many">]>>;
|
|
4125
4266
|
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
4126
4267
|
batch_window_ms: z.ZodDefault<z.ZodNumber>;
|
|
4268
|
+
mode: z.ZodDefault<z.ZodEnum<["sync", "async"]>>;
|
|
4269
|
+
grants: z.ZodDefault<z.ZodObject<{
|
|
4270
|
+
default_duration_ms: z.ZodDefault<z.ZodNumber>;
|
|
4271
|
+
max_duration_ms: z.ZodDefault<z.ZodNumber>;
|
|
4272
|
+
plan_ttl_ms: z.ZodDefault<z.ZodNumber>;
|
|
4273
|
+
async_ttl_ms: z.ZodDefault<z.ZodNumber>;
|
|
4274
|
+
}, "strict", z.ZodTypeAny, {
|
|
4275
|
+
default_duration_ms: number;
|
|
4276
|
+
max_duration_ms: number;
|
|
4277
|
+
plan_ttl_ms: number;
|
|
4278
|
+
async_ttl_ms: number;
|
|
4279
|
+
}, {
|
|
4280
|
+
default_duration_ms?: number | undefined;
|
|
4281
|
+
max_duration_ms?: number | undefined;
|
|
4282
|
+
plan_ttl_ms?: number | undefined;
|
|
4283
|
+
async_ttl_ms?: number | undefined;
|
|
4284
|
+
}>>;
|
|
4285
|
+
previews: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4286
|
+
tool: z.ZodString;
|
|
4287
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4288
|
+
args_from: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4289
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
4290
|
+
label: z.ZodString;
|
|
4291
|
+
path: z.ZodOptional<z.ZodString>;
|
|
4292
|
+
text_prefix: z.ZodOptional<z.ZodString>;
|
|
4293
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
4294
|
+
}, "strict", z.ZodTypeAny, {
|
|
4295
|
+
label: string;
|
|
4296
|
+
primary: boolean;
|
|
4297
|
+
path?: string | undefined;
|
|
4298
|
+
text_prefix?: string | undefined;
|
|
4299
|
+
}, {
|
|
4300
|
+
label: string;
|
|
4301
|
+
path?: string | undefined;
|
|
4302
|
+
text_prefix?: string | undefined;
|
|
4303
|
+
primary?: boolean | undefined;
|
|
4304
|
+
}>, {
|
|
4305
|
+
label: string;
|
|
4306
|
+
primary: boolean;
|
|
4307
|
+
path?: string | undefined;
|
|
4308
|
+
text_prefix?: string | undefined;
|
|
4309
|
+
}, {
|
|
4310
|
+
label: string;
|
|
4311
|
+
path?: string | undefined;
|
|
4312
|
+
text_prefix?: string | undefined;
|
|
4313
|
+
primary?: boolean | undefined;
|
|
4314
|
+
}>, "many">>;
|
|
4315
|
+
request_fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
4316
|
+
label: z.ZodString;
|
|
4317
|
+
path: z.ZodOptional<z.ZodString>;
|
|
4318
|
+
text_prefix: z.ZodOptional<z.ZodString>;
|
|
4319
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
4320
|
+
}, "strict", z.ZodTypeAny, {
|
|
4321
|
+
label: string;
|
|
4322
|
+
primary: boolean;
|
|
4323
|
+
path?: string | undefined;
|
|
4324
|
+
text_prefix?: string | undefined;
|
|
4325
|
+
}, {
|
|
4326
|
+
label: string;
|
|
4327
|
+
path?: string | undefined;
|
|
4328
|
+
text_prefix?: string | undefined;
|
|
4329
|
+
primary?: boolean | undefined;
|
|
4330
|
+
}>, {
|
|
4331
|
+
label: string;
|
|
4332
|
+
primary: boolean;
|
|
4333
|
+
path?: string | undefined;
|
|
4334
|
+
text_prefix?: string | undefined;
|
|
4335
|
+
}, {
|
|
4336
|
+
label: string;
|
|
4337
|
+
path?: string | undefined;
|
|
4338
|
+
text_prefix?: string | undefined;
|
|
4339
|
+
primary?: boolean | undefined;
|
|
4340
|
+
}>, "many">>;
|
|
4341
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
4342
|
+
max_chars: z.ZodDefault<z.ZodNumber>;
|
|
4343
|
+
}, "strict", z.ZodTypeAny, {
|
|
4344
|
+
tool: string;
|
|
4345
|
+
args: Record<string, unknown>;
|
|
4346
|
+
timeout_ms: number;
|
|
4347
|
+
max_chars: number;
|
|
4348
|
+
args_from: Record<string, string>;
|
|
4349
|
+
fields?: {
|
|
4350
|
+
label: string;
|
|
4351
|
+
primary: boolean;
|
|
4352
|
+
path?: string | undefined;
|
|
4353
|
+
text_prefix?: string | undefined;
|
|
4354
|
+
}[] | undefined;
|
|
4355
|
+
request_fields?: {
|
|
4356
|
+
label: string;
|
|
4357
|
+
primary: boolean;
|
|
4358
|
+
path?: string | undefined;
|
|
4359
|
+
text_prefix?: string | undefined;
|
|
4360
|
+
}[] | undefined;
|
|
4361
|
+
}, {
|
|
4362
|
+
tool: string;
|
|
4363
|
+
args?: Record<string, unknown> | undefined;
|
|
4364
|
+
timeout_ms?: number | undefined;
|
|
4365
|
+
max_chars?: number | undefined;
|
|
4366
|
+
args_from?: Record<string, string> | undefined;
|
|
4367
|
+
fields?: {
|
|
4368
|
+
label: string;
|
|
4369
|
+
path?: string | undefined;
|
|
4370
|
+
text_prefix?: string | undefined;
|
|
4371
|
+
primary?: boolean | undefined;
|
|
4372
|
+
}[] | undefined;
|
|
4373
|
+
request_fields?: {
|
|
4374
|
+
label: string;
|
|
4375
|
+
path?: string | undefined;
|
|
4376
|
+
text_prefix?: string | undefined;
|
|
4377
|
+
primary?: boolean | undefined;
|
|
4378
|
+
}[] | undefined;
|
|
4379
|
+
}>>>;
|
|
4127
4380
|
}, "strict", z.ZodTypeAny, {
|
|
4128
4381
|
timeout_ms: number;
|
|
4382
|
+
mode: "sync" | "async";
|
|
4129
4383
|
provider: {
|
|
4130
4384
|
type: "telegram";
|
|
4131
4385
|
bot_token: string;
|
|
@@ -4198,8 +4452,34 @@ export declare const ApprovalsConfig: z.ZodObject<{
|
|
|
4198
4452
|
type: "stdio";
|
|
4199
4453
|
})[];
|
|
4200
4454
|
batch_window_ms: number;
|
|
4455
|
+
grants: {
|
|
4456
|
+
default_duration_ms: number;
|
|
4457
|
+
max_duration_ms: number;
|
|
4458
|
+
plan_ttl_ms: number;
|
|
4459
|
+
async_ttl_ms: number;
|
|
4460
|
+
};
|
|
4461
|
+
previews: Record<string, {
|
|
4462
|
+
tool: string;
|
|
4463
|
+
args: Record<string, unknown>;
|
|
4464
|
+
timeout_ms: number;
|
|
4465
|
+
max_chars: number;
|
|
4466
|
+
args_from: Record<string, string>;
|
|
4467
|
+
fields?: {
|
|
4468
|
+
label: string;
|
|
4469
|
+
primary: boolean;
|
|
4470
|
+
path?: string | undefined;
|
|
4471
|
+
text_prefix?: string | undefined;
|
|
4472
|
+
}[] | undefined;
|
|
4473
|
+
request_fields?: {
|
|
4474
|
+
label: string;
|
|
4475
|
+
primary: boolean;
|
|
4476
|
+
path?: string | undefined;
|
|
4477
|
+
text_prefix?: string | undefined;
|
|
4478
|
+
}[] | undefined;
|
|
4479
|
+
}>;
|
|
4201
4480
|
}, {
|
|
4202
4481
|
timeout_ms?: number | undefined;
|
|
4482
|
+
mode?: "sync" | "async" | undefined;
|
|
4203
4483
|
provider?: {
|
|
4204
4484
|
type: "telegram";
|
|
4205
4485
|
bot_token: string;
|
|
@@ -4272,6 +4552,31 @@ export declare const ApprovalsConfig: z.ZodObject<{
|
|
|
4272
4552
|
type: "stdio";
|
|
4273
4553
|
})[] | undefined;
|
|
4274
4554
|
batch_window_ms?: number | undefined;
|
|
4555
|
+
grants?: {
|
|
4556
|
+
default_duration_ms?: number | undefined;
|
|
4557
|
+
max_duration_ms?: number | undefined;
|
|
4558
|
+
plan_ttl_ms?: number | undefined;
|
|
4559
|
+
async_ttl_ms?: number | undefined;
|
|
4560
|
+
} | undefined;
|
|
4561
|
+
previews?: Record<string, {
|
|
4562
|
+
tool: string;
|
|
4563
|
+
args?: Record<string, unknown> | undefined;
|
|
4564
|
+
timeout_ms?: number | undefined;
|
|
4565
|
+
max_chars?: number | undefined;
|
|
4566
|
+
args_from?: Record<string, string> | undefined;
|
|
4567
|
+
fields?: {
|
|
4568
|
+
label: string;
|
|
4569
|
+
path?: string | undefined;
|
|
4570
|
+
text_prefix?: string | undefined;
|
|
4571
|
+
primary?: boolean | undefined;
|
|
4572
|
+
}[] | undefined;
|
|
4573
|
+
request_fields?: {
|
|
4574
|
+
label: string;
|
|
4575
|
+
path?: string | undefined;
|
|
4576
|
+
text_prefix?: string | undefined;
|
|
4577
|
+
primary?: boolean | undefined;
|
|
4578
|
+
}[] | undefined;
|
|
4579
|
+
}> | undefined;
|
|
4275
4580
|
}>;
|
|
4276
4581
|
export type ApprovalsConfig = z.infer<typeof ApprovalsConfig>;
|
|
4277
4582
|
export type HitlConfig = ApprovalsConfig;
|
|
@@ -5365,6 +5670,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5365
5670
|
label?: string | undefined;
|
|
5366
5671
|
value_set?: string | undefined;
|
|
5367
5672
|
}[]]>>>;
|
|
5673
|
+
/**
|
|
5674
|
+
* Safety tier used by tier-scoped approval grants ("allow read-only gmail tools for 15m").
|
|
5675
|
+
* Overrides the tier derived from the tool's MCP annotations.
|
|
5676
|
+
*/
|
|
5677
|
+
tier: z.ZodOptional<z.ZodEnum<["read", "write", "destructive"]>>;
|
|
5368
5678
|
}, "strict", z.ZodTypeAny, {
|
|
5369
5679
|
sandbox_presets: string[];
|
|
5370
5680
|
description?: string | undefined;
|
|
@@ -5397,6 +5707,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5397
5707
|
denied_domains: string[];
|
|
5398
5708
|
} | undefined;
|
|
5399
5709
|
} | undefined;
|
|
5710
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
5400
5711
|
}, {
|
|
5401
5712
|
description?: string | undefined;
|
|
5402
5713
|
args?: Record<string, {
|
|
@@ -5457,6 +5768,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5457
5768
|
denied_domains?: string[] | undefined;
|
|
5458
5769
|
} | undefined;
|
|
5459
5770
|
} | undefined;
|
|
5771
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
5460
5772
|
}>>>;
|
|
5461
5773
|
arg_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
5462
5774
|
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -5721,6 +6033,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5721
6033
|
denied_domains: string[];
|
|
5722
6034
|
} | undefined;
|
|
5723
6035
|
} | undefined;
|
|
6036
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
5724
6037
|
}>;
|
|
5725
6038
|
arg_policy?: Record<string, Record<string, {
|
|
5726
6039
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -5811,6 +6124,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
5811
6124
|
denied_domains?: string[] | undefined;
|
|
5812
6125
|
} | undefined;
|
|
5813
6126
|
} | undefined;
|
|
6127
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
5814
6128
|
}> | undefined;
|
|
5815
6129
|
arg_policy?: Record<string, Record<string, {
|
|
5816
6130
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -6346,6 +6660,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6346
6660
|
label?: string | undefined;
|
|
6347
6661
|
value_set?: string | undefined;
|
|
6348
6662
|
}[]]>>>;
|
|
6663
|
+
/**
|
|
6664
|
+
* Safety tier used by tier-scoped approval grants ("allow read-only gmail tools for 15m").
|
|
6665
|
+
* Overrides the tier derived from the tool's MCP annotations.
|
|
6666
|
+
*/
|
|
6667
|
+
tier: z.ZodOptional<z.ZodEnum<["read", "write", "destructive"]>>;
|
|
6349
6668
|
}, "strict", z.ZodTypeAny, {
|
|
6350
6669
|
sandbox_presets: string[];
|
|
6351
6670
|
description?: string | undefined;
|
|
@@ -6378,6 +6697,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6378
6697
|
denied_domains: string[];
|
|
6379
6698
|
} | undefined;
|
|
6380
6699
|
} | undefined;
|
|
6700
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
6381
6701
|
}, {
|
|
6382
6702
|
description?: string | undefined;
|
|
6383
6703
|
args?: Record<string, {
|
|
@@ -6438,6 +6758,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6438
6758
|
denied_domains?: string[] | undefined;
|
|
6439
6759
|
} | undefined;
|
|
6440
6760
|
} | undefined;
|
|
6761
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
6441
6762
|
}>>>;
|
|
6442
6763
|
arg_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
6443
6764
|
allow: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -6905,6 +7226,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6905
7226
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
6906
7227
|
call_execution_timeout_ms?: number | undefined;
|
|
6907
7228
|
}>>;
|
|
7229
|
+
approval_mode: z.ZodOptional<z.ZodEnum<["sync", "async"]>>;
|
|
6908
7230
|
}, "strict", z.ZodTypeAny, {
|
|
6909
7231
|
http: {
|
|
6910
7232
|
timeout_ms: number;
|
|
@@ -6978,6 +7300,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6978
7300
|
denied_domains: string[];
|
|
6979
7301
|
} | undefined;
|
|
6980
7302
|
} | undefined;
|
|
7303
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
6981
7304
|
}>;
|
|
6982
7305
|
exec: {
|
|
6983
7306
|
env: Record<string, string>;
|
|
@@ -7039,6 +7362,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7039
7362
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
7040
7363
|
call_execution_timeout_ms?: number | undefined;
|
|
7041
7364
|
} | undefined;
|
|
7365
|
+
approval_mode?: "sync" | "async" | undefined;
|
|
7042
7366
|
}, {
|
|
7043
7367
|
http?: {
|
|
7044
7368
|
timeout_ms?: number | undefined;
|
|
@@ -7141,6 +7465,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7141
7465
|
denied_domains?: string[] | undefined;
|
|
7142
7466
|
} | undefined;
|
|
7143
7467
|
} | undefined;
|
|
7468
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
7144
7469
|
}> | undefined;
|
|
7145
7470
|
arg_policy?: Record<string, Record<string, {
|
|
7146
7471
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -7227,6 +7552,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7227
7552
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
7228
7553
|
call_execution_timeout_ms?: number | undefined;
|
|
7229
7554
|
} | undefined;
|
|
7555
|
+
approval_mode?: "sync" | "async" | undefined;
|
|
7230
7556
|
}>>>;
|
|
7231
7557
|
approvals: z.ZodDefault<z.ZodObject<{
|
|
7232
7558
|
provider: z.ZodDefault<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -7442,8 +7768,121 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7442
7768
|
}>]>, "many">]>>;
|
|
7443
7769
|
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
7444
7770
|
batch_window_ms: z.ZodDefault<z.ZodNumber>;
|
|
7771
|
+
mode: z.ZodDefault<z.ZodEnum<["sync", "async"]>>;
|
|
7772
|
+
grants: z.ZodDefault<z.ZodObject<{
|
|
7773
|
+
default_duration_ms: z.ZodDefault<z.ZodNumber>;
|
|
7774
|
+
max_duration_ms: z.ZodDefault<z.ZodNumber>;
|
|
7775
|
+
plan_ttl_ms: z.ZodDefault<z.ZodNumber>;
|
|
7776
|
+
async_ttl_ms: z.ZodDefault<z.ZodNumber>;
|
|
7777
|
+
}, "strict", z.ZodTypeAny, {
|
|
7778
|
+
default_duration_ms: number;
|
|
7779
|
+
max_duration_ms: number;
|
|
7780
|
+
plan_ttl_ms: number;
|
|
7781
|
+
async_ttl_ms: number;
|
|
7782
|
+
}, {
|
|
7783
|
+
default_duration_ms?: number | undefined;
|
|
7784
|
+
max_duration_ms?: number | undefined;
|
|
7785
|
+
plan_ttl_ms?: number | undefined;
|
|
7786
|
+
async_ttl_ms?: number | undefined;
|
|
7787
|
+
}>>;
|
|
7788
|
+
previews: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7789
|
+
tool: z.ZodString;
|
|
7790
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7791
|
+
args_from: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7792
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
7793
|
+
label: z.ZodString;
|
|
7794
|
+
path: z.ZodOptional<z.ZodString>;
|
|
7795
|
+
text_prefix: z.ZodOptional<z.ZodString>;
|
|
7796
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
7797
|
+
}, "strict", z.ZodTypeAny, {
|
|
7798
|
+
label: string;
|
|
7799
|
+
primary: boolean;
|
|
7800
|
+
path?: string | undefined;
|
|
7801
|
+
text_prefix?: string | undefined;
|
|
7802
|
+
}, {
|
|
7803
|
+
label: string;
|
|
7804
|
+
path?: string | undefined;
|
|
7805
|
+
text_prefix?: string | undefined;
|
|
7806
|
+
primary?: boolean | undefined;
|
|
7807
|
+
}>, {
|
|
7808
|
+
label: string;
|
|
7809
|
+
primary: boolean;
|
|
7810
|
+
path?: string | undefined;
|
|
7811
|
+
text_prefix?: string | undefined;
|
|
7812
|
+
}, {
|
|
7813
|
+
label: string;
|
|
7814
|
+
path?: string | undefined;
|
|
7815
|
+
text_prefix?: string | undefined;
|
|
7816
|
+
primary?: boolean | undefined;
|
|
7817
|
+
}>, "many">>;
|
|
7818
|
+
request_fields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
7819
|
+
label: z.ZodString;
|
|
7820
|
+
path: z.ZodOptional<z.ZodString>;
|
|
7821
|
+
text_prefix: z.ZodOptional<z.ZodString>;
|
|
7822
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
7823
|
+
}, "strict", z.ZodTypeAny, {
|
|
7824
|
+
label: string;
|
|
7825
|
+
primary: boolean;
|
|
7826
|
+
path?: string | undefined;
|
|
7827
|
+
text_prefix?: string | undefined;
|
|
7828
|
+
}, {
|
|
7829
|
+
label: string;
|
|
7830
|
+
path?: string | undefined;
|
|
7831
|
+
text_prefix?: string | undefined;
|
|
7832
|
+
primary?: boolean | undefined;
|
|
7833
|
+
}>, {
|
|
7834
|
+
label: string;
|
|
7835
|
+
primary: boolean;
|
|
7836
|
+
path?: string | undefined;
|
|
7837
|
+
text_prefix?: string | undefined;
|
|
7838
|
+
}, {
|
|
7839
|
+
label: string;
|
|
7840
|
+
path?: string | undefined;
|
|
7841
|
+
text_prefix?: string | undefined;
|
|
7842
|
+
primary?: boolean | undefined;
|
|
7843
|
+
}>, "many">>;
|
|
7844
|
+
timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
7845
|
+
max_chars: z.ZodDefault<z.ZodNumber>;
|
|
7846
|
+
}, "strict", z.ZodTypeAny, {
|
|
7847
|
+
tool: string;
|
|
7848
|
+
args: Record<string, unknown>;
|
|
7849
|
+
timeout_ms: number;
|
|
7850
|
+
max_chars: number;
|
|
7851
|
+
args_from: Record<string, string>;
|
|
7852
|
+
fields?: {
|
|
7853
|
+
label: string;
|
|
7854
|
+
primary: boolean;
|
|
7855
|
+
path?: string | undefined;
|
|
7856
|
+
text_prefix?: string | undefined;
|
|
7857
|
+
}[] | undefined;
|
|
7858
|
+
request_fields?: {
|
|
7859
|
+
label: string;
|
|
7860
|
+
primary: boolean;
|
|
7861
|
+
path?: string | undefined;
|
|
7862
|
+
text_prefix?: string | undefined;
|
|
7863
|
+
}[] | undefined;
|
|
7864
|
+
}, {
|
|
7865
|
+
tool: string;
|
|
7866
|
+
args?: Record<string, unknown> | undefined;
|
|
7867
|
+
timeout_ms?: number | undefined;
|
|
7868
|
+
max_chars?: number | undefined;
|
|
7869
|
+
args_from?: Record<string, string> | undefined;
|
|
7870
|
+
fields?: {
|
|
7871
|
+
label: string;
|
|
7872
|
+
path?: string | undefined;
|
|
7873
|
+
text_prefix?: string | undefined;
|
|
7874
|
+
primary?: boolean | undefined;
|
|
7875
|
+
}[] | undefined;
|
|
7876
|
+
request_fields?: {
|
|
7877
|
+
label: string;
|
|
7878
|
+
path?: string | undefined;
|
|
7879
|
+
text_prefix?: string | undefined;
|
|
7880
|
+
primary?: boolean | undefined;
|
|
7881
|
+
}[] | undefined;
|
|
7882
|
+
}>>>;
|
|
7445
7883
|
}, "strict", z.ZodTypeAny, {
|
|
7446
7884
|
timeout_ms: number;
|
|
7885
|
+
mode: "sync" | "async";
|
|
7447
7886
|
provider: {
|
|
7448
7887
|
type: "telegram";
|
|
7449
7888
|
bot_token: string;
|
|
@@ -7516,8 +7955,34 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7516
7955
|
type: "stdio";
|
|
7517
7956
|
})[];
|
|
7518
7957
|
batch_window_ms: number;
|
|
7958
|
+
grants: {
|
|
7959
|
+
default_duration_ms: number;
|
|
7960
|
+
max_duration_ms: number;
|
|
7961
|
+
plan_ttl_ms: number;
|
|
7962
|
+
async_ttl_ms: number;
|
|
7963
|
+
};
|
|
7964
|
+
previews: Record<string, {
|
|
7965
|
+
tool: string;
|
|
7966
|
+
args: Record<string, unknown>;
|
|
7967
|
+
timeout_ms: number;
|
|
7968
|
+
max_chars: number;
|
|
7969
|
+
args_from: Record<string, string>;
|
|
7970
|
+
fields?: {
|
|
7971
|
+
label: string;
|
|
7972
|
+
primary: boolean;
|
|
7973
|
+
path?: string | undefined;
|
|
7974
|
+
text_prefix?: string | undefined;
|
|
7975
|
+
}[] | undefined;
|
|
7976
|
+
request_fields?: {
|
|
7977
|
+
label: string;
|
|
7978
|
+
primary: boolean;
|
|
7979
|
+
path?: string | undefined;
|
|
7980
|
+
text_prefix?: string | undefined;
|
|
7981
|
+
}[] | undefined;
|
|
7982
|
+
}>;
|
|
7519
7983
|
}, {
|
|
7520
7984
|
timeout_ms?: number | undefined;
|
|
7985
|
+
mode?: "sync" | "async" | undefined;
|
|
7521
7986
|
provider?: {
|
|
7522
7987
|
type: "telegram";
|
|
7523
7988
|
bot_token: string;
|
|
@@ -7590,6 +8055,31 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7590
8055
|
type: "stdio";
|
|
7591
8056
|
})[] | undefined;
|
|
7592
8057
|
batch_window_ms?: number | undefined;
|
|
8058
|
+
grants?: {
|
|
8059
|
+
default_duration_ms?: number | undefined;
|
|
8060
|
+
max_duration_ms?: number | undefined;
|
|
8061
|
+
plan_ttl_ms?: number | undefined;
|
|
8062
|
+
async_ttl_ms?: number | undefined;
|
|
8063
|
+
} | undefined;
|
|
8064
|
+
previews?: Record<string, {
|
|
8065
|
+
tool: string;
|
|
8066
|
+
args?: Record<string, unknown> | undefined;
|
|
8067
|
+
timeout_ms?: number | undefined;
|
|
8068
|
+
max_chars?: number | undefined;
|
|
8069
|
+
args_from?: Record<string, string> | undefined;
|
|
8070
|
+
fields?: {
|
|
8071
|
+
label: string;
|
|
8072
|
+
path?: string | undefined;
|
|
8073
|
+
text_prefix?: string | undefined;
|
|
8074
|
+
primary?: boolean | undefined;
|
|
8075
|
+
}[] | undefined;
|
|
8076
|
+
request_fields?: {
|
|
8077
|
+
label: string;
|
|
8078
|
+
path?: string | undefined;
|
|
8079
|
+
text_prefix?: string | undefined;
|
|
8080
|
+
primary?: boolean | undefined;
|
|
8081
|
+
}[] | undefined;
|
|
8082
|
+
}> | undefined;
|
|
7593
8083
|
}>>;
|
|
7594
8084
|
security: z.ZodDefault<z.ZodObject<{
|
|
7595
8085
|
blocked_hosts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -7900,6 +8390,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
7900
8390
|
denied_domains: string[];
|
|
7901
8391
|
} | undefined;
|
|
7902
8392
|
} | undefined;
|
|
8393
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
7903
8394
|
}>;
|
|
7904
8395
|
arg_policy?: Record<string, Record<string, {
|
|
7905
8396
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -8035,6 +8526,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
8035
8526
|
denied_domains: string[];
|
|
8036
8527
|
} | undefined;
|
|
8037
8528
|
} | undefined;
|
|
8529
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
8038
8530
|
}>;
|
|
8039
8531
|
exec: {
|
|
8040
8532
|
env: Record<string, string>;
|
|
@@ -8096,9 +8588,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
8096
8588
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
8097
8589
|
call_execution_timeout_ms?: number | undefined;
|
|
8098
8590
|
} | undefined;
|
|
8591
|
+
approval_mode?: "sync" | "async" | undefined;
|
|
8099
8592
|
}>;
|
|
8100
8593
|
approvals: {
|
|
8101
8594
|
timeout_ms: number;
|
|
8595
|
+
mode: "sync" | "async";
|
|
8102
8596
|
provider: {
|
|
8103
8597
|
type: "telegram";
|
|
8104
8598
|
bot_token: string;
|
|
@@ -8171,6 +8665,31 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
8171
8665
|
type: "stdio";
|
|
8172
8666
|
})[];
|
|
8173
8667
|
batch_window_ms: number;
|
|
8668
|
+
grants: {
|
|
8669
|
+
default_duration_ms: number;
|
|
8670
|
+
max_duration_ms: number;
|
|
8671
|
+
plan_ttl_ms: number;
|
|
8672
|
+
async_ttl_ms: number;
|
|
8673
|
+
};
|
|
8674
|
+
previews: Record<string, {
|
|
8675
|
+
tool: string;
|
|
8676
|
+
args: Record<string, unknown>;
|
|
8677
|
+
timeout_ms: number;
|
|
8678
|
+
max_chars: number;
|
|
8679
|
+
args_from: Record<string, string>;
|
|
8680
|
+
fields?: {
|
|
8681
|
+
label: string;
|
|
8682
|
+
primary: boolean;
|
|
8683
|
+
path?: string | undefined;
|
|
8684
|
+
text_prefix?: string | undefined;
|
|
8685
|
+
}[] | undefined;
|
|
8686
|
+
request_fields?: {
|
|
8687
|
+
label: string;
|
|
8688
|
+
primary: boolean;
|
|
8689
|
+
path?: string | undefined;
|
|
8690
|
+
text_prefix?: string | undefined;
|
|
8691
|
+
}[] | undefined;
|
|
8692
|
+
}>;
|
|
8174
8693
|
};
|
|
8175
8694
|
security: {
|
|
8176
8695
|
blocked_hosts: string[];
|
|
@@ -8366,6 +8885,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
8366
8885
|
denied_domains?: string[] | undefined;
|
|
8367
8886
|
} | undefined;
|
|
8368
8887
|
} | undefined;
|
|
8888
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
8369
8889
|
}> | undefined;
|
|
8370
8890
|
arg_policy?: Record<string, Record<string, {
|
|
8371
8891
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -8557,6 +9077,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
8557
9077
|
denied_domains?: string[] | undefined;
|
|
8558
9078
|
} | undefined;
|
|
8559
9079
|
} | undefined;
|
|
9080
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
8560
9081
|
}> | undefined;
|
|
8561
9082
|
arg_policy?: Record<string, Record<string, {
|
|
8562
9083
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -8643,9 +9164,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
8643
9164
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
8644
9165
|
call_execution_timeout_ms?: number | undefined;
|
|
8645
9166
|
} | undefined;
|
|
9167
|
+
approval_mode?: "sync" | "async" | undefined;
|
|
8646
9168
|
}> | undefined;
|
|
8647
9169
|
approvals?: {
|
|
8648
9170
|
timeout_ms?: number | undefined;
|
|
9171
|
+
mode?: "sync" | "async" | undefined;
|
|
8649
9172
|
provider?: {
|
|
8650
9173
|
type: "telegram";
|
|
8651
9174
|
bot_token: string;
|
|
@@ -8718,6 +9241,31 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
8718
9241
|
type: "stdio";
|
|
8719
9242
|
})[] | undefined;
|
|
8720
9243
|
batch_window_ms?: number | undefined;
|
|
9244
|
+
grants?: {
|
|
9245
|
+
default_duration_ms?: number | undefined;
|
|
9246
|
+
max_duration_ms?: number | undefined;
|
|
9247
|
+
plan_ttl_ms?: number | undefined;
|
|
9248
|
+
async_ttl_ms?: number | undefined;
|
|
9249
|
+
} | undefined;
|
|
9250
|
+
previews?: Record<string, {
|
|
9251
|
+
tool: string;
|
|
9252
|
+
args?: Record<string, unknown> | undefined;
|
|
9253
|
+
timeout_ms?: number | undefined;
|
|
9254
|
+
max_chars?: number | undefined;
|
|
9255
|
+
args_from?: Record<string, string> | undefined;
|
|
9256
|
+
fields?: {
|
|
9257
|
+
label: string;
|
|
9258
|
+
path?: string | undefined;
|
|
9259
|
+
text_prefix?: string | undefined;
|
|
9260
|
+
primary?: boolean | undefined;
|
|
9261
|
+
}[] | undefined;
|
|
9262
|
+
request_fields?: {
|
|
9263
|
+
label: string;
|
|
9264
|
+
path?: string | undefined;
|
|
9265
|
+
text_prefix?: string | undefined;
|
|
9266
|
+
primary?: boolean | undefined;
|
|
9267
|
+
}[] | undefined;
|
|
9268
|
+
}> | undefined;
|
|
8721
9269
|
} | undefined;
|
|
8722
9270
|
security?: {
|
|
8723
9271
|
limits?: {
|
|
@@ -8836,6 +9384,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
8836
9384
|
denied_domains: string[];
|
|
8837
9385
|
} | undefined;
|
|
8838
9386
|
} | undefined;
|
|
9387
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
8839
9388
|
}>;
|
|
8840
9389
|
exec: {
|
|
8841
9390
|
env: Record<string, string>;
|
|
@@ -8897,6 +9446,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
8897
9446
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
8898
9447
|
call_execution_timeout_ms?: number | undefined;
|
|
8899
9448
|
} | undefined;
|
|
9449
|
+
approval_mode?: "sync" | "async" | undefined;
|
|
8900
9450
|
};
|
|
8901
9451
|
};
|
|
8902
9452
|
sandbox_presets: Record<string, {
|
|
@@ -9021,6 +9571,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
9021
9571
|
denied_domains: string[];
|
|
9022
9572
|
} | undefined;
|
|
9023
9573
|
} | undefined;
|
|
9574
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
9024
9575
|
}>;
|
|
9025
9576
|
arg_policy?: Record<string, Record<string, {
|
|
9026
9577
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -9085,6 +9636,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
9085
9636
|
}>;
|
|
9086
9637
|
approvals: {
|
|
9087
9638
|
timeout_ms: number;
|
|
9639
|
+
mode: "sync" | "async";
|
|
9088
9640
|
provider: {
|
|
9089
9641
|
type: "telegram";
|
|
9090
9642
|
bot_token: string;
|
|
@@ -9157,6 +9709,31 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
9157
9709
|
type: "stdio";
|
|
9158
9710
|
})[];
|
|
9159
9711
|
batch_window_ms: number;
|
|
9712
|
+
grants: {
|
|
9713
|
+
default_duration_ms: number;
|
|
9714
|
+
max_duration_ms: number;
|
|
9715
|
+
plan_ttl_ms: number;
|
|
9716
|
+
async_ttl_ms: number;
|
|
9717
|
+
};
|
|
9718
|
+
previews: Record<string, {
|
|
9719
|
+
tool: string;
|
|
9720
|
+
args: Record<string, unknown>;
|
|
9721
|
+
timeout_ms: number;
|
|
9722
|
+
max_chars: number;
|
|
9723
|
+
args_from: Record<string, string>;
|
|
9724
|
+
fields?: {
|
|
9725
|
+
label: string;
|
|
9726
|
+
primary: boolean;
|
|
9727
|
+
path?: string | undefined;
|
|
9728
|
+
text_prefix?: string | undefined;
|
|
9729
|
+
}[] | undefined;
|
|
9730
|
+
request_fields?: {
|
|
9731
|
+
label: string;
|
|
9732
|
+
primary: boolean;
|
|
9733
|
+
path?: string | undefined;
|
|
9734
|
+
text_prefix?: string | undefined;
|
|
9735
|
+
}[] | undefined;
|
|
9736
|
+
}>;
|
|
9160
9737
|
};
|
|
9161
9738
|
security: {
|
|
9162
9739
|
blocked_hosts: string[];
|
|
@@ -9352,6 +9929,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
9352
9929
|
denied_domains?: string[] | undefined;
|
|
9353
9930
|
} | undefined;
|
|
9354
9931
|
} | undefined;
|
|
9932
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
9355
9933
|
}> | undefined;
|
|
9356
9934
|
arg_policy?: Record<string, Record<string, {
|
|
9357
9935
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -9543,6 +10121,7 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
9543
10121
|
denied_domains?: string[] | undefined;
|
|
9544
10122
|
} | undefined;
|
|
9545
10123
|
} | undefined;
|
|
10124
|
+
tier?: "read" | "write" | "destructive" | undefined;
|
|
9546
10125
|
}> | undefined;
|
|
9547
10126
|
arg_policy?: Record<string, Record<string, {
|
|
9548
10127
|
normalize?: ("trim" | "email" | "phone" | "lower")[] | undefined;
|
|
@@ -9629,9 +10208,11 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
9629
10208
|
max_concurrent_calls_per_agent?: number | undefined;
|
|
9630
10209
|
call_execution_timeout_ms?: number | undefined;
|
|
9631
10210
|
} | undefined;
|
|
10211
|
+
approval_mode?: "sync" | "async" | undefined;
|
|
9632
10212
|
}> | undefined;
|
|
9633
10213
|
approvals?: {
|
|
9634
10214
|
timeout_ms?: number | undefined;
|
|
10215
|
+
mode?: "sync" | "async" | undefined;
|
|
9635
10216
|
provider?: {
|
|
9636
10217
|
type: "telegram";
|
|
9637
10218
|
bot_token: string;
|
|
@@ -9704,6 +10285,31 @@ export declare const GatewayConfig: z.ZodEffects<z.ZodObject<{
|
|
|
9704
10285
|
type: "stdio";
|
|
9705
10286
|
})[] | undefined;
|
|
9706
10287
|
batch_window_ms?: number | undefined;
|
|
10288
|
+
grants?: {
|
|
10289
|
+
default_duration_ms?: number | undefined;
|
|
10290
|
+
max_duration_ms?: number | undefined;
|
|
10291
|
+
plan_ttl_ms?: number | undefined;
|
|
10292
|
+
async_ttl_ms?: number | undefined;
|
|
10293
|
+
} | undefined;
|
|
10294
|
+
previews?: Record<string, {
|
|
10295
|
+
tool: string;
|
|
10296
|
+
args?: Record<string, unknown> | undefined;
|
|
10297
|
+
timeout_ms?: number | undefined;
|
|
10298
|
+
max_chars?: number | undefined;
|
|
10299
|
+
args_from?: Record<string, string> | undefined;
|
|
10300
|
+
fields?: {
|
|
10301
|
+
label: string;
|
|
10302
|
+
path?: string | undefined;
|
|
10303
|
+
text_prefix?: string | undefined;
|
|
10304
|
+
primary?: boolean | undefined;
|
|
10305
|
+
}[] | undefined;
|
|
10306
|
+
request_fields?: {
|
|
10307
|
+
label: string;
|
|
10308
|
+
path?: string | undefined;
|
|
10309
|
+
text_prefix?: string | undefined;
|
|
10310
|
+
primary?: boolean | undefined;
|
|
10311
|
+
}[] | undefined;
|
|
10312
|
+
}> | undefined;
|
|
9707
10313
|
} | undefined;
|
|
9708
10314
|
security?: {
|
|
9709
10315
|
limits?: {
|