@openrouter/sdk 1.2.130 → 1.2.132

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 (64) hide show
  1. package/esm/funcs/vaultCopyVaultSecretsToIntern.d.ts +21 -0
  2. package/esm/funcs/vaultCopyVaultSecretsToIntern.js +108 -0
  3. package/esm/funcs/vaultDeleteInternVaultSecret.d.ts +20 -0
  4. package/esm/funcs/vaultDeleteInternVaultSecret.js +109 -0
  5. package/esm/funcs/vaultDeleteVaultSecret.d.ts +20 -0
  6. package/esm/funcs/vaultDeleteVaultSecret.js +105 -0
  7. package/esm/funcs/vaultListInternVaultSecrets.d.ts +21 -0
  8. package/esm/funcs/vaultListInternVaultSecrets.js +110 -0
  9. package/esm/funcs/vaultListVaultSecrets.d.ts +21 -0
  10. package/esm/funcs/vaultListVaultSecrets.js +104 -0
  11. package/esm/funcs/vaultStoreInternVaultSecret.d.ts +21 -0
  12. package/esm/funcs/vaultStoreInternVaultSecret.js +112 -0
  13. package/esm/funcs/vaultStoreVaultSecret.d.ts +21 -0
  14. package/esm/funcs/vaultStoreVaultSecret.js +108 -0
  15. package/esm/lib/config.d.ts +2 -2
  16. package/esm/lib/config.js +2 -2
  17. package/esm/models/imagegenerationrequest.d.ts +5 -0
  18. package/esm/models/imagegenerationrequest.js +2 -0
  19. package/esm/models/index.d.ts +6 -0
  20. package/esm/models/index.js +6 -0
  21. package/esm/models/operations/copyvaultsecretstointern.d.ts +61 -0
  22. package/esm/models/operations/copyvaultsecretstointern.js +24 -0
  23. package/esm/models/operations/createembeddings.d.ts +5 -0
  24. package/esm/models/operations/createembeddings.js +2 -0
  25. package/esm/models/operations/creatererank.d.ts +5 -0
  26. package/esm/models/operations/creatererank.js +2 -0
  27. package/esm/models/operations/deleteinternvaultsecret.d.ts +63 -0
  28. package/esm/models/operations/deleteinternvaultsecret.js +22 -0
  29. package/esm/models/operations/deletevaultsecret.d.ts +58 -0
  30. package/esm/models/operations/deletevaultsecret.js +21 -0
  31. package/esm/models/operations/index.d.ts +7 -0
  32. package/esm/models/operations/index.js +7 -0
  33. package/esm/models/operations/listinternvaultsecrets.d.ts +68 -0
  34. package/esm/models/operations/listinternvaultsecrets.js +23 -0
  35. package/esm/models/operations/listvaultsecrets.d.ts +63 -0
  36. package/esm/models/operations/listvaultsecrets.js +22 -0
  37. package/esm/models/operations/storeinternvaultsecret.d.ts +66 -0
  38. package/esm/models/operations/storeinternvaultsecret.js +25 -0
  39. package/esm/models/operations/storevaultsecret.d.ts +61 -0
  40. package/esm/models/operations/storevaultsecret.js +24 -0
  41. package/esm/models/speechrequest.d.ts +5 -0
  42. package/esm/models/speechrequest.js +2 -0
  43. package/esm/models/sttrequest.d.ts +5 -0
  44. package/esm/models/sttrequest.js +2 -0
  45. package/esm/models/vaultsecret.d.ts +16 -0
  46. package/esm/models/vaultsecret.js +23 -0
  47. package/esm/models/vaultsecretcopyrequest.d.ts +18 -0
  48. package/esm/models/vaultsecretcopyrequest.js +13 -0
  49. package/esm/models/vaultsecretcopyresponse.d.ts +14 -0
  50. package/esm/models/vaultsecretcopyresponse.js +15 -0
  51. package/esm/models/vaultsecretlistresponse.d.ts +18 -0
  52. package/esm/models/vaultsecretlistresponse.js +21 -0
  53. package/esm/models/vaultsecretresponse.d.ts +17 -0
  54. package/esm/models/vaultsecretresponse.js +15 -0
  55. package/esm/models/vaultsecretwriterequest.d.ts +23 -0
  56. package/esm/models/vaultsecretwriterequest.js +14 -0
  57. package/esm/models/videogenerationrequest.d.ts +5 -0
  58. package/esm/models/videogenerationrequest.js +2 -0
  59. package/esm/sdk/sdk.d.ts +3 -0
  60. package/esm/sdk/sdk.js +4 -0
  61. package/esm/sdk/vault.d.ts +55 -0
  62. package/esm/sdk/vault.js +79 -0
  63. package/jsr.json +1 -1
  64. package/package.json +8 -8
@@ -0,0 +1,63 @@
1
+ import * as z from "zod/v4";
2
+ export type DeleteInternVaultSecretGlobals = {
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 DeleteInternVaultSecretRequest = {
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
+ * Secret name. Lowercase letters, digits and single underscores, starting with a letter and not ending with an underscore, 1 to 255 characters.
49
+ */
50
+ name: string;
51
+ };
52
+ /** @internal */
53
+ export type DeleteInternVaultSecretRequest$Outbound = {
54
+ "HTTP-Referer"?: string | undefined;
55
+ appTitle?: string | undefined;
56
+ appCategories?: string | undefined;
57
+ internId: string;
58
+ name: string;
59
+ };
60
+ /** @internal */
61
+ export declare const DeleteInternVaultSecretRequest$outboundSchema: z.ZodType<DeleteInternVaultSecretRequest$Outbound, DeleteInternVaultSecretRequest>;
62
+ export declare function deleteInternVaultSecretRequestToJSON(deleteInternVaultSecretRequest: DeleteInternVaultSecretRequest): string;
63
+ //# sourceMappingURL=deleteinternvaultsecret.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b715772a86c5
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const DeleteInternVaultSecretRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ internId: z.string(),
13
+ name: z.string(),
14
+ }).transform((v) => {
15
+ return remap$(v, {
16
+ httpReferer: "HTTP-Referer",
17
+ });
18
+ });
19
+ export function deleteInternVaultSecretRequestToJSON(deleteInternVaultSecretRequest) {
20
+ return JSON.stringify(DeleteInternVaultSecretRequest$outboundSchema.parse(deleteInternVaultSecretRequest));
21
+ }
22
+ //# sourceMappingURL=deleteinternvaultsecret.js.map
@@ -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
@@ -47,6 +47,10 @@ export type SpeechRequest = {
47
47
  * Audio output format
48
48
  */
49
49
  responseFormat?: SpeechRequestResponseFormat | undefined;
50
+ /**
51
+ * A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
52
+ */
53
+ sessionId?: string | undefined;
50
54
  /**
51
55
  * Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers.
52
56
  */
@@ -80,6 +84,7 @@ export type SpeechRequest$Outbound = {
80
84
  model: string;
81
85
  provider?: SpeechRequestProvider$Outbound | undefined;
82
86
  response_format: string;
87
+ session_id?: string | undefined;
83
88
  speed?: number | undefined;
84
89
  trace?: TraceConfig$Outbound | undefined;
85
90
  user?: string | undefined;
@@ -31,6 +31,7 @@ export const SpeechRequest$outboundSchema = z.object({
31
31
  model: z.string(),
32
32
  provider: z.lazy(() => SpeechRequestProvider$outboundSchema).optional(),
33
33
  responseFormat: SpeechRequestResponseFormat$outboundSchema.default("pcm"),
34
+ sessionId: z.string().optional(),
34
35
  speed: z.number().optional(),
35
36
  trace: TraceConfig$outboundSchema.optional(),
36
37
  user: z.string().optional(),
@@ -39,6 +40,7 @@ export const SpeechRequest$outboundSchema = z.object({
39
40
  return remap$(v, {
40
41
  inputReferences: "input_references",
41
42
  responseFormat: "response_format",
43
+ sessionId: "session_id",
42
44
  });
43
45
  });
44
46
  export function speechRequestToJSON(speechRequest) {
@@ -48,6 +48,10 @@ export type STTRequest = {
48
48
  * Output format. "json" (default) returns { text, usage }. "verbose_json" additionally returns task, language, duration, and segment-level timestamps; only supported by OpenAI-compatible providers.
49
49
  */
50
50
  responseFormat?: STTRequestResponseFormat | undefined;
51
+ /**
52
+ * A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
53
+ */
54
+ sessionId?: string | undefined;
51
55
  /**
52
56
  * Sampling temperature for transcription
53
57
  */
@@ -81,6 +85,7 @@ export type STTRequest$Outbound = {
81
85
  model: string;
82
86
  provider?: STTRequestProvider$Outbound | undefined;
83
87
  response_format?: string | undefined;
88
+ session_id?: string | undefined;
84
89
  temperature?: number | undefined;
85
90
  timestamp_granularities?: Array<string> | undefined;
86
91
  trace?: TraceConfig$Outbound | undefined;