@openrouter/sdk 1.2.141 → 1.2.142

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.
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
50
50
  export declare const SDK_METADATA: {
51
51
  readonly language: "typescript";
52
52
  readonly openapiDocVersion: "1.0.0";
53
- readonly sdkVersion: "1.2.141";
53
+ readonly sdkVersion: "1.2.142";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.2.141 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.142 2.914.0 1.0.0 @openrouter/sdk";
56
56
  };
57
57
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
29
29
  export const SDK_METADATA = {
30
30
  language: "typescript",
31
31
  openapiDocVersion: "1.0.0",
32
- sdkVersion: "1.2.141",
32
+ sdkVersion: "1.2.142",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.2.141 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.2.142 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -504,6 +504,10 @@ export type VideoGenerationRequest = {
504
504
  */
505
505
  inputReferences?: Array<InputReference> | undefined;
506
506
  model: string;
507
+ /**
508
+ * ID of a completed video job to edit or extend, as returned by the submit response. The new job runs on the same model and endpoint that produced the previous one. Only models that support continuation accept this field.
509
+ */
510
+ previousJobId?: string | undefined;
507
511
  /**
508
512
  * Text prompt describing the video to generate. Optional for models that support generating a video from image input alone; required by all other models.
509
513
  */
@@ -994,6 +998,7 @@ export type VideoGenerationRequest$Outbound = {
994
998
  generate_audio?: boolean | undefined;
995
999
  input_references?: Array<InputReference$Outbound> | undefined;
996
1000
  model: string;
1001
+ previous_job_id?: string | undefined;
997
1002
  prompt?: string | undefined;
998
1003
  provider?: VideoGenerationRequestProvider$Outbound | undefined;
999
1004
  resolution?: string | undefined;
@@ -237,6 +237,7 @@ export const VideoGenerationRequest$outboundSchema = z.object({
237
237
  generateAudio: z.boolean().optional(),
238
238
  inputReferences: z.array(InputReference$outboundSchema).optional(),
239
239
  model: z.string(),
240
+ previousJobId: z.string().optional(),
240
241
  prompt: z.string().optional(),
241
242
  provider: z.lazy(() => VideoGenerationRequestProvider$outboundSchema)
242
243
  .optional(),
@@ -254,6 +255,7 @@ export const VideoGenerationRequest$outboundSchema = z.object({
254
255
  frameImages: "frame_images",
255
256
  generateAudio: "generate_audio",
256
257
  inputReferences: "input_references",
258
+ previousJobId: "previous_job_id",
257
259
  sessionId: "session_id",
258
260
  upscaleFactor: "upscale_factor",
259
261
  });
@@ -18,6 +18,9 @@ export type VideoGenerationResponse = {
18
18
  * The generation ID associated with this video generation job. Available once the job has been processed.
19
19
  */
20
20
  generationId?: string | undefined;
21
+ /**
22
+ * The video job ID, in the `gen-vid-<timestamp>-<20 alphanumerics>` generation ID format. Pass it as `previous_job_id` to continue the generation.
23
+ */
21
24
  id: string;
22
25
  pollingUrl: string;
23
26
  status: VideoGenerationResponseStatus;
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.141",
5
+ "version": "1.2.142",
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.2.141",
3
+ "version": "1.2.142",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
6
6
  "keywords": [
@@ -73,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "tsc",
75
75
  "prepublishOnly": "npm run build",
76
+ "prepare": "npm run build",
77
+ "test:e2e": "vitest --run --project e2e",
78
+ "test:transit": "exit 0",
76
79
  "typecheck:transit": "exit 0",
77
- "compile": "tsc",
78
80
  "postinstall": "node scripts/check-types.js || true",
79
- "test:transit": "exit 0",
80
- "prepare": "npm run build",
81
81
  "test": "vitest --run --project unit",
82
- "test:e2e": "vitest --run --project e2e",
83
82
  "test:watch": "vitest --watch --project unit",
84
- "typecheck": "tsc --noEmit"
83
+ "typecheck": "tsc --noEmit",
84
+ "compile": "tsc"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {