@openrouter/sdk 1.5.102 → 1.5.103

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.
@@ -49,8 +49,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
49
49
  export declare const SDK_METADATA: {
50
50
  readonly language: "typescript";
51
51
  readonly openapiDocVersion: "1.0.0";
52
- readonly sdkVersion: "1.5.102";
52
+ readonly sdkVersion: "1.5.103";
53
53
  readonly genVersion: "2.960.8";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.5.102 2.960.8 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.103 2.960.8 1.0.0 @openrouter/sdk";
55
55
  };
56
56
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -25,8 +25,8 @@ export function serverURLFromOptions(options) {
25
25
  export const SDK_METADATA = {
26
26
  language: "typescript",
27
27
  openapiDocVersion: "1.0.0",
28
- sdkVersion: "1.5.102",
28
+ sdkVersion: "1.5.103",
29
29
  genVersion: "2.960.8",
30
- userAgent: "speakeasy-sdk/typescript 1.5.102 2.960.8 1.0.0 @openrouter/sdk",
30
+ userAgent: "speakeasy-sdk/typescript 1.5.103 2.960.8 1.0.0 @openrouter/sdk",
31
31
  };
32
32
  //# sourceMappingURL=config.js.map
@@ -277,6 +277,7 @@ export type BatchObjectUrlCitation = {
277
277
  endIndex: number;
278
278
  startIndex: number;
279
279
  title: string;
280
+ uncited?: true | undefined;
280
281
  url: string;
281
282
  };
282
283
  export type AnnotationURLCitation = {
@@ -421,6 +421,7 @@ export const BatchObjectUrlCitation$inboundSchema = z.object({
421
421
  end_index: z.int(),
422
422
  start_index: z.int(),
423
423
  title: z.string(),
424
+ uncited: z.literal(true).optional(),
424
425
  url: z.string(),
425
426
  }).transform((v) => {
426
427
  return remap$(v, {
@@ -42,6 +42,7 @@ export declare const BYOKProviderSlug: {
42
42
  readonly Deepseek: "deepseek";
43
43
  readonly Dekallm: "dekallm";
44
44
  readonly Digitalocean: "digitalocean";
45
+ readonly Doubleword: "doubleword";
45
46
  readonly Elevenlabs: "elevenlabs";
46
47
  readonly Featherless: "featherless";
47
48
  readonly Fireworks: "fireworks";
@@ -44,6 +44,7 @@ export const BYOKProviderSlug = {
44
44
  Deepseek: "deepseek",
45
45
  Dekallm: "dekallm",
46
46
  Digitalocean: "digitalocean",
47
+ Doubleword: "doubleword",
47
48
  Elevenlabs: "elevenlabs",
48
49
  Featherless: "featherless",
49
50
  Fireworks: "fireworks",
@@ -1,7 +1,29 @@
1
1
  import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
2
3
  import { ProviderName } from "./providername.js";
3
4
  import { ProviderSort } from "./providersort.js";
4
5
  import { ProviderSortConfig, ProviderSortConfig$Outbound } from "./providersortconfig.js";
6
+ /**
7
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
8
+ *
9
+ * @remarks
10
+ * - allow: (default) allow providers that may train on user data
11
+ *
12
+ * - deny: use only providers that do not train on user data. Providers may still retain prompts; set `zdr: true` to exclude retention.
13
+ */
14
+ export declare const ImageGenerationRequestDataCollection: {
15
+ readonly Deny: "deny";
16
+ readonly Allow: "allow";
17
+ };
18
+ /**
19
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
20
+ *
21
+ * @remarks
22
+ * - allow: (default) allow providers that may train on user data
23
+ *
24
+ * - deny: use only providers that do not train on user data. Providers may still retain prompts; set `zdr: true` to exclude retention.
25
+ */
26
+ export type ImageGenerationRequestDataCollection = OpenEnum<typeof ImageGenerationRequestDataCollection>;
5
27
  export type ImageGenerationProviderPreferencesIgnore = ProviderName | string;
6
28
  export type ImageGenerationProviderPreferencesOnly = ProviderName | string;
7
29
  /**
@@ -140,6 +162,9 @@ export type ImageGenerationProviderPreferencesOptions = {
140
162
  digitalocean?: {
141
163
  [k: string]: any;
142
164
  } | undefined;
165
+ doubleword?: {
166
+ [k: string]: any;
167
+ } | undefined;
143
168
  elevenlabs?: {
144
169
  [k: string]: any;
145
170
  } | undefined;
@@ -494,6 +519,15 @@ export type ImageGenerationProviderPreferences = {
494
519
  * - false: use only the primary/custom provider, and return the upstream error if it's unavailable.
495
520
  */
496
521
  allowFallbacks?: boolean | null | undefined;
522
+ /**
523
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
524
+ *
525
+ * @remarks
526
+ * - allow: (default) allow providers that may train on user data
527
+ *
528
+ * - deny: use only providers that do not train on user data. Providers may still retain prompts; set `zdr: true` to exclude retention.
529
+ */
530
+ dataCollection?: ImageGenerationRequestDataCollection | null | undefined;
497
531
  /**
498
532
  * List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
499
533
  */
@@ -511,8 +545,14 @@ export type ImageGenerationProviderPreferences = {
511
545
  * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
512
546
  */
513
547
  sort?: ProviderSort | ProviderSortConfig | null | undefined;
548
+ /**
549
+ * Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
550
+ */
551
+ zdr?: boolean | null | undefined;
514
552
  };
515
553
  /** @internal */
554
+ export declare const ImageGenerationRequestDataCollection$outboundSchema: z.ZodType<string, ImageGenerationRequestDataCollection>;
555
+ /** @internal */
516
556
  export type ImageGenerationProviderPreferencesIgnore$Outbound = string | string;
517
557
  /** @internal */
518
558
  export declare const ImageGenerationProviderPreferencesIgnore$outboundSchema: z.ZodType<ImageGenerationProviderPreferencesIgnore$Outbound, ImageGenerationProviderPreferencesIgnore>;
@@ -656,6 +696,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
656
696
  digitalocean?: {
657
697
  [k: string]: any;
658
698
  } | undefined;
699
+ doubleword?: {
700
+ [k: string]: any;
701
+ } | undefined;
659
702
  elevenlabs?: {
660
703
  [k: string]: any;
661
704
  } | undefined;
@@ -1009,11 +1052,13 @@ export declare function imageGenerationProviderPreferencesSortToJSON(imageGenera
1009
1052
  /** @internal */
1010
1053
  export type ImageGenerationProviderPreferences$Outbound = {
1011
1054
  allow_fallbacks?: boolean | null | undefined;
1055
+ data_collection?: string | null | undefined;
1012
1056
  ignore?: Array<string | string> | null | undefined;
1013
1057
  only?: Array<string | string> | null | undefined;
1014
1058
  options?: ImageGenerationProviderPreferencesOptions$Outbound | undefined;
1015
1059
  order?: Array<string | string> | null | undefined;
1016
1060
  sort?: string | ProviderSortConfig$Outbound | null | undefined;
1061
+ zdr?: boolean | null | undefined;
1017
1062
  };
1018
1063
  /** @internal */
1019
1064
  export declare const ImageGenerationProviderPreferences$outboundSchema: z.ZodType<ImageGenerationProviderPreferences$Outbound, ImageGenerationProviderPreferences>;
@@ -3,9 +3,24 @@
3
3
  */
4
4
  import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../lib/primitives.js";
6
+ import * as openEnums from "../types/enums.js";
6
7
  import { ProviderName$outboundSchema } from "./providername.js";
7
8
  import { ProviderSort$outboundSchema } from "./providersort.js";
8
9
  import { ProviderSortConfig$outboundSchema, } from "./providersortconfig.js";
10
+ /**
11
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
12
+ *
13
+ * @remarks
14
+ * - allow: (default) allow providers that may train on user data
15
+ *
16
+ * - deny: use only providers that do not train on user data. Providers may still retain prompts; set `zdr: true` to exclude retention.
17
+ */
18
+ export const ImageGenerationRequestDataCollection = {
19
+ Deny: "deny",
20
+ Allow: "allow",
21
+ };
22
+ /** @internal */
23
+ export const ImageGenerationRequestDataCollection$outboundSchema = openEnums.outboundSchema(ImageGenerationRequestDataCollection);
9
24
  /** @internal */
10
25
  export const ImageGenerationProviderPreferencesIgnore$outboundSchema = z.union([ProviderName$outboundSchema, z.string()]);
11
26
  export function imageGenerationProviderPreferencesIgnoreToJSON(imageGenerationProviderPreferencesIgnore) {
@@ -62,6 +77,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
62
77
  deepseek: z.record(z.string(), z.any()).optional(),
63
78
  dekallm: z.record(z.string(), z.any()).optional(),
64
79
  digitalocean: z.record(z.string(), z.any()).optional(),
80
+ doubleword: z.record(z.string(), z.any()).optional(),
65
81
  elevenlabs: z.record(z.string(), z.any()).optional(),
66
82
  enfer: z.record(z.string(), z.any()).optional(),
67
83
  fakeProvider: z.record(z.string(), z.any()).optional(),
@@ -227,6 +243,7 @@ export function imageGenerationProviderPreferencesSortToJSON(imageGenerationProv
227
243
  /** @internal */
228
244
  export const ImageGenerationProviderPreferences$outboundSchema = z.object({
229
245
  allowFallbacks: z.nullable(z.boolean()).optional(),
246
+ dataCollection: z.nullable(ImageGenerationRequestDataCollection$outboundSchema).optional(),
230
247
  ignore: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()]))).optional(),
231
248
  only: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()])))
232
249
  .optional(),
@@ -234,9 +251,11 @@ export const ImageGenerationProviderPreferences$outboundSchema = z.object({
234
251
  order: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()])))
235
252
  .optional(),
236
253
  sort: z.nullable(z.union([ProviderSort$outboundSchema, ProviderSortConfig$outboundSchema])).optional(),
254
+ zdr: z.nullable(z.boolean()).optional(),
237
255
  }).transform((v) => {
238
256
  return remap$(v, {
239
257
  allowFallbacks: "allow_fallbacks",
258
+ dataCollection: "data_collection",
240
259
  });
241
260
  });
242
261
  export function imageGenerationProviderPreferencesToJSON(imageGenerationProviderPreferences) {
@@ -66,6 +66,7 @@ export declare const Provider: {
66
66
  readonly Deepseek: "deepseek";
67
67
  readonly Dekallm: "dekallm";
68
68
  readonly Digitalocean: "digitalocean";
69
+ readonly Doubleword: "doubleword";
69
70
  readonly Elevenlabs: "elevenlabs";
70
71
  readonly Featherless: "featherless";
71
72
  readonly Fireworks: "fireworks";
@@ -48,6 +48,7 @@ export const Provider = {
48
48
  Deepseek: "deepseek",
49
49
  Dekallm: "dekallm",
50
50
  Digitalocean: "digitalocean",
51
+ Doubleword: "doubleword",
51
52
  Elevenlabs: "elevenlabs",
52
53
  Featherless: "featherless",
53
54
  Fireworks: "fireworks",
@@ -39,6 +39,7 @@ export declare const ProviderName: {
39
39
  readonly DeepSeek: "DeepSeek";
40
40
  readonly DekaLLM: "DekaLLM";
41
41
  readonly DigitalOcean: "DigitalOcean";
42
+ readonly Doubleword: "Doubleword";
42
43
  readonly ElevenLabs: "ElevenLabs";
43
44
  readonly Featherless: "Featherless";
44
45
  readonly Fireworks: "Fireworks";
@@ -41,6 +41,7 @@ export const ProviderName = {
41
41
  DeepSeek: "DeepSeek",
42
42
  DekaLLM: "DekaLLM",
43
43
  DigitalOcean: "DigitalOcean",
44
+ Doubleword: "Doubleword",
44
45
  ElevenLabs: "ElevenLabs",
45
46
  Featherless: "Featherless",
46
47
  Fireworks: "Fireworks",
@@ -135,6 +135,9 @@ export type ProviderOptions = {
135
135
  digitalocean?: {
136
136
  [k: string]: any;
137
137
  } | undefined;
138
+ doubleword?: {
139
+ [k: string]: any;
140
+ } | undefined;
138
141
  elevenlabs?: {
139
142
  [k: string]: any;
140
143
  } | undefined;
@@ -606,6 +609,9 @@ export type ProviderOptions$Outbound = {
606
609
  digitalocean?: {
607
610
  [k: string]: any;
608
611
  } | undefined;
612
+ doubleword?: {
613
+ [k: string]: any;
614
+ } | undefined;
609
615
  elevenlabs?: {
610
616
  [k: string]: any;
611
617
  } | undefined;
@@ -49,6 +49,7 @@ export const ProviderOptions$outboundSchema = z.object({
49
49
  deepseek: z.record(z.string(), z.any()).optional(),
50
50
  dekallm: z.record(z.string(), z.any()).optional(),
51
51
  digitalocean: z.record(z.string(), z.any()).optional(),
52
+ doubleword: z.record(z.string(), z.any()).optional(),
52
53
  elevenlabs: z.record(z.string(), z.any()).optional(),
53
54
  enfer: z.record(z.string(), z.any()).optional(),
54
55
  fakeProvider: z.record(z.string(), z.any()).optional(),
@@ -72,6 +72,7 @@ export declare const ProviderResponseProviderName: {
72
72
  readonly DeepSeek: "DeepSeek";
73
73
  readonly DekaLLM: "DekaLLM";
74
74
  readonly DigitalOcean: "DigitalOcean";
75
+ readonly Doubleword: "Doubleword";
75
76
  readonly ElevenLabs: "ElevenLabs";
76
77
  readonly Featherless: "Featherless";
77
78
  readonly Fireworks: "Fireworks";
@@ -75,6 +75,7 @@ export const ProviderResponseProviderName = {
75
75
  DeepSeek: "DeepSeek",
76
76
  DekaLLM: "DekaLLM",
77
77
  DigitalOcean: "DigitalOcean",
78
+ Doubleword: "Doubleword",
78
79
  ElevenLabs: "ElevenLabs",
79
80
  Featherless: "Featherless",
80
81
  Fireworks: "Fireworks",
@@ -7,6 +7,7 @@ export type URLCitation = {
7
7
  startIndex: number;
8
8
  title: string;
9
9
  type: "url_citation";
10
+ uncited?: true | undefined;
10
11
  url: string;
11
12
  };
12
13
  /** @internal */
@@ -18,6 +19,7 @@ export type URLCitation$Outbound = {
18
19
  start_index: number;
19
20
  title: string;
20
21
  type: "url_citation";
22
+ uncited?: true | undefined;
21
23
  url: string;
22
24
  };
23
25
  /** @internal */
@@ -12,6 +12,7 @@ export const URLCitation$inboundSchema = z
12
12
  start_index: z.int(),
13
13
  title: z.string(),
14
14
  type: z.literal("url_citation"),
15
+ uncited: z.literal(true).optional(),
15
16
  url: z.string(),
16
17
  }).transform((v) => {
17
18
  return remap$(v, {
@@ -26,6 +27,7 @@ export const URLCitation$outboundSchema = z.object({
26
27
  startIndex: z.int(),
27
28
  title: z.string(),
28
29
  type: z.literal("url_citation"),
30
+ uncited: z.literal(true).optional(),
29
31
  url: z.string(),
30
32
  }).transform((v) => {
31
33
  return remap$(v, {
@@ -22,6 +22,27 @@ export declare const VideoGenerationRequestAspectRatio: {
22
22
  * Aspect ratio of the generated video. Omit it to use the model default, which on models with adaptive aspect ratio (e.g. BytePlus Seedance) follows the input image or video.
23
23
  */
24
24
  export type VideoGenerationRequestAspectRatio = OpenEnum<typeof VideoGenerationRequestAspectRatio>;
25
+ /**
26
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
27
+ *
28
+ * @remarks
29
+ * - allow: (default) allow providers that may train on user data
30
+ *
31
+ * - deny: use only providers that do not train on user data. Providers may still retain prompts; set `zdr: true` to exclude retention.
32
+ */
33
+ export declare const VideoGenerationRequestDataCollection: {
34
+ readonly Deny: "deny";
35
+ readonly Allow: "allow";
36
+ };
37
+ /**
38
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
39
+ *
40
+ * @remarks
41
+ * - allow: (default) allow providers that may train on user data
42
+ *
43
+ * - deny: use only providers that do not train on user data. Providers may still retain prompts; set `zdr: true` to exclude retention.
44
+ */
45
+ export type VideoGenerationRequestDataCollection = OpenEnum<typeof VideoGenerationRequestDataCollection>;
25
46
  export type VideoGenerationRequestIgnore = ProviderName | string;
26
47
  export type VideoGenerationRequestOnly = ProviderName | string;
27
48
  /**
@@ -160,6 +181,9 @@ export type VideoGenerationRequestOptions = {
160
181
  digitalocean?: {
161
182
  [k: string]: any;
162
183
  } | undefined;
184
+ doubleword?: {
185
+ [k: string]: any;
186
+ } | undefined;
163
187
  elevenlabs?: {
164
188
  [k: string]: any;
165
189
  } | undefined;
@@ -499,9 +523,18 @@ export type VideoGenerationRequestOptions = {
499
523
  };
500
524
  export type VideoGenerationRequestOrder = ProviderName | string;
501
525
  /**
502
- * Provider routing preferences (order, only, ignore) and provider-specific passthrough configuration
526
+ * Provider routing preferences (order, only, ignore), request-level data policy (zdr, data_collection) and provider-specific passthrough configuration. No video endpoint currently offers Zero Data Retention, so `zdr: true` fails routing.
503
527
  */
504
528
  export type VideoGenerationRequestProvider = {
529
+ /**
530
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
531
+ *
532
+ * @remarks
533
+ * - allow: (default) allow providers that may train on user data
534
+ *
535
+ * - deny: use only providers that do not train on user data. Providers may still retain prompts; set `zdr: true` to exclude retention.
536
+ */
537
+ dataCollection?: VideoGenerationRequestDataCollection | null | undefined;
505
538
  /**
506
539
  * List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
507
540
  */
@@ -515,6 +548,10 @@ export type VideoGenerationRequestProvider = {
515
548
  * An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
516
549
  */
517
550
  order?: Array<ProviderName | string> | null | undefined;
551
+ /**
552
+ * Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
553
+ */
554
+ zdr?: boolean | null | undefined;
518
555
  };
519
556
  /**
520
557
  * Resolution of the generated video
@@ -572,7 +609,7 @@ export type VideoGenerationRequest = {
572
609
  */
573
610
  prompt?: string | undefined;
574
611
  /**
575
- * Provider routing preferences (order, only, ignore) and provider-specific passthrough configuration
612
+ * Provider routing preferences (order, only, ignore), request-level data policy (zdr, data_collection) and provider-specific passthrough configuration. No video endpoint currently offers Zero Data Retention, so `zdr: true` fails routing.
576
613
  */
577
614
  provider?: VideoGenerationRequestProvider | undefined;
578
615
  /**
@@ -607,6 +644,8 @@ export type VideoGenerationRequest = {
607
644
  /** @internal */
608
645
  export declare const VideoGenerationRequestAspectRatio$outboundSchema: z.ZodType<string, VideoGenerationRequestAspectRatio>;
609
646
  /** @internal */
647
+ export declare const VideoGenerationRequestDataCollection$outboundSchema: z.ZodType<string, VideoGenerationRequestDataCollection>;
648
+ /** @internal */
610
649
  export type VideoGenerationRequestIgnore$Outbound = string | string;
611
650
  /** @internal */
612
651
  export declare const VideoGenerationRequestIgnore$outboundSchema: z.ZodType<VideoGenerationRequestIgnore$Outbound, VideoGenerationRequestIgnore>;
@@ -750,6 +789,9 @@ export type VideoGenerationRequestOptions$Outbound = {
750
789
  digitalocean?: {
751
790
  [k: string]: any;
752
791
  } | undefined;
792
+ doubleword?: {
793
+ [k: string]: any;
794
+ } | undefined;
753
795
  elevenlabs?: {
754
796
  [k: string]: any;
755
797
  } | undefined;
@@ -1097,10 +1139,12 @@ export declare const VideoGenerationRequestOrder$outboundSchema: z.ZodType<Video
1097
1139
  export declare function videoGenerationRequestOrderToJSON(videoGenerationRequestOrder: VideoGenerationRequestOrder): string;
1098
1140
  /** @internal */
1099
1141
  export type VideoGenerationRequestProvider$Outbound = {
1142
+ data_collection?: string | null | undefined;
1100
1143
  ignore?: Array<string | string> | null | undefined;
1101
1144
  only?: Array<string | string> | null | undefined;
1102
1145
  options?: VideoGenerationRequestOptions$Outbound | undefined;
1103
1146
  order?: Array<string | string> | null | undefined;
1147
+ zdr?: boolean | null | undefined;
1104
1148
  };
1105
1149
  /** @internal */
1106
1150
  export declare const VideoGenerationRequestProvider$outboundSchema: z.ZodType<VideoGenerationRequestProvider$Outbound, VideoGenerationRequestProvider>;
@@ -22,6 +22,18 @@ export const VideoGenerationRequestAspectRatio = {
22
22
  TwoHundredAndNineteen: "21:9",
23
23
  NineHundredAndTwentyOne: "9:21",
24
24
  };
25
+ /**
26
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
27
+ *
28
+ * @remarks
29
+ * - allow: (default) allow providers that may train on user data
30
+ *
31
+ * - deny: use only providers that do not train on user data. Providers may still retain prompts; set `zdr: true` to exclude retention.
32
+ */
33
+ export const VideoGenerationRequestDataCollection = {
34
+ Deny: "deny",
35
+ Allow: "allow",
36
+ };
25
37
  /**
26
38
  * Resolution of the generated video
27
39
  */
@@ -38,6 +50,8 @@ export const VideoGenerationRequestResolution = {
38
50
  /** @internal */
39
51
  export const VideoGenerationRequestAspectRatio$outboundSchema = openEnums.outboundSchema(VideoGenerationRequestAspectRatio);
40
52
  /** @internal */
53
+ export const VideoGenerationRequestDataCollection$outboundSchema = openEnums.outboundSchema(VideoGenerationRequestDataCollection);
54
+ /** @internal */
41
55
  export const VideoGenerationRequestIgnore$outboundSchema = z.union([ProviderName$outboundSchema, z.string()]);
42
56
  export function videoGenerationRequestIgnoreToJSON(videoGenerationRequestIgnore) {
43
57
  return JSON.stringify(VideoGenerationRequestIgnore$outboundSchema.parse(videoGenerationRequestIgnore));
@@ -93,6 +107,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
93
107
  deepseek: z.record(z.string(), z.any()).optional(),
94
108
  dekallm: z.record(z.string(), z.any()).optional(),
95
109
  digitalocean: z.record(z.string(), z.any()).optional(),
110
+ doubleword: z.record(z.string(), z.any()).optional(),
96
111
  elevenlabs: z.record(z.string(), z.any()).optional(),
97
112
  enfer: z.record(z.string(), z.any()).optional(),
98
113
  fakeProvider: z.record(z.string(), z.any()).optional(),
@@ -252,6 +267,7 @@ export function videoGenerationRequestOrderToJSON(videoGenerationRequestOrder) {
252
267
  }
253
268
  /** @internal */
254
269
  export const VideoGenerationRequestProvider$outboundSchema = z.object({
270
+ dataCollection: z.nullable(VideoGenerationRequestDataCollection$outboundSchema).optional(),
255
271
  ignore: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()]))).optional(),
256
272
  only: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()])))
257
273
  .optional(),
@@ -259,6 +275,11 @@ export const VideoGenerationRequestProvider$outboundSchema = z.object({
259
275
  .optional(),
260
276
  order: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()])))
261
277
  .optional(),
278
+ zdr: z.nullable(z.boolean()).optional(),
279
+ }).transform((v) => {
280
+ return remap$(v, {
281
+ dataCollection: "data_collection",
282
+ });
262
283
  });
263
284
  export function videoGenerationRequestProviderToJSON(videoGenerationRequestProvider) {
264
285
  return JSON.stringify(VideoGenerationRequestProvider$outboundSchema.parse(videoGenerationRequestProvider));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.102",
5
+ "version": "1.5.103",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "1.5.102",
3
+ "version": "1.5.103",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
6
6
  "keywords": [
@@ -21,8 +21,8 @@
21
21
  "license": "Apache-2.0",
22
22
  "packageManager": "pnpm@10.22.0",
23
23
  "publishConfig": {
24
- "provenance": true,
25
- "access": "public"
24
+ "access": "public",
25
+ "provenance": true
26
26
  },
27
27
  "type": "module",
28
28
  "main": "./esm/index.js",
@@ -73,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "postinstall": "node scripts/check-types.js || true",
76
+ "test": "vitest --run --project unit",
77
77
  "test:e2e": "vitest --run --project e2e",
78
78
  "test:transit": "exit 0",
79
79
  "test:watch": "vitest --watch --project unit",
80
- "typecheck:transit": "exit 0",
80
+ "typecheck": "tsc --noEmit",
81
81
  "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
82
+ "postinstall": "node scripts/check-types.js || true",
82
83
  "prepare": "npm run build",
83
- "test": "vitest --run --project unit",
84
- "typecheck": "tsc --noEmit"
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {
87
87