@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.
Files changed (146) hide show
  1. package/esm/funcs/internsCreateIntern.d.ts +1 -1
  2. package/esm/funcs/internsCreateIntern.js +1 -1
  3. package/esm/funcs/internsDeleteIntern.d.ts +1 -1
  4. package/esm/funcs/internsDeleteIntern.js +1 -1
  5. package/esm/funcs/internsGetIntern.d.ts +1 -1
  6. package/esm/funcs/internsGetIntern.js +1 -1
  7. package/esm/funcs/internsGetInternDaemon.d.ts +1 -1
  8. package/esm/funcs/internsGetInternDaemon.js +1 -1
  9. package/esm/funcs/internsGetInternDaemonAccess.d.ts +1 -1
  10. package/esm/funcs/internsGetInternDaemonAccess.js +1 -1
  11. package/esm/funcs/internsListInterns.d.ts +1 -1
  12. package/esm/funcs/internsListInterns.js +1 -1
  13. package/esm/funcs/internsProvisionIntern.d.ts +1 -1
  14. package/esm/funcs/internsProvisionIntern.js +1 -1
  15. package/esm/funcs/internsSuspendIntern.d.ts +1 -1
  16. package/esm/funcs/internsSuspendIntern.js +1 -1
  17. package/esm/funcs/internsUpdateIntern.d.ts +1 -1
  18. package/esm/funcs/internsUpdateIntern.js +1 -1
  19. package/esm/funcs/privateEndpointsActivate.d.ts +19 -0
  20. package/esm/funcs/privateEndpointsActivate.js +103 -0
  21. package/esm/funcs/privateEndpointsCreate.d.ts +19 -0
  22. package/esm/funcs/privateEndpointsCreate.js +101 -0
  23. package/esm/funcs/privateEndpointsDelete.d.ts +19 -0
  24. package/esm/funcs/privateEndpointsDelete.js +107 -0
  25. package/esm/funcs/privateEndpointsDisable.d.ts +19 -0
  26. package/esm/funcs/privateEndpointsDisable.js +103 -0
  27. package/esm/funcs/privateEndpointsEnable.d.ts +19 -0
  28. package/esm/funcs/privateEndpointsEnable.js +103 -0
  29. package/esm/funcs/privateEndpointsGet.d.ts +19 -0
  30. package/esm/funcs/privateEndpointsGet.js +103 -0
  31. package/esm/funcs/privateEndpointsList.d.ts +19 -0
  32. package/esm/funcs/privateEndpointsList.js +97 -0
  33. package/esm/funcs/privateEndpointsUpdate.d.ts +19 -0
  34. package/esm/funcs/privateEndpointsUpdate.js +106 -0
  35. package/esm/funcs/privateEndpointsUpdatePricing.d.ts +19 -0
  36. package/esm/funcs/privateEndpointsUpdatePricing.js +106 -0
  37. package/esm/funcs/privateEndpointsValidate.d.ts +19 -0
  38. package/esm/funcs/privateEndpointsValidate.js +106 -0
  39. package/esm/funcs/vaultCopyVaultSecretsToIntern.d.ts +1 -1
  40. package/esm/funcs/vaultCopyVaultSecretsToIntern.js +1 -1
  41. package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +1 -1
  42. package/esm/funcs/vaultDeleteInternVaultSecret.js +1 -1
  43. package/esm/funcs/vaultDeleteVaultSecret.d.ts +1 -1
  44. package/esm/funcs/vaultDeleteVaultSecret.js +1 -1
  45. package/esm/funcs/vaultListInternEffectiveVaultSecrets.d.ts +21 -0
  46. package/esm/funcs/vaultListInternEffectiveVaultSecrets.js +110 -0
  47. package/esm/funcs/vaultListInternVaultSecrets.d.ts +1 -1
  48. package/esm/funcs/vaultListInternVaultSecrets.js +1 -1
  49. package/esm/funcs/vaultListVaultSecrets.d.ts +1 -1
  50. package/esm/funcs/vaultListVaultSecrets.js +1 -1
  51. package/esm/funcs/vaultStoreInternVaultSecret.d.ts +1 -1
  52. package/esm/funcs/vaultStoreInternVaultSecret.js +1 -1
  53. package/esm/funcs/vaultStoreVaultSecret.d.ts +1 -1
  54. package/esm/funcs/vaultStoreVaultSecret.js +1 -1
  55. package/esm/lib/config.d.ts +2 -2
  56. package/esm/lib/config.js +2 -2
  57. package/esm/models/createprivateendpointrequest.d.ts +67 -0
  58. package/esm/models/createprivateendpointrequest.js +44 -0
  59. package/esm/models/createprivateendpointvalidationfailedresponseerror.d.ts +20 -0
  60. package/esm/models/createprivateendpointvalidationfailedresponseerror.js +27 -0
  61. package/esm/models/deleteprivateendpointresponse.d.ts +19 -0
  62. package/esm/models/deleteprivateendpointresponse.js +21 -0
  63. package/esm/models/errors/createprivateendpoint.d.ts +45 -0
  64. package/esm/models/errors/createprivateendpoint.js +53 -0
  65. package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.d.ts +21 -0
  66. package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.js +35 -0
  67. package/esm/models/errors/index.d.ts +2 -0
  68. package/esm/models/errors/index.js +2 -0
  69. package/esm/models/index.d.ts +23 -0
  70. package/esm/models/index.js +23 -0
  71. package/esm/models/listprivateendpointsresponse.d.ts +11 -0
  72. package/esm/models/listprivateendpointsresponse.js +15 -0
  73. package/esm/models/managedprivateendpoint.d.ts +47 -0
  74. package/esm/models/managedprivateendpoint.js +35 -0
  75. package/esm/models/managedprivateendpointresponse.d.ts +11 -0
  76. package/esm/models/managedprivateendpointresponse.js +15 -0
  77. package/esm/models/operations/activateprivateendpoint.d.ts +58 -0
  78. package/esm/models/operations/activateprivateendpoint.js +21 -0
  79. package/esm/models/operations/createprivateendpoint.d.ts +61 -0
  80. package/esm/models/operations/createprivateendpoint.js +25 -0
  81. package/esm/models/operations/deleteprivateendpoint.d.ts +77 -0
  82. package/esm/models/operations/deleteprivateendpoint.js +34 -0
  83. package/esm/models/operations/disableprivateendpoint.d.ts +58 -0
  84. package/esm/models/operations/disableprivateendpoint.js +21 -0
  85. package/esm/models/operations/enableprivateendpoint.d.ts +58 -0
  86. package/esm/models/operations/enableprivateendpoint.js +21 -0
  87. package/esm/models/operations/getprivateendpoint.d.ts +58 -0
  88. package/esm/models/operations/getprivateendpoint.js +21 -0
  89. package/esm/models/operations/index.d.ts +11 -0
  90. package/esm/models/operations/index.js +11 -0
  91. package/esm/models/operations/listinterneffectivevaultsecrets.d.ts +68 -0
  92. package/esm/models/operations/listinterneffectivevaultsecrets.js +23 -0
  93. package/esm/models/operations/listprivateendpoints.d.ts +53 -0
  94. package/esm/models/operations/listprivateendpoints.js +20 -0
  95. package/esm/models/operations/updateprivateendpoint.d.ts +61 -0
  96. package/esm/models/operations/updateprivateendpoint.js +24 -0
  97. package/esm/models/operations/updateprivateendpointpricing.d.ts +61 -0
  98. package/esm/models/operations/updateprivateendpointpricing.js +24 -0
  99. package/esm/models/operations/validateprivateendpoint.d.ts +61 -0
  100. package/esm/models/operations/validateprivateendpoint.js +24 -0
  101. package/esm/models/privateendpoint.d.ts +60 -0
  102. package/esm/models/privateendpoint.js +41 -0
  103. package/esm/models/privateendpointactivation.d.ts +18 -0
  104. package/esm/models/privateendpointactivation.js +18 -0
  105. package/esm/models/privateendpointcheck.d.ts +31 -0
  106. package/esm/models/privateendpointcheck.js +27 -0
  107. package/esm/models/privateendpointcheckreason.d.ts +30 -0
  108. package/esm/models/privateendpointcheckreason.js +29 -0
  109. package/esm/models/privateendpointdeclaredregion.d.ts +17 -0
  110. package/esm/models/privateendpointdeclaredregion.js +16 -0
  111. package/esm/models/privateendpointpricing.d.ts +28 -0
  112. package/esm/models/privateendpointpricing.js +23 -0
  113. package/esm/models/privateendpointresponse.d.ts +11 -0
  114. package/esm/models/privateendpointresponse.js +15 -0
  115. package/esm/models/privateendpointstatus.d.ts +17 -0
  116. package/esm/models/privateendpointstatus.js +16 -0
  117. package/esm/models/privateendpointsummary.d.ts +38 -0
  118. package/esm/models/privateendpointsummary.js +30 -0
  119. package/esm/models/privateendpointvalidation.d.ts +15 -0
  120. package/esm/models/privateendpointvalidation.js +16 -0
  121. package/esm/models/privateendpointvalidationnullable.d.ts +15 -0
  122. package/esm/models/privateendpointvalidationnullable.js +16 -0
  123. package/esm/models/privateendpointvalidationresponse.d.ts +11 -0
  124. package/esm/models/privateendpointvalidationresponse.js +15 -0
  125. package/esm/models/tokenexchangerequest.d.ts +4 -4
  126. package/esm/models/tokenexchangerequest.js +3 -3
  127. package/esm/models/updateprivateendpointpricingrequest.d.ts +16 -0
  128. package/esm/models/updateprivateendpointpricingrequest.js +14 -0
  129. package/esm/models/updateprivateendpointrequest.d.ts +45 -0
  130. package/esm/models/updateprivateendpointrequest.js +36 -0
  131. package/esm/models/validateprivateendpointrequest.d.ts +15 -0
  132. package/esm/models/validateprivateendpointrequest.js +18 -0
  133. package/esm/models/vaulteffectivesecret.d.ts +35 -0
  134. package/esm/models/vaulteffectivesecret.js +34 -0
  135. package/esm/models/vaulteffectivesecretlistresponse.d.ts +18 -0
  136. package/esm/models/vaulteffectivesecretlistresponse.js +21 -0
  137. package/esm/sdk/interns.d.ts +9 -9
  138. package/esm/sdk/interns.js +9 -9
  139. package/esm/sdk/privateendpoints.d.ts +76 -0
  140. package/esm/sdk/privateendpoints.js +109 -0
  141. package/esm/sdk/sdk.d.ts +3 -0
  142. package/esm/sdk/sdk.js +4 -0
  143. package/esm/sdk/vault.d.ts +14 -7
  144. package/esm/sdk/vault.js +17 -7
  145. package/jsr.json +1 -1
  146. package/package.json +8 -8
@@ -0,0 +1,35 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ /**
6
+ * Where the delivered secret is stored: `intern` for the intern's own vault, `attached` for a vault attached to the intern, `workspace` for the workspace vault.
7
+ */
8
+ export declare const VaultEffectiveSecretScope: {
9
+ readonly Intern: "intern";
10
+ readonly Attached: "attached";
11
+ readonly Workspace: "workspace";
12
+ };
13
+ /**
14
+ * Where the delivered secret is stored: `intern` for the intern's own vault, `attached` for a vault attached to the intern, `workspace` for the workspace vault.
15
+ */
16
+ export type VaultEffectiveSecretScope = OpenEnum<typeof VaultEffectiveSecretScope>;
17
+ /**
18
+ * Metadata for the one secret the intern's outbound requests receive under this name. The secret value is never returned. The intern receives it only on requests to a hostname in `hosts`, or on any request when `hosts` is `null`; a request to any other hostname receives no secret under this name, even when another vault holds one. `fingerprint` is comparable only within one vault.
19
+ */
20
+ export type VaultEffectiveSecret = {
21
+ createdAt: Date;
22
+ fingerprint: string | null;
23
+ hosts: Array<string> | null;
24
+ name: string;
25
+ /**
26
+ * Where the delivered secret is stored: `intern` for the intern's own vault, `attached` for a vault attached to the intern, `workspace` for the workspace vault.
27
+ */
28
+ scope: VaultEffectiveSecretScope;
29
+ };
30
+ /** @internal */
31
+ export declare const VaultEffectiveSecretScope$inboundSchema: z.ZodType<VaultEffectiveSecretScope, unknown>;
32
+ /** @internal */
33
+ export declare const VaultEffectiveSecret$inboundSchema: z.ZodType<VaultEffectiveSecret, unknown>;
34
+ export declare function vaultEffectiveSecretFromJSON(jsonString: string): SafeParseResult<VaultEffectiveSecret, SDKValidationError>;
35
+ //# sourceMappingURL=vaulteffectivesecret.d.ts.map
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0e9a217f3be7
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ /**
10
+ * Where the delivered secret is stored: `intern` for the intern's own vault, `attached` for a vault attached to the intern, `workspace` for the workspace vault.
11
+ */
12
+ export const VaultEffectiveSecretScope = {
13
+ Intern: "intern",
14
+ Attached: "attached",
15
+ Workspace: "workspace",
16
+ };
17
+ /** @internal */
18
+ export const VaultEffectiveSecretScope$inboundSchema = openEnums.inboundSchema(VaultEffectiveSecretScope);
19
+ /** @internal */
20
+ export const VaultEffectiveSecret$inboundSchema = z.object({
21
+ created_at: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
22
+ fingerprint: z.nullable(z.string()),
23
+ hosts: z.nullable(z.array(z.string())),
24
+ name: z.string(),
25
+ scope: VaultEffectiveSecretScope$inboundSchema,
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ "created_at": "createdAt",
29
+ });
30
+ });
31
+ export function vaultEffectiveSecretFromJSON(jsonString) {
32
+ return safeParse(jsonString, (x) => VaultEffectiveSecret$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VaultEffectiveSecret' from JSON`);
33
+ }
34
+ //# sourceMappingURL=vaulteffectivesecret.js.map
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { VaultEffectiveSecret } from "./vaulteffectivesecret.js";
5
+ /**
6
+ * One page of the secrets an intern receives, one entry per name.
7
+ */
8
+ export type VaultEffectiveSecretListResponse = {
9
+ data: Array<VaultEffectiveSecret>;
10
+ /**
11
+ * True when more secrets exist beyond this page. Request the next page with `offset` increased by the number of returned entries.
12
+ */
13
+ hasMore: boolean;
14
+ };
15
+ /** @internal */
16
+ export declare const VaultEffectiveSecretListResponse$inboundSchema: z.ZodType<VaultEffectiveSecretListResponse, unknown>;
17
+ export declare function vaultEffectiveSecretListResponseFromJSON(jsonString: string): SafeParseResult<VaultEffectiveSecretListResponse, SDKValidationError>;
18
+ //# sourceMappingURL=vaulteffectivesecretlistresponse.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 053f6551d3f4
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { VaultEffectiveSecret$inboundSchema, } from "./vaulteffectivesecret.js";
9
+ /** @internal */
10
+ export const VaultEffectiveSecretListResponse$inboundSchema = z.object({
11
+ data: z.array(VaultEffectiveSecret$inboundSchema),
12
+ has_more: z.boolean(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "has_more": "hasMore",
16
+ });
17
+ });
18
+ export function vaultEffectiveSecretListResponseFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => VaultEffectiveSecretListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VaultEffectiveSecretListResponse' from JSON`);
20
+ }
21
+ //# sourceMappingURL=vaulteffectivesecretlistresponse.js.map
@@ -6,49 +6,49 @@ export declare class Interns extends ClientSDK {
6
6
  * List interns
7
7
  *
8
8
  * @remarks
9
- * Lists interns visible to the authenticated key, newest first. Filter by workspace and one or more lifecycle statuses. 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.
9
+ * Lists interns visible to the authenticated key, newest first. Filter by workspace and one or more lifecycle statuses. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
10
10
  */
11
11
  listInterns(request?: operations.ListInternsRequest | undefined, options?: RequestOptions): Promise<models.InternListResponse>;
12
12
  /**
13
13
  * Create an intern
14
14
  *
15
15
  * @remarks
16
- * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. 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
+ * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. 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
  createIntern(request: operations.CreateInternRequest, options?: RequestOptions): Promise<models.Intern>;
19
19
  /**
20
20
  * Delete an intern
21
21
  *
22
22
  * @remarks
23
- * Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. 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.
23
+ * Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
24
24
  */
25
25
  deleteIntern(request: operations.DeleteInternRequest, options?: RequestOptions): Promise<models.DeleteInternResponse>;
26
26
  /**
27
27
  * Get an intern
28
28
  *
29
29
  * @remarks
30
- * Returns the public lifecycle state and settings for one visible 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.
30
+ * Returns the public lifecycle state and settings for one visible intern. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
31
31
  */
32
32
  getIntern(request: operations.GetInternRequest, options?: RequestOptions): Promise<models.Intern>;
33
33
  /**
34
34
  * Update an intern
35
35
  *
36
36
  * @remarks
37
- * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. 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.
37
+ * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
38
38
  */
39
39
  updateIntern(request: operations.UpdateInternRequest, options?: RequestOptions): Promise<models.Intern>;
40
40
  /**
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`, 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.
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. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. 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
  getInternDaemon(request: operations.GetInternDaemonRequest, options?: RequestOptions): Promise<models.InternDaemonAccess>;
47
47
  /**
48
48
  * Get an intern's daemon access (deprecated alias)
49
49
  *
50
50
  * @remarks
51
- * Deprecated alias of `GET /interns/{internId}/daemon` with the same request, response, and errors. 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.
51
+ * Deprecated alias of `GET /interns/{internId}/daemon` with the same request, response, and errors. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
52
52
  *
53
53
  * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
54
54
  */
@@ -57,14 +57,14 @@ export declare class Interns extends ClientSDK {
57
57
  * Provision an intern
58
58
  *
59
59
  * @remarks
60
- * Starts the first boot, or resumes an intern after suspension. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. 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.
60
+ * Starts the first boot, or resumes an intern after suspension. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
61
61
  */
62
62
  provisionIntern(request: operations.ProvisionInternRequest, options?: RequestOptions): Promise<models.ProvisionInternResponse>;
63
63
  /**
64
64
  * Suspend an intern
65
65
  *
66
66
  * @remarks
67
- * Stops the intern runtime while keeping its disk and configuration for a later provision call. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. 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
+ * Stops the intern runtime while keeping its disk and configuration for a later provision call. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. 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
  suspendIntern(request: operations.SuspendInternRequest, options?: RequestOptions): Promise<models.SuspendInternResponse>;
70
70
  /**
@@ -20,7 +20,7 @@ export class Interns extends ClientSDK {
20
20
  * List interns
21
21
  *
22
22
  * @remarks
23
- * Lists interns visible to the authenticated key, newest first. Filter by workspace and one or more lifecycle statuses. 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.
23
+ * Lists interns visible to the authenticated key, newest first. Filter by workspace and one or more lifecycle statuses. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
24
24
  */
25
25
  async listInterns(request, options) {
26
26
  return unwrapAsync(internsListInterns(this, request, options));
@@ -29,7 +29,7 @@ export class Interns extends ClientSDK {
29
29
  * Create an intern
30
30
  *
31
31
  * @remarks
32
- * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. 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.
32
+ * Creates an intern in an explicit workspace. The operation also creates its private vault. It can start provisioning immediately or wait for a later provision call. A retry with the same idempotency key and body resumes unfinished work. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
33
33
  */
34
34
  async createIntern(request, options) {
35
35
  return unwrapAsync(internsCreateIntern(this, request, options));
@@ -38,7 +38,7 @@ export class Interns extends ClientSDK {
38
38
  * Delete an intern
39
39
  *
40
40
  * @remarks
41
- * Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. 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.
41
+ * Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
42
42
  */
43
43
  async deleteIntern(request, options) {
44
44
  return unwrapAsync(internsDeleteIntern(this, request, options));
@@ -47,7 +47,7 @@ export class Interns extends ClientSDK {
47
47
  * Get an intern
48
48
  *
49
49
  * @remarks
50
- * Returns the public lifecycle state and settings for one visible 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.
50
+ * Returns the public lifecycle state and settings for one visible intern. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
51
51
  */
52
52
  async getIntern(request, options) {
53
53
  return unwrapAsync(internsGetIntern(this, request, options));
@@ -56,7 +56,7 @@ export class Interns extends ClientSDK {
56
56
  * Update an intern
57
57
  *
58
58
  * @remarks
59
- * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. 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.
59
+ * Changes the intern name, description, instructions or model. Omitted fields stay unchanged. The request body is capped at 1048576 bytes and a larger body is refused with 413. A non-empty body must declare `Content-Type: application/json` or it is refused with 415. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
60
60
  */
61
61
  async updateIntern(request, options) {
62
62
  return unwrapAsync(internsUpdateIntern(this, request, options));
@@ -65,7 +65,7 @@ export class Interns extends ClientSDK {
65
65
  * Get an intern's daemon access
66
66
  *
67
67
  * @remarks
68
- * 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
+ * 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. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
69
69
  */
70
70
  async getInternDaemon(request, options) {
71
71
  return unwrapAsync(internsGetInternDaemon(this, request, options));
@@ -74,7 +74,7 @@ export class Interns extends ClientSDK {
74
74
  * Get an intern's daemon access (deprecated alias)
75
75
  *
76
76
  * @remarks
77
- * Deprecated alias of `GET /interns/{internId}/daemon` with the same request, response, and errors. 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.
77
+ * Deprecated alias of `GET /interns/{internId}/daemon` with the same request, response, and errors. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
78
78
  *
79
79
  * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
80
80
  */
@@ -85,7 +85,7 @@ export class Interns extends ClientSDK {
85
85
  * Provision an intern
86
86
  *
87
87
  * @remarks
88
- * Starts the first boot, or resumes an intern after suspension. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. 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.
88
+ * Starts the first boot, or resumes an intern after suspension. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
89
89
  */
90
90
  async provisionIntern(request, options) {
91
91
  return unwrapAsync(internsProvisionIntern(this, request, options));
@@ -94,7 +94,7 @@ export class Interns extends ClientSDK {
94
94
  * Suspend an intern
95
95
  *
96
96
  * @remarks
97
- * Stops the intern runtime while keeping its disk and configuration for a later provision call. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. 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.
97
+ * Stops the intern runtime while keeping its disk and configuration for a later provision call. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. The API key selects the caller, workspace and visible interns. An intern's own API key sees only that intern: the collection and every other intern answer 404 to it. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.
98
98
  */
99
99
  async suspendIntern(request, options) {
100
100
  return unwrapAsync(internsSuspendIntern(this, request, options));
@@ -0,0 +1,76 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as models from "../models/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class PrivateEndpoints extends ClientSDK {
5
+ /**
6
+ * List private endpoints
7
+ *
8
+ * @remarks
9
+ * List the organization's private endpoints, including drafts. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.
10
+ */
11
+ list(request?: operations.ListPrivateEndpointsRequest | undefined, options?: RequestOptions): Promise<models.ListPrivateEndpointsResponse>;
12
+ /**
13
+ * Create a private endpoint
14
+ *
15
+ * @remarks
16
+ * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
17
+ */
18
+ create(request: operations.CreatePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
19
+ /**
20
+ * Delete a private endpoint
21
+ *
22
+ * @remarks
23
+ * Delete a private endpoint and stop routing to it. Pass `draft_only=true` to refuse (409) when the endpoint has been activated. [Management key](/docs/guides/overview/auth/management-api-keys) required.
24
+ */
25
+ delete(request: operations.DeletePrivateEndpointRequest, options?: RequestOptions): Promise<models.DeletePrivateEndpointResponse>;
26
+ /**
27
+ * Get a private endpoint
28
+ *
29
+ * @remarks
30
+ * Get one private endpoint with its upstream configuration and current pricing. [Management key](/docs/guides/overview/auth/management-api-keys) required.
31
+ */
32
+ get(request: operations.GetPrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
33
+ /**
34
+ * Update a draft private endpoint
35
+ *
36
+ * @remarks
37
+ * Replace a draft endpoint's upstream configuration: send `upstream_model_id`, and `base_url` to change it (an omitted `base_url` keeps the stored one). Omitted data-policy declarations are kept while the upstream is unchanged and cleared when it changes. Any change clears earlier validation. Active endpoints return 409; delete and re-create them instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
38
+ */
39
+ update(request: operations.UpdatePrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
40
+ /**
41
+ * Activate a validated private endpoint
42
+ *
43
+ * @remarks
44
+ * Make a validated draft routable. Returns 409 when the endpoint was never validated, the validation is stale, or it is already active. [Management key](/docs/guides/overview/auth/management-api-keys) required.
45
+ */
46
+ activate(request: operations.ActivatePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
47
+ /**
48
+ * Disable a private endpoint
49
+ *
50
+ * @remarks
51
+ * Stop routing to an active endpoint without deleting it. [Management key](/docs/guides/overview/auth/management-api-keys) required.
52
+ */
53
+ disable(request: operations.DisablePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
54
+ /**
55
+ * Enable a private endpoint
56
+ *
57
+ * @remarks
58
+ * Resume routing to a disabled endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.
59
+ */
60
+ enable(request: operations.EnablePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
61
+ /**
62
+ * Set private endpoint pricing
63
+ *
64
+ * @remarks
65
+ * Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. [Management key](/docs/guides/overview/auth/management-api-keys) required.
66
+ */
67
+ updatePricing(request: operations.UpdatePrivateEndpointPricingRequest, options?: RequestOptions): Promise<models.PrivateEndpointResponse>;
68
+ /**
69
+ * Validate a draft private endpoint
70
+ *
71
+ * @remarks
72
+ * Send a live test request to the draft endpoint using the given workspace's BYOK credential for its provider. A passing validation is required before activation. Failed checks return 200 with `passed: false`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
73
+ */
74
+ validate(request: operations.ValidatePrivateEndpointRequest, options?: RequestOptions): Promise<models.PrivateEndpointValidationResponse>;
75
+ }
76
+ //# sourceMappingURL=privateendpoints.d.ts.map
@@ -0,0 +1,109 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ed31ec182fa7
4
+ */
5
+ import { privateEndpointsActivate } from "../funcs/privateEndpointsActivate.js";
6
+ import { privateEndpointsCreate } from "../funcs/privateEndpointsCreate.js";
7
+ import { privateEndpointsDelete } from "../funcs/privateEndpointsDelete.js";
8
+ import { privateEndpointsDisable } from "../funcs/privateEndpointsDisable.js";
9
+ import { privateEndpointsEnable } from "../funcs/privateEndpointsEnable.js";
10
+ import { privateEndpointsGet } from "../funcs/privateEndpointsGet.js";
11
+ import { privateEndpointsList } from "../funcs/privateEndpointsList.js";
12
+ import { privateEndpointsUpdate } from "../funcs/privateEndpointsUpdate.js";
13
+ import { privateEndpointsUpdatePricing } from "../funcs/privateEndpointsUpdatePricing.js";
14
+ import { privateEndpointsValidate } from "../funcs/privateEndpointsValidate.js";
15
+ import { ClientSDK } from "../lib/sdks.js";
16
+ import { unwrapAsync } from "../types/fp.js";
17
+ export class PrivateEndpoints extends ClientSDK {
18
+ /**
19
+ * List private endpoints
20
+ *
21
+ * @remarks
22
+ * List the organization's private endpoints, including drafts. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.
23
+ */
24
+ async list(request, options) {
25
+ return unwrapAsync(privateEndpointsList(this, request, options));
26
+ }
27
+ /**
28
+ * Create a private endpoint
29
+ *
30
+ * @remarks
31
+ * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
32
+ */
33
+ async create(request, options) {
34
+ return unwrapAsync(privateEndpointsCreate(this, request, options));
35
+ }
36
+ /**
37
+ * Delete a private endpoint
38
+ *
39
+ * @remarks
40
+ * Delete a private endpoint and stop routing to it. Pass `draft_only=true` to refuse (409) when the endpoint has been activated. [Management key](/docs/guides/overview/auth/management-api-keys) required.
41
+ */
42
+ async delete(request, options) {
43
+ return unwrapAsync(privateEndpointsDelete(this, request, options));
44
+ }
45
+ /**
46
+ * Get a private endpoint
47
+ *
48
+ * @remarks
49
+ * Get one private endpoint with its upstream configuration and current pricing. [Management key](/docs/guides/overview/auth/management-api-keys) required.
50
+ */
51
+ async get(request, options) {
52
+ return unwrapAsync(privateEndpointsGet(this, request, options));
53
+ }
54
+ /**
55
+ * Update a draft private endpoint
56
+ *
57
+ * @remarks
58
+ * Replace a draft endpoint's upstream configuration: send `upstream_model_id`, and `base_url` to change it (an omitted `base_url` keeps the stored one). Omitted data-policy declarations are kept while the upstream is unchanged and cleared when it changes. Any change clears earlier validation. Active endpoints return 409; delete and re-create them instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
59
+ */
60
+ async update(request, options) {
61
+ return unwrapAsync(privateEndpointsUpdate(this, request, options));
62
+ }
63
+ /**
64
+ * Activate a validated private endpoint
65
+ *
66
+ * @remarks
67
+ * Make a validated draft routable. Returns 409 when the endpoint was never validated, the validation is stale, or it is already active. [Management key](/docs/guides/overview/auth/management-api-keys) required.
68
+ */
69
+ async activate(request, options) {
70
+ return unwrapAsync(privateEndpointsActivate(this, request, options));
71
+ }
72
+ /**
73
+ * Disable a private endpoint
74
+ *
75
+ * @remarks
76
+ * Stop routing to an active endpoint without deleting it. [Management key](/docs/guides/overview/auth/management-api-keys) required.
77
+ */
78
+ async disable(request, options) {
79
+ return unwrapAsync(privateEndpointsDisable(this, request, options));
80
+ }
81
+ /**
82
+ * Enable a private endpoint
83
+ *
84
+ * @remarks
85
+ * Resume routing to a disabled endpoint. [Management key](/docs/guides/overview/auth/management-api-keys) required.
86
+ */
87
+ async enable(request, options) {
88
+ return unwrapAsync(privateEndpointsEnable(this, request, options));
89
+ }
90
+ /**
91
+ * Set private endpoint pricing
92
+ *
93
+ * @remarks
94
+ * Set the negotiated per-token rates reported for requests routed to this endpoint. Applies to drafts and active endpoints; new rates take effect for subsequent requests. [Management key](/docs/guides/overview/auth/management-api-keys) required.
95
+ */
96
+ async updatePricing(request, options) {
97
+ return unwrapAsync(privateEndpointsUpdatePricing(this, request, options));
98
+ }
99
+ /**
100
+ * Validate a draft private endpoint
101
+ *
102
+ * @remarks
103
+ * Send a live test request to the draft endpoint using the given workspace's BYOK credential for its provider. A passing validation is required before activation. Failed checks return 200 with `passed: false`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
104
+ */
105
+ async validate(request, options) {
106
+ return unwrapAsync(privateEndpointsValidate(this, request, options));
107
+ }
108
+ }
109
+ //# sourceMappingURL=privateendpoints.js.map
package/esm/sdk/sdk.d.ts CHANGED
@@ -23,6 +23,7 @@ import { OAuth } from "./oauth.js";
23
23
  import { Observability } from "./observability.js";
24
24
  import { Organization } from "./organization.js";
25
25
  import { Presets } from "./presets.js";
26
+ import { PrivateEndpoints } from "./privateendpoints.js";
26
27
  import { Providers } from "./providers.js";
27
28
  import { Rerank } from "./rerank.js";
28
29
  import { Responses } from "./responses.js";
@@ -90,6 +91,8 @@ export declare class OpenRouter extends ClientSDK {
90
91
  get organization(): Organization;
91
92
  private _presets?;
92
93
  get presets(): Presets;
94
+ private _privateEndpoints?;
95
+ get privateEndpoints(): PrivateEndpoints;
93
96
  private _providers?;
94
97
  get providers(): Providers;
95
98
  private _rerank?;
package/esm/sdk/sdk.js CHANGED
@@ -27,6 +27,7 @@ import { OAuth } from "./oauth.js";
27
27
  import { Observability } from "./observability.js";
28
28
  import { Organization } from "./organization.js";
29
29
  import { Presets } from "./presets.js";
30
+ import { PrivateEndpoints } from "./privateendpoints.js";
30
31
  import { Providers } from "./providers.js";
31
32
  import { Rerank } from "./rerank.js";
32
33
  import { Responses } from "./responses.js";
@@ -117,6 +118,9 @@ export class OpenRouter extends ClientSDK {
117
118
  get presets() {
118
119
  return (this._presets ?? (this._presets = new Presets(this._options)));
119
120
  }
121
+ get privateEndpoints() {
122
+ return (this._privateEndpoints ?? (this._privateEndpoints = new PrivateEndpoints(this._options)));
123
+ }
120
124
  get providers() {
121
125
  return (this._providers ?? (this._providers = new Providers(this._options)));
122
126
  }
@@ -2,53 +2,60 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as models from "../models/index.js";
3
3
  import * as operations from "../models/operations/index.js";
4
4
  export declare class Vault extends ClientSDK {
5
+ /**
6
+ * List the secrets an intern receives
7
+ *
8
+ * @remarks
9
+ * 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.
10
+ */
11
+ listInternEffectiveVaultSecrets(request: operations.ListInternEffectiveVaultSecretsRequest, options?: RequestOptions): Promise<models.VaultEffectiveSecretListResponse>;
5
12
  /**
6
13
  * List intern secrets
7
14
  *
8
15
  * @remarks
9
- * 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.
16
+ * 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.
10
17
  */
11
18
  listInternVaultSecrets(request: operations.ListInternVaultSecretsRequest, options?: RequestOptions): Promise<models.VaultSecretListResponse>;
12
19
  /**
13
20
  * Delete an intern secret
14
21
  *
15
22
  * @remarks
16
- * 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.
23
+ * 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.
17
24
  */
18
25
  deleteInternVaultSecret(request: operations.DeleteInternVaultSecretRequest, options?: RequestOptions): Promise<void>;
19
26
  /**
20
27
  * Store an intern secret
21
28
  *
22
29
  * @remarks
23
- * 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.
30
+ * 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.
24
31
  */
25
32
  storeInternVaultSecret(request: operations.StoreInternVaultSecretRequest, options?: RequestOptions): Promise<models.VaultSecretResponse>;
26
33
  /**
27
34
  * Copy workspace secrets to an intern
28
35
  *
29
36
  * @remarks
30
- * 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.
37
+ * 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.
31
38
  */
32
39
  copyVaultSecretsToIntern(request: operations.CopyVaultSecretsToInternRequest, options?: RequestOptions): Promise<models.VaultSecretCopyResponse>;
33
40
  /**
34
41
  * List workspace secrets
35
42
  *
36
43
  * @remarks
37
- * 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.
44
+ * 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.
38
45
  */
39
46
  listVaultSecrets(request?: operations.ListVaultSecretsRequest | undefined, options?: RequestOptions): Promise<models.VaultSecretListResponse>;
40
47
  /**
41
48
  * Delete a workspace secret
42
49
  *
43
50
  * @remarks
44
- * 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.
51
+ * 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.
45
52
  */
46
53
  deleteVaultSecret(request: operations.DeleteVaultSecretRequest, options?: RequestOptions): Promise<void>;
47
54
  /**
48
55
  * Store a workspace secret
49
56
  *
50
57
  * @remarks
51
- * 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.
58
+ * 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.
52
59
  */
53
60
  storeVaultSecret(request: operations.StoreVaultSecretRequest, options?: RequestOptions): Promise<models.VaultSecretResponse>;
54
61
  }