@openrouter/sdk 1.3.36 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/funcs/privateEndpointsActivate.d.ts +19 -0
- package/esm/funcs/privateEndpointsActivate.js +103 -0
- package/esm/funcs/privateEndpointsCreate.d.ts +19 -0
- package/esm/funcs/privateEndpointsCreate.js +101 -0
- package/esm/funcs/privateEndpointsDelete.d.ts +19 -0
- package/esm/funcs/privateEndpointsDelete.js +107 -0
- package/esm/funcs/privateEndpointsDisable.d.ts +19 -0
- package/esm/funcs/privateEndpointsDisable.js +103 -0
- package/esm/funcs/privateEndpointsEnable.d.ts +19 -0
- package/esm/funcs/privateEndpointsEnable.js +103 -0
- package/esm/funcs/privateEndpointsGet.d.ts +19 -0
- package/esm/funcs/privateEndpointsGet.js +103 -0
- package/esm/funcs/privateEndpointsList.d.ts +19 -0
- package/esm/funcs/privateEndpointsList.js +97 -0
- package/esm/funcs/privateEndpointsUpdate.d.ts +19 -0
- package/esm/funcs/privateEndpointsUpdate.js +106 -0
- package/esm/funcs/privateEndpointsUpdatePricing.d.ts +19 -0
- package/esm/funcs/privateEndpointsUpdatePricing.js +106 -0
- package/esm/funcs/privateEndpointsValidate.d.ts +19 -0
- package/esm/funcs/privateEndpointsValidate.js +106 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createprivateendpointrequest.d.ts +67 -0
- package/esm/models/createprivateendpointrequest.js +44 -0
- package/esm/models/createprivateendpointvalidationfailedresponseerror.d.ts +20 -0
- package/esm/models/createprivateendpointvalidationfailedresponseerror.js +27 -0
- package/esm/models/deleteprivateendpointresponse.d.ts +19 -0
- package/esm/models/deleteprivateendpointresponse.js +21 -0
- package/esm/models/errors/createprivateendpoint.d.ts +45 -0
- package/esm/models/errors/createprivateendpoint.js +53 -0
- package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.d.ts +21 -0
- package/esm/models/errors/createprivateendpointvalidationfailedresponseerror.js +35 -0
- package/esm/models/errors/index.d.ts +2 -0
- package/esm/models/errors/index.js +2 -0
- package/esm/models/index.d.ts +21 -0
- package/esm/models/index.js +21 -0
- package/esm/models/listprivateendpointsresponse.d.ts +11 -0
- package/esm/models/listprivateendpointsresponse.js +15 -0
- package/esm/models/managedprivateendpoint.d.ts +47 -0
- package/esm/models/managedprivateendpoint.js +35 -0
- package/esm/models/managedprivateendpointresponse.d.ts +11 -0
- package/esm/models/managedprivateendpointresponse.js +15 -0
- package/esm/models/operations/activateprivateendpoint.d.ts +58 -0
- package/esm/models/operations/activateprivateendpoint.js +21 -0
- package/esm/models/operations/createprivateendpoint.d.ts +61 -0
- package/esm/models/operations/createprivateendpoint.js +25 -0
- package/esm/models/operations/deleteprivateendpoint.d.ts +77 -0
- package/esm/models/operations/deleteprivateendpoint.js +34 -0
- package/esm/models/operations/disableprivateendpoint.d.ts +58 -0
- package/esm/models/operations/disableprivateendpoint.js +21 -0
- package/esm/models/operations/enableprivateendpoint.d.ts +58 -0
- package/esm/models/operations/enableprivateendpoint.js +21 -0
- package/esm/models/operations/getprivateendpoint.d.ts +58 -0
- package/esm/models/operations/getprivateendpoint.js +21 -0
- package/esm/models/operations/index.d.ts +10 -0
- package/esm/models/operations/index.js +10 -0
- package/esm/models/operations/listprivateendpoints.d.ts +53 -0
- package/esm/models/operations/listprivateendpoints.js +20 -0
- package/esm/models/operations/updateprivateendpoint.d.ts +61 -0
- package/esm/models/operations/updateprivateendpoint.js +24 -0
- package/esm/models/operations/updateprivateendpointpricing.d.ts +61 -0
- package/esm/models/operations/updateprivateendpointpricing.js +24 -0
- package/esm/models/operations/validateprivateendpoint.d.ts +61 -0
- package/esm/models/operations/validateprivateendpoint.js +24 -0
- package/esm/models/privateendpoint.d.ts +60 -0
- package/esm/models/privateendpoint.js +41 -0
- package/esm/models/privateendpointactivation.d.ts +18 -0
- package/esm/models/privateendpointactivation.js +18 -0
- package/esm/models/privateendpointcheck.d.ts +31 -0
- package/esm/models/privateendpointcheck.js +27 -0
- package/esm/models/privateendpointcheckreason.d.ts +30 -0
- package/esm/models/privateendpointcheckreason.js +29 -0
- package/esm/models/privateendpointdeclaredregion.d.ts +17 -0
- package/esm/models/privateendpointdeclaredregion.js +16 -0
- package/esm/models/privateendpointpricing.d.ts +28 -0
- package/esm/models/privateendpointpricing.js +23 -0
- package/esm/models/privateendpointresponse.d.ts +11 -0
- package/esm/models/privateendpointresponse.js +15 -0
- package/esm/models/privateendpointstatus.d.ts +17 -0
- package/esm/models/privateendpointstatus.js +16 -0
- package/esm/models/privateendpointsummary.d.ts +38 -0
- package/esm/models/privateendpointsummary.js +30 -0
- package/esm/models/privateendpointvalidation.d.ts +15 -0
- package/esm/models/privateendpointvalidation.js +16 -0
- package/esm/models/privateendpointvalidationnullable.d.ts +15 -0
- package/esm/models/privateendpointvalidationnullable.js +16 -0
- package/esm/models/privateendpointvalidationresponse.d.ts +11 -0
- package/esm/models/privateendpointvalidationresponse.js +15 -0
- package/esm/models/updateprivateendpointpricingrequest.d.ts +16 -0
- package/esm/models/updateprivateendpointpricingrequest.js +14 -0
- package/esm/models/updateprivateendpointrequest.d.ts +45 -0
- package/esm/models/updateprivateendpointrequest.js +36 -0
- package/esm/models/validateprivateendpointrequest.d.ts +15 -0
- package/esm/models/validateprivateendpointrequest.js +18 -0
- package/esm/sdk/privateendpoints.d.ts +76 -0
- package/esm/sdk/privateendpoints.js +109 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +5 -5
|
@@ -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";
|
|
@@ -104,6 +110,7 @@ export * from "./listobservabilitydestinations.js";
|
|
|
104
110
|
export * from "./listorganizationmembers.js";
|
|
105
111
|
export * from "./listpresets.js";
|
|
106
112
|
export * from "./listpresetversions.js";
|
|
113
|
+
export * from "./listprivateendpoints.js";
|
|
107
114
|
export * from "./listproviders.js";
|
|
108
115
|
export * from "./listscimgroupmappings.js";
|
|
109
116
|
export * from "./listscimgroups.js";
|
|
@@ -126,8 +133,11 @@ export * from "./updateguardrail.js";
|
|
|
126
133
|
export * from "./updateintern.js";
|
|
127
134
|
export * from "./updatekeys.js";
|
|
128
135
|
export * from "./updateobservabilitydestination.js";
|
|
136
|
+
export * from "./updateprivateendpoint.js";
|
|
137
|
+
export * from "./updateprivateendpointpricing.js";
|
|
129
138
|
export * from "./updatescimgroupmapping.js";
|
|
130
139
|
export * from "./updateworkspace.js";
|
|
131
140
|
export * from "./uploadfile.js";
|
|
132
141
|
export * from "./upsertworkspacebudget.js";
|
|
142
|
+
export * from "./validateprivateendpoint.js";
|
|
133
143
|
//# sourceMappingURL=index.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
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 680e5562177c
|
|
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 { PrivateEndpointCheckReason$inboundSchema, } from "./privateendpointcheckreason.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const PrivateEndpointCheck$inboundSchema = z.object({
|
|
11
|
+
actual_model: z.nullable(z.string()).optional(),
|
|
12
|
+
name: z.string(),
|
|
13
|
+
passed: z.boolean(),
|
|
14
|
+
reason: PrivateEndpointCheckReason$inboundSchema.optional(),
|
|
15
|
+
upstream_message: z.nullable(z.string()).optional(),
|
|
16
|
+
upstream_status: z.int().optional(),
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
"actual_model": "actualModel",
|
|
20
|
+
"upstream_message": "upstreamMessage",
|
|
21
|
+
"upstream_status": "upstreamStatus",
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
export function privateEndpointCheckFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => PrivateEndpointCheck$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrivateEndpointCheck' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=privateendpointcheck.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Why the check failed.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PrivateEndpointCheckReason: {
|
|
7
|
+
readonly DatabaseError: "database_error";
|
|
8
|
+
readonly EndpointLimitReached: "endpoint_limit_reached";
|
|
9
|
+
readonly InvalidBaseUrl: "invalid_base_url";
|
|
10
|
+
readonly ModelNotFound: "model_not_found";
|
|
11
|
+
readonly ProviderNotFound: "provider_not_found";
|
|
12
|
+
readonly EndpointNotFound: "endpoint_not_found";
|
|
13
|
+
readonly WorkspaceNotFound: "workspace_not_found";
|
|
14
|
+
readonly NoBYOKKey: "no_byok_key";
|
|
15
|
+
readonly KeyDecryptionFailed: "key_decryption_failed";
|
|
16
|
+
readonly UpstreamError: "upstream_error";
|
|
17
|
+
readonly InvalidResponse: "invalid_response";
|
|
18
|
+
readonly InvalidStream: "invalid_stream";
|
|
19
|
+
readonly MissingUsage: "missing_usage";
|
|
20
|
+
readonly ModelMismatch: "model_mismatch";
|
|
21
|
+
readonly NotValidated: "not_validated";
|
|
22
|
+
readonly ValidationStale: "validation_stale";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Why the check failed.
|
|
26
|
+
*/
|
|
27
|
+
export type PrivateEndpointCheckReason = OpenEnum<typeof PrivateEndpointCheckReason>;
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const PrivateEndpointCheckReason$inboundSchema: z.ZodType<PrivateEndpointCheckReason, unknown>;
|
|
30
|
+
//# sourceMappingURL=privateendpointcheckreason.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5d4379eaa453
|
|
4
|
+
*/
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
/**
|
|
7
|
+
* Why the check failed.
|
|
8
|
+
*/
|
|
9
|
+
export const PrivateEndpointCheckReason = {
|
|
10
|
+
DatabaseError: "database_error",
|
|
11
|
+
EndpointLimitReached: "endpoint_limit_reached",
|
|
12
|
+
InvalidBaseUrl: "invalid_base_url",
|
|
13
|
+
ModelNotFound: "model_not_found",
|
|
14
|
+
ProviderNotFound: "provider_not_found",
|
|
15
|
+
EndpointNotFound: "endpoint_not_found",
|
|
16
|
+
WorkspaceNotFound: "workspace_not_found",
|
|
17
|
+
NoBYOKKey: "no_byok_key",
|
|
18
|
+
KeyDecryptionFailed: "key_decryption_failed",
|
|
19
|
+
UpstreamError: "upstream_error",
|
|
20
|
+
InvalidResponse: "invalid_response",
|
|
21
|
+
InvalidStream: "invalid_stream",
|
|
22
|
+
MissingUsage: "missing_usage",
|
|
23
|
+
ModelMismatch: "model_mismatch",
|
|
24
|
+
NotValidated: "not_validated",
|
|
25
|
+
ValidationStale: "validation_stale",
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const PrivateEndpointCheckReason$inboundSchema = openEnums.inboundSchema(PrivateEndpointCheckReason);
|
|
29
|
+
//# sourceMappingURL=privateendpointcheckreason.js.map
|