@remnawave/backend-contract 2.6.25 → 2.6.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/backend/commands/auth/get-status.command.d.ts +9 -42
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.js +0 -4
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts +3 -2
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/callback.command.d.ts +3 -2
- package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/index.d.ts +0 -1
- package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/index.js +0 -1
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts +6 -6
- package/build/backend/commands/passkeys/delete-passkeys.command.d.ts +6 -6
- package/build/backend/commands/passkeys/get-active-passkeys.command.d.ts +6 -6
- package/build/backend/commands/passkeys/update-passkey.command.d.ts +8 -8
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts +61 -33
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts +108 -56
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.js +0 -1
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts +6 -6
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +6 -6
- package/build/backend/commands/users/actions/disable-user.command.d.ts +4 -4
- package/build/backend/commands/users/actions/enable-user.command.d.ts +4 -4
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +4 -4
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +4 -4
- package/build/backend/commands/users/create-user.command.d.ts +4 -4
- package/build/backend/commands/users/get-all-users.command.d.ts +6 -6
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +4 -4
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +4 -4
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts +6 -6
- package/build/backend/commands/users/update-user.command.d.ts +4 -4
- package/build/backend/constants/oauth2/providers.contants.d.ts +2 -1
- package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -1
- package/build/backend/constants/oauth2/providers.contants.js +1 -0
- package/build/backend/models/extended-users.schema.d.ts +2 -2
- package/build/backend/models/remnawave-settings/index.d.ts +0 -1
- package/build/backend/models/remnawave-settings/index.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/index.js +0 -1
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts +33 -0
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.js +23 -0
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts +47 -23
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.js +0 -2
- package/build/backend/models/subscription-request-history.schema.d.ts +2 -2
- package/build/backend/models/users.schema.d.ts +2 -2
- package/build/backend/models/webhook/webhook.schema.d.ts +32 -32
- package/build/frontend/commands/auth/get-status.command.js +0 -4
- package/build/frontend/commands/auth/oauth2/index.js +0 -1
- package/build/frontend/commands/remnawave-settings/update-remnawave-settings.command.js +0 -1
- package/build/frontend/constants/oauth2/providers.contants.js +1 -0
- package/build/frontend/models/remnawave-settings/index.js +0 -1
- package/build/frontend/models/remnawave-settings/oauth2-settings.schema.js +23 -0
- package/build/frontend/models/remnawave-settings/remnawave-settings.schema.js +0 -2
- package/package.json +1 -1
- package/build/backend/commands/auth/oauth2/telegram-callback.command.d.ts +0 -51
- package/build/backend/commands/auth/oauth2/telegram-callback.command.d.ts.map +0 -1
- package/build/backend/commands/auth/oauth2/telegram-callback.command.js +0 -26
- package/build/backend/models/remnawave-settings/tg-auth-settings.schema.d.ts +0 -16
- package/build/backend/models/remnawave-settings/tg-auth-settings.schema.d.ts.map +0 -1
- package/build/backend/models/remnawave-settings/tg-auth-settings.schema.js +0 -12
- package/build/frontend/commands/auth/oauth2/telegram-callback.command.js +0 -26
- package/build/frontend/models/remnawave-settings/tg-auth-settings.schema.js +0 -12
|
@@ -84,8 +84,8 @@ export declare namespace GetUserByEmailCommand {
|
|
|
84
84
|
createdAt: Date;
|
|
85
85
|
updatedAt: Date;
|
|
86
86
|
username: string;
|
|
87
|
-
id: number;
|
|
88
87
|
tag: string | null;
|
|
88
|
+
id: number;
|
|
89
89
|
shortUuid: string;
|
|
90
90
|
trafficLimitBytes: number;
|
|
91
91
|
description: string | null;
|
|
@@ -120,8 +120,8 @@ export declare namespace GetUserByEmailCommand {
|
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
username: string;
|
|
123
|
-
id: number;
|
|
124
123
|
tag: string | null;
|
|
124
|
+
id: number;
|
|
125
125
|
shortUuid: string;
|
|
126
126
|
description: string | null;
|
|
127
127
|
expireAt: string;
|
|
@@ -160,8 +160,8 @@ export declare namespace GetUserByEmailCommand {
|
|
|
160
160
|
createdAt: Date;
|
|
161
161
|
updatedAt: Date;
|
|
162
162
|
username: string;
|
|
163
|
-
id: number;
|
|
164
163
|
tag: string | null;
|
|
164
|
+
id: number;
|
|
165
165
|
shortUuid: string;
|
|
166
166
|
trafficLimitBytes: number;
|
|
167
167
|
description: string | null;
|
|
@@ -198,8 +198,8 @@ export declare namespace GetUserByEmailCommand {
|
|
|
198
198
|
createdAt: string;
|
|
199
199
|
updatedAt: string;
|
|
200
200
|
username: string;
|
|
201
|
-
id: number;
|
|
202
201
|
tag: string | null;
|
|
202
|
+
id: number;
|
|
203
203
|
shortUuid: string;
|
|
204
204
|
description: string | null;
|
|
205
205
|
expireAt: string;
|
|
@@ -84,8 +84,8 @@ export declare namespace GetUserByIdCommand {
|
|
|
84
84
|
createdAt: Date;
|
|
85
85
|
updatedAt: Date;
|
|
86
86
|
username: string;
|
|
87
|
-
id: number;
|
|
88
87
|
tag: string | null;
|
|
88
|
+
id: number;
|
|
89
89
|
shortUuid: string;
|
|
90
90
|
trafficLimitBytes: number;
|
|
91
91
|
description: string | null;
|
|
@@ -120,8 +120,8 @@ export declare namespace GetUserByIdCommand {
|
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
username: string;
|
|
123
|
-
id: number;
|
|
124
123
|
tag: string | null;
|
|
124
|
+
id: number;
|
|
125
125
|
shortUuid: string;
|
|
126
126
|
description: string | null;
|
|
127
127
|
expireAt: string;
|
|
@@ -160,8 +160,8 @@ export declare namespace GetUserByIdCommand {
|
|
|
160
160
|
createdAt: Date;
|
|
161
161
|
updatedAt: Date;
|
|
162
162
|
username: string;
|
|
163
|
-
id: number;
|
|
164
163
|
tag: string | null;
|
|
164
|
+
id: number;
|
|
165
165
|
shortUuid: string;
|
|
166
166
|
trafficLimitBytes: number;
|
|
167
167
|
description: string | null;
|
|
@@ -198,8 +198,8 @@ export declare namespace GetUserByIdCommand {
|
|
|
198
198
|
createdAt: string;
|
|
199
199
|
updatedAt: string;
|
|
200
200
|
username: string;
|
|
201
|
-
id: number;
|
|
202
201
|
tag: string | null;
|
|
202
|
+
id: number;
|
|
203
203
|
shortUuid: string;
|
|
204
204
|
description: string | null;
|
|
205
205
|
expireAt: string;
|
|
@@ -84,8 +84,8 @@ export declare namespace GetUserByShortUuidCommand {
|
|
|
84
84
|
createdAt: Date;
|
|
85
85
|
updatedAt: Date;
|
|
86
86
|
username: string;
|
|
87
|
-
id: number;
|
|
88
87
|
tag: string | null;
|
|
88
|
+
id: number;
|
|
89
89
|
shortUuid: string;
|
|
90
90
|
trafficLimitBytes: number;
|
|
91
91
|
description: string | null;
|
|
@@ -120,8 +120,8 @@ export declare namespace GetUserByShortUuidCommand {
|
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
username: string;
|
|
123
|
-
id: number;
|
|
124
123
|
tag: string | null;
|
|
124
|
+
id: number;
|
|
125
125
|
shortUuid: string;
|
|
126
126
|
description: string | null;
|
|
127
127
|
expireAt: string;
|
|
@@ -160,8 +160,8 @@ export declare namespace GetUserByShortUuidCommand {
|
|
|
160
160
|
createdAt: Date;
|
|
161
161
|
updatedAt: Date;
|
|
162
162
|
username: string;
|
|
163
|
-
id: number;
|
|
164
163
|
tag: string | null;
|
|
164
|
+
id: number;
|
|
165
165
|
shortUuid: string;
|
|
166
166
|
trafficLimitBytes: number;
|
|
167
167
|
description: string | null;
|
|
@@ -198,8 +198,8 @@ export declare namespace GetUserByShortUuidCommand {
|
|
|
198
198
|
createdAt: string;
|
|
199
199
|
updatedAt: string;
|
|
200
200
|
username: string;
|
|
201
|
-
id: number;
|
|
202
201
|
tag: string | null;
|
|
202
|
+
id: number;
|
|
203
203
|
shortUuid: string;
|
|
204
204
|
description: string | null;
|
|
205
205
|
expireAt: string;
|
|
@@ -84,8 +84,8 @@ export declare namespace GetUserByTagCommand {
|
|
|
84
84
|
createdAt: Date;
|
|
85
85
|
updatedAt: Date;
|
|
86
86
|
username: string;
|
|
87
|
-
id: number;
|
|
88
87
|
tag: string | null;
|
|
88
|
+
id: number;
|
|
89
89
|
shortUuid: string;
|
|
90
90
|
trafficLimitBytes: number;
|
|
91
91
|
description: string | null;
|
|
@@ -120,8 +120,8 @@ export declare namespace GetUserByTagCommand {
|
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
username: string;
|
|
123
|
-
id: number;
|
|
124
123
|
tag: string | null;
|
|
124
|
+
id: number;
|
|
125
125
|
shortUuid: string;
|
|
126
126
|
description: string | null;
|
|
127
127
|
expireAt: string;
|
|
@@ -160,8 +160,8 @@ export declare namespace GetUserByTagCommand {
|
|
|
160
160
|
createdAt: Date;
|
|
161
161
|
updatedAt: Date;
|
|
162
162
|
username: string;
|
|
163
|
-
id: number;
|
|
164
163
|
tag: string | null;
|
|
164
|
+
id: number;
|
|
165
165
|
shortUuid: string;
|
|
166
166
|
trafficLimitBytes: number;
|
|
167
167
|
description: string | null;
|
|
@@ -198,8 +198,8 @@ export declare namespace GetUserByTagCommand {
|
|
|
198
198
|
createdAt: string;
|
|
199
199
|
updatedAt: string;
|
|
200
200
|
username: string;
|
|
201
|
-
id: number;
|
|
202
201
|
tag: string | null;
|
|
202
|
+
id: number;
|
|
203
203
|
shortUuid: string;
|
|
204
204
|
description: string | null;
|
|
205
205
|
expireAt: string;
|
|
@@ -84,8 +84,8 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
|
84
84
|
createdAt: Date;
|
|
85
85
|
updatedAt: Date;
|
|
86
86
|
username: string;
|
|
87
|
-
id: number;
|
|
88
87
|
tag: string | null;
|
|
88
|
+
id: number;
|
|
89
89
|
shortUuid: string;
|
|
90
90
|
trafficLimitBytes: number;
|
|
91
91
|
description: string | null;
|
|
@@ -120,8 +120,8 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
username: string;
|
|
123
|
-
id: number;
|
|
124
123
|
tag: string | null;
|
|
124
|
+
id: number;
|
|
125
125
|
shortUuid: string;
|
|
126
126
|
description: string | null;
|
|
127
127
|
expireAt: string;
|
|
@@ -160,8 +160,8 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
|
160
160
|
createdAt: Date;
|
|
161
161
|
updatedAt: Date;
|
|
162
162
|
username: string;
|
|
163
|
-
id: number;
|
|
164
163
|
tag: string | null;
|
|
164
|
+
id: number;
|
|
165
165
|
shortUuid: string;
|
|
166
166
|
trafficLimitBytes: number;
|
|
167
167
|
description: string | null;
|
|
@@ -198,8 +198,8 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
|
198
198
|
createdAt: string;
|
|
199
199
|
updatedAt: string;
|
|
200
200
|
username: string;
|
|
201
|
-
id: number;
|
|
202
201
|
tag: string | null;
|
|
202
|
+
id: number;
|
|
203
203
|
shortUuid: string;
|
|
204
204
|
description: string | null;
|
|
205
205
|
expireAt: string;
|
|
@@ -84,8 +84,8 @@ export declare namespace GetUserByUsernameCommand {
|
|
|
84
84
|
createdAt: Date;
|
|
85
85
|
updatedAt: Date;
|
|
86
86
|
username: string;
|
|
87
|
-
id: number;
|
|
88
87
|
tag: string | null;
|
|
88
|
+
id: number;
|
|
89
89
|
shortUuid: string;
|
|
90
90
|
trafficLimitBytes: number;
|
|
91
91
|
description: string | null;
|
|
@@ -120,8 +120,8 @@ export declare namespace GetUserByUsernameCommand {
|
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
username: string;
|
|
123
|
-
id: number;
|
|
124
123
|
tag: string | null;
|
|
124
|
+
id: number;
|
|
125
125
|
shortUuid: string;
|
|
126
126
|
description: string | null;
|
|
127
127
|
expireAt: string;
|
|
@@ -160,8 +160,8 @@ export declare namespace GetUserByUsernameCommand {
|
|
|
160
160
|
createdAt: Date;
|
|
161
161
|
updatedAt: Date;
|
|
162
162
|
username: string;
|
|
163
|
-
id: number;
|
|
164
163
|
tag: string | null;
|
|
164
|
+
id: number;
|
|
165
165
|
shortUuid: string;
|
|
166
166
|
trafficLimitBytes: number;
|
|
167
167
|
description: string | null;
|
|
@@ -198,8 +198,8 @@ export declare namespace GetUserByUsernameCommand {
|
|
|
198
198
|
createdAt: string;
|
|
199
199
|
updatedAt: string;
|
|
200
200
|
username: string;
|
|
201
|
-
id: number;
|
|
202
201
|
tag: string | null;
|
|
202
|
+
id: number;
|
|
203
203
|
shortUuid: string;
|
|
204
204
|
description: string | null;
|
|
205
205
|
expireAt: string;
|
|
@@ -84,8 +84,8 @@ export declare namespace GetUserByUuidCommand {
|
|
|
84
84
|
createdAt: Date;
|
|
85
85
|
updatedAt: Date;
|
|
86
86
|
username: string;
|
|
87
|
-
id: number;
|
|
88
87
|
tag: string | null;
|
|
88
|
+
id: number;
|
|
89
89
|
shortUuid: string;
|
|
90
90
|
trafficLimitBytes: number;
|
|
91
91
|
description: string | null;
|
|
@@ -120,8 +120,8 @@ export declare namespace GetUserByUuidCommand {
|
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
username: string;
|
|
123
|
-
id: number;
|
|
124
123
|
tag: string | null;
|
|
124
|
+
id: number;
|
|
125
125
|
shortUuid: string;
|
|
126
126
|
description: string | null;
|
|
127
127
|
expireAt: string;
|
|
@@ -160,8 +160,8 @@ export declare namespace GetUserByUuidCommand {
|
|
|
160
160
|
createdAt: Date;
|
|
161
161
|
updatedAt: Date;
|
|
162
162
|
username: string;
|
|
163
|
-
id: number;
|
|
164
163
|
tag: string | null;
|
|
164
|
+
id: number;
|
|
165
165
|
shortUuid: string;
|
|
166
166
|
trafficLimitBytes: number;
|
|
167
167
|
description: string | null;
|
|
@@ -198,8 +198,8 @@ export declare namespace GetUserByUuidCommand {
|
|
|
198
198
|
createdAt: string;
|
|
199
199
|
updatedAt: string;
|
|
200
200
|
username: string;
|
|
201
|
-
id: number;
|
|
202
201
|
tag: string | null;
|
|
202
|
+
id: number;
|
|
203
203
|
shortUuid: string;
|
|
204
204
|
description: string | null;
|
|
205
205
|
expireAt: string;
|
|
@@ -21,14 +21,14 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
21
21
|
requestIp: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
22
|
userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
id: number;
|
|
25
24
|
userUuid: string;
|
|
25
|
+
id: number;
|
|
26
26
|
requestAt: Date;
|
|
27
27
|
userAgent?: string | null | undefined;
|
|
28
28
|
requestIp?: string | null | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
id: number;
|
|
31
30
|
userUuid: string;
|
|
31
|
+
id: number;
|
|
32
32
|
requestAt: string;
|
|
33
33
|
userAgent?: string | null | undefined;
|
|
34
34
|
requestIp?: string | null | undefined;
|
|
@@ -36,8 +36,8 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
total: number;
|
|
38
38
|
records: {
|
|
39
|
-
id: number;
|
|
40
39
|
userUuid: string;
|
|
40
|
+
id: number;
|
|
41
41
|
requestAt: Date;
|
|
42
42
|
userAgent?: string | null | undefined;
|
|
43
43
|
requestIp?: string | null | undefined;
|
|
@@ -45,8 +45,8 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
45
45
|
}, {
|
|
46
46
|
total: number;
|
|
47
47
|
records: {
|
|
48
|
-
id: number;
|
|
49
48
|
userUuid: string;
|
|
49
|
+
id: number;
|
|
50
50
|
requestAt: string;
|
|
51
51
|
userAgent?: string | null | undefined;
|
|
52
52
|
requestIp?: string | null | undefined;
|
|
@@ -56,8 +56,8 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
56
56
|
response: {
|
|
57
57
|
total: number;
|
|
58
58
|
records: {
|
|
59
|
-
id: number;
|
|
60
59
|
userUuid: string;
|
|
60
|
+
id: number;
|
|
61
61
|
requestAt: Date;
|
|
62
62
|
userAgent?: string | null | undefined;
|
|
63
63
|
requestIp?: string | null | undefined;
|
|
@@ -67,8 +67,8 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
67
67
|
response: {
|
|
68
68
|
total: number;
|
|
69
69
|
records: {
|
|
70
|
-
id: number;
|
|
71
70
|
userUuid: string;
|
|
71
|
+
id: number;
|
|
72
72
|
requestAt: string;
|
|
73
73
|
userAgent?: string | null | undefined;
|
|
74
74
|
requestIp?: string | null | undefined;
|
|
@@ -153,8 +153,8 @@ export declare namespace UpdateUserCommand {
|
|
|
153
153
|
createdAt: Date;
|
|
154
154
|
updatedAt: Date;
|
|
155
155
|
username: string;
|
|
156
|
-
id: number;
|
|
157
156
|
tag: string | null;
|
|
157
|
+
id: number;
|
|
158
158
|
shortUuid: string;
|
|
159
159
|
trafficLimitBytes: number;
|
|
160
160
|
description: string | null;
|
|
@@ -189,8 +189,8 @@ export declare namespace UpdateUserCommand {
|
|
|
189
189
|
createdAt: string;
|
|
190
190
|
updatedAt: string;
|
|
191
191
|
username: string;
|
|
192
|
-
id: number;
|
|
193
192
|
tag: string | null;
|
|
193
|
+
id: number;
|
|
194
194
|
shortUuid: string;
|
|
195
195
|
description: string | null;
|
|
196
196
|
expireAt: string;
|
|
@@ -229,8 +229,8 @@ export declare namespace UpdateUserCommand {
|
|
|
229
229
|
createdAt: Date;
|
|
230
230
|
updatedAt: Date;
|
|
231
231
|
username: string;
|
|
232
|
-
id: number;
|
|
233
232
|
tag: string | null;
|
|
233
|
+
id: number;
|
|
234
234
|
shortUuid: string;
|
|
235
235
|
trafficLimitBytes: number;
|
|
236
236
|
description: string | null;
|
|
@@ -267,8 +267,8 @@ export declare namespace UpdateUserCommand {
|
|
|
267
267
|
createdAt: string;
|
|
268
268
|
updatedAt: string;
|
|
269
269
|
username: string;
|
|
270
|
-
id: number;
|
|
271
270
|
tag: string | null;
|
|
271
|
+
id: number;
|
|
272
272
|
shortUuid: string;
|
|
273
273
|
description: string | null;
|
|
274
274
|
expireAt: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const OAUTH2_PROVIDERS: {
|
|
2
|
+
readonly TELEGRAM: "telegram";
|
|
2
3
|
readonly GITHUB: "github";
|
|
3
4
|
readonly POCKETID: "pocketid";
|
|
4
5
|
readonly YANDEX: "yandex";
|
|
@@ -7,5 +8,5 @@ export declare const OAUTH2_PROVIDERS: {
|
|
|
7
8
|
};
|
|
8
9
|
export type TOAuth2Providers = [keyof typeof OAUTH2_PROVIDERS][number];
|
|
9
10
|
export type TOAuth2ProvidersKeys = (typeof OAUTH2_PROVIDERS)[keyof typeof OAUTH2_PROVIDERS];
|
|
10
|
-
export declare const OAUTH2_PROVIDERS_VALUES: ("github" | "pocketid" | "yandex" | "keycloak" | "generic")[];
|
|
11
|
+
export declare const OAUTH2_PROVIDERS_VALUES: ("telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic")[];
|
|
11
12
|
//# sourceMappingURL=providers.contants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/providers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"providers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/providers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;CAOnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAC5F,eAAO,MAAM,uBAAuB,4EAAkC,CAAC"}
|
|
@@ -71,8 +71,8 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
|
71
71
|
createdAt: Date;
|
|
72
72
|
updatedAt: Date;
|
|
73
73
|
username: string;
|
|
74
|
-
id: number;
|
|
75
74
|
tag: string | null;
|
|
75
|
+
id: number;
|
|
76
76
|
shortUuid: string;
|
|
77
77
|
trafficLimitBytes: number;
|
|
78
78
|
description: string | null;
|
|
@@ -107,8 +107,8 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
|
107
107
|
createdAt: string;
|
|
108
108
|
updatedAt: string;
|
|
109
109
|
username: string;
|
|
110
|
-
id: number;
|
|
111
110
|
tag: string | null;
|
|
111
|
+
id: number;
|
|
112
112
|
shortUuid: string;
|
|
113
113
|
description: string | null;
|
|
114
114
|
expireAt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC"}
|
|
@@ -19,4 +19,3 @@ __exportStar(require("./oauth2-settings.schema"), exports);
|
|
|
19
19
|
__exportStar(require("./passkey-settings.schema"), exports);
|
|
20
20
|
__exportStar(require("./password-auth-settings.schema"), exports);
|
|
21
21
|
__exportStar(require("./remnawave-settings.schema"), exports);
|
|
22
|
-
__exportStar(require("./tg-auth-settings.schema"), exports);
|
|
@@ -104,7 +104,33 @@ export declare const Oauth2SettingsSchema: z.ZodObject<{
|
|
|
104
104
|
withPkce: boolean;
|
|
105
105
|
tokenUrl: string | null;
|
|
106
106
|
}>>;
|
|
107
|
+
telegram: z.ZodDefault<z.ZodObject<{
|
|
108
|
+
enabled: z.ZodBoolean;
|
|
109
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
110
|
+
clientSecret: z.ZodNullable<z.ZodString>;
|
|
111
|
+
allowedIds: z.ZodArray<z.ZodString, "many">;
|
|
112
|
+
frontendDomain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
enabled: boolean;
|
|
115
|
+
clientId: string | null;
|
|
116
|
+
clientSecret: string | null;
|
|
117
|
+
frontendDomain: string | null;
|
|
118
|
+
allowedIds: string[];
|
|
119
|
+
}, {
|
|
120
|
+
enabled: boolean;
|
|
121
|
+
clientId: string | null;
|
|
122
|
+
clientSecret: string | null;
|
|
123
|
+
frontendDomain: string | null;
|
|
124
|
+
allowedIds: string[];
|
|
125
|
+
}>>;
|
|
107
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
telegram: {
|
|
128
|
+
enabled: boolean;
|
|
129
|
+
clientId: string | null;
|
|
130
|
+
clientSecret: string | null;
|
|
131
|
+
frontendDomain: string | null;
|
|
132
|
+
allowedIds: string[];
|
|
133
|
+
};
|
|
108
134
|
github: {
|
|
109
135
|
enabled: boolean;
|
|
110
136
|
clientId: string | null;
|
|
@@ -163,6 +189,13 @@ export declare const Oauth2SettingsSchema: z.ZodObject<{
|
|
|
163
189
|
clientSecret: string | null;
|
|
164
190
|
allowedEmails: string[];
|
|
165
191
|
};
|
|
192
|
+
telegram?: {
|
|
193
|
+
enabled: boolean;
|
|
194
|
+
clientId: string | null;
|
|
195
|
+
clientSecret: string | null;
|
|
196
|
+
frontendDomain: string | null;
|
|
197
|
+
allowedIds: string[];
|
|
198
|
+
} | undefined;
|
|
166
199
|
keycloak?: {
|
|
167
200
|
enabled: boolean;
|
|
168
201
|
clientId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/oauth2-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"oauth2-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/oauth2-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+J/B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -100,4 +100,27 @@ exports.Oauth2SettingsSchema = zod_1.default.object({
|
|
|
100
100
|
authorizationUrl: null,
|
|
101
101
|
allowedEmails: [],
|
|
102
102
|
}),
|
|
103
|
+
telegram: zod_1.default
|
|
104
|
+
.object({
|
|
105
|
+
enabled: zod_1.default.boolean(),
|
|
106
|
+
clientId: zod_1.default.nullable(zod_1.default.string()),
|
|
107
|
+
clientSecret: zod_1.default.nullable(zod_1.default.string()),
|
|
108
|
+
allowedIds: zod_1.default.array(zod_1.default.string()),
|
|
109
|
+
frontendDomain: zod_1.default.nullable(zod_1.default.string().refine((val) => {
|
|
110
|
+
const fqdnRegex = /(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9]\.)+[a-zA-Z]{2,63}$)/;
|
|
111
|
+
if (fqdnRegex.test(val)) {
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
return false;
|
|
115
|
+
}, {
|
|
116
|
+
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "docs.rw"',
|
|
117
|
+
})),
|
|
118
|
+
})
|
|
119
|
+
.default({
|
|
120
|
+
enabled: false,
|
|
121
|
+
clientId: null,
|
|
122
|
+
clientSecret: null,
|
|
123
|
+
allowedIds: [],
|
|
124
|
+
frontendDomain: null,
|
|
125
|
+
}),
|
|
103
126
|
});
|
|
@@ -118,7 +118,33 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
118
118
|
withPkce: boolean;
|
|
119
119
|
tokenUrl: string | null;
|
|
120
120
|
}>>;
|
|
121
|
+
telegram: z.ZodDefault<z.ZodObject<{
|
|
122
|
+
enabled: z.ZodBoolean;
|
|
123
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
124
|
+
clientSecret: z.ZodNullable<z.ZodString>;
|
|
125
|
+
allowedIds: z.ZodArray<z.ZodString, "many">;
|
|
126
|
+
frontendDomain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
enabled: boolean;
|
|
129
|
+
clientId: string | null;
|
|
130
|
+
clientSecret: string | null;
|
|
131
|
+
frontendDomain: string | null;
|
|
132
|
+
allowedIds: string[];
|
|
133
|
+
}, {
|
|
134
|
+
enabled: boolean;
|
|
135
|
+
clientId: string | null;
|
|
136
|
+
clientSecret: string | null;
|
|
137
|
+
frontendDomain: string | null;
|
|
138
|
+
allowedIds: string[];
|
|
139
|
+
}>>;
|
|
121
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
telegram: {
|
|
142
|
+
enabled: boolean;
|
|
143
|
+
clientId: string | null;
|
|
144
|
+
clientSecret: string | null;
|
|
145
|
+
frontendDomain: string | null;
|
|
146
|
+
allowedIds: string[];
|
|
147
|
+
};
|
|
122
148
|
github: {
|
|
123
149
|
enabled: boolean;
|
|
124
150
|
clientId: string | null;
|
|
@@ -177,6 +203,13 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
177
203
|
clientSecret: string | null;
|
|
178
204
|
allowedEmails: string[];
|
|
179
205
|
};
|
|
206
|
+
telegram?: {
|
|
207
|
+
enabled: boolean;
|
|
208
|
+
clientId: string | null;
|
|
209
|
+
clientSecret: string | null;
|
|
210
|
+
frontendDomain: string | null;
|
|
211
|
+
allowedIds: string[];
|
|
212
|
+
} | undefined;
|
|
180
213
|
keycloak?: {
|
|
181
214
|
enabled: boolean;
|
|
182
215
|
clientId: string | null;
|
|
@@ -197,19 +230,6 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
197
230
|
tokenUrl: string | null;
|
|
198
231
|
} | undefined;
|
|
199
232
|
}>>;
|
|
200
|
-
tgAuthSettings: z.ZodNullable<z.ZodObject<{
|
|
201
|
-
enabled: z.ZodBoolean;
|
|
202
|
-
botToken: z.ZodNullable<z.ZodString>;
|
|
203
|
-
adminIds: z.ZodArray<z.ZodString, "many">;
|
|
204
|
-
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
enabled: boolean;
|
|
206
|
-
botToken: string | null;
|
|
207
|
-
adminIds: string[];
|
|
208
|
-
}, {
|
|
209
|
-
enabled: boolean;
|
|
210
|
-
botToken: string | null;
|
|
211
|
-
adminIds: string[];
|
|
212
|
-
}>>;
|
|
213
233
|
passwordSettings: z.ZodNullable<z.ZodObject<{
|
|
214
234
|
enabled: z.ZodBoolean;
|
|
215
235
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -234,6 +254,13 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
234
254
|
origin: string | null;
|
|
235
255
|
} | null;
|
|
236
256
|
oauth2Settings: {
|
|
257
|
+
telegram: {
|
|
258
|
+
enabled: boolean;
|
|
259
|
+
clientId: string | null;
|
|
260
|
+
clientSecret: string | null;
|
|
261
|
+
frontendDomain: string | null;
|
|
262
|
+
allowedIds: string[];
|
|
263
|
+
};
|
|
237
264
|
github: {
|
|
238
265
|
enabled: boolean;
|
|
239
266
|
clientId: string | null;
|
|
@@ -273,11 +300,6 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
273
300
|
tokenUrl: string | null;
|
|
274
301
|
};
|
|
275
302
|
} | null;
|
|
276
|
-
tgAuthSettings: {
|
|
277
|
-
enabled: boolean;
|
|
278
|
-
botToken: string | null;
|
|
279
|
-
adminIds: string[];
|
|
280
|
-
} | null;
|
|
281
303
|
passwordSettings: {
|
|
282
304
|
enabled: boolean;
|
|
283
305
|
} | null;
|
|
@@ -311,6 +333,13 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
311
333
|
clientSecret: string | null;
|
|
312
334
|
allowedEmails: string[];
|
|
313
335
|
};
|
|
336
|
+
telegram?: {
|
|
337
|
+
enabled: boolean;
|
|
338
|
+
clientId: string | null;
|
|
339
|
+
clientSecret: string | null;
|
|
340
|
+
frontendDomain: string | null;
|
|
341
|
+
allowedIds: string[];
|
|
342
|
+
} | undefined;
|
|
314
343
|
keycloak?: {
|
|
315
344
|
enabled: boolean;
|
|
316
345
|
clientId: string | null;
|
|
@@ -331,11 +360,6 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
331
360
|
tokenUrl: string | null;
|
|
332
361
|
} | undefined;
|
|
333
362
|
} | null;
|
|
334
|
-
tgAuthSettings: {
|
|
335
|
-
enabled: boolean;
|
|
336
|
-
botToken: string | null;
|
|
337
|
-
adminIds: string[];
|
|
338
|
-
} | null;
|
|
339
363
|
passwordSettings: {
|
|
340
364
|
enabled: boolean;
|
|
341
365
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remnawave-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/remnawave-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"remnawave-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/remnawave-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -5,12 +5,10 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const password_auth_settings_schema_1 = require("./password-auth-settings.schema");
|
|
6
6
|
const branding_settings_schema_1 = require("./branding-settings.schema");
|
|
7
7
|
const passkey_settings_schema_1 = require("./passkey-settings.schema");
|
|
8
|
-
const tg_auth_settings_schema_1 = require("./tg-auth-settings.schema");
|
|
9
8
|
const oauth2_settings_schema_1 = require("./oauth2-settings.schema");
|
|
10
9
|
exports.RemnawaveSettingsSchema = zod_1.z.object({
|
|
11
10
|
passkeySettings: zod_1.z.nullable(passkey_settings_schema_1.PasskeySettingsSchema),
|
|
12
11
|
oauth2Settings: zod_1.z.nullable(oauth2_settings_schema_1.Oauth2SettingsSchema),
|
|
13
|
-
tgAuthSettings: zod_1.z.nullable(tg_auth_settings_schema_1.TgAuthSettingsSchema),
|
|
14
12
|
passwordSettings: zod_1.z.nullable(password_auth_settings_schema_1.PasswordAuthSettingsSchema),
|
|
15
13
|
brandingSettings: zod_1.z.nullable(branding_settings_schema_1.BrandingSettingsSchema),
|
|
16
14
|
});
|