@openrouter/sdk 1.3.36 → 1.4.1
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/internsCreateIntern.d.ts +1 -1
- package/esm/funcs/internsCreateIntern.js +1 -1
- package/esm/funcs/internsDeleteIntern.d.ts +1 -1
- package/esm/funcs/internsDeleteIntern.js +1 -1
- package/esm/funcs/internsGetIntern.d.ts +1 -1
- package/esm/funcs/internsGetIntern.js +1 -1
- package/esm/funcs/internsGetInternDaemon.d.ts +1 -1
- package/esm/funcs/internsGetInternDaemon.js +1 -1
- package/esm/funcs/internsGetInternDaemonAccess.d.ts +1 -1
- package/esm/funcs/internsGetInternDaemonAccess.js +1 -1
- package/esm/funcs/internsListInterns.d.ts +1 -1
- package/esm/funcs/internsListInterns.js +1 -1
- package/esm/funcs/internsProvisionIntern.d.ts +1 -1
- package/esm/funcs/internsProvisionIntern.js +1 -1
- package/esm/funcs/internsSuspendIntern.d.ts +1 -1
- package/esm/funcs/internsSuspendIntern.js +1 -1
- package/esm/funcs/internsUpdateIntern.d.ts +1 -1
- package/esm/funcs/internsUpdateIntern.js +1 -1
- package/esm/funcs/privateEndpointsActivate.d.ts +19 -0
- package/esm/funcs/privateEndpointsActivate.js +103 -0
- package/esm/funcs/privateEndpointsCreate.d.ts +19 -0
- package/esm/funcs/privateEndpointsCreate.js +101 -0
- package/esm/funcs/privateEndpointsDelete.d.ts +19 -0
- package/esm/funcs/privateEndpointsDelete.js +107 -0
- package/esm/funcs/privateEndpointsDisable.d.ts +19 -0
- package/esm/funcs/privateEndpointsDisable.js +103 -0
- package/esm/funcs/privateEndpointsEnable.d.ts +19 -0
- package/esm/funcs/privateEndpointsEnable.js +103 -0
- package/esm/funcs/privateEndpointsGet.d.ts +19 -0
- package/esm/funcs/privateEndpointsGet.js +103 -0
- package/esm/funcs/privateEndpointsList.d.ts +19 -0
- package/esm/funcs/privateEndpointsList.js +97 -0
- package/esm/funcs/privateEndpointsUpdate.d.ts +19 -0
- package/esm/funcs/privateEndpointsUpdate.js +106 -0
- package/esm/funcs/privateEndpointsUpdatePricing.d.ts +19 -0
- package/esm/funcs/privateEndpointsUpdatePricing.js +106 -0
- package/esm/funcs/privateEndpointsValidate.d.ts +19 -0
- package/esm/funcs/privateEndpointsValidate.js +106 -0
- package/esm/funcs/vaultCopyVaultSecretsToIntern.d.ts +1 -1
- package/esm/funcs/vaultCopyVaultSecretsToIntern.js +1 -1
- package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultDeleteInternVaultSecret.js +1 -1
- package/esm/funcs/vaultDeleteVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultDeleteVaultSecret.js +1 -1
- package/esm/funcs/vaultListInternEffectiveVaultSecrets.d.ts +21 -0
- package/esm/funcs/vaultListInternEffectiveVaultSecrets.js +110 -0
- package/esm/funcs/vaultListInternVaultSecrets.d.ts +1 -1
- package/esm/funcs/vaultListInternVaultSecrets.js +1 -1
- package/esm/funcs/vaultListVaultSecrets.d.ts +1 -1
- package/esm/funcs/vaultListVaultSecrets.js +1 -1
- package/esm/funcs/vaultStoreInternVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultStoreInternVaultSecret.js +1 -1
- package/esm/funcs/vaultStoreVaultSecret.d.ts +1 -1
- package/esm/funcs/vaultStoreVaultSecret.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createprivateendpointrequest.d.ts +67 -0
- package/esm/models/createprivateendpointrequest.js +44 -0
- package/esm/models/createprivateendpointvalidationfailedresponseerror.d.ts +20 -0
- package/esm/models/createprivateendpointvalidationfailedresponseerror.js +27 -0
- package/esm/models/deleteprivateendpointresponse.d.ts +19 -0
- package/esm/models/deleteprivateendpointresponse.js +21 -0
- package/esm/models/errors/createprivateendpoint.d.ts +45 -0
- package/esm/models/errors/createprivateendpoint.js +53 -0
- package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.d.ts +21 -0
- package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.js +35 -0
- package/esm/models/errors/index.d.ts +2 -0
- package/esm/models/errors/index.js +2 -0
- package/esm/models/index.d.ts +23 -0
- package/esm/models/index.js +23 -0
- package/esm/models/listprivateendpointsresponse.d.ts +11 -0
- package/esm/models/listprivateendpointsresponse.js +15 -0
- package/esm/models/managedprivateendpoint.d.ts +47 -0
- package/esm/models/managedprivateendpoint.js +35 -0
- package/esm/models/managedprivateendpointresponse.d.ts +11 -0
- package/esm/models/managedprivateendpointresponse.js +15 -0
- package/esm/models/operations/activateprivateendpoint.d.ts +58 -0
- package/esm/models/operations/activateprivateendpoint.js +21 -0
- package/esm/models/operations/createprivateendpoint.d.ts +61 -0
- package/esm/models/operations/createprivateendpoint.js +25 -0
- package/esm/models/operations/deleteprivateendpoint.d.ts +77 -0
- package/esm/models/operations/deleteprivateendpoint.js +34 -0
- package/esm/models/operations/disableprivateendpoint.d.ts +58 -0
- package/esm/models/operations/disableprivateendpoint.js +21 -0
- package/esm/models/operations/enableprivateendpoint.d.ts +58 -0
- package/esm/models/operations/enableprivateendpoint.js +21 -0
- package/esm/models/operations/getprivateendpoint.d.ts +58 -0
- package/esm/models/operations/getprivateendpoint.js +21 -0
- package/esm/models/operations/index.d.ts +11 -0
- package/esm/models/operations/index.js +11 -0
- package/esm/models/operations/listinterneffectivevaultsecrets.d.ts +68 -0
- package/esm/models/operations/listinterneffectivevaultsecrets.js +23 -0
- package/esm/models/operations/listprivateendpoints.d.ts +53 -0
- package/esm/models/operations/listprivateendpoints.js +20 -0
- package/esm/models/operations/updateprivateendpoint.d.ts +61 -0
- package/esm/models/operations/updateprivateendpoint.js +24 -0
- package/esm/models/operations/updateprivateendpointpricing.d.ts +61 -0
- package/esm/models/operations/updateprivateendpointpricing.js +24 -0
- package/esm/models/operations/validateprivateendpoint.d.ts +61 -0
- package/esm/models/operations/validateprivateendpoint.js +24 -0
- package/esm/models/privateendpoint.d.ts +60 -0
- package/esm/models/privateendpoint.js +41 -0
- package/esm/models/privateendpointactivation.d.ts +18 -0
- package/esm/models/privateendpointactivation.js +18 -0
- package/esm/models/privateendpointcheck.d.ts +31 -0
- package/esm/models/privateendpointcheck.js +27 -0
- package/esm/models/privateendpointcheckreason.d.ts +30 -0
- package/esm/models/privateendpointcheckreason.js +29 -0
- package/esm/models/privateendpointdeclaredregion.d.ts +17 -0
- package/esm/models/privateendpointdeclaredregion.js +16 -0
- package/esm/models/privateendpointpricing.d.ts +28 -0
- package/esm/models/privateendpointpricing.js +23 -0
- package/esm/models/privateendpointresponse.d.ts +11 -0
- package/esm/models/privateendpointresponse.js +15 -0
- package/esm/models/privateendpointstatus.d.ts +17 -0
- package/esm/models/privateendpointstatus.js +16 -0
- package/esm/models/privateendpointsummary.d.ts +38 -0
- package/esm/models/privateendpointsummary.js +30 -0
- package/esm/models/privateendpointvalidation.d.ts +15 -0
- package/esm/models/privateendpointvalidation.js +16 -0
- package/esm/models/privateendpointvalidationnullable.d.ts +15 -0
- package/esm/models/privateendpointvalidationnullable.js +16 -0
- package/esm/models/privateendpointvalidationresponse.d.ts +11 -0
- package/esm/models/privateendpointvalidationresponse.js +15 -0
- package/esm/models/tokenexchangerequest.d.ts +4 -4
- package/esm/models/tokenexchangerequest.js +3 -3
- package/esm/models/updateprivateendpointpricingrequest.d.ts +16 -0
- package/esm/models/updateprivateendpointpricingrequest.js +14 -0
- package/esm/models/updateprivateendpointrequest.d.ts +45 -0
- package/esm/models/updateprivateendpointrequest.js +36 -0
- package/esm/models/validateprivateendpointrequest.d.ts +15 -0
- package/esm/models/validateprivateendpointrequest.js +18 -0
- package/esm/models/vaulteffectivesecret.d.ts +35 -0
- package/esm/models/vaulteffectivesecret.js +34 -0
- package/esm/models/vaulteffectivesecretlistresponse.d.ts +18 -0
- package/esm/models/vaulteffectivesecretlistresponse.js +21 -0
- package/esm/sdk/interns.d.ts +9 -9
- package/esm/sdk/interns.js +9 -9
- package/esm/sdk/privateendpoints.d.ts +76 -0
- package/esm/sdk/privateendpoints.js +109 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/vault.d.ts +14 -7
- package/esm/sdk/vault.js +17 -7
- package/jsr.json +1 -1
- package/package.json +8 -8
package/esm/sdk/vault.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { vaultCopyVaultSecretsToIntern } from "../funcs/vaultCopyVaultSecretsToIntern.js";
|
|
6
6
|
import { vaultDeleteInternVaultSecret } from "../funcs/vaultDeleteInternVaultSecret.js";
|
|
7
7
|
import { vaultDeleteVaultSecret } from "../funcs/vaultDeleteVaultSecret.js";
|
|
8
|
+
import { vaultListInternEffectiveVaultSecrets } from "../funcs/vaultListInternEffectiveVaultSecrets.js";
|
|
8
9
|
import { vaultListInternVaultSecrets } from "../funcs/vaultListInternVaultSecrets.js";
|
|
9
10
|
import { vaultListVaultSecrets } from "../funcs/vaultListVaultSecrets.js";
|
|
10
11
|
import { vaultStoreInternVaultSecret } from "../funcs/vaultStoreInternVaultSecret.js";
|
|
@@ -12,11 +13,20 @@ import { vaultStoreVaultSecret } from "../funcs/vaultStoreVaultSecret.js";
|
|
|
12
13
|
import { ClientSDK } from "../lib/sdks.js";
|
|
13
14
|
import { unwrapAsync } from "../types/fp.js";
|
|
14
15
|
export class Vault extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* List the secrets an intern receives
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Lists, one entry per name, the secret the intern's outbound requests receive: its own secrets, secrets from an attached vault, and workspace secrets, including ones stored before workspace-scoped storage. Where several vaults hold a name, the entry is the one that wins, in the order intern, attached, workspace. The same resolution decides what outbound requests receive, so this list and the intern's requests agree. `scope` says which vault the entry comes from. Responses carry metadata only, never values. Results are ordered by name and paginated with `limit` and `offset`. Returns 404 when the intern's attached vault is no longer available, since the intern then receives no secrets. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
21
|
+
*/
|
|
22
|
+
async listInternEffectiveVaultSecrets(request, options) {
|
|
23
|
+
return unwrapAsync(vaultListInternEffectiveVaultSecrets(this, request, options));
|
|
24
|
+
}
|
|
15
25
|
/**
|
|
16
26
|
* List intern secrets
|
|
17
27
|
*
|
|
18
28
|
* @remarks
|
|
19
|
-
* Lists secret metadata stored for one intern. Responses contain names, bound hosts, fingerprints and creation times, never secret values. Results are ordered by name and paginated with `limit` and `offset`. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
29
|
+
* Lists secret metadata stored for one intern. The list includes secrets stored from the dashboard or at provisioning before workspace-scoped storage; where both exist under one name, the one stored through this API is listed. Those older secrets cannot be deleted or copied through this API, and storing the same name through this API replaces them. Responses contain names, bound hosts, fingerprints and creation times, never secret values. Results are ordered by name and paginated with `limit` and `offset`. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
20
30
|
*/
|
|
21
31
|
async listInternVaultSecrets(request, options) {
|
|
22
32
|
return unwrapAsync(vaultListInternVaultSecrets(this, request, options));
|
|
@@ -25,7 +35,7 @@ export class Vault extends ClientSDK {
|
|
|
25
35
|
* Delete an intern secret
|
|
26
36
|
*
|
|
27
37
|
* @remarks
|
|
28
|
-
* Deletes a secret stored for one intern. Returns 204 with no body on success and 404 when the secret does not exist in the selected scope. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
38
|
+
* Deletes a secret stored for one intern. Returns 204 with no body on success and 404 when the secret does not exist in the selected scope. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
29
39
|
*/
|
|
30
40
|
async deleteInternVaultSecret(request, options) {
|
|
31
41
|
return unwrapAsync(vaultDeleteInternVaultSecret(this, request, options));
|
|
@@ -34,7 +44,7 @@ export class Vault extends ClientSDK {
|
|
|
34
44
|
* Store an intern secret
|
|
35
45
|
*
|
|
36
46
|
* @remarks
|
|
37
|
-
* Creates or replaces a secret stored for one intern. The value is encrypted at rest and released only to the exact hostnames in `hosts`. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
47
|
+
* Creates or replaces a secret stored for one intern. The value is encrypted at rest and released only to the exact hostnames in `hosts`. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
38
48
|
*/
|
|
39
49
|
async storeInternVaultSecret(request, options) {
|
|
40
50
|
return unwrapAsync(vaultStoreInternVaultSecret(this, request, options));
|
|
@@ -43,7 +53,7 @@ export class Vault extends ClientSDK {
|
|
|
43
53
|
* Copy workspace secrets to an intern
|
|
44
54
|
*
|
|
45
55
|
* @remarks
|
|
46
|
-
* Copies the named workspace secrets into one intern's scope, replacing any intern secret with the same name. Each copy keeps the source value and host bindings. Every name must exist in the workspace scope or the request fails with 404 and nothing is copied. A workspace secret whose `hosts` is `null` cannot be copied: the request fails with 409 and nothing is copied until that secret is stored again with hosts. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
56
|
+
* Copies the named workspace secrets into one intern's scope, replacing any intern secret with the same name. Each copy keeps the source value and host bindings. Every name must exist in the workspace scope or the request fails with 404 and nothing is copied. A workspace secret whose `hosts` is `null` cannot be copied: the request fails with 409 and nothing is copied until that secret is stored again with hosts. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
47
57
|
*/
|
|
48
58
|
async copyVaultSecretsToIntern(request, options) {
|
|
49
59
|
return unwrapAsync(vaultCopyVaultSecretsToIntern(this, request, options));
|
|
@@ -52,7 +62,7 @@ export class Vault extends ClientSDK {
|
|
|
52
62
|
* List workspace secrets
|
|
53
63
|
*
|
|
54
64
|
* @remarks
|
|
55
|
-
* Lists secret metadata for the workspace of the authenticated API key. Responses contain names, bound hosts, fingerprints and creation times, never secret values. Results are ordered by name and paginated with `limit` and `offset`. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
65
|
+
* Lists secret metadata for the workspace of the authenticated API key. The list includes secrets stored from the dashboard or at provisioning before workspace-scoped storage; where both exist under one name, the one stored through this API is listed. Those older secrets cannot be deleted or copied through this API, and storing the same name through this API replaces them. Responses contain names, bound hosts, fingerprints and creation times, never secret values. Results are ordered by name and paginated with `limit` and `offset`. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
56
66
|
*/
|
|
57
67
|
async listVaultSecrets(request, options) {
|
|
58
68
|
return unwrapAsync(vaultListVaultSecrets(this, request, options));
|
|
@@ -61,7 +71,7 @@ export class Vault extends ClientSDK {
|
|
|
61
71
|
* Delete a workspace secret
|
|
62
72
|
*
|
|
63
73
|
* @remarks
|
|
64
|
-
* Deletes a secret from the workspace of the authenticated API key. Returns 204 with no body on success and 404 when the secret does not exist in the selected scope. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
74
|
+
* Deletes a secret from the workspace of the authenticated API key. Returns 204 with no body on success and 404 when the secret does not exist in the selected scope. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
65
75
|
*/
|
|
66
76
|
async deleteVaultSecret(request, options) {
|
|
67
77
|
return unwrapAsync(vaultDeleteVaultSecret(this, request, options));
|
|
@@ -70,7 +80,7 @@ export class Vault extends ClientSDK {
|
|
|
70
80
|
* Store a workspace secret
|
|
71
81
|
*
|
|
72
82
|
* @remarks
|
|
73
|
-
* Creates or replaces a secret in the workspace of the authenticated API key. The value is encrypted at rest and released only to the exact hostnames in `hosts`. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
83
|
+
* Creates or replaces a secret in the workspace of the authenticated API key. The value is encrypted at rest and released only to the exact hostnames in `hosts`. The response carries metadata only. Writes return 503 while vault writes are disabled for the caller. The scope is selected by the API key: workspace routes act on the key's active workspace and intern routes act on one intern inside that workspace. There is no default workspace and no fallback to another scope. Every vault route, including reads, requires access to the Intern API programme and returns 404 outside it. An intern's own API key is confined to that intern: it can always read the intern's secrets and effective secrets, writes to them follow the rules above, and every other intern and every workspace route answers 404. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
|
|
74
84
|
*/
|
|
75
85
|
async storeVaultSecret(request, options) {
|
|
76
86
|
return unwrapAsync(vaultStoreVaultSecret(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.
|
|
3
|
+
"version": "1.4.1",
|
|
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": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"packageManager": "pnpm@10.22.0",
|
|
23
23
|
"publishConfig": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"provenance": true,
|
|
25
|
+
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./esm/index.js",
|
|
@@ -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
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
77
76
|
"prepare": "npm run build",
|
|
78
|
-
"test:transit": "exit 0",
|
|
79
|
-
"test:watch": "vitest --watch --project unit",
|
|
80
77
|
"test": "vitest --run --project unit",
|
|
81
78
|
"test:e2e": "vitest --run --project e2e",
|
|
79
|
+
"test:transit": "exit 0",
|
|
80
|
+
"test:watch": "vitest --watch --project unit",
|
|
82
81
|
"typecheck": "tsc --noEmit",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
82
|
+
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
83
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
84
|
+
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|