@openrouter/sdk 0.3.1 → 0.3.2

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.
@@ -45,8 +45,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
45
45
  export declare const SDK_METADATA: {
46
46
  readonly language: "typescript";
47
47
  readonly openapiDocVersion: "1.0.0";
48
- readonly sdkVersion: "0.3.1";
49
- readonly genVersion: "2.768.0";
50
- readonly userAgent: "speakeasy-sdk/typescript 0.3.1 2.768.0 1.0.0 @openrouter/sdk";
48
+ readonly sdkVersion: "0.3.2";
49
+ readonly genVersion: "2.788.4";
50
+ readonly userAgent: "speakeasy-sdk/typescript 0.3.2 2.788.4 1.0.0 @openrouter/sdk";
51
51
  };
52
52
  //# 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.3.1",
29
- genVersion: "2.768.0",
30
- userAgent: "speakeasy-sdk/typescript 0.3.1 2.768.0 1.0.0 @openrouter/sdk",
28
+ sdkVersion: "0.3.2",
29
+ genVersion: "2.788.4",
30
+ userAgent: "speakeasy-sdk/typescript 0.3.2 2.788.4 1.0.0 @openrouter/sdk",
31
31
  };
32
32
  //# sourceMappingURL=config.js.map
@@ -20,7 +20,7 @@ export class EventStream extends ReadableStream {
20
20
  const message = buffer.slice(0, match.index);
21
21
  buffer = buffer.slice(match.index + match.length);
22
22
  const item = parseMessage(message, parse);
23
- if (item?.value)
23
+ if (item && !item.done)
24
24
  return downstream.enqueue(item.value);
25
25
  if (item?.done) {
26
26
  await upstream.cancel("done");
@@ -10,7 +10,7 @@ export type OutputItemImageGenerationCallType = ClosedEnum<typeof OutputItemImag
10
10
  export type OutputItemImageGenerationCall = {
11
11
  type: OutputItemImageGenerationCallType;
12
12
  id: string;
13
- result?: string | null | undefined;
13
+ result: string | null;
14
14
  status: ImageGenerationStatus;
15
15
  };
16
16
  /** @internal */
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "0.3.1",
5
+ "version": "0.3.2",
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": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 300+ language models through a unified API.",
6
6
  "keywords": [
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "incremental": true,
3
+ "incremental": false,
4
4
  "target": "ES2020",
5
5
  "lib": ["ES2022", "DOM", "DOM.Iterable"],
6
6
  "jsx": "react-jsx",