@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
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  * @generated-id: 0d9ffaf774d2
4
4
  */
5
+ export * from "./activateprivateendpoint.js";
5
6
  export * from "./bulkaddworkspacemembers.js";
6
7
  export * from "./bulkassignkeystoguardrail.js";
7
8
  export * from "./bulkassignmemberstoguardrail.js";
@@ -27,6 +28,7 @@ export * from "./createobservabilitydestination.js";
27
28
  export * from "./createpresetschatcompletions.js";
28
29
  export * from "./createpresetsmessages.js";
29
30
  export * from "./createpresetsresponses.js";
31
+ export * from "./createprivateendpoint.js";
30
32
  export * from "./creatererank.js";
31
33
  export * from "./createresponses.js";
32
34
  export * from "./createscimgroupmapping.js";
@@ -42,12 +44,15 @@ export * from "./deleteintern.js";
42
44
  export * from "./deleteinternvaultsecret.js";
43
45
  export * from "./deletekeys.js";
44
46
  export * from "./deleteobservabilitydestination.js";
47
+ export * from "./deleteprivateendpoint.js";
45
48
  export * from "./deletescimgroupmapping.js";
46
49
  export * from "./deletevaultsecret.js";
47
50
  export * from "./deleteworkspace.js";
48
51
  export * from "./deleteworkspacebudget.js";
52
+ export * from "./disableprivateendpoint.js";
49
53
  export * from "./downloadcontainerfilecontent.js";
50
54
  export * from "./downloadfilecontent.js";
55
+ export * from "./enableprivateendpoint.js";
51
56
  export * from "./exchangeauthcodeforapikey.js";
52
57
  export * from "./getanalyticsmeta.js";
53
58
  export * from "./getapprankings.js";
@@ -69,6 +74,7 @@ export * from "./getmodels.js";
69
74
  export * from "./getobservabilitydestination.js";
70
75
  export * from "./getpreset.js";
71
76
  export * from "./getpresetversion.js";
77
+ export * from "./getprivateendpoint.js";
72
78
  export * from "./getrankingsdaily.js";
73
79
  export * from "./getscimgroupmapping.js";
74
80
  export * from "./getscimsyncjob.js";
@@ -93,6 +99,7 @@ export * from "./listguardrailmemberassignments.js";
93
99
  export * from "./listguardrails.js";
94
100
  export * from "./listimagemodelendpoints.js";
95
101
  export * from "./listimagemodels.js";
102
+ export * from "./listinterneffectivevaultsecrets.js";
96
103
  export * from "./listinterns.js";
97
104
  export * from "./listinternvaultsecrets.js";
98
105
  export * from "./listkeyassignments.js";
@@ -104,6 +111,7 @@ export * from "./listobservabilitydestinations.js";
104
111
  export * from "./listorganizationmembers.js";
105
112
  export * from "./listpresets.js";
106
113
  export * from "./listpresetversions.js";
114
+ export * from "./listprivateendpoints.js";
107
115
  export * from "./listproviders.js";
108
116
  export * from "./listscimgroupmappings.js";
109
117
  export * from "./listscimgroups.js";
@@ -126,8 +134,11 @@ export * from "./updateguardrail.js";
126
134
  export * from "./updateintern.js";
127
135
  export * from "./updatekeys.js";
128
136
  export * from "./updateobservabilitydestination.js";
137
+ export * from "./updateprivateendpoint.js";
138
+ export * from "./updateprivateendpointpricing.js";
129
139
  export * from "./updatescimgroupmapping.js";
130
140
  export * from "./updateworkspace.js";
131
141
  export * from "./uploadfile.js";
132
142
  export * from "./upsertworkspacebudget.js";
143
+ export * from "./validateprivateendpoint.js";
133
144
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,68 @@
1
+ import * as z from "zod/v4";
2
+ export type ListInternEffectiveVaultSecretsGlobals = {
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 ListInternEffectiveVaultSecretsRequest = {
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 ListInternEffectiveVaultSecretsRequest$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 ListInternEffectiveVaultSecretsRequest$outboundSchema: z.ZodType<ListInternEffectiveVaultSecretsRequest$Outbound, ListInternEffectiveVaultSecretsRequest>;
67
+ export declare function listInternEffectiveVaultSecretsRequestToJSON(listInternEffectiveVaultSecretsRequest: ListInternEffectiveVaultSecretsRequest): string;
68
+ //# sourceMappingURL=listinterneffectivevaultsecrets.d.ts.map
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8162d29b4032
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const ListInternEffectiveVaultSecretsRequest$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 listInternEffectiveVaultSecretsRequestToJSON(listInternEffectiveVaultSecretsRequest) {
21
+ return JSON.stringify(ListInternEffectiveVaultSecretsRequest$outboundSchema.parse(listInternEffectiveVaultSecretsRequest));
22
+ }
23
+ //# sourceMappingURL=listinterneffectivevaultsecrets.js.map
@@ -0,0 +1,53 @@
1
+ import * as z from "zod/v4";
2
+ export type ListPrivateEndpointsGlobals = {
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 ListPrivateEndpointsRequest = {
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
+ /** @internal */
45
+ export type ListPrivateEndpointsRequest$Outbound = {
46
+ "HTTP-Referer"?: string | undefined;
47
+ appTitle?: string | undefined;
48
+ appCategories?: string | undefined;
49
+ };
50
+ /** @internal */
51
+ export declare const ListPrivateEndpointsRequest$outboundSchema: z.ZodType<ListPrivateEndpointsRequest$Outbound, ListPrivateEndpointsRequest>;
52
+ export declare function listPrivateEndpointsRequestToJSON(listPrivateEndpointsRequest: ListPrivateEndpointsRequest): string;
53
+ //# sourceMappingURL=listprivateendpoints.d.ts.map
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 21c6af9f454c
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ /** @internal */
8
+ export const ListPrivateEndpointsRequest$outboundSchema = z.object({
9
+ httpReferer: z.string().optional(),
10
+ appTitle: z.string().optional(),
11
+ appCategories: z.string().optional(),
12
+ }).transform((v) => {
13
+ return remap$(v, {
14
+ httpReferer: "HTTP-Referer",
15
+ });
16
+ });
17
+ export function listPrivateEndpointsRequestToJSON(listPrivateEndpointsRequest) {
18
+ return JSON.stringify(ListPrivateEndpointsRequest$outboundSchema.parse(listPrivateEndpointsRequest));
19
+ }
20
+ //# sourceMappingURL=listprivateendpoints.js.map
@@ -0,0 +1,61 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type UpdatePrivateEndpointGlobals = {
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 UpdatePrivateEndpointRequest = {
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
+ * Stable identifier of the private endpoint.
46
+ */
47
+ id: string;
48
+ updatePrivateEndpointRequest: models.UpdatePrivateEndpointRequest;
49
+ };
50
+ /** @internal */
51
+ export type UpdatePrivateEndpointRequest$Outbound = {
52
+ "HTTP-Referer"?: string | undefined;
53
+ appTitle?: string | undefined;
54
+ appCategories?: string | undefined;
55
+ id: string;
56
+ UpdatePrivateEndpointRequest: models.UpdatePrivateEndpointRequest$Outbound;
57
+ };
58
+ /** @internal */
59
+ export declare const UpdatePrivateEndpointRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointRequest$Outbound, UpdatePrivateEndpointRequest>;
60
+ export declare function updatePrivateEndpointRequestToJSON(updatePrivateEndpointRequest: UpdatePrivateEndpointRequest): string;
61
+ //# sourceMappingURL=updateprivateendpoint.d.ts.map
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 05253f9e2009
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { UpdatePrivateEndpointRequest$outboundSchema as models_UpdatePrivateEndpointRequest$outboundSchema } from "../updateprivateendpointrequest.js";
8
+ /** @internal */
9
+ export const UpdatePrivateEndpointRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ id: z.string(),
14
+ updatePrivateEndpointRequest: models_UpdatePrivateEndpointRequest$outboundSchema,
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ httpReferer: "HTTP-Referer",
18
+ updatePrivateEndpointRequest: "UpdatePrivateEndpointRequest",
19
+ });
20
+ });
21
+ export function updatePrivateEndpointRequestToJSON(updatePrivateEndpointRequest) {
22
+ return JSON.stringify(UpdatePrivateEndpointRequest$outboundSchema.parse(updatePrivateEndpointRequest));
23
+ }
24
+ //# sourceMappingURL=updateprivateendpoint.js.map
@@ -0,0 +1,61 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type UpdatePrivateEndpointPricingGlobals = {
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 UpdatePrivateEndpointPricingRequest = {
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
+ * Stable identifier of the private endpoint.
46
+ */
47
+ id: string;
48
+ updatePrivateEndpointPricingRequest: models.UpdatePrivateEndpointPricingRequest;
49
+ };
50
+ /** @internal */
51
+ export type UpdatePrivateEndpointPricingRequest$Outbound = {
52
+ "HTTP-Referer"?: string | undefined;
53
+ appTitle?: string | undefined;
54
+ appCategories?: string | undefined;
55
+ id: string;
56
+ UpdatePrivateEndpointPricingRequest: models.UpdatePrivateEndpointPricingRequest$Outbound;
57
+ };
58
+ /** @internal */
59
+ export declare const UpdatePrivateEndpointPricingRequest$outboundSchema: z.ZodType<UpdatePrivateEndpointPricingRequest$Outbound, UpdatePrivateEndpointPricingRequest>;
60
+ export declare function updatePrivateEndpointPricingRequestToJSON(updatePrivateEndpointPricingRequest: UpdatePrivateEndpointPricingRequest): string;
61
+ //# sourceMappingURL=updateprivateendpointpricing.d.ts.map
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 412bca3c778f
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { UpdatePrivateEndpointPricingRequest$outboundSchema as models_UpdatePrivateEndpointPricingRequest$outboundSchema } from "../updateprivateendpointpricingrequest.js";
8
+ /** @internal */
9
+ export const UpdatePrivateEndpointPricingRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ id: z.string(),
14
+ updatePrivateEndpointPricingRequest: models_UpdatePrivateEndpointPricingRequest$outboundSchema,
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ httpReferer: "HTTP-Referer",
18
+ updatePrivateEndpointPricingRequest: "UpdatePrivateEndpointPricingRequest",
19
+ });
20
+ });
21
+ export function updatePrivateEndpointPricingRequestToJSON(updatePrivateEndpointPricingRequest) {
22
+ return JSON.stringify(UpdatePrivateEndpointPricingRequest$outboundSchema.parse(updatePrivateEndpointPricingRequest));
23
+ }
24
+ //# sourceMappingURL=updateprivateendpointpricing.js.map
@@ -0,0 +1,61 @@
1
+ import * as z from "zod/v4";
2
+ import * as models from "../index.js";
3
+ export type ValidatePrivateEndpointGlobals = {
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 ValidatePrivateEndpointRequest = {
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
+ * Stable identifier of the private endpoint.
46
+ */
47
+ id: string;
48
+ validatePrivateEndpointRequest: models.ValidatePrivateEndpointRequest;
49
+ };
50
+ /** @internal */
51
+ export type ValidatePrivateEndpointRequest$Outbound = {
52
+ "HTTP-Referer"?: string | undefined;
53
+ appTitle?: string | undefined;
54
+ appCategories?: string | undefined;
55
+ id: string;
56
+ ValidatePrivateEndpointRequest: models.ValidatePrivateEndpointRequest$Outbound;
57
+ };
58
+ /** @internal */
59
+ export declare const ValidatePrivateEndpointRequest$outboundSchema: z.ZodType<ValidatePrivateEndpointRequest$Outbound, ValidatePrivateEndpointRequest>;
60
+ export declare function validatePrivateEndpointRequestToJSON(validatePrivateEndpointRequest: ValidatePrivateEndpointRequest): string;
61
+ //# sourceMappingURL=validateprivateendpoint.d.ts.map
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7b1a6ff8bf8d
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ValidatePrivateEndpointRequest$outboundSchema as models_ValidatePrivateEndpointRequest$outboundSchema } from "../validateprivateendpointrequest.js";
8
+ /** @internal */
9
+ export const ValidatePrivateEndpointRequest$outboundSchema = z.object({
10
+ httpReferer: z.string().optional(),
11
+ appTitle: z.string().optional(),
12
+ appCategories: z.string().optional(),
13
+ id: z.string(),
14
+ validatePrivateEndpointRequest: models_ValidatePrivateEndpointRequest$outboundSchema,
15
+ }).transform((v) => {
16
+ return remap$(v, {
17
+ httpReferer: "HTTP-Referer",
18
+ validatePrivateEndpointRequest: "ValidatePrivateEndpointRequest",
19
+ });
20
+ });
21
+ export function validatePrivateEndpointRequestToJSON(validatePrivateEndpointRequest) {
22
+ return JSON.stringify(ValidatePrivateEndpointRequest$outboundSchema.parse(validatePrivateEndpointRequest));
23
+ }
24
+ //# sourceMappingURL=validateprivateendpoint.js.map
@@ -0,0 +1,60 @@
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 { PrivateEndpointDeclaredRegion } from "./privateendpointdeclaredregion.js";
5
+ import { PrivateEndpointPricing } from "./privateendpointpricing.js";
6
+ import { PrivateEndpointStatus } from "./privateendpointstatus.js";
7
+ export type PrivateEndpoint = {
8
+ /**
9
+ * HTTPS base URL of your deployment, or `null` for providers whose URL is derived from the BYOK credential (Azure, Amazon Bedrock, Google Vertex).
10
+ */
11
+ baseUrl: string | null;
12
+ /**
13
+ * Where you attest this deployment processes data. `global` means not regional; `null` means undeclared.
14
+ */
15
+ declaredRegion: PrivateEndpointDeclaredRegion | null;
16
+ /**
17
+ * Whether you attest this deployment retains no prompt or completion data. `null` means undeclared.
18
+ */
19
+ declaredZdr: boolean | null;
20
+ /**
21
+ * Stable identifier of the private endpoint.
22
+ */
23
+ id: string;
24
+ /**
25
+ * Display name of the model, or `null` when the model is no longer listed.
26
+ */
27
+ modelName: string | null;
28
+ /**
29
+ * Permanent slug of the model this endpoint serves.
30
+ */
31
+ modelPermaslug: string;
32
+ /**
33
+ * Public model slug, or `null` when the model is no longer listed.
34
+ */
35
+ modelSlug: string | null;
36
+ /**
37
+ * Negotiated per-token rates reported for requests routed to this endpoint.
38
+ */
39
+ pricing: PrivateEndpointPricing;
40
+ /**
41
+ * Display name of the upstream provider.
42
+ */
43
+ providerName: string;
44
+ /**
45
+ * Slug of the upstream provider, or `null` when the provider is no longer listed.
46
+ */
47
+ providerSlug: string | null;
48
+ /**
49
+ * Lifecycle state. `draft` endpoints are not routable until validated and activated; `disabled` endpoints are activated but temporarily not routable.
50
+ */
51
+ status: PrivateEndpointStatus;
52
+ /**
53
+ * Model or deployment identifier sent to the upstream provider.
54
+ */
55
+ upstreamModelId: string;
56
+ };
57
+ /** @internal */
58
+ export declare const PrivateEndpoint$inboundSchema: z.ZodType<PrivateEndpoint, unknown>;
59
+ export declare function privateEndpointFromJSON(jsonString: string): SafeParseResult<PrivateEndpoint, SDKValidationError>;
60
+ //# sourceMappingURL=privateendpoint.d.ts.map
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: facf19d1d363
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 { PrivateEndpointDeclaredRegion$inboundSchema, } from "./privateendpointdeclaredregion.js";
9
+ import { PrivateEndpointPricing$inboundSchema, } from "./privateendpointpricing.js";
10
+ import { PrivateEndpointStatus$inboundSchema, } from "./privateendpointstatus.js";
11
+ /** @internal */
12
+ export const PrivateEndpoint$inboundSchema = z.object({
13
+ base_url: z.nullable(z.string()),
14
+ declared_region: z.nullable(PrivateEndpointDeclaredRegion$inboundSchema),
15
+ declared_zdr: z.nullable(z.boolean()),
16
+ id: z.string(),
17
+ model_name: z.nullable(z.string()),
18
+ model_permaslug: z.string(),
19
+ model_slug: z.nullable(z.string()),
20
+ pricing: PrivateEndpointPricing$inboundSchema,
21
+ provider_name: z.string(),
22
+ provider_slug: z.nullable(z.string()),
23
+ status: PrivateEndpointStatus$inboundSchema,
24
+ upstream_model_id: z.string(),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "base_url": "baseUrl",
28
+ "declared_region": "declaredRegion",
29
+ "declared_zdr": "declaredZdr",
30
+ "model_name": "modelName",
31
+ "model_permaslug": "modelPermaslug",
32
+ "model_slug": "modelSlug",
33
+ "provider_name": "providerName",
34
+ "provider_slug": "providerSlug",
35
+ "upstream_model_id": "upstreamModelId",
36
+ });
37
+ });
38
+ export function privateEndpointFromJSON(jsonString) {
39
+ return safeParse(jsonString, (x) => PrivateEndpoint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpoint' from JSON`);
40
+ }
41
+ //# sourceMappingURL=privateendpoint.js.map
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4";
2
+ /**
3
+ * Validate and activate in the same call. On a failed validation the draft is kept and returned with a 422, so fix it and call `/validate` and `/activate` instead of creating it again.
4
+ */
5
+ export type PrivateEndpointActivation = {
6
+ /**
7
+ * Workspace whose BYOK credential is used for the live validation call. The workspace must belong to your account.
8
+ */
9
+ workspaceId: string;
10
+ };
11
+ /** @internal */
12
+ export type PrivateEndpointActivation$Outbound = {
13
+ workspace_id: string;
14
+ };
15
+ /** @internal */
16
+ export declare const PrivateEndpointActivation$outboundSchema: z.ZodType<PrivateEndpointActivation$Outbound, PrivateEndpointActivation>;
17
+ export declare function privateEndpointActivationToJSON(privateEndpointActivation: PrivateEndpointActivation): string;
18
+ //# sourceMappingURL=privateendpointactivation.d.ts.map
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 1cd601dfa05c
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const PrivateEndpointActivation$outboundSchema = z.object({
9
+ workspaceId: z.string(),
10
+ }).transform((v) => {
11
+ return remap$(v, {
12
+ workspaceId: "workspace_id",
13
+ });
14
+ });
15
+ export function privateEndpointActivationToJSON(privateEndpointActivation) {
16
+ return JSON.stringify(PrivateEndpointActivation$outboundSchema.parse(privateEndpointActivation));
17
+ }
18
+ //# sourceMappingURL=privateendpointactivation.js.map
@@ -0,0 +1,31 @@
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 { PrivateEndpointCheckReason } from "./privateendpointcheckreason.js";
5
+ export type PrivateEndpointCheck = {
6
+ /**
7
+ * Model the upstream reported serving, when it differs from the request.
8
+ */
9
+ actualModel?: string | null | undefined;
10
+ /**
11
+ * Check name.
12
+ */
13
+ name: string;
14
+ passed: boolean;
15
+ /**
16
+ * Why the check failed.
17
+ */
18
+ reason?: PrivateEndpointCheckReason | undefined;
19
+ /**
20
+ * Error message returned by your deployment when the call failed.
21
+ */
22
+ upstreamMessage?: string | null | undefined;
23
+ /**
24
+ * HTTP status returned by your deployment when the call failed.
25
+ */
26
+ upstreamStatus?: number | undefined;
27
+ };
28
+ /** @internal */
29
+ export declare const PrivateEndpointCheck$inboundSchema: z.ZodType<PrivateEndpointCheck, unknown>;
30
+ export declare function privateEndpointCheckFromJSON(jsonString: string): SafeParseResult<PrivateEndpointCheck, SDKValidationError>;
31
+ //# sourceMappingURL=privateendpointcheck.d.ts.map