Variable paginatedRepliesSchemaConst
paginatedRepliesSchema: ZodObject<
{
after_cursor: ZodOptional<ZodString>;
before_cursor: ZodOptional<ZodString>;
has_more: ZodOptional<ZodBoolean>;
replies: ZodArray<
ZodObject<
{
actors: ZodOptional<
ZodArray<
ZodObject<
{
alias: ZodOptional<ZodString>;
id: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
profile_picture: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
},
"strip",
ZodTypeAny,
{
alias?: string;
id?: string;
name?: string;
profile_picture?: {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
};
},
{
alias?: string;
id?: string;
name?: string;
profile_picture?: {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
};
},
>,
"many",
>,
>;
agent: ZodOptional<ZodString>;
agent_mode: ZodOptional<ZodEnum<["cli", "embedded"]>>;
attachments: ZodOptional<
ZodArray<
ZodObject<
{
content_type: ZodOptional<ZodString>;
description: ZodOptional<ZodString>;
filename: ZodOptional<ZodString>;
height: ZodOptional<ZodNumber>;
id: ZodString;
image_height: ZodOptional<ZodNumber>;
image_source: ZodOptional<
ZodObject<(...), (...), (...), (...), (...)>,
>;
image_url: ZodOptional<ZodString>;
image_width: ZodOptional<ZodNumber>;
media_type: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
object: ZodOptional<ZodRecord<(...), (...)>>;
title: ZodOptional<ZodString>;
type: ZodString;
url: ZodOptional<ZodString>;
variants: ZodOptional<ZodArray<(...), (...)>>;
version: ZodOptional<ZodNumber>;
width: ZodOptional<ZodNumber>;
},
"strip",
ZodTypeAny,
{
content_type?: string;
description?: string;
filename?: string;
height?: number;
id: string;
image_height?: number;
image_source?: {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
};
image_url?: string;
image_width?: number;
media_type?: string;
name?: string;
object?: Record<(...), (...)>;
title?: string;
type: string;
url?: string;
variants?: (...)[];
version?: number;
width?: number;
},
{
content_type?: string;
description?: string;
filename?: string;
height?: number;
id: string;
image_height?: number;
image_source?: {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
};
image_url?: string;
image_width?: number;
media_type?: string;
name?: string;
object?: Record<(...), (...)>;
title?: string;
type: string;
url?: string;
variants?: (...)[];
version?: number;
width?: number;
},
>,
"many",
>,
>;
branched_thread: ZodOptional<ZodString>;
content: ZodOptional<ZodString>;
created_at: ZodOptional<ZodString>;
has_replies: ZodOptional<ZodBoolean>;
id: ZodString;
idempotency_key: ZodOptional<ZodString>;
legacy_agent: ZodOptional<ZodString>;
metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
org: ZodOptional<ZodString>;
reactions: ZodOptional<
ZodArray<
ZodObject<
{
payload: ZodOptional<ZodRecord<(...), (...)>>;
type: ZodString;
user: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{ payload?: Record<(...), (...)>; type: string; user?: string },
{ payload?: Record<(...), (...)>; type: string; user?: string },
>,
"many",
>,
>;
rendering_mode: ZodOptional<ZodString>;
replies: ZodOptional<
ZodArray<ZodRecord<ZodString, ZodUnknown>, "many">,
>;
replies_after_cursor: ZodOptional<ZodString>;
replies_before_cursor: ZodOptional<ZodString>;
reply_count: ZodOptional<ZodNumber>;
reply_to: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
sandbox: ZodOptional<ZodString>;
team: ZodOptional<ZodString>;
thread: ZodOptional<ZodString>;
user: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
actors?: {
alias?: string;
id?: string;
name?: string;
profile_picture?: {
file?: (...)
| (...);
height?: (...) | (...);
media?: (...) | (...);
mime_type?: (...) | (...);
refresh_url?: (...) | (...);
url?: (...) | (...);
width?: (...) | (...);
};
}[];
agent?: string;
agent_mode?: "cli"
| "embedded";
attachments?: {
content_type?: string;
description?: string;
filename?: string;
height?: number;
id: string;
image_height?: number;
image_source?: {
file?: (...) | (...);
height?: (...) | (...);
media?: (...) | (...);
mime_type?: (...) | (...);
refresh_url?: (...) | (...);
url?: (...) | (...);
width?: (...) | (...);
};
image_url?: string;
image_width?: number;
media_type?: string;
name?: string;
object?: Record<string, unknown>;
title?: string;
type: string;
url?: string;
variants?: {
content_type?: ...;
created_at?: ...;
file?: ...;
filename?: ...;
height?: ...;
id: ...;
image_source?: ...;
updated_at?: ...;
url?: ...;
variant_key?: ...;
width?: ...;
}[];
version?: number;
width?: number;
}[];
branched_thread?: string;
content?: string;
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string;
legacy_agent?: string;
metadata?: Record<string, unknown>;
org?: string;
reactions?: {
payload?: Record<string, unknown>;
type: string;
user?: string;
}[];
rendering_mode?: string;
replies?: Record<string, unknown>[];
replies_after_cursor?: string;
replies_before_cursor?: string;
reply_count?: number;
reply_to?: Record<string, unknown>;
sandbox?: string;
team?: string;
thread?: string;
user?: string;
},
{
actors?: {
alias?: string;
id?: string;
name?: string;
profile_picture?: {
file?: (...)
| (...);
height?: (...) | (...);
media?: (...) | (...);
mime_type?: (...) | (...);
refresh_url?: (...) | (...);
url?: (...) | (...);
width?: (...) | (...);
};
}[];
agent?: string;
agent_mode?: "cli"
| "embedded";
attachments?: {
content_type?: string;
description?: string;
filename?: string;
height?: number;
id: string;
image_height?: number;
image_source?: {
file?: (...) | (...);
height?: (...) | (...);
media?: (...) | (...);
mime_type?: (...) | (...);
refresh_url?: (...) | (...);
url?: (...) | (...);
width?: (...) | (...);
};
image_url?: string;
image_width?: number;
media_type?: string;
name?: string;
object?: Record<string, unknown>;
title?: string;
type: string;
url?: string;
variants?: {
content_type?: ...;
created_at?: ...;
file?: ...;
filename?: ...;
height?: ...;
id: ...;
image_source?: ...;
updated_at?: ...;
url?: ...;
variant_key?: ...;
width?: ...;
}[];
version?: number;
width?: number;
}[];
branched_thread?: string;
content?: string;
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string;
legacy_agent?: string;
metadata?: Record<string, unknown>;
org?: string;
reactions?: {
payload?: Record<string, unknown>;
type: string;
user?: string;
}[];
rendering_mode?: string;
replies?: Record<string, unknown>[];
replies_after_cursor?: string;
replies_before_cursor?: string;
reply_count?: number;
reply_to?: Record<string, unknown>;
sandbox?: string;
team?: string;
thread?: string;
user?: string;
},
>,
"many",
>;
total_count: ZodOptional<ZodNumber>;
},
"strip",
ZodTypeAny,
{
after_cursor?: string;
before_cursor?: string;
has_more?: boolean;
replies: {
actors?: {
alias?: string;
id?: string;
name?: string;
profile_picture?: {
file?: string;
height?: number;
media?: string;
mime_type?: string;
refresh_url?: string;
url?: string;
width?: number;
};
}[];
agent?: string;
agent_mode?: "cli"
| "embedded";
attachments?: {
content_type?: string;
description?: string;
filename?: string;
height?: number;
id: string;
image_height?: number;
image_source?: {
file?: string;
height?: number;
media?: string;
mime_type?: string;
refresh_url?: string;
url?: string;
width?: number;
};
image_url?: string;
image_width?: number;
media_type?: string;
name?: string;
object?: Record<string, unknown>;
title?: string;
type: string;
url?: string;
variants?: {
content_type?: (...) | (...);
created_at?: (...) | (...);
file?: (...) | (...);
filename?: (...) | (...);
height?: (...) | (...);
id: string;
image_source?: (...) | (...);
updated_at?: (...) | (...);
url?: (...) | (...);
variant_key?: (...) | (...);
width?: (...) | (...);
}[];
version?: number;
width?: number;
}[];
branched_thread?: string;
content?: string;
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string;
legacy_agent?: string;
metadata?: Record<string, unknown>;
org?: string;
reactions?: {
payload?: Record<string, unknown>;
type: string;
user?: string;
}[];
rendering_mode?: string;
replies?: Record<string, unknown>[];
replies_after_cursor?: string;
replies_before_cursor?: string;
reply_count?: number;
reply_to?: Record<string, unknown>;
sandbox?: string;
team?: string;
thread?: string;
user?: string;
}[];
total_count?: number;
},
{
after_cursor?: string;
before_cursor?: string;
has_more?: boolean;
replies: {
actors?: {
alias?: string;
id?: string;
name?: string;
profile_picture?: {
file?: string;
height?: number;
media?: string;
mime_type?: string;
refresh_url?: string;
url?: string;
width?: number;
};
}[];
agent?: string;
agent_mode?: "cli"
| "embedded";
attachments?: {
content_type?: string;
description?: string;
filename?: string;
height?: number;
id: string;
image_height?: number;
image_source?: {
file?: string;
height?: number;
media?: string;
mime_type?: string;
refresh_url?: string;
url?: string;
width?: number;
};
image_url?: string;
image_width?: number;
media_type?: string;
name?: string;
object?: Record<string, unknown>;
title?: string;
type: string;
url?: string;
variants?: {
content_type?: (...) | (...);
created_at?: (...) | (...);
file?: (...) | (...);
filename?: (...) | (...);
height?: (...) | (...);
id: string;
image_source?: (...) | (...);
updated_at?: (...) | (...);
url?: (...) | (...);
variant_key?: (...) | (...);
width?: (...) | (...);
}[];
version?: number;
width?: number;
}[];
branched_thread?: string;
content?: string;
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string;
legacy_agent?: string;
metadata?: Record<string, unknown>;
org?: string;
reactions?: {
payload?: Record<string, unknown>;
type: string;
user?: string;
}[];
rendering_mode?: string;
replies?: Record<string, unknown>[];
replies_after_cursor?: string;
replies_before_cursor?: string;
reply_count?: number;
reply_to?: Record<string, unknown>;
sandbox?: string;
team?: string;
thread?: string;
user?: string;
}[];
total_count?: number;
},
> = ...
Runtime validator for PaginatedReplies.