@openrouter/sdk 1.2.144 → 1.2.146

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.
@@ -15,5 +15,5 @@ import { Result } from "../types/fp.js";
15
15
  * @remarks
16
16
  * Submits a Decisions request to the Decisions router
17
17
  */
18
- export declare function decisionsCreate(client: OpenRouterCore, request: operations.CreateApiAlphaDecisionsRequest, options?: RequestOptions): APIPromise<Result<models.DecisionsResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.PaymentRequiredResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.PayloadTooLargeResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | errors.BadGatewayResponseError | errors.ServiceUnavailableResponseError | errors.EdgeNetworkTimeoutResponseError | errors.ProviderOverloadedResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
- //# sourceMappingURL=decisionsCreate.d.ts.map
18
+ export declare function alphaDecisionsCreate(client: OpenRouterCore, request: operations.CreateApiAlphaDecisionsRequest, options?: RequestOptions): APIPromise<Result<models.DecisionsResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.PaymentRequiredResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.PayloadTooLargeResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | errors.BadGatewayResponseError | errors.ServiceUnavailableResponseError | errors.EdgeNetworkTimeoutResponseError | errors.ProviderOverloadedResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
+ //# sourceMappingURL=alphaDecisionsCreate.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 7779a2be874c
3
+ * @generated-id: f8369846dfed
4
4
  */
5
5
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
6
6
  import { matchStatusCode } from "../lib/http.js";
@@ -19,7 +19,7 @@ import { APIPromise } from "../types/async.js";
19
19
  * @remarks
20
20
  * Submits a Decisions request to the Decisions router
21
21
  */
22
- export function decisionsCreate(client, request, options) {
22
+ export function alphaDecisionsCreate(client, request, options) {
23
23
  return new APIPromise($do(client, request, options));
24
24
  }
25
25
  async function $do(client, request, options) {
@@ -95,4 +95,4 @@ async function $do(client, request, options) {
95
95
  }
96
96
  return [result, { status: "complete", request: req, response }];
97
97
  }
98
- //# sourceMappingURL=decisionsCreate.js.map
98
+ //# sourceMappingURL=alphaDecisionsCreate.js.map
@@ -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.144";
53
+ readonly sdkVersion: "1.2.146";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.2.144 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.146 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.144",
32
+ sdkVersion: "1.2.146",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.2.144 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.2.146 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -1,17 +1,54 @@
1
1
  import * as z from "zod/v4";
2
+ /**
3
+ * A plain string, or a JSON object or array of structured guidance.
4
+ */
5
+ export type Criteria = string | {
6
+ [k: string]: any;
7
+ } | Array<any>;
8
+ /**
9
+ * A plain string, or a JSON object or array of structured guidance.
10
+ */
11
+ export type DecisionsChoiceQuestionInstructions = string | {
12
+ [k: string]: any;
13
+ } | Array<any>;
2
14
  export type DecisionsChoiceQuestion = {
3
15
  criteria: {
4
- [k: string]: string;
16
+ [k: string]: string | {
17
+ [k: string]: any;
18
+ } | Array<any> | null;
5
19
  };
6
- instructions: string;
20
+ /**
21
+ * A plain string, or a JSON object or array of structured guidance.
22
+ */
23
+ instructions: string | {
24
+ [k: string]: any;
25
+ } | Array<any>;
7
26
  type: "choice";
8
27
  };
9
28
  /** @internal */
29
+ export type Criteria$Outbound = string | {
30
+ [k: string]: any;
31
+ } | Array<any>;
32
+ /** @internal */
33
+ export declare const Criteria$outboundSchema: z.ZodType<Criteria$Outbound, Criteria>;
34
+ export declare function criteriaToJSON(criteria: Criteria): string;
35
+ /** @internal */
36
+ export type DecisionsChoiceQuestionInstructions$Outbound = string | {
37
+ [k: string]: any;
38
+ } | Array<any>;
39
+ /** @internal */
40
+ export declare const DecisionsChoiceQuestionInstructions$outboundSchema: z.ZodType<DecisionsChoiceQuestionInstructions$Outbound, DecisionsChoiceQuestionInstructions>;
41
+ export declare function decisionsChoiceQuestionInstructionsToJSON(decisionsChoiceQuestionInstructions: DecisionsChoiceQuestionInstructions): string;
42
+ /** @internal */
10
43
  export type DecisionsChoiceQuestion$Outbound = {
11
44
  criteria: {
12
- [k: string]: string;
45
+ [k: string]: string | {
46
+ [k: string]: any;
47
+ } | Array<any> | null;
13
48
  };
14
- instructions: string;
49
+ instructions: string | {
50
+ [k: string]: any;
51
+ } | Array<any>;
15
52
  type: "choice";
16
53
  };
17
54
  /** @internal */
@@ -4,9 +4,24 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  /** @internal */
7
+ export const Criteria$outboundSchema = z
8
+ .union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]);
9
+ export function criteriaToJSON(criteria) {
10
+ return JSON.stringify(Criteria$outboundSchema.parse(criteria));
11
+ }
12
+ /** @internal */
13
+ export const DecisionsChoiceQuestionInstructions$outboundSchema = z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]);
14
+ export function decisionsChoiceQuestionInstructionsToJSON(decisionsChoiceQuestionInstructions) {
15
+ return JSON.stringify(DecisionsChoiceQuestionInstructions$outboundSchema.parse(decisionsChoiceQuestionInstructions));
16
+ }
17
+ /** @internal */
7
18
  export const DecisionsChoiceQuestion$outboundSchema = z.object({
8
- criteria: z.record(z.string(), z.string()),
9
- instructions: z.string(),
19
+ criteria: z.record(z.string(), z.nullable(z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]))),
20
+ instructions: z.union([
21
+ z.string(),
22
+ z.record(z.string(), z.any()),
23
+ z.array(z.any()),
24
+ ]),
10
25
  type: z.literal("choice"),
11
26
  });
12
27
  export function decisionsChoiceQuestionToJSON(decisionsChoiceQuestion) {
@@ -1,25 +1,85 @@
1
1
  import * as z from "zod/v4";
2
- export type Criteria = {
3
- false: string;
4
- true: string;
2
+ /**
3
+ * A plain string, or a JSON object or array of structured guidance.
4
+ */
5
+ export type False = string | {
6
+ [k: string]: any;
7
+ } | Array<any>;
8
+ /**
9
+ * A plain string, or a JSON object or array of structured guidance.
10
+ */
11
+ export type True = string | {
12
+ [k: string]: any;
13
+ } | Array<any>;
14
+ export type DecisionsNoulQuestionCriteria = {
15
+ /**
16
+ * A plain string, or a JSON object or array of structured guidance.
17
+ */
18
+ false: string | {
19
+ [k: string]: any;
20
+ } | Array<any>;
21
+ /**
22
+ * A plain string, or a JSON object or array of structured guidance.
23
+ */
24
+ true: string | {
25
+ [k: string]: any;
26
+ } | Array<any>;
5
27
  };
28
+ /**
29
+ * A plain string, or a JSON object or array of structured guidance.
30
+ */
31
+ export type DecisionsNoulQuestionInstructions = string | {
32
+ [k: string]: any;
33
+ } | Array<any>;
6
34
  export type DecisionsNoulQuestion = {
7
- criteria?: Criteria | undefined;
8
- instructions: string;
35
+ criteria?: DecisionsNoulQuestionCriteria | undefined;
36
+ /**
37
+ * A plain string, or a JSON object or array of structured guidance.
38
+ */
39
+ instructions: string | {
40
+ [k: string]: any;
41
+ } | Array<any>;
9
42
  type: "noul";
10
43
  };
11
44
  /** @internal */
12
- export type Criteria$Outbound = {
13
- false: string;
14
- true: string;
45
+ export type False$Outbound = string | {
46
+ [k: string]: any;
47
+ } | Array<any>;
48
+ /** @internal */
49
+ export declare const False$outboundSchema: z.ZodType<False$Outbound, False>;
50
+ export declare function falseToJSON(value: False): string;
51
+ /** @internal */
52
+ export type True$Outbound = string | {
53
+ [k: string]: any;
54
+ } | Array<any>;
55
+ /** @internal */
56
+ export declare const True$outboundSchema: z.ZodType<True$Outbound, True>;
57
+ export declare function trueToJSON(value: True): string;
58
+ /** @internal */
59
+ export type DecisionsNoulQuestionCriteria$Outbound = {
60
+ false: string | {
61
+ [k: string]: any;
62
+ } | Array<any>;
63
+ true: string | {
64
+ [k: string]: any;
65
+ } | Array<any>;
15
66
  };
16
67
  /** @internal */
17
- export declare const Criteria$outboundSchema: z.ZodType<Criteria$Outbound, Criteria>;
18
- export declare function criteriaToJSON(criteria: Criteria): string;
68
+ export declare const DecisionsNoulQuestionCriteria$outboundSchema: z.ZodType<DecisionsNoulQuestionCriteria$Outbound, DecisionsNoulQuestionCriteria>;
69
+ export declare function decisionsNoulQuestionCriteriaToJSON(decisionsNoulQuestionCriteria: DecisionsNoulQuestionCriteria): string;
70
+ /** @internal */
71
+ export type DecisionsNoulQuestionInstructions$Outbound = string | {
72
+ [k: string]: any;
73
+ } | Array<any>;
74
+ /** @internal */
75
+ export declare const DecisionsNoulQuestionInstructions$outboundSchema: z.ZodType<DecisionsNoulQuestionInstructions$Outbound, DecisionsNoulQuestionInstructions>;
76
+ export declare function decisionsNoulQuestionInstructionsToJSON(decisionsNoulQuestionInstructions: DecisionsNoulQuestionInstructions): string;
19
77
  /** @internal */
20
78
  export type DecisionsNoulQuestion$Outbound = {
21
- criteria?: Criteria$Outbound | undefined;
22
- instructions: string;
79
+ criteria?: DecisionsNoulQuestionCriteria$Outbound | undefined;
80
+ instructions: string | {
81
+ [k: string]: any;
82
+ } | Array<any>;
23
83
  type: "noul";
24
84
  };
25
85
  /** @internal */
@@ -4,18 +4,45 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  /** @internal */
7
- export const Criteria$outboundSchema = z
8
- .object({
9
- false: z.string(),
10
- true: z.string(),
7
+ export const False$outboundSchema = z.union([
8
+ z.string(),
9
+ z.record(z.string(), z.any()),
10
+ z.array(z.any()),
11
+ ]);
12
+ export function falseToJSON(value) {
13
+ return JSON.stringify(False$outboundSchema.parse(value));
14
+ }
15
+ /** @internal */
16
+ export const True$outboundSchema = z.union([
17
+ z.string(),
18
+ z.record(z.string(), z.any()),
19
+ z.array(z.any()),
20
+ ]);
21
+ export function trueToJSON(value) {
22
+ return JSON.stringify(True$outboundSchema.parse(value));
23
+ }
24
+ /** @internal */
25
+ export const DecisionsNoulQuestionCriteria$outboundSchema = z.object({
26
+ false: z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]),
27
+ true: z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]),
11
28
  });
12
- export function criteriaToJSON(criteria) {
13
- return JSON.stringify(Criteria$outboundSchema.parse(criteria));
29
+ export function decisionsNoulQuestionCriteriaToJSON(decisionsNoulQuestionCriteria) {
30
+ return JSON.stringify(DecisionsNoulQuestionCriteria$outboundSchema.parse(decisionsNoulQuestionCriteria));
31
+ }
32
+ /** @internal */
33
+ export const DecisionsNoulQuestionInstructions$outboundSchema = z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]);
34
+ export function decisionsNoulQuestionInstructionsToJSON(decisionsNoulQuestionInstructions) {
35
+ return JSON.stringify(DecisionsNoulQuestionInstructions$outboundSchema.parse(decisionsNoulQuestionInstructions));
14
36
  }
15
37
  /** @internal */
16
38
  export const DecisionsNoulQuestion$outboundSchema = z.object({
17
- criteria: z.lazy(() => Criteria$outboundSchema).optional(),
18
- instructions: z.string(),
39
+ criteria: z.lazy(() => DecisionsNoulQuestionCriteria$outboundSchema)
40
+ .optional(),
41
+ instructions: z.union([
42
+ z.string(),
43
+ z.record(z.string(), z.any()),
44
+ z.array(z.any()),
45
+ ]),
19
46
  type: z.literal("noul"),
20
47
  });
21
48
  export function decisionsNoulQuestionToJSON(decisionsNoulQuestion) {
@@ -1,10 +1,18 @@
1
1
  import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * A plain string, or a JSON object or array of structured guidance.
6
+ */
7
+ export type Legend = string | {
8
+ [k: string]: any;
9
+ } | Array<any>;
4
10
  export type DecisionsScoreAnswer = {
5
11
  confidence?: number | undefined;
6
12
  legend?: {
7
- [k: string]: string;
13
+ [k: string]: string | {
14
+ [k: string]: any;
15
+ } | Array<any>;
8
16
  } | undefined;
9
17
  probabilities?: {
10
18
  [k: string]: number;
@@ -13,6 +21,9 @@ export type DecisionsScoreAnswer = {
13
21
  type: "score";
14
22
  };
15
23
  /** @internal */
24
+ export declare const Legend$inboundSchema: z.ZodType<Legend, unknown>;
25
+ export declare function legendFromJSON(jsonString: string): SafeParseResult<Legend, SDKValidationError>;
26
+ /** @internal */
16
27
  export declare const DecisionsScoreAnswer$inboundSchema: z.ZodType<DecisionsScoreAnswer, unknown>;
17
28
  export declare function decisionsScoreAnswerFromJSON(jsonString: string): SafeParseResult<DecisionsScoreAnswer, SDKValidationError>;
18
29
  //# sourceMappingURL=decisionsscoreanswer.d.ts.map
@@ -5,9 +5,18 @@
5
5
  import * as z from "zod/v4";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  /** @internal */
8
+ export const Legend$inboundSchema = z.union([
9
+ z.string(),
10
+ z.record(z.string(), z.any()),
11
+ z.array(z.any()),
12
+ ]);
13
+ export function legendFromJSON(jsonString) {
14
+ return safeParse(jsonString, (x) => Legend$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Legend' from JSON`);
15
+ }
16
+ /** @internal */
8
17
  export const DecisionsScoreAnswer$inboundSchema = z.object({
9
18
  confidence: z.number().optional(),
10
- legend: z.record(z.string(), z.string()).optional(),
19
+ legend: z.record(z.string(), z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())])).optional(),
11
20
  probabilities: z.record(z.string(), z.number()).optional(),
12
21
  score: z.number(),
13
22
  type: z.literal("score"),
@@ -1,13 +1,50 @@
1
1
  import * as z from "zod/v4";
2
+ /**
3
+ * A plain string, or a JSON object or array of structured guidance.
4
+ */
5
+ export type Criterion = string | {
6
+ [k: string]: any;
7
+ } | Array<any>;
8
+ /**
9
+ * A plain string, or a JSON object or array of structured guidance.
10
+ */
11
+ export type DecisionsScoreQuestionInstructions = string | {
12
+ [k: string]: any;
13
+ } | Array<any>;
2
14
  export type DecisionsScoreQuestion = {
3
- criteria: Array<string>;
4
- instructions: string;
15
+ criteria: Array<string | {
16
+ [k: string]: any;
17
+ } | Array<any>>;
18
+ /**
19
+ * A plain string, or a JSON object or array of structured guidance.
20
+ */
21
+ instructions: string | {
22
+ [k: string]: any;
23
+ } | Array<any>;
5
24
  type: "score";
6
25
  };
7
26
  /** @internal */
27
+ export type Criterion$Outbound = string | {
28
+ [k: string]: any;
29
+ } | Array<any>;
30
+ /** @internal */
31
+ export declare const Criterion$outboundSchema: z.ZodType<Criterion$Outbound, Criterion>;
32
+ export declare function criterionToJSON(criterion: Criterion): string;
33
+ /** @internal */
34
+ export type DecisionsScoreQuestionInstructions$Outbound = string | {
35
+ [k: string]: any;
36
+ } | Array<any>;
37
+ /** @internal */
38
+ export declare const DecisionsScoreQuestionInstructions$outboundSchema: z.ZodType<DecisionsScoreQuestionInstructions$Outbound, DecisionsScoreQuestionInstructions>;
39
+ export declare function decisionsScoreQuestionInstructionsToJSON(decisionsScoreQuestionInstructions: DecisionsScoreQuestionInstructions): string;
40
+ /** @internal */
8
41
  export type DecisionsScoreQuestion$Outbound = {
9
- criteria: Array<string>;
10
- instructions: string;
42
+ criteria: Array<string | {
43
+ [k: string]: any;
44
+ } | Array<any>>;
45
+ instructions: string | {
46
+ [k: string]: any;
47
+ } | Array<any>;
11
48
  type: "score";
12
49
  };
13
50
  /** @internal */
@@ -4,9 +4,23 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  /** @internal */
7
+ export const Criterion$outboundSchema = z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]);
8
+ export function criterionToJSON(criterion) {
9
+ return JSON.stringify(Criterion$outboundSchema.parse(criterion));
10
+ }
11
+ /** @internal */
12
+ export const DecisionsScoreQuestionInstructions$outboundSchema = z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())]);
13
+ export function decisionsScoreQuestionInstructionsToJSON(decisionsScoreQuestionInstructions) {
14
+ return JSON.stringify(DecisionsScoreQuestionInstructions$outboundSchema.parse(decisionsScoreQuestionInstructions));
15
+ }
16
+ /** @internal */
7
17
  export const DecisionsScoreQuestion$outboundSchema = z.object({
8
- criteria: z.array(z.string()),
9
- instructions: z.string(),
18
+ criteria: z.array(z.union([z.string(), z.record(z.string(), z.any()), z.array(z.any())])),
19
+ instructions: z.union([
20
+ z.string(),
21
+ z.record(z.string(), z.any()),
22
+ z.array(z.any()),
23
+ ]),
10
24
  type: z.literal("score"),
11
25
  });
12
26
  export function decisionsScoreQuestionToJSON(decisionsScoreQuestion) {
@@ -0,0 +1,7 @@
1
+ import { ClientSDK } from "../lib/sdks.js";
2
+ import { Decisions } from "./decisions.js";
3
+ export declare class Alpha extends ClientSDK {
4
+ private _decisions?;
5
+ get decisions(): Decisions;
6
+ }
7
+ //# sourceMappingURL=alpha.d.ts.map
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 060cb6993048
4
+ */
5
+ import { ClientSDK } from "../lib/sdks.js";
6
+ import { Decisions } from "./decisions.js";
7
+ export class Alpha extends ClientSDK {
8
+ get decisions() {
9
+ return (this._decisions ?? (this._decisions = new Decisions(this._options)));
10
+ }
11
+ }
12
+ //# sourceMappingURL=alpha.js.map
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  * @generated-id: 0e5d2e557690
4
4
  */
5
- import { decisionsCreate } from "../funcs/decisionsCreate.js";
5
+ import { alphaDecisionsCreate } from "../funcs/alphaDecisionsCreate.js";
6
6
  import { ClientSDK } from "../lib/sdks.js";
7
7
  import { unwrapAsync } from "../types/fp.js";
8
8
  export class Decisions extends ClientSDK {
@@ -13,7 +13,7 @@ export class Decisions extends ClientSDK {
13
13
  * Submits a Decisions request to the Decisions router
14
14
  */
15
15
  async create(request, options) {
16
- return unwrapAsync(decisionsCreate(this, request, options));
16
+ return unwrapAsync(alphaDecisionsCreate(this, request, options));
17
17
  }
18
18
  }
19
19
  //# sourceMappingURL=decisions.js.map
package/esm/sdk/sdk.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ClientSDK } from "../lib/sdks.js";
2
+ import { Alpha } from "./alpha.js";
2
3
  import { Analytics } from "./analytics.js";
3
4
  import { APIKeys } from "./apikeys.js";
4
5
  import { Benchmarks } from "./benchmarks.js";
@@ -9,7 +10,6 @@ import { Classifications } from "./classifications.js";
9
10
  import { Containers } from "./containers.js";
10
11
  import { Credits } from "./credits.js";
11
12
  import { Datasets } from "./datasets.js";
12
- import { Decisions } from "./decisions.js";
13
13
  import { Embeddings } from "./embeddings.js";
14
14
  import { Endpoints } from "./endpoints.js";
15
15
  import { Files } from "./files.js";
@@ -40,8 +40,8 @@ export { ToolType };
40
40
  export declare class OpenRouter extends ClientSDK {
41
41
  private _analytics?;
42
42
  get analytics(): Analytics;
43
- private _decisions?;
44
- get decisions(): Decisions;
43
+ private _alpha?;
44
+ get alpha(): Alpha;
45
45
  private _tts?;
46
46
  get tts(): TTS;
47
47
  private _stt?;
package/esm/sdk/sdk.js CHANGED
@@ -3,6 +3,7 @@
3
3
  * @generated-id: 784571af2f69
4
4
  */
5
5
  import { ClientSDK } from "../lib/sdks.js";
6
+ import { Alpha } from "./alpha.js";
6
7
  import { Analytics } from "./analytics.js";
7
8
  import { APIKeys } from "./apikeys.js";
8
9
  import { Benchmarks } from "./benchmarks.js";
@@ -13,7 +14,6 @@ import { Classifications } from "./classifications.js";
13
14
  import { Containers } from "./containers.js";
14
15
  import { Credits } from "./credits.js";
15
16
  import { Datasets } from "./datasets.js";
16
- import { Decisions } from "./decisions.js";
17
17
  import { Embeddings } from "./embeddings.js";
18
18
  import { Endpoints } from "./endpoints.js";
19
19
  import { Files } from "./files.js";
@@ -43,8 +43,8 @@ export class OpenRouter extends ClientSDK {
43
43
  get analytics() {
44
44
  return (this._analytics ?? (this._analytics = new Analytics(this._options)));
45
45
  }
46
- get decisions() {
47
- return (this._decisions ?? (this._decisions = new Decisions(this._options)));
46
+ get alpha() {
47
+ return (this._alpha ?? (this._alpha = new Alpha(this._options)));
48
48
  }
49
49
  get tts() {
50
50
  return (this._tts ?? (this._tts = new TTS(this._options)));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.144",
5
+ "version": "1.2.146",
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.144",
3
+ "version": "1.2.146",
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": [
@@ -75,13 +75,13 @@
75
75
  "prepublishOnly": "npm run build",
76
76
  "test:transit": "exit 0",
77
77
  "test:watch": "vitest --watch --project unit",
78
+ "typecheck": "tsc --noEmit",
78
79
  "typecheck:transit": "exit 0",
79
80
  "compile": "tsc",
80
- "test": "vitest --run --project unit",
81
- "typecheck": "tsc --noEmit",
82
- "postinstall": "node scripts/check-types.js || true",
83
81
  "prepare": "npm run build",
84
- "test:e2e": "vitest --run --project e2e"
82
+ "test": "vitest --run --project unit",
83
+ "test:e2e": "vitest --run --project e2e",
84
+ "postinstall": "node scripts/check-types.js || true"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {