@better-i18n/schemas 0.1.0 → 0.1.1

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": "@better-i18n/schemas",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Shared validation schemas for API and frontend",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -23,7 +23,6 @@
23
23
  "zod": "^3.25.76"
24
24
  },
25
25
  "devDependencies": {
26
- "@better-i18n/typescript-config": "workspace:*",
27
26
  "typescript": "~5.9.2"
28
27
  },
29
28
  "license": "MIT"
package/src/ai-models.ts CHANGED
@@ -97,11 +97,11 @@ export const AI_MODELS: AIModelConfig[] = [
97
97
  hover: "hover:bg-gray-100 dark:hover:bg-neutral-600",
98
98
  icon: "text-gray-700 dark:text-white",
99
99
  },
100
- apiModelId: "gemini-3-flash-preview",
100
+ apiModelId: "gemini-3-pro-preview",
101
101
  contextSize: 1_048_576, // 1M tokens (verified from Google docs)
102
102
  maxOutput: 65_536,
103
103
  description:
104
- "Fast and intelligent AI model powered by Gemini 3 Flash. No API key required.",
104
+ "Most capable AI model powered by Gemini 3 Pro. Best for complex translations.",
105
105
  isDefault: true,
106
106
  badge: "Default",
107
107
  releaseDate: "Jan 2025",
package/src/index.ts CHANGED
@@ -4,5 +4,6 @@ export * from "./github";
4
4
  export * from "./languages/index";
5
5
  export * from "./organizations/index";
6
6
  export * from "./projects/index";
7
+ export * from "./subscription";
7
8
  export * from "./sync";
8
9
  export * from "./translations";
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+
3
+ export const invoiceSchema = z.object({
4
+ id: z.string(),
5
+ date: z.number(),
6
+ amount: z.number(),
7
+ status: z.enum(["draft", "open", "paid", "uncollectible", "void"]),
8
+ pdfUrl: z.string().nullable(),
9
+ hostedUrl: z.string().nullable(),
10
+ });
11
+
12
+ export type Invoice = z.infer<typeof invoiceSchema>;