@remnawave/backend-contract 2.2.15 → 2.2.17
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/api/controllers/auth.d.ts +0 -4
- package/build/backend/api/controllers/auth.d.ts.map +1 -1
- package/build/backend/api/controllers/auth.js +0 -4
- package/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/passkeys.d.ts +8 -0
- package/build/backend/api/controllers/passkeys.d.ts.map +1 -0
- package/build/backend/api/controllers/passkeys.js +10 -0
- package/build/backend/api/controllers-info.d.ts +4 -0
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +4 -0
- package/build/backend/api/routes.d.ts +6 -4
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +6 -4
- package/build/backend/commands/auth/get-status.command.d.ts +118 -35
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.js +15 -8
- package/build/backend/commands/auth/login.command.d.ts +2 -2
- package/build/backend/commands/auth/passkey/index.d.ts +0 -4
- package/build/backend/commands/auth/passkey/index.d.ts.map +1 -1
- package/build/backend/commands/auth/passkey/index.js +0 -4
- package/build/backend/commands/auth/register.command.d.ts +2 -2
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/{auth/passkey → passkeys}/delete-passkeys.command.d.ts +3 -3
- package/build/backend/commands/passkeys/delete-passkeys.command.d.ts.map +1 -0
- package/build/{frontend/commands/auth/passkey → backend/commands/passkeys}/delete-passkeys.command.js +4 -4
- package/build/backend/commands/{auth/passkey → passkeys}/get-active-passkeys.command.d.ts +4 -4
- package/build/backend/commands/passkeys/get-active-passkeys.command.d.ts.map +1 -0
- package/build/backend/commands/{auth/passkey → passkeys}/get-active-passkeys.command.js +10 -10
- package/build/backend/commands/{auth/passkey → passkeys}/get-registration-options.command.d.ts +3 -3
- package/build/backend/commands/passkeys/get-registration-options.command.d.ts.map +1 -0
- package/build/{frontend/commands/auth/passkey → backend/commands/passkeys}/get-registration-options.command.js +4 -4
- package/build/backend/commands/passkeys/index.d.ts +5 -0
- package/build/backend/commands/passkeys/index.d.ts.map +1 -0
- package/build/backend/commands/passkeys/index.js +20 -0
- package/build/backend/commands/{auth/passkey → passkeys}/verify-registration.command.d.ts +3 -3
- package/build/backend/commands/passkeys/verify-registration.command.d.ts.map +1 -0
- package/build/{frontend/commands/auth/passkey → backend/commands/passkeys}/verify-registration.command.js +4 -4
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts +2 -2
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts +4 -4
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +8 -8
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +14 -14
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +12 -12
- package/build/backend/constants/errors/errors.d.ts +30 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +30 -0
- package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts +2 -2
- package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/passkey-settings.schema.js +13 -2
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts +2 -2
- package/build/backend/models/response-rules/response-rule.schema.d.ts +4 -4
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts +4 -4
- package/build/backend/models/subscription-settings.schema.d.ts +6 -6
- package/build/frontend/api/controllers/auth.js +0 -4
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/passkeys.js +10 -0
- package/build/frontend/api/controllers-info.js +4 -0
- package/build/frontend/api/routes.js +6 -4
- package/build/frontend/commands/auth/get-status.command.js +15 -8
- package/build/frontend/commands/auth/passkey/index.js +0 -4
- package/build/frontend/commands/index.js +1 -0
- package/build/{backend/commands/auth/passkey → frontend/commands/passkeys}/delete-passkeys.command.js +4 -4
- package/build/frontend/commands/{auth/passkey → passkeys}/get-active-passkeys.command.js +10 -10
- package/build/{backend/commands/auth/passkey → frontend/commands/passkeys}/get-registration-options.command.js +4 -4
- package/build/frontend/commands/passkeys/index.js +20 -0
- package/build/{backend/commands/auth/passkey → frontend/commands/passkeys}/verify-registration.command.js +4 -4
- package/build/frontend/constants/errors/errors.js +30 -0
- package/build/frontend/models/remnawave-settings/passkey-settings.schema.js +13 -2
- package/package.json +1 -1
- package/build/backend/commands/auth/passkey/delete-passkeys.command.d.ts.map +0 -1
- package/build/backend/commands/auth/passkey/get-active-passkeys.command.d.ts.map +0 -1
- package/build/backend/commands/auth/passkey/get-registration-options.command.d.ts.map +0 -1
- package/build/backend/commands/auth/passkey/verify-registration.command.d.ts.map +0 -1
|
@@ -9,12 +9,8 @@ export declare const AUTH_ROUTES: {
|
|
|
9
9
|
readonly CALLBACK: "oauth2/callback";
|
|
10
10
|
};
|
|
11
11
|
readonly PASSKEY: {
|
|
12
|
-
readonly GET_REGISTRATION_OPTIONS: "passkey/registration/options";
|
|
13
|
-
readonly VERIFY_REGISTRATION: "passkey/registration/verify";
|
|
14
12
|
readonly GET_AUTHENTICATION_OPTIONS: "passkey/authentication/options";
|
|
15
13
|
readonly VERIFY_AUTHENTICATION: "passkey/authentication/verify";
|
|
16
|
-
readonly ACTIVE_PASSKEYS: "passkey/active-passkeys";
|
|
17
|
-
readonly DELETE_PASSKEY: "passkey/delete";
|
|
18
14
|
};
|
|
19
15
|
};
|
|
20
16
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../api/controllers/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../api/controllers/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAcd,CAAC"}
|
|
@@ -12,11 +12,7 @@ exports.AUTH_ROUTES = {
|
|
|
12
12
|
CALLBACK: 'oauth2/callback',
|
|
13
13
|
},
|
|
14
14
|
PASSKEY: {
|
|
15
|
-
GET_REGISTRATION_OPTIONS: 'passkey/registration/options', // get
|
|
16
|
-
VERIFY_REGISTRATION: 'passkey/registration/verify', // post
|
|
17
15
|
GET_AUTHENTICATION_OPTIONS: 'passkey/authentication/options', // get
|
|
18
16
|
VERIFY_AUTHENTICATION: 'passkey/authentication/verify', // post
|
|
19
|
-
ACTIVE_PASSKEYS: 'passkey/active-passkeys', // get
|
|
20
|
-
DELETE_PASSKEY: 'passkey/delete', // delete
|
|
21
17
|
},
|
|
22
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -24,6 +24,7 @@ __exportStar(require("./infra-billing"), exports);
|
|
|
24
24
|
__exportStar(require("./internal-squads"), exports);
|
|
25
25
|
__exportStar(require("./keygen"), exports);
|
|
26
26
|
__exportStar(require("./nodes"), exports);
|
|
27
|
+
__exportStar(require("./passkeys"), exports);
|
|
27
28
|
__exportStar(require("./remnawave-settings"), exports);
|
|
28
29
|
__exportStar(require("./snippets"), exports);
|
|
29
30
|
__exportStar(require("./subscription"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const PASSKEYS_CONTROLLER: "passkeys";
|
|
2
|
+
export declare const PASSKEYS_ROUTES: {
|
|
3
|
+
readonly GET_ALL_PASSKEYS: "";
|
|
4
|
+
readonly DELETE_PASSKEY: "";
|
|
5
|
+
readonly GET_REGISTRATION_OPTIONS: "registration/options";
|
|
6
|
+
readonly VERIFY_REGISTRATION: "registration/verify";
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=passkeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passkeys.d.ts","sourceRoot":"","sources":["../../../../api/controllers/passkeys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe;;;;;CAMlB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PASSKEYS_ROUTES = exports.PASSKEYS_CONTROLLER = void 0;
|
|
4
|
+
exports.PASSKEYS_CONTROLLER = 'passkeys';
|
|
5
|
+
exports.PASSKEYS_ROUTES = {
|
|
6
|
+
GET_ALL_PASSKEYS: '', // get
|
|
7
|
+
DELETE_PASSKEY: '', // delete
|
|
8
|
+
GET_REGISTRATION_OPTIONS: 'registration/options', // get
|
|
9
|
+
VERIFY_REGISTRATION: 'registration/verify', // post
|
|
10
|
+
};
|
|
@@ -3,6 +3,10 @@ export declare const CONTROLLERS_INFO: {
|
|
|
3
3
|
readonly tag: "Auth Controller";
|
|
4
4
|
readonly description: "Used to authenticate admin users.";
|
|
5
5
|
};
|
|
6
|
+
readonly PASSKEYS: {
|
|
7
|
+
readonly tag: "Passkeys Controller";
|
|
8
|
+
readonly description: "Management of Passkeys.";
|
|
9
|
+
};
|
|
6
10
|
readonly API_TOKENS: {
|
|
7
11
|
readonly tag: "API Tokens Controller";
|
|
8
12
|
readonly description: "Manage API tokens to use in your code. This controller can't be used with API token, only with Admin JWT token";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGnB,CAAC"}
|
|
@@ -6,6 +6,10 @@ exports.CONTROLLERS_INFO = {
|
|
|
6
6
|
tag: 'Auth Controller',
|
|
7
7
|
description: 'Used to authenticate admin users.',
|
|
8
8
|
},
|
|
9
|
+
PASSKEYS: {
|
|
10
|
+
tag: 'Passkeys Controller',
|
|
11
|
+
description: 'Management of Passkeys.',
|
|
12
|
+
},
|
|
9
13
|
API_TOKENS: {
|
|
10
14
|
tag: 'API Tokens Controller',
|
|
11
15
|
description: "Manage API tokens to use in your code. This controller can't be used with API token, only with Admin JWT token",
|
|
@@ -13,14 +13,16 @@ export declare const REST_API: {
|
|
|
13
13
|
readonly CALLBACK: "/api/auth/oauth2/callback";
|
|
14
14
|
};
|
|
15
15
|
readonly PASSKEY: {
|
|
16
|
-
readonly GET_REGISTRATION_OPTIONS: "/api/auth/passkey/registration/options";
|
|
17
|
-
readonly VERIFY_REGISTRATION: "/api/auth/passkey/registration/verify";
|
|
18
16
|
readonly GET_AUTHENTICATION_OPTIONS: "/api/auth/passkey/authentication/options";
|
|
19
17
|
readonly VERIFY_AUTHENTICATION: "/api/auth/passkey/authentication/verify";
|
|
20
|
-
readonly ACTIVE_PASSKEYS: "/api/auth/passkey/active-passkeys";
|
|
21
|
-
readonly DELETE_PASSKEY: "/api/auth/passkey/delete";
|
|
22
18
|
};
|
|
23
19
|
};
|
|
20
|
+
readonly PASSKEYS: {
|
|
21
|
+
readonly GET_ALL_PASSKEYS: "/api/passkeys/";
|
|
22
|
+
readonly DELETE_PASSKEY: "/api/passkeys/";
|
|
23
|
+
readonly GET_REGISTRATION_OPTIONS: "/api/passkeys/registration/options";
|
|
24
|
+
readonly VERIFY_REGISTRATION: "/api/passkeys/registration/verify";
|
|
25
|
+
};
|
|
24
26
|
readonly API_TOKENS: {
|
|
25
27
|
readonly CREATE: "/api/tokens/";
|
|
26
28
|
readonly DELETE: (uuid: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;gCAwBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;mDAca,MAAM;;;;;;;;0CAWf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;CAQ7B,CAAC"}
|
|
@@ -50,14 +50,16 @@ exports.REST_API = {
|
|
|
50
50
|
CALLBACK: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.OAUTH2.CALLBACK}`,
|
|
51
51
|
},
|
|
52
52
|
PASSKEY: {
|
|
53
|
-
GET_REGISTRATION_OPTIONS: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.PASSKEY.GET_REGISTRATION_OPTIONS}`,
|
|
54
|
-
VERIFY_REGISTRATION: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.PASSKEY.VERIFY_REGISTRATION}`,
|
|
55
53
|
GET_AUTHENTICATION_OPTIONS: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.PASSKEY.GET_AUTHENTICATION_OPTIONS}`,
|
|
56
54
|
VERIFY_AUTHENTICATION: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.PASSKEY.VERIFY_AUTHENTICATION}`,
|
|
57
|
-
ACTIVE_PASSKEYS: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.PASSKEY.ACTIVE_PASSKEYS}`,
|
|
58
|
-
DELETE_PASSKEY: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.PASSKEY.DELETE_PASSKEY}`,
|
|
59
55
|
},
|
|
60
56
|
},
|
|
57
|
+
PASSKEYS: {
|
|
58
|
+
GET_ALL_PASSKEYS: `${exports.ROOT}/${CONTROLLERS.PASSKEYS_CONTROLLER}/${CONTROLLERS.PASSKEYS_ROUTES.GET_ALL_PASSKEYS}`,
|
|
59
|
+
DELETE_PASSKEY: `${exports.ROOT}/${CONTROLLERS.PASSKEYS_CONTROLLER}/${CONTROLLERS.PASSKEYS_ROUTES.DELETE_PASSKEY}`,
|
|
60
|
+
GET_REGISTRATION_OPTIONS: `${exports.ROOT}/${CONTROLLERS.PASSKEYS_CONTROLLER}/${CONTROLLERS.PASSKEYS_ROUTES.GET_REGISTRATION_OPTIONS}`,
|
|
61
|
+
VERIFY_REGISTRATION: `${exports.ROOT}/${CONTROLLERS.PASSKEYS_CONTROLLER}/${CONTROLLERS.PASSKEYS_ROUTES.VERIFY_REGISTRATION}`,
|
|
62
|
+
},
|
|
61
63
|
API_TOKENS: {
|
|
62
64
|
CREATE: `${exports.ROOT}/${CONTROLLERS.API_TOKENS_CONTROLLER}/${CONTROLLERS.API_TOKENS_ROUTES.CREATE}`,
|
|
63
65
|
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.API_TOKENS_CONTROLLER}/${CONTROLLERS.API_TOKENS_ROUTES.DELETE(uuid)}`,
|
|
@@ -7,24 +7,71 @@ export declare namespace GetStatusCommand {
|
|
|
7
7
|
response: z.ZodObject<{
|
|
8
8
|
isLoginAllowed: z.ZodBoolean;
|
|
9
9
|
isRegisterAllowed: z.ZodBoolean;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
authentication: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
passkey: z.ZodObject<{
|
|
12
|
+
enabled: z.ZodBoolean;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
}, {
|
|
16
|
+
enabled: boolean;
|
|
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
|
+
oauth2: z.ZodObject<{
|
|
29
|
+
providers: z.ZodRecord<z.ZodNativeEnum<{
|
|
30
|
+
readonly GITHUB: "github";
|
|
31
|
+
readonly POCKETID: "pocketid";
|
|
32
|
+
readonly YANDEX: "yandex";
|
|
33
|
+
}>, z.ZodBoolean>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
36
|
+
}, {
|
|
37
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
38
|
+
}>;
|
|
39
|
+
password: z.ZodObject<{
|
|
40
|
+
enabled: z.ZodBoolean;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
}, {
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
}>;
|
|
12
46
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
|
|
47
|
+
passkey: {
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
};
|
|
50
|
+
tgAuth: {
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
botId: number | null;
|
|
53
|
+
};
|
|
54
|
+
oauth2: {
|
|
55
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
56
|
+
};
|
|
57
|
+
password: {
|
|
58
|
+
enabled: boolean;
|
|
59
|
+
};
|
|
14
60
|
}, {
|
|
15
|
-
|
|
61
|
+
passkey: {
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
};
|
|
64
|
+
tgAuth: {
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
botId: number | null;
|
|
67
|
+
};
|
|
68
|
+
oauth2: {
|
|
69
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
70
|
+
};
|
|
71
|
+
password: {
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
};
|
|
16
74
|
}>>;
|
|
17
|
-
oauth2: z.ZodObject<{
|
|
18
|
-
providers: z.ZodRecord<z.ZodNativeEnum<{
|
|
19
|
-
readonly GITHUB: "github";
|
|
20
|
-
readonly POCKETID: "pocketid";
|
|
21
|
-
readonly YANDEX: "yandex";
|
|
22
|
-
}>, z.ZodBoolean>;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
25
|
-
}, {
|
|
26
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
27
|
-
}>;
|
|
28
75
|
branding: z.ZodObject<{
|
|
29
76
|
title: z.ZodNullable<z.ZodString>;
|
|
30
77
|
logoUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -38,12 +85,21 @@ export declare namespace GetStatusCommand {
|
|
|
38
85
|
}, "strip", z.ZodTypeAny, {
|
|
39
86
|
isLoginAllowed: boolean;
|
|
40
87
|
isRegisterAllowed: boolean;
|
|
41
|
-
|
|
42
|
-
|
|
88
|
+
authentication: {
|
|
89
|
+
passkey: {
|
|
90
|
+
enabled: boolean;
|
|
91
|
+
};
|
|
92
|
+
tgAuth: {
|
|
93
|
+
enabled: boolean;
|
|
94
|
+
botId: number | null;
|
|
95
|
+
};
|
|
96
|
+
oauth2: {
|
|
97
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
98
|
+
};
|
|
99
|
+
password: {
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
};
|
|
43
102
|
} | null;
|
|
44
|
-
oauth2: {
|
|
45
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
46
|
-
};
|
|
47
103
|
branding: {
|
|
48
104
|
title: string | null;
|
|
49
105
|
logoUrl: string | null;
|
|
@@ -51,12 +107,21 @@ export declare namespace GetStatusCommand {
|
|
|
51
107
|
}, {
|
|
52
108
|
isLoginAllowed: boolean;
|
|
53
109
|
isRegisterAllowed: boolean;
|
|
54
|
-
|
|
55
|
-
|
|
110
|
+
authentication: {
|
|
111
|
+
passkey: {
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
};
|
|
114
|
+
tgAuth: {
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
botId: number | null;
|
|
117
|
+
};
|
|
118
|
+
oauth2: {
|
|
119
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
120
|
+
};
|
|
121
|
+
password: {
|
|
122
|
+
enabled: boolean;
|
|
123
|
+
};
|
|
56
124
|
} | null;
|
|
57
|
-
oauth2: {
|
|
58
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
59
|
-
};
|
|
60
125
|
branding: {
|
|
61
126
|
title: string | null;
|
|
62
127
|
logoUrl: string | null;
|
|
@@ -66,12 +131,21 @@ export declare namespace GetStatusCommand {
|
|
|
66
131
|
response: {
|
|
67
132
|
isLoginAllowed: boolean;
|
|
68
133
|
isRegisterAllowed: boolean;
|
|
69
|
-
|
|
70
|
-
|
|
134
|
+
authentication: {
|
|
135
|
+
passkey: {
|
|
136
|
+
enabled: boolean;
|
|
137
|
+
};
|
|
138
|
+
tgAuth: {
|
|
139
|
+
enabled: boolean;
|
|
140
|
+
botId: number | null;
|
|
141
|
+
};
|
|
142
|
+
oauth2: {
|
|
143
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
144
|
+
};
|
|
145
|
+
password: {
|
|
146
|
+
enabled: boolean;
|
|
147
|
+
};
|
|
71
148
|
} | null;
|
|
72
|
-
oauth2: {
|
|
73
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
74
|
-
};
|
|
75
149
|
branding: {
|
|
76
150
|
title: string | null;
|
|
77
151
|
logoUrl: string | null;
|
|
@@ -81,12 +155,21 @@ export declare namespace GetStatusCommand {
|
|
|
81
155
|
response: {
|
|
82
156
|
isLoginAllowed: boolean;
|
|
83
157
|
isRegisterAllowed: boolean;
|
|
84
|
-
|
|
85
|
-
|
|
158
|
+
authentication: {
|
|
159
|
+
passkey: {
|
|
160
|
+
enabled: boolean;
|
|
161
|
+
};
|
|
162
|
+
tgAuth: {
|
|
163
|
+
enabled: boolean;
|
|
164
|
+
botId: number | null;
|
|
165
|
+
};
|
|
166
|
+
oauth2: {
|
|
167
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
168
|
+
};
|
|
169
|
+
password: {
|
|
170
|
+
enabled: boolean;
|
|
171
|
+
};
|
|
86
172
|
} | null;
|
|
87
|
-
oauth2: {
|
|
88
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
89
|
-
};
|
|
90
173
|
branding: {
|
|
91
174
|
title: string | null;
|
|
92
175
|
logoUrl: string | null;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -13,14 +13,21 @@ var GetStatusCommand;
|
|
|
13
13
|
response: zod_1.z.object({
|
|
14
14
|
isLoginAllowed: zod_1.z.boolean(),
|
|
15
15
|
isRegisterAllowed: zod_1.z.boolean(),
|
|
16
|
-
|
|
17
|
-
.object({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
authentication: zod_1.z.nullable(zod_1.z.object({
|
|
17
|
+
passkey: zod_1.z.object({
|
|
18
|
+
enabled: zod_1.z.boolean(),
|
|
19
|
+
}),
|
|
20
|
+
tgAuth: zod_1.z.object({
|
|
21
|
+
enabled: zod_1.z.boolean(),
|
|
22
|
+
botId: zod_1.z.number().nullable(),
|
|
23
|
+
}),
|
|
24
|
+
oauth2: zod_1.z.object({
|
|
25
|
+
providers: zod_1.z.record(zod_1.z.nativeEnum(constants_1.OAUTH2_PROVIDERS), zod_1.z.boolean()),
|
|
26
|
+
}),
|
|
27
|
+
password: zod_1.z.object({
|
|
28
|
+
enabled: zod_1.z.boolean(),
|
|
29
|
+
}),
|
|
30
|
+
})),
|
|
24
31
|
branding: zod_1.z.object({
|
|
25
32
|
title: zod_1.z.nullable(zod_1.z.string()),
|
|
26
33
|
logoUrl: zod_1.z.nullable(zod_1.z.string()),
|
|
@@ -7,11 +7,11 @@ export declare namespace LoginCommand {
|
|
|
7
7
|
username: z.ZodString;
|
|
8
8
|
password: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
username: string;
|
|
11
10
|
password: string;
|
|
12
|
-
}, {
|
|
13
11
|
username: string;
|
|
12
|
+
}, {
|
|
14
13
|
password: string;
|
|
14
|
+
username: string;
|
|
15
15
|
}>;
|
|
16
16
|
type Request = z.infer<typeof RequestSchema>;
|
|
17
17
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
export * from './delete-passkeys.command';
|
|
2
|
-
export * from './get-active-passkeys.command';
|
|
3
1
|
export * from './get-authentication-options.command';
|
|
4
|
-
export * from './get-registration-options.command';
|
|
5
2
|
export * from './verify-authentication.command';
|
|
6
|
-
export * from './verify-registration.command';
|
|
7
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/passkey/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC"}
|
|
@@ -14,9 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./delete-passkeys.command"), exports);
|
|
18
|
-
__exportStar(require("./get-active-passkeys.command"), exports);
|
|
19
17
|
__exportStar(require("./get-authentication-options.command"), exports);
|
|
20
|
-
__exportStar(require("./get-registration-options.command"), exports);
|
|
21
18
|
__exportStar(require("./verify-authentication.command"), exports);
|
|
22
|
-
__exportStar(require("./verify-registration.command"), exports);
|
|
@@ -7,11 +7,11 @@ export declare namespace RegisterCommand {
|
|
|
7
7
|
username: z.ZodString;
|
|
8
8
|
password: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
username: string;
|
|
11
10
|
password: string;
|
|
12
|
-
}, {
|
|
13
11
|
username: string;
|
|
12
|
+
}, {
|
|
14
13
|
password: string;
|
|
14
|
+
username: string;
|
|
15
15
|
}>;
|
|
16
16
|
type Request = z.infer<typeof RequestSchema>;
|
|
17
17
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -24,6 +24,7 @@ __exportStar(require("./infra-billing"), exports);
|
|
|
24
24
|
__exportStar(require("./internal-squads"), exports);
|
|
25
25
|
__exportStar(require("./keygen"), exports);
|
|
26
26
|
__exportStar(require("./nodes"), exports);
|
|
27
|
+
__exportStar(require("./passkeys"), exports);
|
|
27
28
|
__exportStar(require("./remnawave-settings"), exports);
|
|
28
29
|
__exportStar(require("./snippets"), exports);
|
|
29
30
|
__exportStar(require("./subscription"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace DeletePasskeyCommand {
|
|
3
|
-
const url: "/api/
|
|
4
|
-
const TSQ_url: "/api/
|
|
5
|
-
const endpointDetails: import("
|
|
3
|
+
const url: "/api/passkeys/";
|
|
4
|
+
const TSQ_url: "/api/passkeys/";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-passkeys.command.d.ts","sourceRoot":"","sources":["../../../../commands/passkeys/delete-passkeys.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,kBAAmC,CAAC;IAC7C,MAAM,OAAO,kBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeletePasskeyCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
7
|
var DeletePasskeyCommand;
|
|
8
8
|
(function (DeletePasskeyCommand) {
|
|
9
|
-
DeletePasskeyCommand.url = api_1.REST_API.
|
|
9
|
+
DeletePasskeyCommand.url = api_1.REST_API.PASSKEYS.DELETE_PASSKEY;
|
|
10
10
|
DeletePasskeyCommand.TSQ_url = DeletePasskeyCommand.url;
|
|
11
|
-
DeletePasskeyCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.
|
|
11
|
+
DeletePasskeyCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.PASSKEYS_ROUTES.DELETE_PASSKEY, 'delete', 'Delete a passkey by ID');
|
|
12
12
|
DeletePasskeyCommand.RequestSchema = zod_1.z.object({
|
|
13
13
|
id: zod_1.z.string(),
|
|
14
14
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
3
|
-
const url: "/api/
|
|
4
|
-
const TSQ_url: "/api/
|
|
5
|
-
const endpointDetails: import("
|
|
2
|
+
export declare namespace GetAllPasskeysCommand {
|
|
3
|
+
const url: "/api/passkeys/";
|
|
4
|
+
const TSQ_url: "/api/passkeys/";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const ResponseSchema: z.ZodObject<{
|
|
7
7
|
response: z.ZodObject<{
|
|
8
8
|
passkeys: z.ZodArray<z.ZodObject<{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-active-passkeys.command.d.ts","sourceRoot":"","sources":["../../../../commands/passkeys/get-active-passkeys.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,kBAAqC,CAAC;IAC/C,MAAM,OAAO,kBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GetAllPasskeysCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var GetAllPasskeysCommand;
|
|
8
|
+
(function (GetAllPasskeysCommand) {
|
|
9
|
+
GetAllPasskeysCommand.url = api_1.REST_API.PASSKEYS.GET_ALL_PASSKEYS;
|
|
10
|
+
GetAllPasskeysCommand.TSQ_url = GetAllPasskeysCommand.url;
|
|
11
|
+
GetAllPasskeysCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.PASSKEYS_ROUTES.GET_ALL_PASSKEYS, 'get', 'Get all passkeys');
|
|
12
|
+
GetAllPasskeysCommand.ResponseSchema = zod_1.z.object({
|
|
13
13
|
response: zod_1.z.object({
|
|
14
14
|
passkeys: zod_1.z.array(zod_1.z.object({
|
|
15
15
|
id: zod_1.z.string(),
|
|
@@ -31,4 +31,4 @@ var GetPasskeyActivePasskeysCommand;
|
|
|
31
31
|
})),
|
|
32
32
|
}),
|
|
33
33
|
});
|
|
34
|
-
})(
|
|
34
|
+
})(GetAllPasskeysCommand || (exports.GetAllPasskeysCommand = GetAllPasskeysCommand = {}));
|
package/build/backend/commands/{auth/passkey → passkeys}/get-registration-options.command.d.ts
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace GetPasskeyRegistrationOptionsCommand {
|
|
3
|
-
const url: "/api/
|
|
4
|
-
const TSQ_url: "/api/
|
|
5
|
-
const endpointDetails: import("
|
|
3
|
+
const url: "/api/passkeys/registration/options";
|
|
4
|
+
const TSQ_url: "/api/passkeys/registration/options";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const ResponseSchema: z.ZodObject<{
|
|
7
7
|
response: z.ZodUnknown;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-registration-options.command.d.ts","sourceRoot":"","sources":["../../../../commands/passkeys/get-registration-options.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,sCAA6C,CAAC;IACvD,MAAM,OAAO,sCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetPasskeyRegistrationOptionsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
7
|
var GetPasskeyRegistrationOptionsCommand;
|
|
8
8
|
(function (GetPasskeyRegistrationOptionsCommand) {
|
|
9
|
-
GetPasskeyRegistrationOptionsCommand.url = api_1.REST_API.
|
|
9
|
+
GetPasskeyRegistrationOptionsCommand.url = api_1.REST_API.PASSKEYS.GET_REGISTRATION_OPTIONS;
|
|
10
10
|
GetPasskeyRegistrationOptionsCommand.TSQ_url = GetPasskeyRegistrationOptionsCommand.url;
|
|
11
|
-
GetPasskeyRegistrationOptionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.
|
|
11
|
+
GetPasskeyRegistrationOptionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.PASSKEYS_ROUTES.GET_REGISTRATION_OPTIONS, 'get', 'Get registration options for passkey');
|
|
12
12
|
GetPasskeyRegistrationOptionsCommand.ResponseSchema = zod_1.z.object({
|
|
13
13
|
response: zod_1.z.unknown(),
|
|
14
14
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/passkeys/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC"}
|