@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
|
@@ -15,18 +15,9 @@ export declare namespace GetStatusCommand {
|
|
|
15
15
|
}, {
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
}>;
|
|
18
|
-
tgAuth: z.ZodObject<{
|
|
19
|
-
enabled: z.ZodBoolean;
|
|
20
|
-
botId: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
enabled: boolean;
|
|
23
|
-
botId: number | null;
|
|
24
|
-
}, {
|
|
25
|
-
enabled: boolean;
|
|
26
|
-
botId: number | null;
|
|
27
|
-
}>;
|
|
28
18
|
oauth2: z.ZodObject<{
|
|
29
19
|
providers: z.ZodRecord<z.ZodNativeEnum<{
|
|
20
|
+
readonly TELEGRAM: "telegram";
|
|
30
21
|
readonly GITHUB: "github";
|
|
31
22
|
readonly POCKETID: "pocketid";
|
|
32
23
|
readonly YANDEX: "yandex";
|
|
@@ -34,9 +25,9 @@ export declare namespace GetStatusCommand {
|
|
|
34
25
|
readonly GENERIC: "generic";
|
|
35
26
|
}>, z.ZodBoolean>;
|
|
36
27
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
28
|
+
providers: Partial<Record<"telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
38
29
|
}, {
|
|
39
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
30
|
+
providers: Partial<Record<"telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
40
31
|
}>;
|
|
41
32
|
password: z.ZodObject<{
|
|
42
33
|
enabled: z.ZodBoolean;
|
|
@@ -49,12 +40,8 @@ export declare namespace GetStatusCommand {
|
|
|
49
40
|
passkey: {
|
|
50
41
|
enabled: boolean;
|
|
51
42
|
};
|
|
52
|
-
tgAuth: {
|
|
53
|
-
enabled: boolean;
|
|
54
|
-
botId: number | null;
|
|
55
|
-
};
|
|
56
43
|
oauth2: {
|
|
57
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
44
|
+
providers: Partial<Record<"telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
58
45
|
};
|
|
59
46
|
password: {
|
|
60
47
|
enabled: boolean;
|
|
@@ -63,12 +50,8 @@ export declare namespace GetStatusCommand {
|
|
|
63
50
|
passkey: {
|
|
64
51
|
enabled: boolean;
|
|
65
52
|
};
|
|
66
|
-
tgAuth: {
|
|
67
|
-
enabled: boolean;
|
|
68
|
-
botId: number | null;
|
|
69
|
-
};
|
|
70
53
|
oauth2: {
|
|
71
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
54
|
+
providers: Partial<Record<"telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
72
55
|
};
|
|
73
56
|
password: {
|
|
74
57
|
enabled: boolean;
|
|
@@ -91,12 +74,8 @@ export declare namespace GetStatusCommand {
|
|
|
91
74
|
passkey: {
|
|
92
75
|
enabled: boolean;
|
|
93
76
|
};
|
|
94
|
-
tgAuth: {
|
|
95
|
-
enabled: boolean;
|
|
96
|
-
botId: number | null;
|
|
97
|
-
};
|
|
98
77
|
oauth2: {
|
|
99
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
78
|
+
providers: Partial<Record<"telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
100
79
|
};
|
|
101
80
|
password: {
|
|
102
81
|
enabled: boolean;
|
|
@@ -113,12 +92,8 @@ export declare namespace GetStatusCommand {
|
|
|
113
92
|
passkey: {
|
|
114
93
|
enabled: boolean;
|
|
115
94
|
};
|
|
116
|
-
tgAuth: {
|
|
117
|
-
enabled: boolean;
|
|
118
|
-
botId: number | null;
|
|
119
|
-
};
|
|
120
95
|
oauth2: {
|
|
121
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
96
|
+
providers: Partial<Record<"telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
122
97
|
};
|
|
123
98
|
password: {
|
|
124
99
|
enabled: boolean;
|
|
@@ -137,12 +112,8 @@ export declare namespace GetStatusCommand {
|
|
|
137
112
|
passkey: {
|
|
138
113
|
enabled: boolean;
|
|
139
114
|
};
|
|
140
|
-
tgAuth: {
|
|
141
|
-
enabled: boolean;
|
|
142
|
-
botId: number | null;
|
|
143
|
-
};
|
|
144
115
|
oauth2: {
|
|
145
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
116
|
+
providers: Partial<Record<"telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
146
117
|
};
|
|
147
118
|
password: {
|
|
148
119
|
enabled: boolean;
|
|
@@ -161,12 +132,8 @@ export declare namespace GetStatusCommand {
|
|
|
161
132
|
passkey: {
|
|
162
133
|
enabled: boolean;
|
|
163
134
|
};
|
|
164
|
-
tgAuth: {
|
|
165
|
-
enabled: boolean;
|
|
166
|
-
botId: number | null;
|
|
167
|
-
};
|
|
168
135
|
oauth2: {
|
|
169
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
136
|
+
providers: Partial<Record<"telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic", boolean>>;
|
|
170
137
|
};
|
|
171
138
|
password: {
|
|
172
139
|
enabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-status.command.d.ts","sourceRoot":"","sources":["../../../../commands/auth/get-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAA2B,CAAC;IACrC,MAAM,OAAO,oBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-status.command.d.ts","sourceRoot":"","sources":["../../../../commands/auth/get-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAA2B,CAAC;IACrC,MAAM,OAAO,oBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -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
|
}),
|
|
@@ -5,6 +5,7 @@ export declare namespace OAuth2AuthorizeCommand {
|
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
provider: z.ZodNativeEnum<{
|
|
8
|
+
readonly TELEGRAM: "telegram";
|
|
8
9
|
readonly GITHUB: "github";
|
|
9
10
|
readonly POCKETID: "pocketid";
|
|
10
11
|
readonly YANDEX: "yandex";
|
|
@@ -12,9 +13,9 @@ export declare namespace OAuth2AuthorizeCommand {
|
|
|
12
13
|
readonly GENERIC: "generic";
|
|
13
14
|
}>;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
provider: "github" | "pocketid" | "yandex" | "keycloak" | "generic";
|
|
16
|
+
provider: "telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic";
|
|
16
17
|
}, {
|
|
17
|
-
provider: "github" | "pocketid" | "yandex" | "keycloak" | "generic";
|
|
18
|
+
provider: "telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic";
|
|
18
19
|
}>;
|
|
19
20
|
const ResponseSchema: z.ZodObject<{
|
|
20
21
|
response: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorize.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/authorize.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"authorize.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/authorize.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;MAExB,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -5,6 +5,7 @@ export declare namespace OAuth2CallbackCommand {
|
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
provider: z.ZodNativeEnum<{
|
|
8
|
+
readonly TELEGRAM: "telegram";
|
|
8
9
|
readonly GITHUB: "github";
|
|
9
10
|
readonly POCKETID: "pocketid";
|
|
10
11
|
readonly YANDEX: "yandex";
|
|
@@ -15,11 +16,11 @@ export declare namespace OAuth2CallbackCommand {
|
|
|
15
16
|
state: z.ZodString;
|
|
16
17
|
}, "strip", z.ZodTypeAny, {
|
|
17
18
|
code: string;
|
|
18
|
-
provider: "github" | "pocketid" | "yandex" | "keycloak" | "generic";
|
|
19
|
+
provider: "telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic";
|
|
19
20
|
state: string;
|
|
20
21
|
}, {
|
|
21
22
|
code: string;
|
|
22
|
-
provider: "github" | "pocketid" | "yandex" | "keycloak" | "generic";
|
|
23
|
+
provider: "telegram" | "github" | "pocketid" | "yandex" | "keycloak" | "generic";
|
|
23
24
|
state: string;
|
|
24
25
|
}>;
|
|
25
26
|
type Request = z.infer<typeof RequestSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/callback.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,6BAAgC,CAAC;IAC1C,MAAM,OAAO,6BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"callback.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/callback.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,6BAAgC,CAAC;IAC1C,MAAM,OAAO,6BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;MAIxB,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
|
@@ -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);
|
|
@@ -23,29 +23,29 @@ export declare namespace GetTopUsersByHwidDevicesCommand {
|
|
|
23
23
|
devicesCount: z.ZodNumber;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
username: string;
|
|
26
|
-
id: number;
|
|
27
26
|
userUuid: string;
|
|
27
|
+
id: number;
|
|
28
28
|
devicesCount: number;
|
|
29
29
|
}, {
|
|
30
30
|
username: string;
|
|
31
|
-
id: number;
|
|
32
31
|
userUuid: string;
|
|
32
|
+
id: number;
|
|
33
33
|
devicesCount: number;
|
|
34
34
|
}>, "many">;
|
|
35
35
|
total: z.ZodNumber;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
users: {
|
|
38
38
|
username: string;
|
|
39
|
-
id: number;
|
|
40
39
|
userUuid: string;
|
|
40
|
+
id: number;
|
|
41
41
|
devicesCount: number;
|
|
42
42
|
}[];
|
|
43
43
|
total: number;
|
|
44
44
|
}, {
|
|
45
45
|
users: {
|
|
46
46
|
username: string;
|
|
47
|
-
id: number;
|
|
48
47
|
userUuid: string;
|
|
48
|
+
id: number;
|
|
49
49
|
devicesCount: number;
|
|
50
50
|
}[];
|
|
51
51
|
total: number;
|
|
@@ -54,8 +54,8 @@ export declare namespace GetTopUsersByHwidDevicesCommand {
|
|
|
54
54
|
response: {
|
|
55
55
|
users: {
|
|
56
56
|
username: string;
|
|
57
|
-
id: number;
|
|
58
57
|
userUuid: string;
|
|
58
|
+
id: number;
|
|
59
59
|
devicesCount: number;
|
|
60
60
|
}[];
|
|
61
61
|
total: number;
|
|
@@ -64,8 +64,8 @@ export declare namespace GetTopUsersByHwidDevicesCommand {
|
|
|
64
64
|
response: {
|
|
65
65
|
users: {
|
|
66
66
|
username: string;
|
|
67
|
-
id: number;
|
|
68
67
|
userUuid: string;
|
|
68
|
+
id: number;
|
|
69
69
|
devicesCount: number;
|
|
70
70
|
}[];
|
|
71
71
|
total: number;
|
|
@@ -20,27 +20,27 @@ export declare namespace DeletePasskeyCommand {
|
|
|
20
20
|
lastUsedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
22
|
createdAt: Date;
|
|
23
|
-
id: string;
|
|
24
23
|
name: string;
|
|
24
|
+
id: string;
|
|
25
25
|
lastUsedAt: Date;
|
|
26
26
|
}, {
|
|
27
27
|
createdAt: string;
|
|
28
|
-
id: string;
|
|
29
28
|
name: string;
|
|
29
|
+
id: string;
|
|
30
30
|
lastUsedAt: string;
|
|
31
31
|
}>, "many">;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
passkeys: {
|
|
34
34
|
createdAt: Date;
|
|
35
|
-
id: string;
|
|
36
35
|
name: string;
|
|
36
|
+
id: string;
|
|
37
37
|
lastUsedAt: Date;
|
|
38
38
|
}[];
|
|
39
39
|
}, {
|
|
40
40
|
passkeys: {
|
|
41
41
|
createdAt: string;
|
|
42
|
-
id: string;
|
|
43
42
|
name: string;
|
|
43
|
+
id: string;
|
|
44
44
|
lastUsedAt: string;
|
|
45
45
|
}[];
|
|
46
46
|
}>;
|
|
@@ -48,8 +48,8 @@ export declare namespace DeletePasskeyCommand {
|
|
|
48
48
|
response: {
|
|
49
49
|
passkeys: {
|
|
50
50
|
createdAt: Date;
|
|
51
|
-
id: string;
|
|
52
51
|
name: string;
|
|
52
|
+
id: string;
|
|
53
53
|
lastUsedAt: Date;
|
|
54
54
|
}[];
|
|
55
55
|
};
|
|
@@ -57,8 +57,8 @@ export declare namespace DeletePasskeyCommand {
|
|
|
57
57
|
response: {
|
|
58
58
|
passkeys: {
|
|
59
59
|
createdAt: string;
|
|
60
|
-
id: string;
|
|
61
60
|
name: string;
|
|
61
|
+
id: string;
|
|
62
62
|
lastUsedAt: string;
|
|
63
63
|
}[];
|
|
64
64
|
};
|
|
@@ -12,27 +12,27 @@ export declare namespace GetAllPasskeysCommand {
|
|
|
12
12
|
lastUsedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
createdAt: Date;
|
|
15
|
-
id: string;
|
|
16
15
|
name: string;
|
|
16
|
+
id: string;
|
|
17
17
|
lastUsedAt: Date;
|
|
18
18
|
}, {
|
|
19
19
|
createdAt: string;
|
|
20
|
-
id: string;
|
|
21
20
|
name: string;
|
|
21
|
+
id: string;
|
|
22
22
|
lastUsedAt: string;
|
|
23
23
|
}>, "many">;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
passkeys: {
|
|
26
26
|
createdAt: Date;
|
|
27
|
-
id: string;
|
|
28
27
|
name: string;
|
|
28
|
+
id: string;
|
|
29
29
|
lastUsedAt: Date;
|
|
30
30
|
}[];
|
|
31
31
|
}, {
|
|
32
32
|
passkeys: {
|
|
33
33
|
createdAt: string;
|
|
34
|
-
id: string;
|
|
35
34
|
name: string;
|
|
35
|
+
id: string;
|
|
36
36
|
lastUsedAt: string;
|
|
37
37
|
}[];
|
|
38
38
|
}>;
|
|
@@ -40,8 +40,8 @@ export declare namespace GetAllPasskeysCommand {
|
|
|
40
40
|
response: {
|
|
41
41
|
passkeys: {
|
|
42
42
|
createdAt: Date;
|
|
43
|
-
id: string;
|
|
44
43
|
name: string;
|
|
44
|
+
id: string;
|
|
45
45
|
lastUsedAt: Date;
|
|
46
46
|
}[];
|
|
47
47
|
};
|
|
@@ -49,8 +49,8 @@ export declare namespace GetAllPasskeysCommand {
|
|
|
49
49
|
response: {
|
|
50
50
|
passkeys: {
|
|
51
51
|
createdAt: string;
|
|
52
|
-
id: string;
|
|
53
52
|
name: string;
|
|
53
|
+
id: string;
|
|
54
54
|
lastUsedAt: string;
|
|
55
55
|
}[];
|
|
56
56
|
};
|
|
@@ -7,11 +7,11 @@ export declare namespace UpdatePasskeyCommand {
|
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
id: string;
|
|
11
10
|
name: string;
|
|
12
|
-
}, {
|
|
13
11
|
id: string;
|
|
12
|
+
}, {
|
|
14
13
|
name: string;
|
|
14
|
+
id: string;
|
|
15
15
|
}>;
|
|
16
16
|
type Request = z.infer<typeof RequestSchema>;
|
|
17
17
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -23,27 +23,27 @@ export declare namespace UpdatePasskeyCommand {
|
|
|
23
23
|
lastUsedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
createdAt: Date;
|
|
26
|
-
id: string;
|
|
27
26
|
name: string;
|
|
27
|
+
id: string;
|
|
28
28
|
lastUsedAt: Date;
|
|
29
29
|
}, {
|
|
30
30
|
createdAt: string;
|
|
31
|
-
id: string;
|
|
32
31
|
name: string;
|
|
32
|
+
id: string;
|
|
33
33
|
lastUsedAt: string;
|
|
34
34
|
}>, "many">;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
passkeys: {
|
|
37
37
|
createdAt: Date;
|
|
38
|
-
id: string;
|
|
39
38
|
name: string;
|
|
39
|
+
id: string;
|
|
40
40
|
lastUsedAt: Date;
|
|
41
41
|
}[];
|
|
42
42
|
}, {
|
|
43
43
|
passkeys: {
|
|
44
44
|
createdAt: string;
|
|
45
|
-
id: string;
|
|
46
45
|
name: string;
|
|
46
|
+
id: string;
|
|
47
47
|
lastUsedAt: string;
|
|
48
48
|
}[];
|
|
49
49
|
}>;
|
|
@@ -51,8 +51,8 @@ export declare namespace UpdatePasskeyCommand {
|
|
|
51
51
|
response: {
|
|
52
52
|
passkeys: {
|
|
53
53
|
createdAt: Date;
|
|
54
|
-
id: string;
|
|
55
54
|
name: string;
|
|
55
|
+
id: string;
|
|
56
56
|
lastUsedAt: Date;
|
|
57
57
|
}[];
|
|
58
58
|
};
|
|
@@ -60,8 +60,8 @@ export declare namespace UpdatePasskeyCommand {
|
|
|
60
60
|
response: {
|
|
61
61
|
passkeys: {
|
|
62
62
|
createdAt: string;
|
|
63
|
-
id: string;
|
|
64
63
|
name: string;
|
|
64
|
+
id: string;
|
|
65
65
|
lastUsedAt: string;
|
|
66
66
|
}[];
|
|
67
67
|
};
|
|
@@ -123,7 +123,33 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
123
123
|
withPkce: boolean;
|
|
124
124
|
tokenUrl: string | null;
|
|
125
125
|
}>>;
|
|
126
|
+
telegram: z.ZodDefault<z.ZodObject<{
|
|
127
|
+
enabled: z.ZodBoolean;
|
|
128
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
129
|
+
clientSecret: z.ZodNullable<z.ZodString>;
|
|
130
|
+
allowedIds: z.ZodArray<z.ZodString, "many">;
|
|
131
|
+
frontendDomain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
enabled: boolean;
|
|
134
|
+
clientId: string | null;
|
|
135
|
+
clientSecret: string | null;
|
|
136
|
+
frontendDomain: string | null;
|
|
137
|
+
allowedIds: string[];
|
|
138
|
+
}, {
|
|
139
|
+
enabled: boolean;
|
|
140
|
+
clientId: string | null;
|
|
141
|
+
clientSecret: string | null;
|
|
142
|
+
frontendDomain: string | null;
|
|
143
|
+
allowedIds: string[];
|
|
144
|
+
}>>;
|
|
126
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
telegram: {
|
|
147
|
+
enabled: boolean;
|
|
148
|
+
clientId: string | null;
|
|
149
|
+
clientSecret: string | null;
|
|
150
|
+
frontendDomain: string | null;
|
|
151
|
+
allowedIds: string[];
|
|
152
|
+
};
|
|
127
153
|
github: {
|
|
128
154
|
enabled: boolean;
|
|
129
155
|
clientId: string | null;
|
|
@@ -182,6 +208,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
182
208
|
clientSecret: string | null;
|
|
183
209
|
allowedEmails: string[];
|
|
184
210
|
};
|
|
211
|
+
telegram?: {
|
|
212
|
+
enabled: boolean;
|
|
213
|
+
clientId: string | null;
|
|
214
|
+
clientSecret: string | null;
|
|
215
|
+
frontendDomain: string | null;
|
|
216
|
+
allowedIds: string[];
|
|
217
|
+
} | undefined;
|
|
185
218
|
keycloak?: {
|
|
186
219
|
enabled: boolean;
|
|
187
220
|
clientId: string | null;
|
|
@@ -202,19 +235,6 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
202
235
|
tokenUrl: string | null;
|
|
203
236
|
} | undefined;
|
|
204
237
|
}>>;
|
|
205
|
-
tgAuthSettings: z.ZodNullable<z.ZodObject<{
|
|
206
|
-
enabled: z.ZodBoolean;
|
|
207
|
-
botToken: z.ZodNullable<z.ZodString>;
|
|
208
|
-
adminIds: z.ZodArray<z.ZodString, "many">;
|
|
209
|
-
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
enabled: boolean;
|
|
211
|
-
botToken: string | null;
|
|
212
|
-
adminIds: string[];
|
|
213
|
-
}, {
|
|
214
|
-
enabled: boolean;
|
|
215
|
-
botToken: string | null;
|
|
216
|
-
adminIds: string[];
|
|
217
|
-
}>>;
|
|
218
238
|
passwordSettings: z.ZodNullable<z.ZodObject<{
|
|
219
239
|
enabled: z.ZodBoolean;
|
|
220
240
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -239,6 +259,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
239
259
|
origin: string | null;
|
|
240
260
|
} | null;
|
|
241
261
|
oauth2Settings: {
|
|
262
|
+
telegram: {
|
|
263
|
+
enabled: boolean;
|
|
264
|
+
clientId: string | null;
|
|
265
|
+
clientSecret: string | null;
|
|
266
|
+
frontendDomain: string | null;
|
|
267
|
+
allowedIds: string[];
|
|
268
|
+
};
|
|
242
269
|
github: {
|
|
243
270
|
enabled: boolean;
|
|
244
271
|
clientId: string | null;
|
|
@@ -278,11 +305,6 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
278
305
|
tokenUrl: string | null;
|
|
279
306
|
};
|
|
280
307
|
} | null;
|
|
281
|
-
tgAuthSettings: {
|
|
282
|
-
enabled: boolean;
|
|
283
|
-
botToken: string | null;
|
|
284
|
-
adminIds: string[];
|
|
285
|
-
} | null;
|
|
286
308
|
passwordSettings: {
|
|
287
309
|
enabled: boolean;
|
|
288
310
|
} | null;
|
|
@@ -316,6 +338,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
316
338
|
clientSecret: string | null;
|
|
317
339
|
allowedEmails: string[];
|
|
318
340
|
};
|
|
341
|
+
telegram?: {
|
|
342
|
+
enabled: boolean;
|
|
343
|
+
clientId: string | null;
|
|
344
|
+
clientSecret: string | null;
|
|
345
|
+
frontendDomain: string | null;
|
|
346
|
+
allowedIds: string[];
|
|
347
|
+
} | undefined;
|
|
319
348
|
keycloak?: {
|
|
320
349
|
enabled: boolean;
|
|
321
350
|
clientId: string | null;
|
|
@@ -336,11 +365,6 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
336
365
|
tokenUrl: string | null;
|
|
337
366
|
} | undefined;
|
|
338
367
|
} | null;
|
|
339
|
-
tgAuthSettings: {
|
|
340
|
-
enabled: boolean;
|
|
341
|
-
botToken: string | null;
|
|
342
|
-
adminIds: string[];
|
|
343
|
-
} | null;
|
|
344
368
|
passwordSettings: {
|
|
345
369
|
enabled: boolean;
|
|
346
370
|
} | null;
|
|
@@ -357,6 +381,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
357
381
|
origin: string | null;
|
|
358
382
|
} | null;
|
|
359
383
|
oauth2Settings: {
|
|
384
|
+
telegram: {
|
|
385
|
+
enabled: boolean;
|
|
386
|
+
clientId: string | null;
|
|
387
|
+
clientSecret: string | null;
|
|
388
|
+
frontendDomain: string | null;
|
|
389
|
+
allowedIds: string[];
|
|
390
|
+
};
|
|
360
391
|
github: {
|
|
361
392
|
enabled: boolean;
|
|
362
393
|
clientId: string | null;
|
|
@@ -396,11 +427,6 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
396
427
|
tokenUrl: string | null;
|
|
397
428
|
};
|
|
398
429
|
} | null;
|
|
399
|
-
tgAuthSettings: {
|
|
400
|
-
enabled: boolean;
|
|
401
|
-
botToken: string | null;
|
|
402
|
-
adminIds: string[];
|
|
403
|
-
} | null;
|
|
404
430
|
passwordSettings: {
|
|
405
431
|
enabled: boolean;
|
|
406
432
|
} | null;
|
|
@@ -436,6 +462,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
436
462
|
clientSecret: string | null;
|
|
437
463
|
allowedEmails: string[];
|
|
438
464
|
};
|
|
465
|
+
telegram?: {
|
|
466
|
+
enabled: boolean;
|
|
467
|
+
clientId: string | null;
|
|
468
|
+
clientSecret: string | null;
|
|
469
|
+
frontendDomain: string | null;
|
|
470
|
+
allowedIds: string[];
|
|
471
|
+
} | undefined;
|
|
439
472
|
keycloak?: {
|
|
440
473
|
enabled: boolean;
|
|
441
474
|
clientId: string | null;
|
|
@@ -456,11 +489,6 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
456
489
|
tokenUrl: string | null;
|
|
457
490
|
} | undefined;
|
|
458
491
|
} | null;
|
|
459
|
-
tgAuthSettings: {
|
|
460
|
-
enabled: boolean;
|
|
461
|
-
botToken: string | null;
|
|
462
|
-
adminIds: string[];
|
|
463
|
-
} | null;
|
|
464
492
|
passwordSettings: {
|
|
465
493
|
enabled: boolean;
|
|
466
494
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-remnawave-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/remnawave-settings/get-remnawave-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAAmC,CAAC;IAC7C,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-remnawave-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/remnawave-settings/get-remnawave-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAAmC,CAAC;IAC7C,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|