@openrouter/sdk 0.13.64 → 0.13.66
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.
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/contentfilteraction.d.ts +1 -0
- package/esm/models/contentfilteraction.js +1 -0
- package/esm/models/createguardrailrequest.d.ts +1 -1
- package/esm/models/updateguardrailrequest.d.ts +1 -1
- package/esm/models/videogenerationrequest.d.ts +5 -2
- package/esm/models/videogenerationrequest.js +1 -1
- package/jsr.json +1 -1
- package/package.json +5 -5
package/esm/lib/config.d.ts
CHANGED
|
@@ -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: "0.13.
|
|
52
|
+
readonly sdkVersion: "0.13.66";
|
|
53
53
|
readonly genVersion: "2.914.0";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.13.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.13.66 2.914.0 1.0.0 @openrouter/sdk";
|
|
55
55
|
};
|
|
56
56
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -26,8 +26,8 @@ export function serverURLFromOptions(options) {
|
|
|
26
26
|
export const SDK_METADATA = {
|
|
27
27
|
language: "typescript",
|
|
28
28
|
openapiDocVersion: "1.0.0",
|
|
29
|
-
sdkVersion: "0.13.
|
|
29
|
+
sdkVersion: "0.13.66",
|
|
30
30
|
genVersion: "2.914.0",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.13.66 2.914.0 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -9,6 +9,7 @@ import * as openEnums from "../types/enums.js";
|
|
|
9
9
|
export const ContentFilterAction = {
|
|
10
10
|
Redact: "redact",
|
|
11
11
|
Block: "block",
|
|
12
|
+
Flag: "flag",
|
|
12
13
|
};
|
|
13
14
|
/** @internal */
|
|
14
15
|
export const ContentFilterAction$inboundSchema = openEnums.inboundSchema(ContentFilterAction);
|
|
@@ -12,7 +12,7 @@ export type CreateGuardrailRequest = {
|
|
|
12
12
|
*/
|
|
13
13
|
allowedProviders?: Array<string> | null | undefined;
|
|
14
14
|
/**
|
|
15
|
-
* Builtin content filters to apply.
|
|
15
|
+
* Builtin content filters to apply. Every builtin slug supports "block", "redact", and the detect-only "flag" action.
|
|
16
16
|
*/
|
|
17
17
|
contentFilterBuiltins?: Array<ContentFilterBuiltinEntryInput> | null | undefined;
|
|
18
18
|
/**
|
|
@@ -12,7 +12,7 @@ export type UpdateGuardrailRequest = {
|
|
|
12
12
|
*/
|
|
13
13
|
allowedProviders?: Array<string> | null | undefined;
|
|
14
14
|
/**
|
|
15
|
-
* Builtin content filters to apply. Set to null to remove.
|
|
15
|
+
* Builtin content filters to apply. Set to null to remove. Every builtin slug supports "block", "redact", and the detect-only "flag" action.
|
|
16
16
|
*/
|
|
17
17
|
contentFilterBuiltins?: Array<ContentFilterBuiltinEntryInput> | null | undefined;
|
|
18
18
|
/**
|
|
@@ -447,7 +447,10 @@ export type VideoGenerationRequest = {
|
|
|
447
447
|
*/
|
|
448
448
|
inputReferences?: Array<InputReference> | undefined;
|
|
449
449
|
model: string;
|
|
450
|
-
|
|
450
|
+
/**
|
|
451
|
+
* Text prompt describing the video to generate. Optional for models that support generating a video from image input alone; required by all other models.
|
|
452
|
+
*/
|
|
453
|
+
prompt?: string | undefined;
|
|
451
454
|
/**
|
|
452
455
|
* Provider-specific passthrough configuration
|
|
453
456
|
*/
|
|
@@ -866,7 +869,7 @@ export type VideoGenerationRequest$Outbound = {
|
|
|
866
869
|
generate_audio?: boolean | undefined;
|
|
867
870
|
input_references?: Array<InputReference$Outbound> | undefined;
|
|
868
871
|
model: string;
|
|
869
|
-
prompt
|
|
872
|
+
prompt?: string | undefined;
|
|
870
873
|
provider?: VideoGenerationRequestProvider$Outbound | undefined;
|
|
871
874
|
resolution?: string | undefined;
|
|
872
875
|
seed?: number | undefined;
|
|
@@ -211,7 +211,7 @@ export const VideoGenerationRequest$outboundSchema = z.object({
|
|
|
211
211
|
generateAudio: z.boolean().optional(),
|
|
212
212
|
inputReferences: z.array(InputReference$outboundSchema).optional(),
|
|
213
213
|
model: z.string(),
|
|
214
|
-
prompt: z.string(),
|
|
214
|
+
prompt: z.string().optional(),
|
|
215
215
|
provider: z.lazy(() => VideoGenerationRequestProvider$outboundSchema)
|
|
216
216
|
.optional(),
|
|
217
217
|
resolution: VideoGenerationRequestResolution$outboundSchema.optional(),
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.66",
|
|
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
|
+
"compile": "tsc",
|
|
76
77
|
"prepare": "npm run build",
|
|
77
|
-
"test": "vitest --run --project unit",
|
|
78
78
|
"test:e2e": "vitest --run --project e2e",
|
|
79
|
-
"test:watch": "vitest --watch --project unit",
|
|
80
79
|
"typecheck": "tsc --noEmit",
|
|
81
80
|
"typecheck:transit": "exit 0",
|
|
82
|
-
"
|
|
81
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
82
|
+
"test": "vitest --run --project unit",
|
|
83
83
|
"test:transit": "exit 0",
|
|
84
|
-
"
|
|
84
|
+
"test:watch": "vitest --watch --project unit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|