@purpleschool/multisite 0.0.21 → 0.0.22

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 (129) hide show
  1. package/api/controller/http/index.ts +2 -0
  2. package/api/controller/http/user-to-product.ts +7 -0
  3. package/api/controller/http/user-to-subscription.ts +8 -0
  4. package/api/routes.ts +18 -0
  5. package/build/api/controller/http/index.d.ts +2 -0
  6. package/build/api/controller/http/index.d.ts.map +1 -1
  7. package/build/api/controller/http/index.js +2 -0
  8. package/build/api/controller/http/user-to-product.d.ts +7 -0
  9. package/build/api/controller/http/user-to-product.d.ts.map +1 -0
  10. package/build/api/controller/http/user-to-product.js +9 -0
  11. package/build/api/controller/http/user-to-subscription.d.ts +8 -0
  12. package/build/api/controller/http/user-to-subscription.d.ts.map +1 -0
  13. package/build/api/controller/http/user-to-subscription.js +10 -0
  14. package/build/api/routes.d.ts +11 -0
  15. package/build/api/routes.d.ts.map +1 -1
  16. package/build/api/routes.js +11 -0
  17. package/build/commands/image-editor/execute-image-editor.command.d.ts +4 -4
  18. package/build/commands/image-editor/retry-image-editor-job.command.d.ts +4 -4
  19. package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +4 -4
  20. package/build/commands/image-editor/update-image-editor-job-title.command.d.ts +4 -4
  21. package/build/commands/image-generation/execute-image-generation.command.d.ts +4 -4
  22. package/build/commands/image-generation/retry-image-generation-job.command.d.ts +4 -4
  23. package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +4 -4
  24. package/build/commands/image-generation/update-image-generation-job-title.command.d.ts +4 -4
  25. package/build/commands/index.d.ts +2 -0
  26. package/build/commands/index.d.ts.map +1 -1
  27. package/build/commands/index.js +2 -0
  28. package/build/commands/page/create-page.command.d.ts +4 -4
  29. package/build/commands/page/find-page-by-alias.command.d.ts +12 -12
  30. package/build/commands/page/find-page-by-criteria.command.d.ts +4 -4
  31. package/build/commands/page/find-page.command.d.ts +8 -8
  32. package/build/commands/page/update-page.command.d.ts +4 -4
  33. package/build/commands/payment/cloud-payments.command.d.ts +2 -2
  34. package/build/commands/stt/execute-stt.command.d.ts +12 -12
  35. package/build/commands/stt/retry-stt-job.command.d.ts +12 -12
  36. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +12 -12
  37. package/build/commands/stt/update-stt-job-title.command.d.ts +12 -12
  38. package/build/commands/tts/execute-tts.command.d.ts +12 -12
  39. package/build/commands/tts/retry-tts-job.command.d.ts +12 -12
  40. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +12 -12
  41. package/build/commands/tts/update-tts-job-title.command.d.ts +12 -12
  42. package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts +4 -4
  43. package/build/commands/user-to-product/delete-user-to-product.command.d.ts +20 -0
  44. package/build/commands/user-to-product/delete-user-to-product.command.d.ts.map +1 -0
  45. package/build/commands/user-to-product/delete-user-to-product.command.js +13 -0
  46. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts +75 -0
  47. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts.map +1 -0
  48. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.js +14 -0
  49. package/build/commands/user-to-product/index.d.ts +4 -0
  50. package/build/commands/user-to-product/index.d.ts.map +1 -0
  51. package/build/commands/user-to-product/index.js +19 -0
  52. package/build/commands/user-to-product/update-user-to-product.command.d.ts +93 -0
  53. package/build/commands/user-to-product/update-user-to-product.command.d.ts.map +1 -0
  54. package/build/commands/user-to-product/update-user-to-product.command.js +21 -0
  55. package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts +14 -0
  56. package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts.map +1 -0
  57. package/build/commands/user-to-subscription/admin-cancel-subscription.command.js +11 -0
  58. package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts +20 -0
  59. package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts.map +1 -0
  60. package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +13 -0
  61. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +115 -0
  62. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts.map +1 -0
  63. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.js +14 -0
  64. package/build/commands/user-to-subscription/index.d.ts +5 -0
  65. package/build/commands/user-to-subscription/index.d.ts.map +1 -0
  66. package/build/commands/user-to-subscription/index.js +20 -0
  67. package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +157 -0
  68. package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts.map +1 -0
  69. package/build/commands/user-to-subscription/update-user-to-subscription.command.js +29 -0
  70. package/build/constants/errors/errors.d.ts +60 -0
  71. package/build/constants/errors/errors.d.ts.map +1 -1
  72. package/build/constants/errors/errors.js +62 -0
  73. package/build/models/image-editor/image-editor-config.schema.d.ts +10 -10
  74. package/build/models/image-editor/image-editor-job.schema.d.ts +2 -2
  75. package/build/models/image-editor/image-editor-model.schema.d.ts +2 -2
  76. package/build/models/image-editor/image-editor-prompt-group.schema.d.ts +4 -4
  77. package/build/models/image-editor/image-editor-system-prompt.schema.d.ts +2 -2
  78. package/build/models/image-generation/image-generation-config.schema.d.ts +6 -6
  79. package/build/models/image-generation/image-generation-job.schema.d.ts +2 -2
  80. package/build/models/image-generation/image-generation-model.schema.d.ts +2 -2
  81. package/build/models/image-generation/image-generation-vendor.schema.d.ts +4 -4
  82. package/build/models/index.d.ts +2 -0
  83. package/build/models/index.d.ts.map +1 -1
  84. package/build/models/index.js +2 -0
  85. package/build/models/page.schema.d.ts +4 -4
  86. package/build/models/stt/stt-config.schema.d.ts +8 -8
  87. package/build/models/stt/stt-job.schema.d.ts +6 -6
  88. package/build/models/stt/stt-model.schema.d.ts +4 -4
  89. package/build/models/tts/tts-config.schema.d.ts +8 -8
  90. package/build/models/tts/tts-job.schema.d.ts +6 -6
  91. package/build/models/tts/tts-model.schema.d.ts +4 -4
  92. package/build/models/user-to-product.schema.d.ts +37 -0
  93. package/build/models/user-to-product.schema.d.ts.map +1 -0
  94. package/build/models/user-to-product.schema.js +17 -0
  95. package/build/models/user-to-subscription.schema.d.ts +61 -0
  96. package/build/models/user-to-subscription.schema.d.ts.map +1 -0
  97. package/build/models/user-to-subscription.schema.js +25 -0
  98. package/build/queries/image-editor/find-image-editor-jobs.command.d.ts +4 -4
  99. package/build/queries/image-editor/get-image-editor-config.command.d.ts +14 -14
  100. package/build/queries/image-editor/get-image-editor-job.command.d.ts +4 -4
  101. package/build/queries/image-generation/find-image-generation-jobs.command.d.ts +4 -4
  102. package/build/queries/image-generation/get-image-generation-config.command.d.ts +8 -8
  103. package/build/queries/image-generation/get-image-generation-job.command.d.ts +4 -4
  104. package/build/queries/payment/get-payment-history.command.d.ts +6 -6
  105. package/build/queries/stt/find-stt-jobs.command.d.ts +12 -12
  106. package/build/queries/stt/get-stt-config.command.d.ts +12 -12
  107. package/build/queries/stt/get-stt-job.command.d.ts +12 -12
  108. package/build/queries/subscription/get-subscriptions-summary.command.d.ts +16 -16
  109. package/build/queries/tts/find-tts-jobs.command.d.ts +12 -12
  110. package/build/queries/tts/get-tts-config.command.d.ts +12 -12
  111. package/build/queries/tts/get-tts-job.command.d.ts +12 -12
  112. package/build/queries/user/get-my-products.command.d.ts +8 -8
  113. package/build/queries/user/get-my-subscriptions.command.d.ts +12 -12
  114. package/build/queries/user/get-user-payments.command.d.ts +18 -18
  115. package/commands/index.ts +2 -0
  116. package/commands/user-to-product/delete-user-to-product.command.ts +13 -0
  117. package/commands/user-to-product/get-user-to-product-by-uuid.command.ts +14 -0
  118. package/commands/user-to-product/index.ts +3 -0
  119. package/commands/user-to-product/update-user-to-product.command.ts +23 -0
  120. package/commands/user-to-subscription/admin-cancel-subscription.command.ts +11 -0
  121. package/commands/user-to-subscription/delete-user-to-subscription.command.ts +13 -0
  122. package/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.ts +14 -0
  123. package/commands/user-to-subscription/index.ts +4 -0
  124. package/commands/user-to-subscription/update-user-to-subscription.command.ts +31 -0
  125. package/constants/errors/errors.ts +64 -0
  126. package/models/index.ts +2 -0
  127. package/models/user-to-product.schema.ts +15 -0
  128. package/models/user-to-subscription.schema.ts +23 -0
  129. package/package.json +1 -1
@@ -0,0 +1,61 @@
1
+ import { z } from 'zod';
2
+ import { USER_TO_SUBSCRIPTION_STATUS, USER_TO_SUBSCRIPTION_TYPE } from '../constants';
3
+ export declare const UserToSubscriptionSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ siteId: z.ZodString;
6
+ userId: z.ZodString;
7
+ subscriptionId: z.ZodString;
8
+ orderId: z.ZodNullable<z.ZodString>;
9
+ cloudPaymentsSubscriptionId: z.ZodNullable<z.ZodString>;
10
+ type: z.ZodNativeEnum<typeof USER_TO_SUBSCRIPTION_TYPE>;
11
+ initTokenBalance: z.ZodNumber;
12
+ tokenBalance: z.ZodNumber;
13
+ initCarriedOverTokenBalance: z.ZodNumber;
14
+ carriedOverTokenBalance: z.ZodNumber;
15
+ status: z.ZodNativeEnum<typeof USER_TO_SUBSCRIPTION_STATUS>;
16
+ active: z.ZodBoolean;
17
+ startDate: z.ZodNullable<z.ZodDate>;
18
+ intervalEndDate: z.ZodNullable<z.ZodDate>;
19
+ endDate: z.ZodNullable<z.ZodDate>;
20
+ createdAt: z.ZodDate;
21
+ updatedAt: z.ZodDate;
22
+ }, "strip", z.ZodTypeAny, {
23
+ active: boolean;
24
+ uuid: string;
25
+ siteId: string;
26
+ status: USER_TO_SUBSCRIPTION_STATUS;
27
+ type: USER_TO_SUBSCRIPTION_TYPE;
28
+ userId: string;
29
+ orderId: string | null;
30
+ initTokenBalance: number;
31
+ tokenBalance: number;
32
+ createdAt: Date;
33
+ updatedAt: Date;
34
+ subscriptionId: string;
35
+ cloudPaymentsSubscriptionId: string | null;
36
+ initCarriedOverTokenBalance: number;
37
+ carriedOverTokenBalance: number;
38
+ startDate: Date | null;
39
+ intervalEndDate: Date | null;
40
+ endDate: Date | null;
41
+ }, {
42
+ active: boolean;
43
+ uuid: string;
44
+ siteId: string;
45
+ status: USER_TO_SUBSCRIPTION_STATUS;
46
+ type: USER_TO_SUBSCRIPTION_TYPE;
47
+ userId: string;
48
+ orderId: string | null;
49
+ initTokenBalance: number;
50
+ tokenBalance: number;
51
+ createdAt: Date;
52
+ updatedAt: Date;
53
+ subscriptionId: string;
54
+ cloudPaymentsSubscriptionId: string | null;
55
+ initCarriedOverTokenBalance: number;
56
+ carriedOverTokenBalance: number;
57
+ startDate: Date | null;
58
+ intervalEndDate: Date | null;
59
+ endDate: Date | null;
60
+ }>;
61
+ //# sourceMappingURL=user-to-subscription.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-to-subscription.schema.d.ts","sourceRoot":"","sources":["../../models/user-to-subscription.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEtF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBnC,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserToSubscriptionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../constants");
6
+ exports.UserToSubscriptionSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ siteId: zod_1.z.string().uuid(),
9
+ userId: zod_1.z.string().uuid(),
10
+ subscriptionId: zod_1.z.string().uuid(),
11
+ orderId: zod_1.z.string().uuid().nullable(),
12
+ cloudPaymentsSubscriptionId: zod_1.z.string().nullable(),
13
+ type: zod_1.z.nativeEnum(constants_1.USER_TO_SUBSCRIPTION_TYPE),
14
+ initTokenBalance: zod_1.z.number().int().min(0),
15
+ tokenBalance: zod_1.z.number().int().min(0),
16
+ initCarriedOverTokenBalance: zod_1.z.number().int().min(0),
17
+ carriedOverTokenBalance: zod_1.z.number().int().min(0),
18
+ status: zod_1.z.nativeEnum(constants_1.USER_TO_SUBSCRIPTION_STATUS),
19
+ active: zod_1.z.boolean(),
20
+ startDate: zod_1.z.date().nullable(),
21
+ intervalEndDate: zod_1.z.date().nullable(),
22
+ endDate: zod_1.z.date().nullable(),
23
+ createdAt: zod_1.z.date(),
24
+ updatedAt: zod_1.z.date(),
25
+ });
@@ -115,9 +115,9 @@ export declare namespace FindImageEditorJobsCommand {
115
115
  systemPromptId?: string | undefined;
116
116
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
117
117
  };
118
- title: string;
119
118
  createdAt: string | Date;
120
119
  updatedAt: string | Date;
120
+ title: string;
121
121
  error: string | null;
122
122
  modelId: string;
123
123
  prompt: string;
@@ -152,9 +152,9 @@ export declare namespace FindImageEditorJobsCommand {
152
152
  systemPromptId?: string | undefined;
153
153
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
154
154
  };
155
- title: string;
156
155
  createdAt: string | Date;
157
156
  updatedAt: string | Date;
157
+ title: string;
158
158
  error: string | null;
159
159
  modelId: string;
160
160
  prompt: string;
@@ -204,9 +204,9 @@ export declare namespace FindImageEditorJobsCommand {
204
204
  systemPromptId?: string | undefined;
205
205
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
206
206
  };
207
- title: string;
208
207
  createdAt: string | Date;
209
208
  updatedAt: string | Date;
209
+ title: string;
210
210
  error: string | null;
211
211
  modelId: string;
212
212
  prompt: string;
@@ -248,9 +248,9 @@ export declare namespace FindImageEditorJobsCommand {
248
248
  systemPromptId?: string | undefined;
249
249
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
250
250
  };
251
- title: string;
252
251
  createdAt: string | Date;
253
252
  updatedAt: string | Date;
253
+ title: string;
254
254
  error: string | null;
255
255
  modelId: string;
256
256
  prompt: string;
@@ -163,9 +163,9 @@ export declare namespace GetImageEditorConfigCommand {
163
163
  };
164
164
  };
165
165
  maxInputLength: number;
166
- statusCheckEndpoint?: string | null | undefined;
167
166
  createdAt?: string | Date | undefined;
168
167
  updatedAt?: string | Date | undefined;
168
+ statusCheckEndpoint?: string | null | undefined;
169
169
  }, {
170
170
  uuid: string;
171
171
  status: import("../..").TOOL_MODEL_STATUS;
@@ -206,9 +206,9 @@ export declare namespace GetImageEditorConfigCommand {
206
206
  };
207
207
  };
208
208
  maxInputLength: number;
209
- statusCheckEndpoint?: string | null | undefined;
210
209
  createdAt?: string | Date | undefined;
211
210
  updatedAt?: string | Date | undefined;
211
+ statusCheckEndpoint?: string | null | undefined;
212
212
  }>, "many">;
213
213
  promptGroups: z.ZodArray<z.ZodObject<{
214
214
  uuid: z.ZodString;
@@ -277,9 +277,9 @@ export declare namespace GetImageEditorConfigCommand {
277
277
  allowUserPrompt: boolean;
278
278
  groupId: string;
279
279
  params?: Record<string, any> | undefined;
280
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
281
280
  createdAt?: string | Date | undefined;
282
281
  updatedAt?: string | Date | undefined;
282
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
283
283
  preview?: Record<string, any> | undefined;
284
284
  placeholder?: string | null | undefined;
285
285
  }, {
@@ -291,9 +291,9 @@ export declare namespace GetImageEditorConfigCommand {
291
291
  allowUserPrompt: boolean;
292
292
  groupId: string;
293
293
  params?: Record<string, any> | undefined;
294
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
295
294
  createdAt?: string | Date | undefined;
296
295
  updatedAt?: string | Date | undefined;
296
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
297
297
  preview?: Record<string, any> | undefined;
298
298
  placeholder?: string | null | undefined;
299
299
  }>, "many">;
@@ -320,9 +320,9 @@ export declare namespace GetImageEditorConfigCommand {
320
320
  allowUserPrompt: boolean;
321
321
  groupId: string;
322
322
  params?: Record<string, any> | undefined;
323
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
324
323
  createdAt?: string | Date | undefined;
325
324
  updatedAt?: string | Date | undefined;
325
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
326
326
  preview?: Record<string, any> | undefined;
327
327
  placeholder?: string | null | undefined;
328
328
  }[];
@@ -349,9 +349,9 @@ export declare namespace GetImageEditorConfigCommand {
349
349
  allowUserPrompt: boolean;
350
350
  groupId: string;
351
351
  params?: Record<string, any> | undefined;
352
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
353
352
  createdAt?: string | Date | undefined;
354
353
  updatedAt?: string | Date | undefined;
354
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
355
355
  preview?: Record<string, any> | undefined;
356
356
  placeholder?: string | null | undefined;
357
357
  }[];
@@ -397,9 +397,9 @@ export declare namespace GetImageEditorConfigCommand {
397
397
  };
398
398
  };
399
399
  maxInputLength: number;
400
- statusCheckEndpoint?: string | null | undefined;
401
400
  createdAt?: string | Date | undefined;
402
401
  updatedAt?: string | Date | undefined;
402
+ statusCheckEndpoint?: string | null | undefined;
403
403
  }[];
404
404
  promptGroups: {
405
405
  uuid: string;
@@ -424,9 +424,9 @@ export declare namespace GetImageEditorConfigCommand {
424
424
  allowUserPrompt: boolean;
425
425
  groupId: string;
426
426
  params?: Record<string, any> | undefined;
427
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
428
427
  createdAt?: string | Date | undefined;
429
428
  updatedAt?: string | Date | undefined;
429
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
430
430
  preview?: Record<string, any> | undefined;
431
431
  placeholder?: string | null | undefined;
432
432
  }[];
@@ -472,9 +472,9 @@ export declare namespace GetImageEditorConfigCommand {
472
472
  };
473
473
  };
474
474
  maxInputLength: number;
475
- statusCheckEndpoint?: string | null | undefined;
476
475
  createdAt?: string | Date | undefined;
477
476
  updatedAt?: string | Date | undefined;
477
+ statusCheckEndpoint?: string | null | undefined;
478
478
  }[];
479
479
  promptGroups: {
480
480
  uuid: string;
@@ -499,9 +499,9 @@ export declare namespace GetImageEditorConfigCommand {
499
499
  allowUserPrompt: boolean;
500
500
  groupId: string;
501
501
  params?: Record<string, any> | undefined;
502
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
503
502
  createdAt?: string | Date | undefined;
504
503
  updatedAt?: string | Date | undefined;
504
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
505
505
  preview?: Record<string, any> | undefined;
506
506
  placeholder?: string | null | undefined;
507
507
  }[];
@@ -549,9 +549,9 @@ export declare namespace GetImageEditorConfigCommand {
549
549
  };
550
550
  };
551
551
  maxInputLength: number;
552
- statusCheckEndpoint?: string | null | undefined;
553
552
  createdAt?: string | Date | undefined;
554
553
  updatedAt?: string | Date | undefined;
554
+ statusCheckEndpoint?: string | null | undefined;
555
555
  }[];
556
556
  promptGroups: {
557
557
  uuid: string;
@@ -576,9 +576,9 @@ export declare namespace GetImageEditorConfigCommand {
576
576
  allowUserPrompt: boolean;
577
577
  groupId: string;
578
578
  params?: Record<string, any> | undefined;
579
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
580
579
  createdAt?: string | Date | undefined;
581
580
  updatedAt?: string | Date | undefined;
581
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
582
582
  preview?: Record<string, any> | undefined;
583
583
  placeholder?: string | null | undefined;
584
584
  }[];
@@ -626,9 +626,9 @@ export declare namespace GetImageEditorConfigCommand {
626
626
  };
627
627
  };
628
628
  maxInputLength: number;
629
- statusCheckEndpoint?: string | null | undefined;
630
629
  createdAt?: string | Date | undefined;
631
630
  updatedAt?: string | Date | undefined;
631
+ statusCheckEndpoint?: string | null | undefined;
632
632
  }[];
633
633
  promptGroups: {
634
634
  uuid: string;
@@ -653,9 +653,9 @@ export declare namespace GetImageEditorConfigCommand {
653
653
  allowUserPrompt: boolean;
654
654
  groupId: string;
655
655
  params?: Record<string, any> | undefined;
656
- strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
657
656
  createdAt?: string | Date | undefined;
658
657
  updatedAt?: string | Date | undefined;
658
+ strategy?: import("../..").IMAGE_EDITING_STRATEGY | null | undefined;
659
659
  preview?: Record<string, any> | undefined;
660
660
  placeholder?: string | null | undefined;
661
661
  }[];
@@ -109,9 +109,9 @@ export declare namespace GetImageEditorJobCommand {
109
109
  systemPromptId?: string | undefined;
110
110
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
111
111
  };
112
- title: string;
113
112
  createdAt: string | Date;
114
113
  updatedAt: string | Date;
114
+ title: string;
115
115
  error: string | null;
116
116
  modelId: string;
117
117
  prompt: string;
@@ -146,9 +146,9 @@ export declare namespace GetImageEditorJobCommand {
146
146
  systemPromptId?: string | undefined;
147
147
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
148
148
  };
149
- title: string;
150
149
  createdAt: string | Date;
151
150
  updatedAt: string | Date;
151
+ title: string;
152
152
  error: string | null;
153
153
  modelId: string;
154
154
  prompt: string;
@@ -185,9 +185,9 @@ export declare namespace GetImageEditorJobCommand {
185
185
  systemPromptId?: string | undefined;
186
186
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
187
187
  };
188
- title: string;
189
188
  createdAt: string | Date;
190
189
  updatedAt: string | Date;
190
+ title: string;
191
191
  error: string | null;
192
192
  modelId: string;
193
193
  prompt: string;
@@ -224,9 +224,9 @@ export declare namespace GetImageEditorJobCommand {
224
224
  systemPromptId?: string | undefined;
225
225
  userHasActiveSubscriptionOrProduct?: boolean | undefined;
226
226
  };
227
- title: string;
228
227
  createdAt: string | Date;
229
228
  updatedAt: string | Date;
229
+ title: string;
230
230
  error: string | null;
231
231
  modelId: string;
232
232
  prompt: string;
@@ -143,11 +143,11 @@ export declare namespace FindImageGenerationJobsCommand {
143
143
  origin: import("../..").JOB_REQUEST_ORIGIN;
144
144
  isDeleted: boolean;
145
145
  internalError: string | null;
146
+ userId?: string | null | undefined;
146
147
  createdAt?: string | Date | undefined;
147
148
  updatedAt?: string | Date | undefined;
148
149
  error?: string | null | undefined;
149
150
  presetId?: string | null | undefined;
150
- userId?: string | null | undefined;
151
151
  unregisteredUserId?: string | null | undefined;
152
152
  tokenReservationId?: string | null | undefined;
153
153
  completedAt?: string | Date | null | undefined;
@@ -185,11 +185,11 @@ export declare namespace FindImageGenerationJobsCommand {
185
185
  origin: import("../..").JOB_REQUEST_ORIGIN;
186
186
  isDeleted: boolean;
187
187
  internalError: string | null;
188
+ userId?: string | null | undefined;
188
189
  createdAt?: string | Date | undefined;
189
190
  updatedAt?: string | Date | undefined;
190
191
  error?: string | null | undefined;
191
192
  presetId?: string | null | undefined;
192
- userId?: string | null | undefined;
193
193
  unregisteredUserId?: string | null | undefined;
194
194
  tokenReservationId?: string | null | undefined;
195
195
  completedAt?: string | Date | null | undefined;
@@ -242,11 +242,11 @@ export declare namespace FindImageGenerationJobsCommand {
242
242
  origin: import("../..").JOB_REQUEST_ORIGIN;
243
243
  isDeleted: boolean;
244
244
  internalError: string | null;
245
+ userId?: string | null | undefined;
245
246
  createdAt?: string | Date | undefined;
246
247
  updatedAt?: string | Date | undefined;
247
248
  error?: string | null | undefined;
248
249
  presetId?: string | null | undefined;
249
- userId?: string | null | undefined;
250
250
  unregisteredUserId?: string | null | undefined;
251
251
  tokenReservationId?: string | null | undefined;
252
252
  completedAt?: string | Date | null | undefined;
@@ -291,11 +291,11 @@ export declare namespace FindImageGenerationJobsCommand {
291
291
  origin: import("../..").JOB_REQUEST_ORIGIN;
292
292
  isDeleted: boolean;
293
293
  internalError: string | null;
294
+ userId?: string | null | undefined;
294
295
  createdAt?: string | Date | undefined;
295
296
  updatedAt?: string | Date | undefined;
296
297
  error?: string | null | undefined;
297
298
  presetId?: string | null | undefined;
298
- userId?: string | null | undefined;
299
299
  unregisteredUserId?: string | null | undefined;
300
300
  tokenReservationId?: string | null | undefined;
301
301
  completedAt?: string | Date | null | undefined;
@@ -210,9 +210,9 @@ export declare namespace GetImageGenerationConfigCommand {
210
210
  translatePrompt: boolean;
211
211
  order: number;
212
212
  vendorId: string;
213
- statusCheckEndpoint?: string | null | undefined;
214
213
  createdAt?: string | Date | undefined;
215
214
  updatedAt?: string | Date | undefined;
215
+ statusCheckEndpoint?: string | null | undefined;
216
216
  }, {
217
217
  price: number;
218
218
  uuid: string;
@@ -255,9 +255,9 @@ export declare namespace GetImageGenerationConfigCommand {
255
255
  translatePrompt: boolean;
256
256
  order: number;
257
257
  vendorId: string;
258
- statusCheckEndpoint?: string | null | undefined;
259
258
  createdAt?: string | Date | undefined;
260
259
  updatedAt?: string | Date | undefined;
260
+ statusCheckEndpoint?: string | null | undefined;
261
261
  }>, "many">;
262
262
  }, "strip", z.ZodTypeAny, {
263
263
  uuid: string;
@@ -315,9 +315,9 @@ export declare namespace GetImageGenerationConfigCommand {
315
315
  translatePrompt: boolean;
316
316
  order: number;
317
317
  vendorId: string;
318
- statusCheckEndpoint?: string | null | undefined;
319
318
  createdAt?: string | Date | undefined;
320
319
  updatedAt?: string | Date | undefined;
320
+ statusCheckEndpoint?: string | null | undefined;
321
321
  }[];
322
322
  }, {
323
323
  uuid: string;
@@ -375,9 +375,9 @@ export declare namespace GetImageGenerationConfigCommand {
375
375
  translatePrompt: boolean;
376
376
  order: number;
377
377
  vendorId: string;
378
- statusCheckEndpoint?: string | null | undefined;
379
378
  createdAt?: string | Date | undefined;
380
379
  updatedAt?: string | Date | undefined;
380
+ statusCheckEndpoint?: string | null | undefined;
381
381
  }[];
382
382
  }>, "many">;
383
383
  presets: z.ZodArray<z.ZodObject<{
@@ -453,9 +453,9 @@ export declare namespace GetImageGenerationConfigCommand {
453
453
  translatePrompt: boolean;
454
454
  order: number;
455
455
  vendorId: string;
456
- statusCheckEndpoint?: string | null | undefined;
457
456
  createdAt?: string | Date | undefined;
458
457
  updatedAt?: string | Date | undefined;
458
+ statusCheckEndpoint?: string | null | undefined;
459
459
  }[];
460
460
  }[];
461
461
  presets: {
@@ -521,9 +521,9 @@ export declare namespace GetImageGenerationConfigCommand {
521
521
  translatePrompt: boolean;
522
522
  order: number;
523
523
  vendorId: string;
524
- statusCheckEndpoint?: string | null | undefined;
525
524
  createdAt?: string | Date | undefined;
526
525
  updatedAt?: string | Date | undefined;
526
+ statusCheckEndpoint?: string | null | undefined;
527
527
  }[];
528
528
  }[];
529
529
  presets: {
@@ -591,9 +591,9 @@ export declare namespace GetImageGenerationConfigCommand {
591
591
  translatePrompt: boolean;
592
592
  order: number;
593
593
  vendorId: string;
594
- statusCheckEndpoint?: string | null | undefined;
595
594
  createdAt?: string | Date | undefined;
596
595
  updatedAt?: string | Date | undefined;
596
+ statusCheckEndpoint?: string | null | undefined;
597
597
  }[];
598
598
  }[];
599
599
  presets: {
@@ -661,9 +661,9 @@ export declare namespace GetImageGenerationConfigCommand {
661
661
  translatePrompt: boolean;
662
662
  order: number;
663
663
  vendorId: string;
664
- statusCheckEndpoint?: string | null | undefined;
665
664
  createdAt?: string | Date | undefined;
666
665
  updatedAt?: string | Date | undefined;
666
+ statusCheckEndpoint?: string | null | undefined;
667
667
  }[];
668
668
  }[];
669
669
  presets: {
@@ -137,11 +137,11 @@ export declare namespace GetImageGenerationJobCommand {
137
137
  origin: import("../..").JOB_REQUEST_ORIGIN;
138
138
  isDeleted: boolean;
139
139
  internalError: string | null;
140
+ userId?: string | null | undefined;
140
141
  createdAt?: string | Date | undefined;
141
142
  updatedAt?: string | Date | undefined;
142
143
  error?: string | null | undefined;
143
144
  presetId?: string | null | undefined;
144
- userId?: string | null | undefined;
145
145
  unregisteredUserId?: string | null | undefined;
146
146
  tokenReservationId?: string | null | undefined;
147
147
  completedAt?: string | Date | null | undefined;
@@ -179,11 +179,11 @@ export declare namespace GetImageGenerationJobCommand {
179
179
  origin: import("../..").JOB_REQUEST_ORIGIN;
180
180
  isDeleted: boolean;
181
181
  internalError: string | null;
182
+ userId?: string | null | undefined;
182
183
  createdAt?: string | Date | undefined;
183
184
  updatedAt?: string | Date | undefined;
184
185
  error?: string | null | undefined;
185
186
  presetId?: string | null | undefined;
186
- userId?: string | null | undefined;
187
187
  unregisteredUserId?: string | null | undefined;
188
188
  tokenReservationId?: string | null | undefined;
189
189
  completedAt?: string | Date | null | undefined;
@@ -223,11 +223,11 @@ export declare namespace GetImageGenerationJobCommand {
223
223
  origin: import("../..").JOB_REQUEST_ORIGIN;
224
224
  isDeleted: boolean;
225
225
  internalError: string | null;
226
+ userId?: string | null | undefined;
226
227
  createdAt?: string | Date | undefined;
227
228
  updatedAt?: string | Date | undefined;
228
229
  error?: string | null | undefined;
229
230
  presetId?: string | null | undefined;
230
- userId?: string | null | undefined;
231
231
  unregisteredUserId?: string | null | undefined;
232
232
  tokenReservationId?: string | null | undefined;
233
233
  completedAt?: string | Date | null | undefined;
@@ -267,11 +267,11 @@ export declare namespace GetImageGenerationJobCommand {
267
267
  origin: import("../..").JOB_REQUEST_ORIGIN;
268
268
  isDeleted: boolean;
269
269
  internalError: string | null;
270
+ userId?: string | null | undefined;
270
271
  createdAt?: string | Date | undefined;
271
272
  updatedAt?: string | Date | undefined;
272
273
  error?: string | null | undefined;
273
274
  presetId?: string | null | undefined;
274
- userId?: string | null | undefined;
275
275
  unregisteredUserId?: string | null | undefined;
276
276
  tokenReservationId?: string | null | undefined;
277
277
  completedAt?: string | Date | null | undefined;
@@ -10,15 +10,15 @@ export declare namespace GetPaymentHistoryCommand {
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  uuid: string;
12
12
  status: PAYMENT_STATUS;
13
+ orderId: string;
13
14
  createdAt: string | Date;
14
15
  sum: number;
15
- orderId: string;
16
16
  }, {
17
17
  uuid: string;
18
18
  status: PAYMENT_STATUS;
19
+ orderId: string;
19
20
  createdAt: string | Date;
20
21
  sum: number;
21
- orderId: string;
22
22
  }>;
23
23
  const ResponseSchema: z.ZodObject<{
24
24
  data: z.ZodArray<z.ZodObject<{
@@ -30,31 +30,31 @@ export declare namespace GetPaymentHistoryCommand {
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  uuid: string;
32
32
  status: PAYMENT_STATUS;
33
+ orderId: string;
33
34
  createdAt: string | Date;
34
35
  sum: number;
35
- orderId: string;
36
36
  }, {
37
37
  uuid: string;
38
38
  status: PAYMENT_STATUS;
39
+ orderId: string;
39
40
  createdAt: string | Date;
40
41
  sum: number;
41
- orderId: string;
42
42
  }>, "many">;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  data: {
45
45
  uuid: string;
46
46
  status: PAYMENT_STATUS;
47
+ orderId: string;
47
48
  createdAt: string | Date;
48
49
  sum: number;
49
- orderId: string;
50
50
  }[];
51
51
  }, {
52
52
  data: {
53
53
  uuid: string;
54
54
  status: PAYMENT_STATUS;
55
+ orderId: string;
55
56
  createdAt: string | Date;
56
57
  sum: number;
57
- orderId: string;
58
58
  }[];
59
59
  }>;
60
60
  type Response = z.infer<typeof ResponseSchema>;
@@ -71,10 +71,11 @@ export declare namespace FindSTTJobsCommand {
71
71
  uuid: string;
72
72
  siteId: string;
73
73
  status: import("../..").JOB_STATUS;
74
- duration: number;
75
- title: string;
74
+ userId: string | null;
76
75
  createdAt: Date;
77
76
  updatedAt: Date;
77
+ duration: number;
78
+ title: string;
78
79
  error: string | null;
79
80
  modelId: string;
80
81
  reaction: import("../..").USER_REACTION | null;
@@ -85,7 +86,6 @@ export declare namespace FindSTTJobsCommand {
85
86
  timestamp: string;
86
87
  error?: string | null | undefined;
87
88
  }[];
88
- userId: string | null;
89
89
  unregisteredUserId: string | null;
90
90
  isDeleted: boolean;
91
91
  completedAt: Date | null;
@@ -105,15 +105,15 @@ export declare namespace FindSTTJobsCommand {
105
105
  uuid: string;
106
106
  siteId: string;
107
107
  status: import("../..").JOB_STATUS;
108
- duration: number;
109
- title: string;
108
+ userId: string | null;
110
109
  createdAt: Date;
111
110
  updatedAt: Date;
111
+ duration: number;
112
+ title: string;
112
113
  error: string | null;
113
114
  modelId: string;
114
115
  reaction: import("../..").USER_REACTION | null;
115
116
  dislikeReason: string | null;
116
- userId: string | null;
117
117
  unregisteredUserId: string | null;
118
118
  isDeleted: boolean;
119
119
  completedAt: Date | null;
@@ -154,10 +154,11 @@ export declare namespace FindSTTJobsCommand {
154
154
  uuid: string;
155
155
  siteId: string;
156
156
  status: import("../..").JOB_STATUS;
157
- duration: number;
158
- title: string;
157
+ userId: string | null;
159
158
  createdAt: Date;
160
159
  updatedAt: Date;
160
+ duration: number;
161
+ title: string;
161
162
  error: string | null;
162
163
  modelId: string;
163
164
  reaction: import("../..").USER_REACTION | null;
@@ -168,7 +169,6 @@ export declare namespace FindSTTJobsCommand {
168
169
  timestamp: string;
169
170
  error?: string | null | undefined;
170
171
  }[];
171
- userId: string | null;
172
172
  unregisteredUserId: string | null;
173
173
  isDeleted: boolean;
174
174
  completedAt: Date | null;
@@ -195,15 +195,15 @@ export declare namespace FindSTTJobsCommand {
195
195
  uuid: string;
196
196
  siteId: string;
197
197
  status: import("../..").JOB_STATUS;
198
- duration: number;
199
- title: string;
198
+ userId: string | null;
200
199
  createdAt: Date;
201
200
  updatedAt: Date;
201
+ duration: number;
202
+ title: string;
202
203
  error: string | null;
203
204
  modelId: string;
204
205
  reaction: import("../..").USER_REACTION | null;
205
206
  dislikeReason: string | null;
206
- userId: string | null;
207
207
  unregisteredUserId: string | null;
208
208
  isDeleted: boolean;
209
209
  completedAt: Date | null;