* Create base shared instance migration and initial routes * Fix build * Add version uploads * Add permissions field for shared instance users * Actually use permissions field * Add "public" flag to shared instances that allow GETing them without authorization * Add the ability to get and list shared instance versions * Add the ability to delete shared instance versions * Fix build after merge * Secured file hosting (#3784) * Remove Backblaze-specific file-hosting backend * Added S3_USES_PATH_STYLE_BUCKETS * Remove unused file_id parameter from delete_file_version * Add support for separate public and private buckets in labrinth::file_hosting * Rename delete_file_version to delete_file * Add (untested) get_url_for_private_file * Remove url field from shared instance routes * Remove url field from shared instance routes * Use private bucket for shared instance versions * Make S3 environment variables fully separate between public and private buckets * Change file host expiry for shared instances to 180 seconds * Fix lint * Merge shared instance migrations into a single migration * Replace shared instance owners with Ghost instead of deleting the instance
28 lines
685 B
Rust
28 lines
685 B
Rust
use ariadne::ids::base62_id;
|
|
|
|
base62_id!(ChargeId);
|
|
base62_id!(CollectionId);
|
|
base62_id!(FileId);
|
|
base62_id!(ImageId);
|
|
base62_id!(NotificationId);
|
|
base62_id!(OAuthAccessTokenId);
|
|
base62_id!(OAuthClientAuthorizationId);
|
|
base62_id!(OAuthClientId);
|
|
base62_id!(OAuthRedirectUriId);
|
|
base62_id!(OrganizationId);
|
|
base62_id!(PatId);
|
|
base62_id!(PayoutId);
|
|
base62_id!(ProductId);
|
|
base62_id!(ProductPriceId);
|
|
base62_id!(ProjectId);
|
|
base62_id!(ReportId);
|
|
base62_id!(SessionId);
|
|
base62_id!(SharedInstanceId);
|
|
base62_id!(SharedInstanceVersionId);
|
|
base62_id!(TeamId);
|
|
base62_id!(TeamMemberId);
|
|
base62_id!(ThreadId);
|
|
base62_id!(ThreadMessageId);
|
|
base62_id!(UserSubscriptionId);
|
|
base62_id!(VersionId);
|