Skip to content

Commit 40637c1

Browse files
authored
feat: Add Zod v4 support (#20)
2 parents 42c883d + 55447a3 commit 40637c1

File tree

136 files changed

+146
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+146
-147
lines changed

.speakeasy/gen.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ id: 8b6cd71c-ea04-44da-af45-e43968b5928d
33
management:
44
docChecksum: e4e1223498928c4eb610287822d724df
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.637.3
7-
generationVersion: 2.727.9
6+
speakeasyVersion: 1.638.0
7+
generationVersion: 2.728.0
88
releaseVersion: 0.0.1-beta.2
99
configChecksum: ad4dc36804e08b5b7a5bd9f2340c861c
1010
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
@@ -15,7 +15,7 @@ features:
1515
acceptHeaders: 2.81.2
1616
additionalDependencies: 0.1.0
1717
constsAndDefaults: 0.1.12
18-
core: 3.22.0
18+
core: 3.23.0
1919
customCodeRegions: 0.1.0
2020
defaultEnabledRetries: 0.1.0
2121
deprecations: 2.81.1

.speakeasy/workflow.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
speakeasyVersion: 1.637.3
1+
speakeasyVersion: 1.638.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
55
sourceRevisionDigest: sha256:fb9f9ef919a028efa99651b1c236d12f7db0956d45cd700347b4f85087c49b27
66
sourceBlobDigest: sha256:d27d3da0d51c7de23ee53f25e9629a7afa55cbf4df147d737932e7a493f20dec
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1760056178
109
- 1.0.0
1110
targets:
1211
openrouter:
@@ -15,7 +14,7 @@ targets:
1514
sourceRevisionDigest: sha256:fb9f9ef919a028efa99651b1c236d12f7db0956d45cd700347b4f85087c49b27
1615
sourceBlobDigest: sha256:d27d3da0d51c7de23ee53f25e9629a7afa55cbf4df147d737932e7a493f20dec
1716
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:39221772dc5ed70045f922f94aeb829c3ed7328e5303949360af65b6e862fb8c
17+
codeSamplesRevisionDigest: sha256:03143e35dca08dec566c437b33fccab240a2f7a63d2ec5dd30fd20472c98d036
1918
workflow:
2019
workflowVersion: 1.0.0
2120
speakeasyVersion: latest

package-lock.json

Lines changed: 1 addition & 1 deletion
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
@@ -57,7 +57,7 @@
5757
"vitest": "^3.2.4"
5858
},
5959
"dependencies": {
60-
"zod": "^3.20.0"
60+
"zod": "^3.25.0 || ^4.0.0"
6161
},
6262
"exports": {
6363
".": {

src/lib/base64.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
33
*/
44

5-
import * as z from "zod";
5+
import * as z from "zod/v3";
66

77
export function bytesToBase64(u8arr: Uint8Array): string {
88
return btoa(String.fromCodePoint(...u8arr));

src/lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const SDK_METADATA = {
6060
language: "typescript",
6161
openapiDocVersion: "1.0.0",
6262
sdkVersion: "0.0.1-beta.2",
63-
genVersion: "2.727.9",
63+
genVersion: "2.728.0",
6464
userAgent:
65-
"speakeasy-sdk/typescript 0.0.1-beta.2 2.727.9 1.0.0 @openrouter/sdk",
65+
"speakeasy-sdk/typescript 0.0.1-beta.2 2.728.0 1.0.0 @openrouter/sdk",
6666
} as const;

src/lib/env.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
33
*/
44

5+
import * as z from "zod/v3";
56
import { dlv } from "./dlv.js";
67

7-
import * as z from "zod";
8-
98
export interface Env {
109
OPENROUTER_API_KEY?: string | undefined;
1110

src/lib/schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
ZodObject,
1010
ZodRawShape,
1111
ZodTypeAny,
12-
} from "zod";
12+
} from "zod/v3";
1313
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
1414
import { ERR, OK, Result } from "../types/fp.js";
1515

src/models/activityitem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
33
*/
44

5-
import * as z from "zod";
5+
import * as z from "zod/v3";
66
import { remap as remap$ } from "../lib/primitives.js";
77
import { safeParse } from "../lib/schemas.js";
88
import { Result as SafeParseResult } from "../types/fp.js";

src/models/assistantmessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
33
*/
44

5-
import * as z from "zod";
5+
import * as z from "zod/v3";
66
import { remap as remap$ } from "../lib/primitives.js";
77
import { safeParse } from "../lib/schemas.js";
88
import { Result as SafeParseResult } from "../types/fp.js";

0 commit comments

Comments
 (0)