@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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: aa79ac02afd9
|
|
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 { PrivateEndpointStatus$inboundSchema, } from "./privateendpointstatus.js";
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const ManagedPrivateEndpoint$inboundSchema = z.object({
|
|
12
|
+
created_at: z.string(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
model_name: z.nullable(z.string()),
|
|
15
|
+
model_permaslug: z.string(),
|
|
16
|
+
model_slug: z.nullable(z.string()),
|
|
17
|
+
provider_name: z.string(),
|
|
18
|
+
status: PrivateEndpointStatus$inboundSchema,
|
|
19
|
+
declared_region: z.nullable(PrivateEndpointDeclaredRegion$inboundSchema),
|
|
20
|
+
declared_zdr: z.nullable(z.boolean()),
|
|
21
|
+
}).transform((v) => {
|
|
22
|
+
return remap$(v, {
|
|
23
|
+
"created_at": "createdAt",
|
|
24
|
+
"model_name": "modelName",
|
|
25
|
+
"model_permaslug": "modelPermaslug",
|
|
26
|
+
"model_slug": "modelSlug",
|
|
27
|
+
"provider_name": "providerName",
|
|
28
|
+
"declared_region": "declaredRegion",
|
|
29
|
+
"declared_zdr": "declaredZdr",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
export function managedPrivateEndpointFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => ManagedPrivateEndpoint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ManagedPrivateEndpoint' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=managedprivateendpoint.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { ManagedPrivateEndpoint } from "./managedprivateendpoint.js";
|
|
5
|
+
export type ManagedPrivateEndpointResponse = {
|
|
6
|
+
data: ManagedPrivateEndpoint;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const ManagedPrivateEndpointResponse$inboundSchema: z.ZodType<ManagedPrivateEndpointResponse, unknown>;
|
|
10
|
+
export declare function managedPrivateEndpointResponseFromJSON(jsonString: string): SafeParseResult<ManagedPrivateEndpointResponse, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=managedprivateendpointresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 24ff2f9760bd
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ManagedPrivateEndpoint$inboundSchema, } from "./managedprivateendpoint.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const ManagedPrivateEndpointResponse$inboundSchema = z.object({
|
|
10
|
+
data: ManagedPrivateEndpoint$inboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function managedPrivateEndpointResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => ManagedPrivateEndpointResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ManagedPrivateEndpointResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=managedprivateendpointresponse.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type ActivatePrivateEndpointGlobals = {
|
|
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 ActivatePrivateEndpointRequest = {
|
|
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
|
+
* Stable identifier of the private endpoint.
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type ActivatePrivateEndpointRequest$Outbound = {
|
|
50
|
+
"HTTP-Referer"?: string | undefined;
|
|
51
|
+
appTitle?: string | undefined;
|
|
52
|
+
appCategories?: string | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const ActivatePrivateEndpointRequest$outboundSchema: z.ZodType<ActivatePrivateEndpointRequest$Outbound, ActivatePrivateEndpointRequest>;
|
|
57
|
+
export declare function activatePrivateEndpointRequestToJSON(activatePrivateEndpointRequest: ActivatePrivateEndpointRequest): string;
|
|
58
|
+
//# sourceMappingURL=activateprivateendpoint.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 67a95de4b97f
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const ActivatePrivateEndpointRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
httpReferer: "HTTP-Referer",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function activatePrivateEndpointRequestToJSON(activatePrivateEndpointRequest) {
|
|
19
|
+
return JSON.stringify(ActivatePrivateEndpointRequest$outboundSchema.parse(activatePrivateEndpointRequest));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=activateprivateendpoint.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type CreatePrivateEndpointGlobals = {
|
|
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 CreatePrivateEndpointRequest = {
|
|
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
|
+
* Retry-safe create: a repeated create with the same key from the same organization returns the endpoint the first request created instead of creating another. The endpoint is returned as it is now. Reusing a key with a different request body (model, provider, base URL, upstream model ID, declared ZDR or region, or pricing) is rejected with 422 `idempotency_key_reused`. `activate` is not compared, and later edits to the endpoint do not affect the comparison.
|
|
46
|
+
*/
|
|
47
|
+
idempotencyKey?: string | undefined;
|
|
48
|
+
createPrivateEndpointRequest: models.CreatePrivateEndpointRequest;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type CreatePrivateEndpointRequest$Outbound = {
|
|
52
|
+
"HTTP-Referer"?: string | undefined;
|
|
53
|
+
appTitle?: string | undefined;
|
|
54
|
+
appCategories?: string | undefined;
|
|
55
|
+
"idempotency-key"?: string | undefined;
|
|
56
|
+
CreatePrivateEndpointRequest: models.CreatePrivateEndpointRequest$Outbound;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const CreatePrivateEndpointRequest$outboundSchema: z.ZodType<CreatePrivateEndpointRequest$Outbound, CreatePrivateEndpointRequest>;
|
|
60
|
+
export declare function createPrivateEndpointRequestToJSON(createPrivateEndpointRequest: CreatePrivateEndpointRequest): string;
|
|
61
|
+
//# sourceMappingURL=createprivateendpoint.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 469b6f483a53
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { CreatePrivateEndpointRequest$outboundSchema as models_CreatePrivateEndpointRequest$outboundSchema } from "../createprivateendpointrequest.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const CreatePrivateEndpointRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
idempotencyKey: z.string().optional(),
|
|
14
|
+
createPrivateEndpointRequest: models_CreatePrivateEndpointRequest$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
idempotencyKey: "idempotency-key",
|
|
19
|
+
createPrivateEndpointRequest: "CreatePrivateEndpointRequest",
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
export function createPrivateEndpointRequestToJSON(createPrivateEndpointRequest) {
|
|
23
|
+
return JSON.stringify(CreatePrivateEndpointRequest$outboundSchema.parse(createPrivateEndpointRequest));
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=createprivateendpoint.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
export type DeletePrivateEndpointGlobals = {
|
|
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
|
+
/**
|
|
25
|
+
* When `true`, only delete the endpoint if it is still a draft (409 otherwise).
|
|
26
|
+
*/
|
|
27
|
+
export declare const DraftOnly: {
|
|
28
|
+
readonly True: "true";
|
|
29
|
+
readonly False: "false";
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* When `true`, only delete the endpoint if it is still a draft (409 otherwise).
|
|
33
|
+
*/
|
|
34
|
+
export type DraftOnly = OpenEnum<typeof DraftOnly>;
|
|
35
|
+
export type DeletePrivateEndpointRequest = {
|
|
36
|
+
/**
|
|
37
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* This is used to track API usage per application.
|
|
41
|
+
*/
|
|
42
|
+
httpReferer?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
*/
|
|
48
|
+
appTitle?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
*/
|
|
54
|
+
appCategories?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Stable identifier of the private endpoint.
|
|
57
|
+
*/
|
|
58
|
+
id: string;
|
|
59
|
+
/**
|
|
60
|
+
* When `true`, only delete the endpoint if it is still a draft (409 otherwise).
|
|
61
|
+
*/
|
|
62
|
+
draftOnly?: DraftOnly | undefined;
|
|
63
|
+
};
|
|
64
|
+
/** @internal */
|
|
65
|
+
export declare const DraftOnly$outboundSchema: z.ZodType<string, DraftOnly>;
|
|
66
|
+
/** @internal */
|
|
67
|
+
export type DeletePrivateEndpointRequest$Outbound = {
|
|
68
|
+
"HTTP-Referer"?: string | undefined;
|
|
69
|
+
appTitle?: string | undefined;
|
|
70
|
+
appCategories?: string | undefined;
|
|
71
|
+
id: string;
|
|
72
|
+
draft_only?: string | undefined;
|
|
73
|
+
};
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const DeletePrivateEndpointRequest$outboundSchema: z.ZodType<DeletePrivateEndpointRequest$Outbound, DeletePrivateEndpointRequest>;
|
|
76
|
+
export declare function deletePrivateEndpointRequestToJSON(deletePrivateEndpointRequest: DeletePrivateEndpointRequest): string;
|
|
77
|
+
//# sourceMappingURL=deleteprivateendpoint.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a0caf4badde5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
/**
|
|
9
|
+
* When `true`, only delete the endpoint if it is still a draft (409 otherwise).
|
|
10
|
+
*/
|
|
11
|
+
export const DraftOnly = {
|
|
12
|
+
True: "true",
|
|
13
|
+
False: "false",
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const DraftOnly$outboundSchema = openEnums
|
|
17
|
+
.outboundSchema(DraftOnly);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const DeletePrivateEndpointRequest$outboundSchema = z.object({
|
|
20
|
+
httpReferer: z.string().optional(),
|
|
21
|
+
appTitle: z.string().optional(),
|
|
22
|
+
appCategories: z.string().optional(),
|
|
23
|
+
id: z.string(),
|
|
24
|
+
draftOnly: DraftOnly$outboundSchema.optional(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
httpReferer: "HTTP-Referer",
|
|
28
|
+
draftOnly: "draft_only",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
export function deletePrivateEndpointRequestToJSON(deletePrivateEndpointRequest) {
|
|
32
|
+
return JSON.stringify(DeletePrivateEndpointRequest$outboundSchema.parse(deletePrivateEndpointRequest));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=deleteprivateendpoint.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type DisablePrivateEndpointGlobals = {
|
|
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 DisablePrivateEndpointRequest = {
|
|
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
|
+
* Stable identifier of the private endpoint.
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type DisablePrivateEndpointRequest$Outbound = {
|
|
50
|
+
"HTTP-Referer"?: string | undefined;
|
|
51
|
+
appTitle?: string | undefined;
|
|
52
|
+
appCategories?: string | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const DisablePrivateEndpointRequest$outboundSchema: z.ZodType<DisablePrivateEndpointRequest$Outbound, DisablePrivateEndpointRequest>;
|
|
57
|
+
export declare function disablePrivateEndpointRequestToJSON(disablePrivateEndpointRequest: DisablePrivateEndpointRequest): string;
|
|
58
|
+
//# sourceMappingURL=disableprivateendpoint.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3a08f5ad738c
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const DisablePrivateEndpointRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
httpReferer: "HTTP-Referer",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function disablePrivateEndpointRequestToJSON(disablePrivateEndpointRequest) {
|
|
19
|
+
return JSON.stringify(DisablePrivateEndpointRequest$outboundSchema.parse(disablePrivateEndpointRequest));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=disableprivateendpoint.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type EnablePrivateEndpointGlobals = {
|
|
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 EnablePrivateEndpointRequest = {
|
|
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
|
+
* Stable identifier of the private endpoint.
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type EnablePrivateEndpointRequest$Outbound = {
|
|
50
|
+
"HTTP-Referer"?: string | undefined;
|
|
51
|
+
appTitle?: string | undefined;
|
|
52
|
+
appCategories?: string | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const EnablePrivateEndpointRequest$outboundSchema: z.ZodType<EnablePrivateEndpointRequest$Outbound, EnablePrivateEndpointRequest>;
|
|
57
|
+
export declare function enablePrivateEndpointRequestToJSON(enablePrivateEndpointRequest: EnablePrivateEndpointRequest): string;
|
|
58
|
+
//# sourceMappingURL=enableprivateendpoint.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e1500a47cc96
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const EnablePrivateEndpointRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
httpReferer: "HTTP-Referer",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function enablePrivateEndpointRequestToJSON(enablePrivateEndpointRequest) {
|
|
19
|
+
return JSON.stringify(EnablePrivateEndpointRequest$outboundSchema.parse(enablePrivateEndpointRequest));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=enableprivateendpoint.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetPrivateEndpointGlobals = {
|
|
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 GetPrivateEndpointRequest = {
|
|
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
|
+
* Stable identifier of the private endpoint.
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type GetPrivateEndpointRequest$Outbound = {
|
|
50
|
+
"HTTP-Referer"?: string | undefined;
|
|
51
|
+
appTitle?: string | undefined;
|
|
52
|
+
appCategories?: string | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const GetPrivateEndpointRequest$outboundSchema: z.ZodType<GetPrivateEndpointRequest$Outbound, GetPrivateEndpointRequest>;
|
|
57
|
+
export declare function getPrivateEndpointRequestToJSON(getPrivateEndpointRequest: GetPrivateEndpointRequest): string;
|
|
58
|
+
//# sourceMappingURL=getprivateendpoint.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d2a00e755d45
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetPrivateEndpointRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
httpReferer: "HTTP-Referer",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function getPrivateEndpointRequestToJSON(getPrivateEndpointRequest) {
|
|
19
|
+
return JSON.stringify(GetPrivateEndpointRequest$outboundSchema.parse(getPrivateEndpointRequest));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=getprivateendpoint.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./activateprivateendpoint.js";
|
|
1
2
|
export * from "./bulkaddworkspacemembers.js";
|
|
2
3
|
export * from "./bulkassignkeystoguardrail.js";
|
|
3
4
|
export * from "./bulkassignmemberstoguardrail.js";
|
|
@@ -23,6 +24,7 @@ export * from "./createobservabilitydestination.js";
|
|
|
23
24
|
export * from "./createpresetschatcompletions.js";
|
|
24
25
|
export * from "./createpresetsmessages.js";
|
|
25
26
|
export * from "./createpresetsresponses.js";
|
|
27
|
+
export * from "./createprivateendpoint.js";
|
|
26
28
|
export * from "./creatererank.js";
|
|
27
29
|
export * from "./createresponses.js";
|
|
28
30
|
export * from "./createscimgroupmapping.js";
|
|
@@ -38,12 +40,15 @@ export * from "./deleteintern.js";
|
|
|
38
40
|
export * from "./deleteinternvaultsecret.js";
|
|
39
41
|
export * from "./deletekeys.js";
|
|
40
42
|
export * from "./deleteobservabilitydestination.js";
|
|
43
|
+
export * from "./deleteprivateendpoint.js";
|
|
41
44
|
export * from "./deletescimgroupmapping.js";
|
|
42
45
|
export * from "./deletevaultsecret.js";
|
|
43
46
|
export * from "./deleteworkspace.js";
|
|
44
47
|
export * from "./deleteworkspacebudget.js";
|
|
48
|
+
export * from "./disableprivateendpoint.js";
|
|
45
49
|
export * from "./downloadcontainerfilecontent.js";
|
|
46
50
|
export * from "./downloadfilecontent.js";
|
|
51
|
+
export * from "./enableprivateendpoint.js";
|
|
47
52
|
export * from "./exchangeauthcodeforapikey.js";
|
|
48
53
|
export * from "./getanalyticsmeta.js";
|
|
49
54
|
export * from "./getapprankings.js";
|
|
@@ -65,6 +70,7 @@ export * from "./getmodels.js";
|
|
|
65
70
|
export * from "./getobservabilitydestination.js";
|
|
66
71
|
export * from "./getpreset.js";
|
|
67
72
|
export * from "./getpresetversion.js";
|
|
73
|
+
export * from "./getprivateendpoint.js";
|
|
68
74
|
export * from "./getrankingsdaily.js";
|
|
69
75
|
export * from "./getscimgroupmapping.js";
|
|
70
76
|
export * from "./getscimsyncjob.js";
|
|
@@ -100,6 +106,7 @@ export * from "./listobservabilitydestinations.js";
|
|
|
100
106
|
export * from "./listorganizationmembers.js";
|
|
101
107
|
export * from "./listpresets.js";
|
|
102
108
|
export * from "./listpresetversions.js";
|
|
109
|
+
export * from "./listprivateendpoints.js";
|
|
103
110
|
export * from "./listproviders.js";
|
|
104
111
|
export * from "./listscimgroupmappings.js";
|
|
105
112
|
export * from "./listscimgroups.js";
|
|
@@ -122,8 +129,11 @@ export * from "./updateguardrail.js";
|
|
|
122
129
|
export * from "./updateintern.js";
|
|
123
130
|
export * from "./updatekeys.js";
|
|
124
131
|
export * from "./updateobservabilitydestination.js";
|
|
132
|
+
export * from "./updateprivateendpoint.js";
|
|
133
|
+
export * from "./updateprivateendpointpricing.js";
|
|
125
134
|
export * from "./updatescimgroupmapping.js";
|
|
126
135
|
export * from "./updateworkspace.js";
|
|
127
136
|
export * from "./uploadfile.js";
|
|
128
137
|
export * from "./upsertworkspacebudget.js";
|
|
138
|
+
export * from "./validateprivateendpoint.js";
|
|
129
139
|
//# sourceMappingURL=index.d.ts.map
|