@openrouter/sdk 1.2.51 → 1.2.53

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.
@@ -14,5 +14,5 @@ import { Result } from "../types/fp.js";
14
14
  * @remarks
15
15
  * Submits an embedding request to the embeddings router
16
16
  */
17
- export declare function embeddingsGenerate(client: OpenRouterCore, request: operations.CreateEmbeddingsRequest, options?: RequestOptions): APIPromise<Result<operations.CreateEmbeddingsResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.PaymentRequiredResponseError | errors.NotFoundResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | errors.BadGatewayResponseError | errors.ServiceUnavailableResponseError | errors.EdgeNetworkTimeoutResponseError | errors.ProviderOverloadedResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
+ export declare function embeddingsGenerate(client: OpenRouterCore, request: operations.CreateEmbeddingsRequest, options?: RequestOptions): APIPromise<Result<operations.CreateEmbeddingsResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.PaymentRequiredResponseError | errors.NotFoundResponseError | errors.RequestTimeoutResponseError | errors.PayloadTooLargeResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | errors.BadGatewayResponseError | errors.ServiceUnavailableResponseError | errors.EdgeNetworkTimeoutResponseError | errors.ProviderOverloadedResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=embeddingsGenerate.d.ts.map
@@ -90,7 +90,7 @@ async function $do(client, request, options) {
90
90
  };
91
91
  const [result] = await M.match(M.json(200, operations.CreateEmbeddingsResponse$inboundSchema), M.text(200, operations.CreateEmbeddingsResponse$inboundSchema, {
92
92
  ctype: "text/event-stream",
93
- }), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(402, errors.PaymentRequiredResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.jsonErr(502, errors.BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableResponseError$inboundSchema), M.jsonErr(524, errors.EdgeNetworkTimeoutResponseError$inboundSchema), M.jsonErr(529, errors.ProviderOverloadedResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
93
+ }), M.jsonErr(400, errors.BadRequestResponseError$inboundSchema), M.jsonErr(401, errors.UnauthorizedResponseError$inboundSchema), M.jsonErr(402, errors.PaymentRequiredResponseError$inboundSchema), M.jsonErr(404, errors.NotFoundResponseError$inboundSchema), M.jsonErr(408, errors.RequestTimeoutResponseError$inboundSchema), M.jsonErr(413, errors.PayloadTooLargeResponseError$inboundSchema), M.jsonErr(429, errors.TooManyRequestsResponseError$inboundSchema), M.jsonErr(500, errors.InternalServerResponseError$inboundSchema), M.jsonErr(502, errors.BadGatewayResponseError$inboundSchema), M.jsonErr(503, errors.ServiceUnavailableResponseError$inboundSchema), M.jsonErr(524, errors.EdgeNetworkTimeoutResponseError$inboundSchema), M.jsonErr(529, errors.ProviderOverloadedResponseError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
94
94
  if (!result.ok) {
95
95
  return [result, { status: "complete", request: req, response }];
96
96
  }
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
50
50
  export declare const SDK_METADATA: {
51
51
  readonly language: "typescript";
52
52
  readonly openapiDocVersion: "1.0.0";
53
- readonly sdkVersion: "1.2.51";
53
+ readonly sdkVersion: "1.2.53";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.2.51 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.53 2.914.0 1.0.0 @openrouter/sdk";
56
56
  };
57
57
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
29
29
  export const SDK_METADATA = {
30
30
  language: "typescript",
31
31
  openapiDocVersion: "1.0.0",
32
- sdkVersion: "1.2.51",
32
+ sdkVersion: "1.2.53",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.2.51 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.2.53 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -55,6 +55,7 @@ export declare const BYOKProviderSlug: {
55
55
  readonly Ionstream: "ionstream";
56
56
  readonly Krea: "krea";
57
57
  readonly Liquid: "liquid";
58
+ readonly Makora: "makora";
58
59
  readonly Mancer: "mancer";
59
60
  readonly Mara: "mara";
60
61
  readonly Meta: "meta";
@@ -58,6 +58,7 @@ export const BYOKProviderSlug = {
58
58
  Ionstream: "ionstream",
59
59
  Krea: "krea",
60
60
  Liquid: "liquid",
61
+ Makora: "makora",
61
62
  Mancer: "mancer",
62
63
  Mara: "mara",
63
64
  Meta: "meta",
@@ -224,6 +224,9 @@ export type ImageGenerationProviderPreferencesOptions = {
224
224
  lynnPrivate?: {
225
225
  [k: string]: any;
226
226
  } | undefined;
227
+ makora?: {
228
+ [k: string]: any;
229
+ } | undefined;
227
230
  mancer?: {
228
231
  [k: string]: any;
229
232
  } | undefined;
@@ -677,6 +680,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
677
680
  "lynn-private"?: {
678
681
  [k: string]: any;
679
682
  } | undefined;
683
+ makora?: {
684
+ [k: string]: any;
685
+ } | undefined;
680
686
  mancer?: {
681
687
  [k: string]: any;
682
688
  } | undefined;
@@ -91,6 +91,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
91
91
  liquid: z.record(z.string(), z.any()).optional(),
92
92
  lynn: z.record(z.string(), z.any()).optional(),
93
93
  lynnPrivate: z.record(z.string(), z.any()).optional(),
94
+ makora: z.record(z.string(), z.any()).optional(),
94
95
  mancer: z.record(z.string(), z.any()).optional(),
95
96
  mancerOld: z.record(z.string(), z.any()).optional(),
96
97
  mara: z.record(z.string(), z.any()).optional(),
@@ -79,6 +79,7 @@ export declare const Provider: {
79
79
  readonly Ionstream: "ionstream";
80
80
  readonly Krea: "krea";
81
81
  readonly Liquid: "liquid";
82
+ readonly Makora: "makora";
82
83
  readonly Mancer: "mancer";
83
84
  readonly Mara: "mara";
84
85
  readonly Meta: "meta";
@@ -62,6 +62,7 @@ export const Provider = {
62
62
  Ionstream: "ionstream",
63
63
  Krea: "krea",
64
64
  Liquid: "liquid",
65
+ Makora: "makora",
65
66
  Mancer: "mancer",
66
67
  Mara: "mara",
67
68
  Meta: "meta",
@@ -54,6 +54,7 @@ export declare const ProviderName: {
54
54
  readonly InferactVLLM: "Inferact vLLM";
55
55
  readonly Inflection: "Inflection";
56
56
  readonly Liquid: "Liquid";
57
+ readonly Makora: "Makora";
57
58
  readonly Mara: "Mara";
58
59
  readonly Mancer2: "Mancer 2";
59
60
  readonly Meta: "Meta";
@@ -57,6 +57,7 @@ export const ProviderName = {
57
57
  InferactVLLM: "Inferact vLLM",
58
58
  Inflection: "Inflection",
59
59
  Liquid: "Liquid",
60
+ Makora: "Makora",
60
61
  Mara: "Mara",
61
62
  Mancer2: "Mancer 2",
62
63
  Meta: "Meta",
@@ -219,6 +219,9 @@ export type ProviderOptions = {
219
219
  lynnPrivate?: {
220
220
  [k: string]: any;
221
221
  } | undefined;
222
+ makora?: {
223
+ [k: string]: any;
224
+ } | undefined;
222
225
  mancer?: {
223
226
  [k: string]: any;
224
227
  } | undefined;
@@ -627,6 +630,9 @@ export type ProviderOptions$Outbound = {
627
630
  "lynn-private"?: {
628
631
  [k: string]: any;
629
632
  } | undefined;
633
+ makora?: {
634
+ [k: string]: any;
635
+ } | undefined;
630
636
  mancer?: {
631
637
  [k: string]: any;
632
638
  } | undefined;
@@ -78,6 +78,7 @@ export const ProviderOptions$outboundSchema = z.object({
78
78
  liquid: z.record(z.string(), z.any()).optional(),
79
79
  lynn: z.record(z.string(), z.any()).optional(),
80
80
  lynnPrivate: z.record(z.string(), z.any()).optional(),
81
+ makora: z.record(z.string(), z.any()).optional(),
81
82
  mancer: z.record(z.string(), z.any()).optional(),
82
83
  mancerOld: z.record(z.string(), z.any()).optional(),
83
84
  mara: z.record(z.string(), z.any()).optional(),
@@ -86,6 +86,7 @@ export declare const ProviderResponseProviderName: {
86
86
  readonly InferactVLLM: "Inferact vLLM";
87
87
  readonly Inflection: "Inflection";
88
88
  readonly Liquid: "Liquid";
89
+ readonly Makora: "Makora";
89
90
  readonly Mara: "Mara";
90
91
  readonly Mancer2: "Mancer 2";
91
92
  readonly Meta: "Meta";
@@ -90,6 +90,7 @@ export const ProviderResponseProviderName = {
90
90
  InferactVLLM: "Inferact vLLM",
91
91
  Inflection: "Inflection",
92
92
  Liquid: "Liquid",
93
+ Makora: "Makora",
93
94
  Mara: "Mara",
94
95
  Mancer2: "Mancer 2",
95
96
  Meta: "Meta",
@@ -240,6 +240,9 @@ export type VideoGenerationRequestOptions = {
240
240
  lynnPrivate?: {
241
241
  [k: string]: any;
242
242
  } | undefined;
243
+ makora?: {
244
+ [k: string]: any;
245
+ } | undefined;
243
246
  mancer?: {
244
247
  [k: string]: any;
245
248
  } | undefined;
@@ -727,6 +730,9 @@ export type VideoGenerationRequestOptions$Outbound = {
727
730
  "lynn-private"?: {
728
731
  [k: string]: any;
729
732
  } | undefined;
733
+ makora?: {
734
+ [k: string]: any;
735
+ } | undefined;
730
736
  mancer?: {
731
737
  [k: string]: any;
732
738
  } | undefined;
@@ -109,6 +109,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
109
109
  liquid: z.record(z.string(), z.any()).optional(),
110
110
  lynn: z.record(z.string(), z.any()).optional(),
111
111
  lynnPrivate: z.record(z.string(), z.any()).optional(),
112
+ makora: z.record(z.string(), z.any()).optional(),
112
113
  mancer: z.record(z.string(), z.any()).optional(),
113
114
  mancerOld: z.record(z.string(), z.any()).optional(),
114
115
  mara: z.record(z.string(), z.any()).optional(),
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.51",
5
+ "version": "1.2.53",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "1.2.51",
3
+ "version": "1.2.53",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
6
6
  "keywords": [
@@ -73,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "tsc",
75
75
  "prepublishOnly": "npm run build",
76
- "typecheck:transit": "exit 0",
77
- "postinstall": "node scripts/check-types.js || true",
78
- "test": "vitest --run --project unit",
79
76
  "compile": "tsc",
77
+ "postinstall": "node scripts/check-types.js || true",
80
78
  "prepare": "npm run build",
79
+ "test": "vitest --run --project unit",
81
80
  "test:e2e": "vitest --run --project e2e",
82
- "test:transit": "exit 0",
83
81
  "test:watch": "vitest --watch --project unit",
84
- "typecheck": "tsc --noEmit"
82
+ "typecheck": "tsc --noEmit",
83
+ "test:transit": "exit 0",
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {