Skip to content

Commit 514231b

Browse files
committed
Update utoipa, started working on albums, public toggle for API files
1 parent 58c872e commit 514231b

49 files changed

Lines changed: 369 additions & 314 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 24 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ actix-web = "4.11.0"
3535
actix-files = "0.6.6"
3636
actix-multipart = "0.7.2"
3737
actix-http = "3.11.0"
38-
utoipa = { version = "2.0.1", features = ["actix_extras"] }
38+
utoipa-actix-web = "0.1.2"
39+
utoipa = { version = "5", features = ["actix_extras"] }
3940
figlet-rs = "0.1.5"
4041
indicatif = "0.18.0"
4142
colored = "3.0.0"

frontend/client/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export type { AlbumUpdate } from './models/AlbumUpdate';
1414
export type { AppInfo } from './models/AppInfo';
1515
export type { ApplicationCreate } from './models/ApplicationCreate';
1616
export type { ApplicationData } from './models/ApplicationData';
17-
export type { ApplicationPage } from './models/ApplicationPage';
1817
export type { AuthMethods } from './models/AuthMethods';
1918
export type { BasicAuthForm } from './models/BasicAuthForm';
2019
export type { BatchDeleteRequest } from './models/BatchDeleteRequest';
@@ -24,16 +23,15 @@ export type { LoginRedirectUrl } from './models/LoginRedirectUrl';
2423
export type { MessageResponse } from './models/MessageResponse';
2524
export { OAuthProvider } from './models/OAuthProvider';
2625
export type { OAuthProviders } from './models/OAuthProviders';
27-
export type { OAuthRequest } from './models/OAuthRequest';
26+
export type { Page_ApplicationData } from './models/Page_ApplicationData';
27+
export type { Page_RegistrationKeyData } from './models/Page_RegistrationKeyData';
28+
export type { Page_UploadData } from './models/Page_UploadData';
2829
export type { RegistrationKeyData } from './models/RegistrationKeyData';
29-
export type { RegistrationKeyPage } from './models/RegistrationKeyPage';
3030
export type { TokenResponse } from './models/TokenResponse';
3131
export type { UnlinkAuthMethod } from './models/UnlinkAuthMethod';
3232
export type { UpdateUserSettings } from './models/UpdateUserSettings';
33-
export type { UploadConflict } from './models/UploadConflict';
3433
export type { UploadData } from './models/UploadData';
3534
export type { UploadFile } from './models/UploadFile';
36-
export type { UploadPage } from './models/UploadPage';
3735
export type { UploadStats } from './models/UploadStats';
3836
export type { UserCreateForm } from './models/UserCreateForm';
3937
export type { UserData } from './models/UserData';

frontend/client/models/AlbumCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export type AlbumCreate = {
55
/**
66
* Optional album description.
77
*/
8-
description?: string;
8+
description?: string | null;
99
/**
1010
* Album name.
1111
*/

frontend/client/models/AlbumData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type AlbumData = {
99
/**
1010
* Optional album description
1111
*/
12-
description?: string;
12+
description?: string | null;
1313
id: string;
1414
name: string;
1515
/**

frontend/client/models/AlbumUpdate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ export type AlbumUpdate = {
55
/**
66
* Optional album description.
77
*/
8-
description?: string;
8+
description?: string | null;
99
/**
1010
* Album name.
1111
*/
12-
name?: string;
12+
name?: string | null;
1313
/**
1414
* Is the album public.
1515
*/
16-
public?: boolean;
16+
public?: boolean | null;
1717
};
1818

frontend/client/models/AppInfo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export type AppInfo = {
2727
* Are registration keys enabled?
2828
*/
2929
inviteOnly: boolean;
30+
/**
31+
* Enabled OAuth providers.
32+
*/
3033
oauthProviders: OAuthProviders;
3134
/**
3235
* Is SMTP (email verification) enabled on the server?

frontend/client/models/ApplicationData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type ApplicationData = {
1515
/**
1616
* Only sent when the token is originally created
1717
*/
18-
token?: string;
18+
token?: string | null;
1919
/**
2020
* User ID who owns the application
2121
*/

frontend/client/models/ApplicationPage.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

frontend/client/models/AuthMethods.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ export type AuthMethods = {
88
/**
99
* Cached discord tag.
1010
*/
11-
discord?: string;
11+
discord?: string | null;
1212
/**
1313
* Cached github username.
1414
*/
15-
github?: string;
15+
github?: string | null;
1616
/**
1717
* Google username (email before the @).
1818
*/
19-
google?: string;
19+
google?: string | null;
2020
/**
2121
* Is password authentication enabled.
2222
*/

0 commit comments

Comments
 (0)