@purpleschool/gptbot-tools 0.2.62 → 0.2.63-stage2
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/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
- package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
- package/build/index.d.ts +3 -3
- package/build/index.js +3 -3
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
- package/build/photo-sessions/commands/admin/index.d.ts +3 -0
- package/build/{sound-generation/queries → photo-sessions/commands/admin}/index.js +3 -3
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
- package/build/{sound-generation/commands/delete-all-sound-generation-jobs.command.d.ts → photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts} +2 -2
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
- package/build/{sound-generation/commands/delete-sound-generation-job-by-uuid.command.d.ts → photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts} +2 -2
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +85 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +29 -0
- package/build/photo-sessions/commands/index.d.ts +10 -0
- package/build/{sound-generation → photo-sessions}/commands/index.js +10 -8
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +305 -0
- package/build/photo-sessions/commands/photo-sessions.command.js +38 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +266 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +20 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +203 -0
- package/build/{sound-generation/commands/set-reaction-to-sound-generation-job.command.js → photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js} +8 -8
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +201 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +239 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +206 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
- package/build/photo-sessions/enums/index.d.ts +3 -0
- package/build/{sound-generation/routes → photo-sessions/enums}/index.js +3 -1
- package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +7 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.js +11 -0
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
- package/build/photo-sessions/models/index.d.ts +5 -0
- package/build/photo-sessions/models/index.js +21 -0
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
- package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
- package/build/photo-sessions/models/photo-session-group.schema.d.ts +116 -0
- package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +169 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +51 -0
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
- package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
- package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +238 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +257 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
- package/build/photo-sessions/queries/index.d.ts +5 -0
- package/build/{sound-generation/models → photo-sessions/queries}/index.js +5 -5
- package/build/photo-sessions/routes/index.d.ts +2 -0
- package/build/{sound-generation/enums → photo-sessions/routes}/index.js +2 -1
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +2 -2
- package/build/tools/enums/tool-content-type.enum.js +1 -1
- package/build/tools/enums/tool-type.enum.d.ts +2 -2
- package/build/tools/enums/tool-type.enum.js +1 -1
- package/build/tools/events/tool-job-complete.event.d.ts +1 -0
- package/build/tools/events/tool-job-failed.event.d.ts +1 -0
- package/build/tools/models/global-tools-config.schema.d.ts +69 -25
- package/build/tools/models/global-tools-config.schema.js +2 -2
- package/build/tools/models/tool-job.schema.d.ts +1 -0
- package/build/tools/models/tool-job.schema.js +1 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +22 -88
- package/build/tools/models/tools-with-configs.schema.js +0 -5
- package/build/tools/queries/get-global-tools-config.query.d.ts +134 -46
- package/build/tools/queries/get-tools-with-configs.query.d.ts +22 -88
- package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
- package/build/tts/commands/create-voice-clone.command.js +21 -0
- package/build/tts/commands/create-voice-design.command.d.ts +40 -0
- package/build/tts/commands/create-voice-design.command.js +20 -0
- package/build/tts/commands/delete-voice.command.d.ts +17 -0
- package/build/tts/commands/delete-voice.command.js +14 -0
- package/build/tts/commands/download-tts-job.command.d.ts +25 -0
- package/build/tts/commands/download-tts-job.command.js +19 -0
- package/build/{sound-generation/commands/get-sound-generation-price.command.d.ts → tts/commands/improve-tts-text.command.d.ts} +6 -8
- package/build/tts/commands/improve-tts-text.command.js +16 -0
- package/build/tts/commands/index.d.ts +7 -0
- package/build/tts/commands/index.js +7 -0
- package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
- package/build/tts/commands/retry-tts-job.command.js +2 -0
- package/build/tts/commands/select-voice-design.command.d.ts +77 -0
- package/build/tts/commands/select-voice-design.command.js +17 -0
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
- package/build/tts/commands/tts.command.d.ts +35 -3
- package/build/tts/commands/tts.command.js +4 -1
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
- package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-title.command.js +2 -0
- package/build/tts/commands/update-voice.command.d.ts +78 -0
- package/build/tts/commands/update-voice.command.js +18 -0
- package/build/tts/enums/index.d.ts +7 -0
- package/build/tts/enums/index.js +7 -0
- package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
- package/build/tts/enums/tts-download-format.enum.js +9 -0
- package/build/tts/enums/voice-category.enum.d.ts +19 -0
- package/build/tts/enums/voice-category.enum.js +23 -0
- package/build/tts/enums/voice-gender.enum.d.ts +4 -0
- package/build/tts/enums/voice-gender.enum.js +8 -0
- package/build/tts/enums/voice-source.enum.d.ts +5 -0
- package/build/tts/enums/voice-source.enum.js +9 -0
- package/build/tts/enums/voice-status.enum.d.ts +5 -0
- package/build/tts/enums/voice-status.enum.js +9 -0
- package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
- package/build/tts/enums/voice-tag-group.enum.js +9 -0
- package/build/tts/enums/voice-tag.enum.d.ts +20 -0
- package/build/tts/enums/voice-tag.enum.js +24 -0
- package/build/tts/models/index.d.ts +7 -0
- package/build/tts/models/index.js +7 -0
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
- package/build/tts/models/tts-config.schema.d.ts +11 -0
- package/build/tts/models/tts-config.schema.js +5 -0
- package/build/tts/models/tts-job.schema.d.ts +34 -2
- package/build/tts/models/tts-job.schema.js +22 -2
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.js +1 -0
- package/build/tts/models/voice-category.schema.d.ts +7 -0
- package/build/tts/models/voice-category.schema.js +9 -0
- package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
- package/build/tts/models/voice-design-draft.schema.js +13 -0
- package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
- package/build/tts/models/voice-design-sample.schema.js +8 -0
- package/build/tts/models/voice-gender.schema.d.ts +7 -0
- package/build/tts/models/voice-gender.schema.js +9 -0
- package/build/tts/models/voice-source.schema.d.ts +7 -0
- package/build/tts/models/voice-source.schema.js +9 -0
- package/build/tts/models/voice-tag.schema.d.ts +9 -0
- package/build/tts/models/voice-tag.schema.js +11 -0
- package/build/tts/models/voice.schema.d.ts +34 -0
- package/build/tts/models/voice.schema.js +30 -0
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
- package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
- package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
- package/build/tts/queries/find-tts-jobs.query.js +1 -0
- package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
- package/build/tts/queries/find-voice-by-id.query.js +17 -0
- package/build/tts/queries/find-voices.query.d.ts +122 -0
- package/build/tts/queries/find-voices.query.js +25 -0
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
- package/build/tts/queries/get-tts-config.query.d.ts +22 -0
- package/build/tts/queries/index.d.ts +2 -0
- package/build/tts/queries/index.js +2 -0
- package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
- package/build/tts/routes/tts.amqp.routes.js +9 -0
- package/package.json +1 -1
- package/build/sound-generation/commands/delete-all-sound-generation-jobs.command.js +0 -14
- package/build/sound-generation/commands/delete-sound-generation-job-by-uuid.command.js +0 -14
- package/build/sound-generation/commands/get-sound-generation-price.command.js +0 -17
- package/build/sound-generation/commands/index.d.ts +0 -8
- package/build/sound-generation/commands/retry-sound-generation-job.command.d.ts +0 -94
- package/build/sound-generation/commands/retry-sound-generation-job.command.js +0 -20
- package/build/sound-generation/commands/set-reaction-to-sound-generation-job.command.d.ts +0 -87
- package/build/sound-generation/commands/sound-generation.command.d.ts +0 -96
- package/build/sound-generation/commands/sound-generation.command.js +0 -27
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.d.ts +0 -85
- package/build/sound-generation/commands/update-sound-generation-job-favorite.command.js +0 -16
- package/build/sound-generation/commands/update-sound-generation-job-title.command.d.ts +0 -85
- package/build/sound-generation/commands/update-sound-generation-job-title.command.js +0 -16
- package/build/sound-generation/enums/index.d.ts +0 -1
- package/build/sound-generation/enums/sound-generation-strategy.enum.d.ts +0 -3
- package/build/sound-generation/enums/sound-generation-strategy.enum.js +0 -7
- package/build/sound-generation/models/index.d.ts +0 -5
- package/build/sound-generation/models/sound-generation-config.schema.d.ts +0 -34
- package/build/sound-generation/models/sound-generation-config.schema.js +0 -8
- package/build/sound-generation/models/sound-generation-job.schema.d.ts +0 -39
- package/build/sound-generation/models/sound-generation-job.schema.js +0 -34
- package/build/sound-generation/models/sound-generation-model.schema.d.ts +0 -42
- package/build/sound-generation/models/sound-generation-model.schema.js +0 -28
- package/build/sound-generation/models/sound-generation-params.schema.d.ts +0 -8
- package/build/sound-generation/models/sound-generation-params.schema.js +0 -10
- package/build/sound-generation/models/sound-generation-result.schema.d.ts +0 -7
- package/build/sound-generation/models/sound-generation-result.schema.js +0 -9
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.d.ts +0 -84
- package/build/sound-generation/queries/find-sound-generation-job-by-id.query.js +0 -15
- package/build/sound-generation/queries/find-sound-generation-jobs.query.d.ts +0 -102
- package/build/sound-generation/queries/find-sound-generation-jobs.query.js +0 -35
- package/build/sound-generation/queries/get-sound-generation-config.query.d.ts +0 -76
- package/build/sound-generation/queries/get-sound-generation-config.query.js +0 -10
- package/build/sound-generation/queries/index.d.ts +0 -3
- package/build/sound-generation/routes/index.d.ts +0 -1
- package/build/sound-generation/routes/sound-generation.amqp.routes.d.ts +0 -13
- package/build/sound-generation/routes/sound-generation.amqp.routes.js +0 -16
- /package/build/{sound-generation → photo-sessions}/index.d.ts +0 -0
- /package/build/{sound-generation → photo-sessions}/index.js +0 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
export declare namespace PhotoSessionsCommand {
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
6
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
scope: z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>;
|
|
9
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
10
|
+
modelId: z.ZodString;
|
|
11
|
+
params: z.ZodObject<{
|
|
12
|
+
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
13
|
+
uuid: z.ZodString;
|
|
14
|
+
url: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
mimeType: z.ZodString;
|
|
17
|
+
type: z.ZodString;
|
|
18
|
+
size: z.ZodNumber;
|
|
19
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
+
uuid: z.ZodString;
|
|
27
|
+
url: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
mimeType: z.ZodString;
|
|
30
|
+
type: z.ZodString;
|
|
31
|
+
size: z.ZodNumber;
|
|
32
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
33
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
+
uuid: z.ZodString;
|
|
38
|
+
url: z.ZodString;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
mimeType: z.ZodString;
|
|
41
|
+
type: z.ZodString;
|
|
42
|
+
size: z.ZodNumber;
|
|
43
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
44
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
|
+
uuid: z.ZodString;
|
|
49
|
+
url: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
mimeType: z.ZodString;
|
|
52
|
+
type: z.ZodString;
|
|
53
|
+
size: z.ZodNumber;
|
|
54
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
55
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
|
+
uuid: z.ZodString;
|
|
60
|
+
url: z.ZodString;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
mimeType: z.ZodString;
|
|
63
|
+
type: z.ZodString;
|
|
64
|
+
size: z.ZodNumber;
|
|
65
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
66
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
67
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
userHasActiveSubscriptionOrProduct: z.ZodBoolean;
|
|
72
|
+
tokenReservationId: z.ZodString;
|
|
73
|
+
precalculatedPrice: z.ZodNumber;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
76
|
+
const ResponseSchema: z.ZodObject<{
|
|
77
|
+
isSuccess: z.ZodBoolean;
|
|
78
|
+
data: z.ZodOptional<z.ZodType<{
|
|
79
|
+
uuid: string;
|
|
80
|
+
title: string;
|
|
81
|
+
prompt: string;
|
|
82
|
+
status: import("..").PHOTO_SESSION_GROUP_STATUS;
|
|
83
|
+
error: string | null;
|
|
84
|
+
modelId: string;
|
|
85
|
+
price: number;
|
|
86
|
+
tokenReservationId: string | null;
|
|
87
|
+
params: unknown;
|
|
88
|
+
attempts: unknown[];
|
|
89
|
+
scope: JOB_SCOPE;
|
|
90
|
+
userId: string | null;
|
|
91
|
+
unregisteredUserId: string | null;
|
|
92
|
+
isDeleted: boolean;
|
|
93
|
+
subJobs: {
|
|
94
|
+
uuid: string;
|
|
95
|
+
prompt: string;
|
|
96
|
+
reaction: import("../..").USER_REACTION | null;
|
|
97
|
+
dislikeReason: string | null;
|
|
98
|
+
externalId: string | null;
|
|
99
|
+
title: string;
|
|
100
|
+
status: import("../..").JOB_STATUS;
|
|
101
|
+
error: string | null;
|
|
102
|
+
modelId: string;
|
|
103
|
+
groupId: string;
|
|
104
|
+
previewUrl: string | null;
|
|
105
|
+
params: {
|
|
106
|
+
attachedFiles?: {
|
|
107
|
+
uuid: string;
|
|
108
|
+
url: string;
|
|
109
|
+
name: string;
|
|
110
|
+
mimeType: string;
|
|
111
|
+
type: string;
|
|
112
|
+
size: number;
|
|
113
|
+
duration?: number | null | undefined;
|
|
114
|
+
content?: string | null | undefined;
|
|
115
|
+
contentLength?: number | null | undefined;
|
|
116
|
+
}[] | undefined;
|
|
117
|
+
imageUrls?: string[] | undefined;
|
|
118
|
+
referenceFile?: {
|
|
119
|
+
uuid: string;
|
|
120
|
+
url: string;
|
|
121
|
+
name: string;
|
|
122
|
+
mimeType: string;
|
|
123
|
+
type: string;
|
|
124
|
+
size: number;
|
|
125
|
+
duration?: number | null | undefined;
|
|
126
|
+
content?: string | null | undefined;
|
|
127
|
+
contentLength?: number | null | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
styleId?: string | null | undefined;
|
|
130
|
+
referenceId?: string | null | undefined;
|
|
131
|
+
referenceIds?: string[] | undefined;
|
|
132
|
+
clothingPhotos?: {
|
|
133
|
+
uuid: string;
|
|
134
|
+
url: string;
|
|
135
|
+
name: string;
|
|
136
|
+
mimeType: string;
|
|
137
|
+
type: string;
|
|
138
|
+
size: number;
|
|
139
|
+
duration?: number | null | undefined;
|
|
140
|
+
content?: string | null | undefined;
|
|
141
|
+
contentLength?: number | null | undefined;
|
|
142
|
+
}[] | undefined;
|
|
143
|
+
hairstylePhotos?: {
|
|
144
|
+
uuid: string;
|
|
145
|
+
url: string;
|
|
146
|
+
name: string;
|
|
147
|
+
mimeType: string;
|
|
148
|
+
type: string;
|
|
149
|
+
size: number;
|
|
150
|
+
duration?: number | null | undefined;
|
|
151
|
+
content?: string | null | undefined;
|
|
152
|
+
contentLength?: number | null | undefined;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
accessoriesPhotos?: {
|
|
155
|
+
uuid: string;
|
|
156
|
+
url: string;
|
|
157
|
+
name: string;
|
|
158
|
+
mimeType: string;
|
|
159
|
+
type: string;
|
|
160
|
+
size: number;
|
|
161
|
+
duration?: number | null | undefined;
|
|
162
|
+
content?: string | null | undefined;
|
|
163
|
+
contentLength?: number | null | undefined;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
aspectRatio?: string | undefined;
|
|
166
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
167
|
+
};
|
|
168
|
+
imageUrls: string[] | null;
|
|
169
|
+
attempts: {
|
|
170
|
+
order: number;
|
|
171
|
+
attemptId?: string | undefined;
|
|
172
|
+
status: import("../..").JOB_STATUS;
|
|
173
|
+
error: string | null;
|
|
174
|
+
timestamp: Date;
|
|
175
|
+
}[];
|
|
176
|
+
userId?: string | null | undefined;
|
|
177
|
+
unregisteredUserId?: string | null | undefined;
|
|
178
|
+
isPublished: boolean;
|
|
179
|
+
postId: string | null;
|
|
180
|
+
isDeleted: boolean;
|
|
181
|
+
isFavorite: boolean;
|
|
182
|
+
createdAt: Date;
|
|
183
|
+
completedAt?: Date | null | undefined;
|
|
184
|
+
updatedAt: Date;
|
|
185
|
+
}[];
|
|
186
|
+
createdAt: Date;
|
|
187
|
+
completedAt: Date | null;
|
|
188
|
+
updatedAt: Date;
|
|
189
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
190
|
+
uuid: string;
|
|
191
|
+
title: string;
|
|
192
|
+
prompt: string;
|
|
193
|
+
status: import("..").PHOTO_SESSION_GROUP_STATUS;
|
|
194
|
+
error: string | null;
|
|
195
|
+
modelId: string;
|
|
196
|
+
price: number;
|
|
197
|
+
tokenReservationId: string | null;
|
|
198
|
+
params: unknown;
|
|
199
|
+
attempts: unknown[];
|
|
200
|
+
scope: JOB_SCOPE;
|
|
201
|
+
userId: string | null;
|
|
202
|
+
unregisteredUserId: string | null;
|
|
203
|
+
isDeleted: boolean;
|
|
204
|
+
subJobs: {
|
|
205
|
+
uuid: string;
|
|
206
|
+
prompt: string;
|
|
207
|
+
reaction: import("../..").USER_REACTION | null;
|
|
208
|
+
dislikeReason: string | null;
|
|
209
|
+
externalId: string | null;
|
|
210
|
+
title: string;
|
|
211
|
+
status: import("../..").JOB_STATUS;
|
|
212
|
+
error: string | null;
|
|
213
|
+
modelId: string;
|
|
214
|
+
groupId: string;
|
|
215
|
+
previewUrl: string | null;
|
|
216
|
+
params: {
|
|
217
|
+
attachedFiles?: {
|
|
218
|
+
uuid: string;
|
|
219
|
+
url: string;
|
|
220
|
+
name: string;
|
|
221
|
+
mimeType: string;
|
|
222
|
+
type: string;
|
|
223
|
+
size: number;
|
|
224
|
+
duration?: number | null | undefined;
|
|
225
|
+
content?: string | null | undefined;
|
|
226
|
+
contentLength?: number | null | undefined;
|
|
227
|
+
}[] | undefined;
|
|
228
|
+
imageUrls?: string[] | undefined;
|
|
229
|
+
referenceFile?: {
|
|
230
|
+
uuid: string;
|
|
231
|
+
url: string;
|
|
232
|
+
name: string;
|
|
233
|
+
mimeType: string;
|
|
234
|
+
type: string;
|
|
235
|
+
size: number;
|
|
236
|
+
duration?: number | null | undefined;
|
|
237
|
+
content?: string | null | undefined;
|
|
238
|
+
contentLength?: number | null | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
styleId?: string | null | undefined;
|
|
241
|
+
referenceId?: string | null | undefined;
|
|
242
|
+
referenceIds?: string[] | undefined;
|
|
243
|
+
clothingPhotos?: {
|
|
244
|
+
uuid: string;
|
|
245
|
+
url: string;
|
|
246
|
+
name: string;
|
|
247
|
+
mimeType: string;
|
|
248
|
+
type: string;
|
|
249
|
+
size: number;
|
|
250
|
+
duration?: number | null | undefined;
|
|
251
|
+
content?: string | null | undefined;
|
|
252
|
+
contentLength?: number | null | undefined;
|
|
253
|
+
}[] | undefined;
|
|
254
|
+
hairstylePhotos?: {
|
|
255
|
+
uuid: string;
|
|
256
|
+
url: string;
|
|
257
|
+
name: string;
|
|
258
|
+
mimeType: string;
|
|
259
|
+
type: string;
|
|
260
|
+
size: number;
|
|
261
|
+
duration?: number | null | undefined;
|
|
262
|
+
content?: string | null | undefined;
|
|
263
|
+
contentLength?: number | null | undefined;
|
|
264
|
+
}[] | undefined;
|
|
265
|
+
accessoriesPhotos?: {
|
|
266
|
+
uuid: string;
|
|
267
|
+
url: string;
|
|
268
|
+
name: string;
|
|
269
|
+
mimeType: string;
|
|
270
|
+
type: string;
|
|
271
|
+
size: number;
|
|
272
|
+
duration?: number | null | undefined;
|
|
273
|
+
content?: string | null | undefined;
|
|
274
|
+
contentLength?: number | null | undefined;
|
|
275
|
+
}[] | undefined;
|
|
276
|
+
aspectRatio?: string | undefined;
|
|
277
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
278
|
+
};
|
|
279
|
+
imageUrls: string[] | null;
|
|
280
|
+
attempts: {
|
|
281
|
+
order: number;
|
|
282
|
+
attemptId?: string | undefined;
|
|
283
|
+
status: import("../..").JOB_STATUS;
|
|
284
|
+
error: string | null;
|
|
285
|
+
timestamp: Date;
|
|
286
|
+
}[];
|
|
287
|
+
userId?: string | null | undefined;
|
|
288
|
+
unregisteredUserId?: string | null | undefined;
|
|
289
|
+
isPublished: boolean;
|
|
290
|
+
postId: string | null;
|
|
291
|
+
isDeleted: boolean;
|
|
292
|
+
isFavorite: boolean;
|
|
293
|
+
createdAt: Date;
|
|
294
|
+
completedAt?: Date | null | undefined;
|
|
295
|
+
updatedAt: Date;
|
|
296
|
+
}[];
|
|
297
|
+
createdAt: Date;
|
|
298
|
+
completedAt: Date | null;
|
|
299
|
+
updatedAt: Date;
|
|
300
|
+
}, unknown>>>;
|
|
301
|
+
code: z.ZodOptional<z.ZodString>;
|
|
302
|
+
message: z.ZodOptional<z.ZodString>;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
305
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PhotoSessionsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
7
|
+
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
8
|
+
const models_1 = require("../models");
|
|
9
|
+
var PhotoSessionsCommand;
|
|
10
|
+
(function (PhotoSessionsCommand) {
|
|
11
|
+
PhotoSessionsCommand.RequestSchema = zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
locale: locale_schema_1.LocaleSchema,
|
|
14
|
+
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
16
|
+
scope: zod_1.z.enum(common_1.JOB_SCOPE).optional(),
|
|
17
|
+
prompt: zod_1.z.string().optional(),
|
|
18
|
+
modelId: zod_1.z.string(),
|
|
19
|
+
params: zod_1.z.object({
|
|
20
|
+
attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).min(1).max(3),
|
|
21
|
+
styleId: zod_1.z.string().uuid().nullable().optional(),
|
|
22
|
+
referenceIds: zod_1.z.array(zod_1.z.string().uuid()).max(6).optional(),
|
|
23
|
+
customStylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(6).optional(),
|
|
24
|
+
clothingPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
25
|
+
hairstylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
26
|
+
accessoriesPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
27
|
+
aspectRatio: zod_1.z.string().optional(),
|
|
28
|
+
}),
|
|
29
|
+
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
30
|
+
tokenReservationId: zod_1.z.string().uuid(),
|
|
31
|
+
precalculatedPrice: zod_1.z.number(),
|
|
32
|
+
})
|
|
33
|
+
.refine((value) => Boolean(value.userId) !== Boolean(value.unregisteredUserId), {
|
|
34
|
+
message: 'Exactly one owner identity is required',
|
|
35
|
+
path: ['userId'],
|
|
36
|
+
});
|
|
37
|
+
PhotoSessionsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionGroupSchema);
|
|
38
|
+
})(PhotoSessionsCommand || (exports.PhotoSessionsCommand = PhotoSessionsCommand = {}));
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace RetryPhotoSessionsJobCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
userHasActiveSubscriptionOrProduct: z.ZodBoolean;
|
|
9
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
10
|
+
params: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
+
uuid: z.ZodString;
|
|
13
|
+
url: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
mimeType: z.ZodString;
|
|
16
|
+
type: z.ZodString;
|
|
17
|
+
size: z.ZodNumber;
|
|
18
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
21
|
+
}, z.core.$strip>>>;
|
|
22
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
referenceFile: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
uuid: z.ZodString;
|
|
25
|
+
url: z.ZodString;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
mimeType: z.ZodString;
|
|
28
|
+
type: z.ZodString;
|
|
29
|
+
size: z.ZodNumber;
|
|
30
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
31
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
|
+
uuid: z.ZodString;
|
|
39
|
+
url: z.ZodString;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
mimeType: z.ZodString;
|
|
42
|
+
type: z.ZodString;
|
|
43
|
+
size: z.ZodNumber;
|
|
44
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
45
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
46
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
+
uuid: z.ZodString;
|
|
50
|
+
url: z.ZodString;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
mimeType: z.ZodString;
|
|
53
|
+
type: z.ZodString;
|
|
54
|
+
size: z.ZodNumber;
|
|
55
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
56
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
57
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
|
+
uuid: z.ZodString;
|
|
61
|
+
url: z.ZodString;
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
mimeType: z.ZodString;
|
|
64
|
+
type: z.ZodString;
|
|
65
|
+
size: z.ZodNumber;
|
|
66
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
67
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
68
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
69
|
+
}, z.core.$strip>>>;
|
|
70
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
71
|
+
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
75
|
+
const ResponseSchema: z.ZodObject<{
|
|
76
|
+
isSuccess: z.ZodBoolean;
|
|
77
|
+
data: z.ZodOptional<z.ZodType<{
|
|
78
|
+
uuid: string;
|
|
79
|
+
prompt: string;
|
|
80
|
+
reaction: import("../..").USER_REACTION | null;
|
|
81
|
+
dislikeReason: string | null;
|
|
82
|
+
externalId: string | null;
|
|
83
|
+
title: string;
|
|
84
|
+
status: import("../..").JOB_STATUS;
|
|
85
|
+
error: string | null;
|
|
86
|
+
modelId: string;
|
|
87
|
+
groupId: string;
|
|
88
|
+
previewUrl: string | null;
|
|
89
|
+
params: {
|
|
90
|
+
attachedFiles?: {
|
|
91
|
+
uuid: string;
|
|
92
|
+
url: string;
|
|
93
|
+
name: string;
|
|
94
|
+
mimeType: string;
|
|
95
|
+
type: string;
|
|
96
|
+
size: number;
|
|
97
|
+
duration?: number | null | undefined;
|
|
98
|
+
content?: string | null | undefined;
|
|
99
|
+
contentLength?: number | null | undefined;
|
|
100
|
+
}[] | undefined;
|
|
101
|
+
imageUrls?: string[] | undefined;
|
|
102
|
+
referenceFile?: {
|
|
103
|
+
uuid: string;
|
|
104
|
+
url: string;
|
|
105
|
+
name: string;
|
|
106
|
+
mimeType: string;
|
|
107
|
+
type: string;
|
|
108
|
+
size: number;
|
|
109
|
+
duration?: number | null | undefined;
|
|
110
|
+
content?: string | null | undefined;
|
|
111
|
+
contentLength?: number | null | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
styleId?: string | null | undefined;
|
|
114
|
+
referenceId?: string | null | undefined;
|
|
115
|
+
referenceIds?: string[] | undefined;
|
|
116
|
+
clothingPhotos?: {
|
|
117
|
+
uuid: string;
|
|
118
|
+
url: string;
|
|
119
|
+
name: string;
|
|
120
|
+
mimeType: string;
|
|
121
|
+
type: string;
|
|
122
|
+
size: number;
|
|
123
|
+
duration?: number | null | undefined;
|
|
124
|
+
content?: string | null | undefined;
|
|
125
|
+
contentLength?: number | null | undefined;
|
|
126
|
+
}[] | undefined;
|
|
127
|
+
hairstylePhotos?: {
|
|
128
|
+
uuid: string;
|
|
129
|
+
url: string;
|
|
130
|
+
name: string;
|
|
131
|
+
mimeType: string;
|
|
132
|
+
type: string;
|
|
133
|
+
size: number;
|
|
134
|
+
duration?: number | null | undefined;
|
|
135
|
+
content?: string | null | undefined;
|
|
136
|
+
contentLength?: number | null | undefined;
|
|
137
|
+
}[] | undefined;
|
|
138
|
+
accessoriesPhotos?: {
|
|
139
|
+
uuid: string;
|
|
140
|
+
url: string;
|
|
141
|
+
name: string;
|
|
142
|
+
mimeType: string;
|
|
143
|
+
type: string;
|
|
144
|
+
size: number;
|
|
145
|
+
duration?: number | null | undefined;
|
|
146
|
+
content?: string | null | undefined;
|
|
147
|
+
contentLength?: number | null | undefined;
|
|
148
|
+
}[] | undefined;
|
|
149
|
+
aspectRatio?: string | undefined;
|
|
150
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
151
|
+
};
|
|
152
|
+
imageUrls: string[] | null;
|
|
153
|
+
attempts: {
|
|
154
|
+
order: number;
|
|
155
|
+
attemptId?: string | undefined;
|
|
156
|
+
status: import("../..").JOB_STATUS;
|
|
157
|
+
error: string | null;
|
|
158
|
+
timestamp: Date;
|
|
159
|
+
}[];
|
|
160
|
+
userId?: string | null | undefined;
|
|
161
|
+
unregisteredUserId?: string | null | undefined;
|
|
162
|
+
isPublished: boolean;
|
|
163
|
+
postId: string | null;
|
|
164
|
+
isDeleted: boolean;
|
|
165
|
+
isFavorite: boolean;
|
|
166
|
+
createdAt: Date;
|
|
167
|
+
completedAt?: Date | null | undefined;
|
|
168
|
+
updatedAt: Date;
|
|
169
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
170
|
+
uuid: string;
|
|
171
|
+
prompt: string;
|
|
172
|
+
reaction: import("../..").USER_REACTION | null;
|
|
173
|
+
dislikeReason: string | null;
|
|
174
|
+
externalId: string | null;
|
|
175
|
+
title: string;
|
|
176
|
+
status: import("../..").JOB_STATUS;
|
|
177
|
+
error: string | null;
|
|
178
|
+
modelId: string;
|
|
179
|
+
groupId: string;
|
|
180
|
+
previewUrl: string | null;
|
|
181
|
+
params: {
|
|
182
|
+
attachedFiles?: {
|
|
183
|
+
uuid: string;
|
|
184
|
+
url: string;
|
|
185
|
+
name: string;
|
|
186
|
+
mimeType: string;
|
|
187
|
+
type: string;
|
|
188
|
+
size: number;
|
|
189
|
+
duration?: number | null | undefined;
|
|
190
|
+
content?: string | null | undefined;
|
|
191
|
+
contentLength?: number | null | undefined;
|
|
192
|
+
}[] | undefined;
|
|
193
|
+
imageUrls?: string[] | undefined;
|
|
194
|
+
referenceFile?: {
|
|
195
|
+
uuid: string;
|
|
196
|
+
url: string;
|
|
197
|
+
name: string;
|
|
198
|
+
mimeType: string;
|
|
199
|
+
type: string;
|
|
200
|
+
size: number;
|
|
201
|
+
duration?: number | null | undefined;
|
|
202
|
+
content?: string | null | undefined;
|
|
203
|
+
contentLength?: number | null | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
styleId?: string | null | undefined;
|
|
206
|
+
referenceId?: string | null | undefined;
|
|
207
|
+
referenceIds?: string[] | undefined;
|
|
208
|
+
clothingPhotos?: {
|
|
209
|
+
uuid: string;
|
|
210
|
+
url: string;
|
|
211
|
+
name: string;
|
|
212
|
+
mimeType: string;
|
|
213
|
+
type: string;
|
|
214
|
+
size: number;
|
|
215
|
+
duration?: number | null | undefined;
|
|
216
|
+
content?: string | null | undefined;
|
|
217
|
+
contentLength?: number | null | undefined;
|
|
218
|
+
}[] | undefined;
|
|
219
|
+
hairstylePhotos?: {
|
|
220
|
+
uuid: string;
|
|
221
|
+
url: string;
|
|
222
|
+
name: string;
|
|
223
|
+
mimeType: string;
|
|
224
|
+
type: string;
|
|
225
|
+
size: number;
|
|
226
|
+
duration?: number | null | undefined;
|
|
227
|
+
content?: string | null | undefined;
|
|
228
|
+
contentLength?: number | null | undefined;
|
|
229
|
+
}[] | undefined;
|
|
230
|
+
accessoriesPhotos?: {
|
|
231
|
+
uuid: string;
|
|
232
|
+
url: string;
|
|
233
|
+
name: string;
|
|
234
|
+
mimeType: string;
|
|
235
|
+
type: string;
|
|
236
|
+
size: number;
|
|
237
|
+
duration?: number | null | undefined;
|
|
238
|
+
content?: string | null | undefined;
|
|
239
|
+
contentLength?: number | null | undefined;
|
|
240
|
+
}[] | undefined;
|
|
241
|
+
aspectRatio?: string | undefined;
|
|
242
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
243
|
+
};
|
|
244
|
+
imageUrls: string[] | null;
|
|
245
|
+
attempts: {
|
|
246
|
+
order: number;
|
|
247
|
+
attemptId?: string | undefined;
|
|
248
|
+
status: import("../..").JOB_STATUS;
|
|
249
|
+
error: string | null;
|
|
250
|
+
timestamp: Date;
|
|
251
|
+
}[];
|
|
252
|
+
userId?: string | null | undefined;
|
|
253
|
+
unregisteredUserId?: string | null | undefined;
|
|
254
|
+
isPublished: boolean;
|
|
255
|
+
postId: string | null;
|
|
256
|
+
isDeleted: boolean;
|
|
257
|
+
isFavorite: boolean;
|
|
258
|
+
createdAt: Date;
|
|
259
|
+
completedAt?: Date | null | undefined;
|
|
260
|
+
updatedAt: Date;
|
|
261
|
+
}, unknown>>>;
|
|
262
|
+
code: z.ZodOptional<z.ZodString>;
|
|
263
|
+
message: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
266
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryPhotoSessionsJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const models_1 = require("../models");
|
|
7
|
+
const common_1 = require("../../common");
|
|
8
|
+
var RetryPhotoSessionsJobCommand;
|
|
9
|
+
(function (RetryPhotoSessionsJobCommand) {
|
|
10
|
+
RetryPhotoSessionsJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: common_1.LocaleSchema,
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
|
+
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
16
|
+
prompt: zod_1.z.string().optional(),
|
|
17
|
+
params: models_1.PhotoSessionJobParamsSchema.optional(),
|
|
18
|
+
});
|
|
19
|
+
RetryPhotoSessionsJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
|
|
20
|
+
})(RetryPhotoSessionsJobCommand || (exports.RetryPhotoSessionsJobCommand = RetryPhotoSessionsJobCommand = {}));
|