Variable chatForkThreadResponseSchemaConst
chatForkThreadResponseSchema: ZodObject<
{
chat_model: ZodOptional<
ZodObject<
{
after_cursor: ZodOptional<ZodString>;
agent: ZodOptional<
ZodObject<
{
acl: ZodOptional<
ZodNullable<ZodObject<(...), (...), (...), (...), (...)>>,
>;
app: ZodOptional<ZodString>;
created_at: ZodOptional<ZodString>;
default_model: ZodOptional<ZodNullable<ZodString>>;
description: ZodOptional<ZodNullable<ZodString>>;
email: ZodOptional<ZodNullable<ZodString>>;
id: ZodString;
identity: ZodOptional<ZodNullable<ZodString>>;
last_applied_template_config: ZodOptional<ZodNullable<ZodString>>;
lookup_key: ZodOptional<ZodNullable<ZodString>>;
metadata: ZodOptional<
ZodRecord<ZodString, ZodType<(...), (...), (...)>>,
>;
name: ZodOptional<ZodString>;
org: ZodOptional<ZodNullable<ZodString>>;
org_name: ZodOptional<ZodNullable<ZodString>>;
originator: ZodOptional<ZodNullable<ZodString>>;
phone_number: ZodOptional<ZodNullable<ZodString>>;
sandbox: ZodOptional<ZodNullable<ZodString>>;
source_solution: ZodOptional<
ZodNullable<ZodObject<(...), (...), (...), (...), (...)>>,
>;
team: ZodOptional<ZodNullable<ZodString>>;
template_upgrade_available: ZodOptional<ZodNullable<ZodBoolean>>;
updated_at: ZodOptional<ZodString>;
user: ZodOptional<ZodNullable<ZodString>>;
},
"strip",
ZodTypeAny,
{
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, (...) | (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: (...)
| (...);
solution: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
template: {
created_at?: ...;
description?: ...;
display_name?: ...;
id: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
updated_at?: ...;
virtual_path?: ...;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
},
{
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, (...) | (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: (...)
| (...);
solution: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
template: {
created_at?: ...;
description?: ...;
display_name?: ...;
id: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
updated_at?: ...;
virtual_path?: ...;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
},
>,
>;
before_cursor: ZodOptional<ZodString>;
is_transient: ZodBoolean;
members: ZodArray<
ZodObject<
{
agent: ZodOptional<
ZodObject<
{
acl: ...;
app: ...;
created_at: ...;
default_model: ...;
description: ...;
email: ...;
id: ...;
identity: ...;
last_applied_template_config: ...;
lookup_key: ...;
metadata: ...;
name: ...;
org: ...;
org_name: ...;
originator: ...;
phone_number: ...;
sandbox: ...;
source_solution: ...;
team: ...;
template_upgrade_available: ...;
updated_at: ...;
user: ...;
},
"strip",
ZodTypeAny,
{
acl?: ...;
app?: ...;
created_at?: ...;
default_model?: ...;
description?: ...;
email?: ...;
id: ...;
identity?: ...;
last_applied_template_config?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_name?: ...;
originator?: ...;
phone_number?: ...;
sandbox?: ...;
source_solution?: ...;
team?: ...;
template_upgrade_available?: ...;
updated_at?: ...;
user?: ...;
},
{
acl?: ...;
app?: ...;
created_at?: ...;
default_model?: ...;
description?: ...;
email?: ...;
id: ...;
identity?: ...;
last_applied_template_config?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_name?: ...;
originator?: ...;
phone_number?: ...;
sandbox?: ...;
source_solution?: ...;
team?: ...;
template_upgrade_available?: ...;
updated_at?: ...;
user?: ...;
},
>,
>;
membership_type: ZodOptional<ZodString>;
type: ZodString;
user: ZodOptional<
ZodObject<
{
alias: ...;
app: ...;
app_name: ...;
created_by_agent_user: ...;
created_by_developer: ...;
created_by_org: ...;
created_by_team: ...;
created_by_user: ...;
email: ...;
id: ...;
is_system_user: ...;
metadata: ...;
name: ...;
org: ...;
org_name: ...;
org_role: ...;
org_slug: ...;
sandbox: ...;
sandbox_name: ...;
},
"strip",
ZodTypeAny,
{
alias?: ...;
app?: ...;
app_name?: ...;
created_by_agent_user?: ...;
created_by_developer?: ...;
created_by_org?: ...;
created_by_team?: ...;
created_by_user?: ...;
email?: ...;
id: ...;
is_system_user?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_name?: ...;
org_role?: ...;
org_slug?: ...;
sandbox?: ...;
sandbox_name?: ...;
},
{
alias?: ...;
app?: ...;
app_name?: ...;
created_by_agent_user?: ...;
created_by_developer?: ...;
created_by_org?: ...;
created_by_team?: ...;
created_by_user?: ...;
email?: ...;
id: ...;
is_system_user?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_name?: ...;
org_role?: ...;
org_slug?: ...;
sandbox?: ...;
sandbox_name?: ...;
},
>,
>;
},
"strip",
ZodTypeAny,
{
agent?: {
acl?: (...)
| (...)
| (...);
app?: (...) | (...);
created_at?: (...) | (...);
default_model?: (...) | (...) | (...);
description?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
identity?: (...) | (...) | (...);
last_applied_template_config?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
originator?: (...) | (...) | (...);
phone_number?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
source_solution?: (...) | (...) | (...);
team?: (...) | (...) | (...);
template_upgrade_available?: (...) | (...) | (...) | (...);
updated_at?: (...) | (...);
user?: (...) | (...) | (...);
};
membership_type?: string;
type: string;
user?: {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
};
},
{
agent?: {
acl?: (...)
| (...)
| (...);
app?: (...) | (...);
created_at?: (...) | (...);
default_model?: (...) | (...) | (...);
description?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
identity?: (...) | (...) | (...);
last_applied_template_config?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
originator?: (...) | (...) | (...);
phone_number?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
source_solution?: (...) | (...) | (...);
team?: (...) | (...) | (...);
template_upgrade_available?: (...) | (...) | (...) | (...);
updated_at?: (...) | (...);
user?: (...) | (...) | (...);
};
membership_type?: string;
type: string;
user?: {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
};
},
>,
"many",
>;
messages: ZodArray<
ZodObject<
{
acl: ZodOptional<
ZodNullable<ZodObject<(...), (...), (...), (...), (...)>>,
>;
actors: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
agent: ZodOptional<ZodNullable<ZodString>>;
agent_mode: ZodOptional<ZodNullable<ZodEnum<(...)>>>;
attachments: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
branched_thread: ZodOptional<ZodNullable<ZodString>>;
content: ZodOptional<ZodNullable<ZodString>>;
context: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
created_at: ZodOptional<ZodString>;
has_replies: ZodOptional<ZodBoolean>;
id: ZodString;
idempotency_key: ZodOptional<ZodNullable<ZodString>>;
is_deleted: ZodOptional<ZodBoolean>;
legacy_agent: ZodOptional<ZodNullable<ZodString>>;
metadata: ZodOptional<
ZodRecord<ZodString, ZodType<(...), (...), (...)>>,
>;
org: ZodOptional<ZodNullable<ZodString>>;
reactions: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
rendering_mode: ZodOptional<ZodNullable<ZodString>>;
replies: ZodOptional<ZodArray<ZodRecord<(...), (...)>, "many">>;
replies_after_cursor: ZodOptional<ZodNullable<ZodString>>;
replies_before_cursor: ZodOptional<ZodNullable<ZodString>>;
reply_count: ZodOptional<ZodNumber>;
reply_to: ZodOptional<ZodNullable<ZodRecord<(...), (...)>>>;
root_message_id: ZodOptional<ZodNullable<ZodString>>;
sandbox: ZodOptional<ZodNullable<ZodString>>;
team: ZodOptional<ZodNullable<ZodString>>;
thread: ZodOptional<ZodString>;
type: ZodOptional<ZodNullable<ZodString>>;
user: ZodOptional<ZodNullable<ZodUnion<(...)>>>;
visibility: ZodOptional<ZodEnum<[(...), (...)]>>;
},
"strip",
ZodTypeAny,
{
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
actors?: {
alias?: ...;
id?: ...;
name?: ...;
profile_picture?: ...;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: ...;
description?: ...;
filename?: ...;
height?: ...;
id: ...;
image_height?: ...;
image_source?: ...;
image_url?: ...;
image_width?: ...;
media_type?: ...;
name?: ...;
object?: ...;
title?: ...;
type: ...;
url?: ...;
variants?: ...;
version?: ...;
width?: ...;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: ...;
content?: ...;
title?: ...;
type: ...;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, (...) | (...)>;
org?: string | null;
reactions?: { payload?: ...; type: ...; user?: ... }[];
rendering_mode?: string | null;
replies?: Record<(...), (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, (...) | (...)> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
}
| null;
visibility?: "default"
| "private";
},
{
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
actors?: {
alias?: ...;
id?: ...;
name?: ...;
profile_picture?: ...;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: ...;
description?: ...;
filename?: ...;
height?: ...;
id: ...;
image_height?: ...;
image_source?: ...;
image_url?: ...;
image_width?: ...;
media_type?: ...;
name?: ...;
object?: ...;
title?: ...;
type: ...;
url?: ...;
variants?: ...;
version?: ...;
width?: ...;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: ...;
content?: ...;
title?: ...;
type: ...;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, (...) | (...)>;
org?: string | null;
reactions?: { payload?: ...; type: ...; user?: ... }[];
rendering_mode?: string | null;
replies?: Record<(...), (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, (...) | (...)> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
}
| null;
visibility?: "default"
| "private";
},
>,
"many",
>;
messages_loaded_on_last_update: ZodOptional<ZodNumber>;
team: ZodOptional<
ZodObject<
{
acl: ZodOptional<
ZodNullable<ZodObject<(...), (...), (...), (...), (...)>>,
>;
app: ZodOptional<ZodString>;
badges: ZodOptional<ZodNullable<ZodRecord<(...), (...)>>>;
created_at: ZodOptional<ZodString>;
description: ZodOptional<ZodNullable<ZodString>>;
id: ZodString;
membership_status: ZodOptional<ZodNullable<ZodString>>;
metadata: ZodOptional<
ZodRecord<ZodString, ZodType<(...), (...), (...)>>,
>;
name: ZodOptional<ZodString>;
org: ZodOptional<ZodNullable<ZodString>>;
sandbox: ZodOptional<ZodNullable<ZodString>>;
slug: ZodOptional<ZodNullable<ZodString>>;
updated_at: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
app?: string;
badges?: Record<string, (...) | (...)>
| null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, (...) | (...)>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
},
{
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
app?: string;
badges?: Record<string, (...) | (...)>
| null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, (...) | (...)>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
},
>,
>;
thread: ZodObject<
{
agent_user: ZodOptional<ZodNullable<ZodString>>;
created_at: ZodOptional<ZodString>;
creator: ZodOptional<ZodNullable<ZodUnion<[(...), (...)]>>>;
description: ZodOptional<ZodNullable<ZodString>>;
id: ZodString;
is_channel: ZodOptional<ZodBoolean>;
is_default: ZodOptional<ZodBoolean>;
is_transient: ZodOptional<ZodBoolean>;
is_unlisted: ZodOptional<ZodBoolean>;
key: ZodOptional<ZodNullable<ZodString>>;
kind: ZodOptional<ZodNullable<ZodString>>;
last_activity: ZodOptional<ZodNullable<ZodString>>;
last_message_preview: ZodOptional<ZodNullable<ZodString>>;
last_message_sender: ZodOptional<ZodNullable<ZodString>>;
metadata: ZodOptional<
ZodNullable<ZodRecord<ZodString, ZodType<(...), (...), (...)>>>,
>;
muted: ZodOptional<ZodBoolean>;
org: ZodOptional<ZodNullable<ZodString>>;
parent_message: ZodOptional<
ZodNullable<
ZodObject<
{
acl: ...;
actors: ...;
agent: ...;
agent_mode: ...;
attachments: ...;
branched_thread: ...;
content: ...;
context: ...;
created_at: ...;
has_replies: ...;
id: ...;
idempotency_key: ...;
is_deleted: ...;
legacy_agent: ...;
metadata: ...;
org: ...;
reactions: ...;
rendering_mode: ...;
replies: ...;
replies_after_cursor: ...;
replies_before_cursor: ...;
reply_count: ...;
reply_to: ...;
root_message_id: ...;
sandbox: ...;
team: ...;
thread: ...;
type: ...;
user: ...;
visibility: ...;
},
"strip",
ZodTypeAny,
{
acl?: ...;
actors?: ...;
agent?: ...;
agent_mode?: ...;
attachments?: ...;
branched_thread?: ...;
content?: ...;
context?: ...;
created_at?: ...;
has_replies?: ...;
id: ...;
idempotency_key?: ...;
is_deleted?: ...;
legacy_agent?: ...;
metadata?: ...;
org?: ...;
reactions?: ...;
rendering_mode?: ...;
replies?: ...;
replies_after_cursor?: ...;
replies_before_cursor?: ...;
reply_count?: ...;
reply_to?: ...;
root_message_id?: ...;
sandbox?: ...;
team?: ...;
thread?: ...;
type?: ...;
user?: ...;
visibility?: ...;
},
{
acl?: ...;
actors?: ...;
agent?: ...;
agent_mode?: ...;
attachments?: ...;
branched_thread?: ...;
content?: ...;
context?: ...;
created_at?: ...;
has_replies?: ...;
id: ...;
idempotency_key?: ...;
is_deleted?: ...;
legacy_agent?: ...;
metadata?: ...;
org?: ...;
reactions?: ...;
rendering_mode?: ...;
replies?: ...;
replies_after_cursor?: ...;
replies_before_cursor?: ...;
reply_count?: ...;
reply_to?: ...;
root_message_id?: ...;
sandbox?: ...;
team?: ...;
thread?: ...;
type?: ...;
user?: ...;
visibility?: ...;
},
>,
>,
>;
participant: ZodOptional<ZodArray<ZodString, "many">>;
participants: ZodOptional<
ZodArray<
ZodObject<
{
alias: ...;
app: ...;
app_name: ...;
created_by_agent_user: ...;
created_by_developer: ...;
created_by_org: ...;
created_by_team: ...;
created_by_user: ...;
email: ...;
id: ...;
is_system_user: ...;
metadata: ...;
name: ...;
org: ...;
org_name: ...;
org_role: ...;
org_slug: ...;
sandbox: ...;
sandbox_name: ...;
},
"strip",
ZodTypeAny,
{
alias?: ...;
app?: ...;
app_name?: ...;
created_by_agent_user?: ...;
created_by_developer?: ...;
created_by_org?: ...;
created_by_team?: ...;
created_by_user?: ...;
email?: ...;
id: ...;
is_system_user?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_name?: ...;
org_role?: ...;
org_slug?: ...;
sandbox?: ...;
sandbox_name?: ...;
},
{
alias?: ...;
app?: ...;
app_name?: ...;
created_by_agent_user?: ...;
created_by_developer?: ...;
created_by_org?: ...;
created_by_team?: ...;
created_by_user?: ...;
email?: ...;
id: ...;
is_system_user?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_name?: ...;
org_role?: ...;
org_slug?: ...;
sandbox?: ...;
sandbox_name?: ...;
},
>,
"many",
>,
>;
participating_actor: ZodOptional<ZodArray<ZodString, "many">>;
participating_agents: ZodOptional<
ZodNullable<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>,
>;
role: ZodOptional<ZodNullable<ZodString>>;
sandbox: ZodOptional<ZodNullable<ZodString>>;
settings: ZodOptional<
ZodObject<
{ agent_enabled: ZodOptional<(...)> },
"strip",
ZodTypeAny,
{ agent_enabled?: (...) | (...) | (...) | (...) },
{ agent_enabled?: (...) | (...) | (...) | (...) },
>,
>;
slug: ZodOptional<ZodNullable<ZodString>>;
sub_threads: ZodOptional<
ZodNullable<ZodArray<ZodRecord<(...), (...)>, "many">>,
>;
tags: ZodOptional<ZodArray<ZodString, "many">>;
team: ZodOptional<ZodNullable<ZodString>>;
title: ZodOptional<ZodNullable<ZodString>>;
ttl: ZodOptional<ZodNullable<ZodString>>;
unread_count: ZodOptional<ZodNullable<ZodNumber>>;
updated_at: ZodOptional<ZodString>;
user: ZodOptional<ZodNullable<ZodString>>;
visibility: ZodEnum<["team", "restricted", "private"]>;
},
"strip",
ZodTypeAny,
{
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: { add?: ...; grants?: ...; remove?: ... }
| null;
actors?: (...)[];
agent?: string | null;
agent_mode?: "cli" | "embedded" | null;
attachments?: (...)[];
branched_thread?: string | null;
content?: string | null;
context?: (...)[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string | null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<(...), (...)>;
org?: string | null;
reactions?: (...)[];
rendering_mode?: string | null;
replies?: (...)[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<(...), (...)> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: ...;
app?: ...;
app_name?: ...;
created_by_agent_user?: ...;
created_by_developer?: ...;
created_by_org?: ...;
created_by_team?: ...;
created_by_user?: ...;
email?: ...;
id: ...;
is_system_user?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_name?: ...;
org_role?: ...;
org_slug?: ...;
sandbox?: ...;
sandbox_name?: ...;
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: (...)
| (...)
| (...);
app?: (...) | (...);
created_at?: (...) | (...);
default_model?: (...) | (...) | (...);
description?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
identity?: (...) | (...) | (...);
last_applied_template_config?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
originator?: (...) | (...) | (...);
phone_number?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
source_solution?: (...) | (...) | (...);
team?: (...) | (...) | (...);
template_upgrade_available?: (...) | (...) | (...) | (...);
updated_at?: (...) | (...);
user?: (...) | (...) | (...);
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, (...) | (...)>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
},
{
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: { add?: ...; grants?: ...; remove?: ... }
| null;
actors?: (...)[];
agent?: string | null;
agent_mode?: "cli" | "embedded" | null;
attachments?: (...)[];
branched_thread?: string | null;
content?: string | null;
context?: (...)[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string | null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<(...), (...)>;
org?: string | null;
reactions?: (...)[];
rendering_mode?: string | null;
replies?: (...)[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<(...), (...)> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: ...;
app?: ...;
app_name?: ...;
created_by_agent_user?: ...;
created_by_developer?: ...;
created_by_org?: ...;
created_by_team?: ...;
created_by_user?: ...;
email?: ...;
id: ...;
is_system_user?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_name?: ...;
org_role?: ...;
org_slug?: ...;
sandbox?: ...;
sandbox_name?: ...;
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: (...)
| (...)
| (...);
app?: (...) | (...);
created_at?: (...) | (...);
default_model?: (...) | (...) | (...);
description?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
identity?: (...) | (...) | (...);
last_applied_template_config?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
originator?: (...) | (...) | (...);
phone_number?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
source_solution?: (...) | (...) | (...);
team?: (...) | (...) | (...);
template_upgrade_available?: (...) | (...) | (...) | (...);
updated_at?: (...) | (...);
user?: (...) | (...) | (...);
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, (...) | (...)>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
},
>;
},
"strip",
ZodTypeAny,
{
after_cursor?: string;
agent?: {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
solution: {
category_keys?: (...)
| (...);
created_at?: (...) | (...);
description?: (...) | (...) | (...);
events?: (...) | (...);
id: string;
image_url?: (...) | (...) | (...);
installed_config_ids: (...)[];
kind: string;
latest_solution?: (...) | (...) | (...);
latest_version?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_logo?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
owners: (...)[];
readme_url?: (...) | (...) | (...);
screenshot_urls?: (...) | (...);
solution_id?: (...) | (...) | (...);
solution_version?: (...) | (...) | (...);
tag_keys?: (...) | (...);
template_kind?: (...) | (...) | (...);
templates: (...)[];
updated_at?: (...) | (...);
upgrade_available: boolean;
virtual_path?: (...) | (...) | (...);
};
template: {
created_at?: (...)
| (...);
description?: (...) | (...) | (...);
display_name?: (...) | (...) | (...);
id: string;
kind: string;
lookup_key?: (...) | (...) | (...);
name?: (...) | (...) | (...);
updated_at?: (...) | (...);
virtual_path?: (...) | (...) | (...);
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
};
before_cursor?: string;
is_transient: boolean;
members: {
agent?: {
acl?: { add?: ...; grants?: ...; remove?: ... }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| { current_solution?: ...; solution: ...; template: ... }
| null;
team?: string | null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
};
membership_type?: string;
type: string;
user?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
};
}[];
messages: {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
actors?: {
alias?: (...) | (...) | (...);
id?: (...) | (...) | (...);
name?: (...) | (...) | (...);
profile_picture?: (...) | (...) | (...);
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: (...) | (...) | (...);
description?: (...) | (...) | (...);
filename?: (...) | (...) | (...);
height?: (...) | (...) | (...);
id: string;
image_height?: (...) | (...) | (...);
image_source?: (...) | (...) | (...);
image_url?: (...) | (...) | (...);
image_width?: (...) | (...) | (...);
media_type?: (...) | (...);
name?: (...) | (...) | (...);
object?: (...) | (...);
title?: (...) | (...) | (...);
type: string;
url?: (...) | (...) | (...);
variants?: (...) | (...);
version?: (...) | (...) | (...);
width?: (...) | (...) | (...);
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: (...) | (...);
content?: (...) | (...) | (...);
title?: (...) | (...) | (...);
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: (...) | (...);
type: string;
user?: (...) | (...);
}[];
rendering_mode?: string
| null;
replies?: Record<string, (...) | (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}[];
messages_loaded_on_last_update?: number;
team?: {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
app?: string;
badges?: Record<string, {} | null> | null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
};
thread: {
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
actors?: {
alias?: ...;
id?: ...;
name?: ...;
profile_picture?: ...;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: ...;
description?: ...;
filename?: ...;
height?: ...;
id: ...;
image_height?: ...;
image_source?: ...;
image_url?: ...;
image_width?: ...;
media_type?: ...;
name?: ...;
object?: ...;
title?: ...;
type: ...;
url?: ...;
variants?: ...;
version?: ...;
width?: ...;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: ...;
content?: ...;
title?: ...;
type: ...;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, (...) | (...)>;
org?: string | null;
reactions?: { payload?: ...; type: ...; user?: ... }[];
rendering_mode?: string | null;
replies?: Record<(...), (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, (...) | (...)> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: { add?: ...; grants?: ...; remove?: ... }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| { current_solution?: ...; solution: ...; template: ... }
| null;
team?: string | null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, {} | null>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
};
},
{
after_cursor?: string;
agent?: {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
solution: {
category_keys?: (...)
| (...);
created_at?: (...) | (...);
description?: (...) | (...) | (...);
events?: (...) | (...);
id: string;
image_url?: (...) | (...) | (...);
installed_config_ids: (...)[];
kind: string;
latest_solution?: (...) | (...) | (...);
latest_version?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_logo?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
owners: (...)[];
readme_url?: (...) | (...) | (...);
screenshot_urls?: (...) | (...);
solution_id?: (...) | (...) | (...);
solution_version?: (...) | (...) | (...);
tag_keys?: (...) | (...);
template_kind?: (...) | (...) | (...);
templates: (...)[];
updated_at?: (...) | (...);
upgrade_available: boolean;
virtual_path?: (...) | (...) | (...);
};
template: {
created_at?: (...)
| (...);
description?: (...) | (...) | (...);
display_name?: (...) | (...) | (...);
id: string;
kind: string;
lookup_key?: (...) | (...) | (...);
name?: (...) | (...) | (...);
updated_at?: (...) | (...);
virtual_path?: (...) | (...) | (...);
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
};
before_cursor?: string;
is_transient: boolean;
members: {
agent?: {
acl?: { add?: ...; grants?: ...; remove?: ... }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| { current_solution?: ...; solution: ...; template: ... }
| null;
team?: string | null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
};
membership_type?: string;
type: string;
user?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
};
}[];
messages: {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
actors?: {
alias?: (...) | (...) | (...);
id?: (...) | (...) | (...);
name?: (...) | (...) | (...);
profile_picture?: (...) | (...) | (...);
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: (...) | (...) | (...);
description?: (...) | (...) | (...);
filename?: (...) | (...) | (...);
height?: (...) | (...) | (...);
id: string;
image_height?: (...) | (...) | (...);
image_source?: (...) | (...) | (...);
image_url?: (...) | (...) | (...);
image_width?: (...) | (...) | (...);
media_type?: (...) | (...);
name?: (...) | (...) | (...);
object?: (...) | (...);
title?: (...) | (...) | (...);
type: string;
url?: (...) | (...) | (...);
variants?: (...) | (...);
version?: (...) | (...) | (...);
width?: (...) | (...) | (...);
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: (...) | (...);
content?: (...) | (...) | (...);
title?: (...) | (...) | (...);
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: (...) | (...);
type: string;
user?: (...) | (...);
}[];
rendering_mode?: string
| null;
replies?: Record<string, (...) | (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}[];
messages_loaded_on_last_update?: number;
team?: {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
app?: string;
badges?: Record<string, {} | null> | null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
};
thread: {
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
actors?: {
alias?: ...;
id?: ...;
name?: ...;
profile_picture?: ...;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: ...;
description?: ...;
filename?: ...;
height?: ...;
id: ...;
image_height?: ...;
image_source?: ...;
image_url?: ...;
image_width?: ...;
media_type?: ...;
name?: ...;
object?: ...;
title?: ...;
type: ...;
url?: ...;
variants?: ...;
version?: ...;
width?: ...;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: ...;
content?: ...;
title?: ...;
type: ...;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, (...) | (...)>;
org?: string | null;
reactions?: { payload?: ...; type: ...; user?: ... }[];
rendering_mode?: string | null;
replies?: Record<(...), (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, (...) | (...)> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: { add?: ...; grants?: ...; remove?: ... }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| { current_solution?: ...; solution: ...; template: ... }
| null;
team?: string | null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, {} | null>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
};
},
>,
>;
team: ZodOptional<
ZodObject<
{
acl: ZodOptional<
ZodNullable<
ZodObject<
{
add: ZodOptional<ZodArray<(...), (...)>>;
grants: ZodOptional<ZodArray<(...), (...)>>;
remove: ZodOptional<ZodArray<(...), (...)>>;
},
"strip",
ZodTypeAny,
{ add?: (...)[]; grants?: (...)[]; remove?: (...)[] },
{ add?: (...)[]; grants?: (...)[]; remove?: (...)[] },
>,
>,
>;
app: ZodOptional<ZodString>;
badges: ZodOptional<
ZodNullable<
ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
>,
>;
created_at: ZodOptional<ZodString>;
description: ZodOptional<ZodNullable<ZodString>>;
id: ZodString;
membership_status: ZodOptional<ZodNullable<ZodString>>;
metadata: ZodOptional<
ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
>;
name: ZodOptional<ZodString>;
org: ZodOptional<ZodNullable<ZodString>>;
sandbox: ZodOptional<ZodNullable<ZodString>>;
slug: ZodOptional<ZodNullable<ZodString>>;
updated_at: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
acl?: | {
add?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
grants?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
remove?: { principal?: (...)
| (...); principal_type: string }[];
}
| null;
app?: string;
badges?: Record<string, {} | null>
| null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
},
{
acl?: | {
add?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
grants?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
remove?: { principal?: (...)
| (...); principal_type: string }[];
}
| null;
app?: string;
badges?: Record<string, {} | null>
| null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
},
>,
>;
thread: ZodObject<
{
agent_user: ZodOptional<ZodNullable<ZodString>>;
created_at: ZodOptional<ZodString>;
creator: ZodOptional<
ZodNullable<
ZodUnion<
[
ZodString,
ZodObject<
{
alias: ZodOptional<(...)>;
app: ZodOptional<(...)>;
app_name: ZodOptional<(...)>;
created_by_agent_user: ZodOptional<(...)>;
created_by_developer: ZodOptional<(...)>;
created_by_org: ZodOptional<(...)>;
created_by_team: ZodOptional<(...)>;
created_by_user: ZodOptional<(...)>;
email: ZodOptional<(...)>;
id: ZodString;
is_system_user: ZodOptional<(...)>;
metadata: ZodOptional<(...)>;
name: ZodOptional<(...)>;
org: ZodOptional<(...)>;
org_name: ZodOptional<(...)>;
org_role: ZodOptional<(...)>;
org_slug: ZodOptional<(...)>;
sandbox: ZodOptional<(...)>;
sandbox_name: ZodOptional<(...)>;
},
"strip",
ZodTypeAny,
{
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
},
{
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
},
>,
],
>,
>,
>;
description: ZodOptional<ZodNullable<ZodString>>;
id: ZodString;
is_channel: ZodOptional<ZodBoolean>;
is_default: ZodOptional<ZodBoolean>;
is_transient: ZodOptional<ZodBoolean>;
is_unlisted: ZodOptional<ZodBoolean>;
key: ZodOptional<ZodNullable<ZodString>>;
kind: ZodOptional<ZodNullable<ZodString>>;
last_activity: ZodOptional<ZodNullable<ZodString>>;
last_message_preview: ZodOptional<ZodNullable<ZodString>>;
last_message_sender: ZodOptional<ZodNullable<ZodString>>;
metadata: ZodOptional<
ZodNullable<
ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
>,
>;
muted: ZodOptional<ZodBoolean>;
org: ZodOptional<ZodNullable<ZodString>>;
parent_message: ZodOptional<
ZodNullable<
ZodObject<
{
acl: ZodOptional<
ZodNullable<ZodObject<(...), (...), (...), (...), (...)>>,
>;
actors: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
agent: ZodOptional<ZodNullable<ZodString>>;
agent_mode: ZodOptional<ZodNullable<ZodEnum<(...)>>>;
attachments: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
branched_thread: ZodOptional<ZodNullable<ZodString>>;
content: ZodOptional<ZodNullable<ZodString>>;
context: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
created_at: ZodOptional<ZodString>;
has_replies: ZodOptional<ZodBoolean>;
id: ZodString;
idempotency_key: ZodOptional<ZodNullable<ZodString>>;
is_deleted: ZodOptional<ZodBoolean>;
legacy_agent: ZodOptional<ZodNullable<ZodString>>;
metadata: ZodOptional<
ZodRecord<ZodString, ZodType<(...), (...), (...)>>,
>;
org: ZodOptional<ZodNullable<ZodString>>;
reactions: ZodOptional<
ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
>;
rendering_mode: ZodOptional<ZodNullable<ZodString>>;
replies: ZodOptional<ZodArray<ZodRecord<(...), (...)>, "many">>;
replies_after_cursor: ZodOptional<ZodNullable<ZodString>>;
replies_before_cursor: ZodOptional<ZodNullable<ZodString>>;
reply_count: ZodOptional<ZodNumber>;
reply_to: ZodOptional<ZodNullable<ZodRecord<(...), (...)>>>;
root_message_id: ZodOptional<ZodNullable<ZodString>>;
sandbox: ZodOptional<ZodNullable<ZodString>>;
team: ZodOptional<ZodNullable<ZodString>>;
thread: ZodOptional<ZodString>;
type: ZodOptional<ZodNullable<ZodString>>;
user: ZodOptional<ZodNullable<ZodUnion<(...)>>>;
visibility: ZodOptional<ZodEnum<[(...), (...)]>>;
},
"strip",
ZodTypeAny,
{
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
actors?: {
alias?: ...;
id?: ...;
name?: ...;
profile_picture?: ...;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: ...;
description?: ...;
filename?: ...;
height?: ...;
id: ...;
image_height?: ...;
image_source?: ...;
image_url?: ...;
image_width?: ...;
media_type?: ...;
name?: ...;
object?: ...;
title?: ...;
type: ...;
url?: ...;
variants?: ...;
version?: ...;
width?: ...;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: ...;
content?: ...;
title?: ...;
type: ...;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, (...) | (...)>;
org?: string | null;
reactions?: { payload?: ...; type: ...; user?: ... }[];
rendering_mode?: string | null;
replies?: Record<(...), (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, (...) | (...)> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
}
| null;
visibility?: "default"
| "private";
},
{
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
actors?: {
alias?: ...;
id?: ...;
name?: ...;
profile_picture?: ...;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: ...;
description?: ...;
filename?: ...;
height?: ...;
id: ...;
image_height?: ...;
image_source?: ...;
image_url?: ...;
image_width?: ...;
media_type?: ...;
name?: ...;
object?: ...;
title?: ...;
type: ...;
url?: ...;
variants?: ...;
version?: ...;
width?: ...;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: ...;
content?: ...;
title?: ...;
type: ...;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, (...) | (...)>;
org?: string | null;
reactions?: { payload?: ...; type: ...; user?: ... }[];
rendering_mode?: string | null;
replies?: Record<(...), (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, (...) | (...)> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: (...)
| (...)
| (...);
app?: (...) | (...) | (...);
app_name?: (...) | (...) | (...);
created_by_agent_user?: (...) | (...) | (...);
created_by_developer?: (...) | (...) | (...);
created_by_org?: (...) | (...) | (...);
created_by_team?: (...) | (...) | (...);
created_by_user?: (...) | (...) | (...);
email?: (...) | (...) | (...);
id: string;
is_system_user?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_role?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
sandbox?: (...) | (...) | (...);
sandbox_name?: (...) | (...) | (...);
}
| null;
visibility?: "default"
| "private";
},
>,
>,
>;
participant: ZodOptional<ZodArray<ZodString, "many">>;
participants: ZodOptional<
ZodArray<
ZodObject<
{
alias: ZodOptional<ZodNullable<ZodString>>;
app: ZodOptional<ZodNullable<ZodString>>;
app_name: ZodOptional<ZodNullable<ZodString>>;
created_by_agent_user: ZodOptional<ZodNullable<ZodString>>;
created_by_developer: ZodOptional<ZodNullable<ZodString>>;
created_by_org: ZodOptional<ZodNullable<ZodString>>;
created_by_team: ZodOptional<ZodNullable<ZodString>>;
created_by_user: ZodOptional<ZodNullable<ZodString>>;
email: ZodOptional<ZodNullable<ZodString>>;
id: ZodString;
is_system_user: ZodOptional<ZodBoolean>;
metadata: ZodOptional<
ZodRecord<ZodString, ZodType<(...), (...), (...)>>,
>;
name: ZodOptional<ZodNullable<ZodString>>;
org: ZodOptional<ZodNullable<ZodString>>;
org_name: ZodOptional<ZodNullable<ZodString>>;
org_role: ZodOptional<ZodNullable<ZodString>>;
org_slug: ZodOptional<ZodNullable<ZodString>>;
sandbox: ZodOptional<ZodNullable<ZodString>>;
sandbox_name: ZodOptional<ZodNullable<ZodString>>;
},
"strip",
ZodTypeAny,
{
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
},
{
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
},
>,
"many",
>,
>;
participating_actor: ZodOptional<ZodArray<ZodString, "many">>;
participating_agents: ZodOptional<
ZodNullable<
ZodArray<
ZodObject<
{
acl: ZodOptional<ZodNullable<(...)>>;
app: ZodOptional<ZodString>;
created_at: ZodOptional<ZodString>;
default_model: ZodOptional<ZodNullable<(...)>>;
description: ZodOptional<ZodNullable<(...)>>;
email: ZodOptional<ZodNullable<(...)>>;
id: ZodString;
identity: ZodOptional<ZodNullable<(...)>>;
last_applied_template_config: ZodOptional<ZodNullable<(...)>>;
lookup_key: ZodOptional<ZodNullable<(...)>>;
metadata: ZodOptional<ZodRecord<(...), (...)>>;
name: ZodOptional<ZodString>;
org: ZodOptional<ZodNullable<(...)>>;
org_name: ZodOptional<ZodNullable<(...)>>;
originator: ZodOptional<ZodNullable<(...)>>;
phone_number: ZodOptional<ZodNullable<(...)>>;
sandbox: ZodOptional<ZodNullable<(...)>>;
source_solution: ZodOptional<ZodNullable<(...)>>;
team: ZodOptional<ZodNullable<(...)>>;
template_upgrade_available: ZodOptional<ZodNullable<(...)>>;
updated_at: ZodOptional<ZodString>;
user: ZodOptional<ZodNullable<(...)>>;
},
"strip",
ZodTypeAny,
{
acl?: { add?: ...; grants?: ...; remove?: ... }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| { current_solution?: ...; solution: ...; template: ... }
| null;
team?: string | null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
},
{
acl?: { add?: ...; grants?: ...; remove?: ... }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| { current_solution?: ...; solution: ...; template: ... }
| null;
team?: string | null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
},
>,
"many",
>,
>,
>;
role: ZodOptional<ZodNullable<ZodString>>;
sandbox: ZodOptional<ZodNullable<ZodString>>;
settings: ZodOptional<
ZodObject<
{ agent_enabled: ZodOptional<ZodNullable<ZodBoolean>> },
"strip",
ZodTypeAny,
{ agent_enabled?: boolean | null },
{ agent_enabled?: boolean | null },
>,
>;
slug: ZodOptional<ZodNullable<ZodString>>;
sub_threads: ZodOptional<
ZodNullable<
ZodArray<
ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
"many",
>,
>,
>;
tags: ZodOptional<ZodArray<ZodString, "many">>;
team: ZodOptional<ZodNullable<ZodString>>;
title: ZodOptional<ZodNullable<ZodString>>;
ttl: ZodOptional<ZodNullable<ZodString>>;
unread_count: ZodOptional<ZodNullable<ZodNumber>>;
updated_at: ZodOptional<ZodString>;
user: ZodOptional<ZodNullable<ZodString>>;
visibility: ZodEnum<["team", "restricted", "private"]>;
},
"strip",
ZodTypeAny,
{
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
actors?: {
alias?: string
| null;
id?: string | null;
name?: string | null;
profile_picture?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: string | null;
description?: string | null;
filename?: string | null;
height?: number | null;
id: string;
image_height?: number | null;
image_source?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
image_url?: string
| null;
image_width?: number | null;
media_type?: string;
name?: string | null;
object?: Record<(...), (...)>;
title?: string | null;
type: string;
url?: string | null;
variants?: (...)[];
version?: number | null;
width?: number | null;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: Record<(...), (...)>;
content?: string | null;
title?: string | null;
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: Record<(...), (...)>;
type: string;
user?: string;
}[];
rendering_mode?: string
| null;
replies?: Record<string, {} | null>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
solution: {
category_keys?: (...)
| (...);
created_at?: (...) | (...);
description?: (...) | (...) | (...);
events?: (...) | (...);
id: string;
image_url?: (...) | (...) | (...);
installed_config_ids: (...)[];
kind: string;
latest_solution?: (...) | (...) | (...);
latest_version?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_logo?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
owners: (...)[];
readme_url?: (...) | (...) | (...);
screenshot_urls?: (...) | (...);
solution_id?: (...) | (...) | (...);
solution_version?: (...) | (...) | (...);
tag_keys?: (...) | (...);
template_kind?: (...) | (...) | (...);
templates: (...)[];
updated_at?: (...) | (...);
upgrade_available: boolean;
virtual_path?: (...) | (...) | (...);
};
template: {
created_at?: (...)
| (...);
description?: (...) | (...) | (...);
display_name?: (...) | (...) | (...);
id: string;
kind: string;
lookup_key?: (...) | (...) | (...);
name?: (...) | (...) | (...);
updated_at?: (...) | (...);
virtual_path?: (...) | (...) | (...);
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, {} | null>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
},
{
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
actors?: {
alias?: string
| null;
id?: string | null;
name?: string | null;
profile_picture?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: string | null;
description?: string | null;
filename?: string | null;
height?: number | null;
id: string;
image_height?: number | null;
image_source?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
image_url?: string
| null;
image_width?: number | null;
media_type?: string;
name?: string | null;
object?: Record<(...), (...)>;
title?: string | null;
type: string;
url?: string | null;
variants?: (...)[];
version?: number | null;
width?: number | null;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: Record<(...), (...)>;
content?: string | null;
title?: string | null;
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: Record<(...), (...)>;
type: string;
user?: string;
}[];
rendering_mode?: string
| null;
replies?: Record<string, {} | null>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
app?: string;
created_at?: string;
default_model?: string | null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
solution: {
category_keys?: (...)
| (...);
created_at?: (...) | (...);
description?: (...) | (...) | (...);
events?: (...) | (...);
id: string;
image_url?: (...) | (...) | (...);
installed_config_ids: (...)[];
kind: string;
latest_solution?: (...) | (...) | (...);
latest_version?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_logo?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
owners: (...)[];
readme_url?: (...) | (...) | (...);
screenshot_urls?: (...) | (...);
solution_id?: (...) | (...) | (...);
solution_version?: (...) | (...) | (...);
tag_keys?: (...) | (...);
template_kind?: (...) | (...) | (...);
templates: (...)[];
updated_at?: (...) | (...);
upgrade_available: boolean;
virtual_path?: (...) | (...) | (...);
};
template: {
created_at?: (...)
| (...);
description?: (...) | (...) | (...);
display_name?: (...) | (...) | (...);
id: string;
kind: string;
lookup_key?: (...) | (...) | (...);
name?: (...) | (...) | (...);
updated_at?: (...) | (...);
virtual_path?: (...) | (...) | (...);
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, {} | null>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
},
>;
},
"strip",
ZodTypeAny,
{
chat_model?: {
after_cursor?: string;
agent?: {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: {
category_keys?: (...)
| (...);
created_at?: (...) | (...);
description?: (...) | (...) | (...);
events?: (...) | (...);
id: string;
image_url?: (...) | (...) | (...);
installed_config_ids: (...)[];
kind: string;
latest_solution?: (...) | (...) | (...);
latest_version?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_logo?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
owners: (...)[];
readme_url?: (...) | (...) | (...);
screenshot_urls?: (...) | (...);
solution_id?: (...) | (...) | (...);
solution_version?: (...) | (...) | (...);
tag_keys?: (...) | (...);
template_kind?: (...) | (...) | (...);
templates: (...)[];
updated_at?: (...) | (...);
upgrade_available: boolean;
virtual_path?: (...) | (...) | (...);
};
solution: {
category_keys?: (...)[];
created_at?: string;
description?: string | null;
events?: Record<(...), (...)>;
id: string;
image_url?: string | null;
installed_config_ids: string[];
kind: string;
latest_solution?: string | null;
latest_version?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_logo?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
org_name?: string
| null;
org_slug?: string | null;
owners: string[];
readme_url?: string | null;
screenshot_urls?: (...)[];
solution_id?: string | null;
solution_version?: string | null;
tag_keys?: (...)[];
template_kind?: string | null;
templates: {
description?: ...;
details?: ...;
display_name?: ...;
id?: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
readme_url?: ...;
virtual_path?: ...;
}[];
updated_at?: string;
upgrade_available: boolean;
virtual_path?: string
| null;
};
template: {
created_at?: string;
description?: string
| null;
display_name?: string | null;
id: string;
kind: string;
lookup_key?: string | null;
name?: string | null;
updated_at?: string;
virtual_path?: string | null;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
};
before_cursor?: string;
is_transient: boolean;
members: {
agent?: {
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, (...) | (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: (...)
| (...);
solution: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
template: {
created_at?: ...;
description?: ...;
display_name?: ...;
id: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
updated_at?: ...;
virtual_path?: ...;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
};
membership_type?: string;
type: string;
user?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
};
}[];
messages: {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
actors?: {
alias?: string
| null;
id?: string | null;
name?: string | null;
profile_picture?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: string | null;
description?: string | null;
filename?: string | null;
height?: number | null;
id: string;
image_height?: number | null;
image_source?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
image_url?: string
| null;
image_width?: number | null;
media_type?: string;
name?: string | null;
object?: Record<(...), (...)>;
title?: string | null;
type: string;
url?: string | null;
variants?: (...)[];
version?: number | null;
width?: number | null;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: Record<(...), (...)>;
content?: string | null;
title?: string | null;
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: Record<(...), (...)>;
type: string;
user?: string;
}[];
rendering_mode?: string
| null;
replies?: Record<string, {} | null>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}[];
messages_loaded_on_last_update?: number;
team?: {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
app?: string;
badges?: Record<string, {} | null>
| null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
};
thread: {
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
actors?: {
alias?: (...) | (...) | (...);
id?: (...) | (...) | (...);
name?: (...) | (...) | (...);
profile_picture?: (...) | (...) | (...);
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: (...) | (...) | (...);
description?: (...) | (...) | (...);
filename?: (...) | (...) | (...);
height?: (...) | (...) | (...);
id: string;
image_height?: (...) | (...) | (...);
image_source?: (...) | (...) | (...);
image_url?: (...) | (...) | (...);
image_width?: (...) | (...) | (...);
media_type?: (...) | (...);
name?: (...) | (...) | (...);
object?: (...) | (...);
title?: (...) | (...) | (...);
type: string;
url?: (...) | (...) | (...);
variants?: (...) | (...);
version?: (...) | (...) | (...);
width?: (...) | (...) | (...);
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: (...) | (...);
content?: (...) | (...) | (...);
title?: (...) | (...) | (...);
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: (...) | (...);
type: string;
user?: (...) | (...);
}[];
rendering_mode?: string
| null;
replies?: Record<string, (...) | (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, (...) | (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: (...)
| (...);
solution: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
template: {
created_at?: ...;
description?: ...;
display_name?: ...;
id: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
updated_at?: ...;
virtual_path?: ...;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, {} | null>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
};
};
team?: {
acl?: | {
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
remove?: { principal?: string; principal_type: string }[];
}
| null;
app?: string;
badges?: Record<string, {} | null>
| null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
};
thread: {
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: | {
add?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
grants?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
remove?: { principal?: (...)
| (...); principal_type: string }[];
}
| null;
actors?: {
alias?: string
| null;
id?: string | null;
name?: string | null;
profile_picture?:
| {
file?: (...)
| (...)
| (...);
height?: (...) | (...) | (...);
media?: (...) | (...) | (...);
mime_type?: (...) | (...) | (...);
refresh_url?: (...) | (...) | (...);
url?: (...) | (...) | (...);
width?: (...) | (...) | (...);
}
| null;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: string | null;
description?: string | null;
filename?: string | null;
height?: number | null;
id: string;
image_height?: number | null;
image_source?:
| {
file?: (...)
| (...)
| (...);
height?: (...) | (...) | (...);
media?: (...) | (...) | (...);
mime_type?: (...) | (...) | (...);
refresh_url?: (...) | (...) | (...);
url?: (...) | (...) | (...);
width?: (...) | (...) | (...);
}
| null;
image_url?: string
| null;
image_width?: number | null;
media_type?: string;
name?: string | null;
object?: Record<string, (...) | (...)>;
title?: string | null;
type: string;
url?: string | null;
variants?: {
content_type?: ...;
created_at?: ...;
file?: ...;
filename?: ...;
height?: ...;
id: ...;
image_source?: ...;
updated_at?: ...;
url?: ...;
variant_key?: ...;
width?: ...;
}[];
version?: number
| null;
width?: number | null;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: Record<string, (...) | (...)>;
content?: string | null;
title?: string | null;
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: Record<string, (...) | (...)>;
type: string;
user?: string;
}[];
rendering_mode?: string
| null;
replies?: Record<string, {} | null>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: {
category_keys?: (...)
| (...);
created_at?: (...) | (...);
description?: (...) | (...) | (...);
events?: (...) | (...);
id: string;
image_url?: (...) | (...) | (...);
installed_config_ids: (...)[];
kind: string;
latest_solution?: (...) | (...) | (...);
latest_version?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_logo?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
owners: (...)[];
readme_url?: (...) | (...) | (...);
screenshot_urls?: (...) | (...);
solution_id?: (...) | (...) | (...);
solution_version?: (...) | (...) | (...);
tag_keys?: (...) | (...);
template_kind?: (...) | (...) | (...);
templates: (...)[];
updated_at?: (...) | (...);
upgrade_available: boolean;
virtual_path?: (...) | (...) | (...);
};
solution: {
category_keys?: (...)[];
created_at?: string;
description?: string | null;
events?: Record<(...), (...)>;
id: string;
image_url?: string | null;
installed_config_ids: string[];
kind: string;
latest_solution?: string | null;
latest_version?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_logo?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
org_name?: string
| null;
org_slug?: string | null;
owners: string[];
readme_url?: string | null;
screenshot_urls?: (...)[];
solution_id?: string | null;
solution_version?: string | null;
tag_keys?: (...)[];
template_kind?: string | null;
templates: {
description?: ...;
details?: ...;
display_name?: ...;
id?: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
readme_url?: ...;
virtual_path?: ...;
}[];
updated_at?: string;
upgrade_available: boolean;
virtual_path?: string
| null;
};
template: {
created_at?: string;
description?: string
| null;
display_name?: string | null;
id: string;
kind: string;
lookup_key?: string | null;
name?: string | null;
updated_at?: string;
virtual_path?: string | null;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, {} | null>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
};
},
{
chat_model?: {
after_cursor?: string;
agent?: {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: {
category_keys?: (...)
| (...);
created_at?: (...) | (...);
description?: (...) | (...) | (...);
events?: (...) | (...);
id: string;
image_url?: (...) | (...) | (...);
installed_config_ids: (...)[];
kind: string;
latest_solution?: (...) | (...) | (...);
latest_version?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_logo?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
owners: (...)[];
readme_url?: (...) | (...) | (...);
screenshot_urls?: (...) | (...);
solution_id?: (...) | (...) | (...);
solution_version?: (...) | (...) | (...);
tag_keys?: (...) | (...);
template_kind?: (...) | (...) | (...);
templates: (...)[];
updated_at?: (...) | (...);
upgrade_available: boolean;
virtual_path?: (...) | (...) | (...);
};
solution: {
category_keys?: (...)[];
created_at?: string;
description?: string | null;
events?: Record<(...), (...)>;
id: string;
image_url?: string | null;
installed_config_ids: string[];
kind: string;
latest_solution?: string | null;
latest_version?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_logo?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
org_name?: string
| null;
org_slug?: string | null;
owners: string[];
readme_url?: string | null;
screenshot_urls?: (...)[];
solution_id?: string | null;
solution_version?: string | null;
tag_keys?: (...)[];
template_kind?: string | null;
templates: {
description?: ...;
details?: ...;
display_name?: ...;
id?: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
readme_url?: ...;
virtual_path?: ...;
}[];
updated_at?: string;
upgrade_available: boolean;
virtual_path?: string
| null;
};
template: {
created_at?: string;
description?: string
| null;
display_name?: string | null;
id: string;
kind: string;
lookup_key?: string | null;
name?: string | null;
updated_at?: string;
virtual_path?: string | null;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
};
before_cursor?: string;
is_transient: boolean;
members: {
agent?: {
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, (...) | (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: (...)
| (...);
solution: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
template: {
created_at?: ...;
description?: ...;
display_name?: ...;
id: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
updated_at?: ...;
virtual_path?: ...;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
};
membership_type?: string;
type: string;
user?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
};
}[];
messages: {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
actors?: {
alias?: string
| null;
id?: string | null;
name?: string | null;
profile_picture?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: string | null;
description?: string | null;
filename?: string | null;
height?: number | null;
id: string;
image_height?: number | null;
image_source?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
image_url?: string
| null;
image_width?: number | null;
media_type?: string;
name?: string | null;
object?: Record<(...), (...)>;
title?: string | null;
type: string;
url?: string | null;
variants?: (...)[];
version?: number | null;
width?: number | null;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: Record<(...), (...)>;
content?: string | null;
title?: string | null;
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: Record<(...), (...)>;
type: string;
user?: string;
}[];
rendering_mode?: string
| null;
replies?: Record<string, {} | null>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}[];
messages_loaded_on_last_update?: number;
team?: {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
app?: string;
badges?: Record<string, {} | null>
| null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
};
thread: {
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
| null;
actors?: {
alias?: (...) | (...) | (...);
id?: (...) | (...) | (...);
name?: (...) | (...) | (...);
profile_picture?: (...) | (...) | (...);
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: (...) | (...) | (...);
description?: (...) | (...) | (...);
filename?: (...) | (...) | (...);
height?: (...) | (...) | (...);
id: string;
image_height?: (...) | (...) | (...);
image_source?: (...) | (...) | (...);
image_url?: (...) | (...) | (...);
image_width?: (...) | (...) | (...);
media_type?: (...) | (...);
name?: (...) | (...) | (...);
object?: (...) | (...);
title?: (...) | (...) | (...);
type: string;
url?: (...) | (...) | (...);
variants?: (...) | (...);
version?: (...) | (...) | (...);
width?: (...) | (...) | (...);
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: (...) | (...);
content?: (...) | (...) | (...);
title?: (...) | (...) | (...);
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: (...) | (...);
type: string;
user?: (...) | (...);
}[];
rendering_mode?: string
| null;
replies?: Record<string, (...) | (...)>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, (...) | (...)>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: | {
add?: (...)
| (...);
grants?: (...) | (...);
remove?: (...) | (...);
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, (...) | (...)>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: (...)
| (...);
solution: {
category_keys?: ...;
created_at?: ...;
description?: ...;
events?: ...;
id: ...;
image_url?: ...;
installed_config_ids: ...;
kind: ...;
latest_solution?: ...;
latest_version?: ...;
lookup_key?: ...;
metadata?: ...;
name?: ...;
org?: ...;
org_logo?: ...;
org_name?: ...;
org_slug?: ...;
owners: ...;
readme_url?: ...;
screenshot_urls?: ...;
solution_id?: ...;
solution_version?: ...;
tag_keys?: ...;
template_kind?: ...;
templates: ...;
updated_at?: ...;
upgrade_available: ...;
virtual_path?: ...;
};
template: {
created_at?: ...;
description?: ...;
display_name?: ...;
id: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
updated_at?: ...;
virtual_path?: ...;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, {} | null>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
};
};
team?: {
acl?: | {
add?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
grants?: {
actions: string[];
principal?: string;
principal_type: string;
}[];
remove?: { principal?: string; principal_type: string }[];
}
| null;
app?: string;
badges?: Record<string, {} | null>
| null;
created_at?: string;
description?: string | null;
id: string;
membership_status?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
sandbox?: string | null;
slug?: string | null;
updated_at?: string;
};
thread: {
agent_user?: string
| null;
created_at?: string;
creator?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
description?: string
| null;
id: string;
is_channel?: boolean;
is_default?: boolean;
is_transient?: boolean;
is_unlisted?: boolean;
key?: string | null;
kind?: string | null;
last_activity?: string | null;
last_message_preview?: string | null;
last_message_sender?: string | null;
metadata?: Record<string, {} | null> | null;
muted?: boolean;
org?: string | null;
parent_message?:
| {
acl?: | {
add?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
grants?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
remove?: { principal?: (...)
| (...); principal_type: string }[];
}
| null;
actors?: {
alias?: string
| null;
id?: string | null;
name?: string | null;
profile_picture?:
| {
file?: (...)
| (...)
| (...);
height?: (...) | (...) | (...);
media?: (...) | (...) | (...);
mime_type?: (...) | (...) | (...);
refresh_url?: (...) | (...) | (...);
url?: (...) | (...) | (...);
width?: (...) | (...) | (...);
}
| null;
}[];
agent?: string
| null;
agent_mode?: "cli" | "embedded" | null;
attachments?: {
content_type?: string | null;
description?: string | null;
filename?: string | null;
height?: number | null;
id: string;
image_height?: number | null;
image_source?:
| {
file?: (...)
| (...)
| (...);
height?: (...) | (...) | (...);
media?: (...) | (...) | (...);
mime_type?: (...) | (...) | (...);
refresh_url?: (...) | (...) | (...);
url?: (...) | (...) | (...);
width?: (...) | (...) | (...);
}
| null;
image_url?: string
| null;
image_width?: number | null;
media_type?: string;
name?: string | null;
object?: Record<string, (...) | (...)>;
title?: string | null;
type: string;
url?: string | null;
variants?: {
content_type?: ...;
created_at?: ...;
file?: ...;
filename?: ...;
height?: ...;
id: ...;
image_source?: ...;
updated_at?: ...;
url?: ...;
variant_key?: ...;
width?: ...;
}[];
version?: number
| null;
width?: number | null;
}[];
branched_thread?: string
| null;
content?: string | null;
context?: {
attributes?: Record<string, (...) | (...)>;
content?: string | null;
title?: string | null;
type: string;
}[];
created_at?: string;
has_replies?: boolean;
id: string;
idempotency_key?: string
| null;
is_deleted?: boolean;
legacy_agent?: string | null;
metadata?: Record<string, {} | null>;
org?: string | null;
reactions?: {
payload?: Record<string, (...) | (...)>;
type: string;
user?: string;
}[];
rendering_mode?: string
| null;
replies?: Record<string, {} | null>[];
replies_after_cursor?: string | null;
replies_before_cursor?: string | null;
reply_count?: number;
reply_to?: Record<string, {} | null> | null;
root_message_id?: string | null;
sandbox?: string | null;
team?: string | null;
thread?: string;
type?: string | null;
user?:
| string
| {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}
| null;
visibility?: "default"
| "private";
}
| null;
participant?: string[];
participants?: {
alias?: string
| null;
app?: string | null;
app_name?: string | null;
created_by_agent_user?: string | null;
created_by_developer?: string | null;
created_by_org?: string | null;
created_by_team?: string | null;
created_by_user?: string | null;
email?: string | null;
id: string;
is_system_user?: boolean;
metadata?: Record<string, {} | null>;
name?: string | null;
org?: string | null;
org_name?: string | null;
org_role?: string | null;
org_slug?: string | null;
sandbox?: string | null;
sandbox_name?: string | null;
}[];
participating_actor?: string[];
participating_agents?: | {
acl?: | {
add?: { actions: ...; principal?: ...; principal_type: ... }[];
grants?: { actions: ...; principal?: ...; principal_type: ... }[];
remove?: { principal?: ...; principal_type: ... }[];
}
| null;
app?: string;
created_at?: string;
default_model?: string
| null;
description?: string | null;
email?: string | null;
id: string;
identity?: string | null;
last_applied_template_config?: string | null;
lookup_key?: string | null;
metadata?: Record<string, {} | null>;
name?: string;
org?: string | null;
org_name?: string | null;
originator?: string | null;
phone_number?: string | null;
sandbox?: string | null;
source_solution?:
| {
current_solution?: {
category_keys?: (...)
| (...);
created_at?: (...) | (...);
description?: (...) | (...) | (...);
events?: (...) | (...);
id: string;
image_url?: (...) | (...) | (...);
installed_config_ids: (...)[];
kind: string;
latest_solution?: (...) | (...) | (...);
latest_version?: (...) | (...) | (...);
lookup_key?: (...) | (...) | (...);
metadata?: (...) | (...);
name?: (...) | (...) | (...);
org?: (...) | (...) | (...);
org_logo?: (...) | (...) | (...);
org_name?: (...) | (...) | (...);
org_slug?: (...) | (...) | (...);
owners: (...)[];
readme_url?: (...) | (...) | (...);
screenshot_urls?: (...) | (...);
solution_id?: (...) | (...) | (...);
solution_version?: (...) | (...) | (...);
tag_keys?: (...) | (...);
template_kind?: (...) | (...) | (...);
templates: (...)[];
updated_at?: (...) | (...);
upgrade_available: boolean;
virtual_path?: (...) | (...) | (...);
};
solution: {
category_keys?: (...)[];
created_at?: string;
description?: string | null;
events?: Record<(...), (...)>;
id: string;
image_url?: string | null;
installed_config_ids: string[];
kind: string;
latest_solution?: string | null;
latest_version?: string | null;
lookup_key?: string | null;
metadata?: Record<(...), (...)>;
name?: string | null;
org?: string | null;
org_logo?:
| {
file?: ...;
height?: ...;
media?: ...;
mime_type?: ...;
refresh_url?: ...;
url?: ...;
width?: ...;
}
| null;
org_name?: string
| null;
org_slug?: string | null;
owners: string[];
readme_url?: string | null;
screenshot_urls?: (...)[];
solution_id?: string | null;
solution_version?: string | null;
tag_keys?: (...)[];
template_kind?: string | null;
templates: {
description?: ...;
details?: ...;
display_name?: ...;
id?: ...;
kind: ...;
lookup_key?: ...;
name?: ...;
readme_url?: ...;
virtual_path?: ...;
}[];
updated_at?: string;
upgrade_available: boolean;
virtual_path?: string
| null;
};
template: {
created_at?: string;
description?: string
| null;
display_name?: string | null;
id: string;
kind: string;
lookup_key?: string | null;
name?: string | null;
updated_at?: string;
virtual_path?: string | null;
};
}
| null;
team?: string
| null;
template_upgrade_available?: boolean | null;
updated_at?: string;
user?: string | null;
}[]
| null;
role?: string
| null;
sandbox?: string | null;
settings?: { agent_enabled?: boolean | null };
slug?: string | null;
sub_threads?: Record<string, {} | null>[] | null;
tags?: string[];
team?: string | null;
title?: string | null;
ttl?: string | null;
unread_count?: number | null;
updated_at?: string;
user?: string | null;
visibility: "team" | "private" | "restricted";
};
},
> = ...
Runtime validator for ChatForkThreadResponse.