Variable artifactSchemaConst
artifactSchema: ZodObject<
{
acl: ZodOptional<
ZodNullable<
ZodObject<
{
add: ZodOptional<
ZodArray<
ZodObject<
{
actions: ZodArray<(...), (...)>;
principal: ZodOptional<(...)>;
principal_type: ZodString;
},
"strip",
ZodTypeAny,
{
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
},
{
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
},
>,
"many",
>,
>;
add_denies: ZodOptional<
ZodArray<
ZodObject<
{
actions: ZodArray<(...), (...)>;
principal: ZodOptional<(...)>;
principal_type: ZodString;
},
"strip",
ZodTypeAny,
{
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
},
{
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
},
>,
"many",
>,
>;
denies: ZodOptional<
ZodArray<
ZodObject<
{
actions: ZodArray<(...), (...)>;
principal: ZodOptional<(...)>;
principal_type: ZodString;
},
"strip",
ZodTypeAny,
{
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
},
{
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
},
>,
"many",
>,
>;
grants: ZodOptional<
ZodArray<
ZodObject<
{
actions: ZodArray<(...), (...)>;
principal: ZodOptional<(...)>;
principal_type: ZodString;
},
"strip",
ZodTypeAny,
{
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
},
{
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
},
>,
"many",
>,
>;
preserve_denies: ZodOptional<ZodBoolean>;
remove: ZodOptional<
ZodArray<
ZodObject<
{ principal: ZodOptional<(...)>; principal_type: ZodString },
"strip",
ZodTypeAny,
{ principal?: (...) | (...); principal_type: string },
{ principal?: (...) | (...); principal_type: string },
>,
"many",
>,
>;
remove_denies: ZodOptional<
ZodArray<
ZodObject<
{ principal: ZodOptional<(...)>; principal_type: ZodString },
"strip",
ZodTypeAny,
{ principal?: (...) | (...); principal_type: string },
{ principal?: (...) | (...); principal_type: string },
>,
"many",
>,
>;
},
"strip",
ZodTypeAny,
{
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
add_denies?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
denies?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
preserve_denies?: boolean;
remove?: { principal?: string; principal_type: string }[];
remove_denies?: { principal?: string; principal_type: string }[];
},
{
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
add_denies?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
denies?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
preserve_denies?: boolean;
remove?: { principal?: string; principal_type: string }[];
remove_denies?: { principal?: string; principal_type: string }[];
},
>,
>,
>;
agent: ZodOptional<ZodString>;
content_type: ZodOptional<ZodString>;
created_at: ZodOptional<ZodString>;
current_version: ZodOptional<ZodString>;
description: ZodOptional<ZodString>;
file: ZodOptional<ZodString>;
file_name: ZodOptional<ZodString>;
file_url: ZodOptional<ZodString>;
group_key: ZodOptional<ZodNullable<ZodString>>;
id: ZodString;
image_source: ZodOptional<
ZodObject<
{
content_url: ZodOptional<ZodNullable<ZodString>>;
file: ZodOptional<ZodNullable<ZodString>>;
height: ZodOptional<ZodNullable<ZodNumber>>;
media: ZodOptional<ZodNullable<ZodString>>;
mime_type: ZodOptional<ZodNullable<ZodString>>;
refresh_url: ZodOptional<ZodNullable<ZodString>>;
url: ZodOptional<ZodNullable<ZodString>>;
width: ZodOptional<ZodNullable<ZodNumber>>;
},
"strip",
ZodTypeAny,
{
content_url?: string
| null;
file?: string | null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
},
{
content_url?: string
| null;
file?: string | null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
},
>,
>;
name: ZodOptional<ZodString>;
org: ZodOptional<ZodString>;
sandbox: ZodOptional<ZodString>;
system: ZodOptional<ZodBoolean>;
team: ZodOptional<ZodString>;
thread: ZodOptional<ZodString>;
updated_at: ZodOptional<ZodString>;
user: ZodOptional<ZodString>;
version: ZodOptional<ZodNumber>;
},
"strip",
ZodTypeAny,
{
acl?: | {
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
add_denies?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
denies?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
preserve_denies?: boolean;
remove?: { principal?: string; principal_type: string }[];
remove_denies?: { principal?: string; principal_type: string }[];
}
| null;
agent?: string;
content_type?: string;
created_at?: string;
current_version?: string;
description?: string;
file?: string;
file_name?: string;
file_url?: string;
group_key?: string
| null;
id: string;
image_source?: {
content_url?: string | null;
file?: string | null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
};
name?: string;
org?: string;
sandbox?: string;
system?: boolean;
team?: string;
thread?: string;
updated_at?: string;
user?: string;
version?: number;
},
{
acl?: | {
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
add_denies?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
denies?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
preserve_denies?: boolean;
remove?: { principal?: string; principal_type: string }[];
remove_denies?: { principal?: string; principal_type: string }[];
}
| null;
agent?: string;
content_type?: string;
created_at?: string;
current_version?: string;
description?: string;
file?: string;
file_name?: string;
file_url?: string;
group_key?: string
| null;
id: string;
image_source?: {
content_url?: string | null;
file?: string | null;
height?: number | null;
media?: string | null;
mime_type?: string | null;
refresh_url?: string | null;
url?: string | null;
width?: number | null;
};
name?: string;
org?: string;
sandbox?: string;
system?: boolean;
team?: string;
thread?: string;
updated_at?: string;
user?: string;
version?: number;
},
> = ...
Runtime validator for Artifact.