@purpleschool/gptbot-tools 0.4.13 → 0.4.15-stage-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/greetings/commands/greeting-settlement.command.d.ts +28 -0
- package/build/greetings/commands/greeting-settlement.command.js +18 -0
- package/build/greetings/commands/index.d.ts +1 -0
- package/build/greetings/commands/index.js +17 -0
- package/build/greetings/enums/greeting-kind.enum.d.ts +6 -0
- package/build/greetings/enums/greeting-kind.enum.js +10 -0
- package/build/greetings/enums/greeting-status.enum.d.ts +6 -0
- package/build/greetings/enums/greeting-status.enum.js +10 -0
- package/build/greetings/enums/index.d.ts +2 -0
- package/build/greetings/enums/index.js +18 -0
- package/build/greetings/index.d.ts +6 -0
- package/build/greetings/index.js +22 -0
- package/build/greetings/models/greeting-config.schema.d.ts +80 -0
- package/build/greetings/models/greeting-config.schema.js +35 -0
- package/build/greetings/models/greeting-input.schema.d.ts +64 -0
- package/build/greetings/models/greeting-input.schema.js +26 -0
- package/build/greetings/models/greeting-job.schema.d.ts +104 -0
- package/build/greetings/models/greeting-job.schema.js +24 -0
- package/build/greetings/models/greeting-owner.schema.d.ts +6 -0
- package/build/greetings/models/greeting-owner.schema.js +12 -0
- package/build/greetings/models/greeting-price-data.schema.d.ts +20 -0
- package/build/greetings/models/greeting-price-data.schema.js +21 -0
- package/build/greetings/models/greeting-result.schema.d.ts +36 -0
- package/build/greetings/models/greeting-result.schema.js +22 -0
- package/build/greetings/models/index.d.ts +6 -0
- package/build/greetings/models/index.js +22 -0
- package/build/greetings/requests/greeting-execute.schema.d.ts +67 -0
- package/build/greetings/requests/greeting-execute.schema.js +11 -0
- package/build/greetings/requests/greeting-favorite-request.schema.d.ts +9 -0
- package/build/greetings/requests/greeting-favorite-request.schema.js +8 -0
- package/build/greetings/requests/greeting-identity-request.schema.d.ts +13 -0
- package/build/greetings/requests/greeting-identity-request.schema.js +10 -0
- package/build/greetings/requests/greeting-internal-execute.schema.d.ts +151 -0
- package/build/greetings/requests/greeting-internal-execute.schema.js +9 -0
- package/build/greetings/requests/greeting-internal-price-request.schema.d.ts +69 -0
- package/build/greetings/requests/greeting-internal-price-request.schema.js +10 -0
- package/build/greetings/requests/greeting-job-request.schema.d.ts +8 -0
- package/build/greetings/requests/greeting-job-request.schema.js +9 -0
- package/build/greetings/requests/greeting-list-request.schema.d.ts +16 -0
- package/build/greetings/requests/greeting-list-request.schema.js +13 -0
- package/build/greetings/requests/greeting-operation-request.schema.d.ts +8 -0
- package/build/greetings/requests/greeting-operation-request.schema.js +9 -0
- package/build/greetings/requests/greeting-price-request.schema.d.ts +64 -0
- package/build/greetings/requests/greeting-price-request.schema.js +6 -0
- package/build/greetings/requests/greeting-reaction-request.schema.d.ts +10 -0
- package/build/greetings/requests/greeting-reaction-request.schema.js +9 -0
- package/build/greetings/requests/greeting-retry.schema.d.ts +7 -0
- package/build/greetings/requests/greeting-retry.schema.js +10 -0
- package/build/greetings/requests/greeting-title-request.schema.d.ts +9 -0
- package/build/greetings/requests/greeting-title-request.schema.js +8 -0
- package/build/greetings/requests/index.d.ts +12 -0
- package/build/greetings/requests/index.js +28 -0
- package/build/greetings/responses/greeting.responses.d.ts +633 -0
- package/build/greetings/responses/greeting.responses.js +15 -0
- package/build/greetings/responses/index.d.ts +1 -0
- package/build/greetings/responses/index.js +17 -0
- package/build/greetings/routes/greetings.amqp.routes.d.ts +14 -0
- package/build/greetings/routes/greetings.amqp.routes.js +17 -0
- package/build/greetings/routes/index.d.ts +1 -0
- package/build/greetings/routes/index.js +17 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-content-type.enum.js +1 -0
- package/build/tools/enums/tool-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-type.enum.js +1 -0
- package/build/tools/models/global-tools-config.schema.d.ts +49 -0
- package/build/tools/models/global-tools-config.schema.js +2 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +122 -0
- package/build/tools/models/tools-with-configs.schema.js +5 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +88 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +112 -0
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingExecuteSchema: z.ZodObject<{
|
|
3
|
+
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
+
modelId: z.ZodUUID;
|
|
5
|
+
prompt: z.ZodString;
|
|
6
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
en: "en";
|
|
8
|
+
es: "es";
|
|
9
|
+
ru: "ru";
|
|
10
|
+
}>>;
|
|
11
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.TEXT>;
|
|
12
|
+
settings: z.ZodObject<{
|
|
13
|
+
lengthId: z.ZodUUID;
|
|
14
|
+
formatId: z.ZodUUID;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17
|
+
modelId: z.ZodUUID;
|
|
18
|
+
prompt: z.ZodString;
|
|
19
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
20
|
+
en: "en";
|
|
21
|
+
es: "es";
|
|
22
|
+
ru: "ru";
|
|
23
|
+
}>>;
|
|
24
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.SONG>;
|
|
25
|
+
settings: z.ZodObject<{
|
|
26
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
27
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
28
|
+
voice: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
f: "f";
|
|
30
|
+
m: "m";
|
|
31
|
+
}>>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
modelId: z.ZodUUID;
|
|
35
|
+
prompt: z.ZodString;
|
|
36
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
37
|
+
en: "en";
|
|
38
|
+
es: "es";
|
|
39
|
+
ru: "ru";
|
|
40
|
+
}>>;
|
|
41
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.VIDEO>;
|
|
42
|
+
settings: z.ZodObject<{
|
|
43
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
44
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
45
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
46
|
+
duration: z.ZodInt;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
+
modelId: z.ZodUUID;
|
|
50
|
+
prompt: z.ZodString;
|
|
51
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
52
|
+
en: "en";
|
|
53
|
+
es: "es";
|
|
54
|
+
ru: "ru";
|
|
55
|
+
}>>;
|
|
56
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.IMAGE>;
|
|
57
|
+
settings: z.ZodObject<{
|
|
58
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
59
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
60
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
61
|
+
aspectRatio: z.ZodString;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>], "kind">;
|
|
64
|
+
operationId: z.ZodUUID;
|
|
65
|
+
expectedPrice: z.ZodInt;
|
|
66
|
+
mock: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingExecuteSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
exports.GreetingExecuteSchema = zod_1.z.strictObject({
|
|
7
|
+
input: models_1.GreetingInputSchema,
|
|
8
|
+
operationId: zod_1.z.uuid(),
|
|
9
|
+
expectedPrice: zod_1.z.int().positive(),
|
|
10
|
+
mock: zod_1.z.boolean().optional(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingFavoriteRequestSchema: z.ZodObject<{
|
|
3
|
+
owner: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
isFavorite: z.ZodBoolean;
|
|
9
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingFavoriteRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const greeting_job_request_schema_1 = require("./greeting-job-request.schema");
|
|
6
|
+
exports.GreetingFavoriteRequestSchema = greeting_job_request_schema_1.GreetingJobRequestSchema.extend({
|
|
7
|
+
isFavorite: zod_1.z.boolean(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingIdentityRequestSchema: z.ZodObject<{
|
|
3
|
+
owner: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
en: "en";
|
|
9
|
+
es: "es";
|
|
10
|
+
ru: "ru";
|
|
11
|
+
}>>;
|
|
12
|
+
modelId: z.ZodOptional<z.ZodUUID>;
|
|
13
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingIdentityRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
exports.GreetingIdentityRequestSchema = zod_1.z.strictObject({
|
|
7
|
+
owner: models_1.GreetingOwnerSchema,
|
|
8
|
+
locale: zod_1.z.enum(['ru', 'en', 'es']).default('ru'),
|
|
9
|
+
modelId: zod_1.z.uuid().optional(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingInternalExecuteSchema: z.ZodObject<{
|
|
3
|
+
owner: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
modelId: z.ZodUUID;
|
|
9
|
+
prompt: z.ZodString;
|
|
10
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
en: "en";
|
|
12
|
+
es: "es";
|
|
13
|
+
ru: "ru";
|
|
14
|
+
}>>;
|
|
15
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.TEXT>;
|
|
16
|
+
settings: z.ZodObject<{
|
|
17
|
+
lengthId: z.ZodUUID;
|
|
18
|
+
formatId: z.ZodUUID;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
modelId: z.ZodUUID;
|
|
22
|
+
prompt: z.ZodString;
|
|
23
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
24
|
+
en: "en";
|
|
25
|
+
es: "es";
|
|
26
|
+
ru: "ru";
|
|
27
|
+
}>>;
|
|
28
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.SONG>;
|
|
29
|
+
settings: z.ZodObject<{
|
|
30
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
31
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
32
|
+
voice: z.ZodDefault<z.ZodEnum<{
|
|
33
|
+
f: "f";
|
|
34
|
+
m: "m";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38
|
+
modelId: z.ZodUUID;
|
|
39
|
+
prompt: z.ZodString;
|
|
40
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
41
|
+
en: "en";
|
|
42
|
+
es: "es";
|
|
43
|
+
ru: "ru";
|
|
44
|
+
}>>;
|
|
45
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.VIDEO>;
|
|
46
|
+
settings: z.ZodObject<{
|
|
47
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
48
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
49
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
50
|
+
duration: z.ZodInt;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
53
|
+
modelId: z.ZodUUID;
|
|
54
|
+
prompt: z.ZodString;
|
|
55
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
56
|
+
en: "en";
|
|
57
|
+
es: "es";
|
|
58
|
+
ru: "ru";
|
|
59
|
+
}>>;
|
|
60
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.IMAGE>;
|
|
61
|
+
settings: z.ZodObject<{
|
|
62
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
63
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
64
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
65
|
+
aspectRatio: z.ZodString;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
}, z.core.$strict>], "kind">;
|
|
68
|
+
hasPaidAccess: z.ZodBoolean;
|
|
69
|
+
operationId: z.ZodUUID;
|
|
70
|
+
precalculatedPrice: z.ZodInt;
|
|
71
|
+
tokenReservationId: z.ZodUUID;
|
|
72
|
+
calculationSnapshot: z.ZodString;
|
|
73
|
+
mock: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
retryJobId: z.ZodOptional<z.ZodUUID>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
export type GreetingInternalExecute = z.infer<typeof GreetingInternalExecuteSchema>;
|
|
77
|
+
export declare const GreetingInternalRetrySchema: z.ZodObject<{
|
|
78
|
+
owner: z.ZodObject<{
|
|
79
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
80
|
+
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
83
|
+
modelId: z.ZodUUID;
|
|
84
|
+
prompt: z.ZodString;
|
|
85
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
86
|
+
en: "en";
|
|
87
|
+
es: "es";
|
|
88
|
+
ru: "ru";
|
|
89
|
+
}>>;
|
|
90
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.TEXT>;
|
|
91
|
+
settings: z.ZodObject<{
|
|
92
|
+
lengthId: z.ZodUUID;
|
|
93
|
+
formatId: z.ZodUUID;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
96
|
+
modelId: z.ZodUUID;
|
|
97
|
+
prompt: z.ZodString;
|
|
98
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
99
|
+
en: "en";
|
|
100
|
+
es: "es";
|
|
101
|
+
ru: "ru";
|
|
102
|
+
}>>;
|
|
103
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.SONG>;
|
|
104
|
+
settings: z.ZodObject<{
|
|
105
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
106
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
107
|
+
voice: z.ZodDefault<z.ZodEnum<{
|
|
108
|
+
f: "f";
|
|
109
|
+
m: "m";
|
|
110
|
+
}>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
113
|
+
modelId: z.ZodUUID;
|
|
114
|
+
prompt: z.ZodString;
|
|
115
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
116
|
+
en: "en";
|
|
117
|
+
es: "es";
|
|
118
|
+
ru: "ru";
|
|
119
|
+
}>>;
|
|
120
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.VIDEO>;
|
|
121
|
+
settings: z.ZodObject<{
|
|
122
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
123
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
124
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
125
|
+
duration: z.ZodInt;
|
|
126
|
+
}, z.core.$strict>;
|
|
127
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
128
|
+
modelId: z.ZodUUID;
|
|
129
|
+
prompt: z.ZodString;
|
|
130
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
131
|
+
en: "en";
|
|
132
|
+
es: "es";
|
|
133
|
+
ru: "ru";
|
|
134
|
+
}>>;
|
|
135
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.IMAGE>;
|
|
136
|
+
settings: z.ZodObject<{
|
|
137
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
138
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
139
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
140
|
+
aspectRatio: z.ZodString;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
}, z.core.$strict>], "kind">;
|
|
143
|
+
hasPaidAccess: z.ZodBoolean;
|
|
144
|
+
operationId: z.ZodUUID;
|
|
145
|
+
precalculatedPrice: z.ZodInt;
|
|
146
|
+
tokenReservationId: z.ZodUUID;
|
|
147
|
+
calculationSnapshot: z.ZodString;
|
|
148
|
+
mock: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
retryJobId: z.ZodUUID;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
export type GreetingInternalRetry = z.infer<typeof GreetingInternalRetrySchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingInternalRetrySchema = exports.GreetingInternalExecuteSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const greeting_internal_price_request_schema_1 = require("./greeting-internal-price-request.schema");
|
|
6
|
+
exports.GreetingInternalExecuteSchema = zod_1.z.strictObject(Object.assign(Object.assign({}, greeting_internal_price_request_schema_1.GreetingInternalPriceRequestSchema.shape), { operationId: zod_1.z.uuid(), precalculatedPrice: zod_1.z.int().positive(), tokenReservationId: zod_1.z.uuid(), calculationSnapshot: zod_1.z.string().min(1), mock: zod_1.z.boolean().optional(), retryJobId: zod_1.z.uuid().optional() }));
|
|
7
|
+
exports.GreetingInternalRetrySchema = exports.GreetingInternalExecuteSchema.extend({
|
|
8
|
+
retryJobId: zod_1.z.uuid(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingInternalPriceRequestSchema: z.ZodObject<{
|
|
3
|
+
owner: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
modelId: z.ZodUUID;
|
|
9
|
+
prompt: z.ZodString;
|
|
10
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
en: "en";
|
|
12
|
+
es: "es";
|
|
13
|
+
ru: "ru";
|
|
14
|
+
}>>;
|
|
15
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.TEXT>;
|
|
16
|
+
settings: z.ZodObject<{
|
|
17
|
+
lengthId: z.ZodUUID;
|
|
18
|
+
formatId: z.ZodUUID;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
modelId: z.ZodUUID;
|
|
22
|
+
prompt: z.ZodString;
|
|
23
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
24
|
+
en: "en";
|
|
25
|
+
es: "es";
|
|
26
|
+
ru: "ru";
|
|
27
|
+
}>>;
|
|
28
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.SONG>;
|
|
29
|
+
settings: z.ZodObject<{
|
|
30
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
31
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
32
|
+
voice: z.ZodDefault<z.ZodEnum<{
|
|
33
|
+
f: "f";
|
|
34
|
+
m: "m";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38
|
+
modelId: z.ZodUUID;
|
|
39
|
+
prompt: z.ZodString;
|
|
40
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
41
|
+
en: "en";
|
|
42
|
+
es: "es";
|
|
43
|
+
ru: "ru";
|
|
44
|
+
}>>;
|
|
45
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.VIDEO>;
|
|
46
|
+
settings: z.ZodObject<{
|
|
47
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
48
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
49
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
50
|
+
duration: z.ZodInt;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
53
|
+
modelId: z.ZodUUID;
|
|
54
|
+
prompt: z.ZodString;
|
|
55
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
56
|
+
en: "en";
|
|
57
|
+
es: "es";
|
|
58
|
+
ru: "ru";
|
|
59
|
+
}>>;
|
|
60
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.IMAGE>;
|
|
61
|
+
settings: z.ZodObject<{
|
|
62
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
63
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
64
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
65
|
+
aspectRatio: z.ZodString;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
}, z.core.$strict>], "kind">;
|
|
68
|
+
hasPaidAccess: z.ZodBoolean;
|
|
69
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingInternalPriceRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
exports.GreetingInternalPriceRequestSchema = zod_1.z.strictObject({
|
|
7
|
+
owner: models_1.GreetingOwnerSchema,
|
|
8
|
+
input: models_1.GreetingInputSchema,
|
|
9
|
+
hasPaidAccess: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingJobRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
exports.GreetingJobRequestSchema = zod_1.z.strictObject({
|
|
7
|
+
owner: models_1.GreetingOwnerSchema,
|
|
8
|
+
uuid: zod_1.z.uuid(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingListRequestSchema: z.ZodObject<{
|
|
3
|
+
owner: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
9
|
+
search: z.ZodOptional<z.ZodString>;
|
|
10
|
+
createdAtSortOrder: z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
asc: "asc";
|
|
12
|
+
desc: "desc";
|
|
13
|
+
}>>;
|
|
14
|
+
favorite: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export type GreetingListRequest = z.infer<typeof GreetingListRequestSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingListRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
exports.GreetingListRequestSchema = zod_1.z.strictObject({
|
|
7
|
+
owner: models_1.GreetingOwnerSchema,
|
|
8
|
+
cursor: zod_1.z.string().optional(),
|
|
9
|
+
limit: zod_1.z.int().min(1).max(50).default(20),
|
|
10
|
+
search: zod_1.z.string().trim().max(200).optional(),
|
|
11
|
+
createdAtSortOrder: zod_1.z.enum(['asc', 'desc']).default('desc'),
|
|
12
|
+
favorite: zod_1.z.boolean().optional(),
|
|
13
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingOperationRequestSchema: z.ZodObject<{
|
|
3
|
+
owner: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
operationId: z.ZodUUID;
|
|
8
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingOperationRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
exports.GreetingOperationRequestSchema = zod_1.z.strictObject({
|
|
7
|
+
owner: models_1.GreetingOwnerSchema,
|
|
8
|
+
operationId: zod_1.z.uuid(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingPriceRequestSchema: z.ZodObject<{
|
|
3
|
+
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
+
modelId: z.ZodUUID;
|
|
5
|
+
prompt: z.ZodString;
|
|
6
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
en: "en";
|
|
8
|
+
es: "es";
|
|
9
|
+
ru: "ru";
|
|
10
|
+
}>>;
|
|
11
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.TEXT>;
|
|
12
|
+
settings: z.ZodObject<{
|
|
13
|
+
lengthId: z.ZodUUID;
|
|
14
|
+
formatId: z.ZodUUID;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17
|
+
modelId: z.ZodUUID;
|
|
18
|
+
prompt: z.ZodString;
|
|
19
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
20
|
+
en: "en";
|
|
21
|
+
es: "es";
|
|
22
|
+
ru: "ru";
|
|
23
|
+
}>>;
|
|
24
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.SONG>;
|
|
25
|
+
settings: z.ZodObject<{
|
|
26
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
27
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
28
|
+
voice: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
f: "f";
|
|
30
|
+
m: "m";
|
|
31
|
+
}>>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
modelId: z.ZodUUID;
|
|
35
|
+
prompt: z.ZodString;
|
|
36
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
37
|
+
en: "en";
|
|
38
|
+
es: "es";
|
|
39
|
+
ru: "ru";
|
|
40
|
+
}>>;
|
|
41
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.VIDEO>;
|
|
42
|
+
settings: z.ZodObject<{
|
|
43
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
44
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
45
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
46
|
+
duration: z.ZodInt;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
+
modelId: z.ZodUUID;
|
|
50
|
+
prompt: z.ZodString;
|
|
51
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
|
52
|
+
en: "en";
|
|
53
|
+
es: "es";
|
|
54
|
+
ru: "ru";
|
|
55
|
+
}>>;
|
|
56
|
+
kind: z.ZodLiteral<import("..").GREETING_KIND.IMAGE>;
|
|
57
|
+
settings: z.ZodObject<{
|
|
58
|
+
styleId: z.ZodOptional<z.ZodUUID>;
|
|
59
|
+
customStyle: z.ZodOptional<z.ZodString>;
|
|
60
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
61
|
+
aspectRatio: z.ZodString;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>], "kind">;
|
|
64
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingPriceRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../models");
|
|
6
|
+
exports.GreetingPriceRequestSchema = zod_1.z.strictObject({ input: models_1.GreetingInputSchema });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_REACTION } from '../../common';
|
|
3
|
+
export declare const GreetingReactionRequestSchema: z.ZodObject<{
|
|
4
|
+
owner: z.ZodObject<{
|
|
5
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
uuid: z.ZodUUID;
|
|
9
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
10
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingReactionRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const greeting_job_request_schema_1 = require("./greeting-job-request.schema");
|
|
7
|
+
exports.GreetingReactionRequestSchema = greeting_job_request_schema_1.GreetingJobRequestSchema.extend({
|
|
8
|
+
reaction: zod_1.z.nativeEnum(common_1.USER_REACTION).nullable(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingRetrySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.GreetingRetrySchema = zod_1.z.strictObject({
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
|
+
operationId: zod_1.z.uuid(),
|
|
8
|
+
expectedPrice: zod_1.z.int().positive(),
|
|
9
|
+
mock: zod_1.z.boolean().optional(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GreetingTitleRequestSchema: z.ZodObject<{
|
|
3
|
+
owner: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreetingTitleRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const greeting_job_request_schema_1 = require("./greeting-job-request.schema");
|
|
6
|
+
exports.GreetingTitleRequestSchema = greeting_job_request_schema_1.GreetingJobRequestSchema.extend({
|
|
7
|
+
title: zod_1.z.string().trim().min(1).max(40),
|
|
8
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './greeting-execute.schema';
|
|
2
|
+
export * from './greeting-retry.schema';
|
|
3
|
+
export * from './greeting-price-request.schema';
|
|
4
|
+
export * from './greeting-identity-request.schema';
|
|
5
|
+
export * from './greeting-job-request.schema';
|
|
6
|
+
export * from './greeting-list-request.schema';
|
|
7
|
+
export * from './greeting-favorite-request.schema';
|
|
8
|
+
export * from './greeting-title-request.schema';
|
|
9
|
+
export * from './greeting-reaction-request.schema';
|
|
10
|
+
export * from './greeting-operation-request.schema';
|
|
11
|
+
export * from './greeting-internal-price-request.schema';
|
|
12
|
+
export * from './greeting-internal-execute.schema';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./greeting-execute.schema"), exports);
|
|
18
|
+
__exportStar(require("./greeting-retry.schema"), exports);
|
|
19
|
+
__exportStar(require("./greeting-price-request.schema"), exports);
|
|
20
|
+
__exportStar(require("./greeting-identity-request.schema"), exports);
|
|
21
|
+
__exportStar(require("./greeting-job-request.schema"), exports);
|
|
22
|
+
__exportStar(require("./greeting-list-request.schema"), exports);
|
|
23
|
+
__exportStar(require("./greeting-favorite-request.schema"), exports);
|
|
24
|
+
__exportStar(require("./greeting-title-request.schema"), exports);
|
|
25
|
+
__exportStar(require("./greeting-reaction-request.schema"), exports);
|
|
26
|
+
__exportStar(require("./greeting-operation-request.schema"), exports);
|
|
27
|
+
__exportStar(require("./greeting-internal-price-request.schema"), exports);
|
|
28
|
+
__exportStar(require("./greeting-internal-execute.schema"), exports);
|