@veruna/api-contracts 1.0.29 → 1.0.30
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/controllers/index.d.ts +3 -2
- package/build/controllers/index.js +3 -1
- package/build/controllers/verification.controllers.d.ts +5 -0
- package/build/controllers/verification.controllers.js +8 -0
- package/build/rest-api.d.ts +21 -0
- package/build/rest-api.js +21 -0
- package/build/routes/index.d.ts +1 -0
- package/build/routes/index.js +3 -1
- package/build/routes/users.routes.d.ts +12 -0
- package/build/routes/users.routes.js +12 -0
- package/build/routes/verification.routes.d.ts +7 -0
- package/build/routes/verification.routes.js +10 -0
- package/build/v1/index.d.ts +1 -0
- package/build/v1/index.js +1 -0
- package/build/v1/notifications/schemas/email-template.enum.d.ts +1 -0
- package/build/v1/notifications/schemas/email-template.enum.js +1 -0
- package/build/v1/users/commands/delete-account-complete.command.d.ts +15 -0
- package/build/v1/users/commands/delete-account-complete.command.js +13 -0
- package/build/v1/users/commands/delete-account-start.command.d.ts +22 -0
- package/build/v1/users/commands/delete-account-start.command.js +14 -0
- package/build/v1/users/commands/delete-account-verify.command.d.ts +19 -0
- package/build/v1/users/commands/delete-account-verify.command.js +13 -0
- package/build/v1/users/commands/email-change-complete.command.d.ts +15 -0
- package/build/v1/users/commands/email-change-complete.command.js +13 -0
- package/build/v1/users/commands/email-change-start.command.d.ts +22 -0
- package/build/v1/users/commands/email-change-start.command.js +14 -0
- package/build/v1/users/commands/email-change-verify.command.d.ts +19 -0
- package/build/v1/users/commands/email-change-verify.command.js +13 -0
- package/build/v1/users/commands/index.d.ts +9 -0
- package/build/v1/users/commands/index.js +9 -0
- package/build/v1/users/commands/password-change-complete.command.d.ts +17 -0
- package/build/v1/users/commands/password-change-complete.command.js +14 -0
- package/build/v1/users/commands/password-change-start.command.d.ts +22 -0
- package/build/v1/users/commands/password-change-start.command.js +14 -0
- package/build/v1/users/commands/password-change-verify.command.d.ts +19 -0
- package/build/v1/users/commands/password-change-verify.command.js +13 -0
- package/build/v1/users/queries/delete-account-status.query.d.ts +22 -0
- package/build/v1/users/queries/delete-account-status.query.js +16 -0
- package/build/v1/users/queries/email-change-status.query.d.ts +22 -0
- package/build/v1/users/queries/email-change-status.query.js +16 -0
- package/build/v1/users/queries/index.d.ts +3 -0
- package/build/v1/users/queries/index.js +3 -0
- package/build/v1/users/queries/password-change-status.query.d.ts +22 -0
- package/build/v1/users/queries/password-change-status.query.js +16 -0
- package/build/v1/users/schemas/delete-account-start-request.schema.d.ts +4 -0
- package/build/v1/users/schemas/delete-account-start-request.schema.js +7 -0
- package/build/v1/users/schemas/email-change-start-request.schema.d.ts +4 -0
- package/build/v1/users/schemas/email-change-start-request.schema.js +7 -0
- package/build/v1/users/schemas/index.d.ts +4 -0
- package/build/v1/users/schemas/index.js +4 -0
- package/build/v1/users/schemas/password-change-complete-request.schema.d.ts +6 -0
- package/build/v1/users/schemas/password-change-complete-request.schema.js +10 -0
- package/build/v1/users/schemas/password-change-start-request.schema.d.ts +4 -0
- package/build/v1/users/schemas/password-change-start-request.schema.js +7 -0
- package/build/v1/users/users.errors.d.ts +2 -0
- package/build/v1/users/users.errors.js +10 -0
- package/build/v1/verification/commands/index.d.ts +1 -0
- package/build/v1/verification/commands/index.js +17 -0
- package/build/v1/verification/commands/resend.command.d.ts +17 -0
- package/build/v1/verification/commands/resend.command.js +13 -0
- package/build/v1/verification/index.d.ts +3 -0
- package/build/v1/verification/index.js +19 -0
- package/build/v1/verification/schemas/index.d.ts +13 -0
- package/build/v1/verification/schemas/index.js +29 -0
- package/build/v1/verification/schemas/verification-channel.enum.d.ts +3 -0
- package/build/v1/verification/schemas/verification-channel.enum.js +7 -0
- package/build/v1/verification/schemas/verification-complete-request.schema.d.ts +4 -0
- package/build/v1/verification/schemas/verification-complete-request.schema.js +7 -0
- package/build/v1/verification/schemas/verification-complete-response.schema.d.ts +6 -0
- package/build/v1/verification/schemas/verification-complete-response.schema.js +9 -0
- package/build/v1/verification/schemas/verification-request-status.enum.d.ts +7 -0
- package/build/v1/verification/schemas/verification-request-status.enum.js +11 -0
- package/build/v1/verification/schemas/verification-resend-request.schema.d.ts +5 -0
- package/build/v1/verification/schemas/verification-resend-request.schema.js +8 -0
- package/build/v1/verification/schemas/verification-resend-response.schema.d.ts +7 -0
- package/build/v1/verification/schemas/verification-resend-response.schema.js +10 -0
- package/build/v1/verification/schemas/verification-start-response.schema.d.ts +14 -0
- package/build/v1/verification/schemas/verification-start-response.schema.js +13 -0
- package/build/v1/verification/schemas/verification-status-response.schema.d.ts +14 -0
- package/build/v1/verification/schemas/verification-status-response.schema.js +13 -0
- package/build/v1/verification/schemas/verification-step-status.enum.d.ts +6 -0
- package/build/v1/verification/schemas/verification-step-status.enum.js +10 -0
- package/build/v1/verification/schemas/verification-step.schema.d.ts +9 -0
- package/build/v1/verification/schemas/verification-step.schema.js +12 -0
- package/build/v1/verification/schemas/verification-type.enum.d.ts +5 -0
- package/build/v1/verification/schemas/verification-type.enum.js +9 -0
- package/build/v1/verification/schemas/verification-verify-request.schema.d.ts +6 -0
- package/build/v1/verification/schemas/verification-verify-request.schema.js +9 -0
- package/build/v1/verification/schemas/verification-verify-response.schema.d.ts +9 -0
- package/build/v1/verification/schemas/verification-verify-response.schema.js +12 -0
- package/build/v1/verification/verification.errors.d.ts +14 -0
- package/build/v1/verification/verification.errors.js +58 -0
- package/package.json +1 -1
|
@@ -5,10 +5,11 @@ export { AUTH_CONTROLLER } from './auth.controllers';
|
|
|
5
5
|
export { USERS_CONTROLLER } from './users.controllers';
|
|
6
6
|
export { UNREG_USERS_CONTROLLER } from './unreg-users.controllers';
|
|
7
7
|
export { BLOG_ADMIN_CATEGORIES_CONTROLLER, BLOG_ADMIN_POSTS_CONTROLLER, BLOG_PUBLIC_CATEGORIES_CONTROLLER, BLOG_PUBLIC_POSTS_CONTROLLER, } from './blog.controllers';
|
|
8
|
-
export { SEO_PAGES_ADMIN_CONTROLLER, SEO_PAGES_PUBLIC_CONTROLLER
|
|
8
|
+
export { SEO_PAGES_ADMIN_CONTROLLER, SEO_PAGES_PUBLIC_CONTROLLER } from './seo-pages.controllers';
|
|
9
9
|
export { AI_PROVIDER_ADMIN_CONTROLLER, AI_PROVIDER_PUBLIC_CONTROLLER, } from './ai-provider.controllers';
|
|
10
|
-
export { AI_MODEL_ADMIN_CONTROLLER, AI_MODEL_PUBLIC_CONTROLLER
|
|
10
|
+
export { AI_MODEL_ADMIN_CONTROLLER, AI_MODEL_PUBLIC_CONTROLLER } from './ai-model.controllers';
|
|
11
11
|
export { FILE_CONTROLLER } from './file.controllers';
|
|
12
12
|
export { CHAT_PROJECT_CONTROLLER } from './chat-project.controllers';
|
|
13
13
|
export { CHAT_UNREG_CONTROLLER } from './chat.controllers';
|
|
14
14
|
export { MESSAGE_UNREG_CONTROLLER } from './message.controllers';
|
|
15
|
+
export { VERIFICATION_CONTROLLER } from './verification.controllers';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MESSAGE_UNREG_CONTROLLER = exports.CHAT_UNREG_CONTROLLER = exports.CHAT_PROJECT_CONTROLLER = exports.FILE_CONTROLLER = exports.AI_MODEL_PUBLIC_CONTROLLER = exports.AI_MODEL_ADMIN_CONTROLLER = exports.AI_PROVIDER_PUBLIC_CONTROLLER = exports.AI_PROVIDER_ADMIN_CONTROLLER = exports.SEO_PAGES_PUBLIC_CONTROLLER = exports.SEO_PAGES_ADMIN_CONTROLLER = exports.BLOG_PUBLIC_POSTS_CONTROLLER = exports.BLOG_PUBLIC_CATEGORIES_CONTROLLER = exports.BLOG_ADMIN_POSTS_CONTROLLER = exports.BLOG_ADMIN_CATEGORIES_CONTROLLER = exports.UNREG_USERS_CONTROLLER = exports.USERS_CONTROLLER = exports.AUTH_CONTROLLER = void 0;
|
|
3
|
+
exports.VERIFICATION_CONTROLLER = exports.MESSAGE_UNREG_CONTROLLER = exports.CHAT_UNREG_CONTROLLER = exports.CHAT_PROJECT_CONTROLLER = exports.FILE_CONTROLLER = exports.AI_MODEL_PUBLIC_CONTROLLER = exports.AI_MODEL_ADMIN_CONTROLLER = exports.AI_PROVIDER_PUBLIC_CONTROLLER = exports.AI_PROVIDER_ADMIN_CONTROLLER = exports.SEO_PAGES_PUBLIC_CONTROLLER = exports.SEO_PAGES_ADMIN_CONTROLLER = exports.BLOG_PUBLIC_POSTS_CONTROLLER = exports.BLOG_PUBLIC_CATEGORIES_CONTROLLER = exports.BLOG_ADMIN_POSTS_CONTROLLER = exports.BLOG_ADMIN_CATEGORIES_CONTROLLER = exports.UNREG_USERS_CONTROLLER = exports.USERS_CONTROLLER = exports.AUTH_CONTROLLER = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Centralized exports for all controllers
|
|
6
6
|
*/
|
|
@@ -32,3 +32,5 @@ var chat_controllers_1 = require("./chat.controllers");
|
|
|
32
32
|
Object.defineProperty(exports, "CHAT_UNREG_CONTROLLER", { enumerable: true, get: function () { return chat_controllers_1.CHAT_UNREG_CONTROLLER; } });
|
|
33
33
|
var message_controllers_1 = require("./message.controllers");
|
|
34
34
|
Object.defineProperty(exports, "MESSAGE_UNREG_CONTROLLER", { enumerable: true, get: function () { return message_controllers_1.MESSAGE_UNREG_CONTROLLER; } });
|
|
35
|
+
var verification_controllers_1 = require("./verification.controllers");
|
|
36
|
+
Object.defineProperty(exports, "VERIFICATION_CONTROLLER", { enumerable: true, get: function () { return verification_controllers_1.VERIFICATION_CONTROLLER; } });
|
package/build/rest-api.d.ts
CHANGED
|
@@ -18,6 +18,24 @@ export declare const REST_API: {
|
|
|
18
18
|
readonly ME: "/api/v1/users/me";
|
|
19
19
|
readonly ME_MARKETING_CONSENT: "/api/v1/users/me/marketing-consent";
|
|
20
20
|
readonly ME_PASSWORD: "/api/v1/users/me/password";
|
|
21
|
+
readonly EMAIL_CHANGE: {
|
|
22
|
+
readonly START: "/api/v1/users/me/email-change/start";
|
|
23
|
+
readonly VERIFY: "/api/v1/users/me/email-change/verify";
|
|
24
|
+
readonly STATUS: "/api/v1/users/me/email-change/status";
|
|
25
|
+
readonly COMPLETE: "/api/v1/users/me/email-change/complete";
|
|
26
|
+
};
|
|
27
|
+
readonly DELETE_ACCOUNT: {
|
|
28
|
+
readonly START: "/api/v1/users/me/delete-account/start";
|
|
29
|
+
readonly VERIFY: "/api/v1/users/me/delete-account/verify";
|
|
30
|
+
readonly STATUS: "/api/v1/users/me/delete-account/status";
|
|
31
|
+
readonly COMPLETE: "/api/v1/users/me/delete-account/complete";
|
|
32
|
+
};
|
|
33
|
+
readonly PASSWORD_CHANGE: {
|
|
34
|
+
readonly START: "/api/v1/users/me/password/change/start";
|
|
35
|
+
readonly VERIFY: "/api/v1/users/me/password/change/verify";
|
|
36
|
+
readonly STATUS: "/api/v1/users/me/password/change/status";
|
|
37
|
+
readonly COMPLETE: "/api/v1/users/me/password/change/complete";
|
|
38
|
+
};
|
|
21
39
|
};
|
|
22
40
|
readonly UNREG: {
|
|
23
41
|
readonly AUTHENTICATE: "/api/v1/unreg/";
|
|
@@ -115,5 +133,8 @@ export declare const REST_API: {
|
|
|
115
133
|
readonly CREATE: (pageId: string, chatId: string) => string;
|
|
116
134
|
};
|
|
117
135
|
};
|
|
136
|
+
readonly VERIFICATION: {
|
|
137
|
+
readonly RESEND: "/api/v1/verification/resend";
|
|
138
|
+
};
|
|
118
139
|
};
|
|
119
140
|
};
|
package/build/rest-api.js
CHANGED
|
@@ -25,6 +25,24 @@ exports.REST_API = {
|
|
|
25
25
|
ME: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.ME}`,
|
|
26
26
|
ME_MARKETING_CONSENT: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.ME_MARKETING_CONSENT}`,
|
|
27
27
|
ME_PASSWORD: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.ME_PASSWORD}`,
|
|
28
|
+
EMAIL_CHANGE: {
|
|
29
|
+
START: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.EMAIL_CHANGE_START}`,
|
|
30
|
+
VERIFY: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.EMAIL_CHANGE_VERIFY}`,
|
|
31
|
+
STATUS: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.EMAIL_CHANGE_STATUS}`,
|
|
32
|
+
COMPLETE: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.EMAIL_CHANGE_COMPLETE}`,
|
|
33
|
+
},
|
|
34
|
+
DELETE_ACCOUNT: {
|
|
35
|
+
START: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.DELETE_ACCOUNT_START}`,
|
|
36
|
+
VERIFY: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.DELETE_ACCOUNT_VERIFY}`,
|
|
37
|
+
STATUS: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.DELETE_ACCOUNT_STATUS}`,
|
|
38
|
+
COMPLETE: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.DELETE_ACCOUNT_COMPLETE}`,
|
|
39
|
+
},
|
|
40
|
+
PASSWORD_CHANGE: {
|
|
41
|
+
START: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.PASSWORD_CHANGE_START}`,
|
|
42
|
+
VERIFY: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.PASSWORD_CHANGE_VERIFY}`,
|
|
43
|
+
STATUS: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.PASSWORD_CHANGE_STATUS}`,
|
|
44
|
+
COMPLETE: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.PASSWORD_CHANGE_COMPLETE}`,
|
|
45
|
+
},
|
|
28
46
|
},
|
|
29
47
|
// Unregistered Users
|
|
30
48
|
UNREG: {
|
|
@@ -132,5 +150,8 @@ exports.REST_API = {
|
|
|
132
150
|
CREATE: (pageId, chatId) => `${exports.ROOT}/${controllers_1.MESSAGE_UNREG_CONTROLLER.replace(':pageId', pageId).replace(':chatId', chatId)}`,
|
|
133
151
|
},
|
|
134
152
|
},
|
|
153
|
+
VERIFICATION: {
|
|
154
|
+
RESEND: `${exports.ROOT}/${controllers_1.VERIFICATION_CONTROLLER}/${routes_1.VERIFICATION_ROUTES.RESEND}`,
|
|
155
|
+
},
|
|
135
156
|
},
|
|
136
157
|
};
|
package/build/routes/index.d.ts
CHANGED
|
@@ -17,3 +17,4 @@ export { FILE_ROUTES } from './file.routes';
|
|
|
17
17
|
export { CHAT_PROJECT_ROUTES } from './chat-project.routes';
|
|
18
18
|
export { CHAT_UNREG_ROUTES } from './chat.routes';
|
|
19
19
|
export { MESSAGE_UNREG_ROUTES } from './message.routes';
|
|
20
|
+
export { VERIFICATION_ROUTES } from './verification.routes';
|
package/build/routes/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MESSAGE_UNREG_ROUTES = exports.CHAT_UNREG_ROUTES = exports.CHAT_PROJECT_ROUTES = exports.FILE_ROUTES = exports.AI_MODEL_PUBLIC_ROUTES = exports.AI_MODEL_ADMIN_ROUTES = exports.AI_PROVIDER_PUBLIC_ROUTES = exports.AI_PROVIDER_ADMIN_ROUTES = exports.SEO_PAGES_PUBLIC_ROUTES = exports.SEO_PAGES_ADMIN_ROUTES = exports.BLOG_PUBLIC_POSTS_ROUTES = exports.BLOG_PUBLIC_CATEGORIES_ROUTES = exports.BLOG_ADMIN_POSTS_ROUTES = exports.BLOG_ADMIN_CATEGORIES_ROUTES = exports.UNREG_USERS_ROUTES = exports.USERS_ROUTES = exports.AUTH_ROUTES = void 0;
|
|
3
|
+
exports.VERIFICATION_ROUTES = exports.MESSAGE_UNREG_ROUTES = exports.CHAT_UNREG_ROUTES = exports.CHAT_PROJECT_ROUTES = exports.FILE_ROUTES = exports.AI_MODEL_PUBLIC_ROUTES = exports.AI_MODEL_ADMIN_ROUTES = exports.AI_PROVIDER_PUBLIC_ROUTES = exports.AI_PROVIDER_ADMIN_ROUTES = exports.SEO_PAGES_PUBLIC_ROUTES = exports.SEO_PAGES_ADMIN_ROUTES = exports.BLOG_PUBLIC_POSTS_ROUTES = exports.BLOG_PUBLIC_CATEGORIES_ROUTES = exports.BLOG_ADMIN_POSTS_ROUTES = exports.BLOG_ADMIN_CATEGORIES_ROUTES = exports.UNREG_USERS_ROUTES = exports.USERS_ROUTES = exports.AUTH_ROUTES = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Centralized exports for all routes
|
|
6
6
|
*/
|
|
@@ -37,3 +37,5 @@ var chat_routes_1 = require("./chat.routes");
|
|
|
37
37
|
Object.defineProperty(exports, "CHAT_UNREG_ROUTES", { enumerable: true, get: function () { return chat_routes_1.CHAT_UNREG_ROUTES; } });
|
|
38
38
|
var message_routes_1 = require("./message.routes");
|
|
39
39
|
Object.defineProperty(exports, "MESSAGE_UNREG_ROUTES", { enumerable: true, get: function () { return message_routes_1.MESSAGE_UNREG_ROUTES; } });
|
|
40
|
+
var verification_routes_1 = require("./verification.routes");
|
|
41
|
+
Object.defineProperty(exports, "VERIFICATION_ROUTES", { enumerable: true, get: function () { return verification_routes_1.VERIFICATION_ROUTES; } });
|
|
@@ -6,4 +6,16 @@ export declare const USERS_ROUTES: {
|
|
|
6
6
|
readonly ME: "me";
|
|
7
7
|
readonly ME_MARKETING_CONSENT: "me/marketing-consent";
|
|
8
8
|
readonly ME_PASSWORD: "me/password";
|
|
9
|
+
readonly EMAIL_CHANGE_START: "me/email-change/start";
|
|
10
|
+
readonly EMAIL_CHANGE_VERIFY: "me/email-change/verify";
|
|
11
|
+
readonly EMAIL_CHANGE_STATUS: "me/email-change/status";
|
|
12
|
+
readonly EMAIL_CHANGE_COMPLETE: "me/email-change/complete";
|
|
13
|
+
readonly DELETE_ACCOUNT_START: "me/delete-account/start";
|
|
14
|
+
readonly DELETE_ACCOUNT_VERIFY: "me/delete-account/verify";
|
|
15
|
+
readonly DELETE_ACCOUNT_STATUS: "me/delete-account/status";
|
|
16
|
+
readonly DELETE_ACCOUNT_COMPLETE: "me/delete-account/complete";
|
|
17
|
+
readonly PASSWORD_CHANGE_START: "me/password/change/start";
|
|
18
|
+
readonly PASSWORD_CHANGE_VERIFY: "me/password/change/verify";
|
|
19
|
+
readonly PASSWORD_CHANGE_STATUS: "me/password/change/status";
|
|
20
|
+
readonly PASSWORD_CHANGE_COMPLETE: "me/password/change/complete";
|
|
9
21
|
};
|
|
@@ -9,4 +9,16 @@ exports.USERS_ROUTES = {
|
|
|
9
9
|
ME: 'me',
|
|
10
10
|
ME_MARKETING_CONSENT: 'me/marketing-consent',
|
|
11
11
|
ME_PASSWORD: 'me/password',
|
|
12
|
+
EMAIL_CHANGE_START: 'me/email-change/start',
|
|
13
|
+
EMAIL_CHANGE_VERIFY: 'me/email-change/verify',
|
|
14
|
+
EMAIL_CHANGE_STATUS: 'me/email-change/status',
|
|
15
|
+
EMAIL_CHANGE_COMPLETE: 'me/email-change/complete',
|
|
16
|
+
DELETE_ACCOUNT_START: 'me/delete-account/start',
|
|
17
|
+
DELETE_ACCOUNT_VERIFY: 'me/delete-account/verify',
|
|
18
|
+
DELETE_ACCOUNT_STATUS: 'me/delete-account/status',
|
|
19
|
+
DELETE_ACCOUNT_COMPLETE: 'me/delete-account/complete',
|
|
20
|
+
PASSWORD_CHANGE_START: 'me/password/change/start',
|
|
21
|
+
PASSWORD_CHANGE_VERIFY: 'me/password/change/verify',
|
|
22
|
+
PASSWORD_CHANGE_STATUS: 'me/password/change/status',
|
|
23
|
+
PASSWORD_CHANGE_COMPLETE: 'me/password/change/complete',
|
|
12
24
|
};
|
package/build/v1/index.d.ts
CHANGED
package/build/v1/index.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export declare enum EmailTemplate {
|
|
6
6
|
WELCOME = "WELCOME",
|
|
7
7
|
EMAIL_VERIFICATION = "EMAIL_VERIFICATION",
|
|
8
|
+
VERIFICATION_CODE = "VERIFICATION_CODE",
|
|
8
9
|
PASSWORD_RESET = "PASSWORD_RESET",
|
|
9
10
|
PASSWORD_CHANGED = "PASSWORD_CHANGED",
|
|
10
11
|
LOGIN_FROM_NEW_DEVICE = "LOGIN_FROM_NEW_DEVICE",
|
|
@@ -10,6 +10,7 @@ var EmailTemplate;
|
|
|
10
10
|
// User lifecycle templates
|
|
11
11
|
EmailTemplate["WELCOME"] = "WELCOME";
|
|
12
12
|
EmailTemplate["EMAIL_VERIFICATION"] = "EMAIL_VERIFICATION";
|
|
13
|
+
EmailTemplate["VERIFICATION_CODE"] = "VERIFICATION_CODE";
|
|
13
14
|
EmailTemplate["PASSWORD_RESET"] = "PASSWORD_RESET";
|
|
14
15
|
EmailTemplate["PASSWORD_CHANGED"] = "PASSWORD_CHANGED";
|
|
15
16
|
// Account activity templates
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserDeleteAccountCompleteCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
requestId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
requestId: z.ZodString;
|
|
9
|
+
requestStatus: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
const URL: "/api/v1/users/me/delete-account/complete";
|
|
12
|
+
const METHOD = HttpMethod.POST;
|
|
13
|
+
type RequestType = z.infer<typeof Request>;
|
|
14
|
+
type ResponseType = z.infer<typeof Response>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserDeleteAccountCompleteCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const schemas_1 = require("../../verification/schemas");
|
|
7
|
+
var UserDeleteAccountCompleteCommand;
|
|
8
|
+
(function (UserDeleteAccountCompleteCommand) {
|
|
9
|
+
UserDeleteAccountCompleteCommand.Request = schemas_1.VerificationCompleteRequestSchema;
|
|
10
|
+
UserDeleteAccountCompleteCommand.Response = schemas_1.VerificationCompleteResponseSchema;
|
|
11
|
+
UserDeleteAccountCompleteCommand.URL = rest_api_1.REST_API.V1.USERS.DELETE_ACCOUNT.COMPLETE;
|
|
12
|
+
UserDeleteAccountCompleteCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
13
|
+
})(UserDeleteAccountCompleteCommand || (exports.UserDeleteAccountCompleteCommand = UserDeleteAccountCompleteCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserDeleteAccountStartCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
password: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
requestId: z.ZodString;
|
|
9
|
+
type: z.ZodEnum<typeof import("../../verification/schemas").VerificationType>;
|
|
10
|
+
status: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
11
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
12
|
+
stepId: z.ZodString;
|
|
13
|
+
channel: z.ZodEnum<typeof import("../../verification/schemas").VerificationChannel>;
|
|
14
|
+
address: z.ZodString;
|
|
15
|
+
status: z.ZodEnum<typeof import("../../verification/schemas").VerificationStepStatus>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
const URL: "/api/v1/users/me/delete-account/start";
|
|
19
|
+
const METHOD = HttpMethod.POST;
|
|
20
|
+
type RequestType = z.infer<typeof Request>;
|
|
21
|
+
type ResponseType = z.infer<typeof Response>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserDeleteAccountStartCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const schemas_1 = require("../schemas");
|
|
7
|
+
const schemas_2 = require("../../verification/schemas");
|
|
8
|
+
var UserDeleteAccountStartCommand;
|
|
9
|
+
(function (UserDeleteAccountStartCommand) {
|
|
10
|
+
UserDeleteAccountStartCommand.Request = schemas_1.DeleteAccountStartRequestSchema;
|
|
11
|
+
UserDeleteAccountStartCommand.Response = schemas_2.VerificationStartResponseSchema;
|
|
12
|
+
UserDeleteAccountStartCommand.URL = rest_api_1.REST_API.V1.USERS.DELETE_ACCOUNT.START;
|
|
13
|
+
UserDeleteAccountStartCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(UserDeleteAccountStartCommand || (exports.UserDeleteAccountStartCommand = UserDeleteAccountStartCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserDeleteAccountVerifyCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
requestId: z.ZodString;
|
|
6
|
+
stepId: z.ZodString;
|
|
7
|
+
code: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const Response: z.ZodObject<{
|
|
10
|
+
requestId: z.ZodString;
|
|
11
|
+
stepId: z.ZodString;
|
|
12
|
+
stepStatus: z.ZodEnum<typeof import("../../verification/schemas").VerificationStepStatus>;
|
|
13
|
+
requestStatus: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
const URL: "/api/v1/users/me/delete-account/verify";
|
|
16
|
+
const METHOD = HttpMethod.POST;
|
|
17
|
+
type RequestType = z.infer<typeof Request>;
|
|
18
|
+
type ResponseType = z.infer<typeof Response>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserDeleteAccountVerifyCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const schemas_1 = require("../../verification/schemas");
|
|
7
|
+
var UserDeleteAccountVerifyCommand;
|
|
8
|
+
(function (UserDeleteAccountVerifyCommand) {
|
|
9
|
+
UserDeleteAccountVerifyCommand.Request = schemas_1.VerificationVerifyRequestSchema;
|
|
10
|
+
UserDeleteAccountVerifyCommand.Response = schemas_1.VerificationVerifyResponseSchema;
|
|
11
|
+
UserDeleteAccountVerifyCommand.URL = rest_api_1.REST_API.V1.USERS.DELETE_ACCOUNT.VERIFY;
|
|
12
|
+
UserDeleteAccountVerifyCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
13
|
+
})(UserDeleteAccountVerifyCommand || (exports.UserDeleteAccountVerifyCommand = UserDeleteAccountVerifyCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserEmailChangeCompleteCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
requestId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
requestId: z.ZodString;
|
|
9
|
+
requestStatus: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
const URL: "/api/v1/users/me/email-change/complete";
|
|
12
|
+
const METHOD = HttpMethod.POST;
|
|
13
|
+
type RequestType = z.infer<typeof Request>;
|
|
14
|
+
type ResponseType = z.infer<typeof Response>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserEmailChangeCompleteCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const schemas_1 = require("../../verification/schemas");
|
|
7
|
+
var UserEmailChangeCompleteCommand;
|
|
8
|
+
(function (UserEmailChangeCompleteCommand) {
|
|
9
|
+
UserEmailChangeCompleteCommand.Request = schemas_1.VerificationCompleteRequestSchema;
|
|
10
|
+
UserEmailChangeCompleteCommand.Response = schemas_1.VerificationCompleteResponseSchema;
|
|
11
|
+
UserEmailChangeCompleteCommand.URL = rest_api_1.REST_API.V1.USERS.EMAIL_CHANGE.COMPLETE;
|
|
12
|
+
UserEmailChangeCompleteCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
13
|
+
})(UserEmailChangeCompleteCommand || (exports.UserEmailChangeCompleteCommand = UserEmailChangeCompleteCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserEmailChangeStartCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
newEmail: z.ZodEmail;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
requestId: z.ZodString;
|
|
9
|
+
type: z.ZodEnum<typeof import("../../verification/schemas").VerificationType>;
|
|
10
|
+
status: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
11
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
12
|
+
stepId: z.ZodString;
|
|
13
|
+
channel: z.ZodEnum<typeof import("../../verification/schemas").VerificationChannel>;
|
|
14
|
+
address: z.ZodString;
|
|
15
|
+
status: z.ZodEnum<typeof import("../../verification/schemas").VerificationStepStatus>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
const URL: "/api/v1/users/me/email-change/start";
|
|
19
|
+
const METHOD = HttpMethod.POST;
|
|
20
|
+
type RequestType = z.infer<typeof Request>;
|
|
21
|
+
type ResponseType = z.infer<typeof Response>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserEmailChangeStartCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const schemas_1 = require("../schemas");
|
|
7
|
+
const schemas_2 = require("../../verification/schemas");
|
|
8
|
+
var UserEmailChangeStartCommand;
|
|
9
|
+
(function (UserEmailChangeStartCommand) {
|
|
10
|
+
UserEmailChangeStartCommand.Request = schemas_1.EmailChangeStartRequestSchema;
|
|
11
|
+
UserEmailChangeStartCommand.Response = schemas_2.VerificationStartResponseSchema;
|
|
12
|
+
UserEmailChangeStartCommand.URL = rest_api_1.REST_API.V1.USERS.EMAIL_CHANGE.START;
|
|
13
|
+
UserEmailChangeStartCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(UserEmailChangeStartCommand || (exports.UserEmailChangeStartCommand = UserEmailChangeStartCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserEmailChangeVerifyCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
requestId: z.ZodString;
|
|
6
|
+
stepId: z.ZodString;
|
|
7
|
+
code: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const Response: z.ZodObject<{
|
|
10
|
+
requestId: z.ZodString;
|
|
11
|
+
stepId: z.ZodString;
|
|
12
|
+
stepStatus: z.ZodEnum<typeof import("../../verification/schemas").VerificationStepStatus>;
|
|
13
|
+
requestStatus: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
const URL: "/api/v1/users/me/email-change/verify";
|
|
16
|
+
const METHOD = HttpMethod.POST;
|
|
17
|
+
type RequestType = z.infer<typeof Request>;
|
|
18
|
+
type ResponseType = z.infer<typeof Response>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserEmailChangeVerifyCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const schemas_1 = require("../../verification/schemas");
|
|
7
|
+
var UserEmailChangeVerifyCommand;
|
|
8
|
+
(function (UserEmailChangeVerifyCommand) {
|
|
9
|
+
UserEmailChangeVerifyCommand.Request = schemas_1.VerificationVerifyRequestSchema;
|
|
10
|
+
UserEmailChangeVerifyCommand.Response = schemas_1.VerificationVerifyResponseSchema;
|
|
11
|
+
UserEmailChangeVerifyCommand.URL = rest_api_1.REST_API.V1.USERS.EMAIL_CHANGE.VERIFY;
|
|
12
|
+
UserEmailChangeVerifyCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
13
|
+
})(UserEmailChangeVerifyCommand || (exports.UserEmailChangeVerifyCommand = UserEmailChangeVerifyCommand = {}));
|
|
@@ -2,3 +2,12 @@ export * from './update-profile.command';
|
|
|
2
2
|
export * from './change-password.command';
|
|
3
3
|
export * from './toggle-marketing-consent.command';
|
|
4
4
|
export * from './delete-account.command';
|
|
5
|
+
export * from './email-change-start.command';
|
|
6
|
+
export * from './email-change-verify.command';
|
|
7
|
+
export * from './email-change-complete.command';
|
|
8
|
+
export * from './delete-account-start.command';
|
|
9
|
+
export * from './delete-account-verify.command';
|
|
10
|
+
export * from './delete-account-complete.command';
|
|
11
|
+
export * from './password-change-start.command';
|
|
12
|
+
export * from './password-change-verify.command';
|
|
13
|
+
export * from './password-change-complete.command';
|
|
@@ -18,3 +18,12 @@ __exportStar(require("./update-profile.command"), exports);
|
|
|
18
18
|
__exportStar(require("./change-password.command"), exports);
|
|
19
19
|
__exportStar(require("./toggle-marketing-consent.command"), exports);
|
|
20
20
|
__exportStar(require("./delete-account.command"), exports);
|
|
21
|
+
__exportStar(require("./email-change-start.command"), exports);
|
|
22
|
+
__exportStar(require("./email-change-verify.command"), exports);
|
|
23
|
+
__exportStar(require("./email-change-complete.command"), exports);
|
|
24
|
+
__exportStar(require("./delete-account-start.command"), exports);
|
|
25
|
+
__exportStar(require("./delete-account-verify.command"), exports);
|
|
26
|
+
__exportStar(require("./delete-account-complete.command"), exports);
|
|
27
|
+
__exportStar(require("./password-change-start.command"), exports);
|
|
28
|
+
__exportStar(require("./password-change-verify.command"), exports);
|
|
29
|
+
__exportStar(require("./password-change-complete.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserPasswordChangeCompleteCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
requestId: z.ZodString;
|
|
6
|
+
newPassword: z.ZodString;
|
|
7
|
+
logoutOtherSessions: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const Response: z.ZodObject<{
|
|
10
|
+
requestId: z.ZodString;
|
|
11
|
+
requestStatus: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
const URL: "/api/v1/users/me/password/change/complete";
|
|
14
|
+
const METHOD = HttpMethod.POST;
|
|
15
|
+
type RequestType = z.infer<typeof Request>;
|
|
16
|
+
type ResponseType = z.infer<typeof Response>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserPasswordChangeCompleteCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const schemas_1 = require("../../verification/schemas");
|
|
7
|
+
const schemas_2 = require("../schemas");
|
|
8
|
+
var UserPasswordChangeCompleteCommand;
|
|
9
|
+
(function (UserPasswordChangeCompleteCommand) {
|
|
10
|
+
UserPasswordChangeCompleteCommand.Request = schemas_2.PasswordChangeCompleteRequestSchema;
|
|
11
|
+
UserPasswordChangeCompleteCommand.Response = schemas_1.VerificationCompleteResponseSchema;
|
|
12
|
+
UserPasswordChangeCompleteCommand.URL = rest_api_1.REST_API.V1.USERS.PASSWORD_CHANGE.COMPLETE;
|
|
13
|
+
UserPasswordChangeCompleteCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(UserPasswordChangeCompleteCommand || (exports.UserPasswordChangeCompleteCommand = UserPasswordChangeCompleteCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserPasswordChangeStartCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
oldPassword: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
requestId: z.ZodString;
|
|
9
|
+
type: z.ZodEnum<typeof import("../../verification/schemas").VerificationType>;
|
|
10
|
+
status: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
11
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
12
|
+
stepId: z.ZodString;
|
|
13
|
+
channel: z.ZodEnum<typeof import("../../verification/schemas").VerificationChannel>;
|
|
14
|
+
address: z.ZodString;
|
|
15
|
+
status: z.ZodEnum<typeof import("../../verification/schemas").VerificationStepStatus>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
const URL: "/api/v1/users/me/password/change/start";
|
|
19
|
+
const METHOD = HttpMethod.POST;
|
|
20
|
+
type RequestType = z.infer<typeof Request>;
|
|
21
|
+
type ResponseType = z.infer<typeof Response>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserPasswordChangeStartCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const schemas_1 = require("../schemas");
|
|
7
|
+
const schemas_2 = require("../../verification/schemas");
|
|
8
|
+
var UserPasswordChangeStartCommand;
|
|
9
|
+
(function (UserPasswordChangeStartCommand) {
|
|
10
|
+
UserPasswordChangeStartCommand.Request = schemas_1.PasswordChangeStartRequestSchema;
|
|
11
|
+
UserPasswordChangeStartCommand.Response = schemas_2.VerificationStartResponseSchema;
|
|
12
|
+
UserPasswordChangeStartCommand.URL = rest_api_1.REST_API.V1.USERS.PASSWORD_CHANGE.START;
|
|
13
|
+
UserPasswordChangeStartCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(UserPasswordChangeStartCommand || (exports.UserPasswordChangeStartCommand = UserPasswordChangeStartCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserPasswordChangeVerifyCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
requestId: z.ZodString;
|
|
6
|
+
stepId: z.ZodString;
|
|
7
|
+
code: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const Response: z.ZodObject<{
|
|
10
|
+
requestId: z.ZodString;
|
|
11
|
+
stepId: z.ZodString;
|
|
12
|
+
stepStatus: z.ZodEnum<typeof import("../../verification/schemas").VerificationStepStatus>;
|
|
13
|
+
requestStatus: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
const URL: "/api/v1/users/me/password/change/verify";
|
|
16
|
+
const METHOD = HttpMethod.POST;
|
|
17
|
+
type RequestType = z.infer<typeof Request>;
|
|
18
|
+
type ResponseType = z.infer<typeof Response>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserPasswordChangeVerifyCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const schemas_1 = require("../../verification/schemas");
|
|
7
|
+
var UserPasswordChangeVerifyCommand;
|
|
8
|
+
(function (UserPasswordChangeVerifyCommand) {
|
|
9
|
+
UserPasswordChangeVerifyCommand.Request = schemas_1.VerificationVerifyRequestSchema;
|
|
10
|
+
UserPasswordChangeVerifyCommand.Response = schemas_1.VerificationVerifyResponseSchema;
|
|
11
|
+
UserPasswordChangeVerifyCommand.URL = rest_api_1.REST_API.V1.USERS.PASSWORD_CHANGE.VERIFY;
|
|
12
|
+
UserPasswordChangeVerifyCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
13
|
+
})(UserPasswordChangeVerifyCommand || (exports.UserPasswordChangeVerifyCommand = UserPasswordChangeVerifyCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UserDeleteAccountStatusQuery {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
requestId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const Response: z.ZodObject<{
|
|
8
|
+
requestId: z.ZodString;
|
|
9
|
+
type: z.ZodEnum<typeof import("../../verification/schemas").VerificationType>;
|
|
10
|
+
status: z.ZodEnum<typeof import("../../verification/schemas").VerificationRequestStatus>;
|
|
11
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
12
|
+
stepId: z.ZodString;
|
|
13
|
+
channel: z.ZodEnum<typeof import("../../verification/schemas").VerificationChannel>;
|
|
14
|
+
address: z.ZodString;
|
|
15
|
+
status: z.ZodEnum<typeof import("../../verification/schemas").VerificationStepStatus>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
const URL: "/api/v1/users/me/delete-account/status";
|
|
19
|
+
const METHOD = HttpMethod.GET;
|
|
20
|
+
type RequestType = z.infer<typeof Request>;
|
|
21
|
+
type ResponseType = z.infer<typeof Response>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserDeleteAccountStatusQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const rest_api_1 = require("../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
const schemas_1 = require("../../verification/schemas");
|
|
8
|
+
var UserDeleteAccountStatusQuery;
|
|
9
|
+
(function (UserDeleteAccountStatusQuery) {
|
|
10
|
+
UserDeleteAccountStatusQuery.Request = zod_1.z.object({
|
|
11
|
+
requestId: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
UserDeleteAccountStatusQuery.Response = schemas_1.VerificationStatusResponseSchema;
|
|
14
|
+
UserDeleteAccountStatusQuery.URL = rest_api_1.REST_API.V1.USERS.DELETE_ACCOUNT.STATUS;
|
|
15
|
+
UserDeleteAccountStatusQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
16
|
+
})(UserDeleteAccountStatusQuery || (exports.UserDeleteAccountStatusQuery = UserDeleteAccountStatusQuery = {}));
|