Skip to content

AppCapabilitiesSchema

This content is not available in your language yet.

const AppCapabilitiesSchema: z.ZodObject<{
execution: z.ZodOptional<z.ZodObject<{
boundDevice: z.ZodObject<{
tools: z.ZodObject<{
customTools: z.ZodOptional<z.ZodBoolean>;
edit: z.ZodOptional<z.ZodBoolean>;
glob: z.ZodOptional<z.ZodBoolean>;
grep: z.ZodOptional<z.ZodBoolean>;
list: z.ZodOptional<z.ZodBoolean>;
mcp: z.ZodOptional<z.ZodBoolean>;
process: z.ZodOptional<z.ZodBoolean>;
read: z.ZodOptional<z.ZodBoolean>;
shell: z.ZodOptional<z.ZodBoolean>;
skills: z.ZodOptional<z.ZodBoolean>;
write: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
customTools?: boolean;
edit?: boolean;
glob?: boolean;
grep?: boolean;
list?: boolean;
mcp?: boolean;
process?: boolean;
read?: boolean;
shell?: boolean;
skills?: boolean;
write?: boolean;
}, {
customTools?: boolean;
edit?: boolean;
glob?: boolean;
grep?: boolean;
list?: boolean;
mcp?: boolean;
process?: boolean;
read?: boolean;
shell?: boolean;
skills?: boolean;
write?: boolean;
}>;
}, "strip", z.ZodTypeAny, {
tools: {
customTools?: boolean;
edit?: boolean;
glob?: boolean;
grep?: boolean;
list?: boolean;
mcp?: boolean;
process?: boolean;
read?: boolean;
shell?: boolean;
skills?: boolean;
write?: boolean;
};
}, {
tools: {
customTools?: boolean;
edit?: boolean;
glob?: boolean;
grep?: boolean;
list?: boolean;
mcp?: boolean;
process?: boolean;
read?: boolean;
shell?: boolean;
skills?: boolean;
write?: boolean;
};
}>;
version: z.ZodLiteral<"bound-device-v1">;
}, "strip", z.ZodTypeAny, {
boundDevice: {
tools: {
customTools?: boolean;
edit?: boolean;
glob?: boolean;
grep?: boolean;
list?: boolean;
mcp?: boolean;
process?: boolean;
read?: boolean;
shell?: boolean;
skills?: boolean;
write?: boolean;
};
};
version: "bound-device-v1";
}, {
boundDevice: {
tools: {
customTools?: boolean;
edit?: boolean;
glob?: boolean;
grep?: boolean;
list?: boolean;
mcp?: boolean;
process?: boolean;
read?: boolean;
shell?: boolean;
skills?: boolean;
write?: boolean;
};
};
version: "bound-device-v1";
}>>;
platform: z.ZodObject<{
document: z.ZodOptional<z.ZodBoolean>;
embedding: z.ZodOptional<z.ZodBoolean>;
imageGen: z.ZodBoolean;
music: z.ZodOptional<z.ZodBoolean>;
realtimeAudio: z.ZodOptional<z.ZodBoolean>;
rerank: z.ZodOptional<z.ZodBoolean>;
speechToText: z.ZodDefault<z.ZodBoolean>;
textToSpeech: z.ZodDefault<z.ZodBoolean>;
videoGen: z.ZodBoolean;
voiceCreate: z.ZodOptional<z.ZodBoolean>;
webSearch: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
document?: boolean;
embedding?: boolean;
imageGen: boolean;
music?: boolean;
realtimeAudio?: boolean;
rerank?: boolean;
speechToText: boolean;
textToSpeech: boolean;
videoGen: boolean;
voiceCreate?: boolean;
webSearch: boolean;
}, {
document?: boolean;
embedding?: boolean;
imageGen: boolean;
music?: boolean;
realtimeAudio?: boolean;
rerank?: boolean;
speechToText?: boolean;
textToSpeech?: boolean;
videoGen: boolean;
voiceCreate?: boolean;
webSearch: boolean;
}>;
tools: z.ZodObject<{
agent: z.ZodBoolean;
askUser: z.ZodBoolean;
customTools: z.ZodBoolean;
edit: z.ZodBoolean;
glob: z.ZodBoolean;
grep: z.ZodBoolean;
http: z.ZodBoolean;
list: z.ZodBoolean;
mcp: z.ZodBoolean;
process: z.ZodBoolean;
read: z.ZodBoolean;
shell: z.ZodBoolean;
skills: z.ZodBoolean;
todoWrite: z.ZodBoolean;
webFetch: z.ZodBoolean;
webSearch: z.ZodBoolean;
write: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
agent: boolean;
askUser: boolean;
customTools: boolean;
edit: boolean;
glob: boolean;
grep: boolean;
http: boolean;
list: boolean;
mcp: boolean;
process: boolean;
read: boolean;
shell: boolean;
skills: boolean;
todoWrite: boolean;
webFetch: boolean;
webSearch: boolean;
write: boolean;
}, {
agent: boolean;
askUser: boolean;
customTools: boolean;
edit: boolean;
glob: boolean;
grep: boolean;
http: boolean;
list: boolean;
mcp: boolean;
process: boolean;
read: boolean;
shell: boolean;
skills: boolean;
todoWrite: boolean;
webFetch: boolean;
webSearch: boolean;
write: boolean;
}>;
}, "strip", z.ZodTypeAny, {
execution?: {
boundDevice: {
tools: {
customTools?: boolean;
edit?: boolean;
glob?: boolean;
grep?: boolean;
list?: boolean;
mcp?: boolean;
process?: boolean;
read?: boolean;
shell?: boolean;
skills?: boolean;
write?: boolean;
};
};
version: "bound-device-v1";
};
platform: {
document?: boolean;
embedding?: boolean;
imageGen: boolean;
music?: boolean;
realtimeAudio?: boolean;
rerank?: boolean;
speechToText: boolean;
textToSpeech: boolean;
videoGen: boolean;
voiceCreate?: boolean;
webSearch: boolean;
};
tools: {
agent: boolean;
askUser: boolean;
customTools: boolean;
edit: boolean;
glob: boolean;
grep: boolean;
http: boolean;
list: boolean;
mcp: boolean;
process: boolean;
read: boolean;
shell: boolean;
skills: boolean;
todoWrite: boolean;
webFetch: boolean;
webSearch: boolean;
write: boolean;
};
}, {
execution?: {
boundDevice: {
tools: {
customTools?: boolean;
edit?: boolean;
glob?: boolean;
grep?: boolean;
list?: boolean;
mcp?: boolean;
process?: boolean;
read?: boolean;
shell?: boolean;
skills?: boolean;
write?: boolean;
};
};
version: "bound-device-v1";
};
platform: {
document?: boolean;
embedding?: boolean;
imageGen: boolean;
music?: boolean;
realtimeAudio?: boolean;
rerank?: boolean;
speechToText?: boolean;
textToSpeech?: boolean;
videoGen: boolean;
voiceCreate?: boolean;
webSearch: boolean;
};
tools: {
agent: boolean;
askUser: boolean;
customTools: boolean;
edit: boolean;
glob: boolean;
grep: boolean;
http: boolean;
list: boolean;
mcp: boolean;
process: boolean;
read: boolean;
shell: boolean;
skills: boolean;
todoWrite: boolean;
webFetch: boolean;
webSearch: boolean;
write: boolean;
};
}>;

App 能力位段形态(控制台 capabilities 配置;null = 平台缺省档 DEFAULT_APP_CAPABILITIES)。 模型面恒不入本 schema:沿用既有模型目录授权(单一事实源)。 顶层 .strip():段内加法键(如日后的 quota / models 面)剥除不炸。