@purpleschool/gptbot 0.19.7 → 0.19.9-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 (57) 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/api/index.d.ts +1 -0
  6. package/build/api/index.js +1 -0
  7. package/build/api/partner-code-routes.d.ts +21 -0
  8. package/build/api/partner-code-routes.js +25 -0
  9. package/build/commands/content-report/create-content-report.command.d.ts +2 -0
  10. package/build/commands/content-report/find-content-reports.query.d.ts +2 -0
  11. package/build/commands/content-report/update-content-report-status.command.d.ts +1 -0
  12. package/build/commands/index.d.ts +1 -0
  13. package/build/commands/index.js +1 -0
  14. package/build/commands/message/create-text-message.command.js +1 -1
  15. package/build/commands/partner-codes/index.d.ts +489 -0
  16. package/build/commands/partner-codes/index.js +73 -0
  17. package/build/commands/tools/greetings/index.d.ts +2 -0
  18. package/build/commands/tools/greetings/index.js +18 -0
  19. package/build/commands/tools/greetings/requests.d.ts +130 -0
  20. package/build/commands/tools/greetings/requests.js +34 -0
  21. package/build/commands/tools/greetings/responses.d.ts +251 -0
  22. package/build/commands/tools/greetings/responses.js +29 -0
  23. package/build/commands/tools/index.d.ts +1 -0
  24. package/build/commands/tools/index.js +1 -0
  25. package/build/constants/cabinet/enums/statistics-request-type.enum.d.ts +1 -0
  26. package/build/constants/cabinet/enums/statistics-request-type.enum.js +1 -0
  27. package/build/constants/content-report/enums/content-report-target-type.enum.d.ts +1 -0
  28. package/build/constants/tool/enums/greetings-kind.enum.d.ts +12 -0
  29. package/build/constants/tool/enums/greetings-kind.enum.js +17 -0
  30. package/build/constants/tool/enums/index.d.ts +1 -0
  31. package/build/constants/tool/enums/index.js +1 -0
  32. package/build/constants/tool/enums/tool-content-type.enum.d.ts +1 -0
  33. package/build/constants/tool/enums/tool-content-type.enum.js +1 -0
  34. package/build/greetings/index.d.ts +4 -0
  35. package/build/greetings/index.js +20 -0
  36. package/build/index.d.ts +1 -0
  37. package/build/index.js +1 -0
  38. package/build/models/content-report.schema.d.ts +1 -0
  39. package/build/models/index.d.ts +1 -0
  40. package/build/models/index.js +1 -0
  41. package/build/models/partner-codes/index.d.ts +1 -0
  42. package/build/models/partner-codes/index.js +17 -0
  43. package/build/models/partner-codes/partner-codes.schema.d.ts +739 -0
  44. package/build/models/partner-codes/partner-codes.schema.js +347 -0
  45. package/build/models/tools/greetings/greeting-config.schema.d.ts +70 -0
  46. package/build/models/tools/greetings/greeting-config.schema.js +35 -0
  47. package/build/models/tools/greetings/greeting-input.schema.d.ts +49 -0
  48. package/build/models/tools/greetings/greeting-input.schema.js +27 -0
  49. package/build/models/tools/greetings/greeting-job.schema.d.ts +94 -0
  50. package/build/models/tools/greetings/greeting-job.schema.js +23 -0
  51. package/build/models/tools/greetings/greeting-result.schema.d.ts +43 -0
  52. package/build/models/tools/greetings/greeting-result.schema.js +32 -0
  53. package/build/models/tools/greetings/index.d.ts +4 -0
  54. package/build/models/tools/greetings/index.js +20 -0
  55. package/build/models/tools/index.d.ts +1 -0
  56. package/build/models/tools/index.js +1 -0
  57. package/package.json +2 -2
@@ -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);
@@ -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;
@@ -81,5 +81,6 @@ export * from './user-profile.schema';
81
81
  export * from './b2b';
82
82
  export * from './json-value.schema';
83
83
  export * from './team-account';
84
+ export * from './partner-codes';
84
85
  export * from './canvas-template.schema';
85
86
  export * from './user-loyalty-status.schema';
@@ -97,5 +97,6 @@ __exportStar(require("./user-profile.schema"), exports);
97
97
  __exportStar(require("./b2b"), exports);
98
98
  __exportStar(require("./json-value.schema"), exports);
99
99
  __exportStar(require("./team-account"), exports);
100
+ __exportStar(require("./partner-codes"), exports);
100
101
  __exportStar(require("./canvas-template.schema"), exports);
101
102
  __exportStar(require("./user-loyalty-status.schema"), exports);
@@ -0,0 +1 @@
1
+ export * from './partner-codes.schema';
@@ -0,0 +1,17 @@
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("./partner-codes.schema"), exports);