@openrouter/sdk 1.5.109 → 1.5.111

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.
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * List Benchmarks
14
14
  *
15
15
  * @remarks
16
- * Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
16
+ * Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Artificial Analysis items carry one score per Artificial Analysis index (Intelligence Index, Finance & Accounting Index, Strategy & Ops Index, Legal Index, Healthcare & Medical Index, Engineering Index, Economics Index, Cyber Index, Openness Index, Multilingual Index, Decision Index); attribute Artificial Analysis when you republish them. A response whose items all come from one source carries that source's citation in meta; in a mixed response, attribute each item by its source. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
17
17
  */
18
18
  export declare function benchmarksGetBenchmarks(client: OpenRouterCore, request?: operations.GetBenchmarksRequest | undefined, options?: RequestOptions): APIPromise<Result<models.UnifiedBenchmarksResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
19
  //# sourceMappingURL=benchmarksGetBenchmarks.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * List Benchmarks
17
17
  *
18
18
  * @remarks
19
- * Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
19
+ * Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Artificial Analysis items carry one score per Artificial Analysis index (Intelligence Index, Finance & Accounting Index, Strategy & Ops Index, Legal Index, Healthcare & Medical Index, Engineering Index, Economics Index, Cyber Index, Openness Index, Multilingual Index, Decision Index); attribute Artificial Analysis when you republish them. A response whose items all come from one source carries that source's citation in meta; in a mixed response, attribute each item by its source. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
20
20
  */
21
21
  export function benchmarksGetBenchmarks(client, request, options) {
22
22
  return new APIPromise($do(client, request, options));
@@ -37,16 +37,40 @@ async function $do(client, request, options) {
37
37
  "max_age_days": payload?.max_age_days,
38
38
  "max_agentic_index": payload?.max_agentic_index,
39
39
  "max_coding_index": payload?.max_coding_index,
40
+ "max_cyber_index": payload?.max_cyber_index,
41
+ "max_decision_index": payload?.max_decision_index,
42
+ "max_economics_index": payload?.max_economics_index,
43
+ "max_engineering_index": payload?.max_engineering_index,
44
+ "max_finance_and_accounting_index": payload
45
+ ?.max_finance_and_accounting_index,
46
+ "max_healthcare_and_medical_index": payload
47
+ ?.max_healthcare_and_medical_index,
40
48
  "max_intelligence_index": payload?.max_intelligence_index,
49
+ "max_legal_index": payload?.max_legal_index,
50
+ "max_multilingual_index": payload?.max_multilingual_index,
51
+ "max_openness_index": payload?.max_openness_index,
41
52
  "max_output_price": payload?.max_output_price,
42
53
  "max_price": payload?.max_price,
54
+ "max_strategy_and_ops_index": payload?.max_strategy_and_ops_index,
43
55
  "max_tool_success_rate": payload?.max_tool_success_rate,
44
56
  "min_age_days": payload?.min_age_days,
45
57
  "min_agentic_index": payload?.min_agentic_index,
46
58
  "min_coding_index": payload?.min_coding_index,
59
+ "min_cyber_index": payload?.min_cyber_index,
60
+ "min_decision_index": payload?.min_decision_index,
61
+ "min_economics_index": payload?.min_economics_index,
62
+ "min_engineering_index": payload?.min_engineering_index,
63
+ "min_finance_and_accounting_index": payload
64
+ ?.min_finance_and_accounting_index,
65
+ "min_healthcare_and_medical_index": payload
66
+ ?.min_healthcare_and_medical_index,
47
67
  "min_intelligence_index": payload?.min_intelligence_index,
68
+ "min_legal_index": payload?.min_legal_index,
69
+ "min_multilingual_index": payload?.min_multilingual_index,
70
+ "min_openness_index": payload?.min_openness_index,
48
71
  "min_output_price": payload?.min_output_price,
49
72
  "min_price": payload?.min_price,
73
+ "min_strategy_and_ops_index": payload?.min_strategy_and_ops_index,
50
74
  "min_tool_success_rate": payload?.min_tool_success_rate,
51
75
  "model_authors": payload?.model_authors,
52
76
  "offset": payload?.offset,
@@ -49,8 +49,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
49
49
  export declare const SDK_METADATA: {
50
50
  readonly language: "typescript";
51
51
  readonly openapiDocVersion: "1.0.0";
52
- readonly sdkVersion: "1.5.109";
52
+ readonly sdkVersion: "1.5.111";
53
53
  readonly genVersion: "2.960.8";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.5.109 2.960.8 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.111 2.960.8 1.0.0 @openrouter/sdk";
55
55
  };
56
56
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -25,8 +25,8 @@ export function serverURLFromOptions(options) {
25
25
  export const SDK_METADATA = {
26
26
  language: "typescript",
27
27
  openapiDocVersion: "1.0.0",
28
- sdkVersion: "1.5.109",
28
+ sdkVersion: "1.5.111",
29
29
  genVersion: "2.960.8",
30
- userAgent: "speakeasy-sdk/typescript 1.5.109 2.960.8 1.0.0 @openrouter/sdk",
30
+ userAgent: "speakeasy-sdk/typescript 1.5.111 2.960.8 1.0.0 @openrouter/sdk",
31
31
  };
32
32
  //# sourceMappingURL=config.js.map
@@ -2,21 +2,65 @@ 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
4
  /**
5
- * Artificial Analysis benchmark index scores.
5
+ * Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.
6
6
  */
7
7
  export type AABenchmarkEntry = {
8
8
  /**
9
- * Artificial Analysis Agentic Index score
9
+ * Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.
10
+ *
11
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
10
12
  */
11
13
  agenticIndex: number | null;
12
14
  /**
13
- * Artificial Analysis Coding Index score
15
+ * Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.
16
+ *
17
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
14
18
  */
15
19
  codingIndex: number | null;
16
20
  /**
17
- * Artificial Analysis Intelligence Index score
21
+ * Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.
22
+ */
23
+ cyberIndex: number | null;
24
+ /**
25
+ * Artificial Analysis Decision Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Published for decision models and for the language models Artificial Analysis evaluates on decision tasks. Null when Artificial Analysis has not published a score for the model.
26
+ */
27
+ decisionIndex: number | null;
28
+ /**
29
+ * Artificial Analysis Economics Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
30
+ */
31
+ economicsIndex: number | null;
32
+ /**
33
+ * Artificial Analysis Engineering Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
34
+ */
35
+ engineeringIndex: number | null;
36
+ /**
37
+ * Artificial Analysis Finance & Accounting Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
38
+ */
39
+ financeAndAccountingIndex: number | null;
40
+ /**
41
+ * Artificial Analysis Healthcare & Medical Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
42
+ */
43
+ healthcareAndMedicalIndex: number | null;
44
+ /**
45
+ * Artificial Analysis Intelligence Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.
18
46
  */
19
47
  intelligenceIndex: number | null;
48
+ /**
49
+ * Artificial Analysis Legal Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
50
+ */
51
+ legalIndex: number | null;
52
+ /**
53
+ * Artificial Analysis Multilingual Index score, as a fraction from 0 to 1: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.
54
+ */
55
+ multilingualIndex: number | null;
56
+ /**
57
+ * Artificial Analysis Openness Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.
58
+ */
59
+ opennessIndex: number | null;
60
+ /**
61
+ * Artificial Analysis Strategy & Ops Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
62
+ */
63
+ strategyAndOpsIndex: number | null;
20
64
  };
21
65
  /** @internal */
22
66
  export declare const AABenchmarkEntry$inboundSchema: z.ZodType<AABenchmarkEntry, unknown>;
@@ -8,12 +8,32 @@ import { safeParse } from "../lib/schemas.js";
8
8
  export const AABenchmarkEntry$inboundSchema = z.object({
9
9
  agentic_index: z.nullable(z.number()),
10
10
  coding_index: z.nullable(z.number()),
11
+ cyber_index: z.nullable(z.number()),
12
+ decision_index: z.nullable(z.number()),
13
+ economics_index: z.nullable(z.number()),
14
+ engineering_index: z.nullable(z.number()),
15
+ finance_and_accounting_index: z.nullable(z.number()),
16
+ healthcare_and_medical_index: z.nullable(z.number()),
11
17
  intelligence_index: z.nullable(z.number()),
18
+ legal_index: z.nullable(z.number()),
19
+ multilingual_index: z.nullable(z.number()),
20
+ openness_index: z.nullable(z.number()),
21
+ strategy_and_ops_index: z.nullable(z.number()),
12
22
  }).transform((v) => {
13
23
  return remap$(v, {
14
24
  "agentic_index": "agenticIndex",
15
25
  "coding_index": "codingIndex",
26
+ "cyber_index": "cyberIndex",
27
+ "decision_index": "decisionIndex",
28
+ "economics_index": "economicsIndex",
29
+ "engineering_index": "engineeringIndex",
30
+ "finance_and_accounting_index": "financeAndAccountingIndex",
31
+ "healthcare_and_medical_index": "healthcareAndMedicalIndex",
16
32
  "intelligence_index": "intelligenceIndex",
33
+ "legal_index": "legalIndex",
34
+ "multilingual_index": "multilingualIndex",
35
+ "openness_index": "opennessIndex",
36
+ "strategy_and_ops_index": "strategyAndOpsIndex",
17
37
  });
18
38
  });
19
39
  export function aaBenchmarkEntryFromJSON(jsonString) {
@@ -779,6 +779,7 @@ export * from "./responsehealingplugin.js";
779
779
  export * from "./responseincludesenum.js";
780
780
  export * from "./responseoutputtext.js";
781
781
  export * from "./responsesbadrequestresponseerrordata.js";
782
+ export * from "./responsesinputtransformation.js";
782
783
  export * from "./responsesrequest.js";
783
784
  export * from "./responsesstreamingresponse.js";
784
785
  export * from "./routerattempt.js";
@@ -782,6 +782,7 @@ export * from "./responsehealingplugin.js";
782
782
  export * from "./responseincludesenum.js";
783
783
  export * from "./responseoutputtext.js";
784
784
  export * from "./responsesbadrequestresponseerrordata.js";
785
+ export * from "./responsesinputtransformation.js";
785
786
  export * from "./responsesrequest.js";
786
787
  export * from "./responsesstreamingresponse.js";
787
788
  export * from "./routerattempt.js";
@@ -8,7 +8,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
8
8
  */
9
9
  export type ModelBenchmarks = {
10
10
  /**
11
- * Artificial Analysis benchmark index scores.
11
+ * Benchmark index scores published by Artificial Analysis (artificialanalysis.ai), one field per index. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. Attribute Artificial Analysis when you republish them. Omitted when Artificial Analysis has scored the model on none of them.
12
12
  */
13
13
  artificialAnalysis?: AABenchmarkEntry | undefined;
14
14
  /**
@@ -28,6 +28,7 @@ import { OutputItems } from "./outputitems.js";
28
28
  import { Preview20250311WebSearchServerTool } from "./preview20250311websearchservertool.js";
29
29
  import { PreviewWebSearchServerTool } from "./previewwebsearchservertool.js";
30
30
  import { PromptCacheOptions } from "./promptcacheoptions.js";
31
+ import { ResponsesInputTransformation } from "./responsesinputtransformation.js";
31
32
  import { ServerToolUseDetails } from "./servertoolusedetails.js";
32
33
  import { ShellServerTool } from "./shellservertool.js";
33
34
  import { StoredPromptTemplate } from "./storedprompttemplate.js";
@@ -244,6 +245,10 @@ export type OpenResponsesResult = {
244
245
  * Canonical OpenRouter error type, stable across all API formats
245
246
  */
246
247
  errorType?: ApiErrorType | undefined;
248
+ /**
249
+ * Input items the upstream provider changed before inference (OpenAI `input_transformations`). Present only when the provider reported the field; empty when it changed nothing.
250
+ */
251
+ inputTransformations?: Array<ResponsesInputTransformation> | undefined;
247
252
  openrouterMetadata?: OpenRouterMetadata | undefined;
248
253
  /**
249
254
  * OpenRouter Armor's verdict for each client tool call of this response, present whenever Armor evaluated the response (even when nothing was flagged). Independent of the `openrouter_metadata` opt-in.
@@ -31,6 +31,7 @@ import { OutputItems$inboundSchema } from "./outputitems.js";
31
31
  import { Preview20250311WebSearchServerTool$inboundSchema, } from "./preview20250311websearchservertool.js";
32
32
  import { PreviewWebSearchServerTool$inboundSchema, } from "./previewwebsearchservertool.js";
33
33
  import { PromptCacheOptions$inboundSchema, } from "./promptcacheoptions.js";
34
+ import { ResponsesInputTransformation$inboundSchema, } from "./responsesinputtransformation.js";
34
35
  import { ServerToolUseDetails$inboundSchema, } from "./servertoolusedetails.js";
35
36
  import { ShellServerTool$inboundSchema, } from "./shellservertool.js";
36
37
  import { StoredPromptTemplate$inboundSchema, } from "./storedprompttemplate.js";
@@ -230,6 +231,8 @@ export const OpenResponsesResult$inboundSchema = z.object({
230
231
  access_programs: z.nullable(z.lazy(() => OpenResponsesResultAccessPrograms$inboundSchema)).optional(),
231
232
  alignment: Alignment$inboundSchema.optional(),
232
233
  error_type: ApiErrorType$inboundSchema.optional(),
234
+ input_transformations: z.array(ResponsesInputTransformation$inboundSchema)
235
+ .optional(),
233
236
  openrouter_metadata: OpenRouterMetadata$inboundSchema.optional(),
234
237
  safeguard_results: z.array(ArmorSafeguardResult$inboundSchema).optional(),
235
238
  }).transform((v) => {
@@ -253,6 +256,7 @@ export const OpenResponsesResult$inboundSchema = z.object({
253
256
  "top_p": "topP",
254
257
  "access_programs": "accessPrograms",
255
258
  "error_type": "errorType",
259
+ "input_transformations": "inputTransformations",
256
260
  "openrouter_metadata": "openrouterMetadata",
257
261
  "safeguard_results": "safeguardResults",
258
262
  });
@@ -34,16 +34,25 @@ export declare const Source: {
34
34
  */
35
35
  export type Source = OpenEnum<typeof Source>;
36
36
  /**
37
- * Filter results by task type. For Artificial Analysis, maps to the corresponding index. For Design Arena, maps to the matching category. `search` returns OpenRouter search benchmark results only.
37
+ * Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.
38
38
  */
39
39
  export declare const TaskType: {
40
- readonly Coding: "coding";
41
40
  readonly Intelligence: "intelligence";
41
+ readonly Coding: "coding";
42
42
  readonly Agentic: "agentic";
43
+ readonly FinanceAndAccounting: "finance-and-accounting";
44
+ readonly StrategyAndOps: "strategy-and-ops";
45
+ readonly Legal: "legal";
46
+ readonly HealthcareAndMedical: "healthcare-and-medical";
47
+ readonly Engineering: "engineering";
48
+ readonly Economics: "economics";
49
+ readonly Cyber: "cyber";
50
+ readonly Multilingual: "multilingual";
51
+ readonly Decision: "decision";
43
52
  readonly Search: "search";
44
53
  };
45
54
  /**
46
- * Filter results by task type. For Artificial Analysis, maps to the corresponding index. For Design Arena, maps to the matching category. `search` returns OpenRouter search benchmark results only.
55
+ * Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.
47
56
  */
48
57
  export type TaskType = OpenEnum<typeof TaskType>;
49
58
  /**
@@ -109,7 +118,7 @@ export type GetBenchmarksRequest = {
109
118
  */
110
119
  source?: Source | undefined;
111
120
  /**
112
- * Filter results by task type. For Artificial Analysis, maps to the corresponding index. For Design Arena, maps to the matching category. `search` returns OpenRouter search benchmark results only.
121
+ * Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.
113
122
  */
114
123
  taskType?: TaskType | undefined;
115
124
  /**
@@ -13,12 +13,21 @@ export const Source = {
13
13
  Openrouter: "openrouter",
14
14
  };
15
15
  /**
16
- * Filter results by task type. For Artificial Analysis, maps to the corresponding index. For Design Arena, maps to the matching category. `search` returns OpenRouter search benchmark results only.
16
+ * Filter results by task type. Every value except `search` names the Artificial Analysis index of the same name and returns only models scored on it, best first (`coding` and `agentic` are deprecated: Artificial Analysis has retired those indexes). Design Arena answers only `coding`, `intelligence` and `agentic`, and OpenRouter's own evals only `intelligence` and `agentic`. `search` returns OpenRouter search benchmark results only.
17
17
  */
18
18
  export const TaskType = {
19
- Coding: "coding",
20
19
  Intelligence: "intelligence",
20
+ Coding: "coding",
21
21
  Agentic: "agentic",
22
+ FinanceAndAccounting: "finance-and-accounting",
23
+ StrategyAndOps: "strategy-and-ops",
24
+ Legal: "legal",
25
+ HealthcareAndMedical: "healthcare-and-medical",
26
+ Engineering: "engineering",
27
+ Economics: "economics",
28
+ Cyber: "cyber",
29
+ Multilingual: "multilingual",
30
+ Decision: "decision",
22
31
  Search: "search",
23
32
  };
24
33
  /**
@@ -46,7 +46,7 @@ export declare const GetModelsCategory: {
46
46
  */
47
47
  export type GetModelsCategory = OpenEnum<typeof GetModelsCategory>;
48
48
  /**
49
- * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
49
+ * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), <index>-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.
50
50
  */
51
51
  export declare const GetModelsSort: {
52
52
  readonly MostPopular: "most-popular";
@@ -60,10 +60,20 @@ export declare const GetModelsSort: {
60
60
  readonly IntelligenceHighToLow: "intelligence-high-to-low";
61
61
  readonly CodingHighToLow: "coding-high-to-low";
62
62
  readonly AgenticHighToLow: "agentic-high-to-low";
63
+ readonly FinanceAndAccountingHighToLow: "finance-and-accounting-high-to-low";
64
+ readonly StrategyAndOpsHighToLow: "strategy-and-ops-high-to-low";
65
+ readonly LegalHighToLow: "legal-high-to-low";
66
+ readonly HealthcareAndMedicalHighToLow: "healthcare-and-medical-high-to-low";
67
+ readonly EngineeringHighToLow: "engineering-high-to-low";
68
+ readonly EconomicsHighToLow: "economics-high-to-low";
69
+ readonly CyberHighToLow: "cyber-high-to-low";
70
+ readonly OpennessHighToLow: "openness-high-to-low";
71
+ readonly MultilingualHighToLow: "multilingual-high-to-low";
72
+ readonly DecisionHighToLow: "decision-high-to-low";
63
73
  readonly DesignArenaEloHighToLow: "design-arena-elo-high-to-low";
64
74
  };
65
75
  /**
66
- * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
76
+ * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), <index>-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.
67
77
  */
68
78
  export type GetModelsSort = OpenEnum<typeof GetModelsSort>;
69
79
  /**
@@ -139,7 +149,7 @@ export type GetModelsRequest = {
139
149
  */
140
150
  outputModalities?: string | undefined;
141
151
  /**
142
- * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
152
+ * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), <index>-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.
143
153
  */
144
154
  sort?: GetModelsSort | undefined;
145
155
  /**
@@ -207,29 +217,117 @@ export type GetModelsRequest = {
207
217
  */
208
218
  maxAgeDays?: number | null | undefined;
209
219
  /**
210
- * Minimum Artificial Analysis intelligence index.
220
+ * Minimum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded.
211
221
  */
212
222
  minIntelligenceIndex?: number | null | undefined;
213
223
  /**
214
- * Maximum Artificial Analysis intelligence index.
224
+ * Maximum Artificial Analysis Intelligence Index score (0-100); unscored models are excluded.
215
225
  */
216
226
  maxIntelligenceIndex?: number | null | undefined;
217
227
  /**
218
- * Minimum Artificial Analysis coding index.
228
+ * Deprecated: Artificial Analysis has retired its Coding Index. Minimum score (0-100); unscored models are excluded.
229
+ *
230
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
219
231
  */
220
232
  minCodingIndex?: number | null | undefined;
221
233
  /**
222
- * Maximum Artificial Analysis coding index.
234
+ * Deprecated: Artificial Analysis has retired its Coding Index. Maximum score (0-100); unscored models are excluded.
235
+ *
236
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
223
237
  */
224
238
  maxCodingIndex?: number | null | undefined;
225
239
  /**
226
- * Minimum Artificial Analysis agentic index.
240
+ * Deprecated: Artificial Analysis has retired its Agentic Index. Minimum score (0-100); unscored models are excluded.
241
+ *
242
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
227
243
  */
228
244
  minAgenticIndex?: number | null | undefined;
229
245
  /**
230
- * Maximum Artificial Analysis agentic index.
246
+ * Deprecated: Artificial Analysis has retired its Agentic Index. Maximum score (0-100); unscored models are excluded.
247
+ *
248
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
231
249
  */
232
250
  maxAgenticIndex?: number | null | undefined;
251
+ /**
252
+ * Minimum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded.
253
+ */
254
+ minFinanceAndAccountingIndex?: number | null | undefined;
255
+ /**
256
+ * Maximum Artificial Analysis Finance & Accounting Index score (0-100); unscored models are excluded.
257
+ */
258
+ maxFinanceAndAccountingIndex?: number | null | undefined;
259
+ /**
260
+ * Minimum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded.
261
+ */
262
+ minStrategyAndOpsIndex?: number | null | undefined;
263
+ /**
264
+ * Maximum Artificial Analysis Strategy & Ops Index score (0-100); unscored models are excluded.
265
+ */
266
+ maxStrategyAndOpsIndex?: number | null | undefined;
267
+ /**
268
+ * Minimum Artificial Analysis Legal Index score (0-100); unscored models are excluded.
269
+ */
270
+ minLegalIndex?: number | null | undefined;
271
+ /**
272
+ * Maximum Artificial Analysis Legal Index score (0-100); unscored models are excluded.
273
+ */
274
+ maxLegalIndex?: number | null | undefined;
275
+ /**
276
+ * Minimum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded.
277
+ */
278
+ minHealthcareAndMedicalIndex?: number | null | undefined;
279
+ /**
280
+ * Maximum Artificial Analysis Healthcare & Medical Index score (0-100); unscored models are excluded.
281
+ */
282
+ maxHealthcareAndMedicalIndex?: number | null | undefined;
283
+ /**
284
+ * Minimum Artificial Analysis Engineering Index score (0-100); unscored models are excluded.
285
+ */
286
+ minEngineeringIndex?: number | null | undefined;
287
+ /**
288
+ * Maximum Artificial Analysis Engineering Index score (0-100); unscored models are excluded.
289
+ */
290
+ maxEngineeringIndex?: number | null | undefined;
291
+ /**
292
+ * Minimum Artificial Analysis Economics Index score (0-100); unscored models are excluded.
293
+ */
294
+ minEconomicsIndex?: number | null | undefined;
295
+ /**
296
+ * Maximum Artificial Analysis Economics Index score (0-100); unscored models are excluded.
297
+ */
298
+ maxEconomicsIndex?: number | null | undefined;
299
+ /**
300
+ * Minimum Artificial Analysis Cyber Index score (0-100); unscored models are excluded.
301
+ */
302
+ minCyberIndex?: number | null | undefined;
303
+ /**
304
+ * Maximum Artificial Analysis Cyber Index score (0-100); unscored models are excluded.
305
+ */
306
+ maxCyberIndex?: number | null | undefined;
307
+ /**
308
+ * Minimum Artificial Analysis Openness Index score (0-100); unscored models are excluded.
309
+ */
310
+ minOpennessIndex?: number | null | undefined;
311
+ /**
312
+ * Maximum Artificial Analysis Openness Index score (0-100); unscored models are excluded.
313
+ */
314
+ maxOpennessIndex?: number | null | undefined;
315
+ /**
316
+ * Minimum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded.
317
+ */
318
+ minMultilingualIndex?: number | null | undefined;
319
+ /**
320
+ * Maximum Artificial Analysis Multilingual Index score (0-1); unscored models are excluded.
321
+ */
322
+ maxMultilingualIndex?: number | null | undefined;
323
+ /**
324
+ * Minimum Artificial Analysis Decision Index score (0-100); unscored models are excluded.
325
+ */
326
+ minDecisionIndex?: number | null | undefined;
327
+ /**
328
+ * Maximum Artificial Analysis Decision Index score (0-100); unscored models are excluded.
329
+ */
330
+ maxDecisionIndex?: number | null | undefined;
233
331
  /**
234
332
  * Minimum tool-calling success rate, as a fraction in [0, 1] (e.g. 0.9 = 90% of requests finishing with a tool_calls finish reason).
235
333
  */
@@ -285,6 +383,26 @@ export type GetModelsRequest$Outbound = {
285
383
  max_coding_index?: number | null | undefined;
286
384
  min_agentic_index?: number | null | undefined;
287
385
  max_agentic_index?: number | null | undefined;
386
+ min_finance_and_accounting_index?: number | null | undefined;
387
+ max_finance_and_accounting_index?: number | null | undefined;
388
+ min_strategy_and_ops_index?: number | null | undefined;
389
+ max_strategy_and_ops_index?: number | null | undefined;
390
+ min_legal_index?: number | null | undefined;
391
+ max_legal_index?: number | null | undefined;
392
+ min_healthcare_and_medical_index?: number | null | undefined;
393
+ max_healthcare_and_medical_index?: number | null | undefined;
394
+ min_engineering_index?: number | null | undefined;
395
+ max_engineering_index?: number | null | undefined;
396
+ min_economics_index?: number | null | undefined;
397
+ max_economics_index?: number | null | undefined;
398
+ min_cyber_index?: number | null | undefined;
399
+ max_cyber_index?: number | null | undefined;
400
+ min_openness_index?: number | null | undefined;
401
+ max_openness_index?: number | null | undefined;
402
+ min_multilingual_index?: number | null | undefined;
403
+ max_multilingual_index?: number | null | undefined;
404
+ min_decision_index?: number | null | undefined;
405
+ max_decision_index?: number | null | undefined;
288
406
  min_tool_success_rate?: number | null | undefined;
289
407
  max_tool_success_rate?: number | null | undefined;
290
408
  };
@@ -24,7 +24,7 @@ export const GetModelsCategory = {
24
24
  Academia: "academia",
25
25
  };
26
26
  /**
27
- * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
27
+ * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), <index>-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.
28
28
  */
29
29
  export const GetModelsSort = {
30
30
  MostPopular: "most-popular",
@@ -38,6 +38,16 @@ export const GetModelsSort = {
38
38
  IntelligenceHighToLow: "intelligence-high-to-low",
39
39
  CodingHighToLow: "coding-high-to-low",
40
40
  AgenticHighToLow: "agentic-high-to-low",
41
+ FinanceAndAccountingHighToLow: "finance-and-accounting-high-to-low",
42
+ StrategyAndOpsHighToLow: "strategy-and-ops-high-to-low",
43
+ LegalHighToLow: "legal-high-to-low",
44
+ HealthcareAndMedicalHighToLow: "healthcare-and-medical-high-to-low",
45
+ EngineeringHighToLow: "engineering-high-to-low",
46
+ EconomicsHighToLow: "economics-high-to-low",
47
+ CyberHighToLow: "cyber-high-to-low",
48
+ OpennessHighToLow: "openness-high-to-low",
49
+ MultilingualHighToLow: "multilingual-high-to-low",
50
+ DecisionHighToLow: "decision-high-to-low",
41
51
  DesignArenaEloHighToLow: "design-arena-elo-high-to-low",
42
52
  };
43
53
  /**
@@ -104,6 +114,26 @@ export const GetModelsRequest$outboundSchema = z.object({
104
114
  maxCodingIndex: z.nullable(z.number()).optional(),
105
115
  minAgenticIndex: z.nullable(z.number()).optional(),
106
116
  maxAgenticIndex: z.nullable(z.number()).optional(),
117
+ minFinanceAndAccountingIndex: z.nullable(z.number()).optional(),
118
+ maxFinanceAndAccountingIndex: z.nullable(z.number()).optional(),
119
+ minStrategyAndOpsIndex: z.nullable(z.number()).optional(),
120
+ maxStrategyAndOpsIndex: z.nullable(z.number()).optional(),
121
+ minLegalIndex: z.nullable(z.number()).optional(),
122
+ maxLegalIndex: z.nullable(z.number()).optional(),
123
+ minHealthcareAndMedicalIndex: z.nullable(z.number()).optional(),
124
+ maxHealthcareAndMedicalIndex: z.nullable(z.number()).optional(),
125
+ minEngineeringIndex: z.nullable(z.number()).optional(),
126
+ maxEngineeringIndex: z.nullable(z.number()).optional(),
127
+ minEconomicsIndex: z.nullable(z.number()).optional(),
128
+ maxEconomicsIndex: z.nullable(z.number()).optional(),
129
+ minCyberIndex: z.nullable(z.number()).optional(),
130
+ maxCyberIndex: z.nullable(z.number()).optional(),
131
+ minOpennessIndex: z.nullable(z.number()).optional(),
132
+ maxOpennessIndex: z.nullable(z.number()).optional(),
133
+ minMultilingualIndex: z.nullable(z.number()).optional(),
134
+ maxMultilingualIndex: z.nullable(z.number()).optional(),
135
+ minDecisionIndex: z.nullable(z.number()).optional(),
136
+ maxDecisionIndex: z.nullable(z.number()).optional(),
107
137
  minToolSuccessRate: z.nullable(z.number()).optional(),
108
138
  maxToolSuccessRate: z.nullable(z.number()).optional(),
109
139
  }).transform((v) => {
@@ -125,6 +155,26 @@ export const GetModelsRequest$outboundSchema = z.object({
125
155
  maxCodingIndex: "max_coding_index",
126
156
  minAgenticIndex: "min_agentic_index",
127
157
  maxAgenticIndex: "max_agentic_index",
158
+ minFinanceAndAccountingIndex: "min_finance_and_accounting_index",
159
+ maxFinanceAndAccountingIndex: "max_finance_and_accounting_index",
160
+ minStrategyAndOpsIndex: "min_strategy_and_ops_index",
161
+ maxStrategyAndOpsIndex: "max_strategy_and_ops_index",
162
+ minLegalIndex: "min_legal_index",
163
+ maxLegalIndex: "max_legal_index",
164
+ minHealthcareAndMedicalIndex: "min_healthcare_and_medical_index",
165
+ maxHealthcareAndMedicalIndex: "max_healthcare_and_medical_index",
166
+ minEngineeringIndex: "min_engineering_index",
167
+ maxEngineeringIndex: "max_engineering_index",
168
+ minEconomicsIndex: "min_economics_index",
169
+ maxEconomicsIndex: "max_economics_index",
170
+ minCyberIndex: "min_cyber_index",
171
+ maxCyberIndex: "max_cyber_index",
172
+ minOpennessIndex: "min_openness_index",
173
+ maxOpennessIndex: "max_openness_index",
174
+ minMultilingualIndex: "min_multilingual_index",
175
+ maxMultilingualIndex: "max_multilingual_index",
176
+ minDecisionIndex: "min_decision_index",
177
+ maxDecisionIndex: "max_decision_index",
128
178
  minToolSuccessRate: "min_tool_success_rate",
129
179
  maxToolSuccessRate: "max_tool_success_rate",
130
180
  });
@@ -28,7 +28,7 @@ export type ListModelsUserSecurity = {
28
28
  bearer: string;
29
29
  };
30
30
  /**
31
- * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
31
+ * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), <index>-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.
32
32
  */
33
33
  export declare const ListModelsUserSort: {
34
34
  readonly MostPopular: "most-popular";
@@ -42,10 +42,20 @@ export declare const ListModelsUserSort: {
42
42
  readonly IntelligenceHighToLow: "intelligence-high-to-low";
43
43
  readonly CodingHighToLow: "coding-high-to-low";
44
44
  readonly AgenticHighToLow: "agentic-high-to-low";
45
+ readonly FinanceAndAccountingHighToLow: "finance-and-accounting-high-to-low";
46
+ readonly StrategyAndOpsHighToLow: "strategy-and-ops-high-to-low";
47
+ readonly LegalHighToLow: "legal-high-to-low";
48
+ readonly HealthcareAndMedicalHighToLow: "healthcare-and-medical-high-to-low";
49
+ readonly EngineeringHighToLow: "engineering-high-to-low";
50
+ readonly EconomicsHighToLow: "economics-high-to-low";
51
+ readonly CyberHighToLow: "cyber-high-to-low";
52
+ readonly OpennessHighToLow: "openness-high-to-low";
53
+ readonly MultilingualHighToLow: "multilingual-high-to-low";
54
+ readonly DecisionHighToLow: "decision-high-to-low";
45
55
  readonly DesignArenaEloHighToLow: "design-arena-elo-high-to-low";
46
56
  };
47
57
  /**
48
- * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
58
+ * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), <index>-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.
49
59
  */
50
60
  export type ListModelsUserSort = OpenEnum<typeof ListModelsUserSort>;
51
61
  /**
@@ -93,7 +103,7 @@ export type ListModelsUserRequest = {
93
103
  */
94
104
  outputModalities?: string | undefined;
95
105
  /**
96
- * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
106
+ * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), <index>-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.
97
107
  */
98
108
  sort?: ListModelsUserSort | undefined;
99
109
  /**
@@ -7,7 +7,7 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import * as openEnums from "../../types/enums.js";
8
8
  import { ModelsListResponse$inboundSchema as models_ModelsListResponse$inboundSchema } from "../modelslistresponse.js";
9
9
  /**
10
- * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
10
+ * Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), <index>-high-to-low for each Artificial Analysis index (the coding and agentic sorts are deprecated: Artificial Analysis has retired those indexes), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. The decision sort ranks decision models, so pass output_modalities=decisions or all with it. When omitted, the existing default ordering is preserved.
11
11
  */
12
12
  export const ListModelsUserSort = {
13
13
  MostPopular: "most-popular",
@@ -21,6 +21,16 @@ export const ListModelsUserSort = {
21
21
  IntelligenceHighToLow: "intelligence-high-to-low",
22
22
  CodingHighToLow: "coding-high-to-low",
23
23
  AgenticHighToLow: "agentic-high-to-low",
24
+ FinanceAndAccountingHighToLow: "finance-and-accounting-high-to-low",
25
+ StrategyAndOpsHighToLow: "strategy-and-ops-high-to-low",
26
+ LegalHighToLow: "legal-high-to-low",
27
+ HealthcareAndMedicalHighToLow: "healthcare-and-medical-high-to-low",
28
+ EngineeringHighToLow: "engineering-high-to-low",
29
+ EconomicsHighToLow: "economics-high-to-low",
30
+ CyberHighToLow: "cyber-high-to-low",
31
+ OpennessHighToLow: "openness-high-to-low",
32
+ MultilingualHighToLow: "multilingual-high-to-low",
33
+ DecisionHighToLow: "decision-high-to-low",
24
34
  DesignArenaEloHighToLow: "design-arena-elo-high-to-low",
25
35
  };
26
36
  /**
@@ -22,7 +22,7 @@ export type ParetoRouterPlugin = {
22
22
  */
23
23
  maxPrice?: number | undefined;
24
24
  /**
25
- * Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). Not used when max_price is set (price-based selection takes over).
25
+ * Selects one of three tiers of coding models with a number between 0 and 1. It is not a threshold on a model score: the tiers are groups of the current shortlist of top coding models. >= 0.66 → high (the strongest group), >= 0.33 → medium (the two strongest groups), < 0.33 → low (the whole shortlist). Omit to use the high tier. Not used when max_price is set (price-based selection takes over).
26
26
  */
27
27
  minCodingScore?: number | undefined;
28
28
  /**
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * One input item the upstream provider changed before inference, e.g. a replayed reasoning item removed because the conversation before it was edited.
6
+ */
7
+ export type ResponsesInputTransformation = {
8
+ action: string;
9
+ id: string;
10
+ reason: string;
11
+ type: string;
12
+ };
13
+ /** @internal */
14
+ export declare const ResponsesInputTransformation$inboundSchema: z.ZodType<ResponsesInputTransformation, unknown>;
15
+ export declare function responsesInputTransformationFromJSON(jsonString: string): SafeParseResult<ResponsesInputTransformation, SDKValidationError>;
16
+ //# sourceMappingURL=responsesinputtransformation.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ /** @internal */
7
+ export const ResponsesInputTransformation$inboundSchema = z.object({
8
+ action: z.string(),
9
+ id: z.string(),
10
+ reason: z.string(),
11
+ type: z.string(),
12
+ });
13
+ export function responsesInputTransformationFromJSON(jsonString) {
14
+ return safeParse(jsonString, (x) => ResponsesInputTransformation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesInputTransformation' from JSON`);
15
+ }
16
+ //# sourceMappingURL=responsesinputtransformation.js.map
@@ -13,27 +13,70 @@ export declare const UnifiedBenchmarksAAItemSource: {
13
13
  * Benchmark source discriminator.
14
14
  */
15
15
  export type UnifiedBenchmarksAAItemSource = ClosedEnum<typeof UnifiedBenchmarksAAItemSource>;
16
+ /**
17
+ * One model's Artificial Analysis index scores. Each score is the model's best on that index across the configurations Artificial Analysis evaluated (for example reasoning levels), so two indexes of one model can come from different configurations. The deprecated Coding and Agentic Index scores are the exception: both come from one configuration, the model's strongest by Intelligence Index, then Coding Index, then Agentic Index. With `task_type` set to `intelligence`, `coding` or `agentic`, those three indexes all come from the configuration that scores best on the one named.
18
+ */
16
19
  export type UnifiedBenchmarksAAItem = {
17
20
  /**
18
- * Artificial Analysis Agentic Index composite score. Higher is better.
21
+ * Deprecated: Artificial Analysis has retired its Agentic Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.
22
+ *
23
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
19
24
  */
20
25
  agenticIndex: number | null;
21
26
  /**
22
- * Artificial Analysis Coding Index composite score. Higher is better.
27
+ * Deprecated: Artificial Analysis has retired its Coding Index and no longer publishes it. Holds the last score Artificial Analysis published for the model, on a 0-100 scale, or null; it will be null for every model once those stored scores are removed.
28
+ *
29
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
23
30
  */
24
31
  codingIndex: number | null;
32
+ /**
33
+ * Artificial Analysis Cyber Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.
34
+ */
35
+ cyberIndex: number | null;
36
+ /**
37
+ * Artificial Analysis Decision Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Published for decision models and for the language models Artificial Analysis evaluates on decision tasks. Null when Artificial Analysis has not published a score for the model.
38
+ */
39
+ decisionIndex: number | null;
25
40
  /**
26
41
  * Model name as listed on Artificial Analysis.
27
42
  */
28
43
  displayName: string;
29
44
  /**
30
- * Artificial Analysis Intelligence Index composite score. Higher is better.
45
+ * Artificial Analysis Economics Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
46
+ */
47
+ economicsIndex: number | null;
48
+ /**
49
+ * Artificial Analysis Engineering Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
50
+ */
51
+ engineeringIndex: number | null;
52
+ /**
53
+ * Artificial Analysis Finance & Accounting Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
54
+ */
55
+ financeAndAccountingIndex: number | null;
56
+ /**
57
+ * Artificial Analysis Healthcare & Medical Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
58
+ */
59
+ healthcareAndMedicalIndex: number | null;
60
+ /**
61
+ * Artificial Analysis Intelligence Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.
31
62
  */
32
63
  intelligenceIndex: number | null;
64
+ /**
65
+ * Artificial Analysis Legal Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
66
+ */
67
+ legalIndex: number | null;
33
68
  /**
34
69
  * Stable OpenRouter model identifier.
35
70
  */
36
71
  modelPermaslug: string;
72
+ /**
73
+ * Artificial Analysis Multilingual Index score, as a fraction from 0 to 1: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.
74
+ */
75
+ multilingualIndex: number | null;
76
+ /**
77
+ * Artificial Analysis Openness Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. Null when Artificial Analysis has not published a score for the model.
78
+ */
79
+ opennessIndex: number | null;
37
80
  /**
38
81
  * OpenRouter pricing per token for this model. Null if pricing is unavailable.
39
82
  */
@@ -42,6 +85,10 @@ export type UnifiedBenchmarksAAItem = {
42
85
  * Benchmark source discriminator.
43
86
  */
44
87
  source: UnifiedBenchmarksAAItemSource;
88
+ /**
89
+ * Artificial Analysis Strategy & Ops Index score, on a 0-100 scale: the model's best across the configurations Artificial Analysis evaluated. Higher is better. One of the six Artificial Analysis Capability Indexes. Null when Artificial Analysis has not published a score for the model.
90
+ */
91
+ strategyAndOpsIndex: number | null;
45
92
  };
46
93
  /** @internal */
47
94
  export declare const UnifiedBenchmarksAAItemSource$inboundSchema: z.ZodEnum<typeof UnifiedBenchmarksAAItemSource>;
@@ -17,18 +17,38 @@ export const UnifiedBenchmarksAAItemSource$inboundSchema = z.enum(UnifiedBenchma
17
17
  export const UnifiedBenchmarksAAItem$inboundSchema = z.object({
18
18
  agentic_index: z.nullable(z.number()),
19
19
  coding_index: z.nullable(z.number()),
20
+ cyber_index: z.nullable(z.number()),
21
+ decision_index: z.nullable(z.number()),
20
22
  display_name: z.string(),
23
+ economics_index: z.nullable(z.number()),
24
+ engineering_index: z.nullable(z.number()),
25
+ finance_and_accounting_index: z.nullable(z.number()),
26
+ healthcare_and_medical_index: z.nullable(z.number()),
21
27
  intelligence_index: z.nullable(z.number()),
28
+ legal_index: z.nullable(z.number()),
22
29
  model_permaslug: z.string(),
30
+ multilingual_index: z.nullable(z.number()),
31
+ openness_index: z.nullable(z.number()),
23
32
  pricing: z.nullable(UnifiedBenchmarkPricing$inboundSchema),
24
33
  source: UnifiedBenchmarksAAItemSource$inboundSchema,
34
+ strategy_and_ops_index: z.nullable(z.number()),
25
35
  }).transform((v) => {
26
36
  return remap$(v, {
27
37
  "agentic_index": "agenticIndex",
28
38
  "coding_index": "codingIndex",
39
+ "cyber_index": "cyberIndex",
40
+ "decision_index": "decisionIndex",
29
41
  "display_name": "displayName",
42
+ "economics_index": "economicsIndex",
43
+ "engineering_index": "engineeringIndex",
44
+ "finance_and_accounting_index": "financeAndAccountingIndex",
45
+ "healthcare_and_medical_index": "healthcareAndMedicalIndex",
30
46
  "intelligence_index": "intelligenceIndex",
47
+ "legal_index": "legalIndex",
31
48
  "model_permaslug": "modelPermaslug",
49
+ "multilingual_index": "multilingualIndex",
50
+ "openness_index": "opennessIndex",
51
+ "strategy_and_ops_index": "strategyAndOpsIndex",
32
52
  });
33
53
  });
34
54
  export function unifiedBenchmarksAAItemFromJSON(jsonString) {
@@ -3,7 +3,7 @@ import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
5
  /**
6
- * The source filter applied, or null when all sources are returned.
6
+ * The one source the response is limited to: the `source` filter, or Artificial Analysis for a `task_type` only it answers. Null when the response draws on every source.
7
7
  */
8
8
  export declare const UnifiedBenchmarksMetaSource: {
9
9
  readonly ArtificialAnalysis: "artificial-analysis";
@@ -11,7 +11,7 @@ export declare const UnifiedBenchmarksMetaSource: {
11
11
  readonly Openrouter: "openrouter";
12
12
  };
13
13
  /**
14
- * The source filter applied, or null when all sources are returned.
14
+ * The one source the response is limited to: the `source` filter, or Artificial Analysis for a `task_type` only it answers. Null when the response draws on every source.
15
15
  */
16
16
  export type UnifiedBenchmarksMetaSource = OpenEnum<typeof UnifiedBenchmarksMetaSource>;
17
17
  /**
@@ -30,7 +30,7 @@ export type UnifiedBenchmarksMeta = {
30
30
  */
31
31
  asOf: string;
32
32
  /**
33
- * Required attribution when republishing this data, or null when results span multiple sources (attribute each item individually by its `source` discriminator).
33
+ * Required attribution when republishing this data. Always set when `source` is set. When `source` is null, set if every returned item comes from one source, and null if the items span sources (attribute each item by its `source` discriminator) or there are none.
34
34
  */
35
35
  citation: string | null;
36
36
  /**
@@ -38,11 +38,11 @@ export type UnifiedBenchmarksMeta = {
38
38
  */
39
39
  modelCount: number;
40
40
  /**
41
- * The source filter applied, or null when all sources are returned.
41
+ * The one source the response is limited to: the `source` filter, or Artificial Analysis for a `task_type` only it answers. Null when the response draws on every source.
42
42
  */
43
43
  source: UnifiedBenchmarksMetaSource | null;
44
44
  /**
45
- * URL of the upstream data source, or null when results span multiple sources.
45
+ * URL of the upstream data source. Always set when `source` is set. When `source` is null, set if every returned item comes from one source, and null if the items span sources or there are none.
46
46
  */
47
47
  sourceUrl: string | null;
48
48
  /**
@@ -6,7 +6,7 @@ import { remap as remap$ } from "../lib/primitives.js";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  import * as openEnums from "../types/enums.js";
8
8
  /**
9
- * The source filter applied, or null when all sources are returned.
9
+ * The one source the response is limited to: the `source` filter, or Artificial Analysis for a `task_type` only it answers. Null when the response draws on every source.
10
10
  */
11
11
  export const UnifiedBenchmarksMetaSource = {
12
12
  ArtificialAnalysis: "artificial-analysis",
@@ -6,9 +6,9 @@ import { UnifiedBenchmarksDAItem } from "./unifiedbenchmarksdaitem.js";
6
6
  import { UnifiedBenchmarksMeta } from "./unifiedbenchmarksmeta.js";
7
7
  import { UnifiedBenchmarksORItem } from "./unifiedbenchmarksoritem.js";
8
8
  import { UnifiedBenchmarksSearchItem } from "./unifiedbenchmarkssearchitem.js";
9
- export type UnifiedBenchmarksResponseData = UnifiedBenchmarksSearchItem | UnifiedBenchmarksDAItem | UnifiedBenchmarksORItem | UnifiedBenchmarksAAItem;
9
+ export type UnifiedBenchmarksResponseData = UnifiedBenchmarksAAItem | UnifiedBenchmarksSearchItem | UnifiedBenchmarksDAItem | UnifiedBenchmarksORItem;
10
10
  export type UnifiedBenchmarksResponse = {
11
- data: Array<UnifiedBenchmarksSearchItem | UnifiedBenchmarksDAItem | UnifiedBenchmarksORItem | UnifiedBenchmarksAAItem>;
11
+ data: Array<UnifiedBenchmarksAAItem | UnifiedBenchmarksSearchItem | UnifiedBenchmarksDAItem | UnifiedBenchmarksORItem>;
12
12
  meta: UnifiedBenchmarksMeta;
13
13
  };
14
14
  /** @internal */
@@ -10,10 +10,10 @@ import { UnifiedBenchmarksORItem$inboundSchema, } from "./unifiedbenchmarksorite
10
10
  import { UnifiedBenchmarksSearchItem$inboundSchema, } from "./unifiedbenchmarkssearchitem.js";
11
11
  /** @internal */
12
12
  export const UnifiedBenchmarksResponseData$inboundSchema = z.union([
13
+ UnifiedBenchmarksAAItem$inboundSchema,
13
14
  UnifiedBenchmarksSearchItem$inboundSchema,
14
15
  UnifiedBenchmarksDAItem$inboundSchema,
15
16
  UnifiedBenchmarksORItem$inboundSchema,
16
- UnifiedBenchmarksAAItem$inboundSchema,
17
17
  ]);
18
18
  export function unifiedBenchmarksResponseDataFromJSON(jsonString) {
19
19
  return safeParse(jsonString, (x) => UnifiedBenchmarksResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksResponseData' from JSON`);
@@ -21,10 +21,10 @@ export function unifiedBenchmarksResponseDataFromJSON(jsonString) {
21
21
  /** @internal */
22
22
  export const UnifiedBenchmarksResponse$inboundSchema = z.object({
23
23
  data: z.array(z.union([
24
+ UnifiedBenchmarksAAItem$inboundSchema,
24
25
  UnifiedBenchmarksSearchItem$inboundSchema,
25
26
  UnifiedBenchmarksDAItem$inboundSchema,
26
27
  UnifiedBenchmarksORItem$inboundSchema,
27
- UnifiedBenchmarksAAItem$inboundSchema,
28
28
  ])),
29
29
  meta: UnifiedBenchmarksMeta$inboundSchema,
30
30
  });
@@ -6,7 +6,7 @@ export declare class Benchmarks extends ClientSDK {
6
6
  * List Benchmarks
7
7
  *
8
8
  * @remarks
9
- * Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
9
+ * Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Artificial Analysis items carry one score per Artificial Analysis index (Intelligence Index, Finance & Accounting Index, Strategy & Ops Index, Legal Index, Healthcare & Medical Index, Engineering Index, Economics Index, Cyber Index, Openness Index, Multilingual Index, Decision Index); attribute Artificial Analysis when you republish them. A response whose items all come from one source carries that source's citation in meta; in a mixed response, attribute each item by its source. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
10
10
  */
11
11
  getBenchmarks(request?: operations.GetBenchmarksRequest | undefined, options?: RequestOptions): Promise<models.UnifiedBenchmarksResponse>;
12
12
  }
@@ -9,7 +9,7 @@ export class Benchmarks extends ClientSDK {
9
9
  * List Benchmarks
10
10
  *
11
11
  * @remarks
12
- * Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
12
+ * Unified benchmark endpoint that aggregates scores from multiple benchmark sources (Artificial Analysis, Design Arena, and OpenRouter's own tau-bench, GPQA, and web-search evals). Filter by source to reproduce the exact shapes from the legacy per-source endpoints, or use task_type to find models suited for specific workloads. Artificial Analysis items carry one score per Artificial Analysis index (Intelligence Index, Finance & Accounting Index, Strategy & Ops Index, Legal Index, Healthcare & Medical Index, Engineering Index, Economics Index, Cyber Index, Openness Index, Multilingual Index, Decision Index); attribute Artificial Analysis when you republish them. A response whose items all come from one source carries that source's citation in meta; in a mixed response, attribute each item by its source. Use task_type=search (or a search_* benchmark_type) for OpenRouter's search benchmarks, which publish each model's highest-scoring eligible evaluation configuration with same-configuration runs combined by task-weighted mean. Authenticate with any valid OpenRouter API key. Rate-limited to 30 requests/minute per key and 500 requests/day per account.
13
13
  */
14
14
  async getBenchmarks(request, options) {
15
15
  return unwrapAsync(benchmarksGetBenchmarks(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.109",
5
+ "version": "1.5.111",
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.5.109",
3
+ "version": "1.5.111",
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": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "typecheck": "tsc --noEmit",
77
- "typecheck:transit": "exit 0",
78
- "prepare": "npm run build",
76
+ "test:e2e": "vitest --run --project e2e",
79
77
  "test:transit": "exit 0",
80
78
  "test:watch": "vitest --watch --project unit",
79
+ "test": "vitest --run --project unit",
80
+ "typecheck": "tsc --noEmit",
81
+ "typecheck:transit": "exit 0",
81
82
  "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
82
83
  "postinstall": "node scripts/check-types.js || true",
83
- "test": "vitest --run --project unit",
84
- "test:e2e": "vitest --run --project e2e"
84
+ "prepare": "npm run build"
85
85
  },
86
86
  "peerDependencies": {
87
87