@distilled.cloud/vercel 0.0.0 → 1.0.0-rc.5
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/lib/credentials.d.ts +21 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +40 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +80 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +50 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +69 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +54 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +47 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/access_groups.d.ts +459 -0
- package/lib/services/access_groups.d.ts.map +1 -0
- package/lib/services/access_groups.js +453 -0
- package/lib/services/access_groups.js.map +1 -0
- package/lib/services/ai_gateway.d.ts +124 -0
- package/lib/services/ai_gateway.d.ts.map +1 -0
- package/lib/services/ai_gateway.js +126 -0
- package/lib/services/ai_gateway.js.map +1 -0
- package/lib/services/aliases.d.ts +591 -0
- package/lib/services/aliases.d.ts.map +1 -0
- package/lib/services/aliases.js +508 -0
- package/lib/services/aliases.js.map +1 -0
- package/lib/services/artifacts.d.ts +228 -0
- package/lib/services/artifacts.d.ts.map +1 -0
- package/lib/services/artifacts.js +216 -0
- package/lib/services/artifacts.js.map +1 -0
- package/lib/services/authentication.d.ts +373 -0
- package/lib/services/authentication.d.ts.map +1 -0
- package/lib/services/authentication.js +310 -0
- package/lib/services/authentication.js.map +1 -0
- package/lib/services/billing.d.ts +792 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +616 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bulk_redirects.d.ts +308 -0
- package/lib/services/bulk_redirects.d.ts.map +1 -0
- package/lib/services/bulk_redirects.js +306 -0
- package/lib/services/bulk_redirects.js.map +1 -0
- package/lib/services/certs.d.ts +171 -0
- package/lib/services/certs.d.ts.map +1 -0
- package/lib/services/certs.js +165 -0
- package/lib/services/certs.js.map +1 -0
- package/lib/services/checks_v2.d.ts +1162 -0
- package/lib/services/checks_v2.d.ts.map +1 -0
- package/lib/services/checks_v2.js +1252 -0
- package/lib/services/checks_v2.js.map +1 -0
- package/lib/services/connect.d.ts +1034 -0
- package/lib/services/connect.d.ts.map +1 -0
- package/lib/services/connect.js +993 -0
- package/lib/services/connect.js.map +1 -0
- package/lib/services/deployments.d.ts +9111 -0
- package/lib/services/deployments.d.ts.map +1 -0
- package/lib/services/deployments.js +8664 -0
- package/lib/services/deployments.js.map +1 -0
- package/lib/services/dns.d.ts +279 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +282 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/domains.d.ts +539 -0
- package/lib/services/domains.d.ts.map +1 -0
- package/lib/services/domains.js +464 -0
- package/lib/services/domains.js.map +1 -0
- package/lib/services/domains_registrar.d.ts +798 -0
- package/lib/services/domains_registrar.d.ts.map +1 -0
- package/lib/services/domains_registrar.js +968 -0
- package/lib/services/domains_registrar.js.map +1 -0
- package/lib/services/drains.d.ts +2263 -0
- package/lib/services/drains.d.ts.map +1 -0
- package/lib/services/drains.js +2406 -0
- package/lib/services/drains.js.map +1 -0
- package/lib/services/edge_cache.d.ts +125 -0
- package/lib/services/edge_cache.d.ts.map +1 -0
- package/lib/services/edge_cache.js +140 -0
- package/lib/services/edge_cache.js.map +1 -0
- package/lib/services/environment.d.ts +1020 -0
- package/lib/services/environment.d.ts.map +1 -0
- package/lib/services/environment.js +842 -0
- package/lib/services/environment.js.map +1 -0
- package/lib/services/feature_flags.d.ts +3109 -0
- package/lib/services/feature_flags.d.ts.map +1 -0
- package/lib/services/feature_flags.js +3074 -0
- package/lib/services/feature_flags.js.map +1 -0
- package/lib/services/global_config.d.ts +618 -0
- package/lib/services/global_config.d.ts.map +1 -0
- package/lib/services/global_config.js +716 -0
- package/lib/services/global_config.js.map +1 -0
- package/lib/services/index.d.ts +39 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +40 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/integrations.d.ts +2987 -0
- package/lib/services/integrations.d.ts.map +1 -0
- package/lib/services/integrations.js +2903 -0
- package/lib/services/integrations.js.map +1 -0
- package/lib/services/log_drains.d.ts +848 -0
- package/lib/services/log_drains.d.ts.map +1 -0
- package/lib/services/log_drains.js +866 -0
- package/lib/services/log_drains.js.map +1 -0
- package/lib/services/logs.d.ts +40 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +43 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/marketplace.d.ts +991 -0
- package/lib/services/marketplace.d.ts.map +1 -0
- package/lib/services/marketplace.js +1044 -0
- package/lib/services/marketplace.js.map +1 -0
- package/lib/services/microfrontends.d.ts +3210 -0
- package/lib/services/microfrontends.d.ts.map +1 -0
- package/lib/services/microfrontends.js +3300 -0
- package/lib/services/microfrontends.js.map +1 -0
- package/lib/services/networking.d.ts +239 -0
- package/lib/services/networking.d.ts.map +1 -0
- package/lib/services/networking.js +224 -0
- package/lib/services/networking.js.map +1 -0
- package/lib/services/observability.d.ts +168 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +191 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/project_members.d.ts +142 -0
- package/lib/services/project_members.d.ts.map +1 -0
- package/lib/services/project_members.js +139 -0
- package/lib/services/project_members.js.map +1 -0
- package/lib/services/project_routes.d.ts +1990 -0
- package/lib/services/project_routes.d.ts.map +1 -0
- package/lib/services/project_routes.js +2026 -0
- package/lib/services/project_routes.js.map +1 -0
- package/lib/services/projects.d.ts +23449 -0
- package/lib/services/projects.d.ts.map +1 -0
- package/lib/services/projects.js +23570 -0
- package/lib/services/projects.js.map +1 -0
- package/lib/services/rolling_release.d.ts +764 -0
- package/lib/services/rolling_release.d.ts.map +1 -0
- package/lib/services/rolling_release.js +630 -0
- package/lib/services/rolling_release.js.map +1 -0
- package/lib/services/sandboxes.d.ts +2183 -0
- package/lib/services/sandboxes.d.ts.map +1 -0
- package/lib/services/sandboxes.js +1756 -0
- package/lib/services/sandboxes.js.map +1 -0
- package/lib/services/security.d.ts +3932 -0
- package/lib/services/security.d.ts.map +1 -0
- package/lib/services/security.js +4411 -0
- package/lib/services/security.js.map +1 -0
- package/lib/services/storage.d.ts +251 -0
- package/lib/services/storage.d.ts.map +1 -0
- package/lib/services/storage.js +270 -0
- package/lib/services/storage.js.map +1 -0
- package/lib/services/teams.d.ts +1577 -0
- package/lib/services/teams.d.ts.map +1 -0
- package/lib/services/teams.js +1359 -0
- package/lib/services/teams.js.map +1 -0
- package/lib/services/user.d.ts +7972 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +7093 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vcr.d.ts +793 -0
- package/lib/services/vcr.d.ts.map +1 -0
- package/lib/services/vcr.js +882 -0
- package/lib/services/vcr.js.map +1 -0
- package/lib/services/web_analytics.d.ts +694 -0
- package/lib/services/web_analytics.d.ts.map +1 -0
- package/lib/services/web_analytics.js +695 -0
- package/lib/services/web_analytics.js.map +1 -0
- package/lib/services/webhooks.d.ts +207 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +171 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -7
- package/src/credentials.ts +70 -0
- package/src/errors.ts +93 -0
- package/src/index.ts +18 -0
- package/src/protocol.ts +98 -0
- package/src/retry.ts +78 -0
- package/src/services/access_groups.ts +1165 -0
- package/src/services/ai_gateway.ts +272 -0
- package/src/services/aliases.ts +1323 -0
- package/src/services/artifacts.ts +542 -0
- package/src/services/authentication.ts +829 -0
- package/src/services/billing.ts +1776 -0
- package/src/services/bulk_redirects.ts +748 -0
- package/src/services/certs.ts +377 -0
- package/src/services/checks_v2.ts +3136 -0
- package/src/services/connect.ts +2607 -0
- package/src/services/deployments.ts +23682 -0
- package/src/services/dns.ts +718 -0
- package/src/services/domains.ts +1209 -0
- package/src/services/domains_registrar.ts +2290 -0
- package/src/services/drains.ts +5989 -0
- package/src/services/edge_cache.ts +303 -0
- package/src/services/environment.ts +2388 -0
- package/src/services/feature_flags.ts +8302 -0
- package/src/services/global_config.ts +1668 -0
- package/src/services/index.ts +39 -0
- package/src/services/integrations.ts +8846 -0
- package/src/services/log_drains.ts +2413 -0
- package/src/services/logs.ts +78 -0
- package/src/services/marketplace.ts +2626 -0
- package/src/services/microfrontends.ts +9650 -0
- package/src/services/networking.ts +530 -0
- package/src/services/observability.ts +436 -0
- package/src/services/project_members.ts +328 -0
- package/src/services/project_routes.ts +5259 -0
- package/src/services/projects.ts +67377 -0
- package/src/services/rolling_release.ts +1869 -0
- package/src/services/sandboxes.ts +5259 -0
- package/src/services/security.ts +12408 -0
- package/src/services/storage.ts +849 -0
- package/src/services/teams.ts +3995 -0
- package/src/services/user.ts +21687 -0
- package/src/services/vcr.ts +2165 -0
- package/src/services/web_analytics.ts +1570 -0
- package/src/services/webhooks.ts +1073 -0
- package/src/traits.ts +44 -0
- package/README.md +0 -15
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/openapi.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
VercelProtocol,
|
|
8
|
+
type VercelOpError,
|
|
9
|
+
type VercelOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { VercelOpError, VercelOpContext };
|
|
14
|
+
|
|
15
|
+
export class BadRequest
|
|
16
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
18
|
+
code: S.Number,
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withBadRequestError),
|
|
21
|
+
[{ status: 400 }],
|
|
22
|
+
) {}
|
|
23
|
+
|
|
24
|
+
export class Conflict
|
|
25
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
26
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
27
|
+
code: S.Number,
|
|
28
|
+
message: S.String,
|
|
29
|
+
}).pipe(C.withConflictError),
|
|
30
|
+
[{ status: 409 }],
|
|
31
|
+
) {}
|
|
32
|
+
|
|
33
|
+
export class Forbidden
|
|
34
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
35
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
36
|
+
code: S.Number,
|
|
37
|
+
message: S.String,
|
|
38
|
+
}).pipe(C.withAuthError),
|
|
39
|
+
[{ status: 403 }],
|
|
40
|
+
) {}
|
|
41
|
+
|
|
42
|
+
export class NotFound
|
|
43
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
44
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
45
|
+
code: S.Number,
|
|
46
|
+
message: S.String,
|
|
47
|
+
}).pipe(C.withBadRequestError),
|
|
48
|
+
[{ status: 404 }],
|
|
49
|
+
) {}
|
|
50
|
+
|
|
51
|
+
export interface CreateAiGatewayRuleRequest {
|
|
52
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
53
|
+
teamId?: string;
|
|
54
|
+
/** The Team slug to perform the request on behalf of. */
|
|
55
|
+
slug?: string;
|
|
56
|
+
}
|
|
57
|
+
export const CreateAiGatewayRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
58
|
+
S.Struct({
|
|
59
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
60
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
61
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/ai-gateway/rules", code: 200 })),
|
|
62
|
+
).annotate({
|
|
63
|
+
identifier: "CreateAiGatewayRuleRequest",
|
|
64
|
+
}) as any as S.Schema<CreateAiGatewayRuleRequest>;
|
|
65
|
+
|
|
66
|
+
export type AiGatewayRuleType = "deny" | "rewrite";
|
|
67
|
+
export const AiGatewayRuleType = /*@__PURE__*/ S.String;
|
|
68
|
+
|
|
69
|
+
export interface AiGatewayRuleMatch {
|
|
70
|
+
model?: string;
|
|
71
|
+
}
|
|
72
|
+
export const AiGatewayRuleMatch = /*@__PURE__*/ S.suspend(() =>
|
|
73
|
+
S.Struct({
|
|
74
|
+
model: S.optional(S.String),
|
|
75
|
+
}),
|
|
76
|
+
).annotate({
|
|
77
|
+
identifier: "AiGatewayRuleMatch",
|
|
78
|
+
}) as any as S.Schema<AiGatewayRuleMatch>;
|
|
79
|
+
|
|
80
|
+
export interface AiGatewayRuleAction {
|
|
81
|
+
rewriteModel?: string;
|
|
82
|
+
reason?: string;
|
|
83
|
+
}
|
|
84
|
+
export const AiGatewayRuleAction = /*@__PURE__*/ S.suspend(() =>
|
|
85
|
+
S.Struct({
|
|
86
|
+
rewriteModel: S.optional(S.String),
|
|
87
|
+
reason: S.optional(S.String),
|
|
88
|
+
}),
|
|
89
|
+
).annotate({
|
|
90
|
+
identifier: "AiGatewayRuleAction",
|
|
91
|
+
}) as any as S.Schema<AiGatewayRuleAction>;
|
|
92
|
+
|
|
93
|
+
/** Public response shape for AI Gateway routing rules. Used so OpenAPI generation can avoid ElectroDB's recursive EntityItem types. */
|
|
94
|
+
export interface AiGatewayRule {
|
|
95
|
+
ownerId: string;
|
|
96
|
+
ruleId: string;
|
|
97
|
+
type: AiGatewayRuleType;
|
|
98
|
+
match?: AiGatewayRuleMatch;
|
|
99
|
+
action?: AiGatewayRuleAction;
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
deleted?: boolean;
|
|
102
|
+
description?: string;
|
|
103
|
+
createdBy?: string;
|
|
104
|
+
updatedBy?: string;
|
|
105
|
+
createdAt: number;
|
|
106
|
+
updatedAt: number;
|
|
107
|
+
}
|
|
108
|
+
export const AiGatewayRule = /*@__PURE__*/ S.suspend(() =>
|
|
109
|
+
S.Struct({
|
|
110
|
+
ownerId: S.String,
|
|
111
|
+
ruleId: S.String,
|
|
112
|
+
type: AiGatewayRuleType,
|
|
113
|
+
match: S.optional(AiGatewayRuleMatch),
|
|
114
|
+
action: S.optional(AiGatewayRuleAction),
|
|
115
|
+
enabled: S.Boolean,
|
|
116
|
+
deleted: S.optional(S.Boolean),
|
|
117
|
+
description: S.optional(S.String),
|
|
118
|
+
createdBy: S.optional(S.String),
|
|
119
|
+
updatedBy: S.optional(S.String),
|
|
120
|
+
createdAt: S.Number,
|
|
121
|
+
updatedAt: S.Number,
|
|
122
|
+
}),
|
|
123
|
+
).annotate({ identifier: "AiGatewayRule" }) as any as S.Schema<AiGatewayRule>;
|
|
124
|
+
|
|
125
|
+
export interface DeleteAiGatewayRuleRequest {
|
|
126
|
+
ruleId: string;
|
|
127
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
128
|
+
teamId?: string;
|
|
129
|
+
/** The Team slug to perform the request on behalf of. */
|
|
130
|
+
slug?: string;
|
|
131
|
+
}
|
|
132
|
+
export const DeleteAiGatewayRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
133
|
+
S.Struct({
|
|
134
|
+
ruleId: S.String.pipe(T.Query()),
|
|
135
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
136
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
137
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/v1/ai-gateway/rules", code: 200 })),
|
|
138
|
+
).annotate({
|
|
139
|
+
identifier: "DeleteAiGatewayRuleRequest",
|
|
140
|
+
}) as any as S.Schema<DeleteAiGatewayRuleRequest>;
|
|
141
|
+
|
|
142
|
+
export type DeleteAiGatewayRuleResponse = unknown;
|
|
143
|
+
export const DeleteAiGatewayRuleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
144
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
145
|
+
).annotate({
|
|
146
|
+
identifier: "DeleteAiGatewayRuleResponse",
|
|
147
|
+
}) as any as S.Schema<DeleteAiGatewayRuleResponse>;
|
|
148
|
+
|
|
149
|
+
export type ListAiGatewayRulesRequestIncludeDisabled = "true" | "false";
|
|
150
|
+
export const ListAiGatewayRulesRequestIncludeDisabled = /*@__PURE__*/ S.String;
|
|
151
|
+
|
|
152
|
+
export interface ListAiGatewayRulesRequest {
|
|
153
|
+
includeDisabled?: ListAiGatewayRulesRequestIncludeDisabled | (string & {});
|
|
154
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
155
|
+
teamId?: string;
|
|
156
|
+
/** The Team slug to perform the request on behalf of. */
|
|
157
|
+
slug?: string;
|
|
158
|
+
}
|
|
159
|
+
export const ListAiGatewayRulesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
160
|
+
S.Struct({
|
|
161
|
+
includeDisabled: S.optional(
|
|
162
|
+
ListAiGatewayRulesRequestIncludeDisabled.pipe(T.Query()),
|
|
163
|
+
),
|
|
164
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
165
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
166
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/ai-gateway/rules", code: 200 })),
|
|
167
|
+
).annotate({
|
|
168
|
+
identifier: "ListAiGatewayRulesRequest",
|
|
169
|
+
}) as any as S.Schema<ListAiGatewayRulesRequest>;
|
|
170
|
+
|
|
171
|
+
export type AiGatewayRuleListRulesList = Array<AiGatewayRule>;
|
|
172
|
+
export const AiGatewayRuleListRulesList = /*@__PURE__*/ S.Array(
|
|
173
|
+
AiGatewayRule,
|
|
174
|
+
) as any as S.Schema<AiGatewayRuleListRulesList>;
|
|
175
|
+
|
|
176
|
+
export interface AiGatewayRuleList {
|
|
177
|
+
rules: AiGatewayRuleListRulesList;
|
|
178
|
+
}
|
|
179
|
+
export const AiGatewayRuleList = /*@__PURE__*/ S.suspend(() =>
|
|
180
|
+
S.Struct({
|
|
181
|
+
rules: AiGatewayRuleListRulesList,
|
|
182
|
+
}),
|
|
183
|
+
).annotate({
|
|
184
|
+
identifier: "AiGatewayRuleList",
|
|
185
|
+
}) as any as S.Schema<AiGatewayRuleList>;
|
|
186
|
+
|
|
187
|
+
export interface UpdateAiGatewayRuleRequest {
|
|
188
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
189
|
+
teamId?: string;
|
|
190
|
+
/** The Team slug to perform the request on behalf of. */
|
|
191
|
+
slug?: string;
|
|
192
|
+
}
|
|
193
|
+
export const UpdateAiGatewayRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
194
|
+
S.Struct({
|
|
195
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
196
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
197
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/v1/ai-gateway/rules", code: 200 })),
|
|
198
|
+
).annotate({
|
|
199
|
+
identifier: "UpdateAiGatewayRuleRequest",
|
|
200
|
+
}) as any as S.Schema<UpdateAiGatewayRuleRequest>;
|
|
201
|
+
|
|
202
|
+
export type CreateAiGatewayRuleError =
|
|
203
|
+
| BadRequest
|
|
204
|
+
| Forbidden
|
|
205
|
+
| Conflict
|
|
206
|
+
| VercelOpError;
|
|
207
|
+
/** Create rule Create a routing rule */
|
|
208
|
+
export const createAiGatewayRule: API.OperationMethod<
|
|
209
|
+
CreateAiGatewayRuleRequest,
|
|
210
|
+
AiGatewayRule,
|
|
211
|
+
CreateAiGatewayRuleError,
|
|
212
|
+
VercelOpContext
|
|
213
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
214
|
+
input: CreateAiGatewayRuleRequest,
|
|
215
|
+
output: AiGatewayRule,
|
|
216
|
+
errors: [BadRequest, Forbidden, Conflict],
|
|
217
|
+
protocol: VercelProtocol,
|
|
218
|
+
retry: Retry.Retry,
|
|
219
|
+
}));
|
|
220
|
+
|
|
221
|
+
export type DeleteAiGatewayRuleError =
|
|
222
|
+
| BadRequest
|
|
223
|
+
| Forbidden
|
|
224
|
+
| NotFound
|
|
225
|
+
| VercelOpError;
|
|
226
|
+
/** Delete rule Delete a routing rule (soft delete) */
|
|
227
|
+
export const deleteAiGatewayRule: API.OperationMethod<
|
|
228
|
+
DeleteAiGatewayRuleRequest,
|
|
229
|
+
DeleteAiGatewayRuleResponse,
|
|
230
|
+
DeleteAiGatewayRuleError,
|
|
231
|
+
VercelOpContext
|
|
232
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
233
|
+
input: DeleteAiGatewayRuleRequest,
|
|
234
|
+
output: DeleteAiGatewayRuleResponse,
|
|
235
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
236
|
+
protocol: VercelProtocol,
|
|
237
|
+
retry: Retry.Retry,
|
|
238
|
+
}));
|
|
239
|
+
|
|
240
|
+
export type ListAiGatewayRulesError = BadRequest | Forbidden | VercelOpError;
|
|
241
|
+
/** List rules List the authenticated team's routing rules */
|
|
242
|
+
export const listAiGatewayRules: API.OperationMethod<
|
|
243
|
+
ListAiGatewayRulesRequest,
|
|
244
|
+
AiGatewayRuleList,
|
|
245
|
+
ListAiGatewayRulesError,
|
|
246
|
+
VercelOpContext
|
|
247
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
248
|
+
input: ListAiGatewayRulesRequest,
|
|
249
|
+
output: AiGatewayRuleList,
|
|
250
|
+
errors: [BadRequest, Forbidden],
|
|
251
|
+
protocol: VercelProtocol,
|
|
252
|
+
retry: Retry.Retry,
|
|
253
|
+
}));
|
|
254
|
+
|
|
255
|
+
export type UpdateAiGatewayRuleError =
|
|
256
|
+
| BadRequest
|
|
257
|
+
| Forbidden
|
|
258
|
+
| NotFound
|
|
259
|
+
| VercelOpError;
|
|
260
|
+
/** Update rule Update a routing rule (enabled, action, or description) */
|
|
261
|
+
export const updateAiGatewayRule: API.OperationMethod<
|
|
262
|
+
UpdateAiGatewayRuleRequest,
|
|
263
|
+
AiGatewayRule,
|
|
264
|
+
UpdateAiGatewayRuleError,
|
|
265
|
+
VercelOpContext
|
|
266
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
267
|
+
input: UpdateAiGatewayRuleRequest,
|
|
268
|
+
output: AiGatewayRule,
|
|
269
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
270
|
+
protocol: VercelProtocol,
|
|
271
|
+
retry: Retry.Retry,
|
|
272
|
+
}));
|