@openrouter/sdk 0.1.11 → 0.1.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.
Files changed (45) hide show
  1. package/esm/lib/config.d.ts +3 -3
  2. package/esm/lib/config.js +3 -3
  3. package/esm/models/chatgenerationparams.d.ts +1 -0
  4. package/esm/models/chatgenerationparams.js +1 -0
  5. package/esm/models/chatmessagecontentitem.d.ts +4 -0
  6. package/esm/models/chatmessagecontentitem.js +2 -0
  7. package/esm/models/chatmessagecontentitemvideo.d.ts +48 -11
  8. package/esm/models/chatmessagecontentitemvideo.js +64 -11
  9. package/esm/models/chatresponsechoice.d.ts +21 -1
  10. package/esm/models/chatresponsechoice.js +25 -1
  11. package/esm/models/chatstreamingresponsechunk.d.ts +1 -1
  12. package/esm/models/chatstreamingresponsechunk.js +1 -1
  13. package/esm/models/datacollection.d.ts +26 -0
  14. package/esm/models/datacollection.js +19 -0
  15. package/esm/models/index.d.ts +2 -2
  16. package/esm/models/index.js +2 -2
  17. package/esm/models/openairesponsesreasoningeffort.d.ts +1 -0
  18. package/esm/models/openairesponsesreasoningeffort.js +1 -0
  19. package/esm/models/openresponsesreasoning.d.ts +1 -0
  20. package/esm/models/openresponsesreasoning.js +1 -0
  21. package/esm/models/openresponsesrequest.d.ts +4 -36
  22. package/esm/models/openresponsesrequest.js +3 -25
  23. package/esm/models/operations/createembeddings.d.ts +82 -61
  24. package/esm/models/operations/createembeddings.js +71 -47
  25. package/esm/models/operations/createkeys.js +1 -1
  26. package/esm/models/operations/getcurrentkey.js +1 -1
  27. package/esm/models/operations/getkey.js +1 -1
  28. package/esm/models/operations/getparameters.d.ts +2 -8
  29. package/esm/models/operations/getparameters.js +2 -8
  30. package/esm/models/operations/list.js +1 -1
  31. package/esm/models/operations/updatekeys.js +1 -1
  32. package/esm/models/providername.d.ts +2 -26
  33. package/esm/models/providername.js +2 -26
  34. package/esm/models/providersort.d.ts +17 -0
  35. package/esm/models/providersort.js +15 -0
  36. package/esm/models/publicendpoint.d.ts +4 -0
  37. package/esm/models/publicendpoint.js +2 -0
  38. package/esm/models/publicpricing.d.ts +4 -0
  39. package/esm/models/publicpricing.js +2 -0
  40. package/jsr.json +1 -1
  41. package/package.json +1 -1
  42. package/esm/models/chatcompletionfinishreason.d.ts +0 -13
  43. package/esm/models/chatcompletionfinishreason.js +0 -14
  44. package/esm/models/chatstreamingchoice.d.ts +0 -16
  45. package/esm/models/chatstreamingchoice.js +0 -24
@@ -37,8 +37,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
37
37
  export declare const SDK_METADATA: {
38
38
  readonly language: "typescript";
39
39
  readonly openapiDocVersion: "1.0.0";
40
- readonly sdkVersion: "0.1.11";
41
- readonly genVersion: "2.750.0";
42
- readonly userAgent: "speakeasy-sdk/typescript 0.1.11 2.750.0 1.0.0 @openrouter/sdk";
40
+ readonly sdkVersion: "0.1.13";
41
+ readonly genVersion: "2.755.9";
42
+ readonly userAgent: "speakeasy-sdk/typescript 0.1.13 2.755.9 1.0.0 @openrouter/sdk";
43
43
  };
44
44
  //# 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: "0.1.11",
29
- genVersion: "2.750.0",
30
- userAgent: "speakeasy-sdk/typescript 0.1.11 2.750.0 1.0.0 @openrouter/sdk",
28
+ sdkVersion: "0.1.13",
29
+ genVersion: "2.755.9",
30
+ userAgent: "speakeasy-sdk/typescript 0.1.13 2.755.9 1.0.0 @openrouter/sdk",
31
31
  };
32
32
  //# sourceMappingURL=config.js.map
@@ -7,6 +7,7 @@ import { ResponseFormatJSONSchema, ResponseFormatJSONSchema$Outbound } from "./r
7
7
  import { ResponseFormatTextGrammar, ResponseFormatTextGrammar$Outbound } from "./responseformattextgrammar.js";
8
8
  import { ToolDefinitionJson, ToolDefinitionJson$Outbound } from "./tooldefinitionjson.js";
9
9
  export declare const Effort: {
10
+ readonly None: "none";
10
11
  readonly Minimal: "minimal";
11
12
  readonly Low: "low";
12
13
  readonly Medium: "medium";
@@ -11,6 +11,7 @@ import { ResponseFormatJSONSchema$outboundSchema, } from "./responseformatjsonsc
11
11
  import { ResponseFormatTextGrammar$outboundSchema, } from "./responseformattextgrammar.js";
12
12
  import { ToolDefinitionJson$outboundSchema, } from "./tooldefinitionjson.js";
13
13
  export const Effort = {
14
+ None: "none",
14
15
  Minimal: "minimal",
15
16
  Low: "low",
16
17
  Medium: "medium",
@@ -13,6 +13,8 @@ export type ChatMessageContentItem = (ChatMessageContentItemText & {
13
13
  type: "input_audio";
14
14
  }) | (ChatMessageContentItemVideo & {
15
15
  type: "input_video";
16
+ }) | (ChatMessageContentItemVideo & {
17
+ type: "video_url";
16
18
  });
17
19
  /** @internal */
18
20
  export declare const ChatMessageContentItem$inboundSchema: z.ZodType<ChatMessageContentItem, unknown>;
@@ -25,6 +27,8 @@ export type ChatMessageContentItem$Outbound = (ChatMessageContentItemText$Outbou
25
27
  type: "input_audio";
26
28
  }) | (ChatMessageContentItemVideo$Outbound & {
27
29
  type: "input_video";
30
+ }) | (ChatMessageContentItemVideo$Outbound & {
31
+ type: "video_url";
28
32
  });
29
33
  /** @internal */
30
34
  export declare const ChatMessageContentItem$outboundSchema: z.ZodType<ChatMessageContentItem$Outbound, ChatMessageContentItem>;
@@ -13,6 +13,7 @@ export const ChatMessageContentItem$inboundSchema = z.union([
13
13
  ChatMessageContentItemImage$inboundSchema.and(z.object({ type: z.literal("image_url") })),
14
14
  ChatMessageContentItemAudio$inboundSchema.and(z.object({ type: z.literal("input_audio") })),
15
15
  ChatMessageContentItemVideo$inboundSchema.and(z.object({ type: z.literal("input_video") })),
16
+ z.lazy(() => ChatMessageContentItemVideo$inboundSchema).and(z.object({ type: z.literal("video_url") })),
16
17
  ]);
17
18
  /** @internal */
18
19
  export const ChatMessageContentItem$outboundSchema = z.union([
@@ -20,6 +21,7 @@ export const ChatMessageContentItem$outboundSchema = z.union([
20
21
  ChatMessageContentItemImage$outboundSchema.and(z.object({ type: z.literal("image_url") })),
21
22
  ChatMessageContentItemAudio$outboundSchema.and(z.object({ type: z.literal("input_audio") })),
22
23
  ChatMessageContentItemVideo$outboundSchema.and(z.object({ type: z.literal("input_video") })),
24
+ z.lazy(() => ChatMessageContentItemVideo$outboundSchema).and(z.object({ type: z.literal("video_url") })),
23
25
  ]);
24
26
  export function chatMessageContentItemToJSON(chatMessageContentItem) {
25
27
  return JSON.stringify(ChatMessageContentItem$outboundSchema.parse(chatMessageContentItem));
@@ -1,31 +1,68 @@
1
1
  import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
- export type VideoUrl = {
4
+ export type VideoUrl2 = {
5
5
  url: string;
6
6
  };
7
- export type ChatMessageContentItemVideo = {
7
+ export type ChatMessageContentItemVideoVideoURL = {
8
+ type: "video_url";
9
+ videoUrl: VideoUrl2;
10
+ };
11
+ export type VideoUrl1 = {
12
+ url: string;
13
+ };
14
+ export type ChatMessageContentItemVideoInputVideo = {
8
15
  type: "input_video";
9
- videoUrl: VideoUrl;
16
+ videoUrl: VideoUrl1;
10
17
  };
18
+ export type ChatMessageContentItemVideo = ChatMessageContentItemVideoInputVideo | ChatMessageContentItemVideoVideoURL;
11
19
  /** @internal */
12
- export declare const VideoUrl$inboundSchema: z.ZodType<VideoUrl, unknown>;
20
+ export declare const VideoUrl2$inboundSchema: z.ZodType<VideoUrl2, unknown>;
13
21
  /** @internal */
14
- export type VideoUrl$Outbound = {
22
+ export type VideoUrl2$Outbound = {
15
23
  url: string;
16
24
  };
17
25
  /** @internal */
18
- export declare const VideoUrl$outboundSchema: z.ZodType<VideoUrl$Outbound, VideoUrl>;
19
- export declare function videoUrlToJSON(videoUrl: VideoUrl): string;
20
- export declare function videoUrlFromJSON(jsonString: string): SafeParseResult<VideoUrl, SDKValidationError>;
26
+ export declare const VideoUrl2$outboundSchema: z.ZodType<VideoUrl2$Outbound, VideoUrl2>;
27
+ export declare function videoUrl2ToJSON(videoUrl2: VideoUrl2): string;
28
+ export declare function videoUrl2FromJSON(jsonString: string): SafeParseResult<VideoUrl2, SDKValidationError>;
21
29
  /** @internal */
22
- export declare const ChatMessageContentItemVideo$inboundSchema: z.ZodType<ChatMessageContentItemVideo, unknown>;
30
+ export declare const ChatMessageContentItemVideoVideoURL$inboundSchema: z.ZodType<ChatMessageContentItemVideoVideoURL, unknown>;
23
31
  /** @internal */
24
- export type ChatMessageContentItemVideo$Outbound = {
32
+ export type ChatMessageContentItemVideoVideoURL$Outbound = {
33
+ type: "video_url";
34
+ video_url: VideoUrl2$Outbound;
35
+ };
36
+ /** @internal */
37
+ export declare const ChatMessageContentItemVideoVideoURL$outboundSchema: z.ZodType<ChatMessageContentItemVideoVideoURL$Outbound, ChatMessageContentItemVideoVideoURL>;
38
+ export declare function chatMessageContentItemVideoVideoURLToJSON(chatMessageContentItemVideoVideoURL: ChatMessageContentItemVideoVideoURL): string;
39
+ export declare function chatMessageContentItemVideoVideoURLFromJSON(jsonString: string): SafeParseResult<ChatMessageContentItemVideoVideoURL, SDKValidationError>;
40
+ /** @internal */
41
+ export declare const VideoUrl1$inboundSchema: z.ZodType<VideoUrl1, unknown>;
42
+ /** @internal */
43
+ export type VideoUrl1$Outbound = {
44
+ url: string;
45
+ };
46
+ /** @internal */
47
+ export declare const VideoUrl1$outboundSchema: z.ZodType<VideoUrl1$Outbound, VideoUrl1>;
48
+ export declare function videoUrl1ToJSON(videoUrl1: VideoUrl1): string;
49
+ export declare function videoUrl1FromJSON(jsonString: string): SafeParseResult<VideoUrl1, SDKValidationError>;
50
+ /** @internal */
51
+ export declare const ChatMessageContentItemVideoInputVideo$inboundSchema: z.ZodType<ChatMessageContentItemVideoInputVideo, unknown>;
52
+ /** @internal */
53
+ export type ChatMessageContentItemVideoInputVideo$Outbound = {
25
54
  type: "input_video";
26
- video_url: VideoUrl$Outbound;
55
+ video_url: VideoUrl1$Outbound;
27
56
  };
28
57
  /** @internal */
58
+ export declare const ChatMessageContentItemVideoInputVideo$outboundSchema: z.ZodType<ChatMessageContentItemVideoInputVideo$Outbound, ChatMessageContentItemVideoInputVideo>;
59
+ export declare function chatMessageContentItemVideoInputVideoToJSON(chatMessageContentItemVideoInputVideo: ChatMessageContentItemVideoInputVideo): string;
60
+ export declare function chatMessageContentItemVideoInputVideoFromJSON(jsonString: string): SafeParseResult<ChatMessageContentItemVideoInputVideo, SDKValidationError>;
61
+ /** @internal */
62
+ export declare const ChatMessageContentItemVideo$inboundSchema: z.ZodType<ChatMessageContentItemVideo, unknown>;
63
+ /** @internal */
64
+ export type ChatMessageContentItemVideo$Outbound = ChatMessageContentItemVideoInputVideo$Outbound | ChatMessageContentItemVideoVideoURL$Outbound;
65
+ /** @internal */
29
66
  export declare const ChatMessageContentItemVideo$outboundSchema: z.ZodType<ChatMessageContentItemVideo$Outbound, ChatMessageContentItemVideo>;
30
67
  export declare function chatMessageContentItemVideoToJSON(chatMessageContentItemVideo: ChatMessageContentItemVideo): string;
31
68
  export declare function chatMessageContentItemVideoFromJSON(jsonString: string): SafeParseResult<ChatMessageContentItemVideo, SDKValidationError>;
@@ -5,38 +5,91 @@ import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../lib/primitives.js";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  /** @internal */
8
- export const VideoUrl$inboundSchema = z.object({
8
+ export const VideoUrl2$inboundSchema = z.object({
9
9
  url: z.string(),
10
10
  });
11
11
  /** @internal */
12
- export const VideoUrl$outboundSchema = z
13
- .object({
12
+ export const VideoUrl2$outboundSchema = z.object({
14
13
  url: z.string(),
15
14
  });
16
- export function videoUrlToJSON(videoUrl) {
17
- return JSON.stringify(VideoUrl$outboundSchema.parse(videoUrl));
15
+ export function videoUrl2ToJSON(videoUrl2) {
16
+ return JSON.stringify(VideoUrl2$outboundSchema.parse(videoUrl2));
18
17
  }
19
- export function videoUrlFromJSON(jsonString) {
20
- return safeParse(jsonString, (x) => VideoUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VideoUrl' from JSON`);
18
+ export function videoUrl2FromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => VideoUrl2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VideoUrl2' from JSON`);
21
20
  }
22
21
  /** @internal */
23
- export const ChatMessageContentItemVideo$inboundSchema = z.object({
22
+ export const ChatMessageContentItemVideoVideoURL$inboundSchema = z.object({
23
+ type: z.literal("video_url"),
24
+ video_url: z.lazy(() => VideoUrl2$inboundSchema),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "video_url": "videoUrl",
28
+ });
29
+ });
30
+ /** @internal */
31
+ export const ChatMessageContentItemVideoVideoURL$outboundSchema = z.object({
32
+ type: z.literal("video_url"),
33
+ videoUrl: z.lazy(() => VideoUrl2$outboundSchema),
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ videoUrl: "video_url",
37
+ });
38
+ });
39
+ export function chatMessageContentItemVideoVideoURLToJSON(chatMessageContentItemVideoVideoURL) {
40
+ return JSON.stringify(ChatMessageContentItemVideoVideoURL$outboundSchema.parse(chatMessageContentItemVideoVideoURL));
41
+ }
42
+ export function chatMessageContentItemVideoVideoURLFromJSON(jsonString) {
43
+ return safeParse(jsonString, (x) => ChatMessageContentItemVideoVideoURL$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatMessageContentItemVideoVideoURL' from JSON`);
44
+ }
45
+ /** @internal */
46
+ export const VideoUrl1$inboundSchema = z.object({
47
+ url: z.string(),
48
+ });
49
+ /** @internal */
50
+ export const VideoUrl1$outboundSchema = z.object({
51
+ url: z.string(),
52
+ });
53
+ export function videoUrl1ToJSON(videoUrl1) {
54
+ return JSON.stringify(VideoUrl1$outboundSchema.parse(videoUrl1));
55
+ }
56
+ export function videoUrl1FromJSON(jsonString) {
57
+ return safeParse(jsonString, (x) => VideoUrl1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VideoUrl1' from JSON`);
58
+ }
59
+ /** @internal */
60
+ export const ChatMessageContentItemVideoInputVideo$inboundSchema = z.object({
24
61
  type: z.literal("input_video"),
25
- video_url: z.lazy(() => VideoUrl$inboundSchema),
62
+ video_url: z.lazy(() => VideoUrl1$inboundSchema),
26
63
  }).transform((v) => {
27
64
  return remap$(v, {
28
65
  "video_url": "videoUrl",
29
66
  });
30
67
  });
31
68
  /** @internal */
32
- export const ChatMessageContentItemVideo$outboundSchema = z.object({
69
+ export const ChatMessageContentItemVideoInputVideo$outboundSchema = z.object({
33
70
  type: z.literal("input_video"),
34
- videoUrl: z.lazy(() => VideoUrl$outboundSchema),
71
+ videoUrl: z.lazy(() => VideoUrl1$outboundSchema),
35
72
  }).transform((v) => {
36
73
  return remap$(v, {
37
74
  videoUrl: "video_url",
38
75
  });
39
76
  });
77
+ export function chatMessageContentItemVideoInputVideoToJSON(chatMessageContentItemVideoInputVideo) {
78
+ return JSON.stringify(ChatMessageContentItemVideoInputVideo$outboundSchema.parse(chatMessageContentItemVideoInputVideo));
79
+ }
80
+ export function chatMessageContentItemVideoInputVideoFromJSON(jsonString) {
81
+ return safeParse(jsonString, (x) => ChatMessageContentItemVideoInputVideo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatMessageContentItemVideoInputVideo' from JSON`);
82
+ }
83
+ /** @internal */
84
+ export const ChatMessageContentItemVideo$inboundSchema = z.union([
85
+ z.lazy(() => ChatMessageContentItemVideoInputVideo$inboundSchema),
86
+ z.lazy(() => ChatMessageContentItemVideoVideoURL$inboundSchema),
87
+ ]);
88
+ /** @internal */
89
+ export const ChatMessageContentItemVideo$outboundSchema = z.union([
90
+ z.lazy(() => ChatMessageContentItemVideoInputVideo$outboundSchema),
91
+ z.lazy(() => ChatMessageContentItemVideoVideoURL$outboundSchema),
92
+ ]);
40
93
  export function chatMessageContentItemVideoToJSON(chatMessageContentItemVideo) {
41
94
  return JSON.stringify(ChatMessageContentItemVideo$outboundSchema.parse(chatMessageContentItemVideo));
42
95
  }
@@ -1,16 +1,36 @@
1
1
  import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
2
3
  import { Result as SafeParseResult } from "../types/fp.js";
3
4
  import { AssistantMessage } from "./assistantmessage.js";
4
- import { ChatCompletionFinishReason } from "./chatcompletionfinishreason.js";
5
5
  import { ChatMessageTokenLogprobs } from "./chatmessagetokenlogprobs.js";
6
+ import { ChatStreamingMessageChunk } from "./chatstreamingmessagechunk.js";
6
7
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
8
+ export declare const ChatCompletionFinishReason: {
9
+ readonly ToolCalls: "tool_calls";
10
+ readonly Stop: "stop";
11
+ readonly Length: "length";
12
+ readonly ContentFilter: "content_filter";
13
+ readonly Error: "error";
14
+ };
15
+ export type ChatCompletionFinishReason = OpenEnum<typeof ChatCompletionFinishReason>;
7
16
  export type ChatResponseChoice = {
8
17
  finishReason: ChatCompletionFinishReason | null;
9
18
  index: number;
10
19
  message: AssistantMessage;
11
20
  logprobs?: ChatMessageTokenLogprobs | null | undefined;
12
21
  };
22
+ export type ChatStreamingChoice = {
23
+ delta: ChatStreamingMessageChunk;
24
+ finishReason: ChatCompletionFinishReason | null;
25
+ index: number;
26
+ logprobs?: ChatMessageTokenLogprobs | null | undefined;
27
+ };
28
+ /** @internal */
29
+ export declare const ChatCompletionFinishReason$inboundSchema: z.ZodType<ChatCompletionFinishReason, unknown>;
13
30
  /** @internal */
14
31
  export declare const ChatResponseChoice$inboundSchema: z.ZodType<ChatResponseChoice, unknown>;
15
32
  export declare function chatResponseChoiceFromJSON(jsonString: string): SafeParseResult<ChatResponseChoice, SDKValidationError>;
33
+ /** @internal */
34
+ export declare const ChatStreamingChoice$inboundSchema: z.ZodType<ChatStreamingChoice, unknown>;
35
+ export declare function chatStreamingChoiceFromJSON(jsonString: string): SafeParseResult<ChatStreamingChoice, SDKValidationError>;
16
36
  //# sourceMappingURL=chatresponsechoice.d.ts.map
@@ -4,9 +4,19 @@
4
4
  import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../lib/primitives.js";
6
6
  import { safeParse } from "../lib/schemas.js";
7
+ import * as openEnums from "../types/enums.js";
7
8
  import { AssistantMessage$inboundSchema, } from "./assistantmessage.js";
8
- import { ChatCompletionFinishReason$inboundSchema, } from "./chatcompletionfinishreason.js";
9
9
  import { ChatMessageTokenLogprobs$inboundSchema, } from "./chatmessagetokenlogprobs.js";
10
+ import { ChatStreamingMessageChunk$inboundSchema, } from "./chatstreamingmessagechunk.js";
11
+ export const ChatCompletionFinishReason = {
12
+ ToolCalls: "tool_calls",
13
+ Stop: "stop",
14
+ Length: "length",
15
+ ContentFilter: "content_filter",
16
+ Error: "error",
17
+ };
18
+ /** @internal */
19
+ export const ChatCompletionFinishReason$inboundSchema = openEnums.inboundSchema(ChatCompletionFinishReason);
10
20
  /** @internal */
11
21
  export const ChatResponseChoice$inboundSchema = z.object({
12
22
  finish_reason: z.nullable(ChatCompletionFinishReason$inboundSchema),
@@ -21,4 +31,18 @@ export const ChatResponseChoice$inboundSchema = z.object({
21
31
  export function chatResponseChoiceFromJSON(jsonString) {
22
32
  return safeParse(jsonString, (x) => ChatResponseChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatResponseChoice' from JSON`);
23
33
  }
34
+ /** @internal */
35
+ export const ChatStreamingChoice$inboundSchema = z.object({
36
+ delta: ChatStreamingMessageChunk$inboundSchema,
37
+ finish_reason: z.nullable(ChatCompletionFinishReason$inboundSchema),
38
+ index: z.number(),
39
+ logprobs: z.nullable(ChatMessageTokenLogprobs$inboundSchema).optional(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ "finish_reason": "finishReason",
43
+ });
44
+ });
45
+ export function chatStreamingChoiceFromJSON(jsonString) {
46
+ return safeParse(jsonString, (x) => ChatStreamingChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatStreamingChoice' from JSON`);
47
+ }
24
48
  //# sourceMappingURL=chatresponsechoice.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
3
  import { ChatGenerationTokenUsage } from "./chatgenerationtokenusage.js";
4
- import { ChatStreamingChoice } from "./chatstreamingchoice.js";
4
+ import { ChatStreamingChoice } from "./chatresponsechoice.js";
5
5
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
6
6
  export type ChatStreamingResponseChunkError = {
7
7
  message: string;
@@ -5,7 +5,7 @@ import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../lib/primitives.js";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  import { ChatGenerationTokenUsage$inboundSchema, } from "./chatgenerationtokenusage.js";
8
- import { ChatStreamingChoice$inboundSchema, } from "./chatstreamingchoice.js";
8
+ import { ChatStreamingChoice$inboundSchema, } from "./chatresponsechoice.js";
9
9
  /** @internal */
10
10
  export const ChatStreamingResponseChunkError$inboundSchema = z.object({
11
11
  message: z.string(),
@@ -0,0 +1,26 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
5
+ *
6
+ * @remarks
7
+ * - allow: (default) allow providers which store user data non-transiently and may train on it
8
+ *
9
+ * - deny: use only providers which do not collect user data.
10
+ */
11
+ export declare const DataCollection: {
12
+ readonly Deny: "deny";
13
+ readonly Allow: "allow";
14
+ };
15
+ /**
16
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
17
+ *
18
+ * @remarks
19
+ * - allow: (default) allow providers which store user data non-transiently and may train on it
20
+ *
21
+ * - deny: use only providers which do not collect user data.
22
+ */
23
+ export type DataCollection = OpenEnum<typeof DataCollection>;
24
+ /** @internal */
25
+ export declare const DataCollection$outboundSchema: z.ZodType<string, DataCollection>;
26
+ //# sourceMappingURL=datacollection.d.ts.map
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as openEnums from "../types/enums.js";
5
+ /**
6
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
7
+ *
8
+ * @remarks
9
+ * - allow: (default) allow providers which store user data non-transiently and may train on it
10
+ *
11
+ * - deny: use only providers which do not collect user data.
12
+ */
13
+ export const DataCollection = {
14
+ Deny: "deny",
15
+ Allow: "allow",
16
+ };
17
+ /** @internal */
18
+ export const DataCollection$outboundSchema = openEnums.outboundSchema(DataCollection);
19
+ //# sourceMappingURL=datacollection.js.map
@@ -2,7 +2,6 @@ export * from "./activityitem.js";
2
2
  export * from "./assistantmessage.js";
3
3
  export * from "./badgatewayresponseerrordata.js";
4
4
  export * from "./badrequestresponseerrordata.js";
5
- export * from "./chatcompletionfinishreason.js";
6
5
  export * from "./chaterror.js";
7
6
  export * from "./chatgenerationparams.js";
8
7
  export * from "./chatgenerationtokenusage.js";
@@ -16,7 +15,6 @@ export * from "./chatmessagetokenlogprobs.js";
16
15
  export * from "./chatmessagetoolcall.js";
17
16
  export * from "./chatresponse.js";
18
17
  export * from "./chatresponsechoice.js";
19
- export * from "./chatstreamingchoice.js";
20
18
  export * from "./chatstreamingmessagechunk.js";
21
19
  export * from "./chatstreamingmessagetoolcall.js";
22
20
  export * from "./chatstreamingresponsechunk.js";
@@ -27,6 +25,7 @@ export * from "./completionlogprobs.js";
27
25
  export * from "./completionresponse.js";
28
26
  export * from "./completionusage.js";
29
27
  export * from "./createchargerequest.js";
28
+ export * from "./datacollection.js";
30
29
  export * from "./defaultparameters.js";
31
30
  export * from "./edgenetworktimeoutresponseerrordata.js";
32
31
  export * from "./endpointstatus.js";
@@ -96,6 +95,7 @@ export * from "./paymentrequiredresponseerrordata.js";
96
95
  export * from "./perrequestlimits.js";
97
96
  export * from "./providername.js";
98
97
  export * from "./provideroverloadedresponseerrordata.js";
98
+ export * from "./providersort.js";
99
99
  export * from "./publicendpoint.js";
100
100
  export * from "./publicpricing.js";
101
101
  export * from "./quantization.js";
@@ -5,7 +5,6 @@ export * from "./activityitem.js";
5
5
  export * from "./assistantmessage.js";
6
6
  export * from "./badgatewayresponseerrordata.js";
7
7
  export * from "./badrequestresponseerrordata.js";
8
- export * from "./chatcompletionfinishreason.js";
9
8
  export * from "./chaterror.js";
10
9
  export * from "./chatgenerationparams.js";
11
10
  export * from "./chatgenerationtokenusage.js";
@@ -19,7 +18,6 @@ export * from "./chatmessagetokenlogprobs.js";
19
18
  export * from "./chatmessagetoolcall.js";
20
19
  export * from "./chatresponse.js";
21
20
  export * from "./chatresponsechoice.js";
22
- export * from "./chatstreamingchoice.js";
23
21
  export * from "./chatstreamingmessagechunk.js";
24
22
  export * from "./chatstreamingmessagetoolcall.js";
25
23
  export * from "./chatstreamingresponsechunk.js";
@@ -30,6 +28,7 @@ export * from "./completionlogprobs.js";
30
28
  export * from "./completionresponse.js";
31
29
  export * from "./completionusage.js";
32
30
  export * from "./createchargerequest.js";
31
+ export * from "./datacollection.js";
33
32
  export * from "./defaultparameters.js";
34
33
  export * from "./edgenetworktimeoutresponseerrordata.js";
35
34
  export * from "./endpointstatus.js";
@@ -99,6 +98,7 @@ export * from "./paymentrequiredresponseerrordata.js";
99
98
  export * from "./perrequestlimits.js";
100
99
  export * from "./providername.js";
101
100
  export * from "./provideroverloadedresponseerrordata.js";
101
+ export * from "./providersort.js";
102
102
  export * from "./publicendpoint.js";
103
103
  export * from "./publicpricing.js";
104
104
  export * from "./quantization.js";
@@ -5,6 +5,7 @@ export declare const OpenAIResponsesReasoningEffort: {
5
5
  readonly Medium: "medium";
6
6
  readonly Low: "low";
7
7
  readonly Minimal: "minimal";
8
+ readonly None: "none";
8
9
  };
9
10
  export type OpenAIResponsesReasoningEffort = OpenEnum<typeof OpenAIResponsesReasoningEffort>;
10
11
  /** @internal */
@@ -7,6 +7,7 @@ export const OpenAIResponsesReasoningEffort = {
7
7
  Medium: "medium",
8
8
  Low: "low",
9
9
  Minimal: "minimal",
10
+ None: "none",
10
11
  };
11
12
  /** @internal */
12
13
  export const OpenAIResponsesReasoningEffort$inboundSchema = openEnums.inboundSchema(OpenAIResponsesReasoningEffort);
@@ -24,6 +24,7 @@ export declare const OpenResponsesReasoningFormat: {
24
24
  readonly OpenaiResponsesV1: "openai-responses-v1";
25
25
  readonly XaiResponsesV1: "xai-responses-v1";
26
26
  readonly AnthropicClaudeV1: "anthropic-claude-v1";
27
+ readonly GoogleGeminiV1: "google-gemini-v1";
27
28
  };
28
29
  export type OpenResponsesReasoningFormat = OpenEnum<typeof OpenResponsesReasoningFormat>;
29
30
  /**
@@ -23,6 +23,7 @@ export const OpenResponsesReasoningFormat = {
23
23
  OpenaiResponsesV1: "openai-responses-v1",
24
24
  XaiResponsesV1: "xai-responses-v1",
25
25
  AnthropicClaudeV1: "anthropic-claude-v1",
26
+ GoogleGeminiV1: "google-gemini-v1",
26
27
  };
27
28
  /** @internal */
28
29
  export const OpenResponsesReasoningType$outboundSchema = z.enum(OpenResponsesReasoningType);
@@ -1,5 +1,6 @@
1
1
  import * as z from "zod/v4";
2
2
  import { ClosedEnum, OpenEnum } from "../types/enums.js";
3
+ import { DataCollection } from "./datacollection.js";
3
4
  import { OpenAIResponsesIncludable } from "./openairesponsesincludable.js";
4
5
  import { OpenAIResponsesPrompt, OpenAIResponsesPrompt$Outbound } from "./openairesponsesprompt.js";
5
6
  import { OpenAIResponsesToolChoiceUnion, OpenAIResponsesToolChoiceUnion$Outbound } from "./openairesponsestoolchoiceunion.js";
@@ -11,6 +12,7 @@ import { OpenResponsesWebSearchPreview20250311Tool, OpenResponsesWebSearchPrevie
11
12
  import { OpenResponsesWebSearchPreviewTool, OpenResponsesWebSearchPreviewTool$Outbound } from "./openresponseswebsearchpreviewtool.js";
12
13
  import { OpenResponsesWebSearchTool, OpenResponsesWebSearchTool$Outbound } from "./openresponseswebsearchtool.js";
13
14
  import { ProviderName } from "./providername.js";
15
+ import { ProviderSort } from "./providersort.js";
14
16
  import { Quantization } from "./quantization.js";
15
17
  export declare const OpenResponsesRequestType: {
16
18
  readonly Function: "function";
@@ -42,40 +44,9 @@ export declare const Truncation: {
42
44
  readonly Disabled: "disabled";
43
45
  };
44
46
  export type Truncation = OpenEnum<typeof Truncation>;
45
- /**
46
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
47
- *
48
- * @remarks
49
- * - allow: (default) allow providers which store user data non-transiently and may train on it
50
- * - deny: use only providers which do not collect user data.
51
- */
52
- export declare const DataCollection: {
53
- readonly Deny: "deny";
54
- readonly Allow: "allow";
55
- };
56
- /**
57
- * Data collection setting. If no available model provider meets the requirement, your request will return an error.
58
- *
59
- * @remarks
60
- * - allow: (default) allow providers which store user data non-transiently and may train on it
61
- * - deny: use only providers which do not collect user data.
62
- */
63
- export type DataCollection = OpenEnum<typeof DataCollection>;
64
47
  export type Order = ProviderName | string;
65
48
  export type Only = ProviderName | string;
66
49
  export type Ignore = ProviderName | string;
67
- /**
68
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
69
- */
70
- export declare const Sort: {
71
- readonly Price: "price";
72
- readonly Throughput: "throughput";
73
- readonly Latency: "latency";
74
- };
75
- /**
76
- * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
77
- */
78
- export type Sort = OpenEnum<typeof Sort>;
79
50
  /**
80
51
  * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
81
52
  */
@@ -122,6 +93,7 @@ export type Provider = {
122
93
  *
123
94
  * @remarks
124
95
  * - allow: (default) allow providers which store user data non-transiently and may train on it
96
+ *
125
97
  * - deny: use only providers which do not collect user data.
126
98
  */
127
99
  dataCollection?: DataCollection | null | undefined;
@@ -152,7 +124,7 @@ export type Provider = {
152
124
  /**
153
125
  * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
154
126
  */
155
- sort?: Sort | null | undefined;
127
+ sort?: ProviderSort | null | undefined;
156
128
  /**
157
129
  * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
158
130
  */
@@ -279,8 +251,6 @@ export declare const ServiceTier$outboundSchema: z.ZodType<string, ServiceTier>;
279
251
  /** @internal */
280
252
  export declare const Truncation$outboundSchema: z.ZodType<string, Truncation>;
281
253
  /** @internal */
282
- export declare const DataCollection$outboundSchema: z.ZodType<string, DataCollection>;
283
- /** @internal */
284
254
  export type Order$Outbound = string | string;
285
255
  /** @internal */
286
256
  export declare const Order$outboundSchema: z.ZodType<Order$Outbound, Order>;
@@ -296,8 +266,6 @@ export type Ignore$Outbound = string | string;
296
266
  export declare const Ignore$outboundSchema: z.ZodType<Ignore$Outbound, Ignore>;
297
267
  export declare function ignoreToJSON(ignore: Ignore): string;
298
268
  /** @internal */
299
- export declare const Sort$outboundSchema: z.ZodType<string, Sort>;
300
- /** @internal */
301
269
  export type MaxPrice$Outbound = {
302
270
  prompt?: any | undefined;
303
271
  completion?: any | undefined;