Mercurial > libervia-backend
comparison sat/core/constants.py @ 4023:78b5f356900c
component AP gateway: handle attachments
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 23 Mar 2023 15:42:21 +0100 |
parents | 74d4c9ff893d |
children | 524856bd7b19 |
comparison
equal
deleted
inserted
replaced
4022:cdb7de398c85 | 4023:78b5f356900c |
---|---|
129 # encryption is a key for plugins | 129 # encryption is a key for plugins |
130 MESS_KEY_ENCRYPTION: Final = "ENCRYPTION" | 130 MESS_KEY_ENCRYPTION: Final = "ENCRYPTION" |
131 # encrypted is a key for frontends | 131 # encrypted is a key for frontends |
132 MESS_KEY_ENCRYPTED = "encrypted" | 132 MESS_KEY_ENCRYPTED = "encrypted" |
133 MESS_KEY_TRUSTED = "trusted" | 133 MESS_KEY_TRUSTED = "trusted" |
134 | |
135 MESS_KEY_ATTACHMENTS = "attachments" | |
136 MESS_KEY_ATTACHMENTS_MEDIA_TYPE = "media_type" | |
137 MESS_KEY_ATTACHMENTS_PREVIEW = "preview" | |
138 MESS_KEY_ATTACHMENTS_RESIZE = "resize" | |
139 | 134 |
140 # File encryption algorithms | 135 # File encryption algorithms |
141 ENC_AES_GCM = "AES-GCM" | 136 ENC_AES_GCM = "AES-GCM" |
142 | 137 |
143 ## Chat ## | 138 ## Chat ## |
366 ACCESS_TYPES = (ACCESS_TYPE_PUBLIC, ACCESS_TYPE_WHITELIST) | 361 ACCESS_TYPES = (ACCESS_TYPE_PUBLIC, ACCESS_TYPE_WHITELIST) |
367 | 362 |
368 ## Common data keys ## | 363 ## Common data keys ## |
369 KEY_THUMBNAILS = "thumbnails" | 364 KEY_THUMBNAILS = "thumbnails" |
370 KEY_PROGRESS_ID = "progress_id" | 365 KEY_PROGRESS_ID = "progress_id" |
366 KEY_ATTACHMENTS = "attachments" | |
367 KEY_ATTACHMENTS_MEDIA_TYPE = "media_type" | |
368 KEY_ATTACHMENTS_PREVIEW = "preview" | |
369 KEY_ATTACHMENTS_RESIZE = "resize" | |
370 | |
371 | 371 |
372 ## Common extra keys/values ## | 372 ## Common extra keys/values ## |
373 KEY_ORDER_BY = "order_by" | 373 KEY_ORDER_BY = "order_by" |
374 KEY_USE_CACHE = "use_cache" | 374 KEY_USE_CACHE = "use_cache" |
375 KEY_DECRYPT = "decrypt" | 375 KEY_DECRYPT = "decrypt" |