@openrouter/sdk 0.13.7 → 0.13.13
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.
- package/README.md +3 -9
- package/esm/funcs/benchmarksGetBenchmarks.d.ts +19 -0
- package/esm/funcs/{datasetsGetBenchmarksDesignArena.js → benchmarksGetBenchmarks.js} +11 -10
- package/esm/funcs/classificationsGetTaskClassifications.d.ts +37 -0
- package/esm/funcs/classificationsGetTaskClassifications.js +119 -0
- package/esm/funcs/imagesGenerate.d.ts +30 -0
- package/esm/funcs/imagesGenerate.js +95 -0
- package/esm/funcs/imagesListModelEndpoints.d.ts +19 -0
- package/esm/funcs/imagesListModelEndpoints.js +107 -0
- package/esm/funcs/{datasetsGetBenchmarksDesignArena.d.ts → imagesListModels.d.ts} +4 -4
- package/esm/funcs/{datasetsGetBenchmarksArtificialAnalysis.js → imagesListModels.js} +10 -15
- package/esm/funcs/workspacesDeleteBudget.d.ts +19 -0
- package/esm/funcs/workspacesDeleteBudget.js +107 -0
- package/esm/funcs/workspacesListBudgets.d.ts +19 -0
- package/esm/funcs/workspacesListBudgets.js +103 -0
- package/esm/funcs/workspacesSetBudget.d.ts +19 -0
- package/esm/funcs/workspacesSetBudget.js +110 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/advisorreasoning.d.ts +1 -0
- package/esm/models/advisorreasoning.js +1 -0
- package/esm/models/anthropicadvisormessageusageiteration.d.ts +24 -0
- package/esm/models/anthropicadvisormessageusageiteration.js +36 -0
- package/esm/models/anthropiccompactionusageiteration.d.ts +23 -0
- package/esm/models/anthropiccompactionusageiteration.js +35 -0
- package/esm/models/anthropicdocumentblockparam.d.ts +5 -4
- package/esm/models/anthropicdocumentblockparam.js +3 -0
- package/esm/models/anthropicfiledocumentsource.d.ts +14 -0
- package/esm/models/anthropicfiledocumentsource.js +19 -0
- package/esm/models/anthropiciterationcachecreation.d.ts +11 -0
- package/esm/models/anthropiciterationcachecreation.js +21 -0
- package/esm/models/anthropicmessageusageiteration.d.ts +24 -0
- package/esm/models/anthropicmessageusageiteration.js +36 -0
- package/esm/models/anthropicspeed.d.ts +10 -0
- package/esm/models/anthropicspeed.js +12 -0
- package/esm/models/anthropicunknownusageiteration.d.ts +16 -0
- package/esm/models/anthropicunknownusageiteration.js +30 -0
- package/esm/models/anthropicusageiteration.d.ts +12 -0
- package/esm/models/anthropicusageiteration.js +21 -0
- package/esm/models/apierrortype.d.ts +41 -0
- package/esm/models/apierrortype.js +40 -0
- package/esm/models/booleancapability.d.ts +13 -0
- package/esm/models/booleancapability.js +14 -0
- package/esm/models/byokproviderslug.d.ts +3 -0
- package/esm/models/byokproviderslug.js +3 -0
- package/esm/models/capabilitydescriptor.d.ts +15 -0
- package/esm/models/capabilitydescriptor.js +19 -0
- package/esm/models/chatrequest.d.ts +2 -0
- package/esm/models/chatrequest.js +2 -0
- package/esm/models/chatstreamchunk.d.ts +25 -4
- package/esm/models/chatstreamchunk.js +19 -4
- package/esm/models/chatusage.d.ts +32 -8
- package/esm/models/chatusage.js +25 -8
- package/esm/models/chatwebsearchshorthand.d.ts +1 -1
- package/esm/models/contentpartimage.d.ts +9 -2
- package/esm/models/contentpartimage.js +6 -1
- package/esm/models/debugevent.d.ts +42 -0
- package/esm/models/debugevent.js +58 -0
- package/esm/models/deleteworkspacebudgetresponse.d.ts +13 -0
- package/esm/models/deleteworkspacebudgetresponse.js +14 -0
- package/esm/models/enumcapability.d.ts +14 -0
- package/esm/models/enumcapability.js +15 -0
- package/esm/models/fusionplugin.d.ts +1 -0
- package/esm/models/fusionplugin.js +1 -0
- package/esm/models/fusionservertoolconfig.d.ts +8 -1
- package/esm/models/fusionservertoolconfig.js +4 -0
- package/esm/models/imageendpoint.d.ts +41 -0
- package/esm/models/imageendpoint.js +33 -0
- package/esm/models/imagegencompletedevent.d.ts +29 -0
- package/esm/models/imagegencompletedevent.js +23 -0
- package/esm/models/imagegenerationrequest.d.ts +908 -0
- package/esm/models/imagegenerationrequest.js +266 -0
- package/esm/models/imagegenerationresponse.d.ts +34 -0
- package/esm/models/imagegenerationresponse.js +29 -0
- package/esm/models/imagegenerationservertool.d.ts +15 -15
- package/esm/models/imagegenerationservertool.js +15 -17
- package/esm/models/imagegenerationusage.d.ts +119 -0
- package/esm/models/imagegenerationusage.js +93 -0
- package/esm/models/imagegenpartialimageevent.d.ts +24 -0
- package/esm/models/imagegenpartialimageevent.js +22 -0
- package/esm/models/imagegenstreamerrorevent.d.ts +44 -0
- package/esm/models/imagegenstreamerrorevent.js +25 -0
- package/esm/models/imagemodelarchitecture.d.ts +19 -0
- package/esm/models/imagemodelarchitecture.js +23 -0
- package/esm/models/imagemodelendpointsresponse.d.ts +18 -0
- package/esm/models/imagemodelendpointsresponse.js +16 -0
- package/esm/models/imagemodellistitem.d.ts +42 -0
- package/esm/models/imagemodellistitem.js +29 -0
- package/esm/models/imagemodelslistresponse.d.ts +14 -0
- package/esm/models/imagemodelslistresponse.js +15 -0
- package/esm/models/imageoutputmodality.d.ts +16 -0
- package/esm/models/imageoutputmodality.js +18 -0
- package/esm/models/imagepricingentry.d.ts +35 -0
- package/esm/models/imagepricingentry.js +41 -0
- package/esm/models/imagestreamingresponse.d.ts +18 -0
- package/esm/models/imagestreamingresponse.js +43 -0
- package/esm/models/index.d.ts +44 -7
- package/esm/models/index.js +44 -7
- package/esm/models/inputreference.d.ts +6 -2
- package/esm/models/inputreference.js +1 -1
- package/esm/models/legacywebsearchservertool.d.ts +1 -1
- package/esm/models/listworkspacebudgetsresponse.d.ts +14 -0
- package/esm/models/listworkspacebudgetsresponse.js +15 -0
- package/esm/models/messagesrequest.d.ts +6 -6
- package/esm/models/messagesrequest.js +4 -5
- package/esm/models/model.d.ts +5 -0
- package/esm/models/model.js +2 -0
- package/esm/models/modelreasoning.d.ts +49 -0
- package/esm/models/modelreasoning.js +42 -0
- package/esm/models/observabilityarizedestination.d.ts +3 -0
- package/esm/models/openresponsesresult.d.ts +5 -0
- package/esm/models/openresponsesresult.js +3 -0
- package/esm/models/operations/createembeddings.d.ts +19 -0
- package/esm/models/operations/createembeddings.js +20 -0
- package/esm/models/operations/createimages.d.ts +63 -0
- package/esm/models/operations/createimages.js +44 -0
- package/esm/models/operations/{getbenchmarksartificialanalysis.d.ts → deleteworkspacebudget.d.ts} +15 -9
- package/esm/models/operations/deleteworkspacebudget.js +23 -0
- package/esm/models/operations/getbenchmarks.d.ts +120 -0
- package/esm/models/operations/getbenchmarks.js +60 -0
- package/esm/models/operations/getmodels.d.ts +5 -3
- package/esm/models/operations/getmodels.js +3 -1
- package/esm/models/operations/{getbenchmarksdesignarena.d.ts → gettaskclassifications.d.ts} +16 -28
- package/esm/models/operations/gettaskclassifications.js +29 -0
- package/esm/models/operations/index.d.ts +8 -2
- package/esm/models/operations/index.js +8 -2
- package/esm/models/operations/listbyokkeys.d.ts +3 -0
- package/esm/models/operations/listbyokkeys.js +3 -0
- package/esm/models/operations/listimagemodelendpoints.d.ts +63 -0
- package/esm/models/operations/listimagemodelendpoints.js +22 -0
- package/esm/models/operations/listimagemodels.d.ts +53 -0
- package/esm/models/operations/listimagemodels.js +20 -0
- package/esm/models/operations/listworkspacebudgets.d.ts +58 -0
- package/esm/models/operations/listworkspacebudgets.js +21 -0
- package/esm/models/operations/queryanalytics.d.ts +7 -3
- package/esm/models/operations/queryanalytics.js +1 -0
- package/esm/models/operations/upsertworkspacebudget.d.ts +66 -0
- package/esm/models/operations/upsertworkspacebudget.js +25 -0
- package/esm/models/preview20250311websearchservertool.d.ts +1 -1
- package/esm/models/previewwebsearchservertool.d.ts +1 -1
- package/esm/models/providername.d.ts +3 -0
- package/esm/models/providername.js +3 -0
- package/esm/models/provideroptions.d.ts +19 -1
- package/esm/models/provideroptions.js +5 -0
- package/esm/models/providerresponse.d.ts +3 -0
- package/esm/models/providerresponse.js +3 -0
- package/esm/models/rangecapability.d.ts +15 -0
- package/esm/models/rangecapability.js +16 -0
- package/esm/models/reasoningeffort.d.ts +1 -0
- package/esm/models/reasoningeffort.js +1 -0
- package/esm/models/responsesrequest.d.ts +6 -0
- package/esm/models/responsesrequest.js +2 -0
- package/esm/models/speechrequest.d.ts +1 -1
- package/esm/models/streamevents.d.ts +2 -1
- package/esm/models/streamevents.js +2 -0
- package/esm/models/sttrequest.d.ts +1 -1
- package/esm/models/subagentreasoning.d.ts +1 -0
- package/esm/models/subagentreasoning.js +1 -0
- package/esm/models/taskclassificationitem.d.ts +42 -0
- package/esm/models/taskclassificationitem.js +32 -0
- package/esm/models/taskclassificationmacrocategory.d.ts +25 -0
- package/esm/models/taskclassificationmacrocategory.js +23 -0
- package/esm/models/taskclassificationmodel.d.ts +21 -0
- package/esm/models/taskclassificationmodel.js +22 -0
- package/esm/models/taskclassificationresponse.d.ts +33 -0
- package/esm/models/taskclassificationresponse.js +33 -0
- package/esm/models/{benchmarkpricing.d.ts → unifiedbenchmarkpricing.d.ts} +4 -4
- package/esm/models/unifiedbenchmarkpricing.js +15 -0
- package/esm/models/{benchmarksaaitem.d.ts → unifiedbenchmarksaaitem.d.ts} +14 -10
- package/esm/models/unifiedbenchmarksaaitem.js +30 -0
- package/esm/models/{benchmarksdaitem.d.ts → unifiedbenchmarksdaitem.d.ts} +11 -7
- package/esm/models/{benchmarksdaitem.js → unifiedbenchmarksdaitem.js} +8 -7
- package/esm/models/unifiedbenchmarksmeta.d.ts +63 -0
- package/esm/models/unifiedbenchmarksmeta.js +46 -0
- package/esm/models/unifiedbenchmarksresponse.d.ts +19 -0
- package/esm/models/unifiedbenchmarksresponse.js +30 -0
- package/esm/models/upsertworkspacebudgetrequest.d.ts +15 -0
- package/esm/models/upsertworkspacebudgetrequest.js +18 -0
- package/esm/models/upsertworkspacebudgetresponse.d.ts +11 -0
- package/esm/models/upsertworkspacebudgetresponse.js +15 -0
- package/esm/models/videogenerationrequest.d.ts +33 -15
- package/esm/models/videogenerationrequest.js +16 -11
- package/esm/models/websearchconfig.d.ts +1 -1
- package/esm/models/websearchservertool.d.ts +1 -1
- package/esm/models/websearchservertoolconfig.d.ts +1 -1
- package/esm/models/workspacebudget.d.ts +48 -0
- package/esm/models/workspacebudget.js +39 -0
- package/esm/models/workspacebudgetinterval.d.ts +18 -0
- package/esm/models/workspacebudgetinterval.js +17 -0
- package/esm/sdk/benchmarks.d.ts +13 -0
- package/esm/sdk/benchmarks.js +19 -0
- package/esm/sdk/classifications.d.ts +31 -0
- package/esm/sdk/classifications.js +37 -0
- package/esm/sdk/datasets.d.ts +0 -14
- package/esm/sdk/datasets.js +0 -20
- package/esm/sdk/images.d.ts +38 -0
- package/esm/sdk/images.js +33 -0
- package/esm/sdk/sdk.d.ts +9 -0
- package/esm/sdk/sdk.js +12 -0
- package/esm/sdk/workspaces.d.ts +21 -0
- package/esm/sdk/workspaces.js +30 -0
- package/jsr.json +1 -1
- package/package.json +5 -5
- package/esm/funcs/datasetsGetBenchmarksArtificialAnalysis.d.ts +0 -19
- package/esm/models/benchmarkpricing.js +0 -15
- package/esm/models/benchmarksaaitem.js +0 -29
- package/esm/models/benchmarksaameta.d.ts +0 -70
- package/esm/models/benchmarksaameta.js +0 -50
- package/esm/models/benchmarksaaresponse.d.ts +0 -13
- package/esm/models/benchmarksaaresponse.js +0 -17
- package/esm/models/benchmarksdameta.d.ts +0 -98
- package/esm/models/benchmarksdameta.js +0 -62
- package/esm/models/benchmarksdaresponse.d.ts +0 -13
- package/esm/models/benchmarksdaresponse.js +0 -17
- package/esm/models/operations/getbenchmarksartificialanalysis.js +0 -22
- package/esm/models/operations/getbenchmarksdesignarena.js +0 -36
|
@@ -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
|
|
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
|
|
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:
|
|
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
|
|
58
|
-
export declare function
|
|
59
|
-
//# sourceMappingURL=
|
|
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:
|
|
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 {
|
|
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
|
|
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(
|
|
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
|
|
48
|
-
return safeParse(jsonString, (x) =>
|
|
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=
|
|
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
|
|
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
|
|
22
|
+
export type VideoGenerationRequestAspectRatio = OpenEnum<typeof VideoGenerationRequestAspectRatio>;
|
|
23
23
|
/**
|
|
24
|
-
* Provider-specific options keyed by provider slug.
|
|
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
|
|
26
|
+
export type VideoGenerationRequestOptions = {
|
|
27
27
|
oneai?: {
|
|
28
28
|
[k: string]: any | null;
|
|
29
29
|
} | undefined;
|
|
@@ -174,6 +174,9 @@ export type Options = {
|
|
|
174
174
|
inceptron?: {
|
|
175
175
|
[k: string]: any | null;
|
|
176
176
|
} | undefined;
|
|
177
|
+
inferactVllm?: {
|
|
178
|
+
[k: string]: any | null;
|
|
179
|
+
} | undefined;
|
|
177
180
|
inferenceNet?: {
|
|
178
181
|
[k: string]: any | null;
|
|
179
182
|
} | undefined;
|
|
@@ -306,6 +309,9 @@ export type Options = {
|
|
|
306
309
|
replicate?: {
|
|
307
310
|
[k: string]: any | null;
|
|
308
311
|
} | undefined;
|
|
312
|
+
sakanaAi?: {
|
|
313
|
+
[k: string]: any | null;
|
|
314
|
+
} | undefined;
|
|
309
315
|
sambanova?: {
|
|
310
316
|
[k: string]: any | null;
|
|
311
317
|
} | undefined;
|
|
@@ -339,6 +345,9 @@ export type Options = {
|
|
|
339
345
|
targon?: {
|
|
340
346
|
[k: string]: any | null;
|
|
341
347
|
} | undefined;
|
|
348
|
+
tenstorrent?: {
|
|
349
|
+
[k: string]: any | null;
|
|
350
|
+
} | undefined;
|
|
342
351
|
together?: {
|
|
343
352
|
[k: string]: any | null;
|
|
344
353
|
} | undefined;
|
|
@@ -374,12 +383,12 @@ export type Options = {
|
|
|
374
383
|
* Provider-specific passthrough configuration
|
|
375
384
|
*/
|
|
376
385
|
export type VideoGenerationRequestProvider = {
|
|
377
|
-
options?:
|
|
386
|
+
options?: VideoGenerationRequestOptions | undefined;
|
|
378
387
|
};
|
|
379
388
|
/**
|
|
380
389
|
* Resolution of the generated video
|
|
381
390
|
*/
|
|
382
|
-
export declare const
|
|
391
|
+
export declare const VideoGenerationRequestResolution: {
|
|
383
392
|
readonly FourHundredAndEightyp: "480p";
|
|
384
393
|
readonly SevenHundredAndTwentyp: "720p";
|
|
385
394
|
readonly OneThousandAndEightyp: "1080p";
|
|
@@ -390,12 +399,12 @@ export declare const Resolution: {
|
|
|
390
399
|
/**
|
|
391
400
|
* Resolution of the generated video
|
|
392
401
|
*/
|
|
393
|
-
export type
|
|
402
|
+
export type VideoGenerationRequestResolution = OpenEnum<typeof VideoGenerationRequestResolution>;
|
|
394
403
|
export type VideoGenerationRequest = {
|
|
395
404
|
/**
|
|
396
405
|
* Aspect ratio of the generated video
|
|
397
406
|
*/
|
|
398
|
-
aspectRatio?:
|
|
407
|
+
aspectRatio?: VideoGenerationRequestAspectRatio | undefined;
|
|
399
408
|
/**
|
|
400
409
|
* 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
410
|
*/
|
|
@@ -425,7 +434,7 @@ export type VideoGenerationRequest = {
|
|
|
425
434
|
/**
|
|
426
435
|
* Resolution of the generated video
|
|
427
436
|
*/
|
|
428
|
-
resolution?:
|
|
437
|
+
resolution?: VideoGenerationRequestResolution | undefined;
|
|
429
438
|
/**
|
|
430
439
|
* 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
440
|
*/
|
|
@@ -436,9 +445,9 @@ export type VideoGenerationRequest = {
|
|
|
436
445
|
size?: string | undefined;
|
|
437
446
|
};
|
|
438
447
|
/** @internal */
|
|
439
|
-
export declare const
|
|
448
|
+
export declare const VideoGenerationRequestAspectRatio$outboundSchema: z.ZodType<string, VideoGenerationRequestAspectRatio>;
|
|
440
449
|
/** @internal */
|
|
441
|
-
export type
|
|
450
|
+
export type VideoGenerationRequestOptions$Outbound = {
|
|
442
451
|
"01ai"?: {
|
|
443
452
|
[k: string]: any | null;
|
|
444
453
|
} | undefined;
|
|
@@ -589,6 +598,9 @@ export type Options$Outbound = {
|
|
|
589
598
|
inceptron?: {
|
|
590
599
|
[k: string]: any | null;
|
|
591
600
|
} | undefined;
|
|
601
|
+
"inferact-vllm"?: {
|
|
602
|
+
[k: string]: any | null;
|
|
603
|
+
} | undefined;
|
|
592
604
|
"inference-net"?: {
|
|
593
605
|
[k: string]: any | null;
|
|
594
606
|
} | undefined;
|
|
@@ -721,6 +733,9 @@ export type Options$Outbound = {
|
|
|
721
733
|
replicate?: {
|
|
722
734
|
[k: string]: any | null;
|
|
723
735
|
} | undefined;
|
|
736
|
+
"sakana-ai"?: {
|
|
737
|
+
[k: string]: any | null;
|
|
738
|
+
} | undefined;
|
|
724
739
|
sambanova?: {
|
|
725
740
|
[k: string]: any | null;
|
|
726
741
|
} | undefined;
|
|
@@ -754,6 +769,9 @@ export type Options$Outbound = {
|
|
|
754
769
|
targon?: {
|
|
755
770
|
[k: string]: any | null;
|
|
756
771
|
} | undefined;
|
|
772
|
+
tenstorrent?: {
|
|
773
|
+
[k: string]: any | null;
|
|
774
|
+
} | undefined;
|
|
757
775
|
together?: {
|
|
758
776
|
[k: string]: any | null;
|
|
759
777
|
} | undefined;
|
|
@@ -786,17 +804,17 @@ export type Options$Outbound = {
|
|
|
786
804
|
} | undefined;
|
|
787
805
|
};
|
|
788
806
|
/** @internal */
|
|
789
|
-
export declare const
|
|
790
|
-
export declare function
|
|
807
|
+
export declare const VideoGenerationRequestOptions$outboundSchema: z.ZodType<VideoGenerationRequestOptions$Outbound, VideoGenerationRequestOptions>;
|
|
808
|
+
export declare function videoGenerationRequestOptionsToJSON(videoGenerationRequestOptions: VideoGenerationRequestOptions): string;
|
|
791
809
|
/** @internal */
|
|
792
810
|
export type VideoGenerationRequestProvider$Outbound = {
|
|
793
|
-
options?:
|
|
811
|
+
options?: VideoGenerationRequestOptions$Outbound | undefined;
|
|
794
812
|
};
|
|
795
813
|
/** @internal */
|
|
796
814
|
export declare const VideoGenerationRequestProvider$outboundSchema: z.ZodType<VideoGenerationRequestProvider$Outbound, VideoGenerationRequestProvider>;
|
|
797
815
|
export declare function videoGenerationRequestProviderToJSON(videoGenerationRequestProvider: VideoGenerationRequestProvider): string;
|
|
798
816
|
/** @internal */
|
|
799
|
-
export declare const
|
|
817
|
+
export declare const VideoGenerationRequestResolution$outboundSchema: z.ZodType<string, VideoGenerationRequestResolution>;
|
|
800
818
|
/** @internal */
|
|
801
819
|
export type VideoGenerationRequest$Outbound = {
|
|
802
820
|
aspect_ratio?: string | undefined;
|
|
@@ -10,7 +10,7 @@ import { InputReference$outboundSchema, } from "./inputreference.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* Aspect ratio of the generated video
|
|
12
12
|
*/
|
|
13
|
-
export const
|
|
13
|
+
export const VideoGenerationRequestAspectRatio = {
|
|
14
14
|
OneHundredAndSixtyNine: "16:9",
|
|
15
15
|
NineHundredAndSixteen: "9:16",
|
|
16
16
|
Eleven: "1:1",
|
|
@@ -24,7 +24,7 @@ export const AspectRatio = {
|
|
|
24
24
|
/**
|
|
25
25
|
* Resolution of the generated video
|
|
26
26
|
*/
|
|
27
|
-
export const
|
|
27
|
+
export const VideoGenerationRequestResolution = {
|
|
28
28
|
FourHundredAndEightyp: "480p",
|
|
29
29
|
SevenHundredAndTwentyp: "720p",
|
|
30
30
|
OneThousandAndEightyp: "1080p",
|
|
@@ -33,10 +33,9 @@ export const Resolution = {
|
|
|
33
33
|
FourK: "4K",
|
|
34
34
|
};
|
|
35
35
|
/** @internal */
|
|
36
|
-
export const
|
|
36
|
+
export const VideoGenerationRequestAspectRatio$outboundSchema = openEnums.outboundSchema(VideoGenerationRequestAspectRatio);
|
|
37
37
|
/** @internal */
|
|
38
|
-
export const
|
|
39
|
-
.object({
|
|
38
|
+
export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
40
39
|
oneai: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
41
40
|
ai21: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
42
41
|
aionLabs: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -87,6 +86,7 @@ export const Options$outboundSchema = z
|
|
|
87
86
|
hyperbolicQuantized: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
88
87
|
inception: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
89
88
|
inceptron: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
89
|
+
inferactVllm: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
90
90
|
inferenceNet: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
91
91
|
infermatic: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
92
92
|
inflection: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -131,6 +131,7 @@ export const Options$outboundSchema = z
|
|
|
131
131
|
reka: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
132
132
|
relace: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
133
133
|
replicate: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
134
|
+
sakanaAi: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
134
135
|
sambanova: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
135
136
|
sambanovaCloaked: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
136
137
|
seed: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -142,6 +143,7 @@ export const Options$outboundSchema = z
|
|
|
142
143
|
streamlake: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
143
144
|
switchpoint: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
144
145
|
targon: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
146
|
+
tenstorrent: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
145
147
|
together: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
146
148
|
togetherLite: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
147
149
|
ubicloud: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -165,33 +167,36 @@ export const Options$outboundSchema = z
|
|
|
165
167
|
googleAiStudio: "google-ai-studio",
|
|
166
168
|
googleVertex: "google-vertex",
|
|
167
169
|
hyperbolicQuantized: "hyperbolic-quantized",
|
|
170
|
+
inferactVllm: "inferact-vllm",
|
|
168
171
|
inferenceNet: "inference-net",
|
|
169
172
|
ioNet: "io-net",
|
|
170
173
|
lynnPrivate: "lynn-private",
|
|
171
174
|
mancerOld: "mancer-old",
|
|
172
175
|
nexAgi: "nex-agi",
|
|
173
176
|
openInference: "open-inference",
|
|
177
|
+
sakanaAi: "sakana-ai",
|
|
174
178
|
sambanovaCloaked: "sambanova-cloaked",
|
|
175
179
|
sfCompute: "sf-compute",
|
|
176
180
|
togetherLite: "together-lite",
|
|
177
181
|
zAi: "z-ai",
|
|
178
182
|
});
|
|
179
183
|
});
|
|
180
|
-
export function
|
|
181
|
-
return JSON.stringify(
|
|
184
|
+
export function videoGenerationRequestOptionsToJSON(videoGenerationRequestOptions) {
|
|
185
|
+
return JSON.stringify(VideoGenerationRequestOptions$outboundSchema.parse(videoGenerationRequestOptions));
|
|
182
186
|
}
|
|
183
187
|
/** @internal */
|
|
184
188
|
export const VideoGenerationRequestProvider$outboundSchema = z.object({
|
|
185
|
-
options: z.lazy(() =>
|
|
189
|
+
options: z.lazy(() => VideoGenerationRequestOptions$outboundSchema)
|
|
190
|
+
.optional(),
|
|
186
191
|
});
|
|
187
192
|
export function videoGenerationRequestProviderToJSON(videoGenerationRequestProvider) {
|
|
188
193
|
return JSON.stringify(VideoGenerationRequestProvider$outboundSchema.parse(videoGenerationRequestProvider));
|
|
189
194
|
}
|
|
190
195
|
/** @internal */
|
|
191
|
-
export const
|
|
196
|
+
export const VideoGenerationRequestResolution$outboundSchema = openEnums.outboundSchema(VideoGenerationRequestResolution);
|
|
192
197
|
/** @internal */
|
|
193
198
|
export const VideoGenerationRequest$outboundSchema = z.object({
|
|
194
|
-
aspectRatio:
|
|
199
|
+
aspectRatio: VideoGenerationRequestAspectRatio$outboundSchema.optional(),
|
|
195
200
|
callbackUrl: z.string().optional(),
|
|
196
201
|
duration: z.int().optional(),
|
|
197
202
|
frameImages: z.array(FrameImage$outboundSchema).optional(),
|
|
@@ -201,7 +206,7 @@ export const VideoGenerationRequest$outboundSchema = z.object({
|
|
|
201
206
|
prompt: z.string(),
|
|
202
207
|
provider: z.lazy(() => VideoGenerationRequestProvider$outboundSchema)
|
|
203
208
|
.optional(),
|
|
204
|
-
resolution:
|
|
209
|
+
resolution: VideoGenerationRequestResolution$outboundSchema.optional(),
|
|
205
210
|
seed: z.int().optional(),
|
|
206
211
|
size: z.string().optional(),
|
|
207
212
|
}).transform((v) => {
|
|
@@ -20,7 +20,7 @@ export type WebSearchConfig = {
|
|
|
20
20
|
*/
|
|
21
21
|
maxCharacters?: number | undefined;
|
|
22
22
|
/**
|
|
23
|
-
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search.
|
|
23
|
+
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped.
|
|
24
24
|
*/
|
|
25
25
|
maxResults?: number | undefined;
|
|
26
26
|
/**
|
|
@@ -15,7 +15,7 @@ export type WebSearchServerTool = {
|
|
|
15
15
|
engine?: WebSearchEngineEnum | undefined;
|
|
16
16
|
filters?: WebSearchDomainFilter | null | undefined;
|
|
17
17
|
/**
|
|
18
|
-
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search.
|
|
18
|
+
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped.
|
|
19
19
|
*/
|
|
20
20
|
maxResults?: number | undefined;
|
|
21
21
|
/**
|
|
@@ -23,7 +23,7 @@ export type WebSearchServerToolConfig = {
|
|
|
23
23
|
*/
|
|
24
24
|
maxCharacters?: number | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search.
|
|
26
|
+
* Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped.
|
|
27
27
|
*/
|
|
28
28
|
maxResults?: number | undefined;
|
|
29
29
|
/**
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* Interval at which spend resets. Null means a lifetime (one-time) budget.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ResetInterval: {
|
|
9
|
+
readonly Daily: "daily";
|
|
10
|
+
readonly Weekly: "weekly";
|
|
11
|
+
readonly Monthly: "monthly";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Interval at which spend resets. Null means a lifetime (one-time) budget.
|
|
15
|
+
*/
|
|
16
|
+
export type ResetInterval = OpenEnum<typeof ResetInterval>;
|
|
17
|
+
export type WorkspaceBudget = {
|
|
18
|
+
/**
|
|
19
|
+
* ISO 8601 timestamp of when the budget was created
|
|
20
|
+
*/
|
|
21
|
+
createdAt: string;
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the budget
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Spending limit in USD for this interval
|
|
28
|
+
*/
|
|
29
|
+
limitUsd: number;
|
|
30
|
+
/**
|
|
31
|
+
* Interval at which spend resets. Null means a lifetime (one-time) budget.
|
|
32
|
+
*/
|
|
33
|
+
resetInterval: ResetInterval | null;
|
|
34
|
+
/**
|
|
35
|
+
* ISO 8601 timestamp of when the budget was last updated
|
|
36
|
+
*/
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
/**
|
|
39
|
+
* ID of the workspace the budget belongs to
|
|
40
|
+
*/
|
|
41
|
+
workspaceId: string;
|
|
42
|
+
};
|
|
43
|
+
/** @internal */
|
|
44
|
+
export declare const ResetInterval$inboundSchema: z.ZodType<ResetInterval, unknown>;
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const WorkspaceBudget$inboundSchema: z.ZodType<WorkspaceBudget, unknown>;
|
|
47
|
+
export declare function workspaceBudgetFromJSON(jsonString: string): SafeParseResult<WorkspaceBudget, SDKValidationError>;
|
|
48
|
+
//# sourceMappingURL=workspacebudget.d.ts.map
|