@openrouter/sdk 1.2.131 → 1.2.133

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 (55) hide show
  1. package/esm/funcs/sttCreateTranscriptionMultipart.js +9 -0
  2. package/esm/funcs/vaultCopyVaultSecretsToIntern.d.ts +21 -0
  3. package/esm/funcs/vaultCopyVaultSecretsToIntern.js +108 -0
  4. package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +20 -0
  5. package/esm/funcs/vaultDeleteInternVaultSecret.js +109 -0
  6. package/esm/funcs/vaultDeleteVaultSecret.d.ts +20 -0
  7. package/esm/funcs/vaultDeleteVaultSecret.js +105 -0
  8. package/esm/funcs/vaultListInternVaultSecrets.d.ts +21 -0
  9. package/esm/funcs/vaultListInternVaultSecrets.js +110 -0
  10. package/esm/funcs/vaultListVaultSecrets.d.ts +21 -0
  11. package/esm/funcs/vaultListVaultSecrets.js +104 -0
  12. package/esm/funcs/vaultStoreInternVaultSecret.d.ts +21 -0
  13. package/esm/funcs/vaultStoreInternVaultSecret.js +112 -0
  14. package/esm/funcs/vaultStoreVaultSecret.d.ts +21 -0
  15. package/esm/funcs/vaultStoreVaultSecret.js +108 -0
  16. package/esm/lib/config.d.ts +2 -2
  17. package/esm/lib/config.js +2 -2
  18. package/esm/models/index.d.ts +6 -0
  19. package/esm/models/index.js +6 -0
  20. package/esm/models/operations/copyvaultsecretstointern.d.ts +61 -0
  21. package/esm/models/operations/copyvaultsecretstointern.js +24 -0
  22. package/esm/models/operations/createaudiotranscriptionsmultipart.d.ts +15 -0
  23. package/esm/models/operations/createaudiotranscriptionsmultipart.js +4 -0
  24. package/esm/models/operations/deleteinternvaultsecret.d.ts +63 -0
  25. package/esm/models/operations/deleteinternvaultsecret.js +22 -0
  26. package/esm/models/operations/deletevaultsecret.d.ts +58 -0
  27. package/esm/models/operations/deletevaultsecret.js +21 -0
  28. package/esm/models/operations/index.d.ts +7 -0
  29. package/esm/models/operations/index.js +7 -0
  30. package/esm/models/operations/listinternvaultsecrets.d.ts +68 -0
  31. package/esm/models/operations/listinternvaultsecrets.js +23 -0
  32. package/esm/models/operations/listvaultsecrets.d.ts +63 -0
  33. package/esm/models/operations/listvaultsecrets.js +22 -0
  34. package/esm/models/operations/storeinternvaultsecret.d.ts +66 -0
  35. package/esm/models/operations/storeinternvaultsecret.js +25 -0
  36. package/esm/models/operations/storevaultsecret.d.ts +61 -0
  37. package/esm/models/operations/storevaultsecret.js +24 -0
  38. package/esm/models/vaultsecret.d.ts +16 -0
  39. package/esm/models/vaultsecret.js +23 -0
  40. package/esm/models/vaultsecretcopyrequest.d.ts +18 -0
  41. package/esm/models/vaultsecretcopyrequest.js +13 -0
  42. package/esm/models/vaultsecretcopyresponse.d.ts +14 -0
  43. package/esm/models/vaultsecretcopyresponse.js +15 -0
  44. package/esm/models/vaultsecretlistresponse.d.ts +18 -0
  45. package/esm/models/vaultsecretlistresponse.js +21 -0
  46. package/esm/models/vaultsecretresponse.d.ts +17 -0
  47. package/esm/models/vaultsecretresponse.js +15 -0
  48. package/esm/models/vaultsecretwriterequest.d.ts +23 -0
  49. package/esm/models/vaultsecretwriterequest.js +14 -0
  50. package/esm/sdk/sdk.d.ts +3 -0
  51. package/esm/sdk/sdk.js +4 -0
  52. package/esm/sdk/vault.d.ts +55 -0
  53. package/esm/sdk/vault.js +79 -0
  54. package/jsr.json +1 -1
  55. package/package.json +6 -6
@@ -0,0 +1,58 @@
1
+ import * as z from "zod/v4";
2
+ export type DeleteVaultSecretGlobals = {
3
+ /**
4
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
+ *
6
+ * @remarks
7
+ * This is used to track API usage per application.
8
+ */
9
+ httpReferer?: string | undefined;
10
+ /**
11
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
12
+ *
13
+ * @remarks
14
+ */
15
+ appTitle?: string | undefined;
16
+ /**
17
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
18
+ *
19
+ * @remarks
20
+ */
21
+ appCategories?: string | undefined;
22
+ };
23
+ export type DeleteVaultSecretRequest = {
24
+ /**
25
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
+ *
27
+ * @remarks
28
+ * This is used to track API usage per application.
29
+ */
30
+ httpReferer?: string | undefined;
31
+ /**
32
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
33
+ *
34
+ * @remarks
35
+ */
36
+ appTitle?: string | undefined;
37
+ /**
38
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
39
+ *
40
+ * @remarks
41
+ */
42
+ appCategories?: string | undefined;
43
+ /**
44
+ * Secret name. Lowercase letters, digits and single underscores, starting with a letter and not ending with an underscore, 1 to 255 characters.
45
+ */
46
+ name: string;
47
+ };
48
+ /** @internal */
49
+ export type DeleteVaultSecretRequest$Outbound = {
50
+ "HTTP-Referer"?: string | undefined;
51
+ appTitle?: string | undefined;
52
+ appCategories?: string | undefined;
53
+ name: string;
54
+ };
55
+ /** @internal */
56
+ export declare const DeleteVaultSecretRequest$outboundSchema: z.ZodType<DeleteVaultSecretRequest$Outbound, DeleteVaultSecretRequest>;
57
+ export declare function deleteVaultSecretRequestToJSON(deleteVaultSecretRequest: DeleteVaultSecretRequest): string;
58
+ //# sourceMappingURL=deletevaultsecret.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8a4e4d594e51
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const DeleteVaultSecretRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ name: z.string(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ httpReferer: "HTTP-Referer",
16
+ });
17
+ });
18
+ export function deleteVaultSecretRequestToJSON(deleteVaultSecretRequest) {
19
+ return JSON.stringify(DeleteVaultSecretRequest$outboundSchema.parse(deleteVaultSecretRequest));
20
+ }
21
+ //# sourceMappingURL=deletevaultsecret.js.map
@@ -4,6 +4,7 @@ export * from "./bulkassignmemberstoguardrail.js";
4
4
  export * from "./bulkremoveworkspacemembers.js";
5
5
  export * from "./bulkunassignkeysfromguardrail.js";
6
6
  export * from "./bulkunassignmembersfromguardrail.js";
7
+ export * from "./copyvaultsecretstointern.js";
7
8
  export * from "./createaudiospeech.js";
8
9
  export * from "./createaudiotranscriptions.js";
9
10
  export * from "./createaudiotranscriptionsmultipart.js";
@@ -27,9 +28,11 @@ export * from "./createworkspace.js";
27
28
  export * from "./deletebyokkey.js";
28
29
  export * from "./deletefile.js";
29
30
  export * from "./deleteguardrail.js";
31
+ export * from "./deleteinternvaultsecret.js";
30
32
  export * from "./deletekeys.js";
31
33
  export * from "./deleteobservabilitydestination.js";
32
34
  export * from "./deletescimgroupmapping.js";
35
+ export * from "./deletevaultsecret.js";
33
36
  export * from "./deleteworkspace.js";
34
37
  export * from "./deleteworkspacebudget.js";
35
38
  export * from "./downloadcontainerfilecontent.js";
@@ -73,6 +76,7 @@ export * from "./listguardrailmemberassignments.js";
73
76
  export * from "./listguardrails.js";
74
77
  export * from "./listimagemodelendpoints.js";
75
78
  export * from "./listimagemodels.js";
79
+ export * from "./listinternvaultsecrets.js";
76
80
  export * from "./listkeyassignments.js";
77
81
  export * from "./listmemberassignments.js";
78
82
  export * from "./listmodelscount.js";
@@ -85,6 +89,7 @@ export * from "./listpresetversions.js";
85
89
  export * from "./listproviders.js";
86
90
  export * from "./listscimgroupmappings.js";
87
91
  export * from "./listscimgroups.js";
92
+ export * from "./listvaultsecrets.js";
88
93
  export * from "./listvideoscontent.js";
89
94
  export * from "./listvideosmodels.js";
90
95
  export * from "./listworkspacebudgets.js";
@@ -93,6 +98,8 @@ export * from "./listworkspaces.js";
93
98
  export * from "./promotecontainerfile.js";
94
99
  export * from "./queryanalytics.js";
95
100
  export * from "./sendchatcompletionrequest.js";
101
+ export * from "./storeinternvaultsecret.js";
102
+ export * from "./storevaultsecret.js";
96
103
  export * from "./submitgenerationfeedback.js";
97
104
  export * from "./updatebyokkey.js";
98
105
  export * from "./updateguardrail.js";
@@ -8,6 +8,7 @@ export * from "./bulkassignmemberstoguardrail.js";
8
8
  export * from "./bulkremoveworkspacemembers.js";
9
9
  export * from "./bulkunassignkeysfromguardrail.js";
10
10
  export * from "./bulkunassignmembersfromguardrail.js";
11
+ export * from "./copyvaultsecretstointern.js";
11
12
  export * from "./createaudiospeech.js";
12
13
  export * from "./createaudiotranscriptions.js";
13
14
  export * from "./createaudiotranscriptionsmultipart.js";
@@ -31,9 +32,11 @@ export * from "./createworkspace.js";
31
32
  export * from "./deletebyokkey.js";
32
33
  export * from "./deletefile.js";
33
34
  export * from "./deleteguardrail.js";
35
+ export * from "./deleteinternvaultsecret.js";
34
36
  export * from "./deletekeys.js";
35
37
  export * from "./deleteobservabilitydestination.js";
36
38
  export * from "./deletescimgroupmapping.js";
39
+ export * from "./deletevaultsecret.js";
37
40
  export * from "./deleteworkspace.js";
38
41
  export * from "./deleteworkspacebudget.js";
39
42
  export * from "./downloadcontainerfilecontent.js";
@@ -77,6 +80,7 @@ export * from "./listguardrailmemberassignments.js";
77
80
  export * from "./listguardrails.js";
78
81
  export * from "./listimagemodelendpoints.js";
79
82
  export * from "./listimagemodels.js";
83
+ export * from "./listinternvaultsecrets.js";
80
84
  export * from "./listkeyassignments.js";
81
85
  export * from "./listmemberassignments.js";
82
86
  export * from "./listmodelscount.js";
@@ -89,6 +93,7 @@ export * from "./listpresetversions.js";
89
93
  export * from "./listproviders.js";
90
94
  export * from "./listscimgroupmappings.js";
91
95
  export * from "./listscimgroups.js";
96
+ export * from "./listvaultsecrets.js";
92
97
  export * from "./listvideoscontent.js";
93
98
  export * from "./listvideosmodels.js";
94
99
  export * from "./listworkspacebudgets.js";
@@ -97,6 +102,8 @@ export * from "./listworkspaces.js";
97
102
  export * from "./promotecontainerfile.js";
98
103
  export * from "./queryanalytics.js";
99
104
  export * from "./sendchatcompletionrequest.js";
105
+ export * from "./storeinternvaultsecret.js";
106
+ export * from "./storevaultsecret.js";
100
107
  export * from "./submitgenerationfeedback.js";
101
108
  export * from "./updatebyokkey.js";
102
109
  export * from "./updateguardrail.js";
@@ -0,0 +1,68 @@
1
+ import * as z from "zod/v4";
2
+ export type ListInternVaultSecretsGlobals = {
3
+ /**
4
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
+ *
6
+ * @remarks
7
+ * This is used to track API usage per application.
8
+ */
9
+ httpReferer?: string | undefined;
10
+ /**
11
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
12
+ *
13
+ * @remarks
14
+ */
15
+ appTitle?: string | undefined;
16
+ /**
17
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
18
+ *
19
+ * @remarks
20
+ */
21
+ appCategories?: string | undefined;
22
+ };
23
+ export type ListInternVaultSecretsRequest = {
24
+ /**
25
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
+ *
27
+ * @remarks
28
+ * This is used to track API usage per application.
29
+ */
30
+ httpReferer?: string | undefined;
31
+ /**
32
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
33
+ *
34
+ * @remarks
35
+ */
36
+ appTitle?: string | undefined;
37
+ /**
38
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
39
+ *
40
+ * @remarks
41
+ */
42
+ appCategories?: string | undefined;
43
+ /**
44
+ * UUID of an intern in the workspace selected by the API key.
45
+ */
46
+ internId: string;
47
+ /**
48
+ * Page size, 1 to 100. Defaults to 100.
49
+ */
50
+ limit?: number | undefined;
51
+ /**
52
+ * Number of secrets to skip, 0 to 10000. Defaults to 0.
53
+ */
54
+ offset?: number | undefined;
55
+ };
56
+ /** @internal */
57
+ export type ListInternVaultSecretsRequest$Outbound = {
58
+ "HTTP-Referer"?: string | undefined;
59
+ appTitle?: string | undefined;
60
+ appCategories?: string | undefined;
61
+ internId: string;
62
+ limit: number;
63
+ offset: number;
64
+ };
65
+ /** @internal */
66
+ export declare const ListInternVaultSecretsRequest$outboundSchema: z.ZodType<ListInternVaultSecretsRequest$Outbound, ListInternVaultSecretsRequest>;
67
+ export declare function listInternVaultSecretsRequestToJSON(listInternVaultSecretsRequest: ListInternVaultSecretsRequest): string;
68
+ //# sourceMappingURL=listinternvaultsecrets.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b36839da75f4
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const ListInternVaultSecretsRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ internId: z.string(),
13
+ limit: z.int().default(100),
14
+ offset: z.int().default(0),
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ httpReferer: "HTTP-Referer",
18
+ });
19
+ });
20
+ export function listInternVaultSecretsRequestToJSON(listInternVaultSecretsRequest) {
21
+ return JSON.stringify(ListInternVaultSecretsRequest$outboundSchema.parse(listInternVaultSecretsRequest));
22
+ }
23
+ //# sourceMappingURL=listinternvaultsecrets.js.map
@@ -0,0 +1,63 @@
1
+ import * as z from "zod/v4";
2
+ export type ListVaultSecretsGlobals = {
3
+ /**
4
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
5
+ *
6
+ * @remarks
7
+ * This is used to track API usage per application.
8
+ */
9
+ httpReferer?: string | undefined;
10
+ /**
11
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
12
+ *
13
+ * @remarks
14
+ */
15
+ appTitle?: string | undefined;
16
+ /**
17
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
18
+ *
19
+ * @remarks
20
+ */
21
+ appCategories?: string | undefined;
22
+ };
23
+ export type ListVaultSecretsRequest = {
24
+ /**
25
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
26
+ *
27
+ * @remarks
28
+ * This is used to track API usage per application.
29
+ */
30
+ httpReferer?: string | undefined;
31
+ /**
32
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
33
+ *
34
+ * @remarks
35
+ */
36
+ appTitle?: string | undefined;
37
+ /**
38
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
39
+ *
40
+ * @remarks
41
+ */
42
+ appCategories?: string | undefined;
43
+ /**
44
+ * Page size, 1 to 100. Defaults to 100.
45
+ */
46
+ limit?: number | undefined;
47
+ /**
48
+ * Number of secrets to skip, 0 to 10000. Defaults to 0.
49
+ */
50
+ offset?: number | undefined;
51
+ };
52
+ /** @internal */
53
+ export type ListVaultSecretsRequest$Outbound = {
54
+ "HTTP-Referer"?: string | undefined;
55
+ appTitle?: string | undefined;
56
+ appCategories?: string | undefined;
57
+ limit: number;
58
+ offset: number;
59
+ };
60
+ /** @internal */
61
+ export declare const ListVaultSecretsRequest$outboundSchema: z.ZodType<ListVaultSecretsRequest$Outbound, ListVaultSecretsRequest>;
62
+ export declare function listVaultSecretsRequestToJSON(listVaultSecretsRequest: ListVaultSecretsRequest): string;
63
+ //# sourceMappingURL=listvaultsecrets.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 6485557c7ef8
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const ListVaultSecretsRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ limit: z.int().default(100),
13
+ offset: z.int().default(0),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ httpReferer: "HTTP-Referer",
17
+ });
18
+ });
19
+ export function listVaultSecretsRequestToJSON(listVaultSecretsRequest) {
20
+ return JSON.stringify(ListVaultSecretsRequest$outboundSchema.parse(listVaultSecretsRequest));
21
+ }
22
+ //# sourceMappingURL=listvaultsecrets.js.map
@@ -0,0 +1,66 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type StoreInternVaultSecretGlobals = {
4
+ /**
5
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
6
+ *
7
+ * @remarks
8
+ * This is used to track API usage per application.
9
+ */
10
+ httpReferer?: string | undefined;
11
+ /**
12
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
13
+ *
14
+ * @remarks
15
+ */
16
+ appTitle?: string | undefined;
17
+ /**
18
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
19
+ *
20
+ * @remarks
21
+ */
22
+ appCategories?: string | undefined;
23
+ };
24
+ export type StoreInternVaultSecretRequest = {
25
+ /**
26
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
27
+ *
28
+ * @remarks
29
+ * This is used to track API usage per application.
30
+ */
31
+ httpReferer?: string | undefined;
32
+ /**
33
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
34
+ *
35
+ * @remarks
36
+ */
37
+ appTitle?: string | undefined;
38
+ /**
39
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
40
+ *
41
+ * @remarks
42
+ */
43
+ appCategories?: string | undefined;
44
+ /**
45
+ * UUID of an intern in the workspace selected by the API key.
46
+ */
47
+ internId: string;
48
+ /**
49
+ * Secret name. Lowercase letters, digits and single underscores, starting with a letter and not ending with an underscore, 1 to 255 characters.
50
+ */
51
+ name: string;
52
+ vaultSecretWriteRequest: models.VaultSecretWriteRequest;
53
+ };
54
+ /** @internal */
55
+ export type StoreInternVaultSecretRequest$Outbound = {
56
+ "HTTP-Referer"?: string | undefined;
57
+ appTitle?: string | undefined;
58
+ appCategories?: string | undefined;
59
+ internId: string;
60
+ name: string;
61
+ VaultSecretWriteRequest: models.VaultSecretWriteRequest$Outbound;
62
+ };
63
+ /** @internal */
64
+ export declare const StoreInternVaultSecretRequest$outboundSchema: z.ZodType<StoreInternVaultSecretRequest$Outbound, StoreInternVaultSecretRequest>;
65
+ export declare function storeInternVaultSecretRequestToJSON(storeInternVaultSecretRequest: StoreInternVaultSecretRequest): string;
66
+ //# sourceMappingURL=storeinternvaultsecret.d.ts.map
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 050b1bb769f1
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import * as models from "../index.js";
8
+ /** @internal */
9
+ export const StoreInternVaultSecretRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ internId: z.string(),
14
+ name: z.string(),
15
+ vaultSecretWriteRequest: models.VaultSecretWriteRequest$outboundSchema,
16
+ }).transform((v) => {
17
+ return remap$(v, {
18
+ httpReferer: "HTTP-Referer",
19
+ vaultSecretWriteRequest: "VaultSecretWriteRequest",
20
+ });
21
+ });
22
+ export function storeInternVaultSecretRequestToJSON(storeInternVaultSecretRequest) {
23
+ return JSON.stringify(StoreInternVaultSecretRequest$outboundSchema.parse(storeInternVaultSecretRequest));
24
+ }
25
+ //# sourceMappingURL=storeinternvaultsecret.js.map
@@ -0,0 +1,61 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type StoreVaultSecretGlobals = {
4
+ /**
5
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
6
+ *
7
+ * @remarks
8
+ * This is used to track API usage per application.
9
+ */
10
+ httpReferer?: string | undefined;
11
+ /**
12
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
13
+ *
14
+ * @remarks
15
+ */
16
+ appTitle?: string | undefined;
17
+ /**
18
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
19
+ *
20
+ * @remarks
21
+ */
22
+ appCategories?: string | undefined;
23
+ };
24
+ export type StoreVaultSecretRequest = {
25
+ /**
26
+ * The app identifier should be your app's URL and is used as the primary identifier for rankings.
27
+ *
28
+ * @remarks
29
+ * This is used to track API usage per application.
30
+ */
31
+ httpReferer?: string | undefined;
32
+ /**
33
+ * The app display name allows you to customize how your app appears in OpenRouter's dashboard.
34
+ *
35
+ * @remarks
36
+ */
37
+ appTitle?: string | undefined;
38
+ /**
39
+ * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
40
+ *
41
+ * @remarks
42
+ */
43
+ appCategories?: string | undefined;
44
+ /**
45
+ * Secret name. Lowercase letters, digits and single underscores, starting with a letter and not ending with an underscore, 1 to 255 characters.
46
+ */
47
+ name: string;
48
+ vaultSecretWriteRequest: models.VaultSecretWriteRequest;
49
+ };
50
+ /** @internal */
51
+ export type StoreVaultSecretRequest$Outbound = {
52
+ "HTTP-Referer"?: string | undefined;
53
+ appTitle?: string | undefined;
54
+ appCategories?: string | undefined;
55
+ name: string;
56
+ VaultSecretWriteRequest: models.VaultSecretWriteRequest$Outbound;
57
+ };
58
+ /** @internal */
59
+ export declare const StoreVaultSecretRequest$outboundSchema: z.ZodType<StoreVaultSecretRequest$Outbound, StoreVaultSecretRequest>;
60
+ export declare function storeVaultSecretRequestToJSON(storeVaultSecretRequest: StoreVaultSecretRequest): string;
61
+ //# sourceMappingURL=storevaultsecret.d.ts.map
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 93c863e18f3d
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import * as models from "../index.js";
8
+ /** @internal */
9
+ export const StoreVaultSecretRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ name: z.string(),
14
+ vaultSecretWriteRequest: models.VaultSecretWriteRequest$outboundSchema,
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ httpReferer: "HTTP-Referer",
18
+ vaultSecretWriteRequest: "VaultSecretWriteRequest",
19
+ });
20
+ });
21
+ export function storeVaultSecretRequestToJSON(storeVaultSecretRequest) {
22
+ return JSON.stringify(StoreVaultSecretRequest$outboundSchema.parse(storeVaultSecretRequest));
23
+ }
24
+ //# sourceMappingURL=storevaultsecret.js.map
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ /**
5
+ * Metadata for one stored secret. The secret value is never returned. `fingerprint` is a keyed SHA-256 digest of the value: equal fingerprints within one scope mean equal values, but a workspace secret and its intern copy carry different fingerprints. `hosts` and `fingerprint` are `null` only for legacy rows written before host binding was required; storing the secret again assigns hosts.
6
+ */
7
+ export type VaultSecret = {
8
+ createdAt: Date;
9
+ fingerprint: string | null;
10
+ hosts: Array<string> | null;
11
+ name: string;
12
+ };
13
+ /** @internal */
14
+ export declare const VaultSecret$inboundSchema: z.ZodType<VaultSecret, unknown>;
15
+ export declare function vaultSecretFromJSON(jsonString: string): SafeParseResult<VaultSecret, SDKValidationError>;
16
+ //# sourceMappingURL=vaultsecret.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: daa0ae6ffc96
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
+ /** @internal */
9
+ export const VaultSecret$inboundSchema = z
10
+ .object({
11
+ created_at: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
12
+ fingerprint: z.nullable(z.string()),
13
+ hosts: z.nullable(z.array(z.string())),
14
+ name: z.string(),
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ "created_at": "createdAt",
18
+ });
19
+ });
20
+ export function vaultSecretFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => VaultSecret$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VaultSecret' from JSON`);
22
+ }
23
+ //# sourceMappingURL=vaultsecret.js.map
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * Workspace secrets to copy into the intern scope.
4
+ */
5
+ export type VaultSecretCopyRequest = {
6
+ /**
7
+ * Names of workspace secrets to copy, 1 to 100 unique entries. Every name must exist in the workspace scope.
8
+ */
9
+ names: Array<string>;
10
+ };
11
+ /** @internal */
12
+ export type VaultSecretCopyRequest$Outbound = {
13
+ names: Array<string>;
14
+ };
15
+ /** @internal */
16
+ export declare const VaultSecretCopyRequest$outboundSchema: z.ZodType<VaultSecretCopyRequest$Outbound, VaultSecretCopyRequest>;
17
+ export declare function vaultSecretCopyRequestToJSON(vaultSecretCopyRequest: VaultSecretCopyRequest): string;
18
+ //# sourceMappingURL=vaultsecretcopyrequest.d.ts.map
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ed56afa8cfc5
4
+ */
5
+ import * as z from "zod/v4";
6
+ /** @internal */
7
+ export const VaultSecretCopyRequest$outboundSchema = z.object({
8
+ names: z.array(z.string()),
9
+ });
10
+ export function vaultSecretCopyRequestToJSON(vaultSecretCopyRequest) {
11
+ return JSON.stringify(VaultSecretCopyRequest$outboundSchema.parse(vaultSecretCopyRequest));
12
+ }
13
+ //# sourceMappingURL=vaultsecretcopyrequest.js.map
@@ -0,0 +1,14 @@
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 { VaultSecret } from "./vaultsecret.js";
5
+ /**
6
+ * Metadata for the copies now stored in the intern scope, one entry per requested name.
7
+ */
8
+ export type VaultSecretCopyResponse = {
9
+ data: Array<VaultSecret>;
10
+ };
11
+ /** @internal */
12
+ export declare const VaultSecretCopyResponse$inboundSchema: z.ZodType<VaultSecretCopyResponse, unknown>;
13
+ export declare function vaultSecretCopyResponseFromJSON(jsonString: string): SafeParseResult<VaultSecretCopyResponse, SDKValidationError>;
14
+ //# sourceMappingURL=vaultsecretcopyresponse.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: acc6c964e820
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { VaultSecret$inboundSchema } from "./vaultsecret.js";
8
+ /** @internal */
9
+ export const VaultSecretCopyResponse$inboundSchema = z.object({
10
+ data: z.array(VaultSecret$inboundSchema),
11
+ });
12
+ export function vaultSecretCopyResponseFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => VaultSecretCopyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VaultSecretCopyResponse' from JSON`);
14
+ }
15
+ //# sourceMappingURL=vaultsecretcopyresponse.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 { VaultSecret } from "./vaultsecret.js";
5
+ /**
6
+ * One page of secret metadata for the selected scope.
7
+ */
8
+ export type VaultSecretListResponse = {
9
+ data: Array<VaultSecret>;
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 VaultSecretListResponse$inboundSchema: z.ZodType<VaultSecretListResponse, unknown>;
17
+ export declare function vaultSecretListResponseFromJSON(jsonString: string): SafeParseResult<VaultSecretListResponse, SDKValidationError>;
18
+ //# sourceMappingURL=vaultsecretlistresponse.d.ts.map