@ai-grator/api 0.1.39 → 0.1.41

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 (95) hide show
  1. package/build/contact-form/endpoints/commands/index.d.ts +2 -0
  2. package/build/contact-form/endpoints/commands/index.d.ts.map +1 -0
  3. package/build/contact-form/endpoints/commands/index.js +17 -0
  4. package/build/contact-form/endpoints/commands/submit-contact-form.command.d.ts +25 -0
  5. package/build/contact-form/endpoints/commands/submit-contact-form.command.d.ts.map +1 -0
  6. package/build/contact-form/endpoints/commands/submit-contact-form.command.js +25 -0
  7. package/build/contact-form/endpoints/contact-form.d.ts +5 -0
  8. package/build/contact-form/endpoints/contact-form.d.ts.map +1 -0
  9. package/build/contact-form/endpoints/contact-form.js +7 -0
  10. package/build/contact-form/endpoints/index.d.ts +3 -0
  11. package/build/contact-form/endpoints/index.d.ts.map +1 -0
  12. package/build/contact-form/endpoints/index.js +18 -0
  13. package/build/contact-form/index.d.ts +2 -0
  14. package/build/contact-form/index.d.ts.map +1 -0
  15. package/build/contact-form/index.js +17 -0
  16. package/build/errors/errors.d.ts +14 -0
  17. package/build/errors/errors.d.ts.map +1 -1
  18. package/build/errors/errors.js +14 -0
  19. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +2 -2
  20. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +2 -2
  21. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +2 -2
  22. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +3 -3
  23. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +2 -2
  24. package/build/generation-job/models/generation-job-attachment-file.schema.d.ts +2 -2
  25. package/build/generation-job/models/generation-job-response.schema.d.ts +1 -1
  26. package/build/index.d.ts +2 -0
  27. package/build/index.d.ts.map +1 -1
  28. package/build/index.js +2 -0
  29. package/build/pricing-page/endpoints/index.d.ts +3 -0
  30. package/build/pricing-page/endpoints/index.d.ts.map +1 -0
  31. package/build/pricing-page/endpoints/index.js +18 -0
  32. package/build/pricing-page/endpoints/pricing-page.d.ts +5 -0
  33. package/build/pricing-page/endpoints/pricing-page.d.ts.map +1 -0
  34. package/build/pricing-page/endpoints/pricing-page.js +7 -0
  35. package/build/pricing-page/endpoints/queries/get-pricing-page.query.d.ts +132 -0
  36. package/build/pricing-page/endpoints/queries/get-pricing-page.query.d.ts.map +1 -0
  37. package/build/pricing-page/endpoints/queries/get-pricing-page.query.js +16 -0
  38. package/build/pricing-page/endpoints/queries/index.d.ts +2 -0
  39. package/build/pricing-page/endpoints/queries/index.d.ts.map +1 -0
  40. package/build/pricing-page/endpoints/queries/index.js +17 -0
  41. package/build/pricing-page/index.d.ts +3 -0
  42. package/build/pricing-page/index.d.ts.map +1 -0
  43. package/build/pricing-page/index.js +18 -0
  44. package/build/pricing-page/models/index.d.ts +9 -0
  45. package/build/pricing-page/models/index.d.ts.map +1 -0
  46. package/build/pricing-page/models/index.js +24 -0
  47. package/build/pricing-page/models/pricing-breadcrumb-item.schema.d.ts +7 -0
  48. package/build/pricing-page/models/pricing-breadcrumb-item.schema.d.ts.map +1 -0
  49. package/build/pricing-page/models/pricing-breadcrumb-item.schema.js +8 -0
  50. package/build/pricing-page/models/pricing-calculator-task.schema.d.ts +48 -0
  51. package/build/pricing-page/models/pricing-calculator-task.schema.d.ts.map +1 -0
  52. package/build/pricing-page/models/pricing-calculator-task.schema.js +27 -0
  53. package/build/pricing-page/models/pricing-faq-item.schema.d.ts +7 -0
  54. package/build/pricing-page/models/pricing-faq-item.schema.d.ts.map +1 -0
  55. package/build/pricing-page/models/pricing-faq-item.schema.js +8 -0
  56. package/build/pricing-page/models/pricing-image-model.schema.d.ts +10 -0
  57. package/build/pricing-page/models/pricing-image-model.schema.d.ts.map +1 -0
  58. package/build/pricing-page/models/pricing-image-model.schema.js +11 -0
  59. package/build/pricing-page/models/pricing-models.schema.d.ts +45 -0
  60. package/build/pricing-page/models/pricing-models.schema.d.ts.map +1 -0
  61. package/build/pricing-page/models/pricing-models.schema.js +17 -0
  62. package/build/pricing-page/models/pricing-page.schema.d.ts +64 -0
  63. package/build/pricing-page/models/pricing-page.schema.d.ts.map +1 -0
  64. package/build/pricing-page/models/pricing-page.schema.js +15 -0
  65. package/build/pricing-page/models/pricing-text-model.schema.d.ts +10 -0
  66. package/build/pricing-page/models/pricing-text-model.schema.d.ts.map +1 -0
  67. package/build/pricing-page/models/pricing-text-model.schema.js +11 -0
  68. package/build/pricing-page/models/pricing-video-model.schema.d.ts +13 -0
  69. package/build/pricing-page/models/pricing-video-model.schema.d.ts.map +1 -0
  70. package/build/pricing-page/models/pricing-video-model.schema.js +14 -0
  71. package/build/scripts/generate-openapi.js +11 -0
  72. package/build/tsconfig.tsbuildinfo +1 -1
  73. package/contact-form/endpoints/commands/index.ts +1 -0
  74. package/contact-form/endpoints/commands/submit-contact-form.command.ts +25 -0
  75. package/contact-form/endpoints/contact-form.ts +5 -0
  76. package/contact-form/endpoints/index.ts +2 -0
  77. package/contact-form/index.ts +1 -0
  78. package/errors/errors.ts +14 -0
  79. package/index.ts +2 -0
  80. package/package.json +1 -1
  81. package/pricing-page/endpoints/index.ts +2 -0
  82. package/pricing-page/endpoints/pricing-page.ts +5 -0
  83. package/pricing-page/endpoints/queries/get-pricing-page.query.ts +15 -0
  84. package/pricing-page/endpoints/queries/index.ts +1 -0
  85. package/pricing-page/index.ts +2 -0
  86. package/pricing-page/models/index.ts +8 -0
  87. package/pricing-page/models/pricing-breadcrumb-item.schema.ts +8 -0
  88. package/pricing-page/models/pricing-calculator-task.schema.ts +34 -0
  89. package/pricing-page/models/pricing-faq-item.schema.ts +8 -0
  90. package/pricing-page/models/pricing-image-model.schema.ts +11 -0
  91. package/pricing-page/models/pricing-models.schema.ts +19 -0
  92. package/pricing-page/models/pricing-page.schema.ts +15 -0
  93. package/pricing-page/models/pricing-text-model.schema.ts +11 -0
  94. package/pricing-page/models/pricing-video-model.schema.ts +14 -0
  95. package/scripts/generate-openapi.ts +18 -0
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./models"), exports);
18
+ __exportStar(require("./endpoints"), exports);
@@ -0,0 +1,9 @@
1
+ export * from './pricing-breadcrumb-item.schema';
2
+ export * from './pricing-calculator-task.schema';
3
+ export * from './pricing-faq-item.schema';
4
+ export * from './pricing-image-model.schema';
5
+ export * from './pricing-models.schema';
6
+ export * from './pricing-page.schema';
7
+ export * from './pricing-text-model.schema';
8
+ export * from './pricing-video-model.schema';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./pricing-breadcrumb-item.schema"), exports);
18
+ __exportStar(require("./pricing-calculator-task.schema"), exports);
19
+ __exportStar(require("./pricing-faq-item.schema"), exports);
20
+ __exportStar(require("./pricing-image-model.schema"), exports);
21
+ __exportStar(require("./pricing-models.schema"), exports);
22
+ __exportStar(require("./pricing-page.schema"), exports);
23
+ __exportStar(require("./pricing-text-model.schema"), exports);
24
+ __exportStar(require("./pricing-video-model.schema"), exports);
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const PricingBreadcrumbItemSchema: z.ZodObject<{
3
+ label: z.ZodString;
4
+ url: z.ZodNullable<z.ZodURL>;
5
+ }, z.core.$strip>;
6
+ export type PricingBreadcrumbItemSchemaType = z.infer<typeof PricingBreadcrumbItemSchema>;
7
+ //# sourceMappingURL=pricing-breadcrumb-item.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-breadcrumb-item.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-breadcrumb-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricingBreadcrumbItemSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PricingBreadcrumbItemSchema = zod_1.z.object({
6
+ label: zod_1.z.string().min(1),
7
+ url: zod_1.z.url().nullable(),
8
+ });
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ export declare const PricingCalculatorTextTaskSchema: z.ZodObject<{
3
+ key: z.ZodString;
4
+ label: z.ZodString;
5
+ price: z.ZodNumber;
6
+ type: z.ZodLiteral<"text">;
7
+ inputChars: z.ZodNumber;
8
+ outputChars: z.ZodNumber;
9
+ }, z.core.$strip>;
10
+ export declare const PricingCalculatorImageTaskSchema: z.ZodObject<{
11
+ key: z.ZodString;
12
+ label: z.ZodString;
13
+ price: z.ZodNumber;
14
+ type: z.ZodLiteral<"image">;
15
+ units: z.ZodNumber;
16
+ }, z.core.$strip>;
17
+ export declare const PricingCalculatorVideoTaskSchema: z.ZodObject<{
18
+ key: z.ZodString;
19
+ label: z.ZodString;
20
+ price: z.ZodNumber;
21
+ type: z.ZodLiteral<"video">;
22
+ units: z.ZodNumber;
23
+ }, z.core.$strip>;
24
+ export declare const PricingCalculatorTaskSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
25
+ key: z.ZodString;
26
+ label: z.ZodString;
27
+ price: z.ZodNumber;
28
+ type: z.ZodLiteral<"text">;
29
+ inputChars: z.ZodNumber;
30
+ outputChars: z.ZodNumber;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ key: z.ZodString;
33
+ label: z.ZodString;
34
+ price: z.ZodNumber;
35
+ type: z.ZodLiteral<"image">;
36
+ units: z.ZodNumber;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ key: z.ZodString;
39
+ label: z.ZodString;
40
+ price: z.ZodNumber;
41
+ type: z.ZodLiteral<"video">;
42
+ units: z.ZodNumber;
43
+ }, z.core.$strip>], "type">;
44
+ export type PricingCalculatorTextTaskSchemaType = z.infer<typeof PricingCalculatorTextTaskSchema>;
45
+ export type PricingCalculatorImageTaskSchemaType = z.infer<typeof PricingCalculatorImageTaskSchema>;
46
+ export type PricingCalculatorVideoTaskSchemaType = z.infer<typeof PricingCalculatorVideoTaskSchema>;
47
+ export type PricingCalculatorTaskSchemaType = z.infer<typeof PricingCalculatorTaskSchema>;
48
+ //# sourceMappingURL=pricing-calculator-task.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-calculator-task.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-calculator-task.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,+BAA+B;;;;;;;iBAI1C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;iBAG3C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;iBAG3C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;2BAItC,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAClG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACpG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACpG,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricingCalculatorTaskSchema = exports.PricingCalculatorVideoTaskSchema = exports.PricingCalculatorImageTaskSchema = exports.PricingCalculatorTextTaskSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const PricingCalculatorTaskBaseSchema = zod_1.z.object({
6
+ key: zod_1.z.string().min(1),
7
+ label: zod_1.z.string().min(1),
8
+ price: zod_1.z.number().nonnegative(),
9
+ });
10
+ exports.PricingCalculatorTextTaskSchema = PricingCalculatorTaskBaseSchema.extend({
11
+ type: zod_1.z.literal('text'),
12
+ inputChars: zod_1.z.number().int().positive(),
13
+ outputChars: zod_1.z.number().int().positive(),
14
+ });
15
+ exports.PricingCalculatorImageTaskSchema = PricingCalculatorTaskBaseSchema.extend({
16
+ type: zod_1.z.literal('image'),
17
+ units: zod_1.z.number().int().positive(),
18
+ });
19
+ exports.PricingCalculatorVideoTaskSchema = PricingCalculatorTaskBaseSchema.extend({
20
+ type: zod_1.z.literal('video'),
21
+ units: zod_1.z.number().int().positive(),
22
+ });
23
+ exports.PricingCalculatorTaskSchema = zod_1.z.discriminatedUnion('type', [
24
+ exports.PricingCalculatorTextTaskSchema,
25
+ exports.PricingCalculatorImageTaskSchema,
26
+ exports.PricingCalculatorVideoTaskSchema,
27
+ ]);
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const PricingFaqItemSchema: z.ZodObject<{
3
+ question: z.ZodString;
4
+ answer: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type PricingFaqItemSchemaType = z.infer<typeof PricingFaqItemSchema>;
7
+ //# sourceMappingURL=pricing-faq-item.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-faq-item.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-faq-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricingFaqItemSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PricingFaqItemSchema = zod_1.z.object({
6
+ question: zod_1.z.string().min(1),
7
+ answer: zod_1.z.string().min(1),
8
+ });
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ export declare const PricingImageModelSchema: z.ZodObject<{
3
+ slug: z.ZodString;
4
+ name: z.ZodString;
5
+ maxResolution: z.ZodNullable<z.ZodString>;
6
+ maxReferences: z.ZodNullable<z.ZodNumber>;
7
+ pricePerImage: z.ZodNumber;
8
+ }, z.core.$strip>;
9
+ export type PricingImageModelSchemaType = z.infer<typeof PricingImageModelSchema>;
10
+ //# sourceMappingURL=pricing-image-model.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-image-model.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-image-model.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;iBAMlC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricingImageModelSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PricingImageModelSchema = zod_1.z.object({
6
+ slug: zod_1.z.string().min(1),
7
+ name: zod_1.z.string().min(1),
8
+ maxResolution: zod_1.z.string().min(1).nullable(),
9
+ maxReferences: zod_1.z.number().int().nonnegative().nullable(),
10
+ pricePerImage: zod_1.z.number().nonnegative(),
11
+ });
@@ -0,0 +1,45 @@
1
+ import { z } from 'zod';
2
+ export declare const PricingTextModelsSchema: z.ZodObject<{
3
+ inputUnitChars: z.ZodNumber;
4
+ outputUnitChars: z.ZodNumber;
5
+ items: z.ZodArray<z.ZodObject<{
6
+ slug: z.ZodString;
7
+ name: z.ZodString;
8
+ context: z.ZodNumber;
9
+ inputPrice: z.ZodNumber;
10
+ outputPrice: z.ZodNumber;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ export declare const PricingModelsSchema: z.ZodObject<{
14
+ text: z.ZodObject<{
15
+ inputUnitChars: z.ZodNumber;
16
+ outputUnitChars: z.ZodNumber;
17
+ items: z.ZodArray<z.ZodObject<{
18
+ slug: z.ZodString;
19
+ name: z.ZodString;
20
+ context: z.ZodNumber;
21
+ inputPrice: z.ZodNumber;
22
+ outputPrice: z.ZodNumber;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>;
25
+ image: z.ZodArray<z.ZodObject<{
26
+ slug: z.ZodString;
27
+ name: z.ZodString;
28
+ maxResolution: z.ZodNullable<z.ZodString>;
29
+ maxReferences: z.ZodNullable<z.ZodNumber>;
30
+ pricePerImage: z.ZodNumber;
31
+ }, z.core.$strip>>;
32
+ video: z.ZodArray<z.ZodObject<{
33
+ slug: z.ZodString;
34
+ name: z.ZodString;
35
+ maxResolution: z.ZodNullable<z.ZodString>;
36
+ maxInputChars: z.ZodNullable<z.ZodNumber>;
37
+ maxDurationSec: z.ZodNullable<z.ZodNumber>;
38
+ maxReferences: z.ZodNullable<z.ZodNumber>;
39
+ audio: z.ZodNullable<z.ZodBoolean>;
40
+ pricePerSecond: z.ZodNumber;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>;
43
+ export type PricingTextModelsSchemaType = z.infer<typeof PricingTextModelsSchema>;
44
+ export type PricingModelsSchemaType = z.infer<typeof PricingModelsSchema>;
45
+ //# sourceMappingURL=pricing-models.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-models.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-models.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAClF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricingModelsSchema = exports.PricingTextModelsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const pricing_image_model_schema_1 = require("./pricing-image-model.schema");
6
+ const pricing_text_model_schema_1 = require("./pricing-text-model.schema");
7
+ const pricing_video_model_schema_1 = require("./pricing-video-model.schema");
8
+ exports.PricingTextModelsSchema = zod_1.z.object({
9
+ inputUnitChars: zod_1.z.number().int().positive(),
10
+ outputUnitChars: zod_1.z.number().int().positive(),
11
+ items: zod_1.z.array(pricing_text_model_schema_1.PricingTextModelSchema),
12
+ });
13
+ exports.PricingModelsSchema = zod_1.z.object({
14
+ text: exports.PricingTextModelsSchema,
15
+ image: zod_1.z.array(pricing_image_model_schema_1.PricingImageModelSchema),
16
+ video: zod_1.z.array(pricing_video_model_schema_1.PricingVideoModelSchema),
17
+ });
@@ -0,0 +1,64 @@
1
+ import { z } from 'zod';
2
+ export declare const PricingPageSchema: z.ZodObject<{
3
+ updatedAt: z.ZodISODateTime;
4
+ models: z.ZodObject<{
5
+ text: z.ZodObject<{
6
+ inputUnitChars: z.ZodNumber;
7
+ outputUnitChars: z.ZodNumber;
8
+ items: z.ZodArray<z.ZodObject<{
9
+ slug: z.ZodString;
10
+ name: z.ZodString;
11
+ context: z.ZodNumber;
12
+ inputPrice: z.ZodNumber;
13
+ outputPrice: z.ZodNumber;
14
+ }, z.core.$strip>>;
15
+ }, z.core.$strip>;
16
+ image: z.ZodArray<z.ZodObject<{
17
+ slug: z.ZodString;
18
+ name: z.ZodString;
19
+ maxResolution: z.ZodNullable<z.ZodString>;
20
+ maxReferences: z.ZodNullable<z.ZodNumber>;
21
+ pricePerImage: z.ZodNumber;
22
+ }, z.core.$strip>>;
23
+ video: z.ZodArray<z.ZodObject<{
24
+ slug: z.ZodString;
25
+ name: z.ZodString;
26
+ maxResolution: z.ZodNullable<z.ZodString>;
27
+ maxInputChars: z.ZodNullable<z.ZodNumber>;
28
+ maxDurationSec: z.ZodNullable<z.ZodNumber>;
29
+ maxReferences: z.ZodNullable<z.ZodNumber>;
30
+ audio: z.ZodNullable<z.ZodBoolean>;
31
+ pricePerSecond: z.ZodNumber;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>;
34
+ calculatorTasks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
35
+ key: z.ZodString;
36
+ label: z.ZodString;
37
+ price: z.ZodNumber;
38
+ type: z.ZodLiteral<"text">;
39
+ inputChars: z.ZodNumber;
40
+ outputChars: z.ZodNumber;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ key: z.ZodString;
43
+ label: z.ZodString;
44
+ price: z.ZodNumber;
45
+ type: z.ZodLiteral<"image">;
46
+ units: z.ZodNumber;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ key: z.ZodString;
49
+ label: z.ZodString;
50
+ price: z.ZodNumber;
51
+ type: z.ZodLiteral<"video">;
52
+ units: z.ZodNumber;
53
+ }, z.core.$strip>], "type">>;
54
+ faq: z.ZodArray<z.ZodObject<{
55
+ question: z.ZodString;
56
+ answer: z.ZodString;
57
+ }, z.core.$strip>>;
58
+ breadcrumb: z.ZodArray<z.ZodObject<{
59
+ label: z.ZodString;
60
+ url: z.ZodNullable<z.ZodURL>;
61
+ }, z.core.$strip>>;
62
+ }, z.core.$strip>;
63
+ export type PricingPageSchemaType = z.infer<typeof PricingPageSchema>;
64
+ //# sourceMappingURL=pricing-page.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-page.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-page.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM5B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricingPageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const pricing_breadcrumb_item_schema_1 = require("./pricing-breadcrumb-item.schema");
6
+ const pricing_calculator_task_schema_1 = require("./pricing-calculator-task.schema");
7
+ const pricing_faq_item_schema_1 = require("./pricing-faq-item.schema");
8
+ const pricing_models_schema_1 = require("./pricing-models.schema");
9
+ exports.PricingPageSchema = zod_1.z.object({
10
+ updatedAt: zod_1.z.iso.datetime(),
11
+ models: pricing_models_schema_1.PricingModelsSchema,
12
+ calculatorTasks: zod_1.z.array(pricing_calculator_task_schema_1.PricingCalculatorTaskSchema),
13
+ faq: zod_1.z.array(pricing_faq_item_schema_1.PricingFaqItemSchema),
14
+ breadcrumb: zod_1.z.array(pricing_breadcrumb_item_schema_1.PricingBreadcrumbItemSchema),
15
+ });
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ export declare const PricingTextModelSchema: z.ZodObject<{
3
+ slug: z.ZodString;
4
+ name: z.ZodString;
5
+ context: z.ZodNumber;
6
+ inputPrice: z.ZodNumber;
7
+ outputPrice: z.ZodNumber;
8
+ }, z.core.$strip>;
9
+ export type PricingTextModelSchemaType = z.infer<typeof PricingTextModelSchema>;
10
+ //# sourceMappingURL=pricing-text-model.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-text-model.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-text-model.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;iBAMjC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricingTextModelSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PricingTextModelSchema = zod_1.z.object({
6
+ slug: zod_1.z.string().min(1),
7
+ name: zod_1.z.string().min(1),
8
+ context: zod_1.z.number().int().positive(),
9
+ inputPrice: zod_1.z.number().nonnegative(),
10
+ outputPrice: zod_1.z.number().nonnegative(),
11
+ });
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export declare const PricingVideoModelSchema: z.ZodObject<{
3
+ slug: z.ZodString;
4
+ name: z.ZodString;
5
+ maxResolution: z.ZodNullable<z.ZodString>;
6
+ maxInputChars: z.ZodNullable<z.ZodNumber>;
7
+ maxDurationSec: z.ZodNullable<z.ZodNumber>;
8
+ maxReferences: z.ZodNullable<z.ZodNumber>;
9
+ audio: z.ZodNullable<z.ZodBoolean>;
10
+ pricePerSecond: z.ZodNumber;
11
+ }, z.core.$strip>;
12
+ export type PricingVideoModelSchemaType = z.infer<typeof PricingVideoModelSchema>;
13
+ //# sourceMappingURL=pricing-video-model.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-video-model.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-video-model.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;iBASlC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PricingVideoModelSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PricingVideoModelSchema = zod_1.z.object({
6
+ slug: zod_1.z.string().min(1),
7
+ name: zod_1.z.string().min(1),
8
+ maxResolution: zod_1.z.string().min(1).nullable(),
9
+ maxInputChars: zod_1.z.number().int().nonnegative().nullable(),
10
+ maxDurationSec: zod_1.z.number().int().positive().nullable(),
11
+ maxReferences: zod_1.z.number().int().nonnegative().nullable(),
12
+ audio: zod_1.z.boolean().nullable(),
13
+ pricePerSecond: zod_1.z.number().nonnegative(),
14
+ });
@@ -82,6 +82,10 @@ const get_public_model_by_slug_query_1 = require("../model-page/endpoints/querie
82
82
  const list_public_models_query_1 = require("../model-page/endpoints/queries/list-public-models.query");
83
83
  const model_catalog_1 = require("../model-catalog/endpoints/model-catalog");
84
84
  const get_model_catalog_query_1 = require("../model-catalog/endpoints/queries/get-model-catalog.query");
85
+ const pricing_page_1 = require("../pricing-page/endpoints/pricing-page");
86
+ const get_pricing_page_query_1 = require("../pricing-page/endpoints/queries/get-pricing-page.query");
87
+ const contact_form_1 = require("../contact-form/endpoints/contact-form");
88
+ const submit_contact_form_command_1 = require("../contact-form/endpoints/commands/submit-contact-form.command");
85
89
  const generation_model_1 = require("../generation-model/endpoints/generation-model");
86
90
  const get_generation_models_query_1 = require("../generation-model/endpoints/queries/get-generation-models.query");
87
91
  const get_generation_models_by_type_query_1 = require("../generation-model/endpoints/queries/get-generation-models-by-type.query");
@@ -212,6 +216,9 @@ async function main() {
212
216
  registerSchema('PublicModelsGetBySlugParams', get_public_model_by_slug_query_1.GetPublicModelBySlugQueryParams);
213
217
  registerSchema('PublicModelsGetBySlugResponse', get_public_model_by_slug_query_1.GetPublicModelBySlugQueryResponse);
214
218
  registerSchema('ModelCatalogGetAllResponse', get_model_catalog_query_1.GetModelCatalogQueryResponse);
219
+ registerSchema('PricingPageGetResponse', get_pricing_page_query_1.GetPricingPageQueryResponse);
220
+ registerSchema('ContactFormSubmitRequest', submit_contact_form_command_1.SubmitContactFormCommandBody);
221
+ registerSchema('ContactFormSubmitResponse', submit_contact_form_command_1.SubmitContactFormCommandResponse);
215
222
  registerSchema('GenerationModelGetAllResponse', get_generation_models_query_1.GetGenerationModelsQueryResponse);
216
223
  registerSchema('GenerationModelGetByTypeParams', get_generation_models_by_type_query_1.GetGenerationModelsByTypeQueryParams);
217
224
  registerSchema('GenerationModelGetByTypeResponse', get_generation_models_by_type_query_1.GetGenerationModelsByTypeQueryResponse);
@@ -387,6 +394,8 @@ async function main() {
387
394
  const publicModelContracts = [list_public_models_query_1.ListPublicModelsQuery, get_public_model_by_slug_query_1.GetPublicModelBySlugQuery];
388
395
  const publicPageContracts = [get_public_page_by_slug_query_1.GetPublicPageBySlugQuery];
389
396
  const modelCatalogContracts = [get_model_catalog_query_1.GetModelCatalogQuery];
397
+ const pricingPageContracts = [get_pricing_page_query_1.GetPricingPageQuery];
398
+ const contactFormContracts = [submit_contact_form_command_1.SubmitContactFormCommand];
390
399
  const generationModelContracts = [
391
400
  get_generation_models_query_1.GetGenerationModelsQuery,
392
401
  get_generation_models_by_type_query_1.GetGenerationModelsByTypeQuery,
@@ -490,6 +499,8 @@ async function main() {
490
499
  { controller: model_page_1.PUBLIC_MODEL_CONTROLLER, tag: 'Models (public)', contracts: publicModelContracts },
491
500
  { controller: model_page_1.PUBLIC_PAGE_CONTROLLER, tag: 'Pages (public)', contracts: publicPageContracts },
492
501
  { controller: model_catalog_1.MODEL_CATALOG_CONTROLLER, tag: 'Model Catalog', contracts: modelCatalogContracts },
502
+ { controller: pricing_page_1.PRICING_PAGE_CONTROLLER, tag: 'Pricing Page (public)', contracts: pricingPageContracts },
503
+ { controller: contact_form_1.CONTACT_FORM_CONTROLLER, tag: 'Contact Form (public)', contracts: contactFormContracts },
493
504
  { controller: generation_model_1.GENERATION_MODEL_CONTROLLER, tag: 'Generation Models', contracts: generationModelContracts },
494
505
  { controller: generation_job_1.GENERATION_JOB_CONTROLLER, tag: 'Generation Jobs', contracts: generationJobContracts },
495
506
  {