@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
|
@@ -6,14 +6,14 @@ export declare const SubscriptionRequestHistorySchema: z.ZodObject<{
|
|
|
6
6
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
7
7
|
requestAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
id: number;
|
|
10
9
|
userUuid: string;
|
|
10
|
+
id: number;
|
|
11
11
|
userAgent: string | null;
|
|
12
12
|
requestIp: string | null;
|
|
13
13
|
requestAt: Date;
|
|
14
14
|
}, {
|
|
15
|
-
id: number;
|
|
16
15
|
userUuid: string;
|
|
16
|
+
id: number;
|
|
17
17
|
userAgent: string | null;
|
|
18
18
|
requestIp: string | null;
|
|
19
19
|
requestAt: string;
|
|
@@ -40,8 +40,8 @@ export declare const UsersSchema: z.ZodObject<{
|
|
|
40
40
|
createdAt: Date;
|
|
41
41
|
updatedAt: Date;
|
|
42
42
|
username: string;
|
|
43
|
-
id: number;
|
|
44
43
|
tag: string | null;
|
|
44
|
+
id: number;
|
|
45
45
|
shortUuid: string;
|
|
46
46
|
trafficLimitBytes: number;
|
|
47
47
|
description: string | null;
|
|
@@ -64,8 +64,8 @@ export declare const UsersSchema: z.ZodObject<{
|
|
|
64
64
|
createdAt: string;
|
|
65
65
|
updatedAt: string;
|
|
66
66
|
username: string;
|
|
67
|
-
id: number;
|
|
68
67
|
tag: string | null;
|
|
68
|
+
id: number;
|
|
69
69
|
shortUuid: string;
|
|
70
70
|
description: string | null;
|
|
71
71
|
expireAt: string;
|
|
@@ -75,8 +75,8 @@ export declare const RemnawaveWebhookUserEvents: z.ZodObject<{
|
|
|
75
75
|
createdAt: Date;
|
|
76
76
|
updatedAt: Date;
|
|
77
77
|
username: string;
|
|
78
|
-
id: number;
|
|
79
78
|
tag: string | null;
|
|
79
|
+
id: number;
|
|
80
80
|
shortUuid: string;
|
|
81
81
|
trafficLimitBytes: number;
|
|
82
82
|
description: string | null;
|
|
@@ -111,8 +111,8 @@ export declare const RemnawaveWebhookUserEvents: z.ZodObject<{
|
|
|
111
111
|
createdAt: string;
|
|
112
112
|
updatedAt: string;
|
|
113
113
|
username: string;
|
|
114
|
-
id: number;
|
|
115
114
|
tag: string | null;
|
|
115
|
+
id: number;
|
|
116
116
|
shortUuid: string;
|
|
117
117
|
description: string | null;
|
|
118
118
|
expireAt: string;
|
|
@@ -158,8 +158,8 @@ export declare const RemnawaveWebhookUserEvents: z.ZodObject<{
|
|
|
158
158
|
createdAt: Date;
|
|
159
159
|
updatedAt: Date;
|
|
160
160
|
username: string;
|
|
161
|
-
id: number;
|
|
162
161
|
tag: string | null;
|
|
162
|
+
id: number;
|
|
163
163
|
shortUuid: string;
|
|
164
164
|
trafficLimitBytes: number;
|
|
165
165
|
description: string | null;
|
|
@@ -202,8 +202,8 @@ export declare const RemnawaveWebhookUserEvents: z.ZodObject<{
|
|
|
202
202
|
createdAt: string;
|
|
203
203
|
updatedAt: string;
|
|
204
204
|
username: string;
|
|
205
|
-
id: number;
|
|
206
205
|
tag: string | null;
|
|
206
|
+
id: number;
|
|
207
207
|
shortUuid: string;
|
|
208
208
|
description: string | null;
|
|
209
209
|
expireAt: string;
|
|
@@ -319,8 +319,8 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
319
319
|
createdAt: Date;
|
|
320
320
|
updatedAt: Date;
|
|
321
321
|
username: string;
|
|
322
|
-
id: number;
|
|
323
322
|
tag: string | null;
|
|
323
|
+
id: number;
|
|
324
324
|
shortUuid: string;
|
|
325
325
|
trafficLimitBytes: number;
|
|
326
326
|
description: string | null;
|
|
@@ -355,8 +355,8 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
355
355
|
createdAt: string;
|
|
356
356
|
updatedAt: string;
|
|
357
357
|
username: string;
|
|
358
|
-
id: number;
|
|
359
358
|
tag: string | null;
|
|
359
|
+
id: number;
|
|
360
360
|
shortUuid: string;
|
|
361
361
|
description: string | null;
|
|
362
362
|
expireAt: string;
|
|
@@ -423,8 +423,8 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
423
423
|
createdAt: Date;
|
|
424
424
|
updatedAt: Date;
|
|
425
425
|
username: string;
|
|
426
|
-
id: number;
|
|
427
426
|
tag: string | null;
|
|
427
|
+
id: number;
|
|
428
428
|
shortUuid: string;
|
|
429
429
|
trafficLimitBytes: number;
|
|
430
430
|
description: string | null;
|
|
@@ -471,8 +471,8 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
471
471
|
createdAt: string;
|
|
472
472
|
updatedAt: string;
|
|
473
473
|
username: string;
|
|
474
|
-
id: number;
|
|
475
474
|
tag: string | null;
|
|
475
|
+
id: number;
|
|
476
476
|
shortUuid: string;
|
|
477
477
|
description: string | null;
|
|
478
478
|
expireAt: string;
|
|
@@ -523,8 +523,8 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
523
523
|
createdAt: Date;
|
|
524
524
|
updatedAt: Date;
|
|
525
525
|
username: string;
|
|
526
|
-
id: number;
|
|
527
526
|
tag: string | null;
|
|
527
|
+
id: number;
|
|
528
528
|
shortUuid: string;
|
|
529
529
|
trafficLimitBytes: number;
|
|
530
530
|
description: string | null;
|
|
@@ -576,8 +576,8 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
576
576
|
createdAt: string;
|
|
577
577
|
updatedAt: string;
|
|
578
578
|
username: string;
|
|
579
|
-
id: number;
|
|
580
579
|
tag: string | null;
|
|
580
|
+
id: number;
|
|
581
581
|
shortUuid: string;
|
|
582
582
|
description: string | null;
|
|
583
583
|
expireAt: string;
|
|
@@ -1404,8 +1404,8 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
|
1404
1404
|
createdAt: Date;
|
|
1405
1405
|
updatedAt: Date;
|
|
1406
1406
|
username: string;
|
|
1407
|
-
id: number;
|
|
1408
1407
|
tag: string | null;
|
|
1408
|
+
id: number;
|
|
1409
1409
|
shortUuid: string;
|
|
1410
1410
|
trafficLimitBytes: number;
|
|
1411
1411
|
description: string | null;
|
|
@@ -1440,8 +1440,8 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
|
1440
1440
|
createdAt: string;
|
|
1441
1441
|
updatedAt: string;
|
|
1442
1442
|
username: string;
|
|
1443
|
-
id: number;
|
|
1444
1443
|
tag: string | null;
|
|
1444
|
+
id: number;
|
|
1445
1445
|
shortUuid: string;
|
|
1446
1446
|
description: string | null;
|
|
1447
1447
|
expireAt: string;
|
|
@@ -1595,8 +1595,8 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
|
1595
1595
|
createdAt: Date;
|
|
1596
1596
|
updatedAt: Date;
|
|
1597
1597
|
username: string;
|
|
1598
|
-
id: number;
|
|
1599
1598
|
tag: string | null;
|
|
1599
|
+
id: number;
|
|
1600
1600
|
shortUuid: string;
|
|
1601
1601
|
trafficLimitBytes: number;
|
|
1602
1602
|
description: string | null;
|
|
@@ -1710,8 +1710,8 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
|
1710
1710
|
createdAt: string;
|
|
1711
1711
|
updatedAt: string;
|
|
1712
1712
|
username: string;
|
|
1713
|
-
id: number;
|
|
1714
1713
|
tag: string | null;
|
|
1714
|
+
id: number;
|
|
1715
1715
|
shortUuid: string;
|
|
1716
1716
|
description: string | null;
|
|
1717
1717
|
expireAt: string;
|
|
@@ -1829,8 +1829,8 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
|
1829
1829
|
createdAt: Date;
|
|
1830
1830
|
updatedAt: Date;
|
|
1831
1831
|
username: string;
|
|
1832
|
-
id: number;
|
|
1833
1832
|
tag: string | null;
|
|
1833
|
+
id: number;
|
|
1834
1834
|
shortUuid: string;
|
|
1835
1835
|
trafficLimitBytes: number;
|
|
1836
1836
|
description: string | null;
|
|
@@ -1949,8 +1949,8 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
|
1949
1949
|
createdAt: string;
|
|
1950
1950
|
updatedAt: string;
|
|
1951
1951
|
username: string;
|
|
1952
|
-
id: number;
|
|
1953
1952
|
tag: string | null;
|
|
1953
|
+
id: number;
|
|
1954
1954
|
shortUuid: string;
|
|
1955
1955
|
description: string | null;
|
|
1956
1956
|
expireAt: string;
|
|
@@ -2140,8 +2140,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2140
2140
|
createdAt: Date;
|
|
2141
2141
|
updatedAt: Date;
|
|
2142
2142
|
username: string;
|
|
2143
|
-
id: number;
|
|
2144
2143
|
tag: string | null;
|
|
2144
|
+
id: number;
|
|
2145
2145
|
shortUuid: string;
|
|
2146
2146
|
trafficLimitBytes: number;
|
|
2147
2147
|
description: string | null;
|
|
@@ -2176,8 +2176,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2176
2176
|
createdAt: string;
|
|
2177
2177
|
updatedAt: string;
|
|
2178
2178
|
username: string;
|
|
2179
|
-
id: number;
|
|
2180
2179
|
tag: string | null;
|
|
2180
|
+
id: number;
|
|
2181
2181
|
shortUuid: string;
|
|
2182
2182
|
description: string | null;
|
|
2183
2183
|
expireAt: string;
|
|
@@ -2223,8 +2223,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2223
2223
|
createdAt: Date;
|
|
2224
2224
|
updatedAt: Date;
|
|
2225
2225
|
username: string;
|
|
2226
|
-
id: number;
|
|
2227
2226
|
tag: string | null;
|
|
2227
|
+
id: number;
|
|
2228
2228
|
shortUuid: string;
|
|
2229
2229
|
trafficLimitBytes: number;
|
|
2230
2230
|
description: string | null;
|
|
@@ -2267,8 +2267,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2267
2267
|
createdAt: string;
|
|
2268
2268
|
updatedAt: string;
|
|
2269
2269
|
username: string;
|
|
2270
|
-
id: number;
|
|
2271
2270
|
tag: string | null;
|
|
2271
|
+
id: number;
|
|
2272
2272
|
shortUuid: string;
|
|
2273
2273
|
description: string | null;
|
|
2274
2274
|
expireAt: string;
|
|
@@ -2383,8 +2383,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2383
2383
|
createdAt: Date;
|
|
2384
2384
|
updatedAt: Date;
|
|
2385
2385
|
username: string;
|
|
2386
|
-
id: number;
|
|
2387
2386
|
tag: string | null;
|
|
2387
|
+
id: number;
|
|
2388
2388
|
shortUuid: string;
|
|
2389
2389
|
trafficLimitBytes: number;
|
|
2390
2390
|
description: string | null;
|
|
@@ -2419,8 +2419,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2419
2419
|
createdAt: string;
|
|
2420
2420
|
updatedAt: string;
|
|
2421
2421
|
username: string;
|
|
2422
|
-
id: number;
|
|
2423
2422
|
tag: string | null;
|
|
2423
|
+
id: number;
|
|
2424
2424
|
shortUuid: string;
|
|
2425
2425
|
description: string | null;
|
|
2426
2426
|
expireAt: string;
|
|
@@ -2487,8 +2487,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2487
2487
|
createdAt: Date;
|
|
2488
2488
|
updatedAt: Date;
|
|
2489
2489
|
username: string;
|
|
2490
|
-
id: number;
|
|
2491
2490
|
tag: string | null;
|
|
2491
|
+
id: number;
|
|
2492
2492
|
shortUuid: string;
|
|
2493
2493
|
trafficLimitBytes: number;
|
|
2494
2494
|
description: string | null;
|
|
@@ -2535,8 +2535,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2535
2535
|
createdAt: string;
|
|
2536
2536
|
updatedAt: string;
|
|
2537
2537
|
username: string;
|
|
2538
|
-
id: number;
|
|
2539
2538
|
tag: string | null;
|
|
2539
|
+
id: number;
|
|
2540
2540
|
shortUuid: string;
|
|
2541
2541
|
description: string | null;
|
|
2542
2542
|
expireAt: string;
|
|
@@ -2587,8 +2587,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2587
2587
|
createdAt: Date;
|
|
2588
2588
|
updatedAt: Date;
|
|
2589
2589
|
username: string;
|
|
2590
|
-
id: number;
|
|
2591
2590
|
tag: string | null;
|
|
2591
|
+
id: number;
|
|
2592
2592
|
shortUuid: string;
|
|
2593
2593
|
trafficLimitBytes: number;
|
|
2594
2594
|
description: string | null;
|
|
@@ -2640,8 +2640,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2640
2640
|
createdAt: string;
|
|
2641
2641
|
updatedAt: string;
|
|
2642
2642
|
username: string;
|
|
2643
|
-
id: number;
|
|
2644
2643
|
tag: string | null;
|
|
2644
|
+
id: number;
|
|
2645
2645
|
shortUuid: string;
|
|
2646
2646
|
description: string | null;
|
|
2647
2647
|
expireAt: string;
|
|
@@ -3463,8 +3463,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
3463
3463
|
createdAt: Date;
|
|
3464
3464
|
updatedAt: Date;
|
|
3465
3465
|
username: string;
|
|
3466
|
-
id: number;
|
|
3467
3466
|
tag: string | null;
|
|
3467
|
+
id: number;
|
|
3468
3468
|
shortUuid: string;
|
|
3469
3469
|
trafficLimitBytes: number;
|
|
3470
3470
|
description: string | null;
|
|
@@ -3499,8 +3499,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
3499
3499
|
createdAt: string;
|
|
3500
3500
|
updatedAt: string;
|
|
3501
3501
|
username: string;
|
|
3502
|
-
id: number;
|
|
3503
3502
|
tag: string | null;
|
|
3503
|
+
id: number;
|
|
3504
3504
|
shortUuid: string;
|
|
3505
3505
|
description: string | null;
|
|
3506
3506
|
expireAt: string;
|
|
@@ -3654,8 +3654,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
3654
3654
|
createdAt: Date;
|
|
3655
3655
|
updatedAt: Date;
|
|
3656
3656
|
username: string;
|
|
3657
|
-
id: number;
|
|
3658
3657
|
tag: string | null;
|
|
3658
|
+
id: number;
|
|
3659
3659
|
shortUuid: string;
|
|
3660
3660
|
trafficLimitBytes: number;
|
|
3661
3661
|
description: string | null;
|
|
@@ -3769,8 +3769,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
3769
3769
|
createdAt: string;
|
|
3770
3770
|
updatedAt: string;
|
|
3771
3771
|
username: string;
|
|
3772
|
-
id: number;
|
|
3773
3772
|
tag: string | null;
|
|
3773
|
+
id: number;
|
|
3774
3774
|
shortUuid: string;
|
|
3775
3775
|
description: string | null;
|
|
3776
3776
|
expireAt: string;
|
|
@@ -3888,8 +3888,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
3888
3888
|
createdAt: Date;
|
|
3889
3889
|
updatedAt: Date;
|
|
3890
3890
|
username: string;
|
|
3891
|
-
id: number;
|
|
3892
3891
|
tag: string | null;
|
|
3892
|
+
id: number;
|
|
3893
3893
|
shortUuid: string;
|
|
3894
3894
|
trafficLimitBytes: number;
|
|
3895
3895
|
description: string | null;
|
|
@@ -4008,8 +4008,8 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
4008
4008
|
createdAt: string;
|
|
4009
4009
|
updatedAt: string;
|
|
4010
4010
|
username: string;
|
|
4011
|
-
id: number;
|
|
4012
4011
|
tag: string | null;
|
|
4012
|
+
id: number;
|
|
4013
4013
|
shortUuid: string;
|
|
4014
4014
|
description: string | null;
|
|
4015
4015
|
expireAt: string;
|
|
@@ -17,10 +17,6 @@ var GetStatusCommand;
|
|
|
17
17
|
passkey: zod_1.z.object({
|
|
18
18
|
enabled: zod_1.z.boolean(),
|
|
19
19
|
}),
|
|
20
|
-
tgAuth: zod_1.z.object({
|
|
21
|
-
enabled: zod_1.z.boolean(),
|
|
22
|
-
botId: zod_1.z.number().nullable(),
|
|
23
|
-
}),
|
|
24
20
|
oauth2: zod_1.z.object({
|
|
25
21
|
providers: zod_1.z.record(zod_1.z.nativeEnum(constants_1.OAUTH2_PROVIDERS), zod_1.z.boolean()),
|
|
26
22
|
}),
|
|
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./authorize.command"), exports);
|
|
18
18
|
__exportStar(require("./callback.command"), exports);
|
|
19
|
-
__exportStar(require("./telegram-callback.command"), exports);
|
|
@@ -13,7 +13,6 @@ var UpdateRemnawaveSettingsCommand;
|
|
|
13
13
|
UpdateRemnawaveSettingsCommand.RequestSchema = zod_1.z.object({
|
|
14
14
|
passkeySettings: models_1.PasskeySettingsSchema.optional(),
|
|
15
15
|
oauth2Settings: models_1.Oauth2SettingsSchema.optional(),
|
|
16
|
-
tgAuthSettings: models_1.TgAuthSettingsSchema.optional(),
|
|
17
16
|
passwordSettings: models_1.PasswordAuthSettingsSchema.optional(),
|
|
18
17
|
brandingSettings: models_1.BrandingSettingsSchema.optional(),
|
|
19
18
|
});
|
|
@@ -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);
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace TelegramCallbackCommand {
|
|
3
|
-
const url: "/api/auth/oauth2/tg/callback";
|
|
4
|
-
const TSQ_url: "/api/auth/oauth2/tg/callback";
|
|
5
|
-
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
-
const RequestSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodNumber;
|
|
8
|
-
first_name: z.ZodString;
|
|
9
|
-
last_name: z.ZodOptional<z.ZodString>;
|
|
10
|
-
username: z.ZodOptional<z.ZodString>;
|
|
11
|
-
photo_url: z.ZodOptional<z.ZodString>;
|
|
12
|
-
auth_date: z.ZodNumber;
|
|
13
|
-
hash: z.ZodString;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
id: number;
|
|
16
|
-
first_name: string;
|
|
17
|
-
auth_date: number;
|
|
18
|
-
hash: string;
|
|
19
|
-
username?: string | undefined;
|
|
20
|
-
last_name?: string | undefined;
|
|
21
|
-
photo_url?: string | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
id: number;
|
|
24
|
-
first_name: string;
|
|
25
|
-
auth_date: number;
|
|
26
|
-
hash: string;
|
|
27
|
-
username?: string | undefined;
|
|
28
|
-
last_name?: string | undefined;
|
|
29
|
-
photo_url?: string | undefined;
|
|
30
|
-
}>;
|
|
31
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
32
|
-
const ResponseSchema: z.ZodObject<{
|
|
33
|
-
response: z.ZodObject<{
|
|
34
|
-
accessToken: z.ZodString;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
accessToken: string;
|
|
37
|
-
}, {
|
|
38
|
-
accessToken: string;
|
|
39
|
-
}>;
|
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
response: {
|
|
42
|
-
accessToken: string;
|
|
43
|
-
};
|
|
44
|
-
}, {
|
|
45
|
-
response: {
|
|
46
|
-
accessToken: string;
|
|
47
|
-
};
|
|
48
|
-
}>;
|
|
49
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=telegram-callback.command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telegram-callback.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/telegram-callback.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;MAQxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TelegramCallbackCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const api_1 = require("../../../api");
|
|
7
|
-
var TelegramCallbackCommand;
|
|
8
|
-
(function (TelegramCallbackCommand) {
|
|
9
|
-
TelegramCallbackCommand.url = api_1.REST_API.AUTH.OAUTH2.TELEGRAM_CALLBACK;
|
|
10
|
-
TelegramCallbackCommand.TSQ_url = TelegramCallbackCommand.url;
|
|
11
|
-
TelegramCallbackCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.OAUTH2.TELEGRAM_CALLBACK, 'post', 'Callback from Telegram OAuth2');
|
|
12
|
-
TelegramCallbackCommand.RequestSchema = zod_1.z.object({
|
|
13
|
-
id: zod_1.z.number(),
|
|
14
|
-
first_name: zod_1.z.string(),
|
|
15
|
-
last_name: zod_1.z.string().optional(),
|
|
16
|
-
username: zod_1.z.string().optional(),
|
|
17
|
-
photo_url: zod_1.z.string().optional(),
|
|
18
|
-
auth_date: zod_1.z.number(),
|
|
19
|
-
hash: zod_1.z.string(),
|
|
20
|
-
});
|
|
21
|
-
TelegramCallbackCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
-
response: zod_1.z.object({
|
|
23
|
-
accessToken: zod_1.z.string(),
|
|
24
|
-
}),
|
|
25
|
-
});
|
|
26
|
-
})(TelegramCallbackCommand || (exports.TelegramCallbackCommand = TelegramCallbackCommand = {}));
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
export declare const TgAuthSettingsSchema: z.ZodObject<{
|
|
3
|
-
enabled: z.ZodBoolean;
|
|
4
|
-
botToken: z.ZodNullable<z.ZodString>;
|
|
5
|
-
adminIds: z.ZodArray<z.ZodString, "many">;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
enabled: boolean;
|
|
8
|
-
botToken: string | null;
|
|
9
|
-
adminIds: string[];
|
|
10
|
-
}, {
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
botToken: string | null;
|
|
13
|
-
adminIds: string[];
|
|
14
|
-
}>;
|
|
15
|
-
export type TTgAuthSettings = z.infer<typeof TgAuthSettingsSchema>;
|
|
16
|
-
//# sourceMappingURL=tg-auth-settings.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tg-auth-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/tg-auth-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TgAuthSettingsSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.TgAuthSettingsSchema = zod_1.default.object({
|
|
9
|
-
enabled: zod_1.default.boolean(),
|
|
10
|
-
botToken: zod_1.default.nullable(zod_1.default.string()),
|
|
11
|
-
adminIds: zod_1.default.array(zod_1.default.string()),
|
|
12
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TelegramCallbackCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const api_1 = require("../../../api");
|
|
7
|
-
var TelegramCallbackCommand;
|
|
8
|
-
(function (TelegramCallbackCommand) {
|
|
9
|
-
TelegramCallbackCommand.url = api_1.REST_API.AUTH.OAUTH2.TELEGRAM_CALLBACK;
|
|
10
|
-
TelegramCallbackCommand.TSQ_url = TelegramCallbackCommand.url;
|
|
11
|
-
TelegramCallbackCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.AUTH_ROUTES.OAUTH2.TELEGRAM_CALLBACK, 'post', 'Callback from Telegram OAuth2');
|
|
12
|
-
TelegramCallbackCommand.RequestSchema = zod_1.z.object({
|
|
13
|
-
id: zod_1.z.number(),
|
|
14
|
-
first_name: zod_1.z.string(),
|
|
15
|
-
last_name: zod_1.z.string().optional(),
|
|
16
|
-
username: zod_1.z.string().optional(),
|
|
17
|
-
photo_url: zod_1.z.string().optional(),
|
|
18
|
-
auth_date: zod_1.z.number(),
|
|
19
|
-
hash: zod_1.z.string(),
|
|
20
|
-
});
|
|
21
|
-
TelegramCallbackCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
-
response: zod_1.z.object({
|
|
23
|
-
accessToken: zod_1.z.string(),
|
|
24
|
-
}),
|
|
25
|
-
});
|
|
26
|
-
})(TelegramCallbackCommand || (exports.TelegramCallbackCommand = TelegramCallbackCommand = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TgAuthSettingsSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.TgAuthSettingsSchema = zod_1.default.object({
|
|
9
|
-
enabled: zod_1.default.boolean(),
|
|
10
|
-
botToken: zod_1.default.nullable(zod_1.default.string()),
|
|
11
|
-
adminIds: zod_1.default.array(zod_1.default.string()),
|
|
12
|
-
});
|