@openrouter/sdk 1.2.49 → 1.2.51
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/funcs/byokCreate.d.ts +1 -1
- package/esm/funcs/byokCreate.js +1 -1
- package/esm/funcs/byokUpdate.d.ts +1 -1
- package/esm/funcs/byokUpdate.js +1 -1
- package/esm/funcs/guardrailsCreate.d.ts +1 -1
- package/esm/funcs/guardrailsCreate.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createbyokkeyrequest.d.ts +5 -0
- package/esm/models/createbyokkeyrequest.js +2 -0
- package/esm/models/createguardrailrequest.d.ts +1 -1
- package/esm/models/guardrail.d.ts +1 -1
- package/esm/models/updatebyokkeyrequest.d.ts +5 -0
- package/esm/models/updatebyokkeyrequest.js +2 -0
- package/esm/sdk/byok.d.ts +2 -2
- package/esm/sdk/byok.js +2 -2
- package/esm/sdk/guardrails.d.ts +1 -1
- package/esm/sdk/guardrails.js +1 -1
- package/jsr.json +1 -1
- package/package.json +5 -5
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Create a BYOK provider credential
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
17
17
|
*/
|
|
18
18
|
export declare function byokCreate(client: OpenRouterCore, request: operations.CreateBYOKKeyRequest, options?: RequestOptions): APIPromise<Result<models.CreateBYOKKeyResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=byokCreate.d.ts.map
|
package/esm/funcs/byokCreate.js
CHANGED
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Create a BYOK provider credential
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
21
21
|
*/
|
|
22
22
|
export function byokCreate(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Update a BYOK provider credential
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys (`null` clears the restriction). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
17
17
|
*/
|
|
18
18
|
export declare function byokUpdate(client: OpenRouterCore, request: operations.UpdateBYOKKeyRequest, options?: RequestOptions): APIPromise<Result<models.UpdateBYOKKeyResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=byokUpdate.d.ts.map
|
package/esm/funcs/byokUpdate.js
CHANGED
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Update a BYOK provider credential
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys (`null` clears the restriction). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
21
21
|
*/
|
|
22
22
|
export function byokUpdate(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Create a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Create a new guardrail for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsCreate(client: OpenRouterCore, request: operations.CreateGuardrailRequest, options?: RequestOptions): APIPromise<Result<models.CreateGuardrailResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=guardrailsCreate.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Create a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Create a new guardrail for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsCreate(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
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.51";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.51 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.51",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.51 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { BYOKProviderSlug } from "./byokproviderslug.js";
|
|
3
3
|
export type CreateBYOKKeyRequest = {
|
|
4
|
+
/**
|
|
5
|
+
* Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. Must contain at least one hash if provided. Hashes that do not belong to your account return a 400.
|
|
6
|
+
*/
|
|
7
|
+
allowedApiKeyHashes?: Array<string> | null | undefined;
|
|
4
8
|
/**
|
|
5
9
|
* Optional allowlist of model slugs this credential may be used for. `null` means no restriction.
|
|
6
10
|
*/
|
|
@@ -36,6 +40,7 @@ export type CreateBYOKKeyRequest = {
|
|
|
36
40
|
};
|
|
37
41
|
/** @internal */
|
|
38
42
|
export type CreateBYOKKeyRequest$Outbound = {
|
|
43
|
+
allowed_api_key_hashes?: Array<string> | null | undefined;
|
|
39
44
|
allowed_models?: Array<string> | null | undefined;
|
|
40
45
|
allowed_user_ids?: Array<string> | null | undefined;
|
|
41
46
|
disabled?: boolean | undefined;
|
|
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../lib/primitives.js";
|
|
|
7
7
|
import { BYOKProviderSlug$outboundSchema, } from "./byokproviderslug.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const CreateBYOKKeyRequest$outboundSchema = z.object({
|
|
10
|
+
allowedApiKeyHashes: z.nullable(z.array(z.string())).optional(),
|
|
10
11
|
allowedModels: z.nullable(z.array(z.string())).optional(),
|
|
11
12
|
allowedUserIds: z.nullable(z.array(z.string())).optional(),
|
|
12
13
|
disabled: z.boolean().optional(),
|
|
@@ -17,6 +18,7 @@ export const CreateBYOKKeyRequest$outboundSchema = z.object({
|
|
|
17
18
|
workspaceId: z.string().optional(),
|
|
18
19
|
}).transform((v) => {
|
|
19
20
|
return remap$(v, {
|
|
21
|
+
allowedApiKeyHashes: "allowed_api_key_hashes",
|
|
20
22
|
allowedModels: "allowed_models",
|
|
21
23
|
allowedUserIds: "allowed_user_ids",
|
|
22
24
|
isFallback: "is_fallback",
|
|
@@ -86,7 +86,7 @@ export type CreateGuardrailRequest = {
|
|
|
86
86
|
*/
|
|
87
87
|
resetInterval?: GuardrailInterval | null | undefined;
|
|
88
88
|
/**
|
|
89
|
-
* The workspace to create the guardrail in. When omitted, the guardrail is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly.
|
|
89
|
+
* The workspace to create the guardrail in. When omitted, the guardrail is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. This only places the guardrail in the workspace; the created guardrail enforces nothing for that workspace's traffic until it is assigned to API keys or members. To restrict all traffic in a workspace, update the workspace's default guardrail instead.
|
|
90
90
|
*/
|
|
91
91
|
workspaceId?: string | undefined;
|
|
92
92
|
};
|
|
@@ -100,7 +100,7 @@ export type Guardrail = {
|
|
|
100
100
|
*/
|
|
101
101
|
updatedAt?: string | null | undefined;
|
|
102
102
|
/**
|
|
103
|
-
* The workspace this guardrail
|
|
103
|
+
* The workspace this guardrail belongs to, or `null` for an unscoped legacy guardrail predating workspaces. Workspace membership organizes the guardrail; it does not apply the guardrail to the workspace's traffic. A `null` value does not mean the default workspace, and does not apply the guardrail across every workspace.
|
|
104
104
|
*/
|
|
105
105
|
workspaceId: string | null;
|
|
106
106
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
export type UpdateBYOKKeyRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` clears the restriction. Must contain at least one hash if provided. Hashes that do not belong to your account return a 400.
|
|
5
|
+
*/
|
|
6
|
+
allowedApiKeyHashes?: Array<string> | null | undefined;
|
|
3
7
|
/**
|
|
4
8
|
* Optional allowlist of model slugs this credential may be used for. `null` means no restriction.
|
|
5
9
|
*/
|
|
@@ -27,6 +31,7 @@ export type UpdateBYOKKeyRequest = {
|
|
|
27
31
|
};
|
|
28
32
|
/** @internal */
|
|
29
33
|
export type UpdateBYOKKeyRequest$Outbound = {
|
|
34
|
+
allowed_api_key_hashes?: Array<string> | null | undefined;
|
|
30
35
|
allowed_models?: Array<string> | null | undefined;
|
|
31
36
|
allowed_user_ids?: Array<string> | null | undefined;
|
|
32
37
|
disabled?: boolean | undefined;
|
|
@@ -6,6 +6,7 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const UpdateBYOKKeyRequest$outboundSchema = z.object({
|
|
9
|
+
allowedApiKeyHashes: z.nullable(z.array(z.string())).optional(),
|
|
9
10
|
allowedModels: z.nullable(z.array(z.string())).optional(),
|
|
10
11
|
allowedUserIds: z.nullable(z.array(z.string())).optional(),
|
|
11
12
|
disabled: z.boolean().optional(),
|
|
@@ -14,6 +15,7 @@ export const UpdateBYOKKeyRequest$outboundSchema = z.object({
|
|
|
14
15
|
name: z.nullable(z.string()).optional(),
|
|
15
16
|
}).transform((v) => {
|
|
16
17
|
return remap$(v, {
|
|
18
|
+
allowedApiKeyHashes: "allowed_api_key_hashes",
|
|
17
19
|
allowedModels: "allowed_models",
|
|
18
20
|
allowedUserIds: "allowed_user_ids",
|
|
19
21
|
isFallback: "is_fallback",
|
package/esm/sdk/byok.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class BYOK extends ClientSDK {
|
|
|
16
16
|
* Create a BYOK provider credential
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
|
+
* Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
20
|
*/
|
|
21
21
|
create(request: operations.CreateBYOKKeyRequest, options?: RequestOptions): Promise<models.CreateBYOKKeyResponse>;
|
|
22
22
|
/**
|
|
@@ -37,7 +37,7 @@ export declare class BYOK extends ClientSDK {
|
|
|
37
37
|
* Update a BYOK provider credential
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
|
-
* Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
40
|
+
* Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys (`null` clears the restriction). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
41
41
|
*/
|
|
42
42
|
update(request: operations.UpdateBYOKKeyRequest, options?: RequestOptions): Promise<models.UpdateBYOKKeyResponse>;
|
|
43
43
|
}
|
package/esm/sdk/byok.js
CHANGED
|
@@ -24,7 +24,7 @@ export class BYOK extends ClientSDK {
|
|
|
24
24
|
* Create a BYOK provider credential
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
* Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
|
+
* Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. When `workspace_id` is omitted, the credential is created in the default workspace; if that default has been deleted, the request returns a 400 and you must pass `workspace_id` explicitly. Treat the raw key as write-only; it is never returned after creation. Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
28
28
|
*/
|
|
29
29
|
async create(request, options) {
|
|
30
30
|
return unwrapAsync(byokCreate(this, request, options));
|
|
@@ -51,7 +51,7 @@ export class BYOK extends ClientSDK {
|
|
|
51
51
|
* Update a BYOK provider credential
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
54
|
+
* Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). Use `allowed_api_key_hashes` to restrict the credential to specific OpenRouter API keys (`null` clears the restriction). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
55
55
|
*/
|
|
56
56
|
async update(request, options) {
|
|
57
57
|
return unwrapAsync(byokUpdate(this, request, options));
|
package/esm/sdk/guardrails.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class Guardrails extends ClientSDK {
|
|
|
16
16
|
* Create a guardrail
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Create a new guardrail for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
|
+
* Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
20
|
*/
|
|
21
21
|
create(request: operations.CreateGuardrailRequest, options?: RequestOptions): Promise<models.CreateGuardrailResponse>;
|
|
22
22
|
/**
|
package/esm/sdk/guardrails.js
CHANGED
|
@@ -32,7 +32,7 @@ export class Guardrails extends ClientSDK {
|
|
|
32
32
|
* Create a guardrail
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
|
-
* Create a new guardrail for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
35
|
+
* Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
36
36
|
*/
|
|
37
37
|
async create(request, options) {
|
|
38
38
|
return unwrapAsync(guardrailsCreate(this, request, options));
|
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.51",
|
|
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
|
-
"test:e2e": "vitest --run --project e2e",
|
|
77
|
-
"typecheck": "tsc --noEmit",
|
|
78
76
|
"typecheck:transit": "exit 0",
|
|
79
77
|
"postinstall": "node scripts/check-types.js || true",
|
|
78
|
+
"test": "vitest --run --project unit",
|
|
79
|
+
"compile": "tsc",
|
|
80
80
|
"prepare": "npm run build",
|
|
81
|
+
"test:e2e": "vitest --run --project e2e",
|
|
81
82
|
"test:transit": "exit 0",
|
|
82
83
|
"test:watch": "vitest --watch --project unit",
|
|
83
|
-
"
|
|
84
|
-
"test": "vitest --run --project unit"
|
|
84
|
+
"typecheck": "tsc --noEmit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|