@openrouter/sdk 1.2.74 → 1.2.75
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
CHANGED
|
@@ -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.
|
|
53
|
+
readonly sdkVersion: "1.2.75";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.75 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.
|
|
32
|
+
sdkVersion: "1.2.75",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.75 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -5,7 +5,7 @@ import { ContentFilterBuiltinSlug } from "./contentfilterbuiltinslug.js";
|
|
|
5
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
6
|
import { PromptInjectionScanScope } from "./promptinjectionscanscope.js";
|
|
7
7
|
/**
|
|
8
|
-
* A builtin content filter entry. Builtin filters include PII detectors and the regex-based prompt injection detector.
|
|
8
|
+
* A builtin content filter entry. Builtin filters include PII detectors, API-key and secret detectors, and the regex-based prompt injection detector.
|
|
9
9
|
*/
|
|
10
10
|
export type ContentFilterBuiltinEntry = {
|
|
11
11
|
/**
|
|
@@ -9,6 +9,7 @@ export declare const ContentFilterBuiltinSlug: {
|
|
|
9
9
|
readonly Ssn: "ssn";
|
|
10
10
|
readonly CreditCard: "credit-card";
|
|
11
11
|
readonly IpAddress: "ip-address";
|
|
12
|
+
readonly Secrets: "secrets";
|
|
12
13
|
readonly PersonName: "person-name";
|
|
13
14
|
readonly Address: "address";
|
|
14
15
|
readonly RegexPromptInjection: "regex-prompt-injection";
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.75",
|
|
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,14 +73,14 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
+
"compile": "tsc",
|
|
77
|
+
"prepare": "npm run build",
|
|
76
78
|
"test": "vitest --run --project unit",
|
|
77
79
|
"test:e2e": "vitest --run --project e2e",
|
|
80
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
78
81
|
"test:transit": "exit 0",
|
|
79
82
|
"test:watch": "vitest --watch --project unit",
|
|
80
83
|
"typecheck": "tsc --noEmit",
|
|
81
|
-
"compile": "tsc",
|
|
82
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
83
|
-
"prepare": "npm run build",
|
|
84
84
|
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|