@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,303 @@
|
|
|
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 Forbidden
|
|
25
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
26
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
27
|
+
code: S.Number,
|
|
28
|
+
message: S.String,
|
|
29
|
+
}).pipe(C.withAuthError),
|
|
30
|
+
[{ status: 403 }],
|
|
31
|
+
) {}
|
|
32
|
+
|
|
33
|
+
export class NotFound
|
|
34
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
35
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
36
|
+
code: S.Number,
|
|
37
|
+
message: S.String,
|
|
38
|
+
}).pipe(C.withBadRequestError),
|
|
39
|
+
[{ status: 404 }],
|
|
40
|
+
) {}
|
|
41
|
+
|
|
42
|
+
export class PaymentRequired
|
|
43
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
44
|
+
/*@__PURE__*/ S.TaggedError<PaymentRequired>()("PaymentRequired", {
|
|
45
|
+
code: S.Number,
|
|
46
|
+
message: S.String,
|
|
47
|
+
}).pipe(C.withQuotaError),
|
|
48
|
+
[{ status: 402 }],
|
|
49
|
+
) {}
|
|
50
|
+
|
|
51
|
+
export type DangerouslyDeleteBySrcImagesRequestSrcImagesList = Array<string>;
|
|
52
|
+
export const DangerouslyDeleteBySrcImagesRequestSrcImagesList =
|
|
53
|
+
/*@__PURE__*/ S.Array(
|
|
54
|
+
S.String,
|
|
55
|
+
) as any as S.Schema<DangerouslyDeleteBySrcImagesRequestSrcImagesList>;
|
|
56
|
+
|
|
57
|
+
export interface DangerouslyDeleteBySrcImagesRequest {
|
|
58
|
+
projectIdOrName: string;
|
|
59
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
60
|
+
teamId?: string;
|
|
61
|
+
/** The Team slug to perform the request on behalf of. */
|
|
62
|
+
slug?: string;
|
|
63
|
+
revalidationDeadlineSeconds?: number;
|
|
64
|
+
srcImages: DangerouslyDeleteBySrcImagesRequestSrcImagesList;
|
|
65
|
+
}
|
|
66
|
+
export const DangerouslyDeleteBySrcImagesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
67
|
+
S.Struct({
|
|
68
|
+
projectIdOrName: S.String.pipe(T.Query()),
|
|
69
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
70
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
71
|
+
revalidationDeadlineSeconds: S.optional(S.Number),
|
|
72
|
+
srcImages: DangerouslyDeleteBySrcImagesRequestSrcImagesList,
|
|
73
|
+
}).pipe(
|
|
74
|
+
T.Http({
|
|
75
|
+
method: "POST",
|
|
76
|
+
uri: "/v1/edge-cache/dangerously-delete-by-src-images",
|
|
77
|
+
code: 200,
|
|
78
|
+
}),
|
|
79
|
+
),
|
|
80
|
+
).annotate({
|
|
81
|
+
identifier: "DangerouslyDeleteBySrcImagesRequest",
|
|
82
|
+
}) as any as S.Schema<DangerouslyDeleteBySrcImagesRequest>;
|
|
83
|
+
|
|
84
|
+
export interface DangerouslyDeleteBySrcImagesResponse {}
|
|
85
|
+
export const DangerouslyDeleteBySrcImagesResponse = /*@__PURE__*/ S.suspend(
|
|
86
|
+
() => S.Struct({}),
|
|
87
|
+
).annotate({
|
|
88
|
+
identifier: "DangerouslyDeleteBySrcImagesResponse",
|
|
89
|
+
}) as any as S.Schema<DangerouslyDeleteBySrcImagesResponse>;
|
|
90
|
+
|
|
91
|
+
export type DangerouslyDeleteByTagsRequestTagsCase0List = Array<string>;
|
|
92
|
+
export const DangerouslyDeleteByTagsRequestTagsCase0List =
|
|
93
|
+
/*@__PURE__*/ S.Array(
|
|
94
|
+
S.String,
|
|
95
|
+
) as any as S.Schema<DangerouslyDeleteByTagsRequestTagsCase0List>;
|
|
96
|
+
|
|
97
|
+
export type DangerouslyDeleteByTagsRequestTags =
|
|
98
|
+
| DangerouslyDeleteByTagsRequestTagsCase0List
|
|
99
|
+
| string;
|
|
100
|
+
export const DangerouslyDeleteByTagsRequestTags =
|
|
101
|
+
/*@__PURE__*/ S.Unknown as any as S.Schema<DangerouslyDeleteByTagsRequestTags>;
|
|
102
|
+
|
|
103
|
+
export type DangerouslyDeleteByTagsRequestTarget = "production" | "preview";
|
|
104
|
+
export const DangerouslyDeleteByTagsRequestTarget = /*@__PURE__*/ S.String;
|
|
105
|
+
|
|
106
|
+
export interface DangerouslyDeleteByTagsRequest {
|
|
107
|
+
projectIdOrName: string;
|
|
108
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
109
|
+
teamId?: string;
|
|
110
|
+
/** The Team slug to perform the request on behalf of. */
|
|
111
|
+
slug?: string;
|
|
112
|
+
revalidationDeadlineSeconds?: number;
|
|
113
|
+
tags: DangerouslyDeleteByTagsRequestTags;
|
|
114
|
+
target?: DangerouslyDeleteByTagsRequestTarget | (string & {});
|
|
115
|
+
}
|
|
116
|
+
export const DangerouslyDeleteByTagsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
117
|
+
S.Struct({
|
|
118
|
+
projectIdOrName: S.String.pipe(T.Query()),
|
|
119
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
120
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
121
|
+
revalidationDeadlineSeconds: S.optional(S.Number),
|
|
122
|
+
tags: DangerouslyDeleteByTagsRequestTags,
|
|
123
|
+
target: S.optional(DangerouslyDeleteByTagsRequestTarget),
|
|
124
|
+
}).pipe(
|
|
125
|
+
T.Http({
|
|
126
|
+
method: "POST",
|
|
127
|
+
uri: "/v1/edge-cache/dangerously-delete-by-tags",
|
|
128
|
+
code: 200,
|
|
129
|
+
}),
|
|
130
|
+
),
|
|
131
|
+
).annotate({
|
|
132
|
+
identifier: "DangerouslyDeleteByTagsRequest",
|
|
133
|
+
}) as any as S.Schema<DangerouslyDeleteByTagsRequest>;
|
|
134
|
+
|
|
135
|
+
export interface DangerouslyDeleteByTagsResponse {}
|
|
136
|
+
export const DangerouslyDeleteByTagsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
137
|
+
S.Struct({}),
|
|
138
|
+
).annotate({
|
|
139
|
+
identifier: "DangerouslyDeleteByTagsResponse",
|
|
140
|
+
}) as any as S.Schema<DangerouslyDeleteByTagsResponse>;
|
|
141
|
+
|
|
142
|
+
export type InvalidateBySrcImagesRequestSrcImagesList = Array<string>;
|
|
143
|
+
export const InvalidateBySrcImagesRequestSrcImagesList = /*@__PURE__*/ S.Array(
|
|
144
|
+
S.String,
|
|
145
|
+
) as any as S.Schema<InvalidateBySrcImagesRequestSrcImagesList>;
|
|
146
|
+
|
|
147
|
+
export interface InvalidateBySrcImagesRequest {
|
|
148
|
+
projectIdOrName: string;
|
|
149
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
150
|
+
teamId?: string;
|
|
151
|
+
/** The Team slug to perform the request on behalf of. */
|
|
152
|
+
slug?: string;
|
|
153
|
+
srcImages: InvalidateBySrcImagesRequestSrcImagesList;
|
|
154
|
+
}
|
|
155
|
+
export const InvalidateBySrcImagesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
156
|
+
S.Struct({
|
|
157
|
+
projectIdOrName: S.String.pipe(T.Query()),
|
|
158
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
159
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
160
|
+
srcImages: InvalidateBySrcImagesRequestSrcImagesList,
|
|
161
|
+
}).pipe(
|
|
162
|
+
T.Http({
|
|
163
|
+
method: "POST",
|
|
164
|
+
uri: "/v1/edge-cache/invalidate-by-src-images",
|
|
165
|
+
code: 200,
|
|
166
|
+
}),
|
|
167
|
+
),
|
|
168
|
+
).annotate({
|
|
169
|
+
identifier: "InvalidateBySrcImagesRequest",
|
|
170
|
+
}) as any as S.Schema<InvalidateBySrcImagesRequest>;
|
|
171
|
+
|
|
172
|
+
export interface InvalidateBySrcImagesResponse {}
|
|
173
|
+
export const InvalidateBySrcImagesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
174
|
+
S.Struct({}),
|
|
175
|
+
).annotate({
|
|
176
|
+
identifier: "InvalidateBySrcImagesResponse",
|
|
177
|
+
}) as any as S.Schema<InvalidateBySrcImagesResponse>;
|
|
178
|
+
|
|
179
|
+
export type InvalidateByTagsRequestTagsCase0List = Array<string>;
|
|
180
|
+
export const InvalidateByTagsRequestTagsCase0List = /*@__PURE__*/ S.Array(
|
|
181
|
+
S.String,
|
|
182
|
+
) as any as S.Schema<InvalidateByTagsRequestTagsCase0List>;
|
|
183
|
+
|
|
184
|
+
export type InvalidateByTagsRequestTags =
|
|
185
|
+
| InvalidateByTagsRequestTagsCase0List
|
|
186
|
+
| string;
|
|
187
|
+
export const InvalidateByTagsRequestTags =
|
|
188
|
+
/*@__PURE__*/ S.Unknown as any as S.Schema<InvalidateByTagsRequestTags>;
|
|
189
|
+
|
|
190
|
+
export type InvalidateByTagsRequestTarget = "production" | "preview";
|
|
191
|
+
export const InvalidateByTagsRequestTarget = /*@__PURE__*/ S.String;
|
|
192
|
+
|
|
193
|
+
export interface InvalidateByTagsRequest {
|
|
194
|
+
projectIdOrName: string;
|
|
195
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
196
|
+
teamId?: string;
|
|
197
|
+
/** The Team slug to perform the request on behalf of. */
|
|
198
|
+
slug?: string;
|
|
199
|
+
tags: InvalidateByTagsRequestTags;
|
|
200
|
+
target?: InvalidateByTagsRequestTarget | (string & {});
|
|
201
|
+
}
|
|
202
|
+
export const InvalidateByTagsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
203
|
+
S.Struct({
|
|
204
|
+
projectIdOrName: S.String.pipe(T.Query()),
|
|
205
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
206
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
207
|
+
tags: InvalidateByTagsRequestTags,
|
|
208
|
+
target: S.optional(InvalidateByTagsRequestTarget),
|
|
209
|
+
}).pipe(
|
|
210
|
+
T.Http({
|
|
211
|
+
method: "POST",
|
|
212
|
+
uri: "/v1/edge-cache/invalidate-by-tags",
|
|
213
|
+
code: 200,
|
|
214
|
+
}),
|
|
215
|
+
),
|
|
216
|
+
).annotate({
|
|
217
|
+
identifier: "InvalidateByTagsRequest",
|
|
218
|
+
}) as any as S.Schema<InvalidateByTagsRequest>;
|
|
219
|
+
|
|
220
|
+
export interface InvalidateByTagsResponse {}
|
|
221
|
+
export const InvalidateByTagsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
222
|
+
S.Struct({}),
|
|
223
|
+
).annotate({
|
|
224
|
+
identifier: "InvalidateByTagsResponse",
|
|
225
|
+
}) as any as S.Schema<InvalidateByTagsResponse>;
|
|
226
|
+
|
|
227
|
+
export type DangerouslyDeleteBySrcImagesError =
|
|
228
|
+
| BadRequest
|
|
229
|
+
| PaymentRequired
|
|
230
|
+
| Forbidden
|
|
231
|
+
| NotFound
|
|
232
|
+
| VercelOpError;
|
|
233
|
+
/** Dangerously delete by source image Marks a source image as deleted, causing cache entries associated with that source image to be revalidated in the foreground on the next request. Use this method with caution because one source image can be associated with many paths and deleting the cache can cause many concurrent requests to the origin leading to cache stampede problem. This method is for advanced use cases and is not recommended; prefer using `invalidateBySrcImage` instead. */
|
|
234
|
+
export const dangerouslyDeleteBySrcImages: API.OperationMethod<
|
|
235
|
+
DangerouslyDeleteBySrcImagesRequest,
|
|
236
|
+
DangerouslyDeleteBySrcImagesResponse,
|
|
237
|
+
DangerouslyDeleteBySrcImagesError,
|
|
238
|
+
VercelOpContext
|
|
239
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
240
|
+
input: DangerouslyDeleteBySrcImagesRequest,
|
|
241
|
+
output: DangerouslyDeleteBySrcImagesResponse,
|
|
242
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
243
|
+
protocol: VercelProtocol,
|
|
244
|
+
retry: Retry.Retry,
|
|
245
|
+
}));
|
|
246
|
+
|
|
247
|
+
export type DangerouslyDeleteByTagsError =
|
|
248
|
+
| BadRequest
|
|
249
|
+
| Forbidden
|
|
250
|
+
| NotFound
|
|
251
|
+
| VercelOpError;
|
|
252
|
+
/** Dangerously delete by tag Marks a cache tag as deleted, causing cache entries associated with that tag to be revalidated in the foreground on the next request. Use this method with caution because one tag can be associated with many paths and deleting the cache can cause many concurrent requests to the origin leading to cache stampede problem. This method is for advanced use cases and is not recommended; prefer using `invalidateByTag` instead. */
|
|
253
|
+
export const dangerouslyDeleteByTags: API.OperationMethod<
|
|
254
|
+
DangerouslyDeleteByTagsRequest,
|
|
255
|
+
DangerouslyDeleteByTagsResponse,
|
|
256
|
+
DangerouslyDeleteByTagsError,
|
|
257
|
+
VercelOpContext
|
|
258
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
259
|
+
input: DangerouslyDeleteByTagsRequest,
|
|
260
|
+
output: DangerouslyDeleteByTagsResponse,
|
|
261
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
262
|
+
protocol: VercelProtocol,
|
|
263
|
+
retry: Retry.Retry,
|
|
264
|
+
}));
|
|
265
|
+
|
|
266
|
+
export type InvalidateBySrcImagesError =
|
|
267
|
+
| BadRequest
|
|
268
|
+
| PaymentRequired
|
|
269
|
+
| Forbidden
|
|
270
|
+
| NotFound
|
|
271
|
+
| VercelOpError;
|
|
272
|
+
/** Invalidate by source image Marks a source image as stale, causing its corresponding transformed images to be revalidated in the background on the next request. */
|
|
273
|
+
export const invalidateBySrcImages: API.OperationMethod<
|
|
274
|
+
InvalidateBySrcImagesRequest,
|
|
275
|
+
InvalidateBySrcImagesResponse,
|
|
276
|
+
InvalidateBySrcImagesError,
|
|
277
|
+
VercelOpContext
|
|
278
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
279
|
+
input: InvalidateBySrcImagesRequest,
|
|
280
|
+
output: InvalidateBySrcImagesResponse,
|
|
281
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
282
|
+
protocol: VercelProtocol,
|
|
283
|
+
retry: Retry.Retry,
|
|
284
|
+
}));
|
|
285
|
+
|
|
286
|
+
export type InvalidateByTagsError =
|
|
287
|
+
| BadRequest
|
|
288
|
+
| Forbidden
|
|
289
|
+
| NotFound
|
|
290
|
+
| VercelOpError;
|
|
291
|
+
/** Invalidate by tag Marks a cache tag as stale, causing cache entries associated with that tag to be revalidated in the background on the next request. */
|
|
292
|
+
export const invalidateByTags: API.OperationMethod<
|
|
293
|
+
InvalidateByTagsRequest,
|
|
294
|
+
InvalidateByTagsResponse,
|
|
295
|
+
InvalidateByTagsError,
|
|
296
|
+
VercelOpContext
|
|
297
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
298
|
+
input: InvalidateByTagsRequest,
|
|
299
|
+
output: InvalidateByTagsResponse,
|
|
300
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
301
|
+
protocol: VercelProtocol,
|
|
302
|
+
retry: Retry.Retry,
|
|
303
|
+
}));
|