@openrouter/sdk 1.3.26 → 1.3.28

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.
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Get an intern's daemon access
14
14
  *
15
15
  * @remarks
16
- * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, each reveal is logged by caller and intern, and a caller may make 10 reveals per minute. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
16
+ * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
17
17
  *
18
18
  * If set, this operation will use {@link Security.apiKey} from the global security.
19
19
  */
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
17
17
  * Get an intern's daemon access
18
18
  *
19
19
  * @remarks
20
- * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, each reveal is logged by caller and intern, and a caller may make 10 reveals per minute. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
20
+ * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
21
21
  *
22
22
  * If set, this operation will use {@link Security.apiKey} from the global security.
23
23
  */
@@ -96,7 +96,7 @@ async function $do(client, request, options) {
96
96
  const responseFields = {
97
97
  HttpMeta: { Response: response, Request: req },
98
98
  };
99
- const [result] = await M.match(M.json(200, models_InternDaemonAccess$inboundSchema), M.jsonErr([401, 403, 404, 408, 409, 429], errors_InternLifecycleError$inboundSchema), M.jsonErr(500, errors_InternLifecycleError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
99
+ const [result] = await M.match(M.json(200, models_InternDaemonAccess$inboundSchema), M.jsonErr([401, 403, 404, 408, 409], errors_InternLifecycleError$inboundSchema), M.jsonErr(500, errors_InternLifecycleError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
100
100
  if (!result.ok) {
101
101
  return [result, { status: "complete", request: req, response }];
102
102
  }
@@ -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.3.26";
53
+ readonly sdkVersion: "1.3.28";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.3.26 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.3.28 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.3.26",
32
+ sdkVersion: "1.3.28",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.3.26 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.3.28 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -95,6 +95,7 @@ export declare const BYOKProviderSlug: {
95
95
  readonly Sakana: "sakana";
96
96
  readonly SakanaAi: "sakana-ai";
97
97
  readonly Sambanova: "sambanova";
98
+ readonly Scaledown: "scaledown";
98
99
  readonly Seed: "seed";
99
100
  readonly Siliconflow: "siliconflow";
100
101
  readonly Sourceful: "sourceful";
@@ -98,6 +98,7 @@ export const BYOKProviderSlug = {
98
98
  Sakana: "sakana",
99
99
  SakanaAi: "sakana-ai",
100
100
  Sambanova: "sambanova",
101
+ Scaledown: "scaledown",
101
102
  Seed: "seed",
102
103
  Siliconflow: "siliconflow",
103
104
  Sourceful: "sourceful",
@@ -359,6 +359,9 @@ export type ImageGenerationProviderPreferencesOptions = {
359
359
  sambanovaCloaked?: {
360
360
  [k: string]: any;
361
361
  } | undefined;
362
+ scaledown?: {
363
+ [k: string]: any;
364
+ } | undefined;
362
365
  seed?: {
363
366
  [k: string]: any;
364
367
  } | undefined;
@@ -836,6 +839,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
836
839
  "sambanova-cloaked"?: {
837
840
  [k: string]: any;
838
841
  } | undefined;
842
+ scaledown?: {
843
+ [k: string]: any;
844
+ } | undefined;
839
845
  seed?: {
840
846
  [k: string]: any;
841
847
  } | undefined;
@@ -136,6 +136,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
136
136
  sakanaAi: z.record(z.string(), z.any()).optional(),
137
137
  sambanova: z.record(z.string(), z.any()).optional(),
138
138
  sambanovaCloaked: z.record(z.string(), z.any()).optional(),
139
+ scaledown: z.record(z.string(), z.any()).optional(),
139
140
  seed: z.record(z.string(), z.any()).optional(),
140
141
  sfCompute: z.record(z.string(), z.any()).optional(),
141
142
  siliconflow: z.record(z.string(), z.any()).optional(),
@@ -119,6 +119,7 @@ export declare const Provider: {
119
119
  readonly Sakana: "sakana";
120
120
  readonly SakanaAi: "sakana-ai";
121
121
  readonly Sambanova: "sambanova";
122
+ readonly Scaledown: "scaledown";
122
123
  readonly Seed: "seed";
123
124
  readonly Siliconflow: "siliconflow";
124
125
  readonly Sourceful: "sourceful";
@@ -102,6 +102,7 @@ export const Provider = {
102
102
  Sakana: "sakana",
103
103
  SakanaAi: "sakana-ai",
104
104
  Sambanova: "sambanova",
105
+ Scaledown: "scaledown",
105
106
  Seed: "seed",
106
107
  Siliconflow: "siliconflow",
107
108
  Sourceful: "sourceful",
@@ -89,6 +89,7 @@ export declare const ProviderName: {
89
89
  readonly SailResearch: "Sail Research";
90
90
  readonly SakanaAI: "Sakana AI";
91
91
  readonly SambaNova: "SambaNova";
92
+ readonly ScaleDown: "ScaleDown";
92
93
  readonly Seed: "Seed";
93
94
  readonly SiliconFlow: "SiliconFlow";
94
95
  readonly Sourceful: "Sourceful";
@@ -92,6 +92,7 @@ export const ProviderName = {
92
92
  SailResearch: "Sail Research",
93
93
  SakanaAI: "Sakana AI",
94
94
  SambaNova: "SambaNova",
95
+ ScaleDown: "ScaleDown",
95
96
  Seed: "Seed",
96
97
  SiliconFlow: "SiliconFlow",
97
98
  Sourceful: "Sourceful",
@@ -354,6 +354,9 @@ export type ProviderOptions = {
354
354
  sambanovaCloaked?: {
355
355
  [k: string]: any;
356
356
  } | undefined;
357
+ scaledown?: {
358
+ [k: string]: any;
359
+ } | undefined;
357
360
  seed?: {
358
361
  [k: string]: any;
359
362
  } | undefined;
@@ -786,6 +789,9 @@ export type ProviderOptions$Outbound = {
786
789
  "sambanova-cloaked"?: {
787
790
  [k: string]: any;
788
791
  } | undefined;
792
+ scaledown?: {
793
+ [k: string]: any;
794
+ } | undefined;
789
795
  seed?: {
790
796
  [k: string]: any;
791
797
  } | undefined;
@@ -123,6 +123,7 @@ export const ProviderOptions$outboundSchema = z.object({
123
123
  sakanaAi: z.record(z.string(), z.any()).optional(),
124
124
  sambanova: z.record(z.string(), z.any()).optional(),
125
125
  sambanovaCloaked: z.record(z.string(), z.any()).optional(),
126
+ scaledown: z.record(z.string(), z.any()).optional(),
126
127
  seed: z.record(z.string(), z.any()).optional(),
127
128
  sfCompute: z.record(z.string(), z.any()).optional(),
128
129
  siliconflow: z.record(z.string(), z.any()).optional(),
@@ -122,6 +122,7 @@ export declare const ProviderResponseProviderName: {
122
122
  readonly SailResearch: "Sail Research";
123
123
  readonly SakanaAI: "Sakana AI";
124
124
  readonly SambaNova: "SambaNova";
125
+ readonly ScaleDown: "ScaleDown";
125
126
  readonly Seed: "Seed";
126
127
  readonly SiliconFlow: "SiliconFlow";
127
128
  readonly Sourceful: "Sourceful";
@@ -126,6 +126,7 @@ export const ProviderResponseProviderName = {
126
126
  SailResearch: "Sail Research",
127
127
  SakanaAI: "Sakana AI",
128
128
  SambaNova: "SambaNova",
129
+ ScaleDown: "ScaleDown",
129
130
  Seed: "Seed",
130
131
  SiliconFlow: "SiliconFlow",
131
132
  Sourceful: "Sourceful",
@@ -376,6 +376,9 @@ export type VideoGenerationRequestOptions = {
376
376
  sambanovaCloaked?: {
377
377
  [k: string]: any;
378
378
  } | undefined;
379
+ scaledown?: {
380
+ [k: string]: any;
381
+ } | undefined;
379
382
  seed?: {
380
383
  [k: string]: any;
381
384
  } | undefined;
@@ -904,6 +907,9 @@ export type VideoGenerationRequestOptions$Outbound = {
904
907
  "sambanova-cloaked"?: {
905
908
  [k: string]: any;
906
909
  } | undefined;
910
+ scaledown?: {
911
+ [k: string]: any;
912
+ } | undefined;
907
913
  seed?: {
908
914
  [k: string]: any;
909
915
  } | undefined;
@@ -156,6 +156,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
156
156
  sakanaAi: z.record(z.string(), z.any()).optional(),
157
157
  sambanova: z.record(z.string(), z.any()).optional(),
158
158
  sambanovaCloaked: z.record(z.string(), z.any()).optional(),
159
+ scaledown: z.record(z.string(), z.any()).optional(),
159
160
  seed: z.record(z.string(), z.any()).optional(),
160
161
  sfCompute: z.record(z.string(), z.any()).optional(),
161
162
  siliconflow: z.record(z.string(), z.any()).optional(),
@@ -41,7 +41,7 @@ export declare class Interns extends ClientSDK {
41
41
  * Get an intern's daemon access
42
42
  *
43
43
  * @remarks
44
- * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, each reveal is logged by caller and intern, and a caller may make 10 reveals per minute. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
44
+ * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
45
45
  */
46
46
  getInternDaemonAccess(request: operations.GetInternDaemonAccessRequest, options?: RequestOptions): Promise<models.InternDaemonAccess>;
47
47
  /**
@@ -64,7 +64,7 @@ export class Interns extends ClientSDK {
64
64
  * Get an intern's daemon access
65
65
  *
66
66
  * @remarks
67
- * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, each reveal is logged by caller and intern, and a caller may make 10 reveals per minute. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
67
+ * Returns the origin and daemon token that attach `ori tui --host` to one visible, running intern. The token is a credential: the response is sent with `Cache-Control: no-store`, and each reveal is logged by caller and intern. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
68
68
  */
69
69
  async getInternDaemonAccess(request, options) {
70
70
  return unwrapAsync(internsGetInternDaemonAccess(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.3.26",
5
+ "version": "1.3.28",
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.3.26",
3
+ "version": "1.3.28",
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 && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
+ "prepare": "npm run build",
76
77
  "test": "vitest --run --project unit",
77
78
  "test:e2e": "vitest --run --project e2e",
78
- "typecheck": "tsc --noEmit",
79
79
  "typecheck:transit": "exit 0",
80
- "test:transit": "exit 0",
81
- "test:watch": "vitest --watch --project unit",
82
80
  "compile": "tsc && node scripts/unbarrel-imports.js",
83
81
  "postinstall": "node scripts/check-types.js || true",
84
- "prepare": "npm run build"
82
+ "test:transit": "exit 0",
83
+ "test:watch": "vitest --watch --project unit",
84
+ "typecheck": "tsc --noEmit"
85
85
  },
86
86
  "peerDependencies": {
87
87