Skip to content

Commit df79596

Browse files
committed
chore: bump @shotstack/schemas to 1.22.0
1 parent a93dd84 commit df79596

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎bun.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"test": "bun test"
2828
},
2929
"dependencies": {
30-
"@shotstack/schemas": "^1.20.1",
30+
"@shotstack/schemas": "^1.22.0",
3131
"commander": "^12.1.0",
3232
"zod": "^4.4.3"
3333
},

‎src/commands/models.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ import { resolveEnv, ENV_NAMES } from "../http/env.ts";
66
import { emit, parseOutputFormat } from "../output.ts";
77
import { withRecording, commandArgv } from "../recorder.ts";
88

9-
export type GenerationModel = components["schemas"]["GenerationModel"];
10-
type GenerationModelPricing = components["schemas"]["GenerationModelPricing"];
9+
// The published schema has no `pricing`; API deployments that predate generation quotes still send it.
10+
type GenerationModelPricing = {
11+
credits: number | Record<string, number>;
12+
tieredBy?: { option: string; default: string };
13+
quantity?: { measure: string; per: number };
14+
};
15+
export type GenerationModel = components["schemas"]["GenerationModel"] & { pricing?: GenerationModelPricing };
1116
type GenerationModelList = components["schemas"]["GenerationModelListResponse"];
1217

1318
const UNIT_NOUNS: Record<string, string> = { clipSeconds: "second", promptCharacters: "character" };

0 commit comments

Comments
 (0)