@ai-grator/api 0.1.42 → 0.1.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-grator/api",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  export const PricingImageModelSchema = z.object({
4
- slug: z.string().min(1),
4
+ slug: z.string().min(1).nullable(),
5
5
  name: z.string().min(1),
6
6
  maxResolution: z.string().min(1).nullable(),
7
7
  maxReferences: z.number().int().nonnegative().nullable(),
@@ -5,7 +5,6 @@ import { PricingVideoModelSchema } from './pricing-video-model.schema';
5
5
 
6
6
  export const PricingTextModelsSchema = z.object({
7
7
  inputUnitChars: z.number().int().positive(),
8
- outputUnitChars: z.number().int().positive(),
9
8
  items: z.array(PricingTextModelSchema),
10
9
  });
11
10
 
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  export const PricingTextModelSchema = z.object({
4
- slug: z.string().min(1),
4
+ slug: z.string().min(1).nullable(),
5
5
  name: z.string().min(1),
6
6
  context: z.number().int().positive(),
7
7
  inputPrice: z.number().nonnegative(),
8
- outputPrice: z.number().nonnegative(),
8
+ totalPrice: z.number().nonnegative(),
9
9
  });
10
10
 
11
11
  export type PricingTextModelSchemaType = z.infer<typeof PricingTextModelSchema>;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  export const PricingVideoModelSchema = z.object({
4
- slug: z.string().min(1),
4
+ slug: z.string().min(1).nullable(),
5
5
  name: z.string().min(1),
6
6
  maxResolution: z.string().min(1).nullable(),
7
7
  maxInputChars: z.number().int().nonnegative().nullable(),