@purpleschool/gptbot 0.7.43 → 0.7.45

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.
@@ -5,4 +5,6 @@ var SIGNUP_METHOD;
5
5
  (function (SIGNUP_METHOD) {
6
6
  SIGNUP_METHOD["WEBSITE"] = "website";
7
7
  SIGNUP_METHOD["TELEGRAM"] = "telegram";
8
+ SIGNUP_METHOD["VK"] = "vk";
9
+ SIGNUP_METHOD["YANDEX"] = "yandex";
8
10
  })(SIGNUP_METHOD || (exports.SIGNUP_METHOD = SIGNUP_METHOD = {}));
@@ -5,3 +5,5 @@ export * from './reset-password.command';
5
5
  export * from './restore-password.command';
6
6
  export * from './verify-email-retry.command';
7
7
  export * from './verify-email.command';
8
+ export * from './vk-login.command';
9
+ export * from './yandex-login.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace VKLoginCommand {
4
+ export const RequestSchema = z.object({
5
+ code: z.string(),
6
+ code_verifier: z.string(),
7
+ device_id: z.string(),
8
+ state: z.string(),
9
+ });
10
+
11
+ export type Request = z.infer<typeof RequestSchema>;
12
+
13
+ export const ResponseSchema = z.object({
14
+ data: z.object({
15
+ accessToken: z.string(),
16
+ }),
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace YandexLoginCommand {
4
+ export const RequestSchema = z.object({
5
+ code: z.string(),
6
+ });
7
+
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const ResponseSchema = z.object({
11
+ data: z.object({
12
+ accessToken: z.string(),
13
+ }),
14
+ });
15
+ export type Response = z.infer<typeof ResponseSchema>;
16
+ }
@@ -2,3 +2,4 @@ export * from './create-image-message.command';
2
2
  export * from './create-text-message.command';
3
3
  export * from './find-message-by-uuid.command';
4
4
  export * from './rate-message.command';
5
+ export * from './create-suggestions.command';