@purpleschool/gptbot 0.14.51-stage2 → 0.14.52
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/api/controllers/http/index.d.ts +0 -1
- package/build/api/controllers/http/index.js +0 -1
- package/build/api/controllers/http/tts.d.ts +0 -9
- package/build/api/controllers/http/tts.js +0 -9
- package/build/api/routes.d.ts +0 -12
- package/build/api/routes.js +0 -12
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +3 -11
- package/build/commands/photo-studio/get-photo-studio-config.query.d.ts +6 -0
- package/build/commands/tools/image-editor/find-image-editor-job-by-uuid.command.d.ts +1 -0
- package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +1 -0
- package/build/commands/tools/image-editor/get-image-editor-tool-config.command.d.ts +3 -0
- package/build/commands/tools/image-editor/image-editor.command.d.ts +1 -0
- package/build/commands/tools/image-editor/image-editor.command.js +1 -0
- package/build/commands/tools/image-editor/retry-image-editor-job.command.d.ts +2 -0
- package/build/commands/tools/image-editor/retry-image-editor-job.command.js +1 -0
- package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.d.ts +1 -0
- package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.d.ts +1 -0
- package/build/commands/tools/image-editor/update-image-editor-job-title.command.d.ts +1 -0
- package/build/commands/tools/index.d.ts +0 -1
- package/build/commands/tools/index.js +0 -1
- package/build/commands/tools/marketplace-card/get-marketplace-card-config.command.d.ts +6 -0
- package/build/commands/tools/solving-edu-task/get-solving-edu-task-tool-config.command.d.ts +5 -0
- package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +1 -13
- package/build/commands/tools/tts/find-tts-jobs.command.d.ts +1 -13
- package/build/commands/tools/tts/get-tts-tool-config.command.d.ts +0 -11
- package/build/commands/tools/tts/index.d.ts +0 -9
- package/build/commands/tools/tts/index.js +0 -9
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +1 -13
- package/build/commands/tools/tts/tts.command.d.ts +1 -6
- package/build/commands/tools/tts/tts.command.js +1 -7
- package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +1 -13
- package/build/commands/tools/tts/update-tts-job-title.command.d.ts +1 -13
- package/build/commands/ui-notification/find-active-ui-notifications-by-page-and-user.command.d.ts +19 -0
- package/build/commands/ui-notification/find-ui-notifications.command.d.ts +19 -0
- package/build/constants/index.d.ts +0 -2
- package/build/constants/index.js +0 -2
- package/build/constants/ui-notification/enums/ui-notification-type.enum.d.ts +2 -1
- package/build/constants/ui-notification/enums/ui-notification-type.enum.js +1 -0
- package/build/helpers/index.d.ts +0 -1
- package/build/helpers/index.js +0 -1
- package/build/models/canvas-node-definition.schema.d.ts +9 -33
- package/build/models/tools/image-editor/image-editor-config.schema.d.ts +3 -0
- package/build/models/tools/image-editor/image-editor-job.schema.d.ts +2 -0
- package/build/models/tools/image-editor/image-editor-job.schema.js +1 -0
- package/build/models/tools/image-editor/image-editor-model.schema.d.ts +6 -0
- package/build/models/tools/image-editor/image-editor-model.schema.js +5 -0
- package/build/models/tools/index.d.ts +0 -1
- package/build/models/tools/index.js +0 -1
- package/build/models/tools/marketplace-card/marketplace-card-config.schema.d.ts +13 -0
- package/build/models/tools/marketplace-card/marketplace-card-config.schema.js +5 -0
- package/build/models/tools/solving-edu-task/solving-edu-task-config.schema.d.ts +5 -0
- package/build/models/tools/solving-edu-task/solving-edu-task-model.schema.d.ts +5 -0
- package/build/models/tools/solving-edu-task/solving-edu-task-model.schema.js +3 -0
- package/build/models/tools/tts/index.d.ts +0 -3
- package/build/models/tools/tts/index.js +0 -3
- package/build/models/tools/tts/tts-config.schema.d.ts +0 -23
- package/build/models/tools/tts/tts-config.schema.js +1 -14
- package/build/models/tools/tts/tts-job.schema.d.ts +1 -26
- package/build/models/tools/tts/tts-job.schema.js +2 -16
- package/build/models/tools/tts/tts-model.schema.d.ts +0 -1
- package/build/models/tools/tts/tts-model.schema.js +0 -1
- package/build/models/ui-notification.schema.d.ts +28 -0
- package/build/models/ui-notification.schema.js +13 -1
- package/package.json +1 -1
- package/build/api/controllers/http/photo-session.d.ts +0 -20
- package/build/api/controllers/http/photo-session.js +0 -23
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +0 -39
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +0 -22
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +0 -9
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +0 -11
- package/build/commands/tools/photo-session/admin/index.d.ts +0 -3
- package/build/commands/tools/photo-session/admin/index.js +0 -19
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +0 -45
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +0 -31
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +0 -5
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +0 -8
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +0 -9
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +0 -11
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +0 -61
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +0 -14
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +0 -70
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +0 -24
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +0 -76
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +0 -11
- package/build/commands/tools/photo-session/get-photo-session-price.command.d.ts +0 -32
- package/build/commands/tools/photo-session/get-photo-session-price.command.js +0 -27
- package/build/commands/tools/photo-session/index.d.ts +0 -12
- package/build/commands/tools/photo-session/index.js +0 -28
- package/build/commands/tools/photo-session/photo-session.command.d.ts +0 -87
- package/build/commands/tools/photo-session/photo-session.command.js +0 -33
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +0 -85
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +0 -32
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +0 -67
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +0 -28
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +0 -65
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +0 -17
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +0 -65
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +0 -17
- package/build/commands/tools/tts/create-voice-clone.command.d.ts +0 -32
- package/build/commands/tools/tts/create-voice-clone.command.js +0 -17
- package/build/commands/tools/tts/create-voice-design.command.d.ts +0 -22
- package/build/commands/tools/tts/create-voice-design.command.js +0 -17
- package/build/commands/tools/tts/delete-voice.command.d.ts +0 -9
- package/build/commands/tools/tts/delete-voice.command.js +0 -11
- package/build/commands/tools/tts/download-tts-job.command.d.ts +0 -18
- package/build/commands/tools/tts/download-tts-job.command.js +0 -17
- package/build/commands/tools/tts/find-voice-by-uuid.query.d.ts +0 -29
- package/build/commands/tools/tts/find-voice-by-uuid.query.js +0 -14
- package/build/commands/tools/tts/find-voices.query.d.ts +0 -37
- package/build/commands/tools/tts/find-voices.query.js +0 -18
- package/build/commands/tools/tts/improve-tts-text.command.d.ts +0 -13
- package/build/commands/tools/tts/improve-tts-text.command.js +0 -13
- package/build/commands/tools/tts/select-voice-design.command.d.ts +0 -33
- package/build/commands/tools/tts/select-voice-design.command.js +0 -17
- package/build/commands/tools/tts/update-voice.command.d.ts +0 -33
- package/build/commands/tools/tts/update-voice.command.js +0 -17
- package/build/constants/tool-photo-session/enums/index.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/index.js +0 -19
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/constants/tool-photo-session/enums/photo-session-look-type.enum.js +0 -9
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.d.ts +0 -3
- package/build/constants/tool-photo-session/enums/photo-session-model-type.enum.js +0 -7
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.d.ts +0 -4
- package/build/constants/tool-photo-session/enums/photo-session-strategy.enum.js +0 -8
- package/build/constants/tool-photo-session/index.d.ts +0 -1
- package/build/constants/tool-photo-session/index.js +0 -17
- package/build/constants/tool-tts/enums/index.d.ts +0 -7
- package/build/constants/tool-tts/enums/index.js +0 -23
- package/build/constants/tool-tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/tts-download-format.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-category.enum.d.ts +0 -14
- package/build/constants/tool-tts/enums/voice-category.enum.js +0 -18
- package/build/constants/tool-tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/constants/tool-tts/enums/voice-gender.enum.js +0 -8
- package/build/constants/tool-tts/enums/voice-source.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-source.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-status.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-status.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/constants/tool-tts/enums/voice-tag-group.enum.js +0 -9
- package/build/constants/tool-tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/constants/tool-tts/enums/voice-tag.enum.js +0 -24
- package/build/constants/tool-tts/index.d.ts +0 -1
- package/build/constants/tool-tts/index.js +0 -17
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +0 -6
- package/build/helpers/photo-session/calculate-photo-session-price.helper.js +0 -13
- package/build/helpers/photo-session/index.d.ts +0 -1
- package/build/helpers/photo-session/index.js +0 -17
- package/build/models/tools/photo-session/index.d.ts +0 -4
- package/build/models/tools/photo-session/index.js +0 -20
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +0 -77
- package/build/models/tools/photo-session/photo-session-config.schema.js +0 -16
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +0 -77
- package/build/models/tools/photo-session/photo-session-job.schema.js +0 -45
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +0 -73
- package/build/models/tools/photo-session/photo-session-model.schema.js +0 -45
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +0 -29
- package/build/models/tools/photo-session/photo-session-style.schema.js +0 -22
- package/build/models/tools/tts/voice-design-draft.schema.d.ts +0 -12
- package/build/models/tools/tts/voice-design-draft.schema.js +0 -12
- package/build/models/tools/tts/voice-design-sample.schema.d.ts +0 -6
- package/build/models/tools/tts/voice-design-sample.schema.js +0 -8
- package/build/models/tools/tts/voice.schema.d.ts +0 -22
- package/build/models/tools/tts/voice.schema.js +0 -24
|
@@ -269,6 +269,9 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
269
269
|
width: z.ZodNumber;
|
|
270
270
|
height: z.ZodNumber;
|
|
271
271
|
}, z.core.$strip>, z.ZodString]>>>;
|
|
272
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
273
|
+
options: z.ZodArray<z.ZodString>;
|
|
274
|
+
}, z.core.$strip>>;
|
|
272
275
|
}, z.core.$strip>;
|
|
273
276
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
274
277
|
condition: z.ZodObject<{
|
|
@@ -340,7 +343,6 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
340
343
|
}, z.core.$strip>;
|
|
341
344
|
}, z.core.$strip>;
|
|
342
345
|
maxInputLength: z.ZodNumber;
|
|
343
|
-
maxSpeakers: z.ZodNumber;
|
|
344
346
|
params: z.ZodObject<{
|
|
345
347
|
speed: z.ZodOptional<z.ZodObject<{
|
|
346
348
|
title: z.ZodString;
|
|
@@ -444,16 +446,6 @@ export declare const CanvasNodeDefinitionToolConfigSchema: z.ZodDiscriminatedUni
|
|
|
444
446
|
canUse: z.ZodBoolean;
|
|
445
447
|
status: z.ZodString;
|
|
446
448
|
}, z.core.$strip>>;
|
|
447
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
448
|
-
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
449
|
-
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
450
|
-
label: z.ZodString;
|
|
451
|
-
}, z.core.$strip>>;
|
|
452
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
453
|
-
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
454
|
-
label: z.ZodString;
|
|
455
|
-
}, z.core.$strip>>;
|
|
456
|
-
speakerMarkerLabel: z.ZodString;
|
|
457
449
|
}, z.core.$strip>;
|
|
458
450
|
}, z.core.$strip>, z.ZodObject<{
|
|
459
451
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -1004,6 +996,9 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1004
996
|
width: z.ZodNumber;
|
|
1005
997
|
height: z.ZodNumber;
|
|
1006
998
|
}, z.core.$strip>, z.ZodString]>>>;
|
|
999
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
1000
|
+
options: z.ZodArray<z.ZodString>;
|
|
1001
|
+
}, z.core.$strip>>;
|
|
1007
1002
|
}, z.core.$strip>;
|
|
1008
1003
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
1009
1004
|
condition: z.ZodObject<{
|
|
@@ -1075,7 +1070,6 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1075
1070
|
}, z.core.$strip>;
|
|
1076
1071
|
}, z.core.$strip>;
|
|
1077
1072
|
maxInputLength: z.ZodNumber;
|
|
1078
|
-
maxSpeakers: z.ZodNumber;
|
|
1079
1073
|
params: z.ZodObject<{
|
|
1080
1074
|
speed: z.ZodOptional<z.ZodObject<{
|
|
1081
1075
|
title: z.ZodString;
|
|
@@ -1179,16 +1173,6 @@ export declare const CanvasNodeDefinitionWithConfigSchema: z.ZodObject<{
|
|
|
1179
1173
|
canUse: z.ZodBoolean;
|
|
1180
1174
|
status: z.ZodString;
|
|
1181
1175
|
}, z.core.$strip>>;
|
|
1182
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
1183
|
-
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
1184
|
-
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
1185
|
-
label: z.ZodString;
|
|
1186
|
-
}, z.core.$strip>>;
|
|
1187
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
1188
|
-
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
1189
|
-
label: z.ZodString;
|
|
1190
|
-
}, z.core.$strip>>;
|
|
1191
|
-
speakerMarkerLabel: z.ZodString;
|
|
1192
1176
|
}, z.core.$strip>;
|
|
1193
1177
|
}, z.core.$strip>, z.ZodObject<{
|
|
1194
1178
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -1697,6 +1681,9 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1697
1681
|
width: z.ZodNumber;
|
|
1698
1682
|
height: z.ZodNumber;
|
|
1699
1683
|
}, z.core.$strip>, z.ZodString]>>>;
|
|
1684
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
1685
|
+
options: z.ZodArray<z.ZodString>;
|
|
1686
|
+
}, z.core.$strip>>;
|
|
1700
1687
|
}, z.core.$strip>;
|
|
1701
1688
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
1702
1689
|
condition: z.ZodObject<{
|
|
@@ -1768,7 +1755,6 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1768
1755
|
}, z.core.$strip>;
|
|
1769
1756
|
}, z.core.$strip>;
|
|
1770
1757
|
maxInputLength: z.ZodNumber;
|
|
1771
|
-
maxSpeakers: z.ZodNumber;
|
|
1772
1758
|
params: z.ZodObject<{
|
|
1773
1759
|
speed: z.ZodOptional<z.ZodObject<{
|
|
1774
1760
|
title: z.ZodString;
|
|
@@ -1872,16 +1858,6 @@ export declare const CanvasNodeDefinitionsWithConfigsSchema: z.ZodRecord<z.ZodEn
|
|
|
1872
1858
|
canUse: z.ZodBoolean;
|
|
1873
1859
|
status: z.ZodString;
|
|
1874
1860
|
}, z.core.$strip>>;
|
|
1875
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
1876
|
-
id: z.ZodEnum<typeof import("..").VOICE_TAG>;
|
|
1877
|
-
group: z.ZodEnum<typeof import("..").VOICE_TAG_GROUP>;
|
|
1878
|
-
label: z.ZodString;
|
|
1879
|
-
}, z.core.$strip>>;
|
|
1880
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
1881
|
-
id: z.ZodEnum<typeof import("..").VOICE_CATEGORY>;
|
|
1882
|
-
label: z.ZodString;
|
|
1883
|
-
}, z.core.$strip>>;
|
|
1884
|
-
speakerMarkerLabel: z.ZodString;
|
|
1885
1861
|
}, z.core.$strip>;
|
|
1886
1862
|
}, z.core.$strip>, z.ZodObject<{
|
|
1887
1863
|
nodeType: z.ZodLiteral<CANVAS_NODE_TYPE.sttGen>;
|
|
@@ -91,6 +91,9 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
|
|
|
91
91
|
width: z.ZodNumber;
|
|
92
92
|
height: z.ZodNumber;
|
|
93
93
|
}, z.core.$strip>, z.ZodString]>>>;
|
|
94
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
options: z.ZodArray<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
94
97
|
}, z.core.$strip>;
|
|
95
98
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
96
99
|
condition: z.ZodObject<{
|
|
@@ -13,6 +13,7 @@ export declare const ImageEditorJobParamsSchema: z.ZodObject<{
|
|
|
13
13
|
systemPromptId: z.ZodOptional<z.ZodString>;
|
|
14
14
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
15
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
16
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
16
17
|
}, z.core.$strip>;
|
|
17
18
|
export type ImageEditorJobParams = z.infer<typeof ImageEditorJobParamsSchema>;
|
|
18
19
|
export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
@@ -43,6 +44,7 @@ export declare const ImageEditorJobSchema: z.ZodObject<{
|
|
|
43
44
|
systemPromptId: z.ZodOptional<z.ZodString>;
|
|
44
45
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
46
|
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
47
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
46
48
|
}, z.core.$strip>;
|
|
47
49
|
isPublished: z.ZodBoolean;
|
|
48
50
|
postId: z.ZodNullable<z.ZodString>;
|
|
@@ -11,6 +11,7 @@ exports.ImageEditorJobParamsSchema = zod_1.z.object({
|
|
|
11
11
|
systemPromptId: zod_1.z.string().optional(),
|
|
12
12
|
imageUrls: zod_1.z.string().array().optional(),
|
|
13
13
|
aspectRatio: zod_1.z.string().optional(),
|
|
14
|
+
resolution: zod_1.z.string().optional(),
|
|
14
15
|
});
|
|
15
16
|
exports.ImageEditorJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
16
17
|
title: zod_1.z.string(),
|
|
@@ -9,6 +9,9 @@ export declare const ImageEditorModelParamsSchema: z.ZodObject<{
|
|
|
9
9
|
width: z.ZodNumber;
|
|
10
10
|
height: z.ZodNumber;
|
|
11
11
|
}, z.core.$strip>, z.ZodString]>>>;
|
|
12
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
options: z.ZodArray<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
12
15
|
}, z.core.$strip>;
|
|
13
16
|
export type ImageEditorModelParams = z.infer<typeof ImageEditorModelParamsSchema>;
|
|
14
17
|
export declare const ImageEditorModelPricingRuleConditionSchema: z.ZodObject<{
|
|
@@ -51,6 +54,9 @@ export declare const ImageEditorModelSchema: z.ZodObject<{
|
|
|
51
54
|
width: z.ZodNumber;
|
|
52
55
|
height: z.ZodNumber;
|
|
53
56
|
}, z.core.$strip>, z.ZodString]>>>;
|
|
57
|
+
resolution: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
options: z.ZodArray<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
54
60
|
}, z.core.$strip>;
|
|
55
61
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
56
62
|
condition: z.ZodObject<{
|
|
@@ -19,6 +19,11 @@ exports.ImageEditorModelParamsSchema = zod_1.z.object({
|
|
|
19
19
|
zod_1.z.string(),
|
|
20
20
|
]))
|
|
21
21
|
.optional(),
|
|
22
|
+
resolution: zod_1.z
|
|
23
|
+
.object({
|
|
24
|
+
options: zod_1.z.array(zod_1.z.string()),
|
|
25
|
+
})
|
|
26
|
+
.optional(),
|
|
22
27
|
});
|
|
23
28
|
exports.ImageEditorModelPricingRuleConditionSchema = zod_1.z.object({
|
|
24
29
|
withoutSub: zod_1.z.boolean().optional(),
|
|
@@ -33,5 +33,4 @@ __exportStar(require("./solving-edu-task"), exports);
|
|
|
33
33
|
__exportStar(require("./spell-corrector"), exports);
|
|
34
34
|
__exportStar(require("./html-page-builder"), exports);
|
|
35
35
|
__exportStar(require("./tool-workspace"), exports);
|
|
36
|
-
__exportStar(require("./photo-session"), exports);
|
|
37
36
|
__exportStar(require("./diagrams"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { TOOL_MODEL_STATUS } from '../../../constants';
|
|
2
3
|
export declare const MarketplaceCardStylePresetSchema: z.ZodObject<{
|
|
3
4
|
uuid: z.ZodString;
|
|
4
5
|
previewImageUrl: z.ZodString;
|
|
@@ -29,6 +30,12 @@ export declare const MarketplaceCardModelSchema: z.ZodObject<{
|
|
|
29
30
|
}, z.core.$strip>;
|
|
30
31
|
maxPromptLength: z.ZodNumber;
|
|
31
32
|
supportsImageAttachment: z.ZodBoolean;
|
|
33
|
+
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
34
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
uuid: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
canUse: z.ZodBoolean;
|
|
32
39
|
}, z.core.$strip>;
|
|
33
40
|
export type MarketplaceCardModel = z.infer<typeof MarketplaceCardModelSchema>;
|
|
34
41
|
export declare const MarketplaceCardConfigSchema: z.ZodObject<{
|
|
@@ -61,6 +68,12 @@ export declare const MarketplaceCardConfigSchema: z.ZodObject<{
|
|
|
61
68
|
}, z.core.$strip>;
|
|
62
69
|
maxPromptLength: z.ZodNumber;
|
|
63
70
|
supportsImageAttachment: z.ZodBoolean;
|
|
71
|
+
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
72
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
73
|
+
uuid: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
canUse: z.ZodBoolean;
|
|
64
77
|
}, z.core.$strip>>;
|
|
65
78
|
}, z.core.$strip>;
|
|
66
79
|
export type MarketplaceCardConfigModel = z.infer<typeof MarketplaceCardConfigSchema>;
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MarketplaceCardConfigSchema = exports.MarketplaceCardModelSchema = exports.MarketplaceCardStylePresetSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
5
6
|
const icon_variants_schema_1 = require("../../icon-variants.schema");
|
|
7
|
+
const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
|
|
6
8
|
exports.MarketplaceCardStylePresetSchema = zod_1.z.object({
|
|
7
9
|
uuid: zod_1.z.string().uuid(),
|
|
8
10
|
previewImageUrl: zod_1.z.string(),
|
|
@@ -23,6 +25,9 @@ exports.MarketplaceCardModelSchema = zod_1.z.object({
|
|
|
23
25
|
iconVariants: icon_variants_schema_1.IconVariantsSchema,
|
|
24
26
|
maxPromptLength: zod_1.z.number(),
|
|
25
27
|
supportsImageAttachment: zod_1.z.boolean(),
|
|
28
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
|
|
29
|
+
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
30
|
+
canUse: zod_1.z.boolean(),
|
|
26
31
|
});
|
|
27
32
|
exports.MarketplaceCardConfigSchema = zod_1.z.object({
|
|
28
33
|
styles: zod_1.z.array(exports.MarketplaceCardStylePresetSchema),
|
|
@@ -15,6 +15,11 @@ export declare const SolvingEduTaskConfigSchema: z.ZodObject<{
|
|
|
15
15
|
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
uuid: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
canUse: z.ZodBoolean;
|
|
18
23
|
}, z.core.$strip>>;
|
|
19
24
|
}, z.core.$strip>;
|
|
20
25
|
export type SolvingEduTaskConfig = z.infer<typeof SolvingEduTaskConfigSchema>;
|
|
@@ -23,5 +23,10 @@ export declare const SolvingEduTaskModelSchema: z.ZodObject<{
|
|
|
23
23
|
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
|
+
unlockedBy: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
uuid: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
canUse: z.ZodBoolean;
|
|
26
31
|
}, z.core.$strip>;
|
|
27
32
|
export type SolvingEduTaskModel = z.infer<typeof SolvingEduTaskModelSchema>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SolvingEduTaskModelSchema = exports.SolvingEduTaskModelParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../../../constants");
|
|
6
|
+
const unlocked_by_subscription_schema_1 = require("../../unlocked-by-subscription.schema");
|
|
6
7
|
exports.SolvingEduTaskModelParamsSchema = zod_1.z.object({
|
|
7
8
|
imageAttachment: zod_1.z.object({
|
|
8
9
|
supported: zod_1.z.boolean(),
|
|
@@ -19,4 +20,6 @@ exports.SolvingEduTaskModelSchema = zod_1.z.object({
|
|
|
19
20
|
status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
|
|
20
21
|
maxPromptLength: zod_1.z.number(),
|
|
21
22
|
params: exports.SolvingEduTaskModelParamsSchema,
|
|
23
|
+
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
24
|
+
canUse: zod_1.z.boolean(),
|
|
22
25
|
});
|
|
@@ -17,6 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./tts-config.schema"), exports);
|
|
18
18
|
__exportStar(require("./tts-job.schema"), exports);
|
|
19
19
|
__exportStar(require("./tts-model.schema"), exports);
|
|
20
|
-
__exportStar(require("./voice.schema"), exports);
|
|
21
|
-
__exportStar(require("./voice-design-draft.schema"), exports);
|
|
22
|
-
__exportStar(require("./voice-design-sample.schema"), exports);
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { VOICE_CATEGORY, VOICE_TAG, VOICE_TAG_GROUP } from '../../../constants';
|
|
3
|
-
export declare const TTSVoiceTagSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodEnum<typeof VOICE_TAG>;
|
|
5
|
-
group: z.ZodEnum<typeof VOICE_TAG_GROUP>;
|
|
6
|
-
label: z.ZodString;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type TTSVoiceTag = z.infer<typeof TTSVoiceTagSchema>;
|
|
9
|
-
export declare const TTSVoiceCategorySchema: z.ZodObject<{
|
|
10
|
-
id: z.ZodEnum<typeof VOICE_CATEGORY>;
|
|
11
|
-
label: z.ZodString;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type TTSVoiceCategory = z.infer<typeof TTSVoiceCategorySchema>;
|
|
14
2
|
export declare const TTSConfigSchema: z.ZodObject<{
|
|
15
3
|
models: z.ZodArray<z.ZodObject<{
|
|
16
4
|
uuid: z.ZodString;
|
|
@@ -29,7 +17,6 @@ export declare const TTSConfigSchema: z.ZodObject<{
|
|
|
29
17
|
}, z.core.$strip>;
|
|
30
18
|
}, z.core.$strip>;
|
|
31
19
|
maxInputLength: z.ZodNumber;
|
|
32
|
-
maxSpeakers: z.ZodNumber;
|
|
33
20
|
params: z.ZodObject<{
|
|
34
21
|
speed: z.ZodOptional<z.ZodObject<{
|
|
35
22
|
title: z.ZodString;
|
|
@@ -133,14 +120,4 @@ export declare const TTSConfigSchema: z.ZodObject<{
|
|
|
133
120
|
canUse: z.ZodBoolean;
|
|
134
121
|
status: z.ZodString;
|
|
135
122
|
}, z.core.$strip>>;
|
|
136
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
137
|
-
id: z.ZodEnum<typeof VOICE_TAG>;
|
|
138
|
-
group: z.ZodEnum<typeof VOICE_TAG_GROUP>;
|
|
139
|
-
label: z.ZodString;
|
|
140
|
-
}, z.core.$strip>>;
|
|
141
|
-
categories: z.ZodArray<z.ZodObject<{
|
|
142
|
-
id: z.ZodEnum<typeof VOICE_CATEGORY>;
|
|
143
|
-
label: z.ZodString;
|
|
144
|
-
}, z.core.$strip>>;
|
|
145
|
-
speakerMarkerLabel: z.ZodString;
|
|
146
123
|
}, z.core.$strip>;
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSConfigSchema =
|
|
3
|
+
exports.TTSConfigSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
5
|
const tts_model_schema_1 = require("./tts-model.schema");
|
|
7
|
-
exports.TTSVoiceTagSchema = zod_1.z.object({
|
|
8
|
-
id: zod_1.z.nativeEnum(constants_1.VOICE_TAG),
|
|
9
|
-
group: zod_1.z.nativeEnum(constants_1.VOICE_TAG_GROUP),
|
|
10
|
-
label: zod_1.z.string(),
|
|
11
|
-
});
|
|
12
|
-
exports.TTSVoiceCategorySchema = zod_1.z.object({
|
|
13
|
-
id: zod_1.z.nativeEnum(constants_1.VOICE_CATEGORY),
|
|
14
|
-
label: zod_1.z.string(),
|
|
15
|
-
});
|
|
16
6
|
exports.TTSConfigSchema = zod_1.z.object({
|
|
17
7
|
models: zod_1.z.array(tts_model_schema_1.TTSModelSchema),
|
|
18
|
-
tags: zod_1.z.array(exports.TTSVoiceTagSchema),
|
|
19
|
-
categories: zod_1.z.array(exports.TTSVoiceCategorySchema),
|
|
20
|
-
speakerMarkerLabel: zod_1.z.string(),
|
|
21
8
|
});
|
|
@@ -7,19 +7,6 @@ export declare const TTSJobParamsSchema: z.ZodObject<{
|
|
|
7
7
|
style: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type TTSJobParams = z.infer<typeof TTSJobParamsSchema>;
|
|
10
|
-
export declare const TTSJobSpeakerSchema: z.ZodObject<{
|
|
11
|
-
speaker: z.ZodNumber;
|
|
12
|
-
voiceId: z.ZodString;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export type TTSJobSpeaker = z.infer<typeof TTSJobSpeakerSchema>;
|
|
15
|
-
export declare const TTSJobVoiceSchema: z.ZodObject<{
|
|
16
|
-
uuid: z.ZodString;
|
|
17
|
-
title: z.ZodString;
|
|
18
|
-
previewUrl: z.ZodString;
|
|
19
|
-
isDeleted: z.ZodBoolean;
|
|
20
|
-
speaker: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export type TTSJobVoice = z.infer<typeof TTSJobVoiceSchema>;
|
|
23
10
|
export declare const TTSJobSchema: z.ZodObject<{
|
|
24
11
|
uuid: z.ZodString;
|
|
25
12
|
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
@@ -39,18 +26,6 @@ export declare const TTSJobSchema: z.ZodObject<{
|
|
|
39
26
|
style: z.ZodOptional<z.ZodNumber>;
|
|
40
27
|
}, z.core.$strip>;
|
|
41
28
|
modelId: z.ZodString;
|
|
42
|
-
voiceId: z.
|
|
43
|
-
isDialog: z.ZodBoolean;
|
|
44
|
-
speakers: z.ZodArray<z.ZodObject<{
|
|
45
|
-
speaker: z.ZodNumber;
|
|
46
|
-
voiceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
voices: z.ZodArray<z.ZodObject<{
|
|
49
|
-
uuid: z.ZodString;
|
|
50
|
-
title: z.ZodString;
|
|
51
|
-
previewUrl: z.ZodString;
|
|
52
|
-
isDeleted: z.ZodBoolean;
|
|
53
|
-
speaker: z.ZodNullable<z.ZodNumber>;
|
|
54
|
-
}, z.core.$strip>>;
|
|
29
|
+
voiceId: z.ZodString;
|
|
55
30
|
}, z.core.$strip>;
|
|
56
31
|
export type TTSJob = z.infer<typeof TTSJobSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TTSJobSchema = exports.
|
|
3
|
+
exports.TTSJobSchema = exports.TTSJobParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
@@ -10,17 +10,6 @@ exports.TTSJobParamsSchema = zod_1.z.object({
|
|
|
10
10
|
stability: zod_1.z.number().optional(),
|
|
11
11
|
style: zod_1.z.number().optional(),
|
|
12
12
|
});
|
|
13
|
-
exports.TTSJobSpeakerSchema = zod_1.z.object({
|
|
14
|
-
speaker: zod_1.z.number(),
|
|
15
|
-
voiceId: zod_1.z.string(),
|
|
16
|
-
});
|
|
17
|
-
exports.TTSJobVoiceSchema = zod_1.z.object({
|
|
18
|
-
uuid: zod_1.z.string(),
|
|
19
|
-
title: zod_1.z.string(),
|
|
20
|
-
previewUrl: zod_1.z.string(),
|
|
21
|
-
isDeleted: zod_1.z.boolean(),
|
|
22
|
-
speaker: zod_1.z.number().nullable(),
|
|
23
|
-
});
|
|
24
13
|
exports.TTSJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
25
14
|
userInput: zod_1.z.string(),
|
|
26
15
|
title: zod_1.z.string(),
|
|
@@ -29,8 +18,5 @@ exports.TTSJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
29
18
|
duration: zod_1.z.string(),
|
|
30
19
|
params: exports.TTSJobParamsSchema,
|
|
31
20
|
modelId: zod_1.z.string(),
|
|
32
|
-
voiceId: zod_1.z.string()
|
|
33
|
-
isDialog: zod_1.z.boolean(),
|
|
34
|
-
speakers: zod_1.z.array(exports.TTSJobSpeakerSchema),
|
|
35
|
-
voices: zod_1.z.array(exports.TTSJobVoiceSchema),
|
|
21
|
+
voiceId: zod_1.z.string(),
|
|
36
22
|
});
|
|
@@ -45,7 +45,6 @@ exports.TTSModelSchema = zod_1.z.object({
|
|
|
45
45
|
order: zod_1.z.number(),
|
|
46
46
|
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
47
47
|
maxInputLength: zod_1.z.number(),
|
|
48
|
-
maxSpeakers: zod_1.z.number(),
|
|
49
48
|
params: exports.TTSModelParams,
|
|
50
49
|
voices: zod_1.z.array(exports.TTSVoiceSchema),
|
|
51
50
|
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
@@ -48,6 +48,15 @@ export declare const EmailNotVerifiedUiContentSchema: z.ZodObject<{
|
|
|
48
48
|
message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
49
49
|
}, z.core.$strip>;
|
|
50
50
|
export type EmailNotVerifiedUiContent = z.infer<typeof EmailNotVerifiedUiContentSchema>;
|
|
51
|
+
export declare const BlogUpdateUiContentSchema: z.ZodObject<{
|
|
52
|
+
title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
53
|
+
preview: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
54
|
+
action: z.ZodObject<{
|
|
55
|
+
label: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
56
|
+
url: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export type BlogUpdateUiContent = z.infer<typeof BlogUpdateUiContentSchema>;
|
|
51
60
|
export declare const UiNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
61
|
uuid: z.ZodString;
|
|
53
62
|
userId: z.ZodNullable<z.ZodString>;
|
|
@@ -142,5 +151,24 @@ export declare const UiNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
142
151
|
title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
143
152
|
message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
144
153
|
}, z.core.$strip>;
|
|
154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
155
|
+
uuid: z.ZodString;
|
|
156
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
157
|
+
priority: z.ZodNumber;
|
|
158
|
+
isRead: z.ZodBoolean;
|
|
159
|
+
readAt: z.ZodNullable<z.ZodDate>;
|
|
160
|
+
status: z.ZodEnum<typeof UI_NOTIFICATION_STATUS>;
|
|
161
|
+
conditionOfExecution: z.ZodEnum<typeof UI_NOTIFICATION_CONDITION_OF_EXECUTION>;
|
|
162
|
+
endDate: z.ZodNullable<z.ZodDate>;
|
|
163
|
+
serverTime: z.ZodOptional<z.ZodDate>;
|
|
164
|
+
type: z.ZodLiteral<UI_NOTIFICATION_TYPE.BLOG_UPDATE>;
|
|
165
|
+
dynamicUiContent: z.ZodObject<{
|
|
166
|
+
title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
167
|
+
preview: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
168
|
+
action: z.ZodObject<{
|
|
169
|
+
label: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
170
|
+
url: z.ZodString;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
}, z.core.$strip>;
|
|
145
173
|
}, z.core.$strip>], "type">;
|
|
146
174
|
export type UiNotification = z.infer<typeof UiNotificationSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UiNotificationSchema = exports.EmailNotVerifiedUiContentSchema = exports.GenericUiContentSchema = exports.PromocodeOfferUiContentSchema = exports.FraudDetectedUiContentSchema = exports.SubscriptionPastDueUiContentSchema = exports.ConnectTelegramBonusUiContentSchema = exports.LocalizedUiNotificationTextSchema = exports.UiNotificationBaseSchema = void 0;
|
|
3
|
+
exports.UiNotificationSchema = exports.BlogUpdateUiContentSchema = exports.EmailNotVerifiedUiContentSchema = exports.GenericUiContentSchema = exports.PromocodeOfferUiContentSchema = exports.FraudDetectedUiContentSchema = exports.SubscriptionPastDueUiContentSchema = exports.ConnectTelegramBonusUiContentSchema = exports.LocalizedUiNotificationTextSchema = exports.UiNotificationBaseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const localized_text_schema_1 = require("../helpers/localized-text.schema");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
@@ -44,6 +44,14 @@ exports.EmailNotVerifiedUiContentSchema = zod_1.z.object({
|
|
|
44
44
|
title: exports.LocalizedUiNotificationTextSchema,
|
|
45
45
|
message: exports.LocalizedUiNotificationTextSchema,
|
|
46
46
|
});
|
|
47
|
+
exports.BlogUpdateUiContentSchema = zod_1.z.object({
|
|
48
|
+
title: exports.LocalizedUiNotificationTextSchema,
|
|
49
|
+
preview: exports.LocalizedUiNotificationTextSchema,
|
|
50
|
+
action: zod_1.z.object({
|
|
51
|
+
label: exports.LocalizedUiNotificationTextSchema,
|
|
52
|
+
url: zod_1.z.string(),
|
|
53
|
+
}),
|
|
54
|
+
});
|
|
47
55
|
exports.UiNotificationSchema = zod_1.z.discriminatedUnion('type', [
|
|
48
56
|
exports.UiNotificationBaseSchema.extend({
|
|
49
57
|
type: zod_1.z.literal(constants_1.UI_NOTIFICATION_TYPE.CONNECT_TELEGRAM_BONUS),
|
|
@@ -69,4 +77,8 @@ exports.UiNotificationSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
69
77
|
type: zod_1.z.literal(constants_1.UI_NOTIFICATION_TYPE.GENERIC),
|
|
70
78
|
dynamicUiContent: exports.GenericUiContentSchema,
|
|
71
79
|
}),
|
|
80
|
+
exports.UiNotificationBaseSchema.extend({
|
|
81
|
+
type: zod_1.z.literal(constants_1.UI_NOTIFICATION_TYPE.BLOG_UPDATE),
|
|
82
|
+
dynamicUiContent: exports.BlogUpdateUiContentSchema,
|
|
83
|
+
}),
|
|
72
84
|
]);
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const PHOTO_SESSION_CONTROLLER_PRIVATE: 'private/tools/photo-session';
|
|
2
|
-
export declare const PHOTO_SESSION_CONTROLLER_PUBLIC: 'public/tools/photo-session';
|
|
3
|
-
export declare const PHOTO_SESSION_ROUTES: {
|
|
4
|
-
readonly CONFIG: 'config';
|
|
5
|
-
readonly EXECUTE: 'execute';
|
|
6
|
-
readonly PRICE: 'price';
|
|
7
|
-
readonly GET_JOBS: 'jobs';
|
|
8
|
-
readonly GET_JOB: (uuid: string) => string;
|
|
9
|
-
readonly UPDATE: (uuid: string) => string;
|
|
10
|
-
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
11
|
-
readonly SET_REACTION: (uuid: string) => string;
|
|
12
|
-
readonly DELETE: (uuid: string) => string;
|
|
13
|
-
readonly DELETE_ALL: 'jobs';
|
|
14
|
-
readonly RETRY: (uuid: string) => string;
|
|
15
|
-
readonly UPDATE_PUBLISHED: (uuid: string) => string;
|
|
16
|
-
readonly ADMIN: {
|
|
17
|
-
readonly STYLES: 'admin/styles';
|
|
18
|
-
readonly STYLE: (uuid: string) => string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PHOTO_SESSION_ROUTES = exports.PHOTO_SESSION_CONTROLLER_PUBLIC = exports.PHOTO_SESSION_CONTROLLER_PRIVATE = void 0;
|
|
4
|
-
exports.PHOTO_SESSION_CONTROLLER_PRIVATE = 'private/tools/photo-session';
|
|
5
|
-
exports.PHOTO_SESSION_CONTROLLER_PUBLIC = 'public/tools/photo-session';
|
|
6
|
-
exports.PHOTO_SESSION_ROUTES = {
|
|
7
|
-
CONFIG: 'config',
|
|
8
|
-
EXECUTE: 'execute',
|
|
9
|
-
PRICE: 'price',
|
|
10
|
-
GET_JOBS: 'jobs',
|
|
11
|
-
GET_JOB: (uuid) => `jobs/${uuid}`,
|
|
12
|
-
UPDATE: (uuid) => `jobs/${uuid}`,
|
|
13
|
-
UPDATE_FAVORITE: (uuid) => `jobs/${uuid}/favorite`,
|
|
14
|
-
SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
|
|
15
|
-
DELETE: (uuid) => `jobs/${uuid}`,
|
|
16
|
-
DELETE_ALL: 'jobs',
|
|
17
|
-
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
18
|
-
UPDATE_PUBLISHED: (uuid) => `jobs/${uuid}/published`,
|
|
19
|
-
ADMIN: {
|
|
20
|
-
STYLES: 'admin/styles',
|
|
21
|
-
STYLE: (uuid) => `admin/styles/${uuid}`,
|
|
22
|
-
},
|
|
23
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
3
|
-
photoUrl: z.ZodString;
|
|
4
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5
|
-
order: z.ZodNumber;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export declare namespace CreatePhotoSessionStyleCommand {
|
|
8
|
-
const RequestSchema: z.ZodObject<{
|
|
9
|
-
code: z.ZodString;
|
|
10
|
-
title: z.ZodString;
|
|
11
|
-
description: z.ZodOptional<z.ZodString>;
|
|
12
|
-
references: z.ZodArray<z.ZodObject<{
|
|
13
|
-
photoUrl: z.ZodString;
|
|
14
|
-
description: z.ZodOptional<z.ZodString>;
|
|
15
|
-
order: z.ZodNumber;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
19
|
-
const ResponseSchema: z.ZodObject<{
|
|
20
|
-
data: z.ZodObject<{
|
|
21
|
-
uuid: z.ZodString;
|
|
22
|
-
code: z.ZodString;
|
|
23
|
-
title: z.ZodString;
|
|
24
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
references: z.ZodArray<z.ZodObject<{
|
|
26
|
-
uuid: z.ZodString;
|
|
27
|
-
styleId: z.ZodString;
|
|
28
|
-
photoUrl: z.ZodString;
|
|
29
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
-
order: z.ZodNumber;
|
|
31
|
-
createdAt: z.ZodDate;
|
|
32
|
-
updatedAt: z.ZodDate;
|
|
33
|
-
}, z.core.$strip>>;
|
|
34
|
-
createdAt: z.ZodDate;
|
|
35
|
-
updatedAt: z.ZodDate;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
39
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreatePhotoSessionStyleCommand = exports.CreatePhotoSessionStyleReferenceSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../../models");
|
|
6
|
-
exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
|
|
7
|
-
photoUrl: zod_1.z.string(),
|
|
8
|
-
description: zod_1.z.string().optional(),
|
|
9
|
-
order: zod_1.z.number().int().min(0).max(5),
|
|
10
|
-
});
|
|
11
|
-
var CreatePhotoSessionStyleCommand;
|
|
12
|
-
(function (CreatePhotoSessionStyleCommand) {
|
|
13
|
-
CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
|
|
14
|
-
code: zod_1.z.string(),
|
|
15
|
-
title: zod_1.z.string(),
|
|
16
|
-
description: zod_1.z.string().optional(),
|
|
17
|
-
references: zod_1.z.array(exports.CreatePhotoSessionStyleReferenceSchema).max(6),
|
|
18
|
-
});
|
|
19
|
-
CreatePhotoSessionStyleCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
-
data: models_1.PhotoSessionStyleSchema,
|
|
21
|
-
});
|
|
22
|
-
})(CreatePhotoSessionStyleCommand || (exports.CreatePhotoSessionStyleCommand = CreatePhotoSessionStyleCommand = {}));
|