@ai-grator/api 0.2.49 → 0.2.51
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/_common/error.contract.ts +2 -0
- package/build/_common/error.contract.d.ts +1 -0
- package/build/_common/error.contract.d.ts.map +1 -1
- package/build/_common/error.contract.js +1 -0
- package/build/errors/errors.d.ts +10 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +10 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts +4 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map +1 -1
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts +4 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts.map +1 -1
- package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts +2 -0
- package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts.map +1 -1
- package/build/generation-model/endpoints/queries/get-generation-price.query.js +1 -0
- package/build/generation-model/models/generation-model-response.schema.d.ts +4 -0
- package/build/generation-model/models/generation-model-response.schema.d.ts.map +1 -1
- package/build/generation-model/models/generation-model-response.schema.js +5 -1
- package/build/referral/models/bonus-history-response.schema.d.ts +6 -0
- package/build/referral/models/bonus-history-response.schema.d.ts.map +1 -1
- package/build/referral/models/bonus-history-response.schema.js +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/wallet/enums/wallet-transaction-source-type.enum.d.ts +2 -1
- package/build/wallet/enums/wallet-transaction-source-type.enum.d.ts.map +1 -1
- package/build/wallet/enums/wallet-transaction-source-type.enum.js +1 -0
- package/errors/errors.ts +10 -0
- package/generation-model/endpoints/queries/get-generation-price.query.ts +1 -0
- package/generation-model/models/generation-model-response.schema.ts +6 -0
- package/package.json +1 -1
- package/referral/models/bonus-history-response.schema.ts +1 -0
- package/wallet/enums/wallet-transaction-source-type.enum.ts +1 -0
|
@@ -4,12 +4,14 @@ export interface HttpErrorResponse {
|
|
|
4
4
|
message: string;
|
|
5
5
|
code: string;
|
|
6
6
|
httpCode: number;
|
|
7
|
+
details?: string[];
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export const HttpErrorResponseSchema: z.ZodType<HttpErrorResponse> = z.object({
|
|
10
11
|
message: z.string(),
|
|
11
12
|
code: z.string(),
|
|
12
13
|
httpCode: z.int(),
|
|
14
|
+
details: z.array(z.string()).optional(),
|
|
13
15
|
});
|
|
14
16
|
|
|
15
17
|
export function makeHttpErrorResponseSchema<const T extends HttpErrorResponse>(error: T) {
|
|
@@ -3,6 +3,7 @@ export interface HttpErrorResponse {
|
|
|
3
3
|
message: string;
|
|
4
4
|
code: string;
|
|
5
5
|
httpCode: number;
|
|
6
|
+
details?: string[];
|
|
6
7
|
}
|
|
7
8
|
export declare const HttpErrorResponseSchema: z.ZodType<HttpErrorResponse>;
|
|
8
9
|
export declare function makeHttpErrorResponseSchema<const T extends HttpErrorResponse>(error: T): z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.contract.d.ts","sourceRoot":"","sources":["../../_common/error.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"error.contract.d.ts","sourceRoot":"","sources":["../../_common/error.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAK/D,CAAC;AAEH,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,CAAC,SAAS,iBAAiB,EAAE,KAAK,EAAE,CAAC;;;;kBAMtF"}
|
|
@@ -7,6 +7,7 @@ exports.HttpErrorResponseSchema = zod_1.z.object({
|
|
|
7
7
|
message: zod_1.z.string(),
|
|
8
8
|
code: zod_1.z.string(),
|
|
9
9
|
httpCode: zod_1.z.int(),
|
|
10
|
+
details: zod_1.z.array(zod_1.z.string()).optional(),
|
|
10
11
|
});
|
|
11
12
|
function makeHttpErrorResponseSchema(error) {
|
|
12
13
|
return zod_1.z.object({
|
package/build/errors/errors.d.ts
CHANGED
|
@@ -338,6 +338,16 @@ export declare const ERRORS: {
|
|
|
338
338
|
readonly code: "GENERATION_JOB.ATTACHMENT_SLOT_NOT_MULTIPLE";
|
|
339
339
|
readonly message: "Превышено максимальное количество файлов для этого слота вложения";
|
|
340
340
|
};
|
|
341
|
+
readonly CONFLICTING_ATTACHMENT_SLOTS: {
|
|
342
|
+
readonly httpCode: 400;
|
|
343
|
+
readonly code: "GENERATION_JOB.CONFLICTING_ATTACHMENT_SLOTS";
|
|
344
|
+
readonly message: "Эти вложения нельзя использовать вместе в одной генерации";
|
|
345
|
+
};
|
|
346
|
+
readonly ATTACHMENT_SLOT_REQUIRES_COMPANION: {
|
|
347
|
+
readonly httpCode: 400;
|
|
348
|
+
readonly code: "GENERATION_JOB.ATTACHMENT_SLOT_REQUIRES_COMPANION";
|
|
349
|
+
readonly message: "Это вложение нельзя использовать без другого обязательного вложения";
|
|
350
|
+
};
|
|
341
351
|
readonly CHAT_MODEL_MISMATCH: {
|
|
342
352
|
readonly httpCode: 400;
|
|
343
353
|
readonly code: "GENERATION_JOB.CHAT_MODEL_MISMATCH";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkgCT,CAAC"}
|
package/build/errors/errors.js
CHANGED
|
@@ -341,6 +341,16 @@ exports.ERRORS = {
|
|
|
341
341
|
code: 'GENERATION_JOB.ATTACHMENT_SLOT_NOT_MULTIPLE',
|
|
342
342
|
message: 'Превышено максимальное количество файлов для этого слота вложения',
|
|
343
343
|
},
|
|
344
|
+
CONFLICTING_ATTACHMENT_SLOTS: {
|
|
345
|
+
httpCode: 400,
|
|
346
|
+
code: 'GENERATION_JOB.CONFLICTING_ATTACHMENT_SLOTS',
|
|
347
|
+
message: 'Эти вложения нельзя использовать вместе в одной генерации',
|
|
348
|
+
},
|
|
349
|
+
ATTACHMENT_SLOT_REQUIRES_COMPANION: {
|
|
350
|
+
httpCode: 400,
|
|
351
|
+
code: 'GENERATION_JOB.ATTACHMENT_SLOT_REQUIRES_COMPANION',
|
|
352
|
+
message: 'Это вложение нельзя использовать без другого обязательного вложения',
|
|
353
|
+
},
|
|
344
354
|
CHAT_MODEL_MISMATCH: {
|
|
345
355
|
httpCode: 400,
|
|
346
356
|
code: 'GENERATION_JOB.CHAT_MODEL_MISMATCH',
|
|
@@ -28,6 +28,8 @@ export declare const GetGenerationModelsByTypeQueryResponse: z.ZodObject<{
|
|
|
28
28
|
maxSize: z.ZodInt;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
|
+
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
32
|
+
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
31
33
|
paramsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
32
34
|
pricingPolicy: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
35
|
type: z.ZodLiteral<"base">;
|
|
@@ -81,6 +83,8 @@ export declare const GetGenerationModelsByTypeQuery: {
|
|
|
81
83
|
maxSize: z.ZodInt;
|
|
82
84
|
}, z.core.$strip>;
|
|
83
85
|
}, z.core.$strip>>;
|
|
86
|
+
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
87
|
+
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
84
88
|
paramsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
85
89
|
pricingPolicy: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
90
|
type: z.ZodLiteral<"base">;
|
package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generation-models-by-type.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models-by-type.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"get-generation-models-by-type.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models-by-type.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjD,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWzC,CAAC"}
|
|
@@ -25,6 +25,8 @@ export declare const GetGenerationModelsQueryResponse: z.ZodObject<{
|
|
|
25
25
|
maxSize: z.ZodInt;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
|
+
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
29
|
+
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
28
30
|
paramsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
31
|
pricingPolicy: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
32
|
type: z.ZodLiteral<"base">;
|
|
@@ -73,6 +75,8 @@ export declare const GetGenerationModelsQuery: {
|
|
|
73
75
|
maxSize: z.ZodInt;
|
|
74
76
|
}, z.core.$strip>;
|
|
75
77
|
}, z.core.$strip>>;
|
|
78
|
+
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
79
|
+
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
76
80
|
paramsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
77
81
|
pricingPolicy: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
82
|
type: z.ZodLiteral<"base">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generation-models.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"get-generation-models.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE3C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAC"}
|
|
@@ -5,6 +5,7 @@ export declare const GetGenerationPriceBodyParams: z.ZodObject<{
|
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export declare const GetGenerationPriceBody: z.ZodObject<{
|
|
7
7
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>>;
|
|
8
9
|
}, z.core.$strip>;
|
|
9
10
|
export declare const GetGenerationPriceResponse: z.ZodObject<{
|
|
10
11
|
totalCost: z.ZodNumber;
|
|
@@ -19,6 +20,7 @@ export declare const GetGenerationPriceQuery: {
|
|
|
19
20
|
}, z.core.$strip>;
|
|
20
21
|
body: z.ZodObject<{
|
|
21
22
|
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>>;
|
|
22
24
|
}, z.core.$strip>;
|
|
23
25
|
};
|
|
24
26
|
responses: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generation-price.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-price.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAGzF,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"get-generation-price.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-price.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAGzF,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;CAclC,CAAC"}
|
|
@@ -9,6 +9,7 @@ exports.GetGenerationPriceBodyParams = zod_1.z.object({
|
|
|
9
9
|
});
|
|
10
10
|
exports.GetGenerationPriceBody = zod_1.z.object({
|
|
11
11
|
params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
12
|
+
attachments: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.uuid())).optional(),
|
|
12
13
|
});
|
|
13
14
|
exports.GetGenerationPriceResponse = zod_1.z.object({
|
|
14
15
|
totalCost: zod_1.z.number(),
|
|
@@ -22,6 +22,8 @@ export declare const AttachmentPolicySchema: z.ZodRecord<z.ZodString, z.ZodObjec
|
|
|
22
22
|
maxSize: z.ZodInt;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
}, z.core.$strip>>;
|
|
25
|
+
export declare const AttachmentSlotConflictSchema: z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>;
|
|
26
|
+
export declare const DependentAttachmentSlotsSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
25
27
|
export declare const GenerationModelResponseSchema: z.ZodObject<{
|
|
26
28
|
uuid: z.ZodUUID;
|
|
27
29
|
titleModel: z.ZodString;
|
|
@@ -46,6 +48,8 @@ export declare const GenerationModelResponseSchema: z.ZodObject<{
|
|
|
46
48
|
maxSize: z.ZodInt;
|
|
47
49
|
}, z.core.$strip>;
|
|
48
50
|
}, z.core.$strip>>;
|
|
51
|
+
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
52
|
+
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
49
53
|
paramsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
50
54
|
pricingPolicy: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
55
|
type: z.ZodLiteral<"base">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation-model-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-model/models/generation-model-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAwB,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3C,eAAO,MAAM,oBAAoB,mCAA0B,CAAC;AAE5D,eAAO,MAAM,oBAAoB;;;;;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;kBAA6C,CAAC;AAEjF,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"generation-model-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-model/models/generation-model-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAwB,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3C,eAAO,MAAM,oBAAoB,mCAA0B,CAAC;AAE5D,eAAO,MAAM,oBAAoB;;;;;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;kBAA6C,CAAC;AAEjF,eAAO,MAAM,4BAA4B,sEAAsD,CAAC;AAEhG,eAAO,MAAM,8BAA8B,mDAA4C,CAAC;AAExF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBxC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenerationModelResponseSchema = exports.AttachmentPolicySchema = exports.AttachmentSlotSchema = exports.GenerationTypeSchema = void 0;
|
|
3
|
+
exports.GenerationModelResponseSchema = exports.DependentAttachmentSlotsSchema = exports.AttachmentSlotConflictSchema = exports.AttachmentPolicySchema = exports.AttachmentSlotSchema = exports.GenerationTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const file_1 = require("../../file");
|
|
6
6
|
const _common_1 = require("../../_common");
|
|
@@ -15,6 +15,8 @@ exports.AttachmentSlotSchema = zod_1.z.object({
|
|
|
15
15
|
allowedFormats: file_1.FileFormatListSchema,
|
|
16
16
|
});
|
|
17
17
|
exports.AttachmentPolicySchema = zod_1.z.record(zod_1.z.string(), exports.AttachmentSlotSchema);
|
|
18
|
+
exports.AttachmentSlotConflictSchema = zod_1.z.tuple([zod_1.z.array(zod_1.z.string()), zod_1.z.array(zod_1.z.string())]);
|
|
19
|
+
exports.DependentAttachmentSlotsSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.string()));
|
|
18
20
|
exports.GenerationModelResponseSchema = zod_1.z.object({
|
|
19
21
|
uuid: zod_1.z.uuid(),
|
|
20
22
|
titleModel: zod_1.z.string().min(1),
|
|
@@ -27,6 +29,8 @@ exports.GenerationModelResponseSchema = zod_1.z.object({
|
|
|
27
29
|
isActive: zod_1.z.boolean(),
|
|
28
30
|
isNew: zod_1.z.boolean(),
|
|
29
31
|
attachmentPolicy: exports.AttachmentPolicySchema,
|
|
32
|
+
conflictingSlots: zod_1.z.array(exports.AttachmentSlotConflictSchema),
|
|
33
|
+
dependentSlots: exports.DependentAttachmentSlotsSchema,
|
|
30
34
|
paramsSchema: JsonObjectSchema,
|
|
31
35
|
pricingPolicy: pricing_policy_schema_1.PricingPolicySchema,
|
|
32
36
|
});
|
|
@@ -12,6 +12,8 @@ export declare const BonusHistorySourceSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
12
12
|
amount: z.ZodNumber;
|
|
13
13
|
}, z.core.$strip>, z.ZodObject<{
|
|
14
14
|
type: z.ZodLiteral<"email_verification">;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"first_deposit_bonus">;
|
|
15
17
|
}, z.core.$strip>, z.ZodObject<{
|
|
16
18
|
type: z.ZodLiteral<"admin_bonus_operation">;
|
|
17
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -39,6 +41,8 @@ export declare const BonusHistoryItemSchema: z.ZodObject<{
|
|
|
39
41
|
amount: z.ZodNumber;
|
|
40
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
41
43
|
type: z.ZodLiteral<"email_verification">;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"first_deposit_bonus">;
|
|
42
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
43
47
|
type: z.ZodLiteral<"admin_bonus_operation">;
|
|
44
48
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -69,6 +73,8 @@ export declare const BonusHistoryResponseSchema: z.ZodObject<{
|
|
|
69
73
|
amount: z.ZodNumber;
|
|
70
74
|
}, z.core.$strip>, z.ZodObject<{
|
|
71
75
|
type: z.ZodLiteral<"email_verification">;
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
+
type: z.ZodLiteral<"first_deposit_bonus">;
|
|
72
78
|
}, z.core.$strip>, z.ZodObject<{
|
|
73
79
|
type: z.ZodLiteral<"admin_bonus_operation">;
|
|
74
80
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bonus-history-response.schema.d.ts","sourceRoot":"","sources":["../../../referral/models/bonus-history-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAExF,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"bonus-history-response.schema.d.ts","sourceRoot":"","sources":["../../../referral/models/bonus-history-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAExF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;2BAUnC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEpF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKjC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEhF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAErC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -10,6 +10,7 @@ exports.BonusHistorySourceSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
10
10
|
zod_1.z.object({ type: zod_1.z.literal('referral'), refereeId: zod_1.z.string() }),
|
|
11
11
|
zod_1.z.object({ type: zod_1.z.literal('payment'), amount: zod_1.z.number() }),
|
|
12
12
|
zod_1.z.object({ type: zod_1.z.literal('email_verification') }),
|
|
13
|
+
zod_1.z.object({ type: zod_1.z.literal('first_deposit_bonus') }),
|
|
13
14
|
zod_1.z.object({ type: zod_1.z.literal('admin_bonus_operation') }),
|
|
14
15
|
zod_1.z.object({ type: zod_1.z.literal('message'), model: zod_1.z.string() }),
|
|
15
16
|
zod_1.z.object({ type: zod_1.z.literal('generation_job_image') }),
|