@ai-grator/api 0.1.32 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai-model/models/chat-price-scenarios.schema.ts +13 -0
- package/ai-model/models/index.ts +1 -0
- package/build/ai-model/models/chat-price-scenarios.schema.d.ts +13 -0
- package/build/ai-model/models/chat-price-scenarios.schema.d.ts.map +1 -0
- package/build/ai-model/models/chat-price-scenarios.schema.js +10 -0
- package/build/ai-model/models/index.d.ts +1 -0
- package/build/ai-model/models/index.d.ts.map +1 -1
- package/build/ai-model/models/index.js +1 -0
- package/build/errors/errors.d.ts +12 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +12 -0
- package/build/generation-job/models/suno-params.schema.d.ts.map +1 -1
- package/build/generation-job/models/suno-params.schema.js +2 -1
- package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts +1 -0
- package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts.map +1 -1
- package/build/generation-model/endpoints/queries/get-generation-price.query.js +1 -0
- package/build/generation-model/models/index.d.ts +1 -0
- package/build/generation-model/models/index.d.ts.map +1 -1
- package/build/generation-model/models/index.js +1 -0
- package/build/generation-model/models/seo-price-scenarios.schema.d.ts +5 -0
- package/build/generation-model/models/seo-price-scenarios.schema.d.ts.map +1 -0
- package/build/generation-model/models/seo-price-scenarios.schema.js +6 -0
- package/build/model-catalog/enums/price-unit.enum.d.ts +2 -1
- package/build/model-catalog/enums/price-unit.enum.d.ts.map +1 -1
- package/build/model-catalog/enums/price-unit.enum.js +1 -0
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.d.ts +269 -6
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.d.ts.map +1 -1
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.js +1 -0
- package/build/model-page/models/index.d.ts +2 -0
- package/build/model-page/models/index.d.ts.map +1 -1
- package/build/model-page/models/index.js +2 -0
- package/build/model-page/models/page-card.schema.d.ts +8 -0
- package/build/model-page/models/page-card.schema.d.ts.map +1 -0
- package/build/model-page/models/page-card.schema.js +9 -0
- package/build/model-page/models/page-content.schema.d.ts +417 -0
- package/build/model-page/models/page-content.schema.d.ts.map +1 -0
- package/build/model-page/models/page-content.schema.js +148 -0
- package/build/model-page/models/public-model-detail.schema.d.ts +134 -16
- package/build/model-page/models/public-model-detail.schema.d.ts.map +1 -1
- package/build/model-page/models/public-model-detail.schema.js +6 -10
- package/build/tsconfig.tsbuildinfo +1 -1
- package/errors/errors.ts +12 -0
- package/generation-job/models/suno-params.schema.ts +2 -1
- package/generation-model/endpoints/queries/get-generation-price.query.ts +1 -0
- package/generation-model/models/index.ts +1 -0
- package/generation-model/models/seo-price-scenarios.schema.ts +10 -0
- package/model-catalog/enums/price-unit.enum.ts +1 -0
- package/model-page/endpoints/queries/get-public-model-by-slug.query.ts +1 -0
- package/model-page/models/index.ts +2 -0
- package/model-page/models/page-card.schema.ts +9 -0
- package/model-page/models/page-content.schema.ts +184 -0
- package/model-page/models/public-model-detail.schema.ts +5 -12
- package/package.json +1 -1
|
@@ -19,18 +19,6 @@ export declare const PublicChatModelDetailsSchema: z.ZodObject<{
|
|
|
19
19
|
export declare const PublicGenerationModelDetailsSchema: z.ZodObject<{
|
|
20
20
|
supportedInputFileTypes: z.ZodArray<z.ZodEnum<typeof FILE_TYPE>>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
|
-
export declare const PublicModelContentSectionSchema: z.ZodObject<{
|
|
23
|
-
id: z.ZodString;
|
|
24
|
-
heading: z.ZodString;
|
|
25
|
-
body: z.ZodString;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
export declare const PublicModelContentSchema: z.ZodObject<{
|
|
28
|
-
sections: z.ZodArray<z.ZodObject<{
|
|
29
|
-
id: z.ZodString;
|
|
30
|
-
heading: z.ZodString;
|
|
31
|
-
body: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
22
|
export declare const PublicModelDetailSchema: z.ZodObject<{
|
|
35
23
|
slug: z.ZodString;
|
|
36
24
|
title: z.ZodString;
|
|
@@ -42,14 +30,145 @@ export declare const PublicModelDetailSchema: z.ZodObject<{
|
|
|
42
30
|
}, z.core.$strip>;
|
|
43
31
|
category: z.ZodEnum<typeof import("../..").MODEL_CATEGORY>;
|
|
44
32
|
order: z.ZodNumber;
|
|
33
|
+
h1: z.ZodString;
|
|
34
|
+
card: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
subtitle: z.ZodString;
|
|
36
|
+
ctaLabel: z.ZodString;
|
|
37
|
+
badges: z.ZodArray<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
45
39
|
seoTitle: z.ZodString;
|
|
46
40
|
seoDescription: z.ZodNullable<z.ZodString>;
|
|
47
41
|
content: z.ZodNullable<z.ZodObject<{
|
|
48
|
-
|
|
42
|
+
blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
43
|
id: z.ZodString;
|
|
50
|
-
heading: z.ZodString
|
|
44
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
45
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
46
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
47
|
+
type: z.ZodLiteral<"richText">;
|
|
51
48
|
body: z.ZodString;
|
|
52
|
-
}, z.core.$strip
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
52
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
53
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
54
|
+
type: z.ZodLiteral<"featureList">;
|
|
55
|
+
items: z.ZodArray<z.ZodObject<{
|
|
56
|
+
title: z.ZodString;
|
|
57
|
+
body: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
62
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
63
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
64
|
+
type: z.ZodLiteral<"specs">;
|
|
65
|
+
items: z.ZodArray<z.ZodObject<{
|
|
66
|
+
label: z.ZodString;
|
|
67
|
+
value: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
72
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
73
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
74
|
+
type: z.ZodLiteral<"examples">;
|
|
75
|
+
items: z.ZodArray<z.ZodObject<{
|
|
76
|
+
title: z.ZodString;
|
|
77
|
+
alt: z.ZodString;
|
|
78
|
+
prompt: z.ZodString;
|
|
79
|
+
settings: z.ZodString;
|
|
80
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
81
|
+
images: z.ZodArray<z.ZodObject<{
|
|
82
|
+
url: z.ZodURL;
|
|
83
|
+
alt: z.ZodString;
|
|
84
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
90
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
91
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
92
|
+
type: z.ZodLiteral<"comparison">;
|
|
93
|
+
columns: z.ZodArray<z.ZodString>;
|
|
94
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
95
|
+
label: z.ZodString;
|
|
96
|
+
values: z.ZodArray<z.ZodString>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
101
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
102
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
103
|
+
type: z.ZodLiteral<"prosCons">;
|
|
104
|
+
items: z.ZodArray<z.ZodObject<{
|
|
105
|
+
title: z.ZodString;
|
|
106
|
+
pros: z.ZodArray<z.ZodString>;
|
|
107
|
+
cons: z.ZodArray<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
112
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
113
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
114
|
+
type: z.ZodLiteral<"steps">;
|
|
115
|
+
items: z.ZodArray<z.ZodObject<{
|
|
116
|
+
title: z.ZodString;
|
|
117
|
+
body: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
122
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
123
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
124
|
+
type: z.ZodLiteral<"faq">;
|
|
125
|
+
items: z.ZodArray<z.ZodObject<{
|
|
126
|
+
question: z.ZodString;
|
|
127
|
+
answer: z.ZodString;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
132
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
133
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
134
|
+
type: z.ZodLiteral<"relatedLinks">;
|
|
135
|
+
items: z.ZodArray<z.ZodObject<{
|
|
136
|
+
kind: z.ZodEnum<{
|
|
137
|
+
readonly model: "model";
|
|
138
|
+
readonly task: "task";
|
|
139
|
+
}>;
|
|
140
|
+
slug: z.ZodString;
|
|
141
|
+
title: z.ZodString;
|
|
142
|
+
note: z.ZodNullable<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
147
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
148
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
149
|
+
type: z.ZodLiteral<"demo">;
|
|
150
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
151
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
label: z.ZodString;
|
|
154
|
+
prompt: z.ZodString;
|
|
155
|
+
settings: z.ZodNullable<z.ZodString>;
|
|
156
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
157
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
158
|
+
url: z.ZodURL;
|
|
159
|
+
alt: z.ZodString;
|
|
160
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
id: z.ZodString;
|
|
165
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
166
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
167
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
168
|
+
type: z.ZodLiteral<"pricingWidget">;
|
|
169
|
+
ctaLabel: z.ZodString;
|
|
170
|
+
ctaSlug: z.ZodString;
|
|
171
|
+
}, z.core.$strip>], "type">>;
|
|
53
172
|
}, z.core.$strip>>;
|
|
54
173
|
chat: z.ZodNullable<z.ZodObject<{
|
|
55
174
|
type: z.ZodArray<z.ZodString>;
|
|
@@ -66,7 +185,6 @@ export declare const PublicModelDetailSchema: z.ZodObject<{
|
|
|
66
185
|
supportedInputFileTypes: z.ZodArray<z.ZodEnum<typeof FILE_TYPE>>;
|
|
67
186
|
}, z.core.$strip>>;
|
|
68
187
|
}, z.core.$strip>;
|
|
69
|
-
export type PublicModelContentSchemaType = z.infer<typeof PublicModelContentSchema>;
|
|
70
188
|
export type PublicChatModelCapabilitiesSchemaType = z.infer<typeof PublicChatModelCapabilitiesSchema>;
|
|
71
189
|
export type PublicChatModelDetailsSchemaType = z.infer<typeof PublicChatModelDetailsSchema>;
|
|
72
190
|
export type PublicGenerationModelDetailsSchemaType = z.infer<typeof PublicGenerationModelDetailsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-model-detail.schema.d.ts","sourceRoot":"","sources":["../../../model-page/models/public-model-detail.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"public-model-detail.schema.d.ts","sourceRoot":"","sources":["../../../model-page/models/public-model-detail.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAKvC,eAAO,MAAM,iCAAiC;;;;iBAI5C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;iBAMvC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;iBAE7C,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQlC,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACtG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAC5F,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AACxG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PublicModelDetailSchema = exports.
|
|
3
|
+
exports.PublicModelDetailSchema = exports.PublicGenerationModelDetailsSchema = exports.PublicChatModelDetailsSchema = exports.PublicChatModelCapabilitiesSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const file_1 = require("../../file");
|
|
6
|
+
const page_card_schema_1 = require("./page-card.schema");
|
|
7
|
+
const page_content_schema_1 = require("./page-content.schema");
|
|
6
8
|
const public_model_card_schema_1 = require("./public-model-card.schema");
|
|
7
9
|
exports.PublicChatModelCapabilitiesSchema = zod_1.z.object({
|
|
8
10
|
reasoning: zod_1.z.boolean(),
|
|
@@ -19,18 +21,12 @@ exports.PublicChatModelDetailsSchema = zod_1.z.object({
|
|
|
19
21
|
exports.PublicGenerationModelDetailsSchema = zod_1.z.object({
|
|
20
22
|
supportedInputFileTypes: zod_1.z.array(zod_1.z.enum(file_1.FILE_TYPE)),
|
|
21
23
|
});
|
|
22
|
-
exports.PublicModelContentSectionSchema = zod_1.z.object({
|
|
23
|
-
id: zod_1.z.string().min(1),
|
|
24
|
-
heading: zod_1.z.string().min(1),
|
|
25
|
-
body: zod_1.z.string().min(1),
|
|
26
|
-
});
|
|
27
|
-
exports.PublicModelContentSchema = zod_1.z.object({
|
|
28
|
-
sections: zod_1.z.array(exports.PublicModelContentSectionSchema),
|
|
29
|
-
});
|
|
30
24
|
exports.PublicModelDetailSchema = public_model_card_schema_1.PublicModelCardSchema.extend({
|
|
25
|
+
h1: zod_1.z.string().min(1),
|
|
26
|
+
card: page_card_schema_1.PageCardSchema.nullable(),
|
|
31
27
|
seoTitle: zod_1.z.string().min(1),
|
|
32
28
|
seoDescription: zod_1.z.string().nullable(),
|
|
33
|
-
content:
|
|
29
|
+
content: page_content_schema_1.PageContentSchema.nullable(),
|
|
34
30
|
chat: exports.PublicChatModelDetailsSchema.nullable(),
|
|
35
31
|
generation: exports.PublicGenerationModelDetailsSchema.nullable(),
|
|
36
32
|
});
|