{"openapi":"3.1.0","info":{"title":"DeltaChat Corp Admin","version":"0.1.0"},"paths":{"/healthz":{"get":{"summary":"Healthz","description":"Lightweight liveness probe for container health checks.","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Healthz Healthz Get"}}}}}}},"/api/v1/auth/login":{"post":{"summary":"V1 Auth Login","operationId":"v1_auth_login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AuthLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"summary":"V1 Auth Refresh","operationId":"v1_auth_refresh_api_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AuthRefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants":{"get":{"summary":"V1 List Tenants","operationId":"v1_list_tenants_api_v1_tenants_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/context:open":{"post":{"summary":"V1 Open Tenant Context","operationId":"v1_open_tenant_context_api_v1_tenants__tenant_id__context_open_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/tenants":{"get":{"summary":"V1 Admin List Tenants","description":"List all tenants (requires portal admin permission).","operationId":"v1_admin_list_tenants_api_v1_admin_tenants_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AdminTenantsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"V1 Admin Create Tenant","operationId":"v1_admin_create_tenant_api_v1_admin_tenants_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateTenantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/sync-portal-config":{"post":{"summary":"V1 Admin Sync Portal Config","description":"Trigger sync of portal admin and global settings config files to database.\nReloads both data/portal-admins.yaml and data/portal_defaults.yaml.\nRequires portal admin permission.","operationId":"v1_admin_sync_portal_config_api_v1_admin_sync_portal_config_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AdminSyncPortalConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/users":{"get":{"summary":"V1 List Tenant Users","operationId":"v1_list_tenant_users_api_v1_tenants__tenant_id__users_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"V1 Create Tenant User","operationId":"v1_create_tenant_user_api_v1_tenants__tenant_id__users_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/users:bulk-create":{"post":{"summary":"V1 Bulk Create Tenant Users","operationId":"v1_bulk_create_tenant_users_api_v1_tenants__tenant_id__users_bulk_create_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BulkCreateUsersRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/channels":{"get":{"summary":"V1 List Tenant Channels","operationId":"v1_list_tenant_channels_api_v1_tenants__tenant_id__channels_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"V1 Create Channel","operationId":"v1_create_channel_api_v1_tenants__tenant_id__channels_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateChannelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/channels/{channel_id}":{"patch":{"summary":"V1 Update Channel","operationId":"v1_update_channel_api_v1_tenants__tenant_id__channels__channel_id__patch","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1UpdateChannelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/channels/{channel_id}:archive":{"post":{"summary":"V1 Archive Channel","operationId":"v1_archive_channel_api_v1_tenants__tenant_id__channels__channel_id__archive_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/channels/{channel_id}/members":{"post":{"summary":"V1 Add Channel Member","operationId":"v1_add_channel_member_api_v1_tenants__tenant_id__channels__channel_id__members_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AddChannelMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/channels/{channel_id}/members:bulk-create":{"post":{"summary":"V1 Bulk Add Channel Members","operationId":"v1_bulk_add_channel_members_api_v1_tenants__tenant_id__channels__channel_id__members_bulk_create_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1BulkAddChannelMembersRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/channels/{channel_id}/messages":{"get":{"summary":"V1 List Channel Messages","operationId":"v1_list_channel_messages_api_v1_tenants__tenant_id__channels__channel_id__messages_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"V1 Send Message","operationId":"v1_send_message_api_v1_tenants__tenant_id__channels__channel_id__messages_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1SendMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/channels/{channel_id}/messages/{message_id}:retry":{"post":{"summary":"V1 Retry Message","operationId":"v1_retry_message_api_v1_tenants__tenant_id__channels__channel_id__messages__message_id__retry_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/channels/{channel_id}/messages/{message_id}":{"delete":{"summary":"V1 Delete Message","operationId":"v1_delete_message_api_v1_tenants__tenant_id__channels__channel_id__messages__message_id__delete","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"integer","title":"Channel Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/settings":{"get":{"summary":"V1 Get Tenant Settings","operationId":"v1_get_tenant_settings_api_v1_tenants__tenant_id__settings_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"V1 Put Tenant Settings","operationId":"v1_put_tenant_settings_api_v1_tenants__tenant_id__settings_put","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/settings/effective":{"get":{"summary":"V1 Get Tenant Effective Settings","operationId":"v1_get_tenant_effective_settings_api_v1_tenants__tenant_id__settings_effective_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/runtime/bot-status":{"get":{"summary":"V1 Get Runtime Bot Status","operationId":"v1_get_runtime_bot_status_api_v1_tenants__tenant_id__runtime_bot_status_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/runtime/runners:start":{"post":{"summary":"V1 Start Runtime Runner","operationId":"v1_start_runtime_runner_api_v1_tenants__tenant_id__runtime_runners_start_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/runtime/runners:stop":{"post":{"summary":"V1 Stop Runtime Runner","operationId":"v1_stop_runtime_runner_api_v1_tenants__tenant_id__runtime_runners_stop_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/events":{"get":{"summary":"V1 Replay Events","operationId":"v1_replay_events_api_v1_tenants__tenant_id__events_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"topic","in":"query","required":false,"schema":{"enum":["admin","messages"],"type":"string","default":"admin","title":"Topic"}},{"name":"after_seq","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"After Seq"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/{tenant_id}/events/stream":{"get":{"summary":"V1 Stream Events","operationId":"v1_stream_events_api_v1_tenants__tenant_id__events_stream_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"topic","in":"query","required":false,"schema":{"enum":["admin","messages"],"type":"string","default":"admin","title":"Topic"}},{"name":"after_seq","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"After Seq"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"V1AddChannelMemberRequest":{"properties":{"user_id":{"type":"string","maxLength":255,"minLength":1,"title":"User Id"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"},"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"role":{"type":"string","maxLength":50,"minLength":1,"title":"Role","default":"member"}},"type":"object","required":["user_id"],"title":"V1AddChannelMemberRequest"},"V1AdminSyncPortalConfigDetails":{"properties":{"portal_admins_synced":{"type":"integer","title":"Portal Admins Synced"},"portal_admins_failed":{"type":"integer","title":"Portal Admins Failed"},"global_settings_reloaded":{"type":"boolean","title":"Global Settings Reloaded"}},"type":"object","required":["portal_admins_synced","portal_admins_failed","global_settings_reloaded"],"title":"V1AdminSyncPortalConfigDetails"},"V1AdminSyncPortalConfigResponse":{"properties":{"action":{"type":"string","title":"Action"},"status":{"type":"string","title":"Status"},"details":{"$ref":"#/components/schemas/V1AdminSyncPortalConfigDetails"}},"type":"object","required":["action","status","details"],"title":"V1AdminSyncPortalConfigResponse"},"V1AdminTenantItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"lifecycle_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lifecycle Status"}},"type":"object","required":["id","name"],"title":"V1AdminTenantItem"},"V1AdminTenantsResponse":{"properties":{"tenants":{"items":{"$ref":"#/components/schemas/V1AdminTenantItem"},"type":"array","title":"Tenants"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["tenants","count"],"title":"V1AdminTenantsResponse"},"V1AuthLoginRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"tenant_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Context"}},"type":"object","required":["username","password"],"title":"V1AuthLoginRequest"},"V1AuthRefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"},"tenant_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Context"}},"type":"object","required":["refresh_token"],"title":"V1AuthRefreshRequest"},"V1BulkAddChannelMembersRequest":{"properties":{"members":{"items":{"$ref":"#/components/schemas/V1AddChannelMemberRequest"},"type":"array","maxItems":500,"minItems":1,"title":"Members"}},"type":"object","required":["members"],"title":"V1BulkAddChannelMembersRequest"},"V1BulkCreateUsersRequest":{"properties":{"users":{"items":{"$ref":"#/components/schemas/V1CreateUserRequest"},"type":"array","maxItems":500,"minItems":1,"title":"Users"}},"type":"object","required":["users"],"title":"V1BulkCreateUsersRequest"},"V1CreateChannelRequest":{"properties":{"channel_name":{"type":"string","maxLength":255,"minLength":1,"title":"Channel Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"join_policy":{"type":"string","enum":["invite_only","open","approval_required"],"title":"Join Policy","default":"invite_only"}},"type":"object","required":["channel_name"],"title":"V1CreateChannelRequest"},"V1CreateTenantRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"daccount_uri":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Daccount Uri"}},"type":"object","required":["name"],"title":"V1CreateTenantRequest"},"V1CreateUserRequest":{"properties":{"display_name":{"type":"string","maxLength":255,"minLength":1,"title":"Display Name"},"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"department":{"type":"string","maxLength":100,"minLength":1,"title":"Department","default":"General"},"label":{"type":"string","maxLength":32,"minLength":1,"title":"Label","default":"corporate"}},"type":"object","required":["display_name","email"],"title":"V1CreateUserRequest"},"V1SendMessageRequest":{"properties":{"text":{"type":"string","maxLength":4000,"minLength":1,"title":"Text"},"sender_label":{"type":"string","maxLength":255,"title":"Sender Label","default":"API"}},"type":"object","required":["text"],"title":"V1SendMessageRequest"},"V1UpdateChannelRequest":{"properties":{"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"join_policy":{"anyOf":[{"type":"string","enum":["invite_only","open","approval_required"]},{"type":"null"}],"title":"Join Policy"},"audit_policies":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Audit Policies"}},"type":"object","title":"V1UpdateChannelRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}