Variable chatLoadMoreMessagesResponseSchemaConst
chatLoadMoreMessagesResponseSchema: ZodObject<
{
data: ZodObject<
{
after_cursor: ZodOptional<ZodString>;
agent: ZodOptional<
ZodObject<
{
acl: ZodOptional<
ZodNullable<
ZodObject<
{ add: ...; grants: ...; remove: ... },
"strip",
ZodTypeAny,
{ add?: ...; grants?: ...; remove?: ... },
{ add?: ...; grants?: ...; remove?: ... },
>,
>,
>;
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<(...) | (...), ZodTypeDef, (...) | (...)>,
>,
>;
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<
{ current_solution: ...; solution: ...; template: ... },
"strip",
ZodTypeAny,
{ current_solution?: ...; solution: ...; template: ... },
{ current_solution?: ...; solution: ...; template: ... },
>,
>,
>;
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, {} | 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;
},
{
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: ZodOptional<ZodString>;
is_transient: ZodBoolean;
members: ZodArray<
ZodObject<
{
agent: ZodOptional<
ZodObject<
{
acl: ZodOptional<(...)>;
app: ZodOptional<(...)>;
created_at: ZodOptional<(...)>;
default_model: ZodOptional<(...)>;
description: ZodOptional<(...)>;
email: ZodOptional<(...)>;
id: ZodString;
identity: ZodOptional<(...)>;
last_applied_template_config: ZodOptional<(...)>;
lookup_key: ZodOptional<(...)>;
metadata: ZodOptional<(...)>;
name: ZodOptional<(...)>;
org: ZodOptional<(...)>;
org_name: ZodOptional<(...)>;
originator: ZodOptional<(...)>;
phone_number: ZodOptional<(...)>;
sandbox: ZodOptional<(...)>;
source_solution: ZodOptional<(...)>;
team: ZodOptional<(...)>;
template_upgrade_available: ZodOptional<(...)>;
updated_at: ZodOptional<(...)>;
user: ZodOptional<(...)>;
},
"strip",
ZodTypeAny,
{
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?: (...) | (...) | (...);
},
{
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: ZodOptional<ZodString>;
type: ZodString;
user: ZodOptional<
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?: (...) | (...) | (...);
},
>,
>;
},
"strip",
ZodTypeAny,
{
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;
};
},
{
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;
};
},
>,
"many",
>;
messages: ZodArray<
ZodObject<
{
acl: ZodOptional<
ZodNullable<
ZodObject<
{ add: ...; grants: ...; remove: ... },
"strip",
ZodTypeAny,
{ add?: ...; grants?: ...; remove?: ... },
{ add?: ...; grants?: ...; remove?: ... },
>,
>,
>;
actors: ZodOptional<
ZodArray<
ZodObject<
{ alias: ...; id: ...; name: ...; profile_picture: ... },
"strip",
ZodTypeAny,
{ alias?: ...; id?: ...; name?: ...; profile_picture?: ... },
{ alias?: ...; id?: ...; name?: ...; profile_picture?: ... },
>,
"many",
>,
>;
agent: ZodOptional<ZodNullable<ZodString>>;
agent_mode: ZodOptional<ZodNullable<ZodEnum<[(...), (...)]>>>;
attachments: ZodOptional<
ZodArray<
ZodObject<
{
content_type: ...;
description: ...;
filename: ...;
height: ...;
id: ...;
image_height: ...;
image_source: ...;
image_url: ...;
image_width: ...;
media_type: ...;
name: ...;
object: ...;
title: ...;
type: ...;
url: ...;
variants: ...;
version: ...;
width: ...;
},
"strip",
ZodTypeAny,
{
content_type?: ...;
description?: ...;
filename?: ...;
height?: ...;
id: ...;
image_height?: ...;
image_source?: ...;
image_url?: ...;
image_width?: ...;
media_type?: ...;
name?: ...;
object?: ...;
title?: ...;
type: ...;
url?: ...;
variants?: ...;
version?: ...;
width?: ...;
},
{
content_type?: ...;
description?: ...;
filename?: ...;
height?: ...;
id: ...;
image_height?: ...;
image_source?: ...;
image_url?: ...;
image_width?: ...;
media_type?: ...;
name?: ...;
object?: ...;
title?: ...;
type: ...;
url?: ...;
variants?: ...;
version?: ...;
width?: ...;
},
>,
"many",
>,
>;
branched_thread: ZodOptional<ZodNullable<ZodString>>;
content: ZodOptional<ZodNullable<ZodString>>;
context: ZodOptional<
ZodArray<
ZodObject<
{ attributes: ...; content: ...; title: ...; type: ... },
"strip",
ZodTypeAny,
{ attributes?: ...; content?: ...; title?: ...; type: ... },
{ attributes?: ...; content?: ...; title?: ...; type: ... },
>,
"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<(...) | (...), ZodTypeDef, (...) | (...)>,
>,
>;
org: ZodOptional<ZodNullable<ZodString>>;
reactions: ZodOptional<
ZodArray<
ZodObject<
{ payload: ...; type: ...; user: ... },
"strip",
ZodTypeAny,
{ payload?: ...; type: ...; user?: ... },
{ payload?: ...; type: ...; user?: ... },
>,
"many",
>,
>;
rendering_mode: ZodOptional<ZodNullable<ZodString>>;
replies: ZodOptional<
ZodArray<
ZodRecord<ZodString, ZodType<(...), (...), (...)>>,
"many",
>,
>;
replies_after_cursor: ZodOptional<ZodNullable<ZodString>>;
replies_before_cursor: ZodOptional<ZodNullable<ZodString>>;
reply_count: ZodOptional<ZodNumber>;
reply_to: ZodOptional<
ZodNullable<ZodRecord<ZodString, ZodType<(...), (...), (...)>>>,
>;
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<["default", "private"]>>;
},
"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: 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";
},
{
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";
},
>,
"many",
>;
messages_loaded_on_last_update: ZodOptional<ZodNumber>;
team: ZodOptional<
ZodObject<
{
acl: ZodOptional<
ZodNullable<
ZodObject<
{ add: ...; grants: ...; remove: ... },
"strip",
ZodTypeAny,
{ add?: ...; grants?: ...; remove?: ... },
{ add?: ...; grants?: ...; remove?: ... },
>,
>,
>;
app: ZodOptional<ZodString>;
badges: ZodOptional<
ZodNullable<ZodRecord<ZodString, ZodType<(...), (...), (...)>>>,
>;
created_at: ZodOptional<ZodString>;
description: ZodOptional<ZodNullable<ZodString>>;
id: ZodString;
membership_status: ZodOptional<ZodNullable<ZodString>>;
metadata: ZodOptional<
ZodRecord<
ZodString,
ZodType<(...) | (...), ZodTypeDef, (...) | (...)>,
>,
>;
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> | 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?: (...)[]; 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: ZodObject<
{
agent_user: ZodOptional<ZodNullable<ZodString>>;
created_at: ZodOptional<ZodString>;
creator: ZodOptional<
ZodNullable<
ZodUnion<
[ZodString, ZodObject<(...), (...), (...), (...), (...)>],
>,
>,
>;
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<(...) | (...), ZodTypeDef, (...) | (...)>,
>,
>,
>;
muted: ZodOptional<ZodBoolean>;
org: ZodOptional<ZodNullable<ZodString>>;
parent_message: ZodOptional<
ZodNullable<
ZodObject<
{
acl: ZodOptional<(...)>;
actors: ZodOptional<(...)>;
agent: ZodOptional<(...)>;
agent_mode: ZodOptional<(...)>;
attachments: ZodOptional<(...)>;
branched_thread: ZodOptional<(...)>;
content: ZodOptional<(...)>;
context: ZodOptional<(...)>;
created_at: ZodOptional<(...)>;
has_replies: ZodOptional<(...)>;
id: ZodString;
idempotency_key: ZodOptional<(...)>;
is_deleted: ZodOptional<(...)>;
legacy_agent: ZodOptional<(...)>;
metadata: ZodOptional<(...)>;
org: ZodOptional<(...)>;
reactions: ZodOptional<(...)>;
rendering_mode: ZodOptional<(...)>;
replies: ZodOptional<(...)>;
replies_after_cursor: ZodOptional<(...)>;
replies_before_cursor: ZodOptional<(...)>;
reply_count: ZodOptional<(...)>;
reply_to: ZodOptional<(...)>;
root_message_id: ZodOptional<(...)>;
sandbox: ZodOptional<(...)>;
team: ZodOptional<(...)>;
thread: ZodOptional<(...)>;
type: ZodOptional<(...)>;
user: ZodOptional<(...)>;
visibility: ZodOptional<(...)>;
},
"strip",
ZodTypeAny,
{
acl?: (...)
| (...)
| (...);
actors?: (...) | (...);
agent?: (...) | (...) | (...);
agent_mode?: (...) | (...) | (...) | (...);
attachments?: (...) | (...);
branched_thread?: (...) | (...) | (...);
content?: (...) | (...) | (...);
context?: (...) | (...);
created_at?: (...) | (...);
has_replies?: (...) | (...) | (...);
id: string;
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: string;
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: 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?: (...) | (...) | (...);
},
>,
"many",
>,
>;
participating_actor: ZodOptional<ZodArray<ZodString, "many">>;
participating_agents: ZodOptional<
ZodNullable<
ZodArray<
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?: ...;
},
>,
"many",
>,
>,
>;
role: ZodOptional<ZodNullable<ZodString>>;
sandbox: ZodOptional<ZodNullable<ZodString>>;
settings: ZodOptional<
ZodObject<
{ agent_enabled: ZodOptional<ZodNullable<(...)>> },
"strip",
ZodTypeAny,
{ agent_enabled?: boolean | null },
{ agent_enabled?: boolean | null },
>,
>;
slug: ZodOptional<ZodNullable<ZodString>>;
sub_threads: ZodOptional<
ZodNullable<
ZodArray<
ZodRecord<ZodString, ZodType<(...), (...), (...)>>,
"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, (...) | (...)>;
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";
},
{
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";
},
>;
},
"strip",
ZodTypeAny,
{
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";
};
},
{
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";
};
},
>;
},
"strip",
ZodTypeAny,
{
data: {
after_cursor?: string;
agent?: {
acl?: | {
add?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
grants?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
remove?: { principal?: (...)
| (...); principal_type: string }[];
}
| 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?: 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;
};
solution: {
category_keys?: string[];
created_at?: string;
description?: string
| null;
events?: Record<string, (...) | (...)>;
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<string, (...) | (...)>;
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?: string[];
solution_id?: string | null;
solution_version?: string | null;
tag_keys?: string[];
template_kind?: string | null;
templates: {
description?: (...) | (...) | (...);
details?: (...) | (...) | (...);
display_name?: (...) | (...) | (...);
id?: (...) | (...) | (...);
kind: string;
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, {} | 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;
};
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, {} | 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;
};
}[];
messages: {
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";
}[];
messages_loaded_on_last_update?: number;
team?: {
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: {
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";
};
};
},
{
data: {
after_cursor?: string;
agent?: {
acl?: | {
add?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
grants?: {
actions: (...)[];
principal?: (...) | (...);
principal_type: string;
}[];
remove?: { principal?: (...)
| (...); principal_type: string }[];
}
| 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?: 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;
};
solution: {
category_keys?: string[];
created_at?: string;
description?: string
| null;
events?: Record<string, (...) | (...)>;
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<string, (...) | (...)>;
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?: string[];
solution_id?: string | null;
solution_version?: string | null;
tag_keys?: string[];
template_kind?: string | null;
templates: {
description?: (...) | (...) | (...);
details?: (...) | (...) | (...);
display_name?: (...) | (...) | (...);
id?: (...) | (...) | (...);
kind: string;
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, {} | 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;
};
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, {} | 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;
};
}[];
messages: {
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";
}[];
messages_loaded_on_last_update?: number;
team?: {
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: {
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";
};
};
},
> = ...
Runtime validator for ChatLoadMoreMessagesResponse.