@purpleschool/multisite 0.0.23 → 0.0.25

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.
Files changed (36) hide show
  1. package/build/constants/image-generation/enums/index.d.ts +0 -1
  2. package/build/constants/image-generation/enums/index.d.ts.map +1 -1
  3. package/build/constants/image-generation/enums/index.js +0 -1
  4. package/build/models/image-editor/image-editor-config.schema.d.ts +8 -8
  5. package/build/models/image-editor/image-editor-model.schema.d.ts +4 -4
  6. package/build/models/image-generation/image-generation-config.schema.d.ts +40 -13
  7. package/build/models/image-generation/image-generation-config.schema.d.ts.map +1 -1
  8. package/build/models/image-generation/image-generation-model.schema.d.ts +21 -6
  9. package/build/models/image-generation/image-generation-model.schema.d.ts.map +1 -1
  10. package/build/models/image-generation/image-generation-model.schema.js +2 -1
  11. package/build/models/image-generation/image-generation-vendor.schema.d.ts +30 -9
  12. package/build/models/image-generation/image-generation-vendor.schema.d.ts.map +1 -1
  13. package/build/models/index.d.ts +1 -0
  14. package/build/models/index.d.ts.map +1 -1
  15. package/build/models/index.js +1 -0
  16. package/build/models/stt/stt-config.schema.d.ts +4 -4
  17. package/build/models/stt/stt-model.schema.d.ts +2 -2
  18. package/build/models/tts/tts-config.schema.d.ts +36 -36
  19. package/build/models/tts/tts-model.schema.d.ts +44 -44
  20. package/build/models/unlocked-by-subscription.schema.d.ts +36 -0
  21. package/build/models/unlocked-by-subscription.schema.d.ts.map +1 -0
  22. package/build/models/unlocked-by-subscription.schema.js +13 -0
  23. package/build/queries/image-editor/get-image-editor-config.command.d.ts +12 -12
  24. package/build/queries/image-generation/get-image-generation-config.command.d.ts +50 -17
  25. package/build/queries/image-generation/get-image-generation-config.command.d.ts.map +1 -1
  26. package/build/queries/stt/get-stt-config.command.d.ts +6 -6
  27. package/build/queries/tts/get-tts-config.command.d.ts +46 -46
  28. package/constants/image-generation/enums/index.ts +0 -1
  29. package/models/image-generation/image-generation-model.schema.ts +3 -2
  30. package/models/index.ts +1 -0
  31. package/models/unlocked-by-subscription.schema.ts +14 -0
  32. package/package.json +1 -1
  33. package/build/constants/image-generation/enums/image-generation-model-strategy.enum.d.ts +0 -15
  34. package/build/constants/image-generation/enums/image-generation-model-strategy.enum.d.ts.map +0 -1
  35. package/build/constants/image-generation/enums/image-generation-model-strategy.enum.js +0 -18
  36. package/constants/image-generation/enums/image-generation-model-strategy.enum.ts +0 -15
@@ -1,3 +1,2 @@
1
- export * from './image-generation-model-strategy.enum';
2
1
  export * from './image-generation-resolution.enum';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/image-generation/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/image-generation/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
@@ -14,5 +14,4 @@ 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("./image-generation-model-strategy.enum"), exports);
18
17
  __exportStar(require("./image-generation-resolution.enum"), exports);
@@ -135,16 +135,15 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
135
135
  acceptedTypes: string[];
136
136
  };
137
137
  };
138
+ canUse: boolean;
138
139
  description: string;
139
140
  title: string;
140
- canUse: boolean;
141
141
  pricingRules: {
142
142
  value: number;
143
143
  condition: {
144
144
  withoutSub?: boolean | undefined;
145
145
  };
146
146
  }[];
147
- strategy: import("../..").IMAGE_EDITING_STRATEGY;
148
147
  order: number;
149
148
  aiModel: string;
150
149
  isNew: boolean;
@@ -160,6 +159,7 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
160
159
  svg?: string | undefined;
161
160
  };
162
161
  };
162
+ strategy: import("../..").IMAGE_EDITING_STRATEGY;
163
163
  maxInputLength: number;
164
164
  createdAt?: string | Date | undefined;
165
165
  updatedAt?: string | Date | undefined;
@@ -178,16 +178,15 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
178
178
  acceptedTypes: string[];
179
179
  };
180
180
  };
181
+ canUse: boolean;
181
182
  description: string;
182
183
  title: string;
183
- canUse: boolean;
184
184
  pricingRules: {
185
185
  value: number;
186
186
  condition: {
187
187
  withoutSub?: boolean | undefined;
188
188
  };
189
189
  }[];
190
- strategy: import("../..").IMAGE_EDITING_STRATEGY;
191
190
  order: number;
192
191
  aiModel: string;
193
192
  isNew: boolean;
@@ -203,6 +202,7 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
203
202
  svg?: string | undefined;
204
203
  };
205
204
  };
205
+ strategy: import("../..").IMAGE_EDITING_STRATEGY;
206
206
  maxInputLength: number;
207
207
  createdAt?: string | Date | undefined;
208
208
  updatedAt?: string | Date | undefined;
@@ -369,16 +369,15 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
369
369
  acceptedTypes: string[];
370
370
  };
371
371
  };
372
+ canUse: boolean;
372
373
  description: string;
373
374
  title: string;
374
- canUse: boolean;
375
375
  pricingRules: {
376
376
  value: number;
377
377
  condition: {
378
378
  withoutSub?: boolean | undefined;
379
379
  };
380
380
  }[];
381
- strategy: import("../..").IMAGE_EDITING_STRATEGY;
382
381
  order: number;
383
382
  aiModel: string;
384
383
  isNew: boolean;
@@ -394,6 +393,7 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
394
393
  svg?: string | undefined;
395
394
  };
396
395
  };
396
+ strategy: import("../..").IMAGE_EDITING_STRATEGY;
397
397
  maxInputLength: number;
398
398
  createdAt?: string | Date | undefined;
399
399
  updatedAt?: string | Date | undefined;
@@ -444,16 +444,15 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
444
444
  acceptedTypes: string[];
445
445
  };
446
446
  };
447
+ canUse: boolean;
447
448
  description: string;
448
449
  title: string;
449
- canUse: boolean;
450
450
  pricingRules: {
451
451
  value: number;
452
452
  condition: {
453
453
  withoutSub?: boolean | undefined;
454
454
  };
455
455
  }[];
456
- strategy: import("../..").IMAGE_EDITING_STRATEGY;
457
456
  order: number;
458
457
  aiModel: string;
459
458
  isNew: boolean;
@@ -469,6 +468,7 @@ export declare const ImageEditorConfigSchema: z.ZodObject<{
469
468
  svg?: string | undefined;
470
469
  };
471
470
  };
471
+ strategy: import("../..").IMAGE_EDITING_STRATEGY;
472
472
  maxInputLength: number;
473
473
  createdAt?: string | Date | undefined;
474
474
  updatedAt?: string | Date | undefined;
@@ -135,16 +135,15 @@ export declare const ImageEditorModelSchema: z.ZodObject<{
135
135
  acceptedTypes: string[];
136
136
  };
137
137
  };
138
+ canUse: boolean;
138
139
  description: string;
139
140
  title: string;
140
- canUse: boolean;
141
141
  pricingRules: {
142
142
  value: number;
143
143
  condition: {
144
144
  withoutSub?: boolean | undefined;
145
145
  };
146
146
  }[];
147
- strategy: IMAGE_EDITING_STRATEGY;
148
147
  order: number;
149
148
  aiModel: string;
150
149
  isNew: boolean;
@@ -160,6 +159,7 @@ export declare const ImageEditorModelSchema: z.ZodObject<{
160
159
  svg?: string | undefined;
161
160
  };
162
161
  };
162
+ strategy: IMAGE_EDITING_STRATEGY;
163
163
  maxInputLength: number;
164
164
  createdAt?: string | Date | undefined;
165
165
  updatedAt?: string | Date | undefined;
@@ -178,16 +178,15 @@ export declare const ImageEditorModelSchema: z.ZodObject<{
178
178
  acceptedTypes: string[];
179
179
  };
180
180
  };
181
+ canUse: boolean;
181
182
  description: string;
182
183
  title: string;
183
- canUse: boolean;
184
184
  pricingRules: {
185
185
  value: number;
186
186
  condition: {
187
187
  withoutSub?: boolean | undefined;
188
188
  };
189
189
  }[];
190
- strategy: IMAGE_EDITING_STRATEGY;
191
190
  order: number;
192
191
  aiModel: string;
193
192
  isNew: boolean;
@@ -203,6 +202,7 @@ export declare const ImageEditorModelSchema: z.ZodObject<{
203
202
  svg?: string | undefined;
204
203
  };
205
204
  };
205
+ strategy: IMAGE_EDITING_STRATEGY;
206
206
  maxInputLength: number;
207
207
  createdAt?: string | Date | undefined;
208
208
  updatedAt?: string | Date | undefined;
@@ -52,6 +52,16 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
52
52
  description: z.ZodString;
53
53
  price: z.ZodNumber;
54
54
  canUse: z.ZodBoolean;
55
+ unlockedBy: z.ZodNullable<z.ZodObject<{
56
+ uuid: z.ZodString;
57
+ name: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ uuid: string;
60
+ name: string;
61
+ }, {
62
+ uuid: string;
63
+ name: string;
64
+ }>>;
55
65
  pricingRules: z.ZodArray<z.ZodObject<{
56
66
  condition: z.ZodObject<{
57
67
  resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
@@ -115,7 +125,6 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
115
125
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
116
126
  } | undefined;
117
127
  }>;
118
- strategy: z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_MODEL_STRATEGY>;
119
128
  status: z.ZodNativeEnum<typeof import("../..").TOOL_MODEL_STATUS>;
120
129
  statusCheckEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
130
  maxPromptLength: z.ZodNumber;
@@ -180,10 +189,14 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
180
189
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
181
190
  } | undefined;
182
191
  };
192
+ unlockedBy: {
193
+ uuid: string;
194
+ name: string;
195
+ } | null;
196
+ canUse: boolean;
183
197
  description: string;
184
198
  title: string;
185
199
  model: string;
186
- canUse: boolean;
187
200
  pricingRules: {
188
201
  value: number;
189
202
  condition: {
@@ -191,7 +204,6 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
191
204
  withoutSub?: boolean | undefined;
192
205
  };
193
206
  }[];
194
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
195
207
  maxPromptLength: number;
196
208
  iconVariants: {
197
209
  light: {
@@ -225,10 +237,14 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
225
237
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
226
238
  } | undefined;
227
239
  };
240
+ unlockedBy: {
241
+ uuid: string;
242
+ name: string;
243
+ } | null;
244
+ canUse: boolean;
228
245
  description: string;
229
246
  title: string;
230
247
  model: string;
231
- canUse: boolean;
232
248
  pricingRules: {
233
249
  value: number;
234
250
  condition: {
@@ -236,7 +252,6 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
236
252
  withoutSub?: boolean | undefined;
237
253
  };
238
254
  }[];
239
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
240
255
  maxPromptLength: number;
241
256
  iconVariants: {
242
257
  light: {
@@ -285,10 +300,14 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
285
300
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
286
301
  } | undefined;
287
302
  };
303
+ unlockedBy: {
304
+ uuid: string;
305
+ name: string;
306
+ } | null;
307
+ canUse: boolean;
288
308
  description: string;
289
309
  title: string;
290
310
  model: string;
291
- canUse: boolean;
292
311
  pricingRules: {
293
312
  value: number;
294
313
  condition: {
@@ -296,7 +315,6 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
296
315
  withoutSub?: boolean | undefined;
297
316
  };
298
317
  }[];
299
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
300
318
  maxPromptLength: number;
301
319
  iconVariants: {
302
320
  light: {
@@ -345,10 +363,14 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
345
363
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
346
364
  } | undefined;
347
365
  };
366
+ unlockedBy: {
367
+ uuid: string;
368
+ name: string;
369
+ } | null;
370
+ canUse: boolean;
348
371
  description: string;
349
372
  title: string;
350
373
  model: string;
351
- canUse: boolean;
352
374
  pricingRules: {
353
375
  value: number;
354
376
  condition: {
@@ -356,7 +378,6 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
356
378
  withoutSub?: boolean | undefined;
357
379
  };
358
380
  }[];
359
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
360
381
  maxPromptLength: number;
361
382
  iconVariants: {
362
383
  light: {
@@ -423,10 +444,14 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
423
444
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
424
445
  } | undefined;
425
446
  };
447
+ unlockedBy: {
448
+ uuid: string;
449
+ name: string;
450
+ } | null;
451
+ canUse: boolean;
426
452
  description: string;
427
453
  title: string;
428
454
  model: string;
429
- canUse: boolean;
430
455
  pricingRules: {
431
456
  value: number;
432
457
  condition: {
@@ -434,7 +459,6 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
434
459
  withoutSub?: boolean | undefined;
435
460
  };
436
461
  }[];
437
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
438
462
  maxPromptLength: number;
439
463
  iconVariants: {
440
464
  light: {
@@ -491,10 +515,14 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
491
515
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
492
516
  } | undefined;
493
517
  };
518
+ unlockedBy: {
519
+ uuid: string;
520
+ name: string;
521
+ } | null;
522
+ canUse: boolean;
494
523
  description: string;
495
524
  title: string;
496
525
  model: string;
497
- canUse: boolean;
498
526
  pricingRules: {
499
527
  value: number;
500
528
  condition: {
@@ -502,7 +530,6 @@ export declare const ImageGenerationConfigSchema: z.ZodObject<{
502
530
  withoutSub?: boolean | undefined;
503
531
  };
504
532
  }[];
505
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
506
533
  maxPromptLength: number;
507
534
  iconVariants: {
508
535
  light: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
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 { IMAGE_GENERATION_MODEL_STRATEGY, TOOL_MODEL_STATUS } from '../../constants';
2
+ import { TOOL_MODEL_STATUS } from '../../constants';
3
3
  export declare const ImageGenerationModelSchema: z.ZodObject<{
4
4
  uuid: z.ZodString;
5
5
  title: z.ZodString;
@@ -7,6 +7,16 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
7
7
  description: z.ZodString;
8
8
  price: z.ZodNumber;
9
9
  canUse: z.ZodBoolean;
10
+ unlockedBy: z.ZodNullable<z.ZodObject<{
11
+ uuid: z.ZodString;
12
+ name: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ uuid: string;
15
+ name: string;
16
+ }, {
17
+ uuid: string;
18
+ name: string;
19
+ }>>;
10
20
  pricingRules: z.ZodArray<z.ZodObject<{
11
21
  condition: z.ZodObject<{
12
22
  resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
@@ -70,7 +80,6 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
70
80
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
71
81
  } | undefined;
72
82
  }>;
73
- strategy: z.ZodNativeEnum<typeof IMAGE_GENERATION_MODEL_STRATEGY>;
74
83
  status: z.ZodNativeEnum<typeof TOOL_MODEL_STATUS>;
75
84
  statusCheckEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
85
  maxPromptLength: z.ZodNumber;
@@ -135,10 +144,14 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
135
144
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
136
145
  } | undefined;
137
146
  };
147
+ unlockedBy: {
148
+ uuid: string;
149
+ name: string;
150
+ } | null;
151
+ canUse: boolean;
138
152
  description: string;
139
153
  title: string;
140
154
  model: string;
141
- canUse: boolean;
142
155
  pricingRules: {
143
156
  value: number;
144
157
  condition: {
@@ -146,7 +159,6 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
146
159
  withoutSub?: boolean | undefined;
147
160
  };
148
161
  }[];
149
- strategy: IMAGE_GENERATION_MODEL_STRATEGY;
150
162
  maxPromptLength: number;
151
163
  iconVariants: {
152
164
  light: {
@@ -180,10 +192,14 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
180
192
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
181
193
  } | undefined;
182
194
  };
195
+ unlockedBy: {
196
+ uuid: string;
197
+ name: string;
198
+ } | null;
199
+ canUse: boolean;
183
200
  description: string;
184
201
  title: string;
185
202
  model: string;
186
- canUse: boolean;
187
203
  pricingRules: {
188
204
  value: number;
189
205
  condition: {
@@ -191,7 +207,6 @@ export declare const ImageGenerationModelSchema: z.ZodObject<{
191
207
  withoutSub?: boolean | undefined;
192
208
  };
193
209
  }[];
194
- strategy: IMAGE_GENERATION_MODEL_STRATEGY;
195
210
  maxPromptLength: number;
196
211
  iconVariants: {
197
212
  light: {
@@ -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,+BAA+B,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKrF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBrC,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,MAAM,iBAAiB,CAAC;AAMpD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBrC,CAAC"}
@@ -6,6 +6,7 @@ const constants_1 = require("../../constants");
6
6
  const common_1 = require("../common");
7
7
  const image_generation_model_params_schema_1 = require("./image-generation-model-params.schema");
8
8
  const image_generation_pricing_rule_schema_1 = require("./image-generation-pricing-rule.schema");
9
+ const unlocked_by_subscription_schema_1 = require("../unlocked-by-subscription.schema");
9
10
  exports.ImageGenerationModelSchema = zod_1.z.object({
10
11
  uuid: zod_1.z.string().uuid(),
11
12
  title: zod_1.z.string(),
@@ -13,9 +14,9 @@ exports.ImageGenerationModelSchema = zod_1.z.object({
13
14
  description: zod_1.z.string(),
14
15
  price: zod_1.z.number().int().nonnegative(),
15
16
  canUse: zod_1.z.boolean(),
17
+ unlockedBy: unlocked_by_subscription_schema_1.UnlockedBySchema.nullable(),
16
18
  pricingRules: image_generation_pricing_rule_schema_1.ImageGenerationPricingRulesSchema,
17
19
  params: image_generation_model_params_schema_1.ImageGenerationModelParamsSchema,
18
- strategy: zod_1.z.nativeEnum(constants_1.IMAGE_GENERATION_MODEL_STRATEGY),
19
20
  status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
20
21
  statusCheckEndpoint: zod_1.z.string().nullable().optional(),
21
22
  maxPromptLength: zod_1.z.number().int(),
@@ -51,6 +51,16 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
51
51
  description: z.ZodString;
52
52
  price: z.ZodNumber;
53
53
  canUse: z.ZodBoolean;
54
+ unlockedBy: z.ZodNullable<z.ZodObject<{
55
+ uuid: z.ZodString;
56
+ name: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ uuid: string;
59
+ name: string;
60
+ }, {
61
+ uuid: string;
62
+ name: string;
63
+ }>>;
54
64
  pricingRules: z.ZodArray<z.ZodObject<{
55
65
  condition: z.ZodObject<{
56
66
  resolution: z.ZodOptional<z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_RESOLUTION>>;
@@ -114,7 +124,6 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
114
124
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
115
125
  } | undefined;
116
126
  }>;
117
- strategy: z.ZodNativeEnum<typeof import("../..").IMAGE_GENERATION_MODEL_STRATEGY>;
118
127
  status: z.ZodNativeEnum<typeof import("../..").TOOL_MODEL_STATUS>;
119
128
  statusCheckEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
129
  maxPromptLength: z.ZodNumber;
@@ -179,10 +188,14 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
179
188
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
180
189
  } | undefined;
181
190
  };
191
+ unlockedBy: {
192
+ uuid: string;
193
+ name: string;
194
+ } | null;
195
+ canUse: boolean;
182
196
  description: string;
183
197
  title: string;
184
198
  model: string;
185
- canUse: boolean;
186
199
  pricingRules: {
187
200
  value: number;
188
201
  condition: {
@@ -190,7 +203,6 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
190
203
  withoutSub?: boolean | undefined;
191
204
  };
192
205
  }[];
193
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
194
206
  maxPromptLength: number;
195
207
  iconVariants: {
196
208
  light: {
@@ -224,10 +236,14 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
224
236
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
225
237
  } | undefined;
226
238
  };
239
+ unlockedBy: {
240
+ uuid: string;
241
+ name: string;
242
+ } | null;
243
+ canUse: boolean;
227
244
  description: string;
228
245
  title: string;
229
246
  model: string;
230
- canUse: boolean;
231
247
  pricingRules: {
232
248
  value: number;
233
249
  condition: {
@@ -235,7 +251,6 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
235
251
  withoutSub?: boolean | undefined;
236
252
  };
237
253
  }[];
238
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
239
254
  maxPromptLength: number;
240
255
  iconVariants: {
241
256
  light: {
@@ -284,10 +299,14 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
284
299
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
285
300
  } | undefined;
286
301
  };
302
+ unlockedBy: {
303
+ uuid: string;
304
+ name: string;
305
+ } | null;
306
+ canUse: boolean;
287
307
  description: string;
288
308
  title: string;
289
309
  model: string;
290
- canUse: boolean;
291
310
  pricingRules: {
292
311
  value: number;
293
312
  condition: {
@@ -295,7 +314,6 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
295
314
  withoutSub?: boolean | undefined;
296
315
  };
297
316
  }[];
298
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
299
317
  maxPromptLength: number;
300
318
  iconVariants: {
301
319
  light: {
@@ -344,10 +362,14 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
344
362
  options: import("../..").IMAGE_GENERATION_RESOLUTION[];
345
363
  } | undefined;
346
364
  };
365
+ unlockedBy: {
366
+ uuid: string;
367
+ name: string;
368
+ } | null;
369
+ canUse: boolean;
347
370
  description: string;
348
371
  title: string;
349
372
  model: string;
350
- canUse: boolean;
351
373
  pricingRules: {
352
374
  value: number;
353
375
  condition: {
@@ -355,7 +377,6 @@ export declare const ImageGenerationVendorSchema: z.ZodObject<{
355
377
  withoutSub?: boolean | undefined;
356
378
  };
357
379
  }[];
358
- strategy: import("../..").IMAGE_GENERATION_MODEL_STRATEGY;
359
380
  maxPromptLength: number;
360
381
  iconVariants: {
361
382
  light: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
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"}
@@ -1,4 +1,5 @@
1
1
  export * from './user.schema';
2
+ export * from './unlocked-by-subscription.schema';
2
3
  export * from './product.schema';
3
4
  export * from './subscription.schema';
4
5
  export * from './user-to-product.schema';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC"}
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user.schema"), exports);
18
+ __exportStar(require("./unlocked-by-subscription.schema"), exports);
18
19
  __exportStar(require("./product.schema"), exports);
19
20
  __exportStar(require("./subscription.schema"), exports);
20
21
  __exportStar(require("./user-to-product.schema"), exports);
@@ -63,7 +63,6 @@ export declare const STTConfigSchema: z.ZodObject<{
63
63
  createdAt: Date;
64
64
  updatedAt: Date;
65
65
  title: string;
66
- strategy: string;
67
66
  order: number;
68
67
  aiModel: string;
69
68
  icons: {
@@ -76,6 +75,7 @@ export declare const STTConfigSchema: z.ZodObject<{
76
75
  svg?: string | undefined;
77
76
  };
78
77
  };
78
+ strategy: string;
79
79
  pricePerSecond: number;
80
80
  maxDurationSeconds: number;
81
81
  maxSizeMB: number;
@@ -88,7 +88,6 @@ export declare const STTConfigSchema: z.ZodObject<{
88
88
  createdAt: Date;
89
89
  updatedAt: Date;
90
90
  title: string;
91
- strategy: string;
92
91
  order: number;
93
92
  aiModel: string;
94
93
  icons: {
@@ -101,6 +100,7 @@ export declare const STTConfigSchema: z.ZodObject<{
101
100
  svg?: string | undefined;
102
101
  };
103
102
  };
103
+ strategy: string;
104
104
  pricePerSecond: number;
105
105
  maxDurationSeconds: number;
106
106
  maxSizeMB: number;
@@ -115,7 +115,6 @@ export declare const STTConfigSchema: z.ZodObject<{
115
115
  createdAt: Date;
116
116
  updatedAt: Date;
117
117
  title: string;
118
- strategy: string;
119
118
  order: number;
120
119
  aiModel: string;
121
120
  icons: {
@@ -128,6 +127,7 @@ export declare const STTConfigSchema: z.ZodObject<{
128
127
  svg?: string | undefined;
129
128
  };
130
129
  };
130
+ strategy: string;
131
131
  pricePerSecond: number;
132
132
  maxDurationSeconds: number;
133
133
  maxSizeMB: number;
@@ -142,7 +142,6 @@ export declare const STTConfigSchema: z.ZodObject<{
142
142
  createdAt: Date;
143
143
  updatedAt: Date;
144
144
  title: string;
145
- strategy: string;
146
145
  order: number;
147
146
  aiModel: string;
148
147
  icons: {
@@ -155,6 +154,7 @@ export declare const STTConfigSchema: z.ZodObject<{
155
154
  svg?: string | undefined;
156
155
  };
157
156
  };
157
+ strategy: string;
158
158
  pricePerSecond: number;
159
159
  maxDurationSeconds: number;
160
160
  maxSizeMB: number;