@purpleschool/multisite 0.0.25 → 0.0.27
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/constants/image-generation/enums/image-generation-model-tag.enum.d.ts +7 -0
- package/build/constants/image-generation/enums/image-generation-model-tag.enum.d.ts.map +1 -0
- package/build/constants/image-generation/enums/image-generation-model-tag.enum.js +14 -0
- package/build/constants/image-generation/enums/index.d.ts +1 -0
- package/build/constants/image-generation/enums/index.d.ts.map +1 -1
- package/build/constants/image-generation/enums/index.js +1 -0
- package/build/models/image-generation/image-generation-config.schema.d.ts +7 -0
- package/build/models/image-generation/image-generation-config.schema.d.ts.map +1 -1
- package/build/models/image-generation/image-generation-model.schema.d.ts +4 -1
- package/build/models/image-generation/image-generation-model.schema.d.ts.map +1 -1
- package/build/models/image-generation/image-generation-model.schema.js +1 -0
- package/build/models/image-generation/image-generation-vendor.schema.d.ts +5 -0
- package/build/models/image-generation/image-generation-vendor.schema.d.ts.map +1 -1
- package/build/queries/image-generation/get-image-generation-config.command.d.ts +9 -0
- package/build/queries/image-generation/get-image-generation-config.command.d.ts.map +1 -1
- package/build/queries/unregistered-user/get-unregistered-user-balance.command.d.ts +5 -0
- package/build/queries/unregistered-user/get-unregistered-user-balance.command.d.ts.map +1 -1
- package/build/queries/unregistered-user/get-unregistered-user-balance.command.js +1 -0
- package/build/queries/user/get-user-balance.command.d.ts +5 -0
- package/build/queries/user/get-user-balance.command.d.ts.map +1 -1
- package/build/queries/user/get-user-balance.command.js +1 -0
- package/constants/image-generation/enums/image-generation-model-tag.enum.ts +11 -0
- package/constants/image-generation/enums/index.ts +1 -0
- package/models/image-generation/image-generation-model.schema.ts +2 -1
- package/package.json +1 -1
- package/queries/unregistered-user/get-unregistered-user-balance.command.ts +1 -0
- package/queries/user/get-user-balance.command.ts +1 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum IMAGE_GENERATION_MODEL_TAG {
|
|
2
|
+
STARTER = "starter",
|
|
3
|
+
POPULAR = "popular",
|
|
4
|
+
QUALITY = "quality"
|
|
5
|
+
}
|
|
6
|
+
export declare const IMAGE_GENERATION_MODEL_TAG_SORT_ORDER: Record<IMAGE_GENERATION_MODEL_TAG, number>;
|
|
7
|
+
//# sourceMappingURL=image-generation-model-tag.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-generation-model-tag.enum.d.ts","sourceRoot":"","sources":["../../../../constants/image-generation/enums/image-generation-model-tag.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IAClC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAED,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,0BAA0B,EAAE,MAAM,CAI5F,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMAGE_GENERATION_MODEL_TAG_SORT_ORDER = exports.IMAGE_GENERATION_MODEL_TAG = void 0;
|
|
4
|
+
var IMAGE_GENERATION_MODEL_TAG;
|
|
5
|
+
(function (IMAGE_GENERATION_MODEL_TAG) {
|
|
6
|
+
IMAGE_GENERATION_MODEL_TAG["STARTER"] = "starter";
|
|
7
|
+
IMAGE_GENERATION_MODEL_TAG["POPULAR"] = "popular";
|
|
8
|
+
IMAGE_GENERATION_MODEL_TAG["QUALITY"] = "quality";
|
|
9
|
+
})(IMAGE_GENERATION_MODEL_TAG || (exports.IMAGE_GENERATION_MODEL_TAG = IMAGE_GENERATION_MODEL_TAG = {}));
|
|
10
|
+
exports.IMAGE_GENERATION_MODEL_TAG_SORT_ORDER = {
|
|
11
|
+
[IMAGE_GENERATION_MODEL_TAG.STARTER]: 0,
|
|
12
|
+
[IMAGE_GENERATION_MODEL_TAG.POPULAR]: 1,
|
|
13
|
+
[IMAGE_GENERATION_MODEL_TAG.QUALITY]: 2,
|
|
14
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/image-generation/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/image-generation/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC"}
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./image-generation-resolution.enum"), exports);
|
|
18
|
+
__exportStar(require("./image-generation-model-tag.enum"), exports);
|
|
@@ -62,6 +62,7 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
|
|
|
62
62
|
uuid: string;
|
|
63
63
|
name: string;
|
|
64
64
|
}>>;
|
|
65
|
+
tag: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_MODEL_TAG>>;
|
|
65
66
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
66
67
|
condition: z.ZodObject<{
|
|
67
68
|
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
|
|
@@ -197,6 +198,7 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
|
|
|
197
198
|
description: string;
|
|
198
199
|
title: string;
|
|
199
200
|
model: string;
|
|
201
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
200
202
|
pricingRules: {
|
|
201
203
|
value: number;
|
|
202
204
|
condition: {
|
|
@@ -245,6 +247,7 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
|
|
|
245
247
|
description: string;
|
|
246
248
|
title: string;
|
|
247
249
|
model: string;
|
|
250
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
248
251
|
pricingRules: {
|
|
249
252
|
value: number;
|
|
250
253
|
condition: {
|
|
@@ -308,6 +311,7 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
|
|
|
308
311
|
description: string;
|
|
309
312
|
title: string;
|
|
310
313
|
model: string;
|
|
314
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
311
315
|
pricingRules: {
|
|
312
316
|
value: number;
|
|
313
317
|
condition: {
|
|
@@ -371,6 +375,7 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
|
|
|
371
375
|
description: string;
|
|
372
376
|
title: string;
|
|
373
377
|
model: string;
|
|
378
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
374
379
|
pricingRules: {
|
|
375
380
|
value: number;
|
|
376
381
|
condition: {
|
|
@@ -452,6 +457,7 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
|
|
|
452
457
|
description: string;
|
|
453
458
|
title: string;
|
|
454
459
|
model: string;
|
|
460
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
455
461
|
pricingRules: {
|
|
456
462
|
value: number;
|
|
457
463
|
condition: {
|
|
@@ -523,6 +529,7 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
|
|
|
523
529
|
description: string;
|
|
524
530
|
title: string;
|
|
525
531
|
model: string;
|
|
532
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
526
533
|
pricingRules: {
|
|
527
534
|
value: number;
|
|
528
535
|
condition: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-generation-config.schema.d.ts","sourceRoot":"","sources":["../../../models/image-generation/image-generation-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"image-generation-config.schema.d.ts","sourceRoot":"","sources":["../../../models/image-generation/image-generation-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { TOOL_MODEL_STATUS } from '../../constants';
|
|
2
|
+
import { TOOL_MODEL_STATUS, IMAGE_GENERATION_MODEL_TAG } from '../../constants';
|
|
3
3
|
export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
4
4
|
uuid: z.ZodString;
|
|
5
5
|
title: z.ZodString;
|
|
@@ -17,6 +17,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
17
17
|
uuid: string;
|
|
18
18
|
name: string;
|
|
19
19
|
}>>;
|
|
20
|
+
tag: z.ZodNullable<z.ZodNativeEnum<typeof IMAGE_GENERATION_MODEL_TAG>>;
|
|
20
21
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
21
22
|
condition: z.ZodObject<{
|
|
22
23
|
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
|
|
@@ -152,6 +153,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
152
153
|
description: string;
|
|
153
154
|
title: string;
|
|
154
155
|
model: string;
|
|
156
|
+
tag: IMAGE_GENERATION_MODEL_TAG | null;
|
|
155
157
|
pricingRules: {
|
|
156
158
|
value: number;
|
|
157
159
|
condition: {
|
|
@@ -200,6 +202,7 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
|
|
|
200
202
|
description: string;
|
|
201
203
|
title: string;
|
|
202
204
|
model: string;
|
|
205
|
+
tag: IMAGE_GENERATION_MODEL_TAG | null;
|
|
203
206
|
pricingRules: {
|
|
204
207
|
value: number;
|
|
205
208
|
condition: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-generation-model.schema.d.ts","sourceRoot":"","sources":["../../../models/image-generation/image-generation-model.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"image-generation-model.schema.d.ts","sourceRoot":"","sources":["../../../models/image-generation/image-generation-model.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAMhF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBrC,CAAC"}
|
|
@@ -15,6 +15,7 @@ exports.ImageGenerationModelSchema = zod_1.z.object({
|
|
|
15
15
|
price: zod_1.z.number().int().nonnegative(),
|
|
16
16
|
canUse: zod_1.z.boolean(),
|
|
17
17
|
unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
|
|
18
|
+
tag: zod_1.z.nativeEnum(constants_1.IMAGE_GENERATION_MODEL_TAG).nullable(),
|
|
18
19
|
pricingRules: image_generation_pricing_rule_schema_1.ImageGenerationPricingRulesSchema,
|
|
19
20
|
params: image_generation_model_params_schema_1.ImageGenerationModelParamsSchema,
|
|
20
21
|
status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
|
|
@@ -61,6 +61,7 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
|
|
|
61
61
|
uuid: string;
|
|
62
62
|
name: string;
|
|
63
63
|
}>>;
|
|
64
|
+
tag: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_MODEL_TAG>>;
|
|
64
65
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
65
66
|
condition: z.ZodObject<{
|
|
66
67
|
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
|
|
@@ -196,6 +197,7 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
|
|
|
196
197
|
description: string;
|
|
197
198
|
title: string;
|
|
198
199
|
model: string;
|
|
200
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
199
201
|
pricingRules: {
|
|
200
202
|
value: number;
|
|
201
203
|
condition: {
|
|
@@ -244,6 +246,7 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
|
|
|
244
246
|
description: string;
|
|
245
247
|
title: string;
|
|
246
248
|
model: string;
|
|
249
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
247
250
|
pricingRules: {
|
|
248
251
|
value: number;
|
|
249
252
|
condition: {
|
|
@@ -307,6 +310,7 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
|
|
|
307
310
|
description: string;
|
|
308
311
|
title: string;
|
|
309
312
|
model: string;
|
|
313
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
310
314
|
pricingRules: {
|
|
311
315
|
value: number;
|
|
312
316
|
condition: {
|
|
@@ -370,6 +374,7 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
|
|
|
370
374
|
description: string;
|
|
371
375
|
title: string;
|
|
372
376
|
model: string;
|
|
377
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
373
378
|
pricingRules: {
|
|
374
379
|
value: number;
|
|
375
380
|
condition: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-generation-vendor.schema.d.ts","sourceRoot":"","sources":["../../../models/image-generation/image-generation-vendor.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"image-generation-vendor.schema.d.ts","sourceRoot":"","sources":["../../../models/image-generation/image-generation-vendor.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -64,6 +64,7 @@ export declare namespace GetImageGenerationConfigCommand {
|
|
|
64
64
|
uuid: string;
|
|
65
65
|
name: string;
|
|
66
66
|
}>>;
|
|
67
|
+
tag: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_MODEL_TAG>>;
|
|
67
68
|
pricingRules: z.ZodArray<z.ZodObject<{
|
|
68
69
|
condition: z.ZodObject<{
|
|
69
70
|
resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
|
|
@@ -199,6 +200,7 @@ export declare namespace GetImageGenerationConfigCommand {
|
|
|
199
200
|
description: string;
|
|
200
201
|
title: string;
|
|
201
202
|
model: string;
|
|
203
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
202
204
|
pricingRules: {
|
|
203
205
|
value: number;
|
|
204
206
|
condition: {
|
|
@@ -247,6 +249,7 @@ export declare namespace GetImageGenerationConfigCommand {
|
|
|
247
249
|
description: string;
|
|
248
250
|
title: string;
|
|
249
251
|
model: string;
|
|
252
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
250
253
|
pricingRules: {
|
|
251
254
|
value: number;
|
|
252
255
|
condition: {
|
|
@@ -310,6 +313,7 @@ export declare namespace GetImageGenerationConfigCommand {
|
|
|
310
313
|
description: string;
|
|
311
314
|
title: string;
|
|
312
315
|
model: string;
|
|
316
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
313
317
|
pricingRules: {
|
|
314
318
|
value: number;
|
|
315
319
|
condition: {
|
|
@@ -373,6 +377,7 @@ export declare namespace GetImageGenerationConfigCommand {
|
|
|
373
377
|
description: string;
|
|
374
378
|
title: string;
|
|
375
379
|
model: string;
|
|
380
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
376
381
|
pricingRules: {
|
|
377
382
|
value: number;
|
|
378
383
|
condition: {
|
|
@@ -454,6 +459,7 @@ export declare namespace GetImageGenerationConfigCommand {
|
|
|
454
459
|
description: string;
|
|
455
460
|
title: string;
|
|
456
461
|
model: string;
|
|
462
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
457
463
|
pricingRules: {
|
|
458
464
|
value: number;
|
|
459
465
|
condition: {
|
|
@@ -525,6 +531,7 @@ export declare namespace GetImageGenerationConfigCommand {
|
|
|
525
531
|
description: string;
|
|
526
532
|
title: string;
|
|
527
533
|
model: string;
|
|
534
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
528
535
|
pricingRules: {
|
|
529
536
|
value: number;
|
|
530
537
|
condition: {
|
|
@@ -598,6 +605,7 @@ export declare namespace GetImageGenerationConfigCommand {
|
|
|
598
605
|
description: string;
|
|
599
606
|
title: string;
|
|
600
607
|
model: string;
|
|
608
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
601
609
|
pricingRules: {
|
|
602
610
|
value: number;
|
|
603
611
|
condition: {
|
|
@@ -671,6 +679,7 @@ export declare namespace GetImageGenerationConfigCommand {
|
|
|
671
679
|
description: string;
|
|
672
680
|
title: string;
|
|
673
681
|
model: string;
|
|
682
|
+
tag: import("../..").IMAGE_GENERATION_MODEL_TAG | null;
|
|
674
683
|
pricingRules: {
|
|
675
684
|
value: number;
|
|
676
685
|
condition: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-image-generation-config.command.d.ts","sourceRoot":"","sources":["../../../queries/image-generation/get-image-generation-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-image-generation-config.command.d.ts","sourceRoot":"","sources":["../../../queries/image-generation/get-image-generation-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -5,16 +5,19 @@ export declare namespace GetUnregisteredUserBalanceCommand {
|
|
|
5
5
|
subscriptionTokens: z.ZodNumber;
|
|
6
6
|
productTokens: z.ZodNumber;
|
|
7
7
|
bonusTokens: z.ZodNumber;
|
|
8
|
+
reservedTokens: z.ZodNumber;
|
|
8
9
|
totalTokens: z.ZodNumber;
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
subscriptionTokens: number;
|
|
11
12
|
productTokens: number;
|
|
12
13
|
bonusTokens: number;
|
|
14
|
+
reservedTokens: number;
|
|
13
15
|
totalTokens: number;
|
|
14
16
|
}, {
|
|
15
17
|
subscriptionTokens: number;
|
|
16
18
|
productTokens: number;
|
|
17
19
|
bonusTokens: number;
|
|
20
|
+
reservedTokens: number;
|
|
18
21
|
totalTokens: number;
|
|
19
22
|
}>;
|
|
20
23
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -22,6 +25,7 @@ export declare namespace GetUnregisteredUserBalanceCommand {
|
|
|
22
25
|
subscriptionTokens: number;
|
|
23
26
|
productTokens: number;
|
|
24
27
|
bonusTokens: number;
|
|
28
|
+
reservedTokens: number;
|
|
25
29
|
totalTokens: number;
|
|
26
30
|
};
|
|
27
31
|
}, {
|
|
@@ -29,6 +33,7 @@ export declare namespace GetUnregisteredUserBalanceCommand {
|
|
|
29
33
|
subscriptionTokens: number;
|
|
30
34
|
productTokens: number;
|
|
31
35
|
bonusTokens: number;
|
|
36
|
+
reservedTokens: number;
|
|
32
37
|
totalTokens: number;
|
|
33
38
|
};
|
|
34
39
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-unregistered-user-balance.command.d.ts","sourceRoot":"","sources":["../../../queries/unregistered-user/get-unregistered-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-unregistered-user-balance.command.d.ts","sourceRoot":"","sources":["../../../queries/unregistered-user/get-unregistered-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -9,6 +9,7 @@ var GetUnregisteredUserBalanceCommand;
|
|
|
9
9
|
subscriptionTokens: zod_1.z.number().int().min(0),
|
|
10
10
|
productTokens: zod_1.z.number().int().min(0),
|
|
11
11
|
bonusTokens: zod_1.z.number().int().min(0),
|
|
12
|
+
reservedTokens: zod_1.z.number().int().min(0),
|
|
12
13
|
totalTokens: zod_1.z.number().int().min(0),
|
|
13
14
|
}),
|
|
14
15
|
});
|
|
@@ -5,16 +5,19 @@ export declare namespace GetUserBalanceCommand {
|
|
|
5
5
|
subscriptionTokens: z.ZodNumber;
|
|
6
6
|
productTokens: z.ZodNumber;
|
|
7
7
|
bonusTokens: z.ZodNumber;
|
|
8
|
+
reservedTokens: z.ZodNumber;
|
|
8
9
|
totalTokens: z.ZodNumber;
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
subscriptionTokens: number;
|
|
11
12
|
productTokens: number;
|
|
12
13
|
bonusTokens: number;
|
|
14
|
+
reservedTokens: number;
|
|
13
15
|
totalTokens: number;
|
|
14
16
|
}, {
|
|
15
17
|
subscriptionTokens: number;
|
|
16
18
|
productTokens: number;
|
|
17
19
|
bonusTokens: number;
|
|
20
|
+
reservedTokens: number;
|
|
18
21
|
totalTokens: number;
|
|
19
22
|
}>;
|
|
20
23
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -22,6 +25,7 @@ export declare namespace GetUserBalanceCommand {
|
|
|
22
25
|
subscriptionTokens: number;
|
|
23
26
|
productTokens: number;
|
|
24
27
|
bonusTokens: number;
|
|
28
|
+
reservedTokens: number;
|
|
25
29
|
totalTokens: number;
|
|
26
30
|
};
|
|
27
31
|
}, {
|
|
@@ -29,6 +33,7 @@ export declare namespace GetUserBalanceCommand {
|
|
|
29
33
|
subscriptionTokens: number;
|
|
30
34
|
productTokens: number;
|
|
31
35
|
bonusTokens: number;
|
|
36
|
+
reservedTokens: number;
|
|
32
37
|
totalTokens: number;
|
|
33
38
|
};
|
|
34
39
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-balance.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-balance.command.d.ts","sourceRoot":"","sources":["../../../queries/user/get-user-balance.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -9,6 +9,7 @@ var GetUserBalanceCommand;
|
|
|
9
9
|
subscriptionTokens: zod_1.z.number().int().min(0),
|
|
10
10
|
productTokens: zod_1.z.number().int().min(0),
|
|
11
11
|
bonusTokens: zod_1.z.number().int().min(0),
|
|
12
|
+
reservedTokens: zod_1.z.number().int().min(0),
|
|
12
13
|
totalTokens: zod_1.z.number().int().min(0),
|
|
13
14
|
}),
|
|
14
15
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export enum IMAGE_GENERATION_MODEL_TAG {
|
|
2
|
+
STARTER = 'starter',
|
|
3
|
+
POPULAR = 'popular',
|
|
4
|
+
QUALITY = 'quality',
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const IMAGE_GENERATION_MODEL_TAG_SORT_ORDER: Record<IMAGE_GENERATION_MODEL_TAG, number> = {
|
|
8
|
+
[IMAGE_GENERATION_MODEL_TAG.STARTER]: 0,
|
|
9
|
+
[IMAGE_GENERATION_MODEL_TAG.POPULAR]: 1,
|
|
10
|
+
[IMAGE_GENERATION_MODEL_TAG.QUALITY]: 2,
|
|
11
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { TOOL_MODEL_STATUS } from '../../constants';
|
|
2
|
+
import { TOOL_MODEL_STATUS, IMAGE_GENERATION_MODEL_TAG } from '../../constants';
|
|
3
3
|
import { IconVariantsSchema } from '../common';
|
|
4
4
|
import { ImageGenerationModelParamsSchema } from './image-generation-model-params.schema';
|
|
5
5
|
import { ImageGenerationPricingRulesSchema } from './image-generation-pricing-rule.schema';
|
|
@@ -13,6 +13,7 @@ export const ImageGenerationModelSchema = z.object({
|
|
|
13
13
|
price: z.number().int().nonnegative(),
|
|
14
14
|
canUse: z.boolean(),
|
|
15
15
|
unlockedBy: UnlockedBySchema.nullable(),
|
|
16
|
+
tag: z.nativeEnum(IMAGE_GENERATION_MODEL_TAG).nullable(),
|
|
16
17
|
pricingRules: ImageGenerationPricingRulesSchema,
|
|
17
18
|
params: ImageGenerationModelParamsSchema,
|
|
18
19
|
status: z.nativeEnum(TOOL_MODEL_STATUS),
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export namespace GetUnregisteredUserBalanceCommand {
|
|
|
6
6
|
subscriptionTokens: z.number().int().min(0),
|
|
7
7
|
productTokens: z.number().int().min(0),
|
|
8
8
|
bonusTokens: z.number().int().min(0),
|
|
9
|
+
reservedTokens: z.number().int().min(0),
|
|
9
10
|
totalTokens: z.number().int().min(0),
|
|
10
11
|
}),
|
|
11
12
|
});
|