@purpleschool/gptbot-tools 0.2.63 → 0.2.64-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-group.schema.d.ts +0 -1
- package/build/tools/models/tool-group.schema.js +0 -1
- 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/find-grouped-tools.query.d.ts +0 -2
- 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,142 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetPhotoSessionsConfigQuery {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
isSuccess: z.ZodBoolean;
|
|
9
|
+
data: z.ZodOptional<z.ZodType<{
|
|
10
|
+
models: {
|
|
11
|
+
uuid: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
aiModel: string;
|
|
15
|
+
isNew: boolean;
|
|
16
|
+
tierLabel: string;
|
|
17
|
+
pricePerImage: number;
|
|
18
|
+
order: number;
|
|
19
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
20
|
+
icons: {
|
|
21
|
+
light: {
|
|
22
|
+
svg: string;
|
|
23
|
+
png: string;
|
|
24
|
+
};
|
|
25
|
+
dark: {
|
|
26
|
+
svg: string;
|
|
27
|
+
png: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
strategy: import("..").PHOTO_SESSION_STRATEGY;
|
|
31
|
+
maxInputLength: number;
|
|
32
|
+
params: {
|
|
33
|
+
imageAttachment: {
|
|
34
|
+
supported: boolean;
|
|
35
|
+
maxImages: number;
|
|
36
|
+
acceptedTypes: string[];
|
|
37
|
+
};
|
|
38
|
+
aspectRatio: Record<string, {
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
43
|
+
pricingRules: {
|
|
44
|
+
condition: {
|
|
45
|
+
withoutSub?: boolean | undefined;
|
|
46
|
+
};
|
|
47
|
+
value: number;
|
|
48
|
+
}[];
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
updatedAt: Date;
|
|
51
|
+
}[];
|
|
52
|
+
styles: {
|
|
53
|
+
uuid: string;
|
|
54
|
+
code: string;
|
|
55
|
+
title: string;
|
|
56
|
+
description?: string | null | undefined;
|
|
57
|
+
references: {
|
|
58
|
+
uuid: string;
|
|
59
|
+
styleId: string;
|
|
60
|
+
photoUrl: string;
|
|
61
|
+
description?: string | null | undefined;
|
|
62
|
+
order: number;
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
updatedAt: Date;
|
|
65
|
+
}[];
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
updatedAt: Date;
|
|
68
|
+
}[];
|
|
69
|
+
looks: {
|
|
70
|
+
type: import("..").PHOTO_SESSION_LOOK_TYPE;
|
|
71
|
+
maxPhotos: number;
|
|
72
|
+
}[];
|
|
73
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
74
|
+
models: {
|
|
75
|
+
uuid: string;
|
|
76
|
+
title: string;
|
|
77
|
+
description: string;
|
|
78
|
+
aiModel: string;
|
|
79
|
+
isNew: boolean;
|
|
80
|
+
tierLabel: string;
|
|
81
|
+
pricePerImage: number;
|
|
82
|
+
order: number;
|
|
83
|
+
status: import("../..").TOOL_MODEL_STATUS;
|
|
84
|
+
icons: {
|
|
85
|
+
light: {
|
|
86
|
+
svg: string;
|
|
87
|
+
png: string;
|
|
88
|
+
};
|
|
89
|
+
dark: {
|
|
90
|
+
svg: string;
|
|
91
|
+
png: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
strategy: import("..").PHOTO_SESSION_STRATEGY;
|
|
95
|
+
maxInputLength: number;
|
|
96
|
+
params: {
|
|
97
|
+
imageAttachment: {
|
|
98
|
+
supported: boolean;
|
|
99
|
+
maxImages: number;
|
|
100
|
+
acceptedTypes: string[];
|
|
101
|
+
};
|
|
102
|
+
aspectRatio: Record<string, {
|
|
103
|
+
width: number;
|
|
104
|
+
height: number;
|
|
105
|
+
}>;
|
|
106
|
+
};
|
|
107
|
+
pricingRules: {
|
|
108
|
+
condition: {
|
|
109
|
+
withoutSub?: boolean | undefined;
|
|
110
|
+
};
|
|
111
|
+
value: number;
|
|
112
|
+
}[];
|
|
113
|
+
createdAt: Date;
|
|
114
|
+
updatedAt: Date;
|
|
115
|
+
}[];
|
|
116
|
+
styles: {
|
|
117
|
+
uuid: string;
|
|
118
|
+
code: string;
|
|
119
|
+
title: string;
|
|
120
|
+
description?: string | null | undefined;
|
|
121
|
+
references: {
|
|
122
|
+
uuid: string;
|
|
123
|
+
styleId: string;
|
|
124
|
+
photoUrl: string;
|
|
125
|
+
description?: string | null | undefined;
|
|
126
|
+
order: number;
|
|
127
|
+
createdAt: Date;
|
|
128
|
+
updatedAt: Date;
|
|
129
|
+
}[];
|
|
130
|
+
createdAt: Date;
|
|
131
|
+
updatedAt: Date;
|
|
132
|
+
}[];
|
|
133
|
+
looks: {
|
|
134
|
+
type: import("..").PHOTO_SESSION_LOOK_TYPE;
|
|
135
|
+
maxPhotos: number;
|
|
136
|
+
}[];
|
|
137
|
+
}, unknown>>>;
|
|
138
|
+
code: z.ZodOptional<z.ZodString>;
|
|
139
|
+
message: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
142
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPhotoSessionsConfigQuery = void 0;
|
|
4
|
+
const common_1 = require("../../common");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
var GetPhotoSessionsConfigQuery;
|
|
7
|
+
(function (GetPhotoSessionsConfigQuery) {
|
|
8
|
+
GetPhotoSessionsConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
9
|
+
GetPhotoSessionsConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.PhotoSessionConfigSchema);
|
|
10
|
+
})(GetPhotoSessionsConfigQuery || (exports.GetPhotoSessionsConfigQuery = GetPhotoSessionsConfigQuery = {}));
|
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./find-photo-sessions-job-by-id.query"), exports);
|
|
18
|
+
__exportStar(require("./find-photo-sessions-jobs.query"), exports);
|
|
19
|
+
__exportStar(require("./get-photo-sessions-config.query"), exports);
|
|
20
|
+
__exportStar(require("./find-photo-session-styles.query"), exports);
|
|
21
|
+
__exportStar(require("./find-photo-session-style-by-id.query"), exports);
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./photo-sessions.amqp.routes"), exports);
|
|
18
|
+
__exportStar(require("./photo-sessions.http.routes"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const PHOTO_SESSIONS_AMQP_ROUTES: {
|
|
2
|
+
readonly EXECUTE: 'tools.photo-sessions.execute.rpc';
|
|
3
|
+
readonly GET_PRICE: 'tools.photo-sessions.get-price.rpc';
|
|
4
|
+
readonly CONFIG: 'tools.photo-sessions.config.rpc';
|
|
5
|
+
readonly GET_JOB: 'tools.photo-sessions.jobs.get.rpc';
|
|
6
|
+
readonly LIST_JOBS: 'tools.photo-sessions.jobs.list.rpc';
|
|
7
|
+
readonly SET_REACTION: 'tools.photo-sessions.jobs.set-reaction.rpc';
|
|
8
|
+
readonly UPDATE_TITLE: 'tools.photo-sessions.jobs.update-title.rpc';
|
|
9
|
+
readonly UPDATE_FAVORITE: 'tools.photo-sessions.jobs.update-favorite.rpc';
|
|
10
|
+
readonly SOFT_DELETE: 'tools.photo-sessions.jobs.soft-delete.rpc';
|
|
11
|
+
readonly SOFT_DELETE_ALL: 'tools.photo-sessions.jobs.soft-delete-all.rpc';
|
|
12
|
+
readonly RETRY: 'tools.photo-sessions.jobs.retry.rpc';
|
|
13
|
+
readonly UPDATE_JOB: 'tools.photo-sessions.jobs.update.rpc';
|
|
14
|
+
readonly LIST_STYLES: 'tools.photo-sessions.styles.list.rpc';
|
|
15
|
+
readonly GET_STYLE: 'tools.photo-sessions.styles.get.rpc';
|
|
16
|
+
readonly CREATE_STYLE: 'tools.photo-sessions.styles.create.rpc';
|
|
17
|
+
readonly UPDATE_STYLE: 'tools.photo-sessions.styles.update.rpc';
|
|
18
|
+
readonly DELETE_STYLE: 'tools.photo-sessions.styles.delete.rpc';
|
|
19
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PHOTO_SESSIONS_AMQP_ROUTES = void 0;
|
|
4
|
+
exports.PHOTO_SESSIONS_AMQP_ROUTES = {
|
|
5
|
+
EXECUTE: 'tools.photo-sessions.execute.rpc',
|
|
6
|
+
GET_PRICE: 'tools.photo-sessions.get-price.rpc',
|
|
7
|
+
CONFIG: 'tools.photo-sessions.config.rpc',
|
|
8
|
+
GET_JOB: 'tools.photo-sessions.jobs.get.rpc',
|
|
9
|
+
LIST_JOBS: 'tools.photo-sessions.jobs.list.rpc',
|
|
10
|
+
SET_REACTION: 'tools.photo-sessions.jobs.set-reaction.rpc',
|
|
11
|
+
UPDATE_TITLE: 'tools.photo-sessions.jobs.update-title.rpc',
|
|
12
|
+
UPDATE_FAVORITE: 'tools.photo-sessions.jobs.update-favorite.rpc',
|
|
13
|
+
SOFT_DELETE: 'tools.photo-sessions.jobs.soft-delete.rpc',
|
|
14
|
+
SOFT_DELETE_ALL: 'tools.photo-sessions.jobs.soft-delete-all.rpc',
|
|
15
|
+
RETRY: 'tools.photo-sessions.jobs.retry.rpc',
|
|
16
|
+
UPDATE_JOB: 'tools.photo-sessions.jobs.update.rpc',
|
|
17
|
+
LIST_STYLES: 'tools.photo-sessions.styles.list.rpc',
|
|
18
|
+
GET_STYLE: 'tools.photo-sessions.styles.get.rpc',
|
|
19
|
+
CREATE_STYLE: 'tools.photo-sessions.styles.create.rpc',
|
|
20
|
+
UPDATE_STYLE: 'tools.photo-sessions.styles.update.rpc',
|
|
21
|
+
DELETE_STYLE: 'tools.photo-sessions.styles.delete.rpc',
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PHOTO_SESSIONS_CONTROLLER = "photo-sessions";
|
|
@@ -16,6 +16,6 @@ export declare enum TOOL_CONTENT_TYPE {
|
|
|
16
16
|
SPELL_CORRECTOR = "SPELL_CORRECTOR",
|
|
17
17
|
DIAGRAMS = "DIAGRAMS",
|
|
18
18
|
HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
PHOTO_SESSIONS = "PHOTO_SESSIONS",
|
|
20
|
+
IMAGE_RECOGNITION = "IMAGE_RECOGNITION"
|
|
21
21
|
}
|
|
@@ -20,6 +20,6 @@ var TOOL_CONTENT_TYPE;
|
|
|
20
20
|
TOOL_CONTENT_TYPE["SPELL_CORRECTOR"] = "SPELL_CORRECTOR";
|
|
21
21
|
TOOL_CONTENT_TYPE["DIAGRAMS"] = "DIAGRAMS";
|
|
22
22
|
TOOL_CONTENT_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
|
|
23
|
+
TOOL_CONTENT_TYPE["PHOTO_SESSIONS"] = "PHOTO_SESSIONS";
|
|
23
24
|
TOOL_CONTENT_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
|
|
24
|
-
TOOL_CONTENT_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
|
|
25
25
|
})(TOOL_CONTENT_TYPE || (exports.TOOL_CONTENT_TYPE = TOOL_CONTENT_TYPE = {}));
|
|
@@ -18,6 +18,6 @@ export declare enum TOOL_TYPE {
|
|
|
18
18
|
SOLVING_EDU_TASK = "SOLVING_EDU_TASK",
|
|
19
19
|
DIAGRAMS = "DIAGRAMS",
|
|
20
20
|
HTML_PAGE_BUILDER = "HTML_PAGE_BUILDER",
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
PHOTO_SESSION = "PHOTO_SESSION",
|
|
22
|
+
IMAGE_RECOGNITION = "IMAGE_RECOGNITION"
|
|
23
23
|
}
|
|
@@ -22,6 +22,6 @@ var TOOL_TYPE;
|
|
|
22
22
|
TOOL_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
|
|
23
23
|
TOOL_TYPE["DIAGRAMS"] = "DIAGRAMS";
|
|
24
24
|
TOOL_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
|
|
25
|
+
TOOL_TYPE["PHOTO_SESSION"] = "PHOTO_SESSION";
|
|
25
26
|
TOOL_TYPE["IMAGE_RECOGNITION"] = "IMAGE_RECOGNITION";
|
|
26
|
-
TOOL_TYPE["SOUND_GENERATION"] = "SOUND_GENERATION";
|
|
27
27
|
})(TOOL_TYPE || (exports.TOOL_TYPE = TOOL_TYPE = {}));
|
|
@@ -9,6 +9,7 @@ export declare namespace ToolJobCompleteEvent {
|
|
|
9
9
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
10
10
|
price: z.ZodNumber;
|
|
11
11
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
12
13
|
createdAt: z.ZodDate;
|
|
13
14
|
updatedAt: z.ZodDate;
|
|
14
15
|
toolType: z.ZodEnum<typeof TOOL_TYPE>;
|
|
@@ -8,6 +8,7 @@ export declare namespace ToolJobFailedEvent {
|
|
|
8
8
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
9
9
|
price: z.ZodNumber;
|
|
10
10
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
11
12
|
createdAt: z.ZodDate;
|
|
12
13
|
updatedAt: z.ZodDate;
|
|
13
14
|
toolType: z.ZodEnum<typeof TOOL_TYPE>;
|
|
@@ -543,6 +543,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
543
543
|
}, z.core.$strip>;
|
|
544
544
|
strategy: z.ZodOptional<z.ZodString>;
|
|
545
545
|
maxInputLength: z.ZodNumber;
|
|
546
|
+
maxSpeakers: z.ZodNumber;
|
|
546
547
|
voices: z.ZodArray<z.ZodObject<{
|
|
547
548
|
id: z.ZodString;
|
|
548
549
|
externalId: z.ZodString;
|
|
@@ -643,6 +644,16 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
643
644
|
createdAt: z.ZodDate;
|
|
644
645
|
updatedAt: z.ZodDate;
|
|
645
646
|
}, z.core.$strip>>;
|
|
647
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
648
|
+
id: z.ZodEnum<typeof import("../..").VOICE_TAG>;
|
|
649
|
+
group: z.ZodEnum<typeof import("../..").VOICE_TAG_GROUP>;
|
|
650
|
+
label: z.ZodString;
|
|
651
|
+
}, z.core.$strip>>;
|
|
652
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
653
|
+
id: z.ZodEnum<typeof import("../..").VOICE_CATEGORY>;
|
|
654
|
+
label: z.ZodString;
|
|
655
|
+
}, z.core.$strip>>;
|
|
656
|
+
speakerMarkerLabel: z.ZodString;
|
|
646
657
|
}, z.core.$strip>;
|
|
647
658
|
SPEECH_TO_TEXT: z.ZodObject<{
|
|
648
659
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -902,13 +913,15 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
902
913
|
}, z.core.$strip>>;
|
|
903
914
|
maxAttachmentsCount: z.ZodNumber;
|
|
904
915
|
}, z.core.$strip>;
|
|
905
|
-
|
|
916
|
+
PHOTO_SESSIONS: z.ZodObject<{
|
|
906
917
|
models: z.ZodArray<z.ZodObject<{
|
|
907
918
|
uuid: z.ZodString;
|
|
908
919
|
title: z.ZodString;
|
|
909
920
|
description: z.ZodString;
|
|
910
921
|
aiModel: z.ZodString;
|
|
911
|
-
|
|
922
|
+
isNew: z.ZodBoolean;
|
|
923
|
+
tierLabel: z.ZodString;
|
|
924
|
+
pricePerImage: z.ZodNumber;
|
|
912
925
|
order: z.ZodNumber;
|
|
913
926
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
914
927
|
icons: z.ZodObject<{
|
|
@@ -921,45 +934,57 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
921
934
|
png: z.ZodString;
|
|
922
935
|
}, z.core.$strip>;
|
|
923
936
|
}, z.core.$strip>;
|
|
924
|
-
|
|
937
|
+
strategy: z.ZodEnum<typeof import("../..").PHOTO_SESSION_STRATEGY>;
|
|
938
|
+
maxInputLength: z.ZodNumber;
|
|
925
939
|
params: z.ZodObject<{
|
|
926
940
|
imageAttachment: z.ZodObject<{
|
|
927
941
|
supported: z.ZodBoolean;
|
|
928
942
|
maxImages: z.ZodNumber;
|
|
929
943
|
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
930
944
|
}, z.core.$strip>;
|
|
945
|
+
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
946
|
+
width: z.ZodNumber;
|
|
947
|
+
height: z.ZodNumber;
|
|
948
|
+
}, z.core.$strip>>;
|
|
931
949
|
}, z.core.$strip>;
|
|
950
|
+
pricingRules: z.ZodArray<z.ZodObject<{
|
|
951
|
+
condition: z.ZodObject<{
|
|
952
|
+
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
953
|
+
}, z.core.$strip>;
|
|
954
|
+
value: z.ZodNumber;
|
|
955
|
+
}, z.core.$strip>>;
|
|
932
956
|
createdAt: z.ZodDate;
|
|
933
957
|
updatedAt: z.ZodDate;
|
|
934
958
|
}, z.core.$strip>>;
|
|
935
|
-
|
|
959
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
936
960
|
uuid: z.ZodString;
|
|
937
|
-
|
|
961
|
+
code: z.ZodString;
|
|
938
962
|
title: z.ZodString;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
svg: z.ZodString;
|
|
949
|
-
png: z.ZodString;
|
|
950
|
-
}, z.core.$strip>;
|
|
963
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
964
|
+
references: z.ZodArray<z.ZodObject<{
|
|
965
|
+
uuid: z.ZodString;
|
|
966
|
+
styleId: z.ZodString;
|
|
967
|
+
photoUrl: z.ZodString;
|
|
968
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
969
|
+
order: z.ZodNumber;
|
|
970
|
+
createdAt: z.ZodDate;
|
|
971
|
+
updatedAt: z.ZodDate;
|
|
951
972
|
}, z.core.$strip>>;
|
|
952
973
|
createdAt: z.ZodDate;
|
|
953
974
|
updatedAt: z.ZodDate;
|
|
954
975
|
}, z.core.$strip>>;
|
|
976
|
+
looks: z.ZodArray<z.ZodObject<{
|
|
977
|
+
type: z.ZodEnum<typeof import("../..").PHOTO_SESSION_LOOK_TYPE>;
|
|
978
|
+
maxPhotos: z.ZodNumber;
|
|
979
|
+
}, z.core.$strip>>;
|
|
955
980
|
}, z.core.$strip>;
|
|
956
|
-
|
|
981
|
+
IMAGE_RECOGNITION: z.ZodObject<{
|
|
957
982
|
models: z.ZodArray<z.ZodObject<{
|
|
958
983
|
uuid: z.ZodString;
|
|
959
984
|
title: z.ZodString;
|
|
960
985
|
description: z.ZodString;
|
|
961
986
|
aiModel: z.ZodString;
|
|
962
|
-
|
|
987
|
+
price: z.ZodNumber;
|
|
963
988
|
order: z.ZodNumber;
|
|
964
989
|
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
965
990
|
icons: z.ZodObject<{
|
|
@@ -972,18 +997,37 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
972
997
|
png: z.ZodString;
|
|
973
998
|
}, z.core.$strip>;
|
|
974
999
|
}, z.core.$strip>;
|
|
975
|
-
strategy: z.ZodEnum<typeof import("../..").SOUND_GENERATION_STRATEGY>;
|
|
976
1000
|
maxPromptLength: z.ZodNumber;
|
|
977
1001
|
params: z.ZodObject<{
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1002
|
+
imageAttachment: z.ZodObject<{
|
|
1003
|
+
supported: z.ZodBoolean;
|
|
1004
|
+
maxImages: z.ZodNumber;
|
|
1005
|
+
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
1006
|
+
}, z.core.$strip>;
|
|
983
1007
|
}, z.core.$strip>;
|
|
984
1008
|
createdAt: z.ZodDate;
|
|
985
1009
|
updatedAt: z.ZodDate;
|
|
986
1010
|
}, z.core.$strip>>;
|
|
1011
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
1012
|
+
uuid: z.ZodString;
|
|
1013
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
1014
|
+
title: z.ZodString;
|
|
1015
|
+
systemPrompt: z.ZodString;
|
|
1016
|
+
order: z.ZodNumber;
|
|
1017
|
+
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
1018
|
+
icons: z.ZodNullable<z.ZodObject<{
|
|
1019
|
+
light: z.ZodObject<{
|
|
1020
|
+
svg: z.ZodString;
|
|
1021
|
+
png: z.ZodString;
|
|
1022
|
+
}, z.core.$strip>;
|
|
1023
|
+
dark: z.ZodObject<{
|
|
1024
|
+
svg: z.ZodString;
|
|
1025
|
+
png: z.ZodString;
|
|
1026
|
+
}, z.core.$strip>;
|
|
1027
|
+
}, z.core.$strip>>;
|
|
1028
|
+
createdAt: z.ZodDate;
|
|
1029
|
+
updatedAt: z.ZodDate;
|
|
1030
|
+
}, z.core.$strip>>;
|
|
987
1031
|
}, z.core.$strip>;
|
|
988
1032
|
}, z.core.$strip>;
|
|
989
1033
|
export type GlobalToolsConfig = z.infer<typeof GlobalToolsConfigSchema>;
|
|
@@ -19,8 +19,8 @@ const solving_edu_task_1 = require("../../solving-edu-task");
|
|
|
19
19
|
const spell_corrector_1 = require("../../spell-corrector");
|
|
20
20
|
const diagrams_1 = require("../../diagrams");
|
|
21
21
|
const models_2 = require("../../html-page-builder/models");
|
|
22
|
+
const photo_sessions_1 = require("../../photo-sessions");
|
|
22
23
|
const image_recognition_1 = require("../../image-recognition");
|
|
23
|
-
const sound_generation_1 = require("../../sound-generation");
|
|
24
24
|
exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
25
25
|
[enums_1.TOOL_CONTENT_TYPE.VIDEO]: video_1.VideoConfigSchema,
|
|
26
26
|
[enums_1.TOOL_CONTENT_TYPE.MUSIC]: music_1.MusicConfigSchema,
|
|
@@ -38,6 +38,6 @@ exports.GlobalToolsConfigSchema = zod_1.z.object({
|
|
|
38
38
|
[enums_1.TOOL_CONTENT_TYPE.SPELL_CORRECTOR]: spell_corrector_1.SpellCorrectorToolConfigSchema,
|
|
39
39
|
[enums_1.TOOL_CONTENT_TYPE.DIAGRAMS]: diagrams_1.DiagramsConfigSchema,
|
|
40
40
|
[enums_1.TOOL_CONTENT_TYPE.HTML_PAGE_BUILDER]: models_2.HtmlPageBuilderConfigSchema,
|
|
41
|
+
[enums_1.TOOL_CONTENT_TYPE.PHOTO_SESSIONS]: photo_sessions_1.PhotoSessionConfigSchema,
|
|
41
42
|
[enums_1.TOOL_CONTENT_TYPE.IMAGE_RECOGNITION]: image_recognition_1.ImageRecognitionConfigSchema,
|
|
42
|
-
[enums_1.TOOL_CONTENT_TYPE.SOUND_GENERATION]: sound_generation_1.SoundGenerationConfigSchema,
|
|
43
43
|
});
|
|
@@ -5,6 +5,7 @@ export declare const ToolJobSchema: z.ZodObject<{
|
|
|
5
5
|
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
6
6
|
price: z.ZodNumber;
|
|
7
7
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
8
9
|
createdAt: z.ZodDate;
|
|
9
10
|
updatedAt: z.ZodDate;
|
|
10
11
|
}, z.core.$strip>;
|
|
@@ -8,6 +8,7 @@ exports.ToolJobSchema = zod_1.z.object({
|
|
|
8
8
|
unregisteredUserId: zod_1.z.string().nullable(),
|
|
9
9
|
price: zod_1.z.number(),
|
|
10
10
|
tokenReservationId: zod_1.z.string().nullable().optional(),
|
|
11
|
+
idempotencyKey: zod_1.z.string().optional(),
|
|
11
12
|
createdAt: zod_1.z.date(),
|
|
12
13
|
updatedAt: zod_1.z.date(),
|
|
13
14
|
});
|