Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ id: 8b6cd71c-ea04-44da-af45-e43968b5928d
management:
docChecksum: e4e1223498928c4eb610287822d724df
docVersion: 1.0.0
speakeasyVersion: 1.637.3
generationVersion: 2.727.9
speakeasyVersion: 1.638.0
generationVersion: 2.728.0
releaseVersion: 0.0.1-beta.2
configChecksum: ad4dc36804e08b5b7a5bd9f2340c861c
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
Expand All @@ -15,7 +15,7 @@ features:
acceptHeaders: 2.81.2
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.12
core: 3.22.0
core: 3.23.0
customCodeRegions: 0.1.0
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
Expand Down
5 changes: 2 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
speakeasyVersion: 1.637.3
speakeasyVersion: 1.638.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:fb9f9ef919a028efa99651b1c236d12f7db0956d45cd700347b4f85087c49b27
sourceBlobDigest: sha256:d27d3da0d51c7de23ee53f25e9629a7afa55cbf4df147d737932e7a493f20dec
tags:
- latest
- speakeasy-sdk-regen-1760056178
- 1.0.0
targets:
openrouter:
Expand All @@ -15,7 +14,7 @@ targets:
sourceRevisionDigest: sha256:fb9f9ef919a028efa99651b1c236d12f7db0956d45cd700347b4f85087c49b27
sourceBlobDigest: sha256:d27d3da0d51c7de23ee53f25e9629a7afa55cbf4df147d737932e7a493f20dec
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:39221772dc5ed70045f922f94aeb829c3ed7328e5303949360af65b6e862fb8c
codeSamplesRevisionDigest: sha256:03143e35dca08dec566c437b33fccab240a2f7a63d2ec5dd30fd20472c98d036
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"vitest": "^3.2.4"
},
"dependencies": {
"zod": "^3.20.0"
"zod": "^3.25.0 || ^4.0.0"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/base64.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";

export function bytesToBase64(u8arr: Uint8Array): string {
return btoa(String.fromCodePoint(...u8arr));
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "0.0.1-beta.2",
genVersion: "2.727.9",
genVersion: "2.728.0",
userAgent:
"speakeasy-sdk/typescript 0.0.1-beta.2 2.727.9 1.0.0 @openrouter/sdk",
"speakeasy-sdk/typescript 0.0.1-beta.2 2.728.0 1.0.0 @openrouter/sdk",
} as const;
3 changes: 1 addition & 2 deletions src/lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod/v3";
import { dlv } from "./dlv.js";

import * as z from "zod";

export interface Env {
OPENROUTER_API_KEY?: string | undefined;

Expand Down
2 changes: 1 addition & 1 deletion src/lib/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ZodObject,
ZodRawShape,
ZodTypeAny,
} from "zod";
} from "zod/v3";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import { ERR, OK, Result } from "../types/fp.js";

Expand Down
2 changes: 1 addition & 1 deletion src/models/activityitem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/assistantmessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatcompletionfinishreason.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import {
catchUnrecognizedEnum,
OpenEnum,
Expand Down
2 changes: 1 addition & 1 deletion src/models/chaterror.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatgenerationparams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatgenerationtokenusage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatmessagecontentitem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatmessagecontentitemaudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatmessagecontentitemimage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatmessagecontentitemtext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatmessagetokenlogprob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatmessagetokenlogprobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatmessagetoolcall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatresponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatresponsechoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatstreamingchoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatstreamingmessagechunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { ClosedEnum } from "../types/enums.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatstreamingmessagetoolcall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatstreamingresponsechunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/chatstreamoptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/completionchoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/completioncreateparams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/completionfinishreason.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import {
catchUnrecognizedEnum,
OpenEnum,
Expand Down
2 changes: 1 addition & 1 deletion src/models/completionlogprobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/completionresponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/completionusage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/datacollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import {
catchUnrecognizedEnum,
OpenEnum,
Expand Down
2 changes: 1 addition & 1 deletion src/models/defaultparameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import { Result as SafeParseResult } from "../types/fp.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/endpointstatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import {
catchUnrecognizedEnum,
OpenEnum,
Expand Down
2 changes: 1 addition & 1 deletion src/models/errorresponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/models/errors/chaterror.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import * as models from "../index.js";
import { OpenRouterError } from "./openroutererror.js";

Expand Down
2 changes: 1 addition & 1 deletion src/models/errors/errorresponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import { remap as remap$ } from "../../lib/primitives.js";
import * as models from "../index.js";
import { OpenRouterError } from "./openroutererror.js";
Expand Down
2 changes: 1 addition & 1 deletion src/models/errors/listproviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import * as z from "zod";
import * as z from "zod/v3";
import * as operations from "../operations/index.js";
import { OpenRouterError } from "./openroutererror.js";

Expand Down
Loading