@openrouter/sdk 0.13.7 → 0.13.14

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.
Files changed (216) hide show
  1. package/README.md +3 -9
  2. package/esm/funcs/benchmarksGetBenchmarks.d.ts +19 -0
  3. package/esm/funcs/{datasetsGetBenchmarksDesignArena.js → benchmarksGetBenchmarks.js} +11 -10
  4. package/esm/funcs/classificationsGetTaskClassifications.d.ts +37 -0
  5. package/esm/funcs/classificationsGetTaskClassifications.js +119 -0
  6. package/esm/funcs/imagesGenerate.d.ts +30 -0
  7. package/esm/funcs/imagesGenerate.js +95 -0
  8. package/esm/funcs/imagesListModelEndpoints.d.ts +19 -0
  9. package/esm/funcs/imagesListModelEndpoints.js +107 -0
  10. package/esm/funcs/{datasetsGetBenchmarksDesignArena.d.ts → imagesListModels.d.ts} +4 -4
  11. package/esm/funcs/{datasetsGetBenchmarksArtificialAnalysis.js → imagesListModels.js} +10 -15
  12. package/esm/funcs/workspacesDeleteBudget.d.ts +19 -0
  13. package/esm/funcs/workspacesDeleteBudget.js +107 -0
  14. package/esm/funcs/workspacesListBudgets.d.ts +19 -0
  15. package/esm/funcs/workspacesListBudgets.js +103 -0
  16. package/esm/funcs/workspacesSetBudget.d.ts +19 -0
  17. package/esm/funcs/workspacesSetBudget.js +110 -0
  18. package/esm/lib/config.d.ts +2 -2
  19. package/esm/lib/config.js +2 -2
  20. package/esm/models/advisorreasoning.d.ts +1 -0
  21. package/esm/models/advisorreasoning.js +1 -0
  22. package/esm/models/anthropicadvisormessageusageiteration.d.ts +24 -0
  23. package/esm/models/anthropicadvisormessageusageiteration.js +36 -0
  24. package/esm/models/anthropiccompactionusageiteration.d.ts +23 -0
  25. package/esm/models/anthropiccompactionusageiteration.js +35 -0
  26. package/esm/models/anthropicdocumentblockparam.d.ts +5 -4
  27. package/esm/models/anthropicdocumentblockparam.js +3 -0
  28. package/esm/models/anthropicfiledocumentsource.d.ts +14 -0
  29. package/esm/models/anthropicfiledocumentsource.js +19 -0
  30. package/esm/models/anthropiciterationcachecreation.d.ts +11 -0
  31. package/esm/models/anthropiciterationcachecreation.js +21 -0
  32. package/esm/models/anthropicmessageusageiteration.d.ts +24 -0
  33. package/esm/models/anthropicmessageusageiteration.js +36 -0
  34. package/esm/models/anthropicspeed.d.ts +10 -0
  35. package/esm/models/anthropicspeed.js +12 -0
  36. package/esm/models/anthropicunknownusageiteration.d.ts +16 -0
  37. package/esm/models/anthropicunknownusageiteration.js +30 -0
  38. package/esm/models/anthropicusageiteration.d.ts +12 -0
  39. package/esm/models/anthropicusageiteration.js +21 -0
  40. package/esm/models/apierrortype.d.ts +41 -0
  41. package/esm/models/apierrortype.js +40 -0
  42. package/esm/models/booleancapability.d.ts +13 -0
  43. package/esm/models/booleancapability.js +14 -0
  44. package/esm/models/byokproviderslug.d.ts +4 -0
  45. package/esm/models/byokproviderslug.js +4 -0
  46. package/esm/models/capabilitydescriptor.d.ts +15 -0
  47. package/esm/models/capabilitydescriptor.js +19 -0
  48. package/esm/models/chatrequest.d.ts +2 -0
  49. package/esm/models/chatrequest.js +2 -0
  50. package/esm/models/chatstreamchunk.d.ts +25 -4
  51. package/esm/models/chatstreamchunk.js +19 -4
  52. package/esm/models/chatusage.d.ts +32 -8
  53. package/esm/models/chatusage.js +25 -8
  54. package/esm/models/chatwebsearchshorthand.d.ts +1 -1
  55. package/esm/models/contentpartimage.d.ts +9 -2
  56. package/esm/models/contentpartimage.js +6 -1
  57. package/esm/models/debugevent.d.ts +42 -0
  58. package/esm/models/debugevent.js +58 -0
  59. package/esm/models/deleteworkspacebudgetresponse.d.ts +13 -0
  60. package/esm/models/deleteworkspacebudgetresponse.js +14 -0
  61. package/esm/models/enumcapability.d.ts +14 -0
  62. package/esm/models/enumcapability.js +15 -0
  63. package/esm/models/fusionplugin.d.ts +1 -0
  64. package/esm/models/fusionplugin.js +1 -0
  65. package/esm/models/fusionservertoolconfig.d.ts +8 -1
  66. package/esm/models/fusionservertoolconfig.js +4 -0
  67. package/esm/models/imageendpoint.d.ts +41 -0
  68. package/esm/models/imageendpoint.js +33 -0
  69. package/esm/models/imagegencompletedevent.d.ts +29 -0
  70. package/esm/models/imagegencompletedevent.js +23 -0
  71. package/esm/models/imagegenerationrequest.d.ts +914 -0
  72. package/esm/models/imagegenerationrequest.js +267 -0
  73. package/esm/models/imagegenerationresponse.d.ts +34 -0
  74. package/esm/models/imagegenerationresponse.js +29 -0
  75. package/esm/models/imagegenerationservertool.d.ts +15 -15
  76. package/esm/models/imagegenerationservertool.js +15 -17
  77. package/esm/models/imagegenerationusage.d.ts +119 -0
  78. package/esm/models/imagegenerationusage.js +93 -0
  79. package/esm/models/imagegenpartialimageevent.d.ts +24 -0
  80. package/esm/models/imagegenpartialimageevent.js +22 -0
  81. package/esm/models/imagegenstreamerrorevent.d.ts +44 -0
  82. package/esm/models/imagegenstreamerrorevent.js +25 -0
  83. package/esm/models/imagemodelarchitecture.d.ts +19 -0
  84. package/esm/models/imagemodelarchitecture.js +23 -0
  85. package/esm/models/imagemodelendpointsresponse.d.ts +18 -0
  86. package/esm/models/imagemodelendpointsresponse.js +16 -0
  87. package/esm/models/imagemodellistitem.d.ts +42 -0
  88. package/esm/models/imagemodellistitem.js +29 -0
  89. package/esm/models/imagemodelslistresponse.d.ts +14 -0
  90. package/esm/models/imagemodelslistresponse.js +15 -0
  91. package/esm/models/imageoutputmodality.d.ts +16 -0
  92. package/esm/models/imageoutputmodality.js +18 -0
  93. package/esm/models/imagepricingentry.d.ts +35 -0
  94. package/esm/models/imagepricingentry.js +41 -0
  95. package/esm/models/imagestreamingresponse.d.ts +18 -0
  96. package/esm/models/imagestreamingresponse.js +43 -0
  97. package/esm/models/index.d.ts +44 -7
  98. package/esm/models/index.js +44 -7
  99. package/esm/models/inputreference.d.ts +6 -2
  100. package/esm/models/inputreference.js +1 -1
  101. package/esm/models/legacywebsearchservertool.d.ts +1 -1
  102. package/esm/models/listworkspacebudgetsresponse.d.ts +14 -0
  103. package/esm/models/listworkspacebudgetsresponse.js +15 -0
  104. package/esm/models/messagesrequest.d.ts +6 -6
  105. package/esm/models/messagesrequest.js +4 -5
  106. package/esm/models/model.d.ts +5 -0
  107. package/esm/models/model.js +2 -0
  108. package/esm/models/modelreasoning.d.ts +49 -0
  109. package/esm/models/modelreasoning.js +42 -0
  110. package/esm/models/observabilityarizedestination.d.ts +3 -0
  111. package/esm/models/openresponsesresult.d.ts +5 -0
  112. package/esm/models/openresponsesresult.js +3 -0
  113. package/esm/models/operations/createembeddings.d.ts +19 -0
  114. package/esm/models/operations/createembeddings.js +20 -0
  115. package/esm/models/operations/createimages.d.ts +63 -0
  116. package/esm/models/operations/createimages.js +44 -0
  117. package/esm/models/operations/{getbenchmarksartificialanalysis.d.ts → deleteworkspacebudget.d.ts} +15 -9
  118. package/esm/models/operations/deleteworkspacebudget.js +23 -0
  119. package/esm/models/operations/getbenchmarks.d.ts +120 -0
  120. package/esm/models/operations/getbenchmarks.js +60 -0
  121. package/esm/models/operations/getmodels.d.ts +5 -3
  122. package/esm/models/operations/getmodels.js +3 -1
  123. package/esm/models/operations/{getbenchmarksdesignarena.d.ts → gettaskclassifications.d.ts} +16 -28
  124. package/esm/models/operations/gettaskclassifications.js +29 -0
  125. package/esm/models/operations/index.d.ts +8 -2
  126. package/esm/models/operations/index.js +8 -2
  127. package/esm/models/operations/listbyokkeys.d.ts +4 -0
  128. package/esm/models/operations/listbyokkeys.js +4 -0
  129. package/esm/models/operations/listimagemodelendpoints.d.ts +63 -0
  130. package/esm/models/operations/listimagemodelendpoints.js +22 -0
  131. package/esm/models/operations/listimagemodels.d.ts +53 -0
  132. package/esm/models/operations/listimagemodels.js +20 -0
  133. package/esm/models/operations/listworkspacebudgets.d.ts +58 -0
  134. package/esm/models/operations/listworkspacebudgets.js +21 -0
  135. package/esm/models/operations/queryanalytics.d.ts +7 -3
  136. package/esm/models/operations/queryanalytics.js +1 -0
  137. package/esm/models/operations/upsertworkspacebudget.d.ts +66 -0
  138. package/esm/models/operations/upsertworkspacebudget.js +25 -0
  139. package/esm/models/preview20250311websearchservertool.d.ts +1 -1
  140. package/esm/models/previewwebsearchservertool.d.ts +1 -1
  141. package/esm/models/providername.d.ts +4 -0
  142. package/esm/models/providername.js +4 -0
  143. package/esm/models/provideroptions.d.ts +25 -1
  144. package/esm/models/provideroptions.js +6 -0
  145. package/esm/models/providerresponse.d.ts +4 -0
  146. package/esm/models/providerresponse.js +4 -0
  147. package/esm/models/rangecapability.d.ts +15 -0
  148. package/esm/models/rangecapability.js +16 -0
  149. package/esm/models/reasoningeffort.d.ts +1 -0
  150. package/esm/models/reasoningeffort.js +1 -0
  151. package/esm/models/responsesrequest.d.ts +6 -0
  152. package/esm/models/responsesrequest.js +2 -0
  153. package/esm/models/speechrequest.d.ts +1 -1
  154. package/esm/models/streamevents.d.ts +2 -1
  155. package/esm/models/streamevents.js +2 -0
  156. package/esm/models/sttrequest.d.ts +1 -1
  157. package/esm/models/subagentreasoning.d.ts +1 -0
  158. package/esm/models/subagentreasoning.js +1 -0
  159. package/esm/models/taskclassificationitem.d.ts +42 -0
  160. package/esm/models/taskclassificationitem.js +32 -0
  161. package/esm/models/taskclassificationmacrocategory.d.ts +25 -0
  162. package/esm/models/taskclassificationmacrocategory.js +23 -0
  163. package/esm/models/taskclassificationmodel.d.ts +21 -0
  164. package/esm/models/taskclassificationmodel.js +22 -0
  165. package/esm/models/taskclassificationresponse.d.ts +33 -0
  166. package/esm/models/taskclassificationresponse.js +33 -0
  167. package/esm/models/{benchmarkpricing.d.ts → unifiedbenchmarkpricing.d.ts} +4 -4
  168. package/esm/models/unifiedbenchmarkpricing.js +15 -0
  169. package/esm/models/{benchmarksaaitem.d.ts → unifiedbenchmarksaaitem.d.ts} +14 -10
  170. package/esm/models/unifiedbenchmarksaaitem.js +30 -0
  171. package/esm/models/{benchmarksdaitem.d.ts → unifiedbenchmarksdaitem.d.ts} +11 -7
  172. package/esm/models/{benchmarksdaitem.js → unifiedbenchmarksdaitem.js} +8 -7
  173. package/esm/models/unifiedbenchmarksmeta.d.ts +63 -0
  174. package/esm/models/unifiedbenchmarksmeta.js +46 -0
  175. package/esm/models/unifiedbenchmarksresponse.d.ts +19 -0
  176. package/esm/models/unifiedbenchmarksresponse.js +30 -0
  177. package/esm/models/upsertworkspacebudgetrequest.d.ts +15 -0
  178. package/esm/models/upsertworkspacebudgetrequest.js +18 -0
  179. package/esm/models/upsertworkspacebudgetresponse.d.ts +11 -0
  180. package/esm/models/upsertworkspacebudgetresponse.js +15 -0
  181. package/esm/models/videogenerationrequest.d.ts +39 -15
  182. package/esm/models/videogenerationrequest.js +17 -11
  183. package/esm/models/websearchconfig.d.ts +1 -1
  184. package/esm/models/websearchservertool.d.ts +1 -1
  185. package/esm/models/websearchservertoolconfig.d.ts +1 -1
  186. package/esm/models/workspacebudget.d.ts +48 -0
  187. package/esm/models/workspacebudget.js +39 -0
  188. package/esm/models/workspacebudgetinterval.d.ts +18 -0
  189. package/esm/models/workspacebudgetinterval.js +17 -0
  190. package/esm/sdk/benchmarks.d.ts +13 -0
  191. package/esm/sdk/benchmarks.js +19 -0
  192. package/esm/sdk/classifications.d.ts +31 -0
  193. package/esm/sdk/classifications.js +37 -0
  194. package/esm/sdk/datasets.d.ts +0 -14
  195. package/esm/sdk/datasets.js +0 -20
  196. package/esm/sdk/images.d.ts +38 -0
  197. package/esm/sdk/images.js +33 -0
  198. package/esm/sdk/sdk.d.ts +9 -0
  199. package/esm/sdk/sdk.js +12 -0
  200. package/esm/sdk/workspaces.d.ts +21 -0
  201. package/esm/sdk/workspaces.js +30 -0
  202. package/jsr.json +1 -1
  203. package/package.json +7 -7
  204. package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.d.ts +0 -19
  205. package/esm/models/benchmarkpricing.js +0 -15
  206. package/esm/models/benchmarksaaitem.js +0 -29
  207. package/esm/models/benchmarksaameta.d.ts +0 -70
  208. package/esm/models/benchmarksaameta.js +0 -50
  209. package/esm/models/benchmarksaaresponse.d.ts +0 -13
  210. package/esm/models/benchmarksaaresponse.js +0 -17
  211. package/esm/models/benchmarksdameta.d.ts +0 -98
  212. package/esm/models/benchmarksdameta.js +0 -62
  213. package/esm/models/benchmarksdaresponse.d.ts +0 -13
  214. package/esm/models/benchmarksdaresponse.js +0 -17
  215. package/esm/models/operations/getbenchmarksartificialanalysis.js +0 -22
  216. package/esm/models/operations/getbenchmarksdesignarena.js +0 -36
@@ -1,12 +1,8 @@
1
1
  import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
- import { BenchmarkPricing } from "./benchmarkpricing.js";
4
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
- export type BenchmarksAAItem = {
6
- /**
7
- * Model name as listed on Artificial Analysis.
8
- */
9
- aaName: string;
4
+ import { UnifiedBenchmarkPricing } from "./unifiedbenchmarkpricing.js";
5
+ export type UnifiedBenchmarksAAItem = {
10
6
  /**
11
7
  * Artificial Analysis Agentic Index composite score. Higher is better.
12
8
  */
@@ -15,6 +11,10 @@ export type BenchmarksAAItem = {
15
11
  * Artificial Analysis Coding Index composite score. Higher is better.
16
12
  */
17
13
  codingIndex: number | null;
14
+ /**
15
+ * Model name as listed on Artificial Analysis.
16
+ */
17
+ displayName: string;
18
18
  /**
19
19
  * Artificial Analysis Intelligence Index composite score. Higher is better.
20
20
  */
@@ -26,9 +26,13 @@ export type BenchmarksAAItem = {
26
26
  /**
27
27
  * OpenRouter pricing per token for this model. Null if pricing is unavailable.
28
28
  */
29
- pricing: BenchmarkPricing | null;
29
+ pricing: UnifiedBenchmarkPricing | null;
30
+ /**
31
+ * Benchmark source discriminator.
32
+ */
33
+ source: "artificial-analysis";
30
34
  };
31
35
  /** @internal */
32
- export declare const BenchmarksAAItem$inboundSchema: z.ZodType<BenchmarksAAItem, unknown>;
33
- export declare function benchmarksAAItemFromJSON(jsonString: string): SafeParseResult<BenchmarksAAItem, SDKValidationError>;
34
- //# sourceMappingURL=benchmarksaaitem.d.ts.map
36
+ export declare const UnifiedBenchmarksAAItem$inboundSchema: z.ZodType<UnifiedBenchmarksAAItem, unknown>;
37
+ export declare function unifiedBenchmarksAAItemFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksAAItem, SDKValidationError>;
38
+ //# sourceMappingURL=unifiedbenchmarksaaitem.d.ts.map
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 436660899947
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { UnifiedBenchmarkPricing$inboundSchema, } from "./unifiedbenchmarkpricing.js";
9
+ /** @internal */
10
+ export const UnifiedBenchmarksAAItem$inboundSchema = z.object({
11
+ agentic_index: z.nullable(z.number()),
12
+ coding_index: z.nullable(z.number()),
13
+ display_name: z.string(),
14
+ intelligence_index: z.nullable(z.number()),
15
+ model_permaslug: z.string(),
16
+ pricing: z.nullable(UnifiedBenchmarkPricing$inboundSchema),
17
+ source: z.literal("artificial-analysis"),
18
+ }).transform((v) => {
19
+ return remap$(v, {
20
+ "agentic_index": "agenticIndex",
21
+ "coding_index": "codingIndex",
22
+ "display_name": "displayName",
23
+ "intelligence_index": "intelligenceIndex",
24
+ "model_permaslug": "modelPermaslug",
25
+ });
26
+ });
27
+ export function unifiedBenchmarksAAItemFromJSON(jsonString) {
28
+ return safeParse(jsonString, (x) => UnifiedBenchmarksAAItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksAAItem' from JSON`);
29
+ }
30
+ //# sourceMappingURL=unifiedbenchmarksaaitem.js.map
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
- import { BenchmarkPricing } from "./benchmarkpricing.js";
4
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { UnifiedBenchmarkPricing } from "./unifiedbenchmarkpricing.js";
5
5
  /**
6
6
  * Placement distribution from tournament matches.
7
7
  */
@@ -12,7 +12,7 @@ export type TournamentStats = {
12
12
  thirdPlace: number | null;
13
13
  total: number | null;
14
14
  };
15
- export type BenchmarksDAItem = {
15
+ export type UnifiedBenchmarksDAItem = {
16
16
  /**
17
17
  * Arena this ranking belongs to.
18
18
  */
@@ -34,13 +34,17 @@ export type BenchmarksDAItem = {
34
34
  */
35
35
  elo: number;
36
36
  /**
37
- * Stable OpenRouter model identifier when the model is on OpenRouter; otherwise the upstream Design Arena model id. Use pricing != null to detect OpenRouter-mapped models.
37
+ * Stable OpenRouter model identifier when mapped; otherwise the upstream Design Arena model id.
38
38
  */
39
39
  modelPermaslug: string;
40
40
  /**
41
41
  * OpenRouter pricing per token for this model. Null if pricing is unavailable.
42
42
  */
43
- pricing: BenchmarkPricing | null;
43
+ pricing: UnifiedBenchmarkPricing | null;
44
+ /**
45
+ * Benchmark source discriminator.
46
+ */
47
+ source: "design-arena";
44
48
  /**
45
49
  * Placement distribution from tournament matches.
46
50
  */
@@ -54,6 +58,6 @@ export type BenchmarksDAItem = {
54
58
  export declare const TournamentStats$inboundSchema: z.ZodType<TournamentStats, unknown>;
55
59
  export declare function tournamentStatsFromJSON(jsonString: string): SafeParseResult<TournamentStats, SDKValidationError>;
56
60
  /** @internal */
57
- export declare const BenchmarksDAItem$inboundSchema: z.ZodType<BenchmarksDAItem, unknown>;
58
- export declare function benchmarksDAItemFromJSON(jsonString: string): SafeParseResult<BenchmarksDAItem, SDKValidationError>;
59
- //# sourceMappingURL=benchmarksdaitem.d.ts.map
61
+ export declare const UnifiedBenchmarksDAItem$inboundSchema: z.ZodType<UnifiedBenchmarksDAItem, unknown>;
62
+ export declare function unifiedBenchmarksDAItemFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksDAItem, SDKValidationError>;
63
+ //# sourceMappingURL=unifiedbenchmarksdaitem.d.ts.map
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: a8a7a42ac948
3
+ * @generated-id: f911314affb3
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
- import { BenchmarkPricing$inboundSchema, } from "./benchmarkpricing.js";
8
+ import { UnifiedBenchmarkPricing$inboundSchema, } from "./unifiedbenchmarkpricing.js";
9
9
  /** @internal */
10
10
  export const TournamentStats$inboundSchema = z.object({
11
11
  first_place: z.nullable(z.int()),
@@ -25,14 +25,15 @@ export function tournamentStatsFromJSON(jsonString) {
25
25
  return safeParse(jsonString, (x) => TournamentStats$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TournamentStats' from JSON`);
26
26
  }
27
27
  /** @internal */
28
- export const BenchmarksDAItem$inboundSchema = z.object({
28
+ export const UnifiedBenchmarksDAItem$inboundSchema = z.object({
29
29
  arena: z.string(),
30
30
  avg_generation_time_ms: z.nullable(z.number()),
31
31
  category: z.string(),
32
32
  display_name: z.string(),
33
33
  elo: z.number(),
34
34
  model_permaslug: z.string(),
35
- pricing: z.nullable(BenchmarkPricing$inboundSchema),
35
+ pricing: z.nullable(UnifiedBenchmarkPricing$inboundSchema),
36
+ source: z.literal("design-arena"),
36
37
  tournament_stats: z.lazy(() => TournamentStats$inboundSchema),
37
38
  win_rate: z.number(),
38
39
  }).transform((v) => {
@@ -44,7 +45,7 @@ export const BenchmarksDAItem$inboundSchema = z.object({
44
45
  "win_rate": "winRate",
45
46
  });
46
47
  });
47
- export function benchmarksDAItemFromJSON(jsonString) {
48
- return safeParse(jsonString, (x) => BenchmarksDAItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BenchmarksDAItem' from JSON`);
48
+ export function unifiedBenchmarksDAItemFromJSON(jsonString) {
49
+ return safeParse(jsonString, (x) => UnifiedBenchmarksDAItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksDAItem' from JSON`);
49
50
  }
50
- //# sourceMappingURL=benchmarksdaitem.js.map
51
+ //# sourceMappingURL=unifiedbenchmarksdaitem.js.map
@@ -0,0 +1,63 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ /**
6
+ * The source filter applied, or null when all sources are returned.
7
+ */
8
+ export declare const SourceEnum: {
9
+ readonly ArtificialAnalysis: "artificial-analysis";
10
+ readonly DesignArena: "design-arena";
11
+ };
12
+ /**
13
+ * The source filter applied, or null when all sources are returned.
14
+ */
15
+ export type SourceEnum = OpenEnum<typeof SourceEnum>;
16
+ /**
17
+ * Dataset version.
18
+ */
19
+ export declare const UnifiedBenchmarksMetaVersion: {
20
+ readonly V1: "v1";
21
+ };
22
+ /**
23
+ * Dataset version.
24
+ */
25
+ export type UnifiedBenchmarksMetaVersion = ClosedEnum<typeof UnifiedBenchmarksMetaVersion>;
26
+ export type UnifiedBenchmarksMeta = {
27
+ /**
28
+ * ISO-8601 timestamp of when this data was last updated.
29
+ */
30
+ asOf: string;
31
+ /**
32
+ * Required attribution when republishing this data, or null when results span multiple sources (attribute each item individually by its `source` discriminator).
33
+ */
34
+ citation: string | null;
35
+ /**
36
+ * Number of unique models in the response.
37
+ */
38
+ modelCount: number;
39
+ /**
40
+ * The source filter applied, or null when all sources are returned.
41
+ */
42
+ source: SourceEnum | null;
43
+ /**
44
+ * URL of the upstream data source, or null when results span multiple sources.
45
+ */
46
+ sourceUrl: string | null;
47
+ /**
48
+ * The task_type filter applied, or null if showing all.
49
+ */
50
+ taskType: string | null;
51
+ /**
52
+ * Dataset version.
53
+ */
54
+ version: UnifiedBenchmarksMetaVersion;
55
+ };
56
+ /** @internal */
57
+ export declare const SourceEnum$inboundSchema: z.ZodType<SourceEnum, unknown>;
58
+ /** @internal */
59
+ export declare const UnifiedBenchmarksMetaVersion$inboundSchema: z.ZodEnum<typeof UnifiedBenchmarksMetaVersion>;
60
+ /** @internal */
61
+ export declare const UnifiedBenchmarksMeta$inboundSchema: z.ZodType<UnifiedBenchmarksMeta, unknown>;
62
+ export declare function unifiedBenchmarksMetaFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksMeta, SDKValidationError>;
63
+ //# sourceMappingURL=unifiedbenchmarksmeta.d.ts.map
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d146ee8b8956
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ /**
10
+ * The source filter applied, or null when all sources are returned.
11
+ */
12
+ export const SourceEnum = {
13
+ ArtificialAnalysis: "artificial-analysis",
14
+ DesignArena: "design-arena",
15
+ };
16
+ /**
17
+ * Dataset version.
18
+ */
19
+ export const UnifiedBenchmarksMetaVersion = {
20
+ V1: "v1",
21
+ };
22
+ /** @internal */
23
+ export const SourceEnum$inboundSchema = openEnums.inboundSchema(SourceEnum);
24
+ /** @internal */
25
+ export const UnifiedBenchmarksMetaVersion$inboundSchema = z.enum(UnifiedBenchmarksMetaVersion);
26
+ /** @internal */
27
+ export const UnifiedBenchmarksMeta$inboundSchema = z.object({
28
+ as_of: z.string(),
29
+ citation: z.nullable(z.string()),
30
+ model_count: z.int(),
31
+ source: z.nullable(SourceEnum$inboundSchema),
32
+ source_url: z.nullable(z.string()),
33
+ task_type: z.nullable(z.string()),
34
+ version: UnifiedBenchmarksMetaVersion$inboundSchema,
35
+ }).transform((v) => {
36
+ return remap$(v, {
37
+ "as_of": "asOf",
38
+ "model_count": "modelCount",
39
+ "source_url": "sourceUrl",
40
+ "task_type": "taskType",
41
+ });
42
+ });
43
+ export function unifiedBenchmarksMetaFromJSON(jsonString) {
44
+ return safeParse(jsonString, (x) => UnifiedBenchmarksMeta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksMeta' from JSON`);
45
+ }
46
+ //# sourceMappingURL=unifiedbenchmarksmeta.js.map
@@ -0,0 +1,19 @@
1
+ import * as z from "zod/v4";
2
+ import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { UnifiedBenchmarksAAItem } from "./unifiedbenchmarksaaitem.js";
6
+ import { UnifiedBenchmarksDAItem } from "./unifiedbenchmarksdaitem.js";
7
+ import { UnifiedBenchmarksMeta } from "./unifiedbenchmarksmeta.js";
8
+ export type UnifiedBenchmarksResponseData = UnifiedBenchmarksAAItem | UnifiedBenchmarksDAItem | discriminatedUnionTypes.Unknown<"source">;
9
+ export type UnifiedBenchmarksResponse = {
10
+ data: Array<UnifiedBenchmarksAAItem | UnifiedBenchmarksDAItem | discriminatedUnionTypes.Unknown<"source">>;
11
+ meta: UnifiedBenchmarksMeta;
12
+ };
13
+ /** @internal */
14
+ export declare const UnifiedBenchmarksResponseData$inboundSchema: z.ZodType<UnifiedBenchmarksResponseData, unknown>;
15
+ export declare function unifiedBenchmarksResponseDataFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksResponseData, SDKValidationError>;
16
+ /** @internal */
17
+ export declare const UnifiedBenchmarksResponse$inboundSchema: z.ZodType<UnifiedBenchmarksResponse, unknown>;
18
+ export declare function unifiedBenchmarksResponseFromJSON(jsonString: string): SafeParseResult<UnifiedBenchmarksResponse, SDKValidationError>;
19
+ //# sourceMappingURL=unifiedbenchmarksresponse.d.ts.map
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b3f08556727b
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { discriminatedUnion } from "../types/discriminatedUnion.js";
8
+ import { UnifiedBenchmarksAAItem$inboundSchema, } from "./unifiedbenchmarksaaitem.js";
9
+ import { UnifiedBenchmarksDAItem$inboundSchema, } from "./unifiedbenchmarksdaitem.js";
10
+ import { UnifiedBenchmarksMeta$inboundSchema, } from "./unifiedbenchmarksmeta.js";
11
+ /** @internal */
12
+ export const UnifiedBenchmarksResponseData$inboundSchema = discriminatedUnion("source", {
13
+ ["artificial-analysis"]: UnifiedBenchmarksAAItem$inboundSchema,
14
+ ["design-arena"]: UnifiedBenchmarksDAItem$inboundSchema,
15
+ });
16
+ export function unifiedBenchmarksResponseDataFromJSON(jsonString) {
17
+ return safeParse(jsonString, (x) => UnifiedBenchmarksResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksResponseData' from JSON`);
18
+ }
19
+ /** @internal */
20
+ export const UnifiedBenchmarksResponse$inboundSchema = z.object({
21
+ data: z.array(discriminatedUnion("source", {
22
+ ["artificial-analysis"]: UnifiedBenchmarksAAItem$inboundSchema,
23
+ ["design-arena"]: UnifiedBenchmarksDAItem$inboundSchema,
24
+ })),
25
+ meta: UnifiedBenchmarksMeta$inboundSchema,
26
+ });
27
+ export function unifiedBenchmarksResponseFromJSON(jsonString) {
28
+ return safeParse(jsonString, (x) => UnifiedBenchmarksResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnifiedBenchmarksResponse' from JSON`);
29
+ }
30
+ //# sourceMappingURL=unifiedbenchmarksresponse.js.map
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4";
2
+ export type UpsertWorkspaceBudgetRequest = {
3
+ /**
4
+ * Spending limit in USD. Must be greater than 0.
5
+ */
6
+ limitUsd: number;
7
+ };
8
+ /** @internal */
9
+ export type UpsertWorkspaceBudgetRequest$Outbound = {
10
+ limit_usd: number;
11
+ };
12
+ /** @internal */
13
+ export declare const UpsertWorkspaceBudgetRequest$outboundSchema: z.ZodType<UpsertWorkspaceBudgetRequest$Outbound, UpsertWorkspaceBudgetRequest>;
14
+ export declare function upsertWorkspaceBudgetRequestToJSON(upsertWorkspaceBudgetRequest: UpsertWorkspaceBudgetRequest): string;
15
+ //# sourceMappingURL=upsertworkspacebudgetrequest.d.ts.map
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ff35250e4ab2
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const UpsertWorkspaceBudgetRequest$outboundSchema = z.object({
9
+ limitUsd: z.number(),
10
+ }).transform((v) => {
11
+ return remap$(v, {
12
+ limitUsd: "limit_usd",
13
+ });
14
+ });
15
+ export function upsertWorkspaceBudgetRequestToJSON(upsertWorkspaceBudgetRequest) {
16
+ return JSON.stringify(UpsertWorkspaceBudgetRequest$outboundSchema.parse(upsertWorkspaceBudgetRequest));
17
+ }
18
+ //# sourceMappingURL=upsertworkspacebudgetrequest.js.map
@@ -0,0 +1,11 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { WorkspaceBudget } from "./workspacebudget.js";
5
+ export type UpsertWorkspaceBudgetResponse = {
6
+ data: WorkspaceBudget;
7
+ };
8
+ /** @internal */
9
+ export declare const UpsertWorkspaceBudgetResponse$inboundSchema: z.ZodType<UpsertWorkspaceBudgetResponse, unknown>;
10
+ export declare function upsertWorkspaceBudgetResponseFromJSON(jsonString: string): SafeParseResult<UpsertWorkspaceBudgetResponse, SDKValidationError>;
11
+ //# sourceMappingURL=upsertworkspacebudgetresponse.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ad34c44c01ce
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { WorkspaceBudget$inboundSchema, } from "./workspacebudget.js";
8
+ /** @internal */
9
+ export const UpsertWorkspaceBudgetResponse$inboundSchema = z.object({
10
+ data: WorkspaceBudget$inboundSchema,
11
+ });
12
+ export function upsertWorkspaceBudgetResponseFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => UpsertWorkspaceBudgetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpsertWorkspaceBudgetResponse' from JSON`);
14
+ }
15
+ //# sourceMappingURL=upsertworkspacebudgetresponse.js.map
@@ -5,7 +5,7 @@ import { InputReference, InputReference$Outbound } from "./inputreference.js";
5
5
  /**
6
6
  * Aspect ratio of the generated video
7
7
  */
8
- export declare const AspectRatio: {
8
+ export declare const VideoGenerationRequestAspectRatio: {
9
9
  readonly OneHundredAndSixtyNine: "16:9";
10
10
  readonly NineHundredAndSixteen: "9:16";
11
11
  readonly Eleven: "1:1";
@@ -19,11 +19,11 @@ export declare const AspectRatio: {
19
19
  /**
20
20
  * Aspect ratio of the generated video
21
21
  */
22
- export type AspectRatio = OpenEnum<typeof AspectRatio>;
22
+ export type VideoGenerationRequestAspectRatio = OpenEnum<typeof VideoGenerationRequestAspectRatio>;
23
23
  /**
24
- * Provider-specific options keyed by provider slug. The options for the matched provider are spread into the upstream request body.
24
+ * Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
25
25
  */
26
- export type Options = {
26
+ export type VideoGenerationRequestOptions = {
27
27
  oneai?: {
28
28
  [k: string]: any | null;
29
29
  } | undefined;
@@ -159,6 +159,9 @@ export type Options = {
159
159
  groq?: {
160
160
  [k: string]: any | null;
161
161
  } | undefined;
162
+ heygen?: {
163
+ [k: string]: any | null;
164
+ } | undefined;
162
165
  huggingface?: {
163
166
  [k: string]: any | null;
164
167
  } | undefined;
@@ -174,6 +177,9 @@ export type Options = {
174
177
  inceptron?: {
175
178
  [k: string]: any | null;
176
179
  } | undefined;
180
+ inferactVllm?: {
181
+ [k: string]: any | null;
182
+ } | undefined;
177
183
  inferenceNet?: {
178
184
  [k: string]: any | null;
179
185
  } | undefined;
@@ -306,6 +312,9 @@ export type Options = {
306
312
  replicate?: {
307
313
  [k: string]: any | null;
308
314
  } | undefined;
315
+ sakanaAi?: {
316
+ [k: string]: any | null;
317
+ } | undefined;
309
318
  sambanova?: {
310
319
  [k: string]: any | null;
311
320
  } | undefined;
@@ -339,6 +348,9 @@ export type Options = {
339
348
  targon?: {
340
349
  [k: string]: any | null;
341
350
  } | undefined;
351
+ tenstorrent?: {
352
+ [k: string]: any | null;
353
+ } | undefined;
342
354
  together?: {
343
355
  [k: string]: any | null;
344
356
  } | undefined;
@@ -374,12 +386,12 @@ export type Options = {
374
386
  * Provider-specific passthrough configuration
375
387
  */
376
388
  export type VideoGenerationRequestProvider = {
377
- options?: Options | undefined;
389
+ options?: VideoGenerationRequestOptions | undefined;
378
390
  };
379
391
  /**
380
392
  * Resolution of the generated video
381
393
  */
382
- export declare const Resolution: {
394
+ export declare const VideoGenerationRequestResolution: {
383
395
  readonly FourHundredAndEightyp: "480p";
384
396
  readonly SevenHundredAndTwentyp: "720p";
385
397
  readonly OneThousandAndEightyp: "1080p";
@@ -390,12 +402,12 @@ export declare const Resolution: {
390
402
  /**
391
403
  * Resolution of the generated video
392
404
  */
393
- export type Resolution = OpenEnum<typeof Resolution>;
405
+ export type VideoGenerationRequestResolution = OpenEnum<typeof VideoGenerationRequestResolution>;
394
406
  export type VideoGenerationRequest = {
395
407
  /**
396
408
  * Aspect ratio of the generated video
397
409
  */
398
- aspectRatio?: AspectRatio | undefined;
410
+ aspectRatio?: VideoGenerationRequestAspectRatio | undefined;
399
411
  /**
400
412
  * URL to receive a webhook notification when the video generation job completes. Overrides the workspace-level default callback URL if set. Must be HTTPS.
401
413
  */
@@ -425,7 +437,7 @@ export type VideoGenerationRequest = {
425
437
  /**
426
438
  * Resolution of the generated video
427
439
  */
428
- resolution?: Resolution | undefined;
440
+ resolution?: VideoGenerationRequestResolution | undefined;
429
441
  /**
430
442
  * If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers.
431
443
  */
@@ -436,9 +448,9 @@ export type VideoGenerationRequest = {
436
448
  size?: string | undefined;
437
449
  };
438
450
  /** @internal */
439
- export declare const AspectRatio$outboundSchema: z.ZodType<string, AspectRatio>;
451
+ export declare const VideoGenerationRequestAspectRatio$outboundSchema: z.ZodType<string, VideoGenerationRequestAspectRatio>;
440
452
  /** @internal */
441
- export type Options$Outbound = {
453
+ export type VideoGenerationRequestOptions$Outbound = {
442
454
  "01ai"?: {
443
455
  [k: string]: any | null;
444
456
  } | undefined;
@@ -574,6 +586,9 @@ export type Options$Outbound = {
574
586
  groq?: {
575
587
  [k: string]: any | null;
576
588
  } | undefined;
589
+ heygen?: {
590
+ [k: string]: any | null;
591
+ } | undefined;
577
592
  huggingface?: {
578
593
  [k: string]: any | null;
579
594
  } | undefined;
@@ -589,6 +604,9 @@ export type Options$Outbound = {
589
604
  inceptron?: {
590
605
  [k: string]: any | null;
591
606
  } | undefined;
607
+ "inferact-vllm"?: {
608
+ [k: string]: any | null;
609
+ } | undefined;
592
610
  "inference-net"?: {
593
611
  [k: string]: any | null;
594
612
  } | undefined;
@@ -721,6 +739,9 @@ export type Options$Outbound = {
721
739
  replicate?: {
722
740
  [k: string]: any | null;
723
741
  } | undefined;
742
+ "sakana-ai"?: {
743
+ [k: string]: any | null;
744
+ } | undefined;
724
745
  sambanova?: {
725
746
  [k: string]: any | null;
726
747
  } | undefined;
@@ -754,6 +775,9 @@ export type Options$Outbound = {
754
775
  targon?: {
755
776
  [k: string]: any | null;
756
777
  } | undefined;
778
+ tenstorrent?: {
779
+ [k: string]: any | null;
780
+ } | undefined;
757
781
  together?: {
758
782
  [k: string]: any | null;
759
783
  } | undefined;
@@ -786,17 +810,17 @@ export type Options$Outbound = {
786
810
  } | undefined;
787
811
  };
788
812
  /** @internal */
789
- export declare const Options$outboundSchema: z.ZodType<Options$Outbound, Options>;
790
- export declare function optionsToJSON(options: Options): string;
813
+ export declare const VideoGenerationRequestOptions$outboundSchema: z.ZodType<VideoGenerationRequestOptions$Outbound, VideoGenerationRequestOptions>;
814
+ export declare function videoGenerationRequestOptionsToJSON(videoGenerationRequestOptions: VideoGenerationRequestOptions): string;
791
815
  /** @internal */
792
816
  export type VideoGenerationRequestProvider$Outbound = {
793
- options?: Options$Outbound | undefined;
817
+ options?: VideoGenerationRequestOptions$Outbound | undefined;
794
818
  };
795
819
  /** @internal */
796
820
  export declare const VideoGenerationRequestProvider$outboundSchema: z.ZodType<VideoGenerationRequestProvider$Outbound, VideoGenerationRequestProvider>;
797
821
  export declare function videoGenerationRequestProviderToJSON(videoGenerationRequestProvider: VideoGenerationRequestProvider): string;
798
822
  /** @internal */
799
- export declare const Resolution$outboundSchema: z.ZodType<string, Resolution>;
823
+ export declare const VideoGenerationRequestResolution$outboundSchema: z.ZodType<string, VideoGenerationRequestResolution>;
800
824
  /** @internal */
801
825
  export type VideoGenerationRequest$Outbound = {
802
826
  aspect_ratio?: string | undefined;