@purpleschool/gptbot 0.19.6 → 0.19.8-stage-2

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.
Files changed (49) hide show
  1. package/build/api/controllers/http/greetings.d.ts +24 -0
  2. package/build/api/controllers/http/greetings.js +28 -0
  3. package/build/api/controllers/http/index.d.ts +1 -0
  4. package/build/api/controllers/http/index.js +1 -0
  5. package/build/commands/content-report/create-content-report.command.d.ts +2 -0
  6. package/build/commands/content-report/find-content-reports.query.d.ts +2 -0
  7. package/build/commands/content-report/update-content-report-status.command.d.ts +1 -0
  8. package/build/commands/message/create-text-message.command.js +1 -1
  9. package/build/commands/tools/greetings/index.d.ts +2 -0
  10. package/build/commands/tools/greetings/index.js +18 -0
  11. package/build/commands/tools/greetings/requests.d.ts +130 -0
  12. package/build/commands/tools/greetings/requests.js +34 -0
  13. package/build/commands/tools/greetings/responses.d.ts +251 -0
  14. package/build/commands/tools/greetings/responses.js +29 -0
  15. package/build/commands/tools/index.d.ts +1 -0
  16. package/build/commands/tools/index.js +1 -0
  17. package/build/constants/ai-model/enums/ai-text-provider-status.enum.d.ts +4 -0
  18. package/build/constants/ai-model/enums/ai-text-provider-status.enum.js +8 -0
  19. package/build/constants/ai-model/enums/ai-text-provider.enum.d.ts +5 -0
  20. package/build/constants/ai-model/enums/ai-text-provider.enum.js +9 -0
  21. package/build/constants/ai-model/enums/index.d.ts +2 -0
  22. package/build/constants/ai-model/enums/index.js +2 -0
  23. package/build/constants/cabinet/enums/statistics-request-type.enum.d.ts +1 -0
  24. package/build/constants/cabinet/enums/statistics-request-type.enum.js +1 -0
  25. package/build/constants/content-report/enums/content-report-target-type.enum.d.ts +1 -0
  26. package/build/constants/tool/enums/greetings-kind.enum.d.ts +12 -0
  27. package/build/constants/tool/enums/greetings-kind.enum.js +17 -0
  28. package/build/constants/tool/enums/index.d.ts +1 -0
  29. package/build/constants/tool/enums/index.js +1 -0
  30. package/build/constants/tool/enums/tool-content-type.enum.d.ts +1 -0
  31. package/build/constants/tool/enums/tool-content-type.enum.js +1 -0
  32. package/build/greetings/index.d.ts +4 -0
  33. package/build/greetings/index.js +20 -0
  34. package/build/index.d.ts +1 -0
  35. package/build/index.js +1 -0
  36. package/build/models/content-report.schema.d.ts +1 -0
  37. package/build/models/tools/greetings/greeting-config.schema.d.ts +70 -0
  38. package/build/models/tools/greetings/greeting-config.schema.js +35 -0
  39. package/build/models/tools/greetings/greeting-input.schema.d.ts +49 -0
  40. package/build/models/tools/greetings/greeting-input.schema.js +27 -0
  41. package/build/models/tools/greetings/greeting-job.schema.d.ts +94 -0
  42. package/build/models/tools/greetings/greeting-job.schema.js +23 -0
  43. package/build/models/tools/greetings/greeting-result.schema.d.ts +43 -0
  44. package/build/models/tools/greetings/greeting-result.schema.js +32 -0
  45. package/build/models/tools/greetings/index.d.ts +4 -0
  46. package/build/models/tools/greetings/index.js +20 -0
  47. package/build/models/tools/index.d.ts +1 -0
  48. package/build/models/tools/index.js +1 -0
  49. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ export declare const GREETINGS_CONTROLLER_PRIVATE = "private/tools/greetings";
2
+ export declare const GREETINGS_CONTROLLER_PUBLIC = "public/tools/greetings";
3
+ export declare const GREETINGS_HTTP_ROUTES: {
4
+ readonly CONFIG: 'config';
5
+ readonly PRICE: 'price';
6
+ readonly EXECUTE: 'execute';
7
+ readonly JOBS: 'jobs';
8
+ readonly JOB: 'jobs/:uuid';
9
+ readonly RETRY: 'jobs/:uuid/retry';
10
+ readonly FAVORITE: 'jobs/:uuid/favorite';
11
+ readonly TITLE: 'jobs/:uuid/title';
12
+ readonly REACTION: 'jobs/:uuid/reaction';
13
+ };
14
+ export declare const GREETINGS_API_ROUTES: (scope: 'private' | 'public') => {
15
+ CONFIG: string;
16
+ PRICE: string;
17
+ EXECUTE: string;
18
+ JOBS: string;
19
+ JOB: (uuid: string) => string;
20
+ RETRY: (uuid: string) => string;
21
+ FAVORITE: (uuid: string) => string;
22
+ TITLE: (uuid: string) => string;
23
+ REACTION: (uuid: string) => string;
24
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GREETINGS_API_ROUTES = exports.GREETINGS_HTTP_ROUTES = exports.GREETINGS_CONTROLLER_PUBLIC = exports.GREETINGS_CONTROLLER_PRIVATE = void 0;
4
+ exports.GREETINGS_CONTROLLER_PRIVATE = 'private/tools/greetings';
5
+ exports.GREETINGS_CONTROLLER_PUBLIC = 'public/tools/greetings';
6
+ exports.GREETINGS_HTTP_ROUTES = {
7
+ CONFIG: 'config',
8
+ PRICE: 'price',
9
+ EXECUTE: 'execute',
10
+ JOBS: 'jobs',
11
+ JOB: 'jobs/:uuid',
12
+ RETRY: 'jobs/:uuid/retry',
13
+ FAVORITE: 'jobs/:uuid/favorite',
14
+ TITLE: 'jobs/:uuid/title',
15
+ REACTION: 'jobs/:uuid/reaction',
16
+ };
17
+ const GREETINGS_API_ROUTES = (scope) => ({
18
+ CONFIG: `/api/${scope}/tools/greetings/config`,
19
+ PRICE: `/api/${scope}/tools/greetings/price`,
20
+ EXECUTE: `/api/${scope}/tools/greetings/execute`,
21
+ JOBS: `/api/${scope}/tools/greetings/jobs`,
22
+ JOB: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}`,
23
+ RETRY: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}/retry`,
24
+ FAVORITE: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}/favorite`,
25
+ TITLE: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}/title`,
26
+ REACTION: (uuid) => `/api/${scope}/tools/greetings/jobs/${uuid}/reaction`,
27
+ });
28
+ exports.GREETINGS_API_ROUTES = GREETINGS_API_ROUTES;
@@ -87,3 +87,4 @@ export * from './photo-session';
87
87
  export * from './photo-studio';
88
88
  export * from './canvas-template';
89
89
  export * from './app-login';
90
+ export * from './greetings';
@@ -103,3 +103,4 @@ __exportStar(require("./photo-session"), exports);
103
103
  __exportStar(require("./photo-studio"), exports);
104
104
  __exportStar(require("./canvas-template"), exports);
105
105
  __exportStar(require("./app-login"), exports);
106
+ __exportStar(require("./greetings"), exports);
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare namespace CreateContentReportCommand {
3
3
  const RequestSchema: z.ZodObject<{
4
4
  contentType: z.ZodEnum<{
5
+ readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
5
6
  readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
6
7
  readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
7
8
  readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
@@ -33,6 +34,7 @@ export declare namespace CreateContentReportCommand {
33
34
  uuid: z.ZodUUID;
34
35
  userId: z.ZodUUID;
35
36
  contentType: z.ZodEnum<{
37
+ readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
36
38
  readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
37
39
  readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
38
40
  readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
@@ -4,6 +4,7 @@ export declare namespace FindContentReportsQuery {
4
4
  const RequestQuerySchema: z.ZodObject<{
5
5
  status: z.ZodOptional<z.ZodEnum<typeof CONTENT_REPORT_STATUS>>;
6
6
  contentType: z.ZodOptional<z.ZodEnum<{
7
+ readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
7
8
  readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
8
9
  readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
9
10
  readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
@@ -34,6 +35,7 @@ export declare namespace FindContentReportsQuery {
34
35
  uuid: z.ZodUUID;
35
36
  userId: z.ZodUUID;
36
37
  contentType: z.ZodEnum<{
38
+ readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
37
39
  readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
38
40
  readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
39
41
  readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
@@ -14,6 +14,7 @@ export declare namespace UpdateContentReportStatusCommand {
14
14
  uuid: z.ZodUUID;
15
15
  userId: z.ZodUUID;
16
16
  contentType: z.ZodEnum<{
17
+ readonly GREETINGS: import("../..").TOOL_CONTENT_TYPE.GREETINGS;
17
18
  readonly IMAGE_EDITOR: import("../..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
18
19
  readonly IMAGE_GENERATION: import("../..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
19
20
  readonly TEXT_TO_SPEECH: import("../..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
@@ -7,7 +7,7 @@ const zod_1 = require("zod");
7
7
  var CreateTextMessageCommand;
8
8
  (function (CreateTextMessageCommand) {
9
9
  CreateTextMessageCommand.RequestSchema = zod_1.z.object({
10
- text: zod_1.z.string().min(1),
10
+ text: zod_1.z.string().refine((text) => text.trim().length > 0),
11
11
  files: zod_1.z.array(zod_1.z.uuid()).optional().default([]),
12
12
  features: zod_1.z.array(zod_1.z.enum(constants_1.AI_MODEL_FEATURE)).optional().default([]),
13
13
  aiModelId: zod_1.z.uuid(),
@@ -0,0 +1,2 @@
1
+ export * from './requests';
2
+ export * from './responses';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
18
+ __exportStar(require("./responses"), exports);
@@ -0,0 +1,130 @@
1
+ import { z } from 'zod';
2
+ import { JOB_SORT, USER_REACTION } from '../../../constants';
3
+ export declare const GreetingsExecuteBodySchema: z.ZodObject<{
4
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ modelId: z.ZodUUID;
6
+ prompt: z.ZodString;
7
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
8
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.TEXT>;
9
+ settings: z.ZodObject<{
10
+ lengthId: z.ZodUUID;
11
+ formatId: z.ZodUUID;
12
+ }, z.core.$strict>;
13
+ }, z.core.$strict>, z.ZodObject<{
14
+ modelId: z.ZodUUID;
15
+ prompt: z.ZodString;
16
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
17
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.SONG>;
18
+ settings: z.ZodObject<{
19
+ styleId: z.ZodOptional<z.ZodUUID>;
20
+ customStyle: z.ZodOptional<z.ZodString>;
21
+ voice: z.ZodDefault<z.ZodEnum<{
22
+ f: "f";
23
+ m: "m";
24
+ }>>;
25
+ }, z.core.$strict>;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ modelId: z.ZodUUID;
28
+ prompt: z.ZodString;
29
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
30
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.VIDEO>;
31
+ settings: z.ZodObject<{
32
+ styleId: z.ZodOptional<z.ZodUUID>;
33
+ customStyle: z.ZodOptional<z.ZodString>;
34
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
35
+ duration: z.ZodInt;
36
+ }, z.core.$strict>;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ modelId: z.ZodUUID;
39
+ prompt: z.ZodString;
40
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
41
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.IMAGE>;
42
+ settings: z.ZodObject<{
43
+ styleId: z.ZodOptional<z.ZodUUID>;
44
+ customStyle: z.ZodOptional<z.ZodString>;
45
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
46
+ aspectRatio: z.ZodString;
47
+ }, z.core.$strict>;
48
+ }, z.core.$strict>], "kind">;
49
+ operationId: z.ZodUUID;
50
+ expectedPrice: z.ZodInt;
51
+ mock: z.ZodOptional<z.ZodBoolean>;
52
+ }, z.core.$strict>;
53
+ export declare const GreetingsPriceBodySchema: z.ZodObject<{
54
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
55
+ modelId: z.ZodUUID;
56
+ prompt: z.ZodString;
57
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
58
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.TEXT>;
59
+ settings: z.ZodObject<{
60
+ lengthId: z.ZodUUID;
61
+ formatId: z.ZodUUID;
62
+ }, z.core.$strict>;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ modelId: z.ZodUUID;
65
+ prompt: z.ZodString;
66
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
67
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.SONG>;
68
+ settings: z.ZodObject<{
69
+ styleId: z.ZodOptional<z.ZodUUID>;
70
+ customStyle: z.ZodOptional<z.ZodString>;
71
+ voice: z.ZodDefault<z.ZodEnum<{
72
+ f: "f";
73
+ m: "m";
74
+ }>>;
75
+ }, z.core.$strict>;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ modelId: z.ZodUUID;
78
+ prompt: z.ZodString;
79
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
80
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.VIDEO>;
81
+ settings: z.ZodObject<{
82
+ styleId: z.ZodOptional<z.ZodUUID>;
83
+ customStyle: z.ZodOptional<z.ZodString>;
84
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
85
+ duration: z.ZodInt;
86
+ }, z.core.$strict>;
87
+ }, z.core.$strict>, z.ZodObject<{
88
+ modelId: z.ZodUUID;
89
+ prompt: z.ZodString;
90
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
91
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.IMAGE>;
92
+ settings: z.ZodObject<{
93
+ styleId: z.ZodOptional<z.ZodUUID>;
94
+ customStyle: z.ZodOptional<z.ZodString>;
95
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
96
+ aspectRatio: z.ZodString;
97
+ }, z.core.$strict>;
98
+ }, z.core.$strict>], "kind">;
99
+ }, z.core.$strict>;
100
+ export declare const GreetingsRetryBodySchema: z.ZodObject<{
101
+ operationId: z.ZodUUID;
102
+ expectedPrice: z.ZodInt;
103
+ mock: z.ZodOptional<z.ZodBoolean>;
104
+ }, z.core.$strict>;
105
+ export declare const GreetingsJobParamsSchema: z.ZodObject<{
106
+ uuid: z.ZodUUID;
107
+ }, z.core.$strip>;
108
+ export declare const GreetingsListQuerySchema: z.ZodObject<{
109
+ cursor: z.ZodOptional<z.ZodString>;
110
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
111
+ search: z.ZodOptional<z.ZodString>;
112
+ createdAtSortOrder: z.ZodDefault<z.ZodEnum<typeof JOB_SORT>>;
113
+ favorite: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
114
+ false: "false";
115
+ true: "true";
116
+ }>, z.ZodTransform<boolean, "false" | "true">>>;
117
+ }, z.core.$strip>;
118
+ export type GreetingsListQuery = z.infer<typeof GreetingsListQuerySchema>;
119
+ export declare const GreetingsFavoriteBodySchema: z.ZodObject<{
120
+ isFavorite: z.ZodBoolean;
121
+ }, z.core.$strict>;
122
+ export declare const GreetingsTitleBodySchema: z.ZodObject<{
123
+ title: z.ZodString;
124
+ }, z.core.$strict>;
125
+ export declare const GreetingsReactionBodySchema: z.ZodObject<{
126
+ reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
127
+ }, z.core.$strict>;
128
+ export type GreetingsExecuteBody = z.infer<typeof GreetingsExecuteBodySchema>;
129
+ export type GreetingsRetryBody = z.infer<typeof GreetingsRetryBodySchema>;
130
+ export type GreetingsInput = GreetingsExecuteBody['input'];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GreetingsReactionBodySchema = exports.GreetingsTitleBodySchema = exports.GreetingsFavoriteBodySchema = exports.GreetingsListQuerySchema = exports.GreetingsJobParamsSchema = exports.GreetingsRetryBodySchema = exports.GreetingsPriceBodySchema = exports.GreetingsExecuteBodySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const greetings_1 = require("../../../models/tools/greetings");
6
+ const constants_1 = require("../../../constants");
7
+ exports.GreetingsExecuteBodySchema = zod_1.z.strictObject({
8
+ input: greetings_1.GreetingInputSchema,
9
+ operationId: zod_1.z.uuid(),
10
+ expectedPrice: zod_1.z.int().positive(),
11
+ mock: zod_1.z.boolean().optional(),
12
+ });
13
+ exports.GreetingsPriceBodySchema = zod_1.z.strictObject({ input: greetings_1.GreetingInputSchema });
14
+ exports.GreetingsRetryBodySchema = zod_1.z.strictObject({
15
+ operationId: zod_1.z.uuid(),
16
+ expectedPrice: zod_1.z.int().positive(),
17
+ mock: zod_1.z.boolean().optional(),
18
+ });
19
+ exports.GreetingsJobParamsSchema = zod_1.z.object({ uuid: zod_1.z.uuid() });
20
+ exports.GreetingsListQuerySchema = zod_1.z.object({
21
+ cursor: zod_1.z.string().optional(),
22
+ limit: zod_1.z.coerce.number().int().min(1).max(50).default(20),
23
+ search: zod_1.z.string().trim().max(200).optional(),
24
+ createdAtSortOrder: zod_1.z.enum(constants_1.JOB_SORT).default(constants_1.JOB_SORT.DESC),
25
+ favorite: zod_1.z
26
+ .enum(['true', 'false'])
27
+ .transform((value) => value === 'true')
28
+ .optional(),
29
+ });
30
+ exports.GreetingsFavoriteBodySchema = zod_1.z.strictObject({ isFavorite: zod_1.z.boolean() });
31
+ exports.GreetingsTitleBodySchema = zod_1.z.strictObject({ title: zod_1.z.string().trim().min(1).max(40) });
32
+ exports.GreetingsReactionBodySchema = zod_1.z.strictObject({
33
+ reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable(),
34
+ });
@@ -0,0 +1,251 @@
1
+ import { z } from 'zod';
2
+ export declare const GreetingsJobResponseSchema: z.ZodObject<{
3
+ data: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ isFavorite: z.ZodDefault<z.ZodBoolean>;
6
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ reaction: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>>;
8
+ kind: z.ZodEnum<typeof import("../../..").GREETINGS_KIND>;
9
+ modelId: z.ZodUUID;
10
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
11
+ modelId: z.ZodUUID;
12
+ prompt: z.ZodString;
13
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
14
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.TEXT>;
15
+ settings: z.ZodObject<{
16
+ lengthId: z.ZodUUID;
17
+ formatId: z.ZodUUID;
18
+ }, z.core.$strict>;
19
+ }, z.core.$strict>, z.ZodObject<{
20
+ modelId: z.ZodUUID;
21
+ prompt: z.ZodString;
22
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
23
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.SONG>;
24
+ settings: z.ZodObject<{
25
+ styleId: z.ZodOptional<z.ZodUUID>;
26
+ customStyle: z.ZodOptional<z.ZodString>;
27
+ voice: z.ZodDefault<z.ZodEnum<{
28
+ f: "f";
29
+ m: "m";
30
+ }>>;
31
+ }, z.core.$strict>;
32
+ }, z.core.$strict>, z.ZodObject<{
33
+ modelId: z.ZodUUID;
34
+ prompt: z.ZodString;
35
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
36
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.VIDEO>;
37
+ settings: z.ZodObject<{
38
+ styleId: z.ZodOptional<z.ZodUUID>;
39
+ customStyle: z.ZodOptional<z.ZodString>;
40
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
41
+ duration: z.ZodInt;
42
+ }, z.core.$strict>;
43
+ }, z.core.$strict>, z.ZodObject<{
44
+ modelId: z.ZodUUID;
45
+ prompt: z.ZodString;
46
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
47
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.IMAGE>;
48
+ settings: z.ZodObject<{
49
+ styleId: z.ZodOptional<z.ZodUUID>;
50
+ customStyle: z.ZodOptional<z.ZodString>;
51
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
52
+ aspectRatio: z.ZodString;
53
+ }, z.core.$strict>;
54
+ }, z.core.$strict>], "kind">;
55
+ status: z.ZodEnum<typeof import("../../..").GREETINGS_STATUS>;
56
+ currentAttemptId: z.ZodUUID;
57
+ price: z.ZodInt;
58
+ result: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
59
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.TEXT>;
60
+ text: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.SONG>;
63
+ tracks: z.ZodArray<z.ZodObject<{
64
+ id: z.ZodString;
65
+ title: z.ZodString;
66
+ audioUrl: z.ZodURL;
67
+ imageUrl: z.ZodOptional<z.ZodURL>;
68
+ duration: z.ZodOptional<z.ZodNumber>;
69
+ lyrics: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.VIDEO>;
73
+ video: z.ZodObject<{
74
+ url: z.ZodURL;
75
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
+ uuid: z.ZodUUID;
77
+ url: z.ZodString;
78
+ }, z.core.$strip>>>;
79
+ }, z.core.$strip>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.IMAGE>;
82
+ image: z.ZodObject<{
83
+ url: z.ZodURL;
84
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
85
+ uuid: z.ZodUUID;
86
+ url: z.ZodString;
87
+ }, z.core.$strip>>>;
88
+ }, z.core.$strip>;
89
+ }, z.core.$strip>], "kind">>;
90
+ error: z.ZodNullable<z.ZodString>;
91
+ createdAt: z.ZodString;
92
+ updatedAt: z.ZodString;
93
+ }, z.core.$strip>;
94
+ }, z.core.$strip>;
95
+ export declare const GreetingsListResponseSchema: z.ZodObject<{
96
+ data: z.ZodObject<{
97
+ items: z.ZodArray<z.ZodObject<{
98
+ uuid: z.ZodUUID;
99
+ isFavorite: z.ZodDefault<z.ZodBoolean>;
100
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ reaction: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>>;
102
+ kind: z.ZodEnum<typeof import("../../..").GREETINGS_KIND>;
103
+ modelId: z.ZodUUID;
104
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
105
+ modelId: z.ZodUUID;
106
+ prompt: z.ZodString;
107
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
108
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.TEXT>;
109
+ settings: z.ZodObject<{
110
+ lengthId: z.ZodUUID;
111
+ formatId: z.ZodUUID;
112
+ }, z.core.$strict>;
113
+ }, z.core.$strict>, z.ZodObject<{
114
+ modelId: z.ZodUUID;
115
+ prompt: z.ZodString;
116
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
117
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.SONG>;
118
+ settings: z.ZodObject<{
119
+ styleId: z.ZodOptional<z.ZodUUID>;
120
+ customStyle: z.ZodOptional<z.ZodString>;
121
+ voice: z.ZodDefault<z.ZodEnum<{
122
+ f: "f";
123
+ m: "m";
124
+ }>>;
125
+ }, z.core.$strict>;
126
+ }, z.core.$strict>, z.ZodObject<{
127
+ modelId: z.ZodUUID;
128
+ prompt: z.ZodString;
129
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
130
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.VIDEO>;
131
+ settings: z.ZodObject<{
132
+ styleId: z.ZodOptional<z.ZodUUID>;
133
+ customStyle: z.ZodOptional<z.ZodString>;
134
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
135
+ duration: z.ZodInt;
136
+ }, z.core.$strict>;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ modelId: z.ZodUUID;
139
+ prompt: z.ZodString;
140
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
141
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.IMAGE>;
142
+ settings: z.ZodObject<{
143
+ styleId: z.ZodOptional<z.ZodUUID>;
144
+ customStyle: z.ZodOptional<z.ZodString>;
145
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
146
+ aspectRatio: z.ZodString;
147
+ }, z.core.$strict>;
148
+ }, z.core.$strict>], "kind">;
149
+ status: z.ZodEnum<typeof import("../../..").GREETINGS_STATUS>;
150
+ currentAttemptId: z.ZodUUID;
151
+ price: z.ZodInt;
152
+ result: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
153
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.TEXT>;
154
+ text: z.ZodString;
155
+ }, z.core.$strip>, z.ZodObject<{
156
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.SONG>;
157
+ tracks: z.ZodArray<z.ZodObject<{
158
+ id: z.ZodString;
159
+ title: z.ZodString;
160
+ audioUrl: z.ZodURL;
161
+ imageUrl: z.ZodOptional<z.ZodURL>;
162
+ duration: z.ZodOptional<z.ZodNumber>;
163
+ lyrics: z.ZodOptional<z.ZodString>;
164
+ }, z.core.$strip>>;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.VIDEO>;
167
+ video: z.ZodObject<{
168
+ url: z.ZodURL;
169
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
170
+ uuid: z.ZodUUID;
171
+ url: z.ZodString;
172
+ }, z.core.$strip>>>;
173
+ }, z.core.$strip>;
174
+ }, z.core.$strip>, z.ZodObject<{
175
+ kind: z.ZodLiteral<import("../../..").GREETINGS_KIND.IMAGE>;
176
+ image: z.ZodObject<{
177
+ url: z.ZodURL;
178
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
179
+ uuid: z.ZodUUID;
180
+ url: z.ZodString;
181
+ }, z.core.$strip>>>;
182
+ }, z.core.$strip>;
183
+ }, z.core.$strip>], "kind">>;
184
+ error: z.ZodNullable<z.ZodString>;
185
+ createdAt: z.ZodString;
186
+ updatedAt: z.ZodString;
187
+ }, z.core.$strip>>;
188
+ nextCursor: z.ZodNullable<z.ZodString>;
189
+ }, z.core.$strip>;
190
+ }, z.core.$strip>;
191
+ export declare const GreetingsConfigResponseSchema: z.ZodObject<{
192
+ data: z.ZodObject<{
193
+ textLengths: z.ZodArray<z.ZodObject<{
194
+ uuid: z.ZodUUID;
195
+ title: z.ZodString;
196
+ order: z.ZodInt;
197
+ }, z.core.$strip>>;
198
+ textFormats: z.ZodArray<z.ZodObject<{
199
+ uuid: z.ZodUUID;
200
+ title: z.ZodString;
201
+ order: z.ZodInt;
202
+ }, z.core.$strip>>;
203
+ musicStyles: z.ZodArray<z.ZodObject<{
204
+ uuid: z.ZodUUID;
205
+ title: z.ZodString;
206
+ order: z.ZodInt;
207
+ }, z.core.$strip>>;
208
+ videoStyles: z.ZodArray<z.ZodObject<{
209
+ uuid: z.ZodUUID;
210
+ title: z.ZodString;
211
+ order: z.ZodInt;
212
+ }, z.core.$strip>>;
213
+ imageStyles: z.ZodArray<z.ZodObject<{
214
+ uuid: z.ZodUUID;
215
+ title: z.ZodString;
216
+ order: z.ZodInt;
217
+ }, z.core.$strip>>;
218
+ models: z.ZodArray<z.ZodObject<{
219
+ uuid: z.ZodUUID;
220
+ title: z.ZodString;
221
+ description: z.ZodOptional<z.ZodString>;
222
+ kind: z.ZodEnum<typeof import("../../..").GREETINGS_KIND>;
223
+ order: z.ZodInt;
224
+ sourceModelId: z.ZodUUID;
225
+ sourceModelType: z.ZodEnum<typeof import("../../..").GREETINGS_KIND>;
226
+ durations: z.ZodArray<z.ZodInt>;
227
+ aspectRatios: z.ZodArray<z.ZodString>;
228
+ defaultDuration: z.ZodNullable<z.ZodInt>;
229
+ defaultAspectRatio: z.ZodNullable<z.ZodString>;
230
+ supportsReference: z.ZodBoolean;
231
+ maxAttachedImages: z.ZodInt;
232
+ maxPromptLength: z.ZodInt;
233
+ maxProviderPromptLength: z.ZodOptional<z.ZodInt>;
234
+ canUse: z.ZodBoolean;
235
+ unlockedBy: z.ZodNullable<z.ZodObject<{
236
+ uuid: z.ZodUUID;
237
+ name: z.ZodString;
238
+ }, z.core.$strip>>;
239
+ }, z.core.$strip>>;
240
+ }, z.core.$strip>;
241
+ }, z.core.$strip>;
242
+ export declare const GreetingsPriceResponseSchema: z.ZodObject<{
243
+ price: z.ZodNumber;
244
+ charsUntilNextPriceIncrease: z.ZodNullable<z.ZodNumber>;
245
+ charsUntilNextPriceDecrease: z.ZodNullable<z.ZodNumber>;
246
+ }, z.core.$strip>;
247
+ export declare const GreetingsDeleteResponseSchema: z.ZodObject<{
248
+ data: z.ZodBoolean;
249
+ }, z.core.$strip>;
250
+ export type GreetingsConfig = z.infer<typeof GreetingsConfigResponseSchema>['data'];
251
+ export type GreetingsJob = z.infer<typeof GreetingsJobResponseSchema>['data'];
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GreetingsDeleteResponseSchema = exports.GreetingsPriceResponseSchema = exports.GreetingsConfigResponseSchema = exports.GreetingsListResponseSchema = exports.GreetingsJobResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const greetings_1 = require("../../../models/tools/greetings");
6
+ exports.GreetingsJobResponseSchema = zod_1.z.object({
7
+ data: greetings_1.GreetingJobSchema,
8
+ });
9
+ exports.GreetingsListResponseSchema = zod_1.z.object({
10
+ data: zod_1.z.object({
11
+ items: zod_1.z.array(greetings_1.GreetingJobSchema),
12
+ nextCursor: zod_1.z.string().nullable(),
13
+ }),
14
+ });
15
+ const unlockedBySchema = zod_1.z.object({ uuid: zod_1.z.uuid(), name: zod_1.z.string() }).nullable();
16
+ exports.GreetingsConfigResponseSchema = zod_1.z.object({
17
+ data: greetings_1.GreetingConfigSchema.extend({
18
+ models: zod_1.z.array(greetings_1.GreetingModelSchema.extend({
19
+ canUse: zod_1.z.boolean(),
20
+ unlockedBy: unlockedBySchema,
21
+ })),
22
+ }),
23
+ });
24
+ exports.GreetingsPriceResponseSchema = zod_1.z.object({
25
+ price: zod_1.z.number().int().positive(),
26
+ charsUntilNextPriceIncrease: zod_1.z.number().int().positive().nullable(),
27
+ charsUntilNextPriceDecrease: zod_1.z.number().int().positive().nullable(),
28
+ });
29
+ exports.GreetingsDeleteResponseSchema = zod_1.z.object({ data: zod_1.z.boolean() });
@@ -19,3 +19,4 @@ export * from './tool-workspace';
19
19
  export * from './photo-session';
20
20
  export * from './diagrams';
21
21
  export * from './sound-generation';
22
+ export * from './greetings';
@@ -35,3 +35,4 @@ __exportStar(require("./tool-workspace"), exports);
35
35
  __exportStar(require("./photo-session"), exports);
36
36
  __exportStar(require("./diagrams"), exports);
37
37
  __exportStar(require("./sound-generation"), exports);
38
+ __exportStar(require("./greetings"), exports);
@@ -0,0 +1,4 @@
1
+ export declare enum AI_TEXT_PROVIDER_STATUS {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AI_TEXT_PROVIDER_STATUS = void 0;
4
+ var AI_TEXT_PROVIDER_STATUS;
5
+ (function (AI_TEXT_PROVIDER_STATUS) {
6
+ AI_TEXT_PROVIDER_STATUS["ACTIVE"] = "active";
7
+ AI_TEXT_PROVIDER_STATUS["INACTIVE"] = "inactive";
8
+ })(AI_TEXT_PROVIDER_STATUS || (exports.AI_TEXT_PROVIDER_STATUS = AI_TEXT_PROVIDER_STATUS = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum AI_TEXT_PROVIDER {
2
+ WELLFLOW = "wellflow",
3
+ API_ROUTE = "api_route",
4
+ DEROUTER = "derouter"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AI_TEXT_PROVIDER = void 0;
4
+ var AI_TEXT_PROVIDER;
5
+ (function (AI_TEXT_PROVIDER) {
6
+ AI_TEXT_PROVIDER["WELLFLOW"] = "wellflow";
7
+ AI_TEXT_PROVIDER["API_ROUTE"] = "api_route";
8
+ AI_TEXT_PROVIDER["DEROUTER"] = "derouter";
9
+ })(AI_TEXT_PROVIDER || (exports.AI_TEXT_PROVIDER = AI_TEXT_PROVIDER = {}));
@@ -3,3 +3,5 @@ export * from './ai-model-feature.enum';
3
3
  export * from './ai-model-status.enum';
4
4
  export * from './ai-model-strategy.enum';
5
5
  export * from './ai-model-tag.enum';
6
+ export * from './ai-text-provider-status.enum';
7
+ export * from './ai-text-provider.enum';
@@ -19,3 +19,5 @@ __exportStar(require("./ai-model-feature.enum"), exports);
19
19
  __exportStar(require("./ai-model-status.enum"), exports);
20
20
  __exportStar(require("./ai-model-strategy.enum"), exports);
21
21
  __exportStar(require("./ai-model-tag.enum"), exports);
22
+ __exportStar(require("./ai-text-provider-status.enum"), exports);
23
+ __exportStar(require("./ai-text-provider.enum"), exports);
@@ -1,4 +1,5 @@
1
1
  export declare enum STATISTICS_REQUEST_TYPE {
2
+ GREETINGS = "GREETINGS",
2
3
  IMAGE = "IMAGE",
3
4
  PHOTO_SESSION = "PHOTO_SESSION",
4
5
  IMAGE_RECOGNITION = "IMAGE_RECOGNITION",
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.STATISTICS_REQUEST_TYPE = void 0;
4
4
  var STATISTICS_REQUEST_TYPE;
5
5
  (function (STATISTICS_REQUEST_TYPE) {
6
+ STATISTICS_REQUEST_TYPE["GREETINGS"] = "GREETINGS";
6
7
  STATISTICS_REQUEST_TYPE["IMAGE"] = "IMAGE";
7
8
  STATISTICS_REQUEST_TYPE["PHOTO_SESSION"] = "PHOTO_SESSION";
8
9
  STATISTICS_REQUEST_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
@@ -1,6 +1,7 @@
1
1
  import { TOOL_CONTENT_TYPE } from '../../tool/enums/tool-content-type.enum';
2
2
  export declare const CONTENT_REPORT_CHAT_MESSAGE_TYPE: 'CHAT_MESSAGE';
3
3
  export declare const CONTENT_REPORT_TARGET_TYPE: {
4
+ readonly GREETINGS: TOOL_CONTENT_TYPE.GREETINGS;
4
5
  readonly IMAGE_EDITOR: TOOL_CONTENT_TYPE.IMAGE_EDITOR;
5
6
  readonly IMAGE_GENERATION: TOOL_CONTENT_TYPE.IMAGE_GENERATION;
6
7
  readonly TEXT_TO_SPEECH: TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
@@ -0,0 +1,12 @@
1
+ export declare enum GREETINGS_KIND {
2
+ TEXT = "TEXT",
3
+ SONG = "SONG",
4
+ VIDEO = "VIDEO",
5
+ IMAGE = "IMAGE"
6
+ }
7
+ export declare enum GREETINGS_STATUS {
8
+ PENDING = "PENDING",
9
+ PROCESSING = "PROCESSING",
10
+ COMPLETED = "COMPLETED",
11
+ FAILED = "FAILED"
12
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GREETINGS_STATUS = exports.GREETINGS_KIND = void 0;
4
+ var GREETINGS_KIND;
5
+ (function (GREETINGS_KIND) {
6
+ GREETINGS_KIND["TEXT"] = "TEXT";
7
+ GREETINGS_KIND["SONG"] = "SONG";
8
+ GREETINGS_KIND["VIDEO"] = "VIDEO";
9
+ GREETINGS_KIND["IMAGE"] = "IMAGE";
10
+ })(GREETINGS_KIND || (exports.GREETINGS_KIND = GREETINGS_KIND = {}));
11
+ var GREETINGS_STATUS;
12
+ (function (GREETINGS_STATUS) {
13
+ GREETINGS_STATUS["PENDING"] = "PENDING";
14
+ GREETINGS_STATUS["PROCESSING"] = "PROCESSING";
15
+ GREETINGS_STATUS["COMPLETED"] = "COMPLETED";
16
+ GREETINGS_STATUS["FAILED"] = "FAILED";
17
+ })(GREETINGS_STATUS || (exports.GREETINGS_STATUS = GREETINGS_STATUS = {}));
@@ -6,3 +6,4 @@ export * from './tool-workspace-item-slot.enum';
6
6
  export * from './tool-workspace-status.enum';
7
7
  export * from './job-sort.enum';
8
8
  export * from './job-scope.enum';
9
+ export * from './greetings-kind.enum';
@@ -22,3 +22,4 @@ __exportStar(require("./tool-workspace-item-slot.enum"), exports);
22
22
  __exportStar(require("./tool-workspace-status.enum"), exports);
23
23
  __exportStar(require("./job-sort.enum"), exports);
24
24
  __exportStar(require("./job-scope.enum"), exports);
25
+ __exportStar(require("./greetings-kind.enum"), exports);
@@ -1,4 +1,5 @@
1
1
  export declare enum TOOL_CONTENT_TYPE {
2
+ GREETINGS = "GREETINGS",
2
3
  IMAGE_EDITOR = "IMAGE_EDITOR",
3
4
  IMAGE_GENERATION = "IMAGE_GENERATION",
4
5
  TEXT_TO_SPEECH = "TEXT_TO_SPEECH",
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TOOL_CONTENT_TYPE = void 0;
4
4
  var TOOL_CONTENT_TYPE;
5
5
  (function (TOOL_CONTENT_TYPE) {
6
+ TOOL_CONTENT_TYPE["GREETINGS"] = "GREETINGS";
6
7
  TOOL_CONTENT_TYPE["IMAGE_EDITOR"] = "IMAGE_EDITOR";
7
8
  TOOL_CONTENT_TYPE["IMAGE_GENERATION"] = "IMAGE_GENERATION";
8
9
  TOOL_CONTENT_TYPE["TEXT_TO_SPEECH"] = "TEXT_TO_SPEECH";
@@ -0,0 +1,4 @@
1
+ export * from '../constants/tool/enums/greetings-kind.enum';
2
+ export * from '../models/tools/greetings';
3
+ export * from '../commands/tools/greetings';
4
+ export * from '../api/controllers/http/greetings';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../constants/tool/enums/greetings-kind.enum"), exports);
18
+ __exportStar(require("../models/tools/greetings"), exports);
19
+ __exportStar(require("../commands/tools/greetings"), exports);
20
+ __exportStar(require("../api/controllers/http/greetings"), exports);
package/build/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './api';
2
+ export * from './greetings';
2
3
  export * from './commands';
3
4
  export * from './constants';
4
5
  export * from './helpers';
package/build/index.js CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./api"), exports);
18
+ __exportStar(require("./greetings"), exports);
18
19
  __exportStar(require("./commands"), exports);
19
20
  __exportStar(require("./constants"), exports);
20
21
  __exportStar(require("./helpers"), exports);
@@ -5,6 +5,7 @@ export declare const ContentReportSchema: z.ZodObject<{
5
5
  uuid: z.ZodUUID;
6
6
  userId: z.ZodUUID;
7
7
  contentType: z.ZodEnum<{
8
+ readonly GREETINGS: import("..").TOOL_CONTENT_TYPE.GREETINGS;
8
9
  readonly IMAGE_EDITOR: import("..").TOOL_CONTENT_TYPE.IMAGE_EDITOR;
9
10
  readonly IMAGE_GENERATION: import("..").TOOL_CONTENT_TYPE.IMAGE_GENERATION;
10
11
  readonly TEXT_TO_SPEECH: import("..").TOOL_CONTENT_TYPE.TEXT_TO_SPEECH;
@@ -0,0 +1,70 @@
1
+ import { z } from 'zod';
2
+ import { GREETINGS_KIND } from '../../../constants';
3
+ export declare const GreetingOptionSchema: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ title: z.ZodString;
6
+ order: z.ZodInt;
7
+ }, z.core.$strip>;
8
+ export declare const GreetingModelSchema: z.ZodObject<{
9
+ uuid: z.ZodUUID;
10
+ title: z.ZodString;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ kind: z.ZodEnum<typeof GREETINGS_KIND>;
13
+ order: z.ZodInt;
14
+ sourceModelId: z.ZodUUID;
15
+ sourceModelType: z.ZodEnum<typeof GREETINGS_KIND>;
16
+ durations: z.ZodArray<z.ZodInt>;
17
+ aspectRatios: z.ZodArray<z.ZodString>;
18
+ defaultDuration: z.ZodNullable<z.ZodInt>;
19
+ defaultAspectRatio: z.ZodNullable<z.ZodString>;
20
+ supportsReference: z.ZodBoolean;
21
+ maxAttachedImages: z.ZodInt;
22
+ maxPromptLength: z.ZodInt;
23
+ maxProviderPromptLength: z.ZodOptional<z.ZodInt>;
24
+ }, z.core.$strip>;
25
+ export type GreetingModel = z.infer<typeof GreetingModelSchema>;
26
+ export declare const GreetingConfigSchema: z.ZodObject<{
27
+ models: z.ZodArray<z.ZodObject<{
28
+ uuid: z.ZodUUID;
29
+ title: z.ZodString;
30
+ description: z.ZodOptional<z.ZodString>;
31
+ kind: z.ZodEnum<typeof GREETINGS_KIND>;
32
+ order: z.ZodInt;
33
+ sourceModelId: z.ZodUUID;
34
+ sourceModelType: z.ZodEnum<typeof GREETINGS_KIND>;
35
+ durations: z.ZodArray<z.ZodInt>;
36
+ aspectRatios: z.ZodArray<z.ZodString>;
37
+ defaultDuration: z.ZodNullable<z.ZodInt>;
38
+ defaultAspectRatio: z.ZodNullable<z.ZodString>;
39
+ supportsReference: z.ZodBoolean;
40
+ maxAttachedImages: z.ZodInt;
41
+ maxPromptLength: z.ZodInt;
42
+ maxProviderPromptLength: z.ZodOptional<z.ZodInt>;
43
+ }, z.core.$strip>>;
44
+ textLengths: z.ZodArray<z.ZodObject<{
45
+ uuid: z.ZodUUID;
46
+ title: z.ZodString;
47
+ order: z.ZodInt;
48
+ }, z.core.$strip>>;
49
+ textFormats: z.ZodArray<z.ZodObject<{
50
+ uuid: z.ZodUUID;
51
+ title: z.ZodString;
52
+ order: z.ZodInt;
53
+ }, z.core.$strip>>;
54
+ musicStyles: z.ZodArray<z.ZodObject<{
55
+ uuid: z.ZodUUID;
56
+ title: z.ZodString;
57
+ order: z.ZodInt;
58
+ }, z.core.$strip>>;
59
+ videoStyles: z.ZodArray<z.ZodObject<{
60
+ uuid: z.ZodUUID;
61
+ title: z.ZodString;
62
+ order: z.ZodInt;
63
+ }, z.core.$strip>>;
64
+ imageStyles: z.ZodArray<z.ZodObject<{
65
+ uuid: z.ZodUUID;
66
+ title: z.ZodString;
67
+ order: z.ZodInt;
68
+ }, z.core.$strip>>;
69
+ }, z.core.$strip>;
70
+ export type GreetingConfig = z.infer<typeof GreetingConfigSchema>;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GreetingConfigSchema = exports.GreetingModelSchema = exports.GreetingOptionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ exports.GreetingOptionSchema = zod_1.z.object({
7
+ uuid: zod_1.z.uuid(),
8
+ title: zod_1.z.string(),
9
+ order: zod_1.z.int(),
10
+ });
11
+ exports.GreetingModelSchema = zod_1.z.object({
12
+ uuid: zod_1.z.uuid(),
13
+ title: zod_1.z.string(),
14
+ description: zod_1.z.string().optional(),
15
+ kind: zod_1.z.nativeEnum(constants_1.GREETINGS_KIND),
16
+ order: zod_1.z.int(),
17
+ sourceModelId: zod_1.z.uuid(),
18
+ sourceModelType: zod_1.z.enum(constants_1.GREETINGS_KIND),
19
+ durations: zod_1.z.array(zod_1.z.int()),
20
+ aspectRatios: zod_1.z.array(zod_1.z.string()),
21
+ defaultDuration: zod_1.z.int().nullable(),
22
+ defaultAspectRatio: zod_1.z.string().nullable(),
23
+ supportsReference: zod_1.z.boolean(),
24
+ maxAttachedImages: zod_1.z.int().nonnegative(),
25
+ maxPromptLength: zod_1.z.int(),
26
+ maxProviderPromptLength: zod_1.z.int().positive().optional(),
27
+ });
28
+ exports.GreetingConfigSchema = zod_1.z.object({
29
+ models: zod_1.z.array(exports.GreetingModelSchema),
30
+ textLengths: zod_1.z.array(exports.GreetingOptionSchema),
31
+ textFormats: zod_1.z.array(exports.GreetingOptionSchema),
32
+ musicStyles: zod_1.z.array(exports.GreetingOptionSchema),
33
+ videoStyles: zod_1.z.array(exports.GreetingOptionSchema),
34
+ imageStyles: zod_1.z.array(exports.GreetingOptionSchema),
35
+ });
@@ -0,0 +1,49 @@
1
+ import { z } from 'zod';
2
+ import { LOCALE } from '@purpleschool/rugpt-lib-common';
3
+ import { GREETINGS_KIND } from '../../../constants';
4
+ export declare const GreetingInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ modelId: z.ZodUUID;
6
+ prompt: z.ZodString;
7
+ locale: z.ZodDefault<z.ZodEnum<typeof LOCALE>>;
8
+ kind: z.ZodLiteral<GREETINGS_KIND.TEXT>;
9
+ settings: z.ZodObject<{
10
+ lengthId: z.ZodUUID;
11
+ formatId: z.ZodUUID;
12
+ }, z.core.$strict>;
13
+ }, z.core.$strict>, z.ZodObject<{
14
+ modelId: z.ZodUUID;
15
+ prompt: z.ZodString;
16
+ locale: z.ZodDefault<z.ZodEnum<typeof LOCALE>>;
17
+ kind: z.ZodLiteral<GREETINGS_KIND.SONG>;
18
+ settings: z.ZodObject<{
19
+ styleId: z.ZodOptional<z.ZodUUID>;
20
+ customStyle: z.ZodOptional<z.ZodString>;
21
+ voice: z.ZodDefault<z.ZodEnum<{
22
+ f: "f";
23
+ m: "m";
24
+ }>>;
25
+ }, z.core.$strict>;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ modelId: z.ZodUUID;
28
+ prompt: z.ZodString;
29
+ locale: z.ZodDefault<z.ZodEnum<typeof LOCALE>>;
30
+ kind: z.ZodLiteral<GREETINGS_KIND.VIDEO>;
31
+ settings: z.ZodObject<{
32
+ styleId: z.ZodOptional<z.ZodUUID>;
33
+ customStyle: z.ZodOptional<z.ZodString>;
34
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
35
+ duration: z.ZodInt;
36
+ }, z.core.$strict>;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ modelId: z.ZodUUID;
39
+ prompt: z.ZodString;
40
+ locale: z.ZodDefault<z.ZodEnum<typeof LOCALE>>;
41
+ kind: z.ZodLiteral<GREETINGS_KIND.IMAGE>;
42
+ settings: z.ZodObject<{
43
+ styleId: z.ZodOptional<z.ZodUUID>;
44
+ customStyle: z.ZodOptional<z.ZodString>;
45
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
46
+ aspectRatio: z.ZodString;
47
+ }, z.core.$strict>;
48
+ }, z.core.$strict>], "kind">;
49
+ export type GreetingInput = z.infer<typeof GreetingInputSchema>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GreetingInputSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
6
+ const constants_1 = require("../../../constants");
7
+ const styleFields = {
8
+ styleId: zod_1.z.uuid().optional(),
9
+ customStyle: zod_1.z.string().trim().max(200).optional(),
10
+ };
11
+ const referenceFields = {
12
+ imageUrls: zod_1.z
13
+ .array(zod_1.z.url())
14
+ .refine((urls) => new Set(urls).size === urls.length)
15
+ .optional(),
16
+ };
17
+ const baseFields = {
18
+ modelId: zod_1.z.uuid(),
19
+ prompt: zod_1.z.string().trim().min(1).max(10000),
20
+ locale: zod_1.z.enum(rugpt_lib_common_1.LOCALE).default(rugpt_lib_common_1.LOCALE.RU),
21
+ };
22
+ exports.GreetingInputSchema = zod_1.z.discriminatedUnion('kind', [
23
+ zod_1.z.strictObject(Object.assign(Object.assign({}, baseFields), { kind: zod_1.z.literal(constants_1.GREETINGS_KIND.TEXT), settings: zod_1.z.strictObject({ lengthId: zod_1.z.uuid(), formatId: zod_1.z.uuid() }) })),
24
+ zod_1.z.strictObject(Object.assign(Object.assign({}, baseFields), { kind: zod_1.z.literal(constants_1.GREETINGS_KIND.SONG), settings: zod_1.z.strictObject(Object.assign(Object.assign({}, styleFields), { voice: zod_1.z.enum(['m', 'f']).default('f') })) })),
25
+ zod_1.z.strictObject(Object.assign(Object.assign({}, baseFields), { kind: zod_1.z.literal(constants_1.GREETINGS_KIND.VIDEO), settings: zod_1.z.strictObject(Object.assign(Object.assign(Object.assign({}, styleFields), referenceFields), { duration: zod_1.z.int().positive() })) })),
26
+ zod_1.z.strictObject(Object.assign(Object.assign({}, baseFields), { kind: zod_1.z.literal(constants_1.GREETINGS_KIND.IMAGE), settings: zod_1.z.strictObject(Object.assign(Object.assign(Object.assign({}, styleFields), referenceFields), { aspectRatio: zod_1.z.string().min(1) })) })),
27
+ ]);
@@ -0,0 +1,94 @@
1
+ import { z } from 'zod';
2
+ import { GREETINGS_KIND, GREETINGS_STATUS, USER_REACTION } from '../../../constants';
3
+ export declare const GreetingJobSchema: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ isFavorite: z.ZodDefault<z.ZodBoolean>;
6
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ reaction: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>>;
8
+ kind: z.ZodEnum<typeof GREETINGS_KIND>;
9
+ modelId: z.ZodUUID;
10
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
11
+ modelId: z.ZodUUID;
12
+ prompt: z.ZodString;
13
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
14
+ kind: z.ZodLiteral<GREETINGS_KIND.TEXT>;
15
+ settings: z.ZodObject<{
16
+ lengthId: z.ZodUUID;
17
+ formatId: z.ZodUUID;
18
+ }, z.core.$strict>;
19
+ }, z.core.$strict>, z.ZodObject<{
20
+ modelId: z.ZodUUID;
21
+ prompt: z.ZodString;
22
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
23
+ kind: z.ZodLiteral<GREETINGS_KIND.SONG>;
24
+ settings: z.ZodObject<{
25
+ styleId: z.ZodOptional<z.ZodUUID>;
26
+ customStyle: z.ZodOptional<z.ZodString>;
27
+ voice: z.ZodDefault<z.ZodEnum<{
28
+ f: "f";
29
+ m: "m";
30
+ }>>;
31
+ }, z.core.$strict>;
32
+ }, z.core.$strict>, z.ZodObject<{
33
+ modelId: z.ZodUUID;
34
+ prompt: z.ZodString;
35
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
36
+ kind: z.ZodLiteral<GREETINGS_KIND.VIDEO>;
37
+ settings: z.ZodObject<{
38
+ styleId: z.ZodOptional<z.ZodUUID>;
39
+ customStyle: z.ZodOptional<z.ZodString>;
40
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
41
+ duration: z.ZodInt;
42
+ }, z.core.$strict>;
43
+ }, z.core.$strict>, z.ZodObject<{
44
+ modelId: z.ZodUUID;
45
+ prompt: z.ZodString;
46
+ locale: z.ZodDefault<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
47
+ kind: z.ZodLiteral<GREETINGS_KIND.IMAGE>;
48
+ settings: z.ZodObject<{
49
+ styleId: z.ZodOptional<z.ZodUUID>;
50
+ customStyle: z.ZodOptional<z.ZodString>;
51
+ imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
52
+ aspectRatio: z.ZodString;
53
+ }, z.core.$strict>;
54
+ }, z.core.$strict>], "kind">;
55
+ status: z.ZodEnum<typeof GREETINGS_STATUS>;
56
+ currentAttemptId: z.ZodUUID;
57
+ price: z.ZodInt;
58
+ result: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
59
+ kind: z.ZodLiteral<GREETINGS_KIND.TEXT>;
60
+ text: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ kind: z.ZodLiteral<GREETINGS_KIND.SONG>;
63
+ tracks: z.ZodArray<z.ZodObject<{
64
+ id: z.ZodString;
65
+ title: z.ZodString;
66
+ audioUrl: z.ZodURL;
67
+ imageUrl: z.ZodOptional<z.ZodURL>;
68
+ duration: z.ZodOptional<z.ZodNumber>;
69
+ lyrics: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ kind: z.ZodLiteral<GREETINGS_KIND.VIDEO>;
73
+ video: z.ZodObject<{
74
+ url: z.ZodURL;
75
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
+ uuid: z.ZodUUID;
77
+ url: z.ZodString;
78
+ }, z.core.$strip>>>;
79
+ }, z.core.$strip>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ kind: z.ZodLiteral<GREETINGS_KIND.IMAGE>;
82
+ image: z.ZodObject<{
83
+ url: z.ZodURL;
84
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
85
+ uuid: z.ZodUUID;
86
+ url: z.ZodString;
87
+ }, z.core.$strip>>>;
88
+ }, z.core.$strip>;
89
+ }, z.core.$strip>], "kind">>;
90
+ error: z.ZodNullable<z.ZodString>;
91
+ createdAt: z.ZodString;
92
+ updatedAt: z.ZodString;
93
+ }, z.core.$strip>;
94
+ export type GreetingJob = z.infer<typeof GreetingJobSchema>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GreetingJobSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const greeting_input_schema_1 = require("./greeting-input.schema");
7
+ const greeting_result_schema_1 = require("./greeting-result.schema");
8
+ exports.GreetingJobSchema = zod_1.z.object({
9
+ uuid: zod_1.z.uuid(),
10
+ isFavorite: zod_1.z.boolean().default(false),
11
+ title: zod_1.z.string().nullable().optional(),
12
+ reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable().optional(),
13
+ kind: zod_1.z.nativeEnum(constants_1.GREETINGS_KIND),
14
+ modelId: zod_1.z.uuid(),
15
+ input: greeting_input_schema_1.GreetingInputSchema,
16
+ status: zod_1.z.enum(constants_1.GREETINGS_STATUS),
17
+ currentAttemptId: zod_1.z.uuid(),
18
+ price: zod_1.z.int().nonnegative(),
19
+ result: greeting_result_schema_1.GreetingResultSchema.nullable(),
20
+ error: zod_1.z.string().nullable(),
21
+ createdAt: zod_1.z.string(),
22
+ updatedAt: zod_1.z.string(),
23
+ });
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ import { GREETINGS_KIND } from '../../../constants';
3
+ export declare const GreetingTrackSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ title: z.ZodString;
6
+ audioUrl: z.ZodURL;
7
+ imageUrl: z.ZodOptional<z.ZodURL>;
8
+ duration: z.ZodOptional<z.ZodNumber>;
9
+ lyrics: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ export declare const GreetingResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12
+ kind: z.ZodLiteral<GREETINGS_KIND.TEXT>;
13
+ text: z.ZodString;
14
+ }, z.core.$strip>, z.ZodObject<{
15
+ kind: z.ZodLiteral<GREETINGS_KIND.SONG>;
16
+ tracks: z.ZodArray<z.ZodObject<{
17
+ id: z.ZodString;
18
+ title: z.ZodString;
19
+ audioUrl: z.ZodURL;
20
+ imageUrl: z.ZodOptional<z.ZodURL>;
21
+ duration: z.ZodOptional<z.ZodNumber>;
22
+ lyrics: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ kind: z.ZodLiteral<GREETINGS_KIND.VIDEO>;
26
+ video: z.ZodObject<{
27
+ url: z.ZodURL;
28
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ uuid: z.ZodUUID;
30
+ url: z.ZodString;
31
+ }, z.core.$strip>>>;
32
+ }, z.core.$strip>;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ kind: z.ZodLiteral<GREETINGS_KIND.IMAGE>;
35
+ image: z.ZodObject<{
36
+ url: z.ZodURL;
37
+ file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
38
+ uuid: z.ZodUUID;
39
+ url: z.ZodString;
40
+ }, z.core.$strip>>>;
41
+ }, z.core.$strip>;
42
+ }, z.core.$strip>], "kind">;
43
+ export type GreetingResult = z.infer<typeof GreetingResultSchema>;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GreetingResultSchema = exports.GreetingTrackSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const file_schema_1 = require("../../file.schema");
6
+ const constants_1 = require("../../../constants");
7
+ exports.GreetingTrackSchema = zod_1.z.object({
8
+ id: zod_1.z.string(),
9
+ title: zod_1.z.string(),
10
+ audioUrl: zod_1.z.url(),
11
+ imageUrl: zod_1.z.url().optional(),
12
+ duration: zod_1.z.number().nonnegative().optional(),
13
+ lyrics: zod_1.z.string().optional(),
14
+ });
15
+ exports.GreetingResultSchema = zod_1.z.discriminatedUnion('kind', [
16
+ zod_1.z.object({ kind: zod_1.z.literal(constants_1.GREETINGS_KIND.TEXT), text: zod_1.z.string().min(1) }),
17
+ zod_1.z.object({ kind: zod_1.z.literal(constants_1.GREETINGS_KIND.SONG), tracks: zod_1.z.array(exports.GreetingTrackSchema).min(1) }),
18
+ zod_1.z.object({
19
+ kind: zod_1.z.literal(constants_1.GREETINGS_KIND.VIDEO),
20
+ video: zod_1.z.object({
21
+ url: zod_1.z.url(),
22
+ file: file_schema_1.FileSchema.pick({ uuid: true, url: true }).nullable().optional(),
23
+ }),
24
+ }),
25
+ zod_1.z.object({
26
+ kind: zod_1.z.literal(constants_1.GREETINGS_KIND.IMAGE),
27
+ image: zod_1.z.object({
28
+ url: zod_1.z.url(),
29
+ file: file_schema_1.FileSchema.pick({ uuid: true, url: true }).nullable().optional(),
30
+ }),
31
+ }),
32
+ ]);
@@ -0,0 +1,4 @@
1
+ export * from './greeting-input.schema';
2
+ export * from './greeting-result.schema';
3
+ export * from './greeting-job.schema';
4
+ export * from './greeting-config.schema';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./greeting-input.schema"), exports);
18
+ __exportStar(require("./greeting-result.schema"), exports);
19
+ __exportStar(require("./greeting-job.schema"), exports);
20
+ __exportStar(require("./greeting-config.schema"), exports);
@@ -20,3 +20,4 @@ export * from './tool-workspace';
20
20
  export * from './photo-session';
21
21
  export * from './diagrams';
22
22
  export * from './sound-generation';
23
+ export * from './greetings';
@@ -36,3 +36,4 @@ __exportStar(require("./tool-workspace"), exports);
36
36
  __exportStar(require("./photo-session"), exports);
37
37
  __exportStar(require("./diagrams"), exports);
38
38
  __exportStar(require("./sound-generation"), exports);
39
+ __exportStar(require("./greetings"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.19.6",
3
+ "version": "0.19.8-stage-2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",