@veruna/api-contracts 1.0.29 → 1.0.31
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/chat/commands/create-unreg-chat.command.d.ts +11 -0
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +11 -0
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +11 -0
- package/build/v1/index.d.ts +1 -0
- package/build/v1/index.js +1 -0
- package/build/v1/message/schemas/index.d.ts +1 -0
- package/build/v1/message/schemas/index.js +5 -1
- package/build/v1/message/schemas/message-meta.schema.d.ts +36 -0
- package/build/v1/message/schemas/message-meta.schema.js +29 -0
- package/build/v1/message/schemas/message-response.schema.d.ts +11 -0
- package/build/v1/message/schemas/message-response.schema.js +2 -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
|
};
|
|
@@ -21,6 +21,17 @@ export declare namespace CreateUnregChatCommand {
|
|
|
21
21
|
content: z.ZodString;
|
|
22
22
|
aiModelId: z.ZodNullable<z.ZodString>;
|
|
23
23
|
userRating: z.ZodNullable<z.ZodEnum<typeof import("../..").UserRating>>;
|
|
24
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
content: z.ZodString;
|
|
27
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
type: z.ZodString;
|
|
29
|
+
summary: z.ZodString;
|
|
30
|
+
format: z.ZodOptional<z.ZodString>;
|
|
31
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
24
35
|
createdAt: z.ZodString;
|
|
25
36
|
updatedAt: z.ZodString;
|
|
26
37
|
}, z.core.$strip>>;
|
|
@@ -21,6 +21,17 @@ export declare namespace GetUnregChatQuery {
|
|
|
21
21
|
content: z.ZodString;
|
|
22
22
|
aiModelId: z.ZodNullable<z.ZodString>;
|
|
23
23
|
userRating: z.ZodNullable<z.ZodEnum<typeof import("../..").UserRating>>;
|
|
24
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
content: z.ZodString;
|
|
27
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
type: z.ZodString;
|
|
29
|
+
summary: z.ZodString;
|
|
30
|
+
format: z.ZodOptional<z.ZodString>;
|
|
31
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
24
35
|
createdAt: z.ZodString;
|
|
25
36
|
updatedAt: z.ZodString;
|
|
26
37
|
}, z.core.$strip>>;
|
|
@@ -15,6 +15,17 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
|
|
|
15
15
|
content: z.ZodString;
|
|
16
16
|
aiModelId: z.ZodNullable<z.ZodString>;
|
|
17
17
|
userRating: z.ZodNullable<z.ZodEnum<typeof import("../..").UserRating>>;
|
|
18
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
content: z.ZodString;
|
|
21
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
type: z.ZodString;
|
|
23
|
+
summary: z.ZodString;
|
|
24
|
+
format: z.ZodOptional<z.ZodString>;
|
|
25
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
18
29
|
createdAt: z.ZodString;
|
|
19
30
|
updatedAt: z.ZodString;
|
|
20
31
|
}, z.core.$strip>>;
|
package/build/v1/index.d.ts
CHANGED
package/build/v1/index.js
CHANGED
|
@@ -5,3 +5,4 @@ export { CreateMessageRequestSchema } from './create-message-request.schema';
|
|
|
5
5
|
export { CreateMessageResponseSchema } from './create-message-response.schema';
|
|
6
6
|
export { MessageResponseSchema } from './message-response.schema';
|
|
7
7
|
export { StreamEventType, StreamEventSchema, StreamChunkEventSchema, StreamReasoningEventSchema, StreamDoneEventSchema, StreamErrorEventSchema, } from './stream-events.schema';
|
|
8
|
+
export { MessageMetaSchema, ReasoningMetaSchema, ReasoningDetailSchema, } from './message-meta.schema';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamErrorEventSchema = exports.StreamDoneEventSchema = exports.StreamReasoningEventSchema = exports.StreamChunkEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = void 0;
|
|
3
|
+
exports.ReasoningDetailSchema = exports.ReasoningMetaSchema = exports.MessageMetaSchema = exports.StreamErrorEventSchema = exports.StreamDoneEventSchema = exports.StreamReasoningEventSchema = exports.StreamChunkEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = void 0;
|
|
4
4
|
var message_role_enum_1 = require("./message-role.enum");
|
|
5
5
|
Object.defineProperty(exports, "MessageRole", { enumerable: true, get: function () { return message_role_enum_1.MessageRole; } });
|
|
6
6
|
var message_status_enum_1 = require("./message-status.enum");
|
|
@@ -20,3 +20,7 @@ Object.defineProperty(exports, "StreamChunkEventSchema", { enumerable: true, get
|
|
|
20
20
|
Object.defineProperty(exports, "StreamReasoningEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamReasoningEventSchema; } });
|
|
21
21
|
Object.defineProperty(exports, "StreamDoneEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamDoneEventSchema; } });
|
|
22
22
|
Object.defineProperty(exports, "StreamErrorEventSchema", { enumerable: true, get: function () { return stream_events_schema_1.StreamErrorEventSchema; } });
|
|
23
|
+
var message_meta_schema_1 = require("./message-meta.schema");
|
|
24
|
+
Object.defineProperty(exports, "MessageMetaSchema", { enumerable: true, get: function () { return message_meta_schema_1.MessageMetaSchema; } });
|
|
25
|
+
Object.defineProperty(exports, "ReasoningMetaSchema", { enumerable: true, get: function () { return message_meta_schema_1.ReasoningMetaSchema; } });
|
|
26
|
+
Object.defineProperty(exports, "ReasoningDetailSchema", { enumerable: true, get: function () { return message_meta_schema_1.ReasoningDetailSchema; } });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Reasoning detail from AI model (e.g., Claude extended thinking)
|
|
4
|
+
*/
|
|
5
|
+
export declare const ReasoningDetailSchema: z.ZodObject<{
|
|
6
|
+
type: z.ZodString;
|
|
7
|
+
summary: z.ZodString;
|
|
8
|
+
format: z.ZodOptional<z.ZodString>;
|
|
9
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
/**
|
|
12
|
+
* Reasoning metadata - model's thinking process
|
|
13
|
+
*/
|
|
14
|
+
export declare const ReasoningMetaSchema: z.ZodObject<{
|
|
15
|
+
content: z.ZodString;
|
|
16
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
+
type: z.ZodString;
|
|
18
|
+
summary: z.ZodString;
|
|
19
|
+
format: z.ZodOptional<z.ZodString>;
|
|
20
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strip>>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
/**
|
|
24
|
+
* Message metadata - extensible structure for additional message data
|
|
25
|
+
*/
|
|
26
|
+
export declare const MessageMetaSchema: z.ZodObject<{
|
|
27
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
content: z.ZodString;
|
|
29
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
30
|
+
type: z.ZodString;
|
|
31
|
+
summary: z.ZodString;
|
|
32
|
+
format: z.ZodOptional<z.ZodString>;
|
|
33
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageMetaSchema = exports.ReasoningMetaSchema = exports.ReasoningDetailSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Reasoning detail from AI model (e.g., Claude extended thinking)
|
|
7
|
+
*/
|
|
8
|
+
exports.ReasoningDetailSchema = zod_1.z.object({
|
|
9
|
+
type: zod_1.z.string(),
|
|
10
|
+
summary: zod_1.z.string(),
|
|
11
|
+
format: zod_1.z.string().optional(),
|
|
12
|
+
index: zod_1.z.number().int().nonnegative().optional(),
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* Reasoning metadata - model's thinking process
|
|
16
|
+
*/
|
|
17
|
+
exports.ReasoningMetaSchema = zod_1.z.object({
|
|
18
|
+
/** Full reasoning text (accumulated from stream chunks) */
|
|
19
|
+
content: zod_1.z.string(),
|
|
20
|
+
/** Structured reasoning details */
|
|
21
|
+
details: zod_1.z.array(exports.ReasoningDetailSchema).optional(),
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Message metadata - extensible structure for additional message data
|
|
25
|
+
*/
|
|
26
|
+
exports.MessageMetaSchema = zod_1.z.object({
|
|
27
|
+
/** AI model reasoning/thinking (for models that support extended thinking) */
|
|
28
|
+
reasoning: exports.ReasoningMetaSchema.optional(),
|
|
29
|
+
});
|
|
@@ -9,6 +9,17 @@ export declare const MessageResponseSchema: z.ZodObject<{
|
|
|
9
9
|
content: z.ZodString;
|
|
10
10
|
aiModelId: z.ZodNullable<z.ZodString>;
|
|
11
11
|
userRating: z.ZodNullable<z.ZodEnum<typeof UserRating>>;
|
|
12
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
content: z.ZodString;
|
|
15
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
+
type: z.ZodString;
|
|
17
|
+
summary: z.ZodString;
|
|
18
|
+
format: z.ZodOptional<z.ZodString>;
|
|
19
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
12
23
|
createdAt: z.ZodString;
|
|
13
24
|
updatedAt: z.ZodString;
|
|
14
25
|
}, z.core.$strip>;
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const message_role_enum_1 = require("./message-role.enum");
|
|
6
6
|
const message_status_enum_1 = require("./message-status.enum");
|
|
7
7
|
const user_rating_enum_1 = require("./user-rating.enum");
|
|
8
|
+
const message_meta_schema_1 = require("./message-meta.schema");
|
|
8
9
|
exports.MessageResponseSchema = zod_1.z.object({
|
|
9
10
|
uuid: zod_1.z.string().uuid(),
|
|
10
11
|
role: zod_1.z.nativeEnum(message_role_enum_1.MessageRole),
|
|
@@ -12,6 +13,7 @@ exports.MessageResponseSchema = zod_1.z.object({
|
|
|
12
13
|
content: zod_1.z.string(),
|
|
13
14
|
aiModelId: zod_1.z.string().uuid().nullable(),
|
|
14
15
|
userRating: zod_1.z.nativeEnum(user_rating_enum_1.UserRating).nullable(),
|
|
16
|
+
meta: message_meta_schema_1.MessageMetaSchema.nullable(),
|
|
15
17
|
createdAt: zod_1.z.string(),
|
|
16
18
|
updatedAt: zod_1.z.string(),
|
|
17
19
|
});
|
|
@@ -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 = {}));
|