Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat: profile pictures for channels (#6502)
Peter Chinmanb532cc22032b
diff --git a/.github/workspace-dep-closures.json b/.github/workspace-dep-closures.jsonindex 9515820d77..afacdab980 100644--- a/.github/workspace-dep-closures.json+++ b/.github/workspace-dep-closures.json@@ -118,6 +118,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_team","crates/non_empty","crates/notification",@@ -130,6 +131,7 @@"crates/secretsmanager_client","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -500,6 +502,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/non_empty",@@ -524,6 +527,7 @@"crates/soup","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -573,6 +577,7 @@"crates/last_online_tracker","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -594,6 +599,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -602,6 +608,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"agent_trigger": [@@ -641,6 +648,7 @@"crates/lexical_client","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -662,6 +670,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -670,6 +679,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"agent_trigger_service": [@@ -709,6 +719,7 @@"crates/lexical_client","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_config","crates/macro_config_derive","crates/macro_entrypoint",@@ -732,6 +743,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -740,6 +752,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack","services/agent_trigger_service"],@@ -839,6 +852,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/non_empty",@@ -863,6 +877,7 @@"crates/soup","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -1044,6 +1059,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/non_empty",@@ -1068,6 +1084,7 @@"crates/soup","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -1332,6 +1349,7 @@"crates/last_online_tracker","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -1353,6 +1371,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -1361,6 +1380,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"broadcast": [@@ -1453,6 +1473,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -1469,6 +1490,7 @@"crates/soup_filter_cache_adapter","crates/soup_filter_projection","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/unfurl","crates/workspace-hack"@@ -1569,6 +1591,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -1577,6 +1600,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"call_recording_preview_handler": [@@ -1683,6 +1707,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/non_empty",@@ -1707,6 +1732,7 @@"crates/soup","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -1755,6 +1781,7 @@"crates/last_online_tracker","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -1776,6 +1803,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -1784,6 +1812,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"chat": [@@ -1891,6 +1920,7 @@"crates/last_online_tracker","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -1912,6 +1942,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -1920,6 +1951,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"codex_connection": [@@ -1959,6 +1991,7 @@"crates/last_online_tracker","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -1980,6 +2013,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -1988,6 +2022,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"coding_agent_worker": [@@ -2067,6 +2102,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -2079,6 +2115,7 @@"crates/share_permission_db_utils","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -2163,6 +2200,7 @@"crates/last_online_tracker","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -2184,6 +2222,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -2192,6 +2231,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"complete_graph": [@@ -2286,6 +2326,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -2307,6 +2348,7 @@"crates/soup_realtime","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -2822,6 +2864,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_team","crates/non_empty","crates/notification",@@ -2837,6 +2880,7 @@"crates/share_permission_db_utils","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -2951,6 +2995,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/non_empty",@@ -2977,6 +3022,7 @@"crates/sqs_client","crates/sqs_worker","crates/static_file",+ "crates/static_file_service_client","crates/stream","crates/sync_service","crates/sync_service_client",@@ -3116,6 +3162,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/name_search",@@ -3147,6 +3194,7 @@"crates/soup_realtime","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -3297,6 +3345,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -3307,6 +3356,7 @@"crates/secretsmanager_client","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -3381,6 +3431,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -3391,6 +3442,7 @@"crates/secretsmanager_client","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -4356,6 +4408,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -4366,6 +4419,7 @@"crates/secretsmanager_client","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -4450,6 +4504,7 @@"crates/last_online_tracker","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -4472,6 +4527,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -4480,6 +4536,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"graphql_common": [@@ -4660,6 +4717,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -4681,6 +4739,7 @@"crates/soup_realtime","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -4775,6 +4834,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -4796,6 +4856,7 @@"crates/soup_realtime","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -5023,6 +5084,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -5044,6 +5106,7 @@"crates/soup_realtime","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -5382,6 +5445,7 @@"crates/lexical_mention_extractor","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -5403,6 +5467,7 @@"crates/models_entity_access_management","crates/models_pagination","crates/models_permissions",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -5411,6 +5476,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"load-test": [@@ -5842,6 +5908,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/non_empty",@@ -5866,6 +5933,7 @@"crates/soup","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -5983,6 +6051,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/non_empty",@@ -6007,6 +6076,7 @@"crates/soup","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -6241,6 +6311,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -6254,6 +6325,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/unfurl","crates/workspace-hack"@@ -6330,6 +6402,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -6341,6 +6414,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/unfurl","crates/workspace-hack"@@ -6380,6 +6454,7 @@"crates/last_online_tracker","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -6403,6 +6478,7 @@"crates/models_pagination","crates/models_permissions","crates/models_search_cursor",+ "crates/models_sfs","crates/name_search","crates/non_empty","crates/notification",@@ -6412,6 +6488,7 @@"crates/remote_env_var","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/workspace-hack"],"native_app_server": [@@ -6924,6 +7001,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -6937,6 +7015,7 @@"crates/share_permission_db_utils","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -7273,6 +7352,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/non_empty",@@ -7297,6 +7377,7 @@"crates/soup","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -7400,6 +7481,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/non_empty",@@ -7420,6 +7502,7 @@"crates/share_permission_db_utils","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -7506,6 +7589,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/models_team","crates/name_search",@@ -7524,6 +7608,7 @@"crates/secretsmanager_client","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/unfurl","crates/user_quota",@@ -7596,6 +7681,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -7610,6 +7696,7 @@"crates/search_service_client","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/unfurl","crates/workspace-hack"@@ -7725,6 +7812,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_team","crates/non_empty","crates/notification",@@ -7736,6 +7824,7 @@"crates/roles_and_permissions","crates/share_permission_db_utils","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -7852,6 +7941,7 @@"crates/models_properties","crates/models_search","crates/models_search_cursor",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -7869,6 +7959,7 @@"crates/skills","crates/soup","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/system_skills","crates/unfurl",@@ -7944,6 +8035,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -7957,6 +8049,7 @@"crates/share_permission_db_utils","crates/soup","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/unfurl","crates/workspace-hack"@@ -8032,6 +8125,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -8048,6 +8142,7 @@"crates/soup_filter_cache_adapter","crates/soup_filter_projection","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/unfurl","crates/workspace-hack"@@ -8119,6 +8214,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/models_soup","crates/non_empty","crates/notification",@@ -8134,6 +8230,7 @@"crates/soup","crates/soup_filter_projection","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/unfurl","crates/workspace-hack"@@ -8213,6 +8310,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -8228,6 +8326,7 @@"crates/soup_realtime","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",@@ -8531,6 +8630,7 @@"crates/lexical_client","crates/macro_auth","crates/macro_authorization",+ "crates/macro_aws_config","crates/macro_entrypoint","crates/macro_env","crates/macro_env_var",@@ -8555,6 +8655,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -8567,6 +8668,7 @@"crates/share_permission_db_utils","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/system_properties","crates/teams","crates/unfurl",@@ -8885,6 +8987,7 @@"crates/models_pagination","crates/models_permissions","crates/models_properties",+ "crates/models_sfs","crates/non_empty","crates/notification","crates/notification_state",@@ -8897,6 +9000,7 @@"crates/share_permission_db_utils","crates/sqs_client","crates/sqs_worker",+ "crates/static_file_service_client","crates/sync_service","crates/sync_service_client","crates/system_properties",diff --git a/.sqlx/query-c21fcdd69e4f9d116b052ae79df233fdc85c1088cc61a9574707076b2c4b5141.json b/.sqlx/query-c21fcdd69e4f9d116b052ae79df233fdc85c1088cc61a9574707076b2c4b5141.jsonnew file mode 100644index 0000000000..3cf87e3554--- /dev/null+++ b/.sqlx/query-c21fcdd69e4f9d116b052ae79df233fdc85c1088cc61a9574707076b2c4b5141.json@@ -0,0 +1,15 @@+{+ "db_name": "PostgreSQL",+ "query": "UPDATE comms_channels SET profile_picture_id = $2, updated_at = NOW() WHERE id = $1",+ "describe": {+ "columns": [],+ "parameters": {+ "Left": [+ "Uuid",+ "Uuid"+ ]+ },+ "nullable": []+ },+ "hash": "c21fcdd69e4f9d116b052ae79df233fdc85c1088cc61a9574707076b2c4b5141"+}diff --git a/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json b/.sqlx/query-ed27915c026f1d6c92bf9d3edd792ecc343be25d46cab2710f72b18969d33bdd.jsonsimilarity index 55%rename from .sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.jsonrename to .sqlx/query-ed27915c026f1d6c92bf9d3edd792ecc343be25d46cab2710f72b18969d33bdd.jsonindex 5bc1c5aaef..5008ebab81 100644--- a/.sqlx/query-3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046.json+++ b/.sqlx/query-ed27915c026f1d6c92bf9d3edd792ecc343be25d46cab2710f72b18969d33bdd.json@@ -1,6 +1,6 @@{"db_name": "PostgreSQL",- "query": "\n SELECT\n c.id,\n c.name,\n c.channel_type AS \"channel_type: ChannelType\",\n c.org_id,\n c.team_id,\n CASE WHEN (\n c.channel_type = 'public'\n OR\n (c.channel_type IN ('private', 'direct_message', 'team') AND EXISTS (\n SELECT 1 FROM comms_channel_participants cp\n WHERE cp.channel_id = c.id\n AND cp.user_id = $2\n AND cp.left_at IS NULL\n ))\n ) THEN true ELSE false END AS \"has_access!: bool\"\n FROM comms_channels c\n WHERE c.id::text = ANY($1)\n ",+ "query": "\n SELECT\n c.id,\n c.name,\n c.profile_picture_id,\n c.channel_type AS \"channel_type: ChannelType\",\n c.org_id,\n c.team_id,\n CASE WHEN (\n c.channel_type = 'public'\n OR\n (c.channel_type IN ('private', 'direct_message', 'team') AND EXISTS (\n SELECT 1 FROM comms_channel_participants cp\n WHERE cp.channel_id = c.id\n AND cp.user_id = $2\n AND cp.left_at IS NULL\n ))\n ) THEN true ELSE false END AS \"has_access!: bool\"\n FROM comms_channels c\n WHERE c.id::text = ANY($1)\n ","describe": {"columns": [{@@ -15,6 +15,11 @@},{"ordinal": 2,+ "name": "profile_picture_id",+ "type_info": "Uuid"+ },+ {+ "ordinal": 3,"name": "channel_type: ChannelType","type_info": {"Custom": {@@ -31,17 +36,17 @@}},{- "ordinal": 3,+ "ordinal": 4,"name": "org_id","type_info": "Int8"},{- "ordinal": 4,+ "ordinal": 5,"name": "team_id","type_info": "Uuid"},{- "ordinal": 5,+ "ordinal": 6,"name": "has_access!: bool","type_info": "Bool"}@@ -55,11 +60,12 @@"nullable": [false,true,+ true,false,true,true,null]},- "hash": "3fcda7a3b41d62cae64507950b3344b931487b41c9b146538d6d1769033c3046"+ "hash": "ed27915c026f1d6c92bf9d3edd792ecc343be25d46cab2710f72b18969d33bdd"}diff --git a/Cargo.lock b/Cargo.lockindex 994c1ab5fd..32ef8b1412 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -3462,6 +3462,7 @@ dependencies = ["serde_json","share_permission_db_utils","sqlx",+ "static_file_service_client","thiserror 2.0.18","tokio","tokio-retry",@@ -5487,6 +5488,7 @@ dependencies = ["sqlx","sqs_client","sqs_worker",+ "static_file_service_client","sync_service_client","sync_service_hex","system_properties",diff --git a/apps/web/src/features/block-channel/component/NewChannelBlockAdapter.tsx b/apps/web/src/features/block-channel/component/NewChannelBlockAdapter.tsxindex 9d023cd75a..8192b3a357 100644--- a/apps/web/src/features/block-channel/component/NewChannelBlockAdapter.tsx+++ b/apps/web/src/features/block-channel/component/NewChannelBlockAdapter.tsx@@ -40,6 +40,7 @@ import {isJoinCallRequested,isOpenCallTabRequested,} from '@channel/Channel/link';+import { useChannelPictureActions } from '@channel/channel-picture';import { ChannelParticipantsTab } from '@channel/Participants/ChannelParticipantsTab';import { HeaderIsland } from '@components/app/split-layout/components/HeaderIsland';import { BlockSplitFileMenu } from '@components/app/split-layout/components/SplitFileMenu';@@ -64,7 +65,9 @@ import { awaitCondition, createMethodRegistration } from '@core/orchestrator';import { blockHotkeyScopeSignal } from '@core/signal/blockElement';import { blockHandleSignal } from '@core/signal/load';import { buildEntityData } from '@entity';+import PictureIcon from '@phosphor/image.svg';import RenameIcon from '@phosphor/pencil-line.svg';+import TrashIcon from '@phosphor/trash.svg';import { useActiveCallQuery } from '@queries/call/call';import {fetchResolvedChannelMessage,@@ -72,7 +75,7 @@ import {findTopLevelMessageInChannelMessages,} from '@queries/channel/channel-messages';import { useChannelParticipantsQuery } from '@queries/channel/channel-participants';-import { ChannelTypeEnum } from '@service-storage/client';+import { ChannelType } from '@service-storage/generated/schemas/channelType';import { useSearchParams } from '@solidjs/router';import { cn } from '@ui';import {@@ -151,6 +154,16 @@ function NewTop(props: { channelId: string }) {const activeCallQuery = useActiveCallQuery(() => props.channelId);const participants = () =>participantsQuery.isLoading ? [] : participantsQuery.data;+ const picture = useChannelPictureActions({+ channelId: () => props.channelId,+ canEdit: () =>+ channelType() !== ChannelType.direct_message &&+ (participants() ?? []).some(+ (participant) =>+ participant.user_id === userId() &&+ (participant.role === 'admin' || participant.role === 'owner')+ ),+ });// Show the Call tab whenever we're actually in the call, mid-join, or// the tab is being displayed (e.g. via the auto-join flow that flips// `activeTab` to `call` before the join request resolves).@@ -163,7 +176,7 @@ function NewTop(props: { channelId: string }) {!!activeCallQuery.data);const availableTabs = () => {let filtered = [...CHANNEL_TABS];- if (channelType() === ChannelTypeEnum.DirectMessage)+ if (channelType() === ChannelType.direct_message)filtered = filtered.filter((tab) => tab.value !== 'participants');if (!showCallTab())filtered = filtered.filter((tab) => tab.value !== 'call');@@ -265,6 +278,20 @@ function NewTop(props: { channelId: string }) {return !!entity && renameAction.canExecute(entity);},},+ {+ group: 'file',+ label: 'Set channel picture',+ icon: PictureIcon,+ action: picture.pickFile,+ condition: picture.isAvailable,+ },+ {+ group: 'file',+ label: 'Remove channel picture',+ icon: TrashIcon,+ action: picture.remove,+ condition: () => picture.isAvailable() && picture.hasPicture(),+ },]}/></SplitTitleFileMenu>diff --git a/apps/web/src/features/block-channel/component/Top.tsx b/apps/web/src/features/block-channel/component/Top.tsxindex ae163a3e87..b3b932ce48 100644--- a/apps/web/src/features/block-channel/component/Top.tsx+++ b/apps/web/src/features/block-channel/component/Top.tsx@@ -1,4 +1,5 @@import type { ChannelTabId } from '@channel/Channel/channel-tabs';+import { ChannelAvatar } from '@channel/channel-avatar';import { CollapsibleHeaderItem } from '@components/app/split-layout/components/CollapsibleItem';import { HeaderIsland } from '@components/app/split-layout/components/HeaderIsland';import { SplitHeaderLeft } from '@components/app/split-layout/components/SplitHeader';@@ -12,13 +13,11 @@ import { useChannelName } from '@core/context/channels';import { useUserId } from '@core/context/user';import { isTouchDevice } from '@core/mobile/isTouchDevice';import ChatTextIcon from '@phosphor/chat-text.svg';-import ChannelIcon from '@phosphor/hash-straight.svg';import PaperclipIcon from '@phosphor/paperclip.svg';import PhoneIcon from '@phosphor/phone-call.svg';import UsersIcon from '@phosphor/users.svg';import type { ChannelParticipant } from '@queries/channel/types';-import { ChannelTypeEnum } from '@service-storage/client';-import type { ChannelType } from '@service-storage/generated/schemas/channelType';+import { ChannelType } from '@service-storage/generated/schemas/channelType';import { type Component, type JSX, Show } from 'solid-js';export const CHANNEL_TAB_ICONS: Record<@@ -32,6 +31,7 @@ export const CHANNEL_TAB_ICONS: Record<};type TopIconProps = {+ channelId: string;channelType: ChannelType;participants: ChannelParticipant[];};@@ -44,8 +44,13 @@ function TopIcon(props: TopIconProps) {return (<Show- when={props.channelType === ChannelTypeEnum.DirectMessage && recipient()}- fallback={<ChannelIcon class="size-4 shrink-0" />}+ when={props.channelType === ChannelType.direct_message && recipient()}+ fallback={+ <ChannelAvatar+ channelId={props.channelId}+ class="size-4 [&_img]:rounded-full"+ />+ }>{(recipient) => {return (@@ -94,6 +99,7 @@ export function ChannelTopLeft(props: ChannelTopLeftProps) {<HeaderIsland class="shrink"><div class="ph-no-capture z-split-header-content relative flex items-center gap-2 max-w-full h-full shrink min-w-15"><TopIcon+ channelId={props.channelId}channelType={props.channelType}participants={props.participants}/>diff --git a/apps/web/src/features/channel/channel-avatar.tsx b/apps/web/src/features/channel/channel-avatar.tsxnew file mode 100644index 0000000000..2f1917ef70--- /dev/null+++ b/apps/web/src/features/channel/channel-avatar.tsx@@ -0,0 +1,22 @@+import { useChannelPicture } from '@queries/channel/picture';+import { type JSX, Suspense } from 'solid-js';+import { ChannelPicture } from './components/ChannelPicture';++/** Shared channel avatar without the picture editor's upload dependencies. */+export function ChannelAvatar(props: {+ channelId: string;+ class?: string;+ fallback?: JSX.Element;+}) {+ const picture = useChannelPicture(() => props.channelId);+ return (+ <Suspense fallback={props.fallback}>+ <ChannelPicture+ url={picture.url()}+ revision={picture.revision()}+ class={props.class}+ fallback={props.fallback}+ />+ </Suspense>+ );+}diff --git a/apps/web/src/features/channel/channel-picture.ts b/apps/web/src/features/channel/channel-picture.tsnew file mode 100644index 0000000000..f6974cd37c--- /dev/null+++ b/apps/web/src/features/channel/channel-picture.ts@@ -0,0 +1,68 @@+import { toast } from '@core/component/Toast/Toast';+import { createStaticFile } from '@core/util/create';+import { openFilePicker } from '@core/util/upload';+import {+ useChannelPicture,+ useSetChannelPictureMutation,+} from '@queries/channel/picture';+import type { Accessor } from 'solid-js';++export function useChannelPictureActions(options: {+ channelId: Accessor<string>;+ canEdit: Accessor<boolean>;+}) {+ const picture = useChannelPicture(options.channelId);+ const mutation = useSetChannelPictureMutation(createStaticFile);++ const save = async (file: File | null) => {+ if (!options.canEdit() || mutation.isPending) return;+ if (+ file &&+ (!['image/jpeg', 'image/png', 'image/webp', 'image/gif'].includes(+ file.type+ ) ||+ file.size === 0)+ ) {+ toast.failure('Choose a PNG, JPG, WebP, or GIF image');+ return;+ }+ if (file && file.size > 16 * 1000 * 1000) {+ toast.failure('Choose an image smaller than 16 MB');+ return;+ }+ try {+ await mutation.mutateAsync({ channelId: options.channelId(), file });+ toast.success(+ file ? 'Channel picture updated' : 'Channel picture removed'+ );+ } catch {+ toast.failure('Could not update channel picture. Please try again.');+ }+ };++ const pickFile = () => {+ if (!options.canEdit() || mutation.isPending) return;+ openFilePicker(+ {+ acceptedMimeTypes: [+ 'image/jpeg',+ 'image/png',+ 'image/webp',+ 'image/gif',+ ],+ acceptedFileExtensions: ['jpg', 'jpeg', 'png', 'webp', 'gif'],+ },+ async (files) => {+ if (files[0]) await save(files[0]);+ }+ );+ };++ return {+ hasPicture: () => !!picture.url(),+ isAvailable: () =>+ options.canEdit() && !mutation.isPending && !picture.isLoading(),+ pickFile,+ remove: () => void save(null),+ };+}diff --git a/apps/web/src/features/channel/components/ChannelPicture.tsx b/apps/web/src/features/channel/components/ChannelPicture.tsxnew file mode 100644index 0000000000..898d341f6e--- /dev/null+++ b/apps/web/src/features/channel/components/ChannelPicture.tsx@@ -0,0 +1,34 @@+import ChannelIcon from '@phosphor/hash-straight.svg';+import { cn } from '@ui';+import { createMemo, createSignal, type JSX, Show } from 'solid-js';++/** Presentation shared by the header, editor, and channel rows. */+export function ChannelPicture(props: {+ url?: string;+ revision?: number;+ class?: string;+ fallback?: JSX.Element;+}) {+ // A refetch permits another attempt at the same URL without reloading healthy images.+ const request = createMemo(() => ({+ url: props.url,+ revision: props.revision,+ }));+ const [failedRequest, setFailedRequest] =+ createSignal<ReturnType<typeof request>>();+ return (+ <span class={cn('inline-flex shrink-0', props.class ?? 'size-6')}>+ <Show+ when={request().url && request() !== failedRequest()}+ fallback={props.fallback ?? <ChannelIcon class="size-full" />}+ >+ <img+ src={request().url}+ alt=""+ class="size-full rounded-lg object-cover"+ onError={() => setFailedRequest(request())}+ />+ </Show>+ </span>+ );+}diff --git a/apps/web/src/features/entity/extractors/entity-icon.tsx b/apps/web/src/features/entity/extractors/entity-icon.tsxindex 170b44495d..c8210b88c7 100644--- a/apps/web/src/features/entity/extractors/entity-icon.tsx+++ b/apps/web/src/features/entity/extractors/entity-icon.tsx@@ -1,3 +1,4 @@+import { ChannelAvatar } from '@channel/channel-avatar';import {EntityIcon as CoreEntityIcon,type EntityIconProps as CoreEntityIconProps,@@ -67,6 +68,15 @@ export function EntityIcon(props: EntityIconProps) {props.entity.channelType === 'direct_message';const isChatEntity = () => props.entity.type === 'chat';+ const channelId = () => {+ const entity = props.entity;+ if (entity.type === 'channel') return entity.id;+ if (+ entity.type === 'channel_message' &&+ entity.channelType !== 'direct_message'+ )+ return entity.channelId;+ };return (<Switch@@ -88,6 +98,22 @@ export function EntityIcon(props: EntityIconProps) {weight={props.weight}/></Match>+ <Match when={channelId()}>+ {(id) => (+ <ChannelAvatar+ channelId={id()}+ class={`size-full ${props.class ?? ''}`}+ fallback={+ <CoreEntityIcon+ targetType={iconType()}+ size="fill"+ class={props.class}+ weight={props.weight}+ />+ }+ />+ )}+ </Match><Match when={isChatEntity()}><ChatProviderIconid={props.entity.id}diff --git a/apps/web/src/features/entity/tests/entity-icon.test.tsx b/apps/web/src/features/entity/tests/entity-icon.test.tsxindex bbbdedffe0..7d599ae839 100644--- a/apps/web/src/features/entity/tests/entity-icon.test.tsx+++ b/apps/web/src/features/entity/tests/entity-icon.test.tsx@@ -4,18 +4,31 @@ import EnvelopeOpenIcon from '@phosphor/envelope-open.svg';import FileIcon from '@phosphor/file-dashed.svg';import GitMergeIcon from '@phosphor/git-merge.svg';import GitPullRequestIcon from '@phosphor/git-pull-request.svg';+import DirectMessageIcon from '@phosphor/users.svg';import GitMergeBold from '@phosphor-icons/core/bold/git-merge-bold.svg';import { cleanup, render } from '@solidjs/testing-library';import { createSignal } from 'solid-js';-import { afterEach, describe, expect, it, vi } from 'vitest';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import { HomeEntityIcon } from '../../inbox-view/components/HomeEntityIcon';import { EntityIcon } from '../extractors/entity-icon';import type {+ ChannelEntity,+ ChannelMessageEntity,EmailEntity,GithubPullRequestEntity,UnknownForeignEntity,} from '../types/entity';+const channelPicture = vi.hoisted(() => ({+ url: undefined as string | undefined,+ channelIds: [] as string[],+}));+vi.mock('@queries/channel/picture', () => ({+ useChannelPicture: (channelId: () => string) => {+ channelPicture.channelIds.push(channelId());+ return { url: () => channelPicture.url, revision: () => 1 };+ },+}));vi.mock('@core/constant/allBlocks', () => ({blockAcceptedFileExtensionSet: new Set(),fileTypeToBlockName: vi.fn(),@@ -23,7 +36,11 @@ vi.mock('@core/constant/allBlocks', () => ({itemToBlockName: vi.fn(),}));vi.mock('@core/context/user', () => ({ useUserId: () => () => 'user' }));-vi.mock('@core/component/UserIcon', () => ({ UserIcon: () => null }));+vi.mock('@core/component/UserIcon', () => ({+ UserIcon: (props: { id: string }) => (+ <span data-testid="user-avatar" data-user-id={props.id} />+ ),+}));vi.mock('../components/ChatProviderIcon', () => ({ChatProviderIcon: () => null,}));@@ -74,6 +91,88 @@ function expectGlyph(container: HTMLElement, Glyph: typeof FileIcon) {afterEach(cleanup);describe('Entity.Icon', () => {+ beforeEach(() => {+ channelPicture.url = undefined;+ channelPicture.channelIds = [];+ });++ const channel: ChannelEntity = {+ type: 'channel',+ id: 'channel-id',+ name: 'Channel',+ ownerId: 'user',+ channelType: 'private',+ };++ it('renders a channel picture when available', () => {+ channelPicture.url = 'https://example.com/channel.png';+ const { container } = render(() => <EntityIcon entity={channel} />);+ expect(container.querySelector('img')?.getAttribute('src')).toBe(+ channelPicture.url+ );+ expect(channelPicture.channelIds).toEqual(['channel-id']);+ });++ it('renders a channel glyph when there is no picture', () => {+ const { container } = render(() => <EntityIcon entity={channel} />);+ expect(container.querySelector('img')).toBeNull();+ expect(container.querySelector('svg')).not.toBeNull();+ });++ it('loads the parent channel picture for a channel message', () => {+ const message: ChannelMessageEntity = {+ ...channel,+ type: 'channel_message',+ id: 'message-id',+ channelId: channel.id,+ channelName: channel.name,+ messageId: 'message-id',+ senderId: 'user',+ content: 'Message',+ };+ render(() => <EntityIcon entity={message} />);+ expect(channelPicture.channelIds).toEqual(['channel-id']);+ });++ it('keeps direct messages on their participant avatar', () => {+ const { container } = render(() => (+ <EntityIcon+ entity={{+ ...channel,+ channelType: 'direct_message',+ participantIds: ['user', 'other-user'],+ }}+ />+ ));+ expect(channelPicture.channelIds).toEqual([]);+ expect(+ container+ .querySelector('[data-testid="user-avatar"]')+ ?.getAttribute('data-user-id')+ ).toBe('other-user');+ });++ it.each(['user', 'other-user'])(+ 'keeps DM message rows on their DM glyph without fetching channel pictures (sender %s)',+ (senderId) => {+ const message: ChannelMessageEntity = {+ type: 'channel_message',+ id: 'message-id',+ name: 'Message',+ ownerId: 'user',+ channelId: 'dm-channel',+ channelName: 'Direct message',+ channelType: 'direct_message',+ messageId: 'message-id',+ senderId,+ content: 'Message',+ };+ const { container } = render(() => <EntityIcon entity={message} />);+ expect(channelPicture.channelIds).toEqual([]);+ expectGlyph(container, DirectMessageIcon);+ }+ );+it.each([[false, false, EnvelopeIcon, 'text-email'],[true, false, EnvelopeOpenIcon, 'text-default'],diff --git a/apps/web/src/lib/queries/channel/keys.ts b/apps/web/src/lib/queries/channel/keys.tsindex a0e4bd10c2..eb509e080f 100644--- a/apps/web/src/lib/queries/channel/keys.ts+++ b/apps/web/src/lib/queries/channel/keys.ts@@ -1,6 +1,7 @@import { createQueryKeys } from '@lukemorales/query-key-factory';export const channelKeys = createQueryKeys('channel', {+ picture: (channelId: string) => ({ queryKey: [channelId] }),withID: (channelID: string) => ({queryKey: [channelID],}),diff --git a/apps/web/src/lib/queries/channel/picture.ts b/apps/web/src/lib/queries/channel/picture.tsnew file mode 100644index 0000000000..476fcf2496--- /dev/null+++ b/apps/web/src/lib/queries/channel/picture.ts@@ -0,0 +1,92 @@+import { staticFileSizedEndpoint } from '@core/constant/servers';+import { throwOnErr } from '@core/util/result';+import { staticFileClient } from '@service-static-files/client';+import { storageServiceClient } from '@service-storage/client';+import { useMutation, useQuery } from '@tanstack/solid-query';+import type { Accessor } from 'solid-js';+import { queryClient } from '../client';+import { previewDataLoader } from '../preview/dataloader';+import { isChannelPreviewItem } from '../preview/types';+import { channelKeys } from './keys';++/** Refresh active pictures after reconnecting, including changes missed offline. */+export function invalidateChannelPictures() {+ void queryClient.invalidateQueries({ queryKey: channelKeys.picture._def });+}++/** Picture events carry only the channel ID; previews still enforce read access. */+export function handleChannelPictureChanged(payload: { channel_id: string }) {+ if (!payload || typeof payload.channel_id !== 'string') return;+ void queryClient.invalidateQueries({+ queryKey: channelKeys.picture(payload.channel_id).queryKey,+ });+}++async function waitForPictureUpload(fileId: string) {+ // S3 completion is recorded asynchronously by the static-file service.+ const maxAttempts = 30;+ for (let attempt = 0; attempt < maxAttempts; attempt++) {+ const metadata = await throwOnErr(() =>+ staticFileClient.getMetadata({ file_id: fileId })+ );+ if (metadata.is_uploaded) return;+ if (attempt < maxAttempts - 1) {+ await new Promise((resolve) => setTimeout(resolve, 500));+ }+ }+ throw new Error('Picture upload confirmation timed out');+}++/** Reuse the batched REST preview loader, including when Soup uses GraphQL. */+export function useChannelPicture(channelId: Accessor<string>) {+ const query = useQuery(() => {+ const id = channelId();+ return {+ queryKey: channelKeys.picture(id).queryKey,+ queryFn: async () => {+ const preview = await previewDataLoader.load({+ id,+ type: 'channel',+ });+ return isChannelPreviewItem(preview)+ ? (preview.profilePictureId ?? null)+ : null;+ },+ staleTime: 60_000,+ };+ });++ // The icon keeps its fallback while loading; it must never suspend its row.+ const pictureId = () => (query.isSuccess ? query.data : null);+ return {+ url: () => {+ const id = pictureId();+ return id ? staticFileSizedEndpoint(id, 'small') : undefined;+ },+ isLoading: () => query.isPending,+ revision: () => query.dataUpdatedAt,+ };+}++export function useSetChannelPictureMutation(+ upload: (file: File) => Promise<string>+) {+ return useMutation(() => ({+ mutationFn: async (args: { channelId: string; file: File | null }) => {+ const pictureId = args.file ? await upload(args.file) : null;+ if (pictureId) await waitForPictureUpload(pictureId);+ await throwOnErr(() =>+ storageServiceClient.setChannelPicture({+ channel_id: args.channelId,+ profile_picture_id: pictureId,+ })+ );+ return pictureId;+ },+ onSuccess: async (pictureId, args) => {+ const queryKey = channelKeys.picture(args.channelId).queryKey;+ await queryClient.cancelQueries({ queryKey });+ queryClient.setQueryData(queryKey, pictureId);+ },+ }));+}diff --git a/apps/web/src/lib/queries/channel/tests/picture.test.tsx b/apps/web/src/lib/queries/channel/tests/picture.test.tsxnew file mode 100644index 0000000000..4ea7e48013--- /dev/null+++ b/apps/web/src/lib/queries/channel/tests/picture.test.tsx@@ -0,0 +1,280 @@+/** @vitest-environment jsdom */++import { ChannelAvatar } from '@channel/channel-avatar';+import { staticFileClient } from '@service-static-files/client';+import { storageServiceClient } from '@service-storage/client';+import { QueryObserver } from '@tanstack/query-core';+import { QueryClient, QueryClientProvider } from '@tanstack/solid-query';+import { ok } from 'neverthrow';+import { render } from 'solid-js/web';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { previewDataLoader } from '../../preview/dataloader';+import { channelKeys } from '../keys';++let client: QueryClient;+let dispose: () => void;+vi.mock('../../client', () => ({+ get queryClient() {+ return client;+ },+}));+vi.mock('@core/constant/servers', () => ({+ staticFileSizedEndpoint: (id: string) => `/file/${id}`,+}));+vi.mock('../../preview/dataloader', () => ({+ previewDataLoader: { load: vi.fn() },+}));+vi.mock('@service-storage/client', () => ({+ storageServiceClient: { setChannelPicture: vi.fn() },+}));+vi.mock('@service-static-files/client', () => ({+ staticFileClient: { getMetadata: vi.fn() },+}));+vi.mock('@ui', async () => ({+ cn: (await import('@ui/utils/classname')).cn,+}));++import {+ handleChannelPictureChanged,+ invalidateChannelPictures,+ useSetChannelPictureMutation,+} from '../picture';++beforeEach(() => {+ vi.clearAllMocks();+ client = new QueryClient({ defaultOptions: { mutations: { retry: false } } });+ vi.mocked(staticFileClient.getMetadata).mockResolvedValue(+ ok({+ file_id: 'new-picture',+ owner_id: 'owner',+ content_type: 'image/png',+ is_uploaded: true,+ file_name: 'picture.png',+ s3_key: 'file/new-picture',+ })+ );+});+afterEach(() => {+ dispose?.();+ client.clear();+ vi.useRealTimers();+});++function setup(upload: (file: File) => Promise<string>) {+ let mutation!: ReturnType<typeof useSetChannelPictureMutation>;+ function Fixture() {+ mutation = useSetChannelPictureMutation(upload);+ return null;+ }+ dispose = render(+ () => (+ <QueryClientProvider client={client}>+ <Fixture />+ </QueryClientProvider>+ ),+ document.body+ );+ return mutation;+}++it('publishes the picture only after both upload and channel save succeed', async () => {+ const upload = vi.fn().mockResolvedValue('new-picture');+ vi.mocked(storageServiceClient.setChannelPicture).mockResolvedValue(+ ok(undefined)+ );+ const mutation = setup(upload);+ const file = new File(['image'], 'picture.png', { type: 'image/png' });+ await mutation.mutateAsync({ channelId: 'channel', file });+ expect(upload).toHaveBeenCalledWith(file);+ expect(storageServiceClient.setChannelPicture).toHaveBeenCalledWith({+ channel_id: 'channel',+ profile_picture_id: 'new-picture',+ });+ expect(client.getQueryData(channelKeys.picture('channel').queryKey)).toBe(+ 'new-picture'+ );+});++it('keeps the old picture when the channel save fails', async () => {+ client.setQueryData(channelKeys.picture('channel').queryKey, 'old-picture');+ vi.mocked(storageServiceClient.setChannelPicture).mockRejectedValue(+ new Error('Forbidden')+ );+ const mutation = setup(vi.fn().mockResolvedValue('new-picture'));+ await expect(+ mutation.mutateAsync({+ channelId: 'channel',+ file: new File(['image'], 'picture.png'),+ })+ ).rejects.toThrow();+ expect(client.getQueryData(channelKeys.picture('channel').queryKey)).toBe(+ 'old-picture'+ );+});++it('does not change the channel when uploading fails', async () => {+ const mutation = setup(vi.fn().mockRejectedValue(new Error('Upload failed')));+ await expect(+ mutation.mutateAsync({+ channelId: 'channel',+ file: new File(['image'], 'picture.png'),+ })+ ).rejects.toThrow('Upload failed');+ expect(storageServiceClient.setChannelPicture).not.toHaveBeenCalled();+});++it('removes a picture without uploading a file or changing another channel', async () => {+ client.setQueryData(channelKeys.picture('channel').queryKey, 'old-picture');+ client.setQueryData(channelKeys.picture('other').queryKey, 'other-picture');+ vi.mocked(storageServiceClient.setChannelPicture).mockResolvedValue(+ ok(undefined)+ );+ const upload = vi.fn();+ const mutation = setup(upload);+ await mutation.mutateAsync({ channelId: 'channel', file: null });+ expect(upload).not.toHaveBeenCalled();+ expect(staticFileClient.getMetadata).not.toHaveBeenCalled();+ expect(+ client.getQueryData(channelKeys.picture('channel').queryKey)+ ).toBeNull();+ expect(client.getQueryData(channelKeys.picture('other').queryKey)).toBe(+ 'other-picture'+ );+});++it('waits for asynchronous upload confirmation before assigning the picture', async () => {+ vi.useFakeTimers();+ vi.mocked(staticFileClient.getMetadata).mockResolvedValueOnce(+ ok({+ file_id: 'new-picture',+ owner_id: 'owner',+ content_type: 'image/png',+ is_uploaded: false,+ file_name: 'picture.png',+ s3_key: 'file/new-picture',+ })+ );+ vi.mocked(storageServiceClient.setChannelPicture).mockResolvedValue(+ ok(undefined)+ );+ const mutation = setup(vi.fn().mockResolvedValue('new-picture'));+ const pending = mutation.mutateAsync({+ channelId: 'channel',+ file: new File(['image'], 'picture.png'),+ });+ await vi.advanceTimersByTimeAsync(0);+ expect(storageServiceClient.setChannelPicture).not.toHaveBeenCalled();+ await vi.advanceTimersByTimeAsync(500);+ await pending;+ expect(staticFileClient.getMetadata).toHaveBeenCalledTimes(2);+ expect(storageServiceClient.setChannelPicture).toHaveBeenCalledTimes(1);+});++it('preserves the existing picture if upload confirmation fails', async () => {+ client.setQueryData(channelKeys.picture('channel').queryKey, 'old-picture');+ vi.mocked(staticFileClient.getMetadata).mockRejectedValue(+ new Error('Unavailable')+ );+ const mutation = setup(vi.fn().mockResolvedValue('new-picture'));+ await expect(+ mutation.mutateAsync({+ channelId: 'channel',+ file: new File(['image'], 'picture.png'),+ })+ ).rejects.toThrow('Unavailable');+ expect(storageServiceClient.setChannelPicture).not.toHaveBeenCalled();+ expect(client.getQueryData(channelKeys.picture('channel').queryKey)).toBe(+ 'old-picture'+ );+});++it('refreshes another session immediately on picture events and after reconnect', async () => {+ const queryKey = channelKeys.picture('channel').queryKey;+ client.setQueryData(queryKey, 'old-picture');+ client.setQueryData(+ channelKeys.picture('other').queryKey,+ 'unrelated-picture'+ );+ const fetch = vi.fn().mockResolvedValue('new-picture');+ const observer = new QueryObserver(client, {+ queryKey,+ queryFn: fetch,+ staleTime: 60_000,+ });+ const unsubscribe = observer.subscribe(() => {});+ try {+ handleChannelPictureChanged({ channel_id: 'channel' });+ await vi.waitFor(() =>+ expect(client.getQueryData(queryKey)).toBe('new-picture')+ );+ expect(client.getQueryData(channelKeys.picture('other').queryKey)).toBe(+ 'unrelated-picture'+ );+ fetch.mockResolvedValue(null);+ handleChannelPictureChanged({ channel_id: 'channel' });+ await vi.waitFor(() => expect(client.getQueryData(queryKey)).toBeNull());+ fetch.mockResolvedValue('changed-while-offline');+ invalidateChannelPictures();+ await vi.waitFor(() =>+ expect(client.getQueryData(queryKey)).toBe('changed-while-offline')+ );+ } finally {+ unsubscribe();+ }+});++it.each(['picture event', 'reconnect'] as const)(+ 'retries a failed image at the same URL after a %s',+ async (trigger) => {+ const queryKey = channelKeys.picture('channel').queryKey;+ client.setQueryData(queryKey, 'same-picture', {+ updatedAt: Date.now() - 1_000,+ });+ vi.mocked(previewDataLoader.load).mockResolvedValue({+ id: 'channel',+ type: 'channel',+ access: 'access',+ loading: false,+ name: 'Channel',+ rawName: 'Channel',+ profilePictureId: 'same-picture',+ });+ dispose = render(+ () => (+ <QueryClientProvider client={client}>+ <ChannelAvatar+ channelId="channel"+ fallback={<span data-testid="picture-fallback" />}+ />+ </QueryClientProvider>+ ),+ document.body+ );+ await vi.waitFor(() =>+ expect(document.querySelector('img')).not.toBeNull()+ );+ const failedImage = document.querySelector('img')!;+ failedImage.dispatchEvent(new Event('error'));+ expect(document.querySelector('img')).toBeNull();+ expect(+ document.querySelector('[data-testid="picture-fallback"]')+ ).not.toBeNull();+ expect(previewDataLoader.load).not.toHaveBeenCalled();++ if (trigger === 'reconnect') invalidateChannelPictures();+ else handleChannelPictureChanged({ channel_id: 'channel' });++ await vi.waitFor(() => {+ const retriedImage = document.querySelector('img');+ expect(retriedImage).not.toBeNull();+ expect(retriedImage).not.toBe(failedImage);+ expect(retriedImage?.getAttribute('src')).toBe('/file/same-picture');+ });+ expect(previewDataLoader.load).toHaveBeenCalledTimes(1);++ const recoveredImage = document.querySelector('img');+ await client.invalidateQueries({ queryKey });+ expect(previewDataLoader.load).toHaveBeenCalledTimes(2);+ expect(document.querySelector('img')).toBe(recoveredImage);+ }+);diff --git a/apps/web/src/lib/queries/preview/fetchers.ts b/apps/web/src/lib/queries/preview/fetchers.tsindex aaf8789db0..737044057f 100644--- a/apps/web/src/lib/queries/preview/fetchers.ts+++ b/apps/web/src/lib/queries/preview/fetchers.ts@@ -70,6 +70,7 @@ async function fetchChannelPreviews(rawName: channel.channel_name,name: channel.channel_name,channelType: channel.channel_type,+ profilePictureId: channel.profile_picture_id,};case 'no_access':case 'does_not_exist':diff --git a/apps/web/src/lib/queries/preview/types.ts b/apps/web/src/lib/queries/preview/types.tsindex f758d8b8bb..c6668afc9b 100644--- a/apps/web/src/lib/queries/preview/types.ts+++ b/apps/web/src/lib/queries/preview/types.ts@@ -83,6 +83,7 @@ export type PreviewChannelAccess = {fileType?: never;subType?: never;channelType?: ChannelType;+ profilePictureId?: string | null;messageContext?: MessageContext | undefined;} & BasePreviewItem<'channel'>;diff --git a/apps/web/src/lib/queries/sync/SyncProvider.tsx b/apps/web/src/lib/queries/sync/SyncProvider.tsxindex 5f59d1b7f1..f6925f2e09 100644--- a/apps/web/src/lib/queries/sync/SyncProvider.tsx+++ b/apps/web/src/lib/queries/sync/SyncProvider.tsx@@ -20,6 +20,10 @@ import {handleAgentSessionUpdated,invalidateAgentSessionMetadata,} from '@queries/agent-session/session-metadata-sync';+import {+ handleChannelPictureChanged,+ invalidateChannelPictures,+} from '@queries/channel/picture';import {handleCommsAttachment,handleCommsMessage,@@ -69,6 +73,10 @@ function withParsedWebsocketPayload<T>(}export function QuerySyncProvider(props: SyncProviderProps) {+ ws.addEventListener(WebsocketEvent.Open, invalidateChannelPictures);+ onCleanup(() =>+ ws.removeEventListener(WebsocketEvent.Open, invalidateChannelPictures)+ );// Also cover the first connection: a lookup can finish before the socket opens.ws.addEventListener(WebsocketEvent.Open, invalidateAgentSessionMetadata);onCleanup(() =>@@ -92,6 +100,13 @@ export function QuerySyncProvider(props: SyncProviderProps) {.with({ type: 'comms_message' }, () => {withParsedWebsocketPayload(data.type, data.data, handleCommsMessage);})+ .with({ type: 'comms_channel_picture' }, () => {+ withParsedWebsocketPayload(+ data.type,+ data.data,+ handleChannelPictureChanged+ );+ })// One frame appended to a live agent session's log. Routed to the// channel's fold rather than to any cache: the frame is not a message,// it is a step towards one, and only the fold knows which.diff --git a/apps/web/src/lib/service-clients/service-storage/client.ts b/apps/web/src/lib/service-clients/service-storage/client.tsindex 5d39ab8cb9..0d9d648dfa 100644--- a/apps/web/src/lib/service-clients/service-storage/client.ts+++ b/apps/web/src/lib/service-clients/service-storage/client.ts@@ -154,6 +154,7 @@ import type { ReorderFavoritesRequest } from './generated/schemas/reorderFavoritimport type { ReorderPinRequest } from './generated/schemas/reorderPinRequest';import type { ReplaceCrmStagesRequest } from './generated/schemas/replaceCrmStagesRequest';import type { SaveDocumentResponseData } from './generated/schemas/saveDocumentResponseData';+import type { SetChannelPictureRequest } from './generated/schemas/setChannelPictureRequest';import type { SetCompanyNameRequest } from './generated/schemas/setCompanyNameRequest';import type { SetContactNameRequest } from './generated/schemas/setContactNameRequest';import type { SharePermissionV2 } from './generated/schemas/sharePermissionV2';@@ -811,6 +812,14 @@ export const storageServiceClient = {).map((result) => result);},+ async setChannelPicture(args: WithChannelId & SetChannelPictureRequest) {+ const { channel_id, ...request } = args;+ return await dssFetch(`/channels/${channel_id}/profile_picture`, {+ method: 'PUT',+ body: JSON.stringify(request),+ });+ },+async patchChannel(args: WithChannelId & PatchChannelRequest) {const { channel_id, ...request } = args;return (diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/channelPreviewData.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/channelPreviewData.tsindex b1aebf251a..903ef32383 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/channelPreviewData.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/channelPreviewData.ts@@ -4,6 +4,8 @@* document_storage_service* OpenAPI spec version: 0.1.0*/++import type { ChannelPreviewDataProfilePictureId } from './channelPreviewDataProfilePictureId';import type { ChannelType } from './channelType';/**@@ -16,4 +18,6 @@ export interface ChannelPreviewData {channel_name: string;/** Channel type. */channel_type: ChannelType;+ /** Static image file used as the channel's profile picture, when accessible. */+ profile_picture_id?: ChannelPreviewDataProfilePictureId;}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/channelPreviewDataProfilePictureId.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/channelPreviewDataProfilePictureId.tsnew file mode 100644index 0000000000..019dca5a69--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/channelPreviewDataProfilePictureId.ts@@ -0,0 +1,11 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * document_storage_service+ * OpenAPI spec version: 0.1.0+ */++/**+ * Static image file used as the channel's profile picture, when accessible.+ */+export type ChannelPreviewDataProfilePictureId = string | null;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.tsindex 6ad504d1fc..c943df687f 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts@@ -299,6 +299,7 @@ export * from './channelParticipant';export * from './channelParticipantLeftAt';export * from './channelPreview';export * from './channelPreviewData';+export * from './channelPreviewDataProfilePictureId';export * from './channelPreviewOneOf';export * from './channelPreviewOneOfAllOf';export * from './channelPreviewOneOfAllOfType';@@ -1068,6 +1069,8 @@ export * from './sessionSettledMetadata';export * from './sessionSettledMetadataLastTurn';export * from './sessionStoppedMetadata';export * from './sessionStoppedMetadataTurnInFlight';+export * from './setChannelPictureRequest';+export * from './setChannelPictureRequestProfilePictureId';export * from './setCompanyHiddenRequest';export * from './setCompanyNameRequest';export * from './setContactHiddenRequest';diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/setChannelPictureRequest.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/setChannelPictureRequest.tsnew file mode 100644index 0000000000..9f86fa1b47--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/setChannelPictureRequest.ts@@ -0,0 +1,15 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * document_storage_service+ * OpenAPI spec version: 0.1.0+ */+import type { SetChannelPictureRequestProfilePictureId } from './setChannelPictureRequestProfilePictureId';++/**+ * Replace a channel's picture, or remove it by sending a null file id.+ */+export interface SetChannelPictureRequest {+ /** Static image file id; null restores the default channel icon. */+ profile_picture_id?: SetChannelPictureRequestProfilePictureId;+}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/setChannelPictureRequestProfilePictureId.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/setChannelPictureRequestProfilePictureId.tsnew file mode 100644index 0000000000..19c13e9067--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/setChannelPictureRequestProfilePictureId.ts@@ -0,0 +1,11 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * document_storage_service+ * OpenAPI spec version: 0.1.0+ */++/**+ * Static image file id; null restores the default channel icon.+ */+export type SetChannelPictureRequestProfilePictureId = string | null;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts b/apps/web/src/lib/service-clients/service-storage/generated/zod.tsindex 768849f28c..1b85a8ce3d 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/zod.ts@@ -2561,6 +2561,12 @@ export const getBatchChannelPreviewResponse = zodchannel_type: zod.enum(['public', 'private', 'direct_message', 'team']).describe('Type of channel.'),+ profile_picture_id: zod+ .uuid()+ .nullish()+ .describe(+ "Static image file used as the channel's profile picture, when accessible."+ ),}).describe('Preview payload returned for accessible channels.').and(@@ -4031,6 +4037,26 @@ export const removeParticipantsBody = zod}).describe('Request to remove participants.');+/**+ * @summary Set a channel or group chat profile picture. Requires rename permission.+ */+export const setChannelPictureParams = zod.object({+ channel_id: zod.uuid().describe('Channel ID'),+});++export const setChannelPictureBody = zod+ .object({+ profile_picture_id: zod+ .uuid()+ .nullish()+ .describe(+ 'Static image file id; null restores the default channel icon.'+ ),+ })+ .describe(+ "Replace a channel's picture, or remove it by sending a null file id."+ );+/*** @summary Handler for `POST /channels/{channel_id}/reaction`.*/diff --git a/apps/web/src/lib/service-clients/service-storage/openapi.json b/apps/web/src/lib/service-clients/service-storage/openapi.jsonindex 81265ff380..201d3a7a82 100644--- a/apps/web/src/lib/service-clients/service-storage/openapi.json+++ b/apps/web/src/lib/service-clients/service-storage/openapi.json@@ -4250,6 +4250,90 @@}}},+ "/channels/{channel_id}/profile_picture": {+ "put": {+ "tags": ["channels::inbound::axum_router::profile_picture"],+ "summary": "Set a channel or group chat profile picture. Requires rename permission.",+ "operationId": "set_channel_picture",+ "parameters": [+ {+ "name": "channel_id",+ "in": "path",+ "description": "Channel ID",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ }+ ],+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/SetChannelPictureRequest"+ }+ }+ },+ "required": true+ },+ "responses": {+ "204": {+ "description": "Picture updated"+ },+ "400": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "401": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "403": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "404": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "500": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ }+ }+ }+ },"/channels/{channel_id}/reaction": {"post": {"tags": ["channels"],@@ -17213,6 +17297,11 @@"channel_type": {"$ref": "#/components/schemas/ChannelType","description": "Channel type."+ },+ "profile_picture_id": {+ "type": ["string", "null"],+ "format": "uuid",+ "description": "Static image file used as the channel's profile picture, when accessible."}}},@@ -25630,6 +25719,17 @@}}},+ "SetChannelPictureRequest": {+ "type": "object",+ "description": "Replace a channel's picture, or remove it by sending a null file id.",+ "properties": {+ "profile_picture_id": {+ "type": ["string", "null"],+ "format": "uuid",+ "description": "Static image file id; null restores the default channel icon."+ }+ }+ },"SetCompanyHiddenRequest": {"type": "object","description": "Request body for `PUT /companies/{company_id}/hidden`.",diff --git a/crates/channel_bots/src/domain/service/tests.rs b/crates/channel_bots/src/domain/service/tests.rsindex f30298380d..0c5fcb9505 100644--- a/crates/channel_bots/src/domain/service/tests.rs+++ b/crates/channel_bots/src/domain/service/tests.rs@@ -42,6 +42,14 @@ struct TestChannelService {}impl ChannelService for TestChannelService {+ async fn set_channel_picture(+ &self,+ _access: channels::domain::ports::ChannelPictureAccess,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), channels::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+fn get_channel_messages(&self,_channel_id: Uuid,@@ -155,6 +163,14 @@ impl MutationChannelService {}impl ChannelService for MutationChannelService {+ async fn set_channel_picture(+ &self,+ _access: channels::domain::ports::ChannelPictureAccess,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), channels::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+fn get_channel_messages(&self,_channel_id: Uuid,diff --git a/crates/channel_bots/src/domain/trigger_detector/tests.rs b/crates/channel_bots/src/domain/trigger_detector/tests.rsindex 0d7c503498..825dc7aca1 100644--- a/crates/channel_bots/src/domain/trigger_detector/tests.rs+++ b/crates/channel_bots/src/domain/trigger_detector/tests.rs@@ -21,6 +21,14 @@ struct TestChannelService {}impl ChannelService for TestChannelService {+ async fn set_channel_picture(+ &self,+ _access: channels::domain::ports::ChannelPictureAccess,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), channels::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+fn get_channel_messages(&self,_channel_id: Uuid,diff --git a/crates/channels/Cargo.toml b/crates/channels/Cargo.tomlindex c7a5deb7d0..fc2255f487 100644--- a/crates/channels/Cargo.toml+++ b/crates/channels/Cargo.toml@@ -65,6 +65,7 @@ outbound = ["dep:serde_json","dep:share_permission_db_utils","dep:sqlx",+ "dep:static_file_service_client","entity_access/ports","list","macro_user_id/sqlx",@@ -123,6 +124,7 @@ serde = { workspace = true }serde_json = { workspace = true, optional = true }share_permission_db_utils = { path = "../share_permission_db_utils", optional = true }sqlx = { workspace = true, optional = true }+static_file_service_client = { path = "../static_file_service_client", optional = true }thiserror = { workspace = true }tokio = { workspace = true, features = ["macros", "sync"], optional = true }tokio-retry = { workspace = true, optional = true }diff --git a/crates/channels/src/domain/entity_mutation.rs b/crates/channels/src/domain/entity_mutation.rsindex bd839d4023..3de2a579b6 100644--- a/crates/channels/src/domain/entity_mutation.rs+++ b/crates/channels/src/domain/entity_mutation.rs@@ -45,7 +45,7 @@ fn sender_from_receipt<T: RequiredPermission>(.map_err(|error| EntityMutationErrorCode::forbidden(rootcause::report!(error)))}-impl<R, E, P, M> RenameEntity for ChannelServiceImpl<R, E, P, M>+impl<R, E, P, M, F> RenameEntity for ChannelServiceImpl<R, E, P, M, F>whereSelf: ChannelService,{@@ -73,7 +73,7 @@ where}}-impl<R, E, P, M> DeleteEntityPermanently for ChannelServiceImpl<R, E, P, M>+impl<R, E, P, M, F> DeleteEntityPermanently for ChannelServiceImpl<R, E, P, M, F>whereSelf: ChannelService,{diff --git a/crates/channels/src/domain/events.rs b/crates/channels/src/domain/events.rsindex 784601fa11..c420e85e34 100644--- a/crates/channels/src/domain/events.rs+++ b/crates/channels/src/domain/events.rs@@ -25,6 +25,13 @@ pub struct MessageChangedNotificationContext {/// Events emitted after durable channel state changes.#[derive(Debug, Clone)]pub enum ChannelEvent {+ /// A channel picture was set, replaced, or removed.+ PictureChanged {+ /// Channel whose picture changed.+ channel_id: Uuid,+ /// Active participants whose sessions should refresh the picture.+ recipients: Vec<MacroUserIdStr<'static>>,+ },/// A channel was created.ChannelCreated {/// Created channel id.diff --git a/crates/channels/src/domain/models.rs b/crates/channels/src/domain/models.rsindex 3d72631d97..ba6221f5b4 100644--- a/crates/channels/src/domain/models.rs+++ b/crates/channels/src/domain/models.rs@@ -1121,6 +1121,8 @@ pub enum ChannelPreview {#[derive(Debug, Clone, Serialize, Deserialize)]#[cfg_attr(feature = "inbound", derive(utoipa::ToSchema))]pub struct ChannelPreviewData {+ /// Static image file used as the channel's profile picture, when accessible.+ pub profile_picture_id: Option<Uuid>,/// Channel id.pub channel_id: String,/// Resolved channel display name.@@ -1377,6 +1379,8 @@ impl SortOn<SimpleSortMethod> for ChannelWithLatest {/// Raw preview row returned from the repository.#[derive(Debug, Clone, PartialEq, Eq)]pub struct ChannelPreviewRow {+ /// Static image file used as the channel's profile picture.+ pub profile_picture_id: Option<Uuid>,/// Channel info.pub info: ChannelInfo,/// Whether the viewer can access the channel.diff --git a/crates/channels/src/domain/ports.rs b/crates/channels/src/domain/ports.rsindex ffaa2a4109..a8c86a061a 100644--- a/crates/channels/src/domain/ports.rs+++ b/crates/channels/src/domain/ports.rs@@ -35,6 +35,10 @@ use models_pagination::{CreatedAt, Query};use std::collections::{HashMap, HashSet};use uuid::Uuid;+/// Verified channel administration access required to change a channel picture.+pub type ChannelPictureAccess =+ EntityAccessReceipt<entity_access::domain::models::AdminParticipantRole>;+/// Repository for channel list persistence and query data.#[cfg(feature = "list")]pub trait ChannelListRepo: Send + Sync + 'static {@@ -124,6 +128,12 @@ pub trait ChannelAttachmentRepo: Send + Sync + 'static {/// Repository for channel persistence and query data.#[cfg_attr(test, mockall::automock(type Err = anyhow::Error;))]pub trait ChannelRepo: Send + Sync + 'static {+ /// Replace or remove the channel's static-file picture reference.+ fn set_channel_picture(+ &self,+ channel_id: Uuid,+ picture_id: Option<Uuid>,+ ) -> impl Future<Output = Result<(), Self::Err>> + Send;/// Error type for repo operations.type Err: Into<anyhow::Error> + Send;@@ -529,6 +539,12 @@ pub trait ChannelRepo: Send + Sync + 'static {/// Service for channel reads and mutations.pub trait ChannelService: Send + Sync + 'static {+ /// Set a channel picture using verified channel administration access.+ fn set_channel_picture(+ &self,+ access: ChannelPictureAccess,+ picture_id: Option<Uuid>,+ ) -> impl Future<Output = Result<(), ChannelMutationErr>> + Send;/// Fetch a page of channel messages with thread previews, reactions, and attachments.////// `notification_user_id` is used only when `filters.notification_filters` is non-empty.@@ -1116,6 +1132,26 @@ pub trait ChannelEventDispatcher: Send + Sync + 'static {fn dispatch(&self, event: ChannelEvent);}+/// Metadata needed to authorize an uploaded channel picture.+#[derive(Debug, Clone)]+pub struct ChannelPictureFile {+ /// User who uploaded the file.+ pub owner_id: String,+ /// Whether the file's upload has completed.+ pub is_uploaded: bool,+ /// Declared MIME type of the file.+ pub content_type: String,+}++/// Fetches static-file facts; the channel service decides whether they permit use.+pub trait ChannelPictureFiles: Send + Sync + 'static {+ /// Look up a candidate picture, returning `None` when it does not exist.+ fn get_picture_file(+ &self,+ file_id: Uuid,+ ) -> impl Future<Output = anyhow::Result<Option<ChannelPictureFile>>> + Send;+}+/// Allows a boxed dispatcher to be used wherever a `ChannelEventDispatcher` is/// expected, so callers (e.g. the AI toolset) can inject a side-effect-wired/// dispatcher behind a uniform type.diff --git a/crates/channels/src/domain/service.rs b/crates/channels/src/domain/service.rsindex f4d3c26be9..8cbd00c725 100644--- a/crates/channels/src/domain/service.rs+++ b/crates/channels/src/domain/service.rs@@ -16,8 +16,8 @@ use crate::domain::{},ports::{ChannelAttachmentsPage, ChannelEventDispatcher, ChannelMentionExtractor,- ChannelMessagesErr, ChannelMessagesQueryResult, ChannelMutationErr,- ChannelReferenceSharePermissions, ChannelRepo, ChannelService,+ ChannelMessagesErr, ChannelMessagesQueryResult, ChannelMutationErr, ChannelPictureFile,+ ChannelPictureFiles, ChannelReferenceSharePermissions, ChannelRepo, ChannelService,},side_effects::bot_mention_ids,};@@ -43,11 +43,23 @@ pub struct ChannelServiceImpl<E = NoopChannelEventDispatcher,P = NoopChannelReferenceSharePermissions,M = NoopChannelMentionExtractor,+ F = UnavailableChannelPictureFiles,> {repo: R,events: E,reference_share_permissions: P,mention_extractor: M,+ picture_files: F,+}++/// Fail-closed picture metadata source for contexts that do not wire uploads.+#[derive(Debug, Clone, Copy, Default)]+pub struct UnavailableChannelPictureFiles;++impl ChannelPictureFiles for UnavailableChannelPictureFiles {+ async fn get_picture_file(&self, _file_id: Uuid) -> anyhow::Result<Option<ChannelPictureFile>> {+ anyhow::bail!("channel picture uploads are not configured")+ }}/// No-op event dispatcher used by read-only contexts.@@ -99,6 +111,7 @@ whereevents: NoopChannelEventDispatcher,reference_share_permissions: NoopChannelReferenceSharePermissions,mention_extractor: NoopChannelMentionExtractor,+ picture_files: UnavailableChannelPictureFiles,}}}@@ -111,27 +124,43 @@ impl<R, E, P> ChannelServiceImpl<R, E, P> {events,reference_share_permissions,mention_extractor: NoopChannelMentionExtractor,+ picture_files: UnavailableChannelPictureFiles,}}}-impl<R, E, P, M> ChannelServiceImpl<R, E, P, M> {+impl<R, E, P, M, F> ChannelServiceImpl<R, E, P, M, F> {+ /// Wire the static-file metadata source used to authorize channel pictures.+ pub fn with_picture_files<F2: ChannelPictureFiles>(+ self,+ picture_files: F2,+ ) -> ChannelServiceImpl<R, E, P, M, F2> {+ ChannelServiceImpl {+ repo: self.repo,+ events: self.events,+ reference_share_permissions: self.reference_share_permissions,+ mention_extractor: self.mention_extractor,+ picture_files,+ }+ }+/// Replace the mention extractor used to derive mentions from/// bot-authored message content.pub fn with_mention_extractor<M2>(self,mention_extractor: M2,- ) -> ChannelServiceImpl<R, E, P, M2> {+ ) -> ChannelServiceImpl<R, E, P, M2, F> {ChannelServiceImpl {repo: self.repo,events: self.events,reference_share_permissions: self.reference_share_permissions,mention_extractor,+ picture_files: self.picture_files,}}}-impl<R, E, P, M> ChannelServiceImpl<R, E, P, M>+impl<R, E, P, M, F> ChannelServiceImpl<R, E, P, M, F>whereR: ChannelRepo,anyhow::Error: From<R::Err>,@@ -319,12 +348,13 @@ fn is_admin_or_owner(role: ParticipantRole) -> bool {matches!(role, ParticipantRole::Owner | ParticipantRole::Admin)}-impl<R, E, P, M> ChannelServiceImpl<R, E, P, M>+impl<R, E, P, M, F> ChannelServiceImpl<R, E, P, M, F>whereR: ChannelRepo,E: ChannelEventDispatcher,P: ChannelReferenceSharePermissions,M: ChannelMentionExtractor,+ F: ChannelPictureFiles,{#[tracing::instrument(err, skip(self, req))]async fn create_channel(@@ -1307,12 +1337,13 @@ where}}-impl<R, E, P, M> ChannelServiceImpl<R, E, P, M>+impl<R, E, P, M, F> ChannelServiceImpl<R, E, P, M, F>whereR: ChannelRepo,E: ChannelEventDispatcher,P: ChannelReferenceSharePermissions,M: ChannelMentionExtractor,+ F: ChannelPictureFiles,{async fn ensure_one_dm(&self,@@ -1556,14 +1587,83 @@ fn center_window(}}-impl<R, E, P, M> ChannelService for ChannelServiceImpl<R, E, P, M>+impl<R, E, P, M, F> ChannelService for ChannelServiceImpl<R, E, P, M, F>whereR: ChannelRepo,E: ChannelEventDispatcher,P: ChannelReferenceSharePermissions,M: ChannelMentionExtractor,+ F: ChannelPictureFiles,anyhow::Error: From<R::Err>,{+ #[tracing::instrument(err, skip(self, access))]+ async fn set_channel_picture(+ &self,+ access: EntityAccessReceipt<entity_access::domain::models::AdminParticipantRole>,+ picture_id: Option<Uuid>,+ ) -> Result<(), ChannelMutationErr> {+ if access.entity().entity_type != EntityType::Channel {+ return Err(ChannelMutationErr::BadRequest(+ "channel access receipt required".into(),+ ));+ }+ let actor = access+ .get_authenticated_user()+ .map_err(|_| ChannelMutationErr::Unauthorized("authenticated user required".into()))?;+ let channel_id = Uuid::parse_str(&access.entity().entity_id)+ .map_err(|error| ChannelMutationErr::BadRequest(error.to_string()))?;+ let info = self+ .repo+ .get_channel_info(channel_id)+ .await+ .map_err(|error| ChannelMutationErr::Repo(error.into()))?;+ if info.channel_type == ChannelType::DirectMessage {+ return Err(ChannelMutationErr::BadRequest(+ "direct messages use the participant's profile picture".into(),+ ));+ }+ if let Some(picture_id) = picture_id {+ let file = self+ .picture_files+ .get_picture_file(picture_id)+ .await+ .map_err(ChannelMutationErr::Repo)?+ .ok_or_else(|| ChannelMutationErr::BadRequest("picture is unavailable".into()))?;+ if file.owner_id != actor.as_ref() {+ return Err(ChannelMutationErr::Forbidden(+ "picture must belong to the caller".into(),+ ));+ }+ if !file.is_uploaded {+ return Err(ChannelMutationErr::BadRequest(+ "picture upload is not complete".into(),+ ));+ }+ if !matches!(+ file.content_type.as_str(),+ "image/jpeg" | "image/png" | "image/webp" | "image/gif"+ ) {+ return Err(ChannelMutationErr::BadRequest(+ "unsupported picture format".into(),+ ));+ }+ }+ let participants = self+ .repo+ .get_participants(channel_id)+ .await+ .map_err(|error| ChannelMutationErr::Repo(error.into()))?;+ self.repo+ .set_channel_picture(channel_id, picture_id)+ .await+ .map_err(|error| ChannelMutationErr::Repo(error.into()))?;+ self.events.dispatch(ChannelEvent::PictureChanged {+ channel_id,+ recipients: participant_ids(&participants),+ });+ Ok(())+ }+#[tracing::instrument(err, skip(self))]async fn get_channel_messages(&self,@@ -1683,6 +1783,7 @@ where.await.map_err(anyhow::Error::from)?;previews.push(ChannelPreview::Access(ChannelPreviewData {+ profile_picture_id: row.has_access.then_some(row.profile_picture_id).flatten(),channel_id: channel_id_str,channel_name,channel_type,diff --git a/crates/channels/src/domain/service/test.rs b/crates/channels/src/domain/service/test.rsindex e593777ced..8816ce949c 100644--- a/crates/channels/src/domain/service/test.rs+++ b/crates/channels/src/domain/service/test.rs@@ -280,6 +280,7 @@ async fn attaches_bot_profiles_to_bot_authored_messages() {#[derive(Clone)]struct FakeMutationRepo {+ picture_updates: Arc<Mutex<Vec<(Uuid, Option<Uuid>)>>>,state: Arc<Mutex<FakeMutationRepoState>>,}@@ -323,6 +324,7 @@ impl FakeMutationRepo {deleted_at: None,};Self {+ picture_updates: Arc::default(),state: Arc::new(Mutex::new(FakeMutationRepoState {channel_id,channel_name: Some("Project".to_string()),@@ -368,6 +370,18 @@ impl FakeMutationRepo {}impl ChannelRepo for FakeMutationRepo {+ async fn set_channel_picture(+ &self,+ channel_id: Uuid,+ picture_id: Option<Uuid>,+ ) -> Result<(), Self::Err> {+ self.picture_updates+ .lock()+ .unwrap()+ .push((channel_id, picture_id));+ Ok(())+ }+type Err = anyhow::Error;async fn get_top_level_messages(@@ -3389,3 +3403,187 @@ async fn join_by_code_is_idempotent_for_active_participant() {assert!(state.touched_channel_ids.is_empty());assert!(events.events.lock().unwrap().is_empty());}++#[derive(Clone)]+struct FakePictureFiles {+ file: Option<ChannelPictureFile>,+ fail: bool,+}++impl ChannelPictureFiles for FakePictureFiles {+ async fn get_picture_file(&self, _file_id: Uuid) -> anyhow::Result<Option<ChannelPictureFile>> {+ if self.fail {+ anyhow::bail!("static-file service unavailable");+ }+ Ok(self.file.clone())+ }+}++fn owned_picture_file() -> ChannelPictureFile {+ ChannelPictureFile {+ owner_id: "macro|[email protected]".into(),+ is_uploaded: true,+ content_type: "image/png".into(),+ }+}++#[tokio::test]+async fn channel_picture_can_be_set_replaced_and_removed_by_admins_and_owners() {+ use entity_access::domain::models::{+ AdminParticipantRole, Entity, EntityPermission, ParticipantRole as AccessRole,+ };+ for role in [AccessRole::Admin, AccessRole::Owner] {+ let channel_id = Uuid::new_v4();+ let repo = FakeMutationRepo::new(channel_id, "macro|[email protected]");+ let events = FakeEvents::default();+ let svc = mutation_service(+ repo.clone(),+ events.clone(),+ FakeReferenceSharing::default(),+ )+ .with_picture_files(FakePictureFiles {+ file: Some(owned_picture_file()),+ fail: false,+ });+ let pictures = [Some(Uuid::new_v4()), Some(Uuid::new_v4()), None];+ for picture in pictures {+ let access = EntityAccessReceipt::<AdminParticipantRole>::try_new_authenticated_user(+ macro_id("macro|[email protected]"),+ Entity {+ entity_id: channel_id.to_string(),+ entity_type: EntityType::Channel,+ },+ EntityPermission::ChannelRole { role },+ )+ .unwrap();+ svc.set_channel_picture(access, picture).await.unwrap();+ }+ assert_eq!(+ *repo.picture_updates.lock().unwrap(),+ pictures.map(|picture| (channel_id, picture))+ );+ let events = events.events.lock().unwrap();+ assert_eq!(events.len(), 3);+ assert!(events.iter().all(|event| matches!(event,+ ChannelEvent::PictureChanged { channel_id: id, recipients }+ if *id == channel_id && recipients.contains(¯o_id("macro|[email protected]"))+ )));+ }+}++#[test]+fn channel_members_cannot_obtain_picture_write_access() {+ use entity_access::domain::models::{+ AdminParticipantRole, Entity, EntityPermission, ParticipantRole as AccessRole,+ };+ assert!(+ EntityAccessReceipt::<AdminParticipantRole>::try_new_authenticated_user(+ macro_id("macro|[email protected]"),+ Entity {+ entity_id: Uuid::new_v4().to_string(),+ entity_type: EntityType::Channel+ },+ EntityPermission::ChannelRole {+ role: AccessRole::Member+ },+ )+ .is_err()+ );+}++#[tokio::test]+async fn channel_picture_rejects_direct_messages_and_non_channel_receipts() {+ use entity_access::domain::models::AdminParticipantRole;+ let channel_id = Uuid::new_v4();+ let repo = FakeMutationRepo::new(channel_id, "macro|[email protected]");+ repo.state.lock().unwrap().channel_type = ChannelType::DirectMessage;+ let svc = ChannelServiceImpl::new(repo.clone());+ for entity_type in [EntityType::Channel, EntityType::Document] {+ let access =+ EntityAccessReceipt::<AdminParticipantRole>::dangerously_assert_authenticated_user(+ macro_id("macro|[email protected]"),+ &channel_id.to_string(),+ entity_type,+ );+ assert!(matches!(+ svc.set_channel_picture(access, Some(Uuid::new_v4())).await,+ Err(ChannelMutationErr::BadRequest(_))+ ));+ }+ assert!(repo.picture_updates.lock().unwrap().is_empty());+}++#[tokio::test]+async fn channel_picture_rejects_foreign_missing_pending_non_image_and_unavailable_files() {+ use entity_access::domain::models::AdminParticipantRole;+ let files = [+ FakePictureFiles {+ file: Some(ChannelPictureFile {+ owner_id: "macro|[email protected]".into(),+ ..owned_picture_file()+ }),+ fail: false,+ },+ FakePictureFiles {+ file: None,+ fail: false,+ },+ FakePictureFiles {+ file: Some(ChannelPictureFile {+ is_uploaded: false,+ ..owned_picture_file()+ }),+ fail: false,+ },+ FakePictureFiles {+ file: Some(ChannelPictureFile {+ content_type: "text/html".into(),+ ..owned_picture_file()+ }),+ fail: false,+ },+ FakePictureFiles {+ file: Some(owned_picture_file()),+ fail: true,+ },+ ];+ for file in files {+ let channel_id = Uuid::new_v4();+ let repo = FakeMutationRepo::new(channel_id, "macro|[email protected]");+ let events = FakeEvents::default();+ let svc = mutation_service(+ repo.clone(),+ events.clone(),+ FakeReferenceSharing::default(),+ )+ .with_picture_files(file);+ let access =+ EntityAccessReceipt::<AdminParticipantRole>::dangerously_assert_authenticated_user(+ macro_id("macro|[email protected]"),+ &channel_id.to_string(),+ EntityType::Channel,+ );+ assert!(+ svc.set_channel_picture(access, Some(Uuid::new_v4()))+ .await+ .is_err()+ );+ assert!(repo.picture_updates.lock().unwrap().is_empty());+ assert!(events.events.lock().unwrap().is_empty());+ }+}++#[tokio::test]+async fn channel_picture_removal_does_not_require_static_file_availability() {+ use entity_access::domain::models::AdminParticipantRole;+ let channel_id = Uuid::new_v4();+ let repo = FakeMutationRepo::new(channel_id, "macro|[email protected]");+ let svc = ChannelServiceImpl::new(repo.clone());+ let access = EntityAccessReceipt::<AdminParticipantRole>::dangerously_assert_authenticated_user(+ macro_id("macro|[email protected]"),+ &channel_id.to_string(),+ EntityType::Channel,+ );+ svc.set_channel_picture(access, None).await.unwrap();+ assert_eq!(*repo.picture_updates.lock().unwrap(), [(channel_id, None)]);+}diff --git a/crates/channels/src/domain/side_effects.rs b/crates/channels/src/domain/side_effects.rsindex 1d71609312..149062b3c2 100644--- a/crates/channels/src/domain/side_effects.rs+++ b/crates/channels/src/domain/side_effects.rs@@ -127,6 +127,13 @@ fn is_bot_user_mention(mention: &SimpleMention) -> bool {/// Realtime update requested by the channel domain.#[derive(Debug, Clone)]pub enum ChannelRealtimeEffect {+ /// Invalidate a channel picture after a durable change.+ PictureChanged {+ /// Recipients whose picture caches should be refreshed.+ recipients: Vec<MacroUserIdStr<'static>>,+ /// Channel whose picture changed.+ channel_id: Uuid,+ },/// A message was created or changed.Message {/// Recipients that should receive the update.@@ -485,6 +492,22 @@ wherelet mention_broker_events = mention_broker_events_for_event(&event);match event {+ ChannelEvent::PictureChanged {+ channel_id,+ recipients,+ } => {+ if let Err(error) = self+ .realtime+ .publish(ChannelRealtimeEffect::PictureChanged {+ channel_id,+ recipients,+ })+ .await+ {+ let error: anyhow::Error = error.into();+ tracing::error!(error=?error, "unable to publish channel picture change");+ }+ }ChannelEvent::ChannelCreated { .. } => {}ChannelEvent::ChannelUpdated { .. } => {}ChannelEvent::ParticipantsRemoved { .. } => {}@@ -1464,7 +1487,9 @@ fn broker_events_for_event(event: &ChannelEvent) -> Vec<ChannelMacroEvent> {removed_user_ids: removed_user_ids.clone(),},)],- ChannelEvent::ReactionChanged { .. } | ChannelEvent::TypingChanged { .. } => Vec::new(),+ ChannelEvent::ReactionChanged { .. }+ | ChannelEvent::TypingChanged { .. }+ | ChannelEvent::PictureChanged { .. } => Vec::new(),ChannelEvent::EntityMentionCreated { .. } | ChannelEvent::EntityMentionDeleted { .. } => {Vec::new()}diff --git a/crates/channels/src/domain/side_effects/test.rs b/crates/channels/src/domain/side_effects/test.rsindex 2859da90ad..9a07abe9f4 100644--- a/crates/channels/src/domain/side_effects/test.rs+++ b/crates/channels/src/domain/side_effects/test.rs@@ -136,6 +136,34 @@ fn users(emails: &[&str]) -> Vec<MacroUserIdStr<'static>> {emails.iter().map(|email| user(email)).collect()}+#[tokio::test]+async fn picture_changes_refresh_all_participant_sessions_without_notifications() {+ let realtime = FakeRealtime::default();+ let notifications = FakeNotifications::default();+ let contacts = FakeContacts::default();+ let service = ChannelSideEffectService::new(+ FakeContext::default(),+ realtime.clone(),+ notifications.clone(),+ contacts.clone(),+ );+ let channel_id = Uuid::new_v4();+ let recipients = users(&["[email protected]", "[email protected]"]);+ service+ .handle(ChannelEvent::PictureChanged {+ channel_id,+ recipients: recipients.clone(),+ })+ .await;+ let effects = realtime.effects.lock().unwrap();+ assert!(+ matches!(&effects[..], [ChannelRealtimeEffect::PictureChanged { channel_id: id, recipients: actual }]+ if *id == channel_id && actual == &recipients)+ );+ assert!(notifications.effects.lock().unwrap().is_empty());+ assert!(contacts.users.lock().unwrap().is_empty());+}+#[tokio::test]async fn macro_ai_bot_profile_is_builtin_without_context_lookup() {let lookup_count = Arc::new(Mutex::new(0));diff --git a/crates/channels/src/inbound/axum_router.rs b/crates/channels/src/inbound/axum_router.rsindex 990accb376..304ab0ea6d 100644--- a/crates/channels/src/inbound/axum_router.rs+++ b/crates/channels/src/inbound/axum_router.rs@@ -1,6 +1,10 @@#[cfg(test)]mod test;+/// Channel profile-picture HTTP endpoint.+pub mod profile_picture;+pub use profile_picture::{SetChannelPictureRequest, set_channel_picture_handler};+use crate::domain::models::{Activity, ActivityType, AttachmentChannelReference, AttachmentEntityReference,AttachmentGenericReference, BotSenderProfile, ChannelAttachment, ChannelAttachmentType,@@ -27,7 +31,7 @@ use axum::{extract::{FromRef, Path, Query, State},http::StatusCode,response::IntoResponse,- routing::{delete, get, patch, post},+ routing::{delete, get, patch, post, put},};use channel_sender::ChannelSender;use chrono::{DateTime, Utc};@@ -285,6 +289,10 @@ wherepost(get_or_create_private_handler::<S, Svc, Auth>),).route("/mentions", post(create_mention_handler::<S, Svc, Auth>))+ .route(+ "/{channel_id}/profile_picture",+ put(set_channel_picture_handler::<S, Svc, Auth>),+ ).route("/mentions/{mention_id}",delete(delete_mention_handler::<S, Svc, Auth>),diff --git a/crates/channels/src/inbound/axum_router/profile_picture.rs b/crates/channels/src/inbound/axum_router/profile_picture.rsnew file mode 100644index 0000000000..9904e7f863--- /dev/null+++ b/crates/channels/src/inbound/axum_router/profile_picture.rs@@ -0,0 +1,41 @@+use super::*;++/// Replace a channel's picture, or remove it by sending a null file id.+#[derive(Debug, Deserialize, utoipa::ToSchema)]+pub struct SetChannelPictureRequest {+ /// Static image file id; null restores the default channel icon.+ pub profile_picture_id: Option<Uuid>,+}++/// Set a channel or group chat profile picture. Requires rename permission.+#[utoipa::path(+ put,+ path = "/channels/{channel_id}/profile_picture",+ operation_id = "set_channel_picture",+ params(("channel_id" = Uuid, Path, description = "Channel ID")),+ request_body = SetChannelPictureRequest,+ responses(+ (status = 204, description = "Picture updated"),+ (status = 400, body = ErrorResponse),+ (status = 401, body = ErrorResponse),+ (status = 403, body = ErrorResponse),+ (status = 404, body = ErrorResponse),+ (status = 500, body = ErrorResponse),+ )+)]+#[tracing::instrument(err, skip_all)]+pub async fn set_channel_picture_handler<+ S: ChannelService,+ Svc: EntityAccessService,+ Auth: MacroAuthorizationService,+>(+ State(state): State<ChannelsRouterState<S, Svc, Auth>>,+ access: ChannelAccessLevelExtractor<AdminParticipantRole, Svc, Auth>,+ Json(request): Json<SetChannelPictureRequest>,+) -> Result<StatusCode, ChannelsHandlerErr> {+ state+ .service+ .set_channel_picture(access.entity_access_receipt, request.profile_picture_id)+ .await?;+ Ok(StatusCode::NO_CONTENT)+}diff --git a/crates/channels/src/inbound/axum_router/test.rs b/crates/channels/src/inbound/axum_router/test.rsindex 7f97be2032..d6968f77e0 100644--- a/crates/channels/src/inbound/axum_router/test.rs+++ b/crates/channels/src/inbound/axum_router/test.rs@@ -71,6 +71,7 @@ struct PermissionCall {struct TestAccessService {mode: AccessMode,channel_view_only: bool,+ channel_role: EntityParticipantRole,permission_calls: Arc<Mutex<Vec<PermissionCall>>>,}@@ -98,6 +99,7 @@ impl TestAccessService {Self {mode,channel_view_only: false,+ channel_role: EntityParticipantRole::Member,permission_calls: Arc::default(),}}@@ -143,7 +145,7 @@ impl EntityAccessService for TestAccessService {entity_type,},EntityPermission::ChannelRole {- role: EntityParticipantRole::Member,+ role: self.channel_role,},)}@@ -218,7 +220,7 @@ impl EntityAccessService for TestAccessService {match self.mode {AccessMode::Allow => match entity_type {EntityType::Channel => Ok(EntityPermission::ChannelRole {- role: EntityParticipantRole::Member,+ role: self.channel_role,}),_ => Ok(EntityPermission::AccessLevel {access_level: AccessLevel::View,@@ -288,6 +290,16 @@ fn bot_actor_from_receipt_uses_canonical_principal() {struct MockService;impl ChannelService for MockService {+ async fn set_channel_picture(+ &self,+ _access: entity_access::domain::models::EntityAccessReceipt<+ entity_access::domain::models::AdminParticipantRole,+ >,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), crate::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+async fn get_channel_messages(&self,_channel_id: Uuid,@@ -412,6 +424,16 @@ impl ChannelService for MockService {struct ErrorService;impl ChannelService for ErrorService {+ async fn set_channel_picture(+ &self,+ _access: entity_access::domain::models::EntityAccessReceipt<+ entity_access::domain::models::AdminParticipantRole,+ >,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), crate::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+async fn get_channel_messages(&self,_channel_id: Uuid,@@ -471,6 +493,16 @@ impl ChannelService for ErrorService {struct ParticipantsService;impl ChannelService for ParticipantsService {+ async fn set_channel_picture(+ &self,+ _access: entity_access::domain::models::EntityAccessReceipt<+ entity_access::domain::models::AdminParticipantRole,+ >,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), crate::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+async fn get_channel_messages(&self,_channel_id: Uuid,@@ -582,6 +614,16 @@ impl JoinLinkService {}impl ChannelService for JoinLinkService {+ async fn set_channel_picture(+ &self,+ _access: entity_access::domain::models::EntityAccessReceipt<+ entity_access::domain::models::AdminParticipantRole,+ >,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), crate::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+async fn get_channel_messages(&self,_channel_id: Uuid,@@ -674,11 +716,24 @@ impl ChannelService for JoinLinkService {#[derive(Clone, Default)]struct RecordingMutationService {+ pictures: Arc<Mutex<Vec<(String, Option<Uuid>)>>>,joins: Arc<Mutex<Vec<(Sender, Uuid)>>>,posts: Arc<Mutex<Vec<(Sender, Uuid, PostMessageRequest)>>>,}impl ChannelService for RecordingMutationService {+ async fn set_channel_picture(+ &self,+ access: EntityAccessReceipt<AdminParticipantRole>,+ picture_id: Option<Uuid>,+ ) -> Result<(), ChannelMutationErr> {+ self.pictures+ .lock()+ .unwrap()+ .push((access.entity().entity_id.clone(), picture_id));+ Ok(())+ }+async fn get_channel_messages(&self,_channel_id: Uuid,@@ -1657,6 +1712,16 @@ async fn participants_returns_500_on_service_error() {struct NotFoundService;impl ChannelService for NotFoundService {+ async fn set_channel_picture(+ &self,+ _access: entity_access::domain::models::EntityAccessReceipt<+ entity_access::domain::models::AdminParticipantRole,+ >,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), crate::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+async fn get_channel_messages(&self,_channel_id: Uuid,@@ -1729,6 +1794,16 @@ struct AroundHasItemsService {}impl ChannelService for AroundHasItemsService {+ async fn set_channel_picture(+ &self,+ _access: entity_access::domain::models::EntityAccessReceipt<+ entity_access::domain::models::AdminParticipantRole,+ >,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), crate::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+async fn get_channel_messages(&self,_channel_id: Uuid,@@ -1945,6 +2020,16 @@ impl CapturingService {}impl ChannelService for std::sync::Arc<CapturingService> {+ async fn set_channel_picture(+ &self,+ _access: entity_access::domain::models::EntityAccessReceipt<+ entity_access::domain::models::AdminParticipantRole,+ >,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), crate::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+async fn get_channel_messages(&self,_channel_id: Uuid,@@ -2454,6 +2539,16 @@ struct ActivityService {}impl ChannelService for ActivityService {+ async fn set_channel_picture(+ &self,+ _access: entity_access::domain::models::EntityAccessReceipt<+ entity_access::domain::models::AdminParticipantRole,+ >,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), crate::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+async fn get_channel_messages(&self,_channel_id: Uuid,@@ -2669,3 +2764,49 @@ async fn post_activity_rejects_invalid_channel_id() {let res = router.oneshot(request).await.unwrap();assert_eq!(res.status(), StatusCode::BAD_REQUEST);}++#[tokio::test]+async fn picture_endpoint_requires_channel_admin_and_passes_the_verified_channel() {+ for role in [+ EntityParticipantRole::Member,+ EntityParticipantRole::Admin,+ EntityParticipantRole::Owner,+ ] {+ let service = RecordingMutationService::default();+ let pictures = service.pictures.clone();+ let mut access = TestAccessService::allow();+ access.channel_role = role;+ let app = channels_router(ChannelsRouterState::new(+ service,+ access,+ authorization_state(),+ ));+ let channel_id = Uuid::new_v4();+ let picture_id = Uuid::new_v4();+ let response = app+ .oneshot(+ Request::put(format!("/{channel_id}/profile_picture"))+ .header(+ header::AUTHORIZATION,+ format!("Bearer {VALID_BEARER_TOKEN}"),+ )+ .header(header::CONTENT_TYPE, "application/json")+ .body(Body::from(+ serde_json::json!({"profile_picture_id": picture_id}).to_string(),+ ))+ .unwrap(),+ )+ .await+ .unwrap();+ if role == EntityParticipantRole::Member {+ assert_eq!(response.status(), StatusCode::UNAUTHORIZED);+ assert!(pictures.lock().unwrap().is_empty());+ } else {+ assert_eq!(response.status(), StatusCode::NO_CONTENT);+ assert_eq!(+ *pictures.lock().unwrap(),+ vec![(channel_id.to_string(), Some(picture_id))]+ );+ }+ }+}diff --git a/crates/channels/src/inbound/toolset/test.rs b/crates/channels/src/inbound/toolset/test.rsindex 996c5b2ad4..92a0a938d7 100644--- a/crates/channels/src/inbound/toolset/test.rs+++ b/crates/channels/src/inbound/toolset/test.rs@@ -80,6 +80,16 @@ impl ToolTestChannelService {}impl ChannelService for ToolTestChannelService {+ async fn set_channel_picture(+ &self,+ _access: entity_access::domain::models::EntityAccessReceipt<+ entity_access::domain::models::AdminParticipantRole,+ >,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), crate::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+async fn get_channel_messages(&self,_channel_id: Uuid,diff --git a/crates/channels/src/outbound/connection_gateway_realtime.rs b/crates/channels/src/outbound/connection_gateway_realtime.rsindex e471ad00bf..b8bd4767bb 100644--- a/crates/channels/src/outbound/connection_gateway_realtime.rs+++ b/crates/channels/src/outbound/connection_gateway_realtime.rs@@ -56,6 +56,17 @@ impl ChannelRealtimePublisher for ConnectionGatewayChannelRealtimePublisher {async fn publish(&self, effect: ChannelRealtimeEffect) -> Result<(), Self::Err> {match effect {+ ChannelRealtimeEffect::PictureChanged {+ recipients,+ channel_id,+ } => {+ self.send_update(+ "comms_channel_picture",+ PictureChangedRealtimeData { channel_id },+ recipients,+ )+ .await+ }ChannelRealtimeEffect::Message {recipients,message,@@ -206,6 +217,11 @@ impl MessageRealtimeSender {}}+#[derive(Serialize)]+struct PictureChangedRealtimeData {+ channel_id: Uuid,+}+#[derive(Serialize)]struct AttachmentRealtimeData {channel_id: Uuid,diff --git a/crates/channels/src/outbound/mod.rs b/crates/channels/src/outbound/mod.rsindex 5c50321dc5..6e334ecf47 100644--- a/crates/channels/src/outbound/mod.rs+++ b/crates/channels/src/outbound/mod.rs@@ -12,3 +12,5 @@ pub mod pg_channel_reference_share_permissions;pub mod pg_channels_repo;/// Postgres context adapter for channel side-effect policy.pub mod pg_side_effect_context;+/// Static-file metadata adapter for channel pictures.+pub mod static_file_pictures;diff --git a/crates/channels/src/outbound/pg_channels_repo.rs b/crates/channels/src/outbound/pg_channels_repo.rsindex 4ecf0656ac..ee5018f78c 100644--- a/crates/channels/src/outbound/pg_channels_repo.rs+++ b/crates/channels/src/outbound/pg_channels_repo.rs@@ -245,6 +245,7 @@ struct ChannelInfoRow {/// Intermediate row for batch channel preview lookups.#[derive(Debug, sqlx::FromRow)]struct ChannelPreviewQueryRow {+ profile_picture_id: Option<Uuid>,id: Uuid,name: Option<String>,channel_type: ChannelType,@@ -1691,6 +1692,22 @@ impl ChannelAttachmentRepo for PgChannelsRepo {}impl ChannelRepo for PgChannelsRepo {+ async fn set_channel_picture(+ &self,+ channel_id: Uuid,+ picture_id: Option<Uuid>,+ ) -> Result<(), Self::Err> {+ sqlx::query!(+ "UPDATE comms_channels SET profile_picture_id = $2, updated_at = NOW() WHERE id = $1",+ channel_id,+ picture_id,+ )+ .execute(&self.pool)+ .await+ .context("unable to update channel picture")?;+ Ok(())+ }+type Err = anyhow::Error;#[tracing::instrument(err, skip(self))]@@ -2719,6 +2736,7 @@ impl ChannelRepo for PgChannelsRepo {SELECTc.id,c.name,+ c.profile_picture_id,c.channel_type AS "channel_type: ChannelType",c.org_id,c.team_id,@@ -2745,6 +2763,7 @@ impl ChannelRepo for PgChannelsRepo {Ok(rows.into_iter().map(|row| ChannelPreviewRow {+ profile_picture_id: row.profile_picture_id,info: ChannelInfo {id: row.id,name: row.name,diff --git a/crates/channels/src/outbound/pg_channels_repo/tests.rs b/crates/channels/src/outbound/pg_channels_repo/tests.rsindex 8fae2acf16..3eb0549c78 100644--- a/crates/channels/src/outbound/pg_channels_repo/tests.rs+++ b/crates/channels/src/outbound/pg_channels_repo/tests.rs@@ -3305,3 +3305,21 @@ async fn delete_channel_cascades_contacts_backfill_outbox_rows(pool: Pool<Postgr.unwrap();assert_eq!(outbox_count, 0);}++#[sqlx::test(+ fixtures(path = "../../../fixtures", scripts("channels_repo")),+ migrator = "MACRO_DB_MIGRATIONS"+)]+async fn channel_picture_round_trips_through_batched_previews(pool: Pool<Postgres>) {+ let repo = repo(pool);+ for picture in [Some(Uuid::new_v4()), Some(Uuid::new_v4()), None] {+ repo.set_channel_picture(CH1, picture).await.unwrap();+ let previews = repo+ .batch_get_channel_previews(&[CH1.to_string()], USER_A, None)+ .await+ .unwrap();+ assert_eq!(previews.len(), 1);+ assert_eq!(previews[0].profile_picture_id, picture);+ assert!(previews[0].has_access);+ }+}diff --git a/crates/channels/src/outbound/static_file_pictures.rs b/crates/channels/src/outbound/static_file_pictures.rsnew file mode 100644index 0000000000..41845f8f5b--- /dev/null+++ b/crates/channels/src/outbound/static_file_pictures.rs@@ -0,0 +1,32 @@+//! Static-file metadata adapter for channel picture authorization.++use crate::domain::ports::{ChannelPictureFile, ChannelPictureFiles};+use static_file_service_client::StaticFileServiceClient;+use uuid::Uuid;++/// Reads authoritative file metadata through the static-file service.+#[derive(Clone)]+pub struct StaticFileChannelPictures {+ client: StaticFileServiceClient,+}++impl StaticFileChannelPictures {+ /// Create a picture metadata adapter with an authenticated service client.+ pub fn new(client: StaticFileServiceClient) -> Self {+ Self { client }+ }+}++impl ChannelPictureFiles for StaticFileChannelPictures {+ async fn get_picture_file(&self, file_id: Uuid) -> anyhow::Result<Option<ChannelPictureFile>> {+ Ok(self+ .client+ .get_file_metadata(&file_id.to_string())+ .await?+ .map(|file| ChannelPictureFile {+ owner_id: file.owner_id,+ is_uploaded: file.is_uploaded,+ content_type: file.content_type,+ }))+ }+}diff --git a/crates/macro_db_client/migrations/20260917140309_channel_profile_picture.sql b/crates/macro_db_client/migrations/20260917140309_channel_profile_picture.sqlnew file mode 100644index 0000000000..32a05b4b10--- /dev/null+++ b/crates/macro_db_client/migrations/20260917140309_channel_profile_picture.sql@@ -0,0 +1,3 @@+-- Static files are owned by the static-file service; channel deletion removes+-- this reference along with the channel, without deleting a potentially shared file.+ALTER TABLE comms_channels ADD COLUMN profile_picture_id UUID;diff --git a/crates/teams/src/domain/team_service/test.rs b/crates/teams/src/domain/team_service/test.rsindex e1544ca690..976d5fe261 100644--- a/crates/teams/src/domain/team_service/test.rs+++ b/crates/teams/src/domain/team_service/test.rs@@ -897,6 +897,14 @@ struct RecordingChannelService {}impl ChannelService for RecordingChannelService {+ async fn set_channel_picture(+ &self,+ _access: channels::domain::ports::ChannelPictureAccess,+ _picture_id: Option<uuid::Uuid>,+ ) -> Result<(), channels::domain::ports::ChannelMutationErr> {+ unimplemented!("picture mutation is not used by this fixture")+ }+fn get_channel_messages(&self,_channel_id: uuid::Uuid,diff --git a/docs/AGENT_GUIDE/channels.md b/docs/AGENT_GUIDE/channels.mdindex acbe0eb6e2..6256a6baf6 100644--- a/docs/AGENT_GUIDE/channels.md+++ b/docs/AGENT_GUIDE/channels.md@@ -321,3 +321,19 @@ bottom through composer resizing and server acknowledgement. Check that restorinthe caret after send does not pan the page while the keyboard resizes. Repeat with dictationand check that sent text does not return. Scroll into history before an incomingmessage or acknowledgement and verify that it does not pull you to latest.+++## Channel pictures++Channels and group chats can have a custom picture. Admins and owners (the same+people who can rename a channel) can open the title menu. Beside `Rename`,+choose `Set channel picture` to add or replace a picture. Select a PNG, JPG,+WebP, or GIF up to 16 MB. The upload must finish before the picture is saved;+the server accepts only supported images uploaded by the person setting the+picture. An error leaves the previous picture in place. When a picture is set, the menu also offers+`Remove channel picture` to restore the standard channel icon. The picture+beside the title is display-only and also appears in shared channel rows.+Picture changes refresh other participants' open sessions, including after+reconnecting.+Members see the picture without editing controls. One-to-one direct messages+continue to show the other person's user picture.diff --git a/packages/sdk/generated/storage/index.ts b/packages/sdk/generated/storage/index.tsindex 205724c610..2e9a698abd 100644--- a/packages/sdk/generated/storage/index.ts+++ b/packages/sdk/generated/storage/index.ts@@ -1,4 +1,4 @@// This file is auto-generated by @hey-api/openapi-tsexport { type Options, Sdk } from './sdk.gen';-export type { AccessLevel, ActiveCallsResponse, ActiveCallSummary, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Agent, AgentActionId, AgentChannelScope, AgentMcpServer, AgentMcpServers, AgentSessionFilters, AgentSessionLifecycleEvent, Anchor, AnchorId, AnchorRequest, AnchorResponse, AnnotationIncrementalUpdate, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelContextMessage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelMessage, ApiChannelMessageKind, ApiChannelMessagesPage, ApiChannelParticipant, ApiChannelWithLatest, ApiCountedReaction, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiMessageAttachment, ApiMessageSender, ApiMessageSenderType, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, ApiResolvedChannelMessage, ApiThreadInfo, ApiThreadReply, ApproveHarnessPairingData, ApproveHarnessPairingError, ApproveHarnessPairingErrors, ApproveHarnessPairingResponse, ApproveHarnessPairingResponses, ApprovePairingRequest, AssignInitiativeTasksData, AssignInitiativeTasksError, AssignInitiativeTasksErrors, AssignInitiativeTasksResponse, AssignInitiativeTasksResponses, AssignTasksRequest, AssignTasksResponse, AssignTasksResult, AssignTaskStatus, AttendeeResponseStatus, BasicDocument, BasicDocumentSubType, BomPart, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarEventSourceContent, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelEventAttachment, ChannelFilters, ChannelJoinCodeResponse, ChannelMentionedMetadata, ChannelMessage, ChannelMessageAttachmentCreatedMetadata, ChannelMessageAttachmentRemovedMetadata, ChannelMessageDeletedMetadata, ChannelMessageFilters, ChannelMessagePatchedMetadata, ChannelMessagePostedMetadata, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPreview, ChannelPreviewData, ChannelSender, ChannelSharePermission, ChannelThreadFilters, ChannelTopicEvent, ChannelType, ChannelUpdatedMetadata, ChannelWebhookRequest, ChannelWebhookResponse, ChannelWithParticipants, Chat, ChatFilters, CheckActiveCallData, CheckActiveCallError, CheckActiveCallErrors, CheckActiveCallResponse, CheckActiveCallResponses, ClaimedPairing, ClaimHarnessPairingData, ClaimHarnessPairingError, ClaimHarnessPairingErrors, ClaimHarnessPairingResponse, ClaimHarnessPairingResponses, ClaimPairingRequest, ClientOptions, CloudStorageItemType, CollabSurfaceResponse, CollabSurfaceTokenResponse, Comment, CommentThread, ConferenceProvider, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBotRequest, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenError, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponse, CreateCollabSurfaceTokenResponses, CreateCommentData, CreateCommentError, CreateCommentErrors, CreateCommentRequest, CreateCommentResponse, CreateCommentResponse2, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentError, CreateCrmCommentErrors, CreateCrmCommentRequest, CreateCrmCommentResponse, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreatedPairing, CreatedUserApiKey, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingError, CreateHarnessPairingErrors, CreateHarnessPairingResponse, CreateHarnessPairingResponses, CreateInitiativeData, CreateInitiativeError, CreateInitiativeErrors, CreateInitiativeRequest, CreateInitiativeResponse, CreateInitiativeResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreatePairingRequest, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateReminderData, CreateReminderError, CreateReminderErrors, CreateReminderRequest, CreateReminderResponse, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateUserApiKeyData, CreateUserApiKeyError, CreateUserApiKeyErrors, CreateUserApiKeyRequest, CreateUserApiKeyResponse, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmComment, CrmCommentEntityType, CrmCommentThread, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmStageInput, CrmStageResponse, CrmStagesResponse, CrmTeamSettingsResponse, CrmThread, CustomSpeakerAssignment, DataType, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorInfo, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelResponse, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceError, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponse, DeleteCollabSurfaceResponses, DeleteCommentData, DeleteCommentError, DeleteCommentErrors, DeleteCommentRequest, DeleteCommentResponse, DeleteCommentResponse2, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentError, DeleteCrmCommentErrors, DeleteCrmCommentResponse, DeleteCrmCommentResponses, DeleteCrmCommentResult, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessError, DeleteHarnessErrors, DeleteHarnessResponse, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeError, DeleteInitiativeErrors, DeleteInitiativeResponse, DeleteInitiativeResponses, DeleteMessageData, DeleteMessageError, DeleteMessageErrors, DeleteMessageQuery, DeleteMessageResponse, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderError, DeleteReminderErrors, DeleteReminderResponse, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessError, DeleteSelfHarnessErrors, DeleteSelfHarnessResponse, DeleteSelfHarnessResponses, DeleteThreadInfo, DeleteUnthreadedAnchorRequest, DeleteUnthreadedAnchorResponse, DeleteUnthreadedPdfAnchorRequest, DeleteUserApiKeyData, DeleteUserApiKeyError, DeleteUserApiKeyErrors, DeleteUserApiKeyResponse, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationError, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponse, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerError, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookError, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DocumentBasic, DocumentContent, DocumentContentLocation, DocumentContentState, DocumentContentUploadedMetadata, DocumentCopiedMetadata, DocumentCreatedMetadata, DocumentDeletedMetadata, DocumentFilters, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditCommentData, EditCommentError, EditCommentErrors, EditCommentRequest, EditCommentResponse, EditCommentResponse2, EditCommentResponses, EditCrmCommentData, EditCrmCommentError, EditCrmCommentErrors, EditCrmCommentRequest, EditCrmCommentResponse, EditCrmCommentResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmptyResponse, EnsureCollabSurfaceData, EnsureCollabSurfaceError, EnsureCollabSurfaceErrors, EnsureCollabSurfaceRequest, EnsureCollabSurfaceResponse, EnsureCollabSurfaceResponses, EntityFilters, EntityPermission, EntityPermissionResponse, EntityReference, EntityType, ErrorResponse, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventType, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, Favorite, FavoriteEntityRef, FavoritesList, FileSystemNodeWithIds, FileType, FileTypeUpdate, FolderItem, ForeignEntity, ForeignEntityFilters, GenericErrorResponse, GenericResponse, GenericSuccessResponse, GetActiveCallsData, GetActiveCallsError, GetActiveCallsErrors, GetActiveCallsResponse, GetActiveCallsResponses, GetActivityData, GetActivityError, GetActivityErrors, GetActivityResponse, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesError, GetAttachmentReferencesErrors, GetAttachmentReferencesResponse, GetAttachmentReferencesResponse2, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewError, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewRequest, GetBatchCallRecordPreviewResponse, GetBatchCallRecordPreviewResponse2, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewError, GetBatchChannelPreviewErrors, GetBatchChannelPreviewRequest, GetBatchChannelPreviewResponse, GetBatchChannelPreviewResponse2, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerError, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponse, GetBatchPreviewHandlerResponses, GetBatchPreviewRequest, GetBatchPreviewResponse, GetBatchProjectPreviewData, GetBatchProjectPreviewError, GetBatchProjectPreviewErrors, GetBatchProjectPreviewRequest, GetBatchProjectPreviewResponse, GetBatchProjectPreviewResponse2, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, GetChannelMessagesCatchUpData, GetChannelMessagesCatchUpError, GetChannelMessagesCatchUpErrors, GetChannelMessagesCatchUpResponse, GetChannelMessagesCatchUpResponses, GetChannelMessagesData, GetChannelMessagesError, GetChannelMessagesErrors, GetChannelMessagesResponse, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsError, GetChannelParticipantsErrors, GetChannelParticipantsResponse, GetChannelParticipantsResponses, GetChannelResponse, GetChannelResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceError, GetCollabSurfaceErrors, GetCollabSurfaceResponse, GetCollabSurfaceResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetContactByEmailData, GetContactByEmailError, GetContactByEmailErrors, GetContactByEmailResponse, GetContactByEmailResponse2, GetContactByEmailResponses, GetContactData, GetContactError, GetContactErrors, GetContactResponse, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsError, GetDocumentCommentsErrors, GetDocumentCommentsResponse, GetDocumentCommentsResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsError, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponse, GetDocumentGithubPullRequestsResponses, GetDocumentKeyResponse, GetDocumentKeyResponseData, GetDocumentListHandlerData, GetDocumentListHandlerError, GetDocumentListHandlerErrors, GetDocumentListHandlerResponse, GetDocumentListHandlerResponses, GetDocumentListResult, GetDocumentLocationV3Data, GetDocumentLocationV3Error, GetDocumentLocationV3Errors, GetDocumentLocationV3Response, GetDocumentLocationV3Responses, GetDocumentPermissionsResponseDataV2, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenError, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponse, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Error, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Response, GetDocumentPermissionsV2Responses, GetDocumentProcessingResult, GetDocumentProcessingResultData, GetDocumentProcessingResultError, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponse, GetDocumentProcessingResultResponse2, GetDocumentProcessingResultResponses, GetDocumentResponse, GetDocumentResponse2, GetDocumentResponseData, GetDocumentResponses, GetDocumentSearchResponse, GetDocumentShortIdData, GetDocumentShortIdError, GetDocumentShortIdErrors, GetDocumentShortIdResponse, GetDocumentShortIdResponses, GetDocumentsResponse, GetDocumentTeamShareData, GetDocumentTeamShareError, GetDocumentTeamShareErrors, GetDocumentTeamShareResponse, GetDocumentTeamShareResponses, GetDocumentUserAccessLevelResponse, GetDocumentVersionData, GetDocumentVersionError, GetDocumentVersionErrors, GetDocumentVersionResponse, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerError, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponse, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceError, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponse, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetHarnessPairingData, GetHarnessPairingError, GetHarnessPairingErrors, GetHarnessPairingResponse, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeError, GetInitiativeErrors, GetInitiativeResponse, GetInitiativeResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextError, GetMessageWithContextErrors, GetMessageWithContextResponse, GetMessageWithContextResponse2, GetMessageWithContextResponses, GetOrCreateAction, GetOrCreateCallData, GetOrCreateCallError, GetOrCreateCallErrors, GetOrCreateCallResponse, GetOrCreateCallResponses, GetOrCreateChannelResponse, GetOrCreateDmData, GetOrCreateDmError, GetOrCreateDmErrors, GetOrCreateDmRequest, GetOrCreateDmResponse, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateError, GetOrCreatePrivateErrors, GetOrCreatePrivateRequest, GetOrCreatePrivateResponse, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerError, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponse, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerError, GetPinsHandlerErrors, GetPinsHandlerResponse, GetPinsHandlerResponses, GetPinsResponse, GetProjectContentHandlerData, GetProjectContentHandlerError, GetProjectContentHandlerErrors, GetProjectContentHandlerResponse, GetProjectContentHandlerResponses, GetProjectContentResponse, GetProjectHandlerData, GetProjectHandlerError, GetProjectHandlerErrors, GetProjectHandlerResponse, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Error, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Response, GetProjectPermissionsV2Responses, GetProjectResponse, GetProjectResponseData, GetProjectsHandlerData, GetProjectsHandlerError, GetProjectsHandlerErrors, GetProjectsHandlerResponse, GetProjectsHandlerResponses, GetProjectsResponse, GetProjectUserAccessLevelData, GetProjectUserAccessLevelError, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponse, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderError, GetReminderErrors, GetReminderResponse, GetReminderResponses, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessError, GetSelfHarnessErrors, GetSelfHarnessResponse, GetSelfHarnessResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesError, GetThreadRepliesErrors, GetThreadRepliesResponse, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubPullRequest, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestsResponse, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, Harness, HarnessAgent, HarnessId, HarnessOwner, HarnessSession, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, InFlightTurnSummary, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InitiativeDetail, InitiativeId, InitiativeList, InitiativeSummary, InputReceivedMetadata, InstallSyncData, InstallSyncErrors, InteractionReason, Item, ItemWithUserAccessLevel, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, LatestMessage, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsError, ListCrmCommentsErrors, ListCrmCommentsResponse, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsError, ListHarnessAgentsErrors, ListHarnessAgentsResponse, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesError, ListHarnessesErrors, ListHarnessesResponse, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsError, ListHarnessSessionsErrors, ListHarnessSessionsResponse, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesError, ListInitiativesErrors, ListInitiativesResponse, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListRemindersData, ListRemindersError, ListRemindersErrors, ListRemindersResponse, ListRemindersResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponse, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponse, MentionPreviewsResponses, Mentions, NewChannelAttachment, NotificationFilters, NotificationState, PairingDetails, Params, ParticipantRole, PatchBotRequest, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageData, PatchMessageError, PatchMessageErrors, PatchMessageRequest, PatchMessageResponse, PatchMessageResponses, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfAnchorRequest, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PdfPlaceableCommentAnchorRequest, PendingClaimResponse, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesError, PostChannelMessagesErrors, PostChannelMessagesResponse, PostChannelMessagesResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessageData, PostMessageError, PostMessageErrors, PostMessageRequest, PostMessageResponse, PostMessageResponse2, PostMessageResponses, PostReactionData, PostReactionError, PostReactionErrors, PostReactionRequest, PostReactionResponse, PostReactionResponses, PostSoupAstRequest, PostSoupRequest, PostTypingData, PostTypingError, PostTypingErrors, PostTypingRequest, PostTypingResponse, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresignedUrl, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyFilter, PropertyInput, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesError, PutCrmTeamStagesErrors, PutCrmTeamStagesResponse, PutCrmTeamStagesResponses, ReactionAction, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, Reminder, ReminderFilters, ReminderSchedule, RemindersList, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, ReplaceCrmStagesRequest, RequestedHarnessScope, ResetCrmTeamStagesData, ResetCrmTeamStagesError, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponse, ResetCrmTeamStagesResponses, ResolveChannelMessageData, ResolveChannelMessageError, ResolveChannelMessageErrors, ResolveChannelMessageResponse, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, S3ObjectInfo, SaveBomPart, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SessionDeletedMetadata, SessionIdentity, SessionMentionedMetadata, SessionOpenedMetadata, SessionRenamedMetadata, SessionSettledMetadata, SessionStoppedMetadata, SetCompanyHiddenData, SetCompanyHiddenError, SetCompanyHiddenErrors, SetCompanyHiddenRequest, SetCompanyHiddenResponse, SetCompanyHiddenResponses, SetCompanyNameRequest, SetContactHiddenData, SetContactHiddenError, SetContactHiddenErrors, SetContactHiddenRequest, SetContactHiddenResponse, SetContactHiddenResponses, SetContactNameRequest, SetCrmCompanyNameData, SetCrmCompanyNameError, SetCrmCompanyNameErrors, SetCrmCompanyNameResponse, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameError, SetCrmContactNameErrors, SetCrmContactNameResponse, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetPropertyValue, SharedEmailFilter, SharePermissionV2, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SoupAgentSessionSoupPropertiesField, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmDomain, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupReminderReference, SoupReminderSchedule, SoupReminderSoupPropertiesField, SoupThreadInfo, SoupThreadReply, StarterDocumentsResponse, StreamEventsData, StreamEventsError, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, String, SuccessResponse, SurfaceState, SyncServiceVersionId, SystemSkillSummary, TagFilterMode, TaskFilters, TeamOutOfOfficeItem, TeamOutOfOfficeResponse, TeamRole, Thread, ThreadOrigin, ThreadResponse, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TranscriptSegmentRequest, TurnEndedMetadata, TurnStartedMetadata, TurnSummary, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingAction, UnassignInitiativeTaskData, UnassignInitiativeTaskError, UnassignInitiativeTaskErrors, UnassignInitiativeTaskResponse, UnassignInitiativeTaskResponses, UnthreadedPdfUuidRequest, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateInitiativeData, UpdateInitiativeError, UpdateInitiativeErrors, UpdateInitiativeRequest, UpdateInitiativeResponse, UpdateInitiativeResponses, UpdateOperation, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderRequest, UpdateReminderResponse, UpdateReminderResponses, UpdateSharePermissionRequestV2, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UpsertHistoryHandlerData, UpsertHistoryHandlerError, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponse, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationError, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationRequest, UpsertUserDocumentViewLocationResponse, UpsertUserDocumentViewLocationResponses, UserApiKeyId, UserApiKeyInfo, UserApiKeysList, UserDocumentsResponse, UserDocumentViewLocation, UserDocumentViewLocationResponse, UserPinsResponse, UserViewsResponse, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenError, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponse, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookError, ValidateWebhookErrors, ValidateWebhookResponse, ValidateWebhookResponse2, ValidateWebhookResponses, Vec, View, ViewPatch, ViewsResponse, WaitingForInputMetadata, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';+export type { AccessLevel, ActiveCallsResponse, ActiveCallSummary, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Agent, AgentActionId, AgentChannelScope, AgentMcpServer, AgentMcpServers, AgentSessionFilters, AgentSessionLifecycleEvent, Anchor, AnchorId, AnchorRequest, AnchorResponse, AnnotationIncrementalUpdate, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelContextMessage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelMessage, ApiChannelMessageKind, ApiChannelMessagesPage, ApiChannelParticipant, ApiChannelWithLatest, ApiCountedReaction, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiMessageAttachment, ApiMessageSender, ApiMessageSenderType, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, ApiResolvedChannelMessage, ApiThreadInfo, ApiThreadReply, ApproveHarnessPairingData, ApproveHarnessPairingError, ApproveHarnessPairingErrors, ApproveHarnessPairingResponse, ApproveHarnessPairingResponses, ApprovePairingRequest, AssignInitiativeTasksData, AssignInitiativeTasksError, AssignInitiativeTasksErrors, AssignInitiativeTasksResponse, AssignInitiativeTasksResponses, AssignTasksRequest, AssignTasksResponse, AssignTasksResult, AssignTaskStatus, AttendeeResponseStatus, BasicDocument, BasicDocumentSubType, BomPart, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarEventSourceContent, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelEventAttachment, ChannelFilters, ChannelJoinCodeResponse, ChannelMentionedMetadata, ChannelMessage, ChannelMessageAttachmentCreatedMetadata, ChannelMessageAttachmentRemovedMetadata, ChannelMessageDeletedMetadata, ChannelMessageFilters, ChannelMessagePatchedMetadata, ChannelMessagePostedMetadata, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPreview, ChannelPreviewData, ChannelSender, ChannelSharePermission, ChannelThreadFilters, ChannelTopicEvent, ChannelType, ChannelUpdatedMetadata, ChannelWebhookRequest, ChannelWebhookResponse, ChannelWithParticipants, Chat, ChatFilters, CheckActiveCallData, CheckActiveCallError, CheckActiveCallErrors, CheckActiveCallResponse, CheckActiveCallResponses, ClaimedPairing, ClaimHarnessPairingData, ClaimHarnessPairingError, ClaimHarnessPairingErrors, ClaimHarnessPairingResponse, ClaimHarnessPairingResponses, ClaimPairingRequest, ClientOptions, CloudStorageItemType, CollabSurfaceResponse, CollabSurfaceTokenResponse, Comment, CommentThread, ConferenceProvider, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBotRequest, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenError, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponse, CreateCollabSurfaceTokenResponses, CreateCommentData, CreateCommentError, CreateCommentErrors, CreateCommentRequest, CreateCommentResponse, CreateCommentResponse2, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentError, CreateCrmCommentErrors, CreateCrmCommentRequest, CreateCrmCommentResponse, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreatedPairing, CreatedUserApiKey, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingError, CreateHarnessPairingErrors, CreateHarnessPairingResponse, CreateHarnessPairingResponses, CreateInitiativeData, CreateInitiativeError, CreateInitiativeErrors, CreateInitiativeRequest, CreateInitiativeResponse, CreateInitiativeResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreatePairingRequest, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateReminderData, CreateReminderError, CreateReminderErrors, CreateReminderRequest, CreateReminderResponse, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateUserApiKeyData, CreateUserApiKeyError, CreateUserApiKeyErrors, CreateUserApiKeyRequest, CreateUserApiKeyResponse, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmComment, CrmCommentEntityType, CrmCommentThread, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmStageInput, CrmStageResponse, CrmStagesResponse, CrmTeamSettingsResponse, CrmThread, CustomSpeakerAssignment, DataType, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorInfo, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelResponse, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceError, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponse, DeleteCollabSurfaceResponses, DeleteCommentData, DeleteCommentError, DeleteCommentErrors, DeleteCommentRequest, DeleteCommentResponse, DeleteCommentResponse2, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentError, DeleteCrmCommentErrors, DeleteCrmCommentResponse, DeleteCrmCommentResponses, DeleteCrmCommentResult, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessError, DeleteHarnessErrors, DeleteHarnessResponse, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeError, DeleteInitiativeErrors, DeleteInitiativeResponse, DeleteInitiativeResponses, DeleteMessageData, DeleteMessageError, DeleteMessageErrors, DeleteMessageQuery, DeleteMessageResponse, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderError, DeleteReminderErrors, DeleteReminderResponse, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessError, DeleteSelfHarnessErrors, DeleteSelfHarnessResponse, DeleteSelfHarnessResponses, DeleteThreadInfo, DeleteUnthreadedAnchorRequest, DeleteUnthreadedAnchorResponse, DeleteUnthreadedPdfAnchorRequest, DeleteUserApiKeyData, DeleteUserApiKeyError, DeleteUserApiKeyErrors, DeleteUserApiKeyResponse, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationError, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponse, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerError, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookError, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DocumentBasic, DocumentContent, DocumentContentLocation, DocumentContentState, DocumentContentUploadedMetadata, DocumentCopiedMetadata, DocumentCreatedMetadata, DocumentDeletedMetadata, DocumentFilters, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditCommentData, EditCommentError, EditCommentErrors, EditCommentRequest, EditCommentResponse, EditCommentResponse2, EditCommentResponses, EditCrmCommentData, EditCrmCommentError, EditCrmCommentErrors, EditCrmCommentRequest, EditCrmCommentResponse, EditCrmCommentResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmptyResponse, EnsureCollabSurfaceData, EnsureCollabSurfaceError, EnsureCollabSurfaceErrors, EnsureCollabSurfaceRequest, EnsureCollabSurfaceResponse, EnsureCollabSurfaceResponses, EntityFilters, EntityPermission, EntityPermissionResponse, EntityReference, EntityType, ErrorResponse, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventType, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, Favorite, FavoriteEntityRef, FavoritesList, FileSystemNodeWithIds, FileType, FileTypeUpdate, FolderItem, ForeignEntity, ForeignEntityFilters, GenericErrorResponse, GenericResponse, GenericSuccessResponse, GetActiveCallsData, GetActiveCallsError, GetActiveCallsErrors, GetActiveCallsResponse, GetActiveCallsResponses, GetActivityData, GetActivityError, GetActivityErrors, GetActivityResponse, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesError, GetAttachmentReferencesErrors, GetAttachmentReferencesResponse, GetAttachmentReferencesResponse2, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewError, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewRequest, GetBatchCallRecordPreviewResponse, GetBatchCallRecordPreviewResponse2, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewError, GetBatchChannelPreviewErrors, GetBatchChannelPreviewRequest, GetBatchChannelPreviewResponse, GetBatchChannelPreviewResponse2, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerError, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponse, GetBatchPreviewHandlerResponses, GetBatchPreviewRequest, GetBatchPreviewResponse, GetBatchProjectPreviewData, GetBatchProjectPreviewError, GetBatchProjectPreviewErrors, GetBatchProjectPreviewRequest, GetBatchProjectPreviewResponse, GetBatchProjectPreviewResponse2, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, GetChannelMessagesCatchUpData, GetChannelMessagesCatchUpError, GetChannelMessagesCatchUpErrors, GetChannelMessagesCatchUpResponse, GetChannelMessagesCatchUpResponses, GetChannelMessagesData, GetChannelMessagesError, GetChannelMessagesErrors, GetChannelMessagesResponse, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsError, GetChannelParticipantsErrors, GetChannelParticipantsResponse, GetChannelParticipantsResponses, GetChannelResponse, GetChannelResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceError, GetCollabSurfaceErrors, GetCollabSurfaceResponse, GetCollabSurfaceResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetContactByEmailData, GetContactByEmailError, GetContactByEmailErrors, GetContactByEmailResponse, GetContactByEmailResponse2, GetContactByEmailResponses, GetContactData, GetContactError, GetContactErrors, GetContactResponse, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsError, GetDocumentCommentsErrors, GetDocumentCommentsResponse, GetDocumentCommentsResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsError, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponse, GetDocumentGithubPullRequestsResponses, GetDocumentKeyResponse, GetDocumentKeyResponseData, GetDocumentListHandlerData, GetDocumentListHandlerError, GetDocumentListHandlerErrors, GetDocumentListHandlerResponse, GetDocumentListHandlerResponses, GetDocumentListResult, GetDocumentLocationV3Data, GetDocumentLocationV3Error, GetDocumentLocationV3Errors, GetDocumentLocationV3Response, GetDocumentLocationV3Responses, GetDocumentPermissionsResponseDataV2, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenError, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponse, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Error, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Response, GetDocumentPermissionsV2Responses, GetDocumentProcessingResult, GetDocumentProcessingResultData, GetDocumentProcessingResultError, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponse, GetDocumentProcessingResultResponse2, GetDocumentProcessingResultResponses, GetDocumentResponse, GetDocumentResponse2, GetDocumentResponseData, GetDocumentResponses, GetDocumentSearchResponse, GetDocumentShortIdData, GetDocumentShortIdError, GetDocumentShortIdErrors, GetDocumentShortIdResponse, GetDocumentShortIdResponses, GetDocumentsResponse, GetDocumentTeamShareData, GetDocumentTeamShareError, GetDocumentTeamShareErrors, GetDocumentTeamShareResponse, GetDocumentTeamShareResponses, GetDocumentUserAccessLevelResponse, GetDocumentVersionData, GetDocumentVersionError, GetDocumentVersionErrors, GetDocumentVersionResponse, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerError, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponse, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceError, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponse, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetHarnessPairingData, GetHarnessPairingError, GetHarnessPairingErrors, GetHarnessPairingResponse, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeError, GetInitiativeErrors, GetInitiativeResponse, GetInitiativeResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextError, GetMessageWithContextErrors, GetMessageWithContextResponse, GetMessageWithContextResponse2, GetMessageWithContextResponses, GetOrCreateAction, GetOrCreateCallData, GetOrCreateCallError, GetOrCreateCallErrors, GetOrCreateCallResponse, GetOrCreateCallResponses, GetOrCreateChannelResponse, GetOrCreateDmData, GetOrCreateDmError, GetOrCreateDmErrors, GetOrCreateDmRequest, GetOrCreateDmResponse, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateError, GetOrCreatePrivateErrors, GetOrCreatePrivateRequest, GetOrCreatePrivateResponse, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerError, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponse, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerError, GetPinsHandlerErrors, GetPinsHandlerResponse, GetPinsHandlerResponses, GetPinsResponse, GetProjectContentHandlerData, GetProjectContentHandlerError, GetProjectContentHandlerErrors, GetProjectContentHandlerResponse, GetProjectContentHandlerResponses, GetProjectContentResponse, GetProjectHandlerData, GetProjectHandlerError, GetProjectHandlerErrors, GetProjectHandlerResponse, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Error, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Response, GetProjectPermissionsV2Responses, GetProjectResponse, GetProjectResponseData, GetProjectsHandlerData, GetProjectsHandlerError, GetProjectsHandlerErrors, GetProjectsHandlerResponse, GetProjectsHandlerResponses, GetProjectsResponse, GetProjectUserAccessLevelData, GetProjectUserAccessLevelError, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponse, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderError, GetReminderErrors, GetReminderResponse, GetReminderResponses, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessError, GetSelfHarnessErrors, GetSelfHarnessResponse, GetSelfHarnessResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesError, GetThreadRepliesErrors, GetThreadRepliesResponse, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubPullRequest, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestsResponse, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, Harness, HarnessAgent, HarnessId, HarnessOwner, HarnessSession, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, InFlightTurnSummary, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InitiativeDetail, InitiativeId, InitiativeList, InitiativeSummary, InputReceivedMetadata, InstallSyncData, InstallSyncErrors, InteractionReason, Item, ItemWithUserAccessLevel, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, LatestMessage, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsError, ListCrmCommentsErrors, ListCrmCommentsResponse, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsError, ListHarnessAgentsErrors, ListHarnessAgentsResponse, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesError, ListHarnessesErrors, ListHarnessesResponse, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsError, ListHarnessSessionsErrors, ListHarnessSessionsResponse, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesError, ListInitiativesErrors, ListInitiativesResponse, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListRemindersData, ListRemindersError, ListRemindersErrors, ListRemindersResponse, ListRemindersResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponse, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponse, MentionPreviewsResponses, Mentions, NewChannelAttachment, NotificationFilters, NotificationState, PairingDetails, Params, ParticipantRole, PatchBotRequest, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageData, PatchMessageError, PatchMessageErrors, PatchMessageRequest, PatchMessageResponse, PatchMessageResponses, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfAnchorRequest, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PdfPlaceableCommentAnchorRequest, PendingClaimResponse, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesError, PostChannelMessagesErrors, PostChannelMessagesResponse, PostChannelMessagesResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessageData, PostMessageError, PostMessageErrors, PostMessageRequest, PostMessageResponse, PostMessageResponse2, PostMessageResponses, PostReactionData, PostReactionError, PostReactionErrors, PostReactionRequest, PostReactionResponse, PostReactionResponses, PostSoupAstRequest, PostSoupRequest, PostTypingData, PostTypingError, PostTypingErrors, PostTypingRequest, PostTypingResponse, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresignedUrl, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyFilter, PropertyInput, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesError, PutCrmTeamStagesErrors, PutCrmTeamStagesResponse, PutCrmTeamStagesResponses, ReactionAction, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, Reminder, ReminderFilters, ReminderSchedule, RemindersList, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, ReplaceCrmStagesRequest, RequestedHarnessScope, ResetCrmTeamStagesData, ResetCrmTeamStagesError, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponse, ResetCrmTeamStagesResponses, ResolveChannelMessageData, ResolveChannelMessageError, ResolveChannelMessageErrors, ResolveChannelMessageResponse, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, S3ObjectInfo, SaveBomPart, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SessionDeletedMetadata, SessionIdentity, SessionMentionedMetadata, SessionOpenedMetadata, SessionRenamedMetadata, SessionSettledMetadata, SessionStoppedMetadata, SetChannelPictureData, SetChannelPictureError, SetChannelPictureErrors, SetChannelPictureRequest, SetChannelPictureResponse, SetChannelPictureResponses, SetCompanyHiddenData, SetCompanyHiddenError, SetCompanyHiddenErrors, SetCompanyHiddenRequest, SetCompanyHiddenResponse, SetCompanyHiddenResponses, SetCompanyNameRequest, SetContactHiddenData, SetContactHiddenError, SetContactHiddenErrors, SetContactHiddenRequest, SetContactHiddenResponse, SetContactHiddenResponses, SetContactNameRequest, SetCrmCompanyNameData, SetCrmCompanyNameError, SetCrmCompanyNameErrors, SetCrmCompanyNameResponse, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameError, SetCrmContactNameErrors, SetCrmContactNameResponse, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetPropertyValue, SharedEmailFilter, SharePermissionV2, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SoupAgentSessionSoupPropertiesField, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmDomain, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupReminderReference, SoupReminderSchedule, SoupReminderSoupPropertiesField, SoupThreadInfo, SoupThreadReply, StarterDocumentsResponse, StreamEventsData, StreamEventsError, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, String, SuccessResponse, SurfaceState, SyncServiceVersionId, SystemSkillSummary, TagFilterMode, TaskFilters, TeamOutOfOfficeItem, TeamOutOfOfficeResponse, TeamRole, Thread, ThreadOrigin, ThreadResponse, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TranscriptSegmentRequest, TurnEndedMetadata, TurnStartedMetadata, TurnSummary, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingAction, UnassignInitiativeTaskData, UnassignInitiativeTaskError, UnassignInitiativeTaskErrors, UnassignInitiativeTaskResponse, UnassignInitiativeTaskResponses, UnthreadedPdfUuidRequest, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateInitiativeData, UpdateInitiativeError, UpdateInitiativeErrors, UpdateInitiativeRequest, UpdateInitiativeResponse, UpdateInitiativeResponses, UpdateOperation, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderRequest, UpdateReminderResponse, UpdateReminderResponses, UpdateSharePermissionRequestV2, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UpsertHistoryHandlerData, UpsertHistoryHandlerError, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponse, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationError, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationRequest, UpsertUserDocumentViewLocationResponse, UpsertUserDocumentViewLocationResponses, UserApiKeyId, UserApiKeyInfo, UserApiKeysList, UserDocumentsResponse, UserDocumentViewLocation, UserDocumentViewLocationResponse, UserPinsResponse, UserViewsResponse, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenError, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponse, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookError, ValidateWebhookErrors, ValidateWebhookResponse, ValidateWebhookResponse2, ValidateWebhookResponses, Vec, View, ViewPatch, ViewsResponse, WaitingForInputMetadata, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';diff --git a/packages/sdk/generated/storage/sdk.gen.ts b/packages/sdk/generated/storage/sdk.gen.tsindex 03d831aed6..91a02081e5 100644--- a/packages/sdk/generated/storage/sdk.gen.ts+++ b/packages/sdk/generated/storage/sdk.gen.ts@@ -2,7 +2,7 @@import type { Client, ClientMeta, Options as Options2, RequestResult, ServerSentEventsResult, TDataShape } from './client';import { client } from './client.gen';-import type { AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, AssignInitiativeTasksData, AssignInitiativeTasksErrors, AssignInitiativeTasksResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, ClaimHarnessPairingData, ClaimHarnessPairingErrors, ClaimHarnessPairingResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCommentData, CreateCommentErrors, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentErrors, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingErrors, CreateHarnessPairingResponses, CreateInitiativeData, CreateInitiativeErrors, CreateInitiativeResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateReminderData, CreateReminderErrors, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentErrors, DeleteCrmCommentResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessErrors, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeErrors, DeleteInitiativeResponses, DeleteMessageData, DeleteMessageErrors, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderErrors, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessErrors, DeleteSelfHarnessResponses, DeleteUserApiKeyData, DeleteUserApiKeyErrors, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditCommentData, EditCommentErrors, EditCommentResponses, EditCrmCommentData, EditCrmCommentErrors, EditCrmCommentResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, EnsureCollabSurfaceData, EnsureCollabSurfaceErrors, EnsureCollabSurfaceResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, GetActiveCallsData, GetActiveCallsErrors, GetActiveCallsResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelMessagesCatchUpData, GetChannelMessagesCatchUpErrors, GetChannelMessagesCatchUpResponses, GetChannelMessagesData, GetChannelMessagesErrors, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceErrors, GetCollabSurfaceResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactByEmailData, GetContactByEmailErrors, GetContactByEmailResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsErrors, GetDocumentCommentsResponses, GetDocumentData, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponses, GetDocumentListHandlerData, GetDocumentListHandlerErrors, GetDocumentListHandlerResponses, GetDocumentLocationV3Data, GetDocumentLocationV3Errors, GetDocumentLocationV3Responses, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Responses, GetDocumentProcessingResultData, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponses, GetDocumentResponses, GetDocumentShortIdData, GetDocumentShortIdErrors, GetDocumentShortIdResponses, GetDocumentTeamShareData, GetDocumentTeamShareErrors, GetDocumentTeamShareResponses, GetDocumentVersionData, GetDocumentVersionErrors, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetHarnessPairingData, GetHarnessPairingErrors, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeErrors, GetInitiativeResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextErrors, GetMessageWithContextResponses, GetOrCreateCallData, GetOrCreateCallErrors, GetOrCreateCallResponses, GetOrCreateDmData, GetOrCreateDmErrors, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateErrors, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerErrors, GetPinsHandlerResponses, GetProjectContentHandlerData, GetProjectContentHandlerErrors, GetProjectContentHandlerResponses, GetProjectHandlerData, GetProjectHandlerErrors, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Responses, GetProjectsHandlerData, GetProjectsHandlerErrors, GetProjectsHandlerResponses, GetProjectUserAccessLevelData, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderErrors, GetReminderResponses, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessErrors, GetSelfHarnessResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesErrors, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsErrors, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesErrors, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListRemindersData, ListRemindersErrors, ListRemindersResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchMessageData, PatchMessageErrors, PatchMessageResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesErrors, PostChannelMessagesResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PostMessageData, PostMessageErrors, PostMessageResponses, PostReactionData, PostReactionErrors, PostReactionResponses, PostTypingData, PostTypingErrors, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesErrors, PutCrmTeamStagesResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponses, ResolveChannelMessageData, ResolveChannelMessageErrors, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, UnassignInitiativeTaskData, UnassignInitiativeTaskErrors, UnassignInitiativeTaskResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateInitiativeData, UpdateInitiativeErrors, UpdateInitiativeResponses, UpdateReminderData, UpdateReminderErrors, UpdateReminderResponses, UploadExtractFolderHandlerData, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponses, UploadFolderHandlerData, UploadFolderHandlerErrors, UploadFolderHandlerResponses, UpsertHistoryHandlerData, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationResponses, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookErrors, ValidateWebhookResponses } from './types.gen';+import type { AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, AssignInitiativeTasksData, AssignInitiativeTasksErrors, AssignInitiativeTasksResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, ClaimHarnessPairingData, ClaimHarnessPairingErrors, ClaimHarnessPairingResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCommentData, CreateCommentErrors, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentErrors, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingErrors, CreateHarnessPairingResponses, CreateInitiativeData, CreateInitiativeErrors, CreateInitiativeResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateReminderData, CreateReminderErrors, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentErrors, DeleteCrmCommentResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessErrors, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeErrors, DeleteInitiativeResponses, DeleteMessageData, DeleteMessageErrors, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderErrors, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessErrors, DeleteSelfHarnessResponses, DeleteUserApiKeyData, DeleteUserApiKeyErrors, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditCommentData, EditCommentErrors, EditCommentResponses, EditCrmCommentData, EditCrmCommentErrors, EditCrmCommentResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, EnsureCollabSurfaceData, EnsureCollabSurfaceErrors, EnsureCollabSurfaceResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, GetActiveCallsData, GetActiveCallsErrors, GetActiveCallsResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelMessagesCatchUpData, GetChannelMessagesCatchUpErrors, GetChannelMessagesCatchUpResponses, GetChannelMessagesData, GetChannelMessagesErrors, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceErrors, GetCollabSurfaceResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactByEmailData, GetContactByEmailErrors, GetContactByEmailResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsErrors, GetDocumentCommentsResponses, GetDocumentData, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponses, GetDocumentListHandlerData, GetDocumentListHandlerErrors, GetDocumentListHandlerResponses, GetDocumentLocationV3Data, GetDocumentLocationV3Errors, GetDocumentLocationV3Responses, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Responses, GetDocumentProcessingResultData, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponses, GetDocumentResponses, GetDocumentShortIdData, GetDocumentShortIdErrors, GetDocumentShortIdResponses, GetDocumentTeamShareData, GetDocumentTeamShareErrors, GetDocumentTeamShareResponses, GetDocumentVersionData, GetDocumentVersionErrors, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetHarnessPairingData, GetHarnessPairingErrors, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeErrors, GetInitiativeResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextErrors, GetMessageWithContextResponses, GetOrCreateCallData, GetOrCreateCallErrors, GetOrCreateCallResponses, GetOrCreateDmData, GetOrCreateDmErrors, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateErrors, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerErrors, GetPinsHandlerResponses, GetProjectContentHandlerData, GetProjectContentHandlerErrors, GetProjectContentHandlerResponses, GetProjectHandlerData, GetProjectHandlerErrors, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Responses, GetProjectsHandlerData, GetProjectsHandlerErrors, GetProjectsHandlerResponses, GetProjectUserAccessLevelData, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderErrors, GetReminderResponses, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessErrors, GetSelfHarnessResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesErrors, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsErrors, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesErrors, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListRemindersData, ListRemindersErrors, ListRemindersResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchMessageData, PatchMessageErrors, PatchMessageResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesErrors, PostChannelMessagesResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PostMessageData, PostMessageErrors, PostMessageResponses, PostReactionData, PostReactionErrors, PostReactionResponses, PostTypingData, PostTypingErrors, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesErrors, PutCrmTeamStagesResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponses, ResolveChannelMessageData, ResolveChannelMessageErrors, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SetChannelPictureData, SetChannelPictureErrors, SetChannelPictureResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, UnassignInitiativeTaskData, UnassignInitiativeTaskErrors, UnassignInitiativeTaskResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateInitiativeData, UpdateInitiativeErrors, UpdateInitiativeResponses, UpdateReminderData, UpdateReminderErrors, UpdateReminderResponses, UploadExtractFolderHandlerData, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponses, UploadFolderHandlerData, UploadFolderHandlerErrors, UploadFolderHandlerResponses, UpsertHistoryHandlerData, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationResponses, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookErrors, ValidateWebhookResponses } from './types.gen';export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {/**@@ -714,6 +714,20 @@ export class Sdk extends HeyApiClient {});}+ /**+ * Set a channel or group chat profile picture. Requires rename permission.+ */+ public setChannelPicture<ThrowOnError extends boolean = false>(options: Options<SetChannelPictureData, ThrowOnError>): RequestResult<SetChannelPictureResponses, SetChannelPictureErrors, ThrowOnError> {+ return (options.client ?? this.client).put<SetChannelPictureResponses, SetChannelPictureErrors, ThrowOnError>({+ url: '/channels/{channel_id}/profile_picture',+ ...options,+ headers: {+ 'Content-Type': 'application/json',+ ...options.headers+ }+ });+ }+/*** Handler for `POST /channels/{channel_id}/reaction`.*/diff --git a/packages/sdk/generated/storage/types.gen.ts b/packages/sdk/generated/storage/types.gen.tsindex 0ab4fe053e..afaef78313 100644--- a/packages/sdk/generated/storage/types.gen.ts+++ b/packages/sdk/generated/storage/types.gen.ts@@ -2633,6 +2633,10 @@ export type ChannelPreviewData = {* Channel type.*/channel_type: ChannelType;+ /**+ * Static image file used as the channel's profile picture, when accessible.+ */+ profile_picture_id?: string | null;};export type ChannelSender = string;@@ -7680,6 +7684,16 @@ export type SessionStoppedMetadata = {turn_in_flight?: null | InFlightTurnSummary;};+/**+ * Replace a channel's picture, or remove it by sending a null file id.+ */+export type SetChannelPictureRequest = {+ /**+ * Static image file id; null restores the default channel icon.+ */+ profile_picture_id?: string | null;+};+/*** Request body for `PUT /companies/{company_id}/hidden`.*/@@ -11616,6 +11630,37 @@ export type AddParticipantsResponses = {200: unknown;};+export type SetChannelPictureData = {+ body: SetChannelPictureRequest;+ path: {+ /**+ * Channel ID+ */+ channel_id: string;+ };+ query?: never;+ url: '/channels/{channel_id}/profile_picture';+};++export type SetChannelPictureErrors = {+ 400: ErrorResponse;+ 401: ErrorResponse;+ 403: ErrorResponse;+ 404: ErrorResponse;+ 500: ErrorResponse;+};++export type SetChannelPictureError = SetChannelPictureErrors[keyof SetChannelPictureErrors];++export type SetChannelPictureResponses = {+ /**+ * Picture updated+ */+ 204: void;+};++export type SetChannelPictureResponse = SetChannelPictureResponses[keyof SetChannelPictureResponses];+export type PostReactionData = {body: PostReactionRequest;path: {diff --git a/packages/sdk/specs/storage.json b/packages/sdk/specs/storage.jsonindex 81265ff380..201d3a7a82 100644--- a/packages/sdk/specs/storage.json+++ b/packages/sdk/specs/storage.json@@ -4250,6 +4250,90 @@}}},+ "/channels/{channel_id}/profile_picture": {+ "put": {+ "tags": ["channels::inbound::axum_router::profile_picture"],+ "summary": "Set a channel or group chat profile picture. Requires rename permission.",+ "operationId": "set_channel_picture",+ "parameters": [+ {+ "name": "channel_id",+ "in": "path",+ "description": "Channel ID",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ }+ ],+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/SetChannelPictureRequest"+ }+ }+ },+ "required": true+ },+ "responses": {+ "204": {+ "description": "Picture updated"+ },+ "400": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "401": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "403": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "404": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "500": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ }+ }+ }+ },"/channels/{channel_id}/reaction": {"post": {"tags": ["channels"],@@ -17213,6 +17297,11 @@"channel_type": {"$ref": "#/components/schemas/ChannelType","description": "Channel type."+ },+ "profile_picture_id": {+ "type": ["string", "null"],+ "format": "uuid",+ "description": "Static image file used as the channel's profile picture, when accessible."}}},@@ -25630,6 +25719,17 @@}}},+ "SetChannelPictureRequest": {+ "type": "object",+ "description": "Replace a channel's picture, or remove it by sending a null file id.",+ "properties": {+ "profile_picture_id": {+ "type": ["string", "null"],+ "format": "uuid",+ "description": "Static image file id; null restores the default channel icon."+ }+ }+ },"SetCompanyHiddenRequest": {"type": "object","description": "Request body for `PUT /companies/{company_id}/hidden`.",diff --git a/packages/sdk/src/coverage/skipped.ts b/packages/sdk/src/coverage/skipped.tsindex c5fd9afc19..f6c46c95c8 100644--- a/packages/sdk/src/coverage/skipped.ts+++ b/packages/sdk/src/coverage/skipped.ts@@ -369,6 +369,7 @@ export const storageBacklog = ['postActivity','presaveDocumentHandler','saveDocumentHandler',+ 'setChannelPicture','simpleSave','toggleShareWithTeam','unassignInitiativeTask',diff --git a/services/document_storage_service/Cargo.toml b/services/document_storage_service/Cargo.tomlindex 23567899b2..eaf1b25da0 100644--- a/services/document_storage_service/Cargo.toml+++ b/services/document_storage_service/Cargo.toml@@ -205,6 +205,7 @@ sqs_client = { path = "../../crates/sqs_client", default-features = false, featu"search",] }sqs_worker = { path = "../../crates/sqs_worker" }+static_file_service_client = { path = "../../crates/static_file_service_client" }sync_service_client = { path = "../../crates/sync_service_client" }sync_service_hex = { path = "../../crates/sync_service", package = "sync_service_hex", features = ["inbound",diff --git a/services/document_storage_service/src/api/context.rs b/services/document_storage_service/src/api/context.rsindex ca821b2f99..cf553d4624 100644--- a/services/document_storage_service/src/api/context.rs+++ b/services/document_storage_service/src/api/context.rs@@ -368,6 +368,7 @@ pub(crate) type DssChannelService = ChannelServiceImpl<>,PgChannelReferenceSharePermissions<EntityAccessService>,lexical_mention_extractor::LexicalMentionExtractor,+ channels::outbound::static_file_pictures::StaticFileChannelPictures,>;/// Type alias for the channels router state.diff --git a/services/document_storage_service/src/api/swagger.rs b/services/document_storage_service/src/api/swagger.rsindex 302b33db28..96fcda499b 100644--- a/services/document_storage_service/src/api/swagger.rs+++ b/services/document_storage_service/src/api/swagger.rs@@ -233,6 +233,7 @@ use utoipa::OpenApi;channels::inbound::axum_router::get_or_create_dm_handler,channels::inbound::axum_router::get_or_create_private_handler,channels::inbound::axum_router::patch_channel_handler,+ channels::inbound::axum_router::profile_picture::set_channel_picture_handler,channels::inbound::axum_router::delete_channel_handler,channels::inbound::axum_router::post_message_handler,channels::inbound::axum_router::patch_message_handler,diff --git a/services/document_storage_service/src/main.rs b/services/document_storage_service/src/main.rsindex c366cc2d8f..c6aa469b4a 100644--- a/services/document_storage_service/src/main.rs+++ b/services/document_storage_service/src/main.rs@@ -104,7 +104,9 @@ use macro_env_var::maybe_env_vars;use macro_event_broker::{KafkaEventPublisher, MacroEventBrokerService};#[cfg(feature = "delete_document_worker")]use macro_service_urls::AiEditingWorkerUrl;-use macro_service_urls::{ConnectionGatewayUrl, LexicalServiceUrl, SyncServiceUrl};+use macro_service_urls::{+ ConnectionGatewayUrl, LexicalServiceUrl, StaticFileServiceUrl, SyncServiceUrl,+};use macro_sha_count_client::Redis;use notification::domain::service::{NotificationReaderService, PlatformArnConfig, SqsNotificationIngress,@@ -972,6 +974,14 @@ async fn run() -> anyhow::Result<()> {SpawnedChannelEventDispatcher::new(channel_side_effects.clone()),PgChannelReferenceSharePermissions::new(db.clone(), entity_access_service.clone()),)+ .with_picture_files(+ channels::outbound::static_file_pictures::StaticFileChannelPictures::new(+ static_file_service_client::StaticFileServiceClient::new(+ config.internal_api_key.to_string(),+ StaticFileServiceUrl::new()?.to_string(),+ ),+ ),+ ).with_mention_extractor(lexical_mention_extractor::LexicalMentionExtractor::new(lexical_client.clone(),)),diff --git a/tooling/xtask/crates/xtask_local/src/local/local_env.rs b/tooling/xtask/crates/xtask_local/src/local/local_env.rsindex 87556bccf6..122be2b304 100644--- a/tooling/xtask/crates/xtask_local/src/local/local_env.rs+++ b/tooling/xtask/crates/xtask_local/src/local/local_env.rs@@ -196,6 +196,11 @@ impl InfraEnv {"OVERRIDE_LEXICAL_SERVICE_URL".into(),"http://lexical-service:8096".into(),);+ // Channel picture authorization reads file metadata from inside DSS.+ env.insert(+ "OVERRIDE_STATIC_FILE_SERVICE_URL".into(),+ "http://static-file-service:8080".into(),+ );// Same failure mode for the email connect flows: without these,// first-inbox provisioning (auth-service → `/email/init`) and Gmail// token fetches (email-service → `/internal/google_access_token`)diff --git a/tooling/xtask/crates/xtask_local/src/local/local_env/test.rs b/tooling/xtask/crates/xtask_local/src/local/local_env/test.rsindex 8992cabbac..91ecb57f88 100644--- a/tooling/xtask/crates/xtask_local/src/local/local_env/test.rs+++ b/tooling/xtask/crates/xtask_local/src/local/local_env/test.rs@@ -213,6 +213,10 @@ fn emits_in_network_service_url_overrides() {"OVERRIDE_LEXICAL_SERVICE_URL","http://lexical-service:8096",),+ (+ "OVERRIDE_STATIC_FILE_SERVICE_URL",+ "http://static-file-service:8080",+ ),] {assert_eq!(env.get(key).map(String::as_str), Some(expected));}