@distilled.cloud/vercel 0.0.0 → 1.0.0-rc.4
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,2165 @@
|
|
|
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 class PaymentRequired
|
|
52
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
53
|
+
/*@__PURE__*/ S.TaggedError<PaymentRequired>()("PaymentRequired", {
|
|
54
|
+
code: S.Number,
|
|
55
|
+
message: S.String,
|
|
56
|
+
}).pipe(C.withQuotaError),
|
|
57
|
+
[{ status: 402 }],
|
|
58
|
+
) {}
|
|
59
|
+
|
|
60
|
+
export interface AddRepositoryPermissionRequest {
|
|
61
|
+
idOrName: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
64
|
+
teamId?: string;
|
|
65
|
+
/** The Team slug to perform the request on behalf of. */
|
|
66
|
+
slug?: string;
|
|
67
|
+
/** Slug of a team that is granted access to a repository. */
|
|
68
|
+
teamSlug?: string;
|
|
69
|
+
}
|
|
70
|
+
export const AddRepositoryPermissionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
71
|
+
S.Struct({
|
|
72
|
+
idOrName: S.String.pipe(T.Label()),
|
|
73
|
+
projectId: S.String.pipe(T.Query()),
|
|
74
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
75
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
76
|
+
teamSlug: S.optional(S.String),
|
|
77
|
+
}).pipe(
|
|
78
|
+
T.Http({
|
|
79
|
+
method: "POST",
|
|
80
|
+
uri: "/v1/vcr/repository/{idOrName}/permissions",
|
|
81
|
+
code: 200,
|
|
82
|
+
}),
|
|
83
|
+
),
|
|
84
|
+
).annotate({
|
|
85
|
+
identifier: "AddRepositoryPermissionRequest",
|
|
86
|
+
}) as any as S.Schema<AddRepositoryPermissionRequest>;
|
|
87
|
+
|
|
88
|
+
/** A team's access grant to a Vercel Container Registry repository. */
|
|
89
|
+
export interface VcrRepositoryPermission {
|
|
90
|
+
/** Identifier of the repository the permission grants access to. */
|
|
91
|
+
repositoryId: string;
|
|
92
|
+
/** Identifier of the team that is granted access to the repository. */
|
|
93
|
+
teamId: string;
|
|
94
|
+
/** Slug of the team that is granted access to the repository. */
|
|
95
|
+
teamSlug: string;
|
|
96
|
+
/** ISO 8601 timestamp of when the permission was created. */
|
|
97
|
+
createdAt: string;
|
|
98
|
+
}
|
|
99
|
+
export const VcrRepositoryPermission = /*@__PURE__*/ S.suspend(() =>
|
|
100
|
+
S.Struct({
|
|
101
|
+
repositoryId: S.String,
|
|
102
|
+
teamId: S.String,
|
|
103
|
+
teamSlug: S.String,
|
|
104
|
+
createdAt: S.String,
|
|
105
|
+
}),
|
|
106
|
+
).annotate({
|
|
107
|
+
identifier: "VcrRepositoryPermission",
|
|
108
|
+
}) as any as S.Schema<VcrRepositoryPermission>;
|
|
109
|
+
|
|
110
|
+
export interface AddRepositoryPermissionResponse {
|
|
111
|
+
permission: VcrRepositoryPermission;
|
|
112
|
+
}
|
|
113
|
+
export const AddRepositoryPermissionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
114
|
+
S.Struct({
|
|
115
|
+
permission: VcrRepositoryPermission,
|
|
116
|
+
}),
|
|
117
|
+
).annotate({
|
|
118
|
+
identifier: "AddRepositoryPermissionResponse",
|
|
119
|
+
}) as any as S.Schema<AddRepositoryPermissionResponse>;
|
|
120
|
+
|
|
121
|
+
export interface ClearRepositoryPermissionsRequest {
|
|
122
|
+
idOrName: string;
|
|
123
|
+
projectId: string;
|
|
124
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
125
|
+
teamId?: string;
|
|
126
|
+
/** The Team slug to perform the request on behalf of. */
|
|
127
|
+
slug?: string;
|
|
128
|
+
}
|
|
129
|
+
export const ClearRepositoryPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
130
|
+
S.Struct({
|
|
131
|
+
idOrName: S.String.pipe(T.Label()),
|
|
132
|
+
projectId: S.String.pipe(T.Query()),
|
|
133
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
134
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
135
|
+
}).pipe(
|
|
136
|
+
T.Http({
|
|
137
|
+
method: "DELETE",
|
|
138
|
+
uri: "/v1/vcr/repository/{idOrName}/permissions/all",
|
|
139
|
+
code: 200,
|
|
140
|
+
}),
|
|
141
|
+
),
|
|
142
|
+
).annotate({
|
|
143
|
+
identifier: "ClearRepositoryPermissionsRequest",
|
|
144
|
+
}) as any as S.Schema<ClearRepositoryPermissionsRequest>;
|
|
145
|
+
|
|
146
|
+
export type ClearRepositoryPermissionsResponse = unknown;
|
|
147
|
+
export const ClearRepositoryPermissionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
148
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
149
|
+
).annotate({
|
|
150
|
+
identifier: "ClearRepositoryPermissionsResponse",
|
|
151
|
+
}) as any as S.Schema<ClearRepositoryPermissionsResponse>;
|
|
152
|
+
|
|
153
|
+
export interface CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsRequest {
|
|
154
|
+
/** Single Docker repository team slug component. */
|
|
155
|
+
teamSlug: string;
|
|
156
|
+
/** Single Docker repository project slug component. */
|
|
157
|
+
projectSlug: string;
|
|
158
|
+
/** Single Docker repository name component. */
|
|
159
|
+
repositoryName: string;
|
|
160
|
+
/** Digest of the blob to mount from another repository. */
|
|
161
|
+
mount?: string;
|
|
162
|
+
/** Source repository to mount the blob from. */
|
|
163
|
+
from?: string;
|
|
164
|
+
}
|
|
165
|
+
export const CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsRequest =
|
|
166
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
167
|
+
S.Struct({
|
|
168
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
169
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
170
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
171
|
+
mount: S.optional(S.String.pipe(T.Query())),
|
|
172
|
+
from: S.optional(S.String.pipe(T.Query())),
|
|
173
|
+
}).pipe(
|
|
174
|
+
T.Http({
|
|
175
|
+
method: "POST",
|
|
176
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/",
|
|
177
|
+
code: 200,
|
|
178
|
+
}),
|
|
179
|
+
),
|
|
180
|
+
).annotate({
|
|
181
|
+
identifier:
|
|
182
|
+
"CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsRequest",
|
|
183
|
+
}) as any as S.Schema<CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsRequest>;
|
|
184
|
+
|
|
185
|
+
export type CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsResponse =
|
|
186
|
+
unknown;
|
|
187
|
+
export const CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsResponse =
|
|
188
|
+
/*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
189
|
+
identifier:
|
|
190
|
+
"CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsResponse",
|
|
191
|
+
}) as any as S.Schema<CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsResponse>;
|
|
192
|
+
|
|
193
|
+
export interface CreateRepositoryRequest {
|
|
194
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
195
|
+
teamId?: string;
|
|
196
|
+
/** The Team slug to perform the request on behalf of. */
|
|
197
|
+
slug?: string;
|
|
198
|
+
projectId: string;
|
|
199
|
+
/** Single Docker repository name component. */
|
|
200
|
+
name: string;
|
|
201
|
+
}
|
|
202
|
+
export const CreateRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
203
|
+
S.Struct({
|
|
204
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
205
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
206
|
+
projectId: S.String,
|
|
207
|
+
name: S.String,
|
|
208
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/vcr/repository", code: 200 })),
|
|
209
|
+
).annotate({
|
|
210
|
+
identifier: "CreateRepositoryRequest",
|
|
211
|
+
}) as any as S.Schema<CreateRepositoryRequest>;
|
|
212
|
+
|
|
213
|
+
/** A Vercel Container Registry repository. */
|
|
214
|
+
export interface VcrRepository {
|
|
215
|
+
/** Unique identifier of the repository. */
|
|
216
|
+
id: string;
|
|
217
|
+
/** Identifier of the project the repository belongs to. */
|
|
218
|
+
projectId: string;
|
|
219
|
+
/** Name of the repository. */
|
|
220
|
+
name: string;
|
|
221
|
+
/** Whether the repository is public. Images in public repositories can be pulled by anyone. Defaults to `false` (private). */
|
|
222
|
+
public: boolean;
|
|
223
|
+
/** ISO 8601 timestamp of when the repository was created. */
|
|
224
|
+
createdAt: string;
|
|
225
|
+
/** ISO 8601 timestamp of when the repository was last updated. */
|
|
226
|
+
updatedAt: string;
|
|
227
|
+
}
|
|
228
|
+
export const VcrRepository = /*@__PURE__*/ S.suspend(() =>
|
|
229
|
+
S.Struct({
|
|
230
|
+
id: S.String,
|
|
231
|
+
projectId: S.String,
|
|
232
|
+
name: S.String,
|
|
233
|
+
public: S.Boolean,
|
|
234
|
+
createdAt: S.String,
|
|
235
|
+
updatedAt: S.String,
|
|
236
|
+
}),
|
|
237
|
+
).annotate({ identifier: "VcrRepository" }) as any as S.Schema<VcrRepository>;
|
|
238
|
+
|
|
239
|
+
export interface CreateRepositoryResponse {
|
|
240
|
+
repository: VcrRepository;
|
|
241
|
+
}
|
|
242
|
+
export const CreateRepositoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
243
|
+
S.Struct({
|
|
244
|
+
repository: VcrRepository,
|
|
245
|
+
}),
|
|
246
|
+
).annotate({
|
|
247
|
+
identifier: "CreateRepositoryResponse",
|
|
248
|
+
}) as any as S.Schema<CreateRepositoryResponse>;
|
|
249
|
+
|
|
250
|
+
export interface DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest {
|
|
251
|
+
/** Single Docker repository team slug component. */
|
|
252
|
+
teamSlug: string;
|
|
253
|
+
/** Single Docker repository project slug component. */
|
|
254
|
+
projectSlug: string;
|
|
255
|
+
/** Single Docker repository name component. */
|
|
256
|
+
repositoryName: string;
|
|
257
|
+
/** Content-addressable digest (algorithm:hex). */
|
|
258
|
+
digest: string;
|
|
259
|
+
}
|
|
260
|
+
export const DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest =
|
|
261
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
262
|
+
S.Struct({
|
|
263
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
264
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
265
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
266
|
+
digest: S.String.pipe(T.Label()),
|
|
267
|
+
}).pipe(
|
|
268
|
+
T.Http({
|
|
269
|
+
method: "DELETE",
|
|
270
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/{digest}",
|
|
271
|
+
code: 200,
|
|
272
|
+
}),
|
|
273
|
+
),
|
|
274
|
+
).annotate({
|
|
275
|
+
identifier:
|
|
276
|
+
"DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest",
|
|
277
|
+
}) as any as S.Schema<DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest>;
|
|
278
|
+
|
|
279
|
+
export interface DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse {}
|
|
280
|
+
export const DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse =
|
|
281
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
282
|
+
identifier:
|
|
283
|
+
"DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse",
|
|
284
|
+
}) as any as S.Schema<DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse>;
|
|
285
|
+
|
|
286
|
+
export interface DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest {
|
|
287
|
+
/** Single Docker repository team slug component. */
|
|
288
|
+
teamSlug: string;
|
|
289
|
+
/** Single Docker repository project slug component. */
|
|
290
|
+
projectSlug: string;
|
|
291
|
+
/** Single Docker repository name component. */
|
|
292
|
+
repositoryName: string;
|
|
293
|
+
/** Blob upload session identifier. */
|
|
294
|
+
uuid: string;
|
|
295
|
+
}
|
|
296
|
+
export const DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest =
|
|
297
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
298
|
+
S.Struct({
|
|
299
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
300
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
301
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
302
|
+
uuid: S.String.pipe(T.Label()),
|
|
303
|
+
}).pipe(
|
|
304
|
+
T.Http({
|
|
305
|
+
method: "DELETE",
|
|
306
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}",
|
|
307
|
+
code: 200,
|
|
308
|
+
}),
|
|
309
|
+
),
|
|
310
|
+
).annotate({
|
|
311
|
+
identifier:
|
|
312
|
+
"DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest",
|
|
313
|
+
}) as any as S.Schema<DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest>;
|
|
314
|
+
|
|
315
|
+
export type DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse =
|
|
316
|
+
unknown;
|
|
317
|
+
export const DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse =
|
|
318
|
+
/*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
319
|
+
identifier:
|
|
320
|
+
"DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse",
|
|
321
|
+
}) as any as S.Schema<DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse>;
|
|
322
|
+
|
|
323
|
+
export interface DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest {
|
|
324
|
+
/** Single Docker repository team slug component. */
|
|
325
|
+
teamSlug: string;
|
|
326
|
+
/** Single Docker repository project slug component. */
|
|
327
|
+
projectSlug: string;
|
|
328
|
+
/** Single Docker repository name component. */
|
|
329
|
+
repositoryName: string;
|
|
330
|
+
/** Content-addressable digest (algorithm:hex). */
|
|
331
|
+
reference: string;
|
|
332
|
+
}
|
|
333
|
+
export const DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest =
|
|
334
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
335
|
+
S.Struct({
|
|
336
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
337
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
338
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
339
|
+
reference: S.String.pipe(T.Label()),
|
|
340
|
+
}).pipe(
|
|
341
|
+
T.Http({
|
|
342
|
+
method: "DELETE",
|
|
343
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}",
|
|
344
|
+
code: 200,
|
|
345
|
+
}),
|
|
346
|
+
),
|
|
347
|
+
).annotate({
|
|
348
|
+
identifier:
|
|
349
|
+
"DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest",
|
|
350
|
+
}) as any as S.Schema<DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest>;
|
|
351
|
+
|
|
352
|
+
export type DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse =
|
|
353
|
+
unknown;
|
|
354
|
+
export const DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse =
|
|
355
|
+
/*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
356
|
+
identifier:
|
|
357
|
+
"DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse",
|
|
358
|
+
}) as any as S.Schema<DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse>;
|
|
359
|
+
|
|
360
|
+
export interface DeleteRepositoryRequest {
|
|
361
|
+
idOrName: string;
|
|
362
|
+
projectId: string;
|
|
363
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
364
|
+
teamId?: string;
|
|
365
|
+
/** The Team slug to perform the request on behalf of. */
|
|
366
|
+
slug?: string;
|
|
367
|
+
}
|
|
368
|
+
export const DeleteRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
369
|
+
S.Struct({
|
|
370
|
+
idOrName: S.String.pipe(T.Label()),
|
|
371
|
+
projectId: S.String.pipe(T.Query()),
|
|
372
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
373
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
374
|
+
}).pipe(
|
|
375
|
+
T.Http({
|
|
376
|
+
method: "DELETE",
|
|
377
|
+
uri: "/v1/vcr/repository/{idOrName}",
|
|
378
|
+
code: 200,
|
|
379
|
+
}),
|
|
380
|
+
),
|
|
381
|
+
).annotate({
|
|
382
|
+
identifier: "DeleteRepositoryRequest",
|
|
383
|
+
}) as any as S.Schema<DeleteRepositoryRequest>;
|
|
384
|
+
|
|
385
|
+
export type DeleteRepositoryResponse = unknown;
|
|
386
|
+
export const DeleteRepositoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
387
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
388
|
+
).annotate({
|
|
389
|
+
identifier: "DeleteRepositoryResponse",
|
|
390
|
+
}) as any as S.Schema<DeleteRepositoryResponse>;
|
|
391
|
+
|
|
392
|
+
export interface DeleteRepositoryImageRequest {
|
|
393
|
+
idOrName: string;
|
|
394
|
+
imageId: string;
|
|
395
|
+
projectId: string;
|
|
396
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
397
|
+
teamId?: string;
|
|
398
|
+
/** The Team slug to perform the request on behalf of. */
|
|
399
|
+
slug?: string;
|
|
400
|
+
}
|
|
401
|
+
export const DeleteRepositoryImageRequest = /*@__PURE__*/ S.suspend(() =>
|
|
402
|
+
S.Struct({
|
|
403
|
+
idOrName: S.String.pipe(T.Label()),
|
|
404
|
+
imageId: S.String.pipe(T.Label()),
|
|
405
|
+
projectId: S.String.pipe(T.Query()),
|
|
406
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
407
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
408
|
+
}).pipe(
|
|
409
|
+
T.Http({
|
|
410
|
+
method: "DELETE",
|
|
411
|
+
uri: "/v1/vcr/repository/{idOrName}/images/{imageId}",
|
|
412
|
+
code: 200,
|
|
413
|
+
}),
|
|
414
|
+
),
|
|
415
|
+
).annotate({
|
|
416
|
+
identifier: "DeleteRepositoryImageRequest",
|
|
417
|
+
}) as any as S.Schema<DeleteRepositoryImageRequest>;
|
|
418
|
+
|
|
419
|
+
export type DeleteRepositoryImageResponse = unknown;
|
|
420
|
+
export const DeleteRepositoryImageResponse = /*@__PURE__*/ S.suspend(() =>
|
|
421
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
422
|
+
).annotate({
|
|
423
|
+
identifier: "DeleteRepositoryImageResponse",
|
|
424
|
+
}) as any as S.Schema<DeleteRepositoryImageResponse>;
|
|
425
|
+
|
|
426
|
+
export interface GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest {
|
|
427
|
+
/** Single Docker repository team slug component. */
|
|
428
|
+
teamSlug: string;
|
|
429
|
+
/** Single Docker repository project slug component. */
|
|
430
|
+
projectSlug: string;
|
|
431
|
+
/** Single Docker repository name component. */
|
|
432
|
+
repositoryName: string;
|
|
433
|
+
/** Content-addressable digest (algorithm:hex). */
|
|
434
|
+
digest: string;
|
|
435
|
+
}
|
|
436
|
+
export const GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest =
|
|
437
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
438
|
+
S.Struct({
|
|
439
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
440
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
441
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
442
|
+
digest: S.String.pipe(T.Label()),
|
|
443
|
+
}).pipe(
|
|
444
|
+
T.Http({
|
|
445
|
+
method: "GET",
|
|
446
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/{digest}",
|
|
447
|
+
code: 200,
|
|
448
|
+
}),
|
|
449
|
+
),
|
|
450
|
+
).annotate({
|
|
451
|
+
identifier:
|
|
452
|
+
"GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest",
|
|
453
|
+
}) as any as S.Schema<GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest>;
|
|
454
|
+
|
|
455
|
+
export interface GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse {}
|
|
456
|
+
export const GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse =
|
|
457
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
458
|
+
identifier:
|
|
459
|
+
"GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse",
|
|
460
|
+
}) as any as S.Schema<GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse>;
|
|
461
|
+
|
|
462
|
+
export interface GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest {
|
|
463
|
+
/** Single Docker repository team slug component. */
|
|
464
|
+
teamSlug: string;
|
|
465
|
+
/** Single Docker repository project slug component. */
|
|
466
|
+
projectSlug: string;
|
|
467
|
+
/** Single Docker repository name component. */
|
|
468
|
+
repositoryName: string;
|
|
469
|
+
/** Blob upload session identifier. */
|
|
470
|
+
uuid: string;
|
|
471
|
+
}
|
|
472
|
+
export const GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest =
|
|
473
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
474
|
+
S.Struct({
|
|
475
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
476
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
477
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
478
|
+
uuid: S.String.pipe(T.Label()),
|
|
479
|
+
}).pipe(
|
|
480
|
+
T.Http({
|
|
481
|
+
method: "GET",
|
|
482
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}",
|
|
483
|
+
code: 200,
|
|
484
|
+
}),
|
|
485
|
+
),
|
|
486
|
+
).annotate({
|
|
487
|
+
identifier:
|
|
488
|
+
"GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest",
|
|
489
|
+
}) as any as S.Schema<GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest>;
|
|
490
|
+
|
|
491
|
+
export type GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse =
|
|
492
|
+
unknown;
|
|
493
|
+
export const GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse =
|
|
494
|
+
/*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
495
|
+
identifier:
|
|
496
|
+
"GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse",
|
|
497
|
+
}) as any as S.Schema<GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse>;
|
|
498
|
+
|
|
499
|
+
export interface GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest {
|
|
500
|
+
/** Single Docker repository team slug component. */
|
|
501
|
+
teamSlug: string;
|
|
502
|
+
/** Single Docker repository project slug component. */
|
|
503
|
+
projectSlug: string;
|
|
504
|
+
/** Single Docker repository name component. */
|
|
505
|
+
repositoryName: string;
|
|
506
|
+
/** Manifest reference: a tag or digest. */
|
|
507
|
+
reference: string;
|
|
508
|
+
}
|
|
509
|
+
export const GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest =
|
|
510
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
511
|
+
S.Struct({
|
|
512
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
513
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
514
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
515
|
+
reference: S.String.pipe(T.Label()),
|
|
516
|
+
}).pipe(
|
|
517
|
+
T.Http({
|
|
518
|
+
method: "GET",
|
|
519
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}",
|
|
520
|
+
code: 200,
|
|
521
|
+
}),
|
|
522
|
+
),
|
|
523
|
+
).annotate({
|
|
524
|
+
identifier:
|
|
525
|
+
"GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest",
|
|
526
|
+
}) as any as S.Schema<GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest>;
|
|
527
|
+
|
|
528
|
+
export interface GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse {}
|
|
529
|
+
export const GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse =
|
|
530
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
531
|
+
identifier:
|
|
532
|
+
"GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse",
|
|
533
|
+
}) as any as S.Schema<GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse>;
|
|
534
|
+
|
|
535
|
+
export interface GetByTeamSlugByProjectSlugByRepositoryNameTagsListRequest {
|
|
536
|
+
/** Single Docker repository team slug component. */
|
|
537
|
+
teamSlug: string;
|
|
538
|
+
/** Single Docker repository project slug component. */
|
|
539
|
+
projectSlug: string;
|
|
540
|
+
/** Single Docker repository name component. */
|
|
541
|
+
repositoryName: string;
|
|
542
|
+
n?: number;
|
|
543
|
+
/** Opaque pagination cursor returned by a previous list response. */
|
|
544
|
+
last?: string;
|
|
545
|
+
}
|
|
546
|
+
export const GetByTeamSlugByProjectSlugByRepositoryNameTagsListRequest =
|
|
547
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
548
|
+
S.Struct({
|
|
549
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
550
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
551
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
552
|
+
n: S.optional(S.Number.pipe(T.Query())),
|
|
553
|
+
last: S.optional(S.String.pipe(T.Query())),
|
|
554
|
+
}).pipe(
|
|
555
|
+
T.Http({
|
|
556
|
+
method: "GET",
|
|
557
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/tags/list",
|
|
558
|
+
code: 200,
|
|
559
|
+
}),
|
|
560
|
+
),
|
|
561
|
+
).annotate({
|
|
562
|
+
identifier: "GetByTeamSlugByProjectSlugByRepositoryNameTagsListRequest",
|
|
563
|
+
}) as any as S.Schema<GetByTeamSlugByProjectSlugByRepositoryNameTagsListRequest>;
|
|
564
|
+
|
|
565
|
+
export type GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponseTagsList =
|
|
566
|
+
Array<string>;
|
|
567
|
+
export const GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponseTagsList =
|
|
568
|
+
/*@__PURE__*/ S.Array(
|
|
569
|
+
S.String,
|
|
570
|
+
) as any as S.Schema<GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponseTagsList>;
|
|
571
|
+
|
|
572
|
+
export interface GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponse {
|
|
573
|
+
name: string;
|
|
574
|
+
tags: GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponseTagsList;
|
|
575
|
+
}
|
|
576
|
+
export const GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponse =
|
|
577
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
578
|
+
S.Struct({
|
|
579
|
+
name: S.String,
|
|
580
|
+
tags: GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponseTagsList,
|
|
581
|
+
}),
|
|
582
|
+
).annotate({
|
|
583
|
+
identifier: "GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponse",
|
|
584
|
+
}) as any as S.Schema<GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponse>;
|
|
585
|
+
|
|
586
|
+
export interface GetRepositoryRequest {
|
|
587
|
+
idOrName: string;
|
|
588
|
+
projectId: string;
|
|
589
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
590
|
+
teamId?: string;
|
|
591
|
+
/** The Team slug to perform the request on behalf of. */
|
|
592
|
+
slug?: string;
|
|
593
|
+
}
|
|
594
|
+
export const GetRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
595
|
+
S.Struct({
|
|
596
|
+
idOrName: S.String.pipe(T.Label()),
|
|
597
|
+
projectId: S.String.pipe(T.Query()),
|
|
598
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
599
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
600
|
+
}).pipe(
|
|
601
|
+
T.Http({ method: "GET", uri: "/v1/vcr/repository/{idOrName}", code: 200 }),
|
|
602
|
+
),
|
|
603
|
+
).annotate({
|
|
604
|
+
identifier: "GetRepositoryRequest",
|
|
605
|
+
}) as any as S.Schema<GetRepositoryRequest>;
|
|
606
|
+
|
|
607
|
+
export interface GetRepositoryResponse {
|
|
608
|
+
repository: VcrRepository;
|
|
609
|
+
}
|
|
610
|
+
export const GetRepositoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
611
|
+
S.Struct({
|
|
612
|
+
repository: VcrRepository,
|
|
613
|
+
}),
|
|
614
|
+
).annotate({
|
|
615
|
+
identifier: "GetRepositoryResponse",
|
|
616
|
+
}) as any as S.Schema<GetRepositoryResponse>;
|
|
617
|
+
|
|
618
|
+
export interface GetRepositoryImageRequest {
|
|
619
|
+
idOrName: string;
|
|
620
|
+
/** The internal image id (`image_...`) or the image manifest digest (`sha256:...`). */
|
|
621
|
+
imageIdOrDigest: string;
|
|
622
|
+
projectId: string;
|
|
623
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
624
|
+
teamId?: string;
|
|
625
|
+
/** The Team slug to perform the request on behalf of. */
|
|
626
|
+
slug?: string;
|
|
627
|
+
}
|
|
628
|
+
export const GetRepositoryImageRequest = /*@__PURE__*/ S.suspend(() =>
|
|
629
|
+
S.Struct({
|
|
630
|
+
idOrName: S.String.pipe(T.Label()),
|
|
631
|
+
imageIdOrDigest: S.String.pipe(T.Label()),
|
|
632
|
+
projectId: S.String.pipe(T.Query()),
|
|
633
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
634
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
635
|
+
}).pipe(
|
|
636
|
+
T.Http({
|
|
637
|
+
method: "GET",
|
|
638
|
+
uri: "/v1/vcr/repository/{idOrName}/images/{imageIdOrDigest}",
|
|
639
|
+
code: 200,
|
|
640
|
+
}),
|
|
641
|
+
),
|
|
642
|
+
).annotate({
|
|
643
|
+
identifier: "GetRepositoryImageRequest",
|
|
644
|
+
}) as any as S.Schema<GetRepositoryImageRequest>;
|
|
645
|
+
|
|
646
|
+
/** Docker/OCI build instruction associated with an image layer. */
|
|
647
|
+
export type VcrImageLayerCase0Operation =
|
|
648
|
+
| "ADD"
|
|
649
|
+
| "ARG"
|
|
650
|
+
| "CMD"
|
|
651
|
+
| "COPY"
|
|
652
|
+
| "ENTRYPOINT"
|
|
653
|
+
| "ENV"
|
|
654
|
+
| "EXPOSE"
|
|
655
|
+
| "FROM"
|
|
656
|
+
| "HEALTHCHECK"
|
|
657
|
+
| "LABEL"
|
|
658
|
+
| "ONBUILD"
|
|
659
|
+
| "RUN"
|
|
660
|
+
| "SHELL"
|
|
661
|
+
| "STOPSIGNAL"
|
|
662
|
+
| "UNKNOWN"
|
|
663
|
+
| "USER"
|
|
664
|
+
| "VOLUME"
|
|
665
|
+
| "WORKDIR";
|
|
666
|
+
export const VcrImageLayerCase0Operation = /*@__PURE__*/ S.String;
|
|
667
|
+
|
|
668
|
+
export type VcrImageLayerCase0Type = "FROM";
|
|
669
|
+
export const VcrImageLayerCase0Type = /*@__PURE__*/ S.String;
|
|
670
|
+
|
|
671
|
+
export type VcrImageLayerCase0CollapsedDigestsList = Array<string>;
|
|
672
|
+
export const VcrImageLayerCase0CollapsedDigestsList = /*@__PURE__*/ S.Array(
|
|
673
|
+
S.String,
|
|
674
|
+
) as any as S.Schema<VcrImageLayerCase0CollapsedDigestsList>;
|
|
675
|
+
|
|
676
|
+
export interface VcrImageLayerCase0 {
|
|
677
|
+
createdBy: string | null;
|
|
678
|
+
digest: string | null;
|
|
679
|
+
/** Docker/OCI build instruction associated with an image layer. */
|
|
680
|
+
operation: VcrImageLayerCase0Operation;
|
|
681
|
+
sizeBytes: number | null;
|
|
682
|
+
type: VcrImageLayerCase0Type;
|
|
683
|
+
baseImage: string | null;
|
|
684
|
+
collapsedDigests: VcrImageLayerCase0CollapsedDigestsList;
|
|
685
|
+
collapsedLayerCount: number;
|
|
686
|
+
}
|
|
687
|
+
export const VcrImageLayerCase0 = /*@__PURE__*/ S.suspend(() =>
|
|
688
|
+
S.Struct({
|
|
689
|
+
createdBy: S.NullOr(S.String),
|
|
690
|
+
digest: S.NullOr(S.String),
|
|
691
|
+
operation: VcrImageLayerCase0Operation,
|
|
692
|
+
sizeBytes: S.NullOr(S.Number),
|
|
693
|
+
type: VcrImageLayerCase0Type,
|
|
694
|
+
baseImage: S.NullOr(S.String),
|
|
695
|
+
collapsedDigests: VcrImageLayerCase0CollapsedDigestsList,
|
|
696
|
+
collapsedLayerCount: S.Number,
|
|
697
|
+
}),
|
|
698
|
+
).annotate({
|
|
699
|
+
identifier: "VcrImageLayerCase0",
|
|
700
|
+
}) as any as S.Schema<VcrImageLayerCase0>;
|
|
701
|
+
|
|
702
|
+
/** Docker/OCI build instruction associated with an image layer. */
|
|
703
|
+
export type VcrImageLayerCase1Operation =
|
|
704
|
+
| "ADD"
|
|
705
|
+
| "ARG"
|
|
706
|
+
| "CMD"
|
|
707
|
+
| "COPY"
|
|
708
|
+
| "ENTRYPOINT"
|
|
709
|
+
| "ENV"
|
|
710
|
+
| "EXPOSE"
|
|
711
|
+
| "FROM"
|
|
712
|
+
| "HEALTHCHECK"
|
|
713
|
+
| "LABEL"
|
|
714
|
+
| "ONBUILD"
|
|
715
|
+
| "RUN"
|
|
716
|
+
| "SHELL"
|
|
717
|
+
| "STOPSIGNAL"
|
|
718
|
+
| "UNKNOWN"
|
|
719
|
+
| "USER"
|
|
720
|
+
| "VOLUME"
|
|
721
|
+
| "WORKDIR";
|
|
722
|
+
export const VcrImageLayerCase1Operation = /*@__PURE__*/ S.String;
|
|
723
|
+
|
|
724
|
+
export type VcrImageLayerCase1Type = "RUN";
|
|
725
|
+
export const VcrImageLayerCase1Type = /*@__PURE__*/ S.String;
|
|
726
|
+
|
|
727
|
+
export interface VcrImageLayerCase1 {
|
|
728
|
+
createdBy: string | null;
|
|
729
|
+
digest: string | null;
|
|
730
|
+
/** Docker/OCI build instruction associated with an image layer. */
|
|
731
|
+
operation: VcrImageLayerCase1Operation;
|
|
732
|
+
sizeBytes: number | null;
|
|
733
|
+
type: VcrImageLayerCase1Type;
|
|
734
|
+
command: string | null;
|
|
735
|
+
}
|
|
736
|
+
export const VcrImageLayerCase1 = /*@__PURE__*/ S.suspend(() =>
|
|
737
|
+
S.Struct({
|
|
738
|
+
createdBy: S.NullOr(S.String),
|
|
739
|
+
digest: S.NullOr(S.String),
|
|
740
|
+
operation: VcrImageLayerCase1Operation,
|
|
741
|
+
sizeBytes: S.NullOr(S.Number),
|
|
742
|
+
type: VcrImageLayerCase1Type,
|
|
743
|
+
command: S.NullOr(S.String),
|
|
744
|
+
}),
|
|
745
|
+
).annotate({
|
|
746
|
+
identifier: "VcrImageLayerCase1",
|
|
747
|
+
}) as any as S.Schema<VcrImageLayerCase1>;
|
|
748
|
+
|
|
749
|
+
/** Docker/OCI build instruction associated with an image layer. */
|
|
750
|
+
export type VcrImageLayerCase2Operation =
|
|
751
|
+
| "ADD"
|
|
752
|
+
| "ARG"
|
|
753
|
+
| "CMD"
|
|
754
|
+
| "COPY"
|
|
755
|
+
| "ENTRYPOINT"
|
|
756
|
+
| "ENV"
|
|
757
|
+
| "EXPOSE"
|
|
758
|
+
| "FROM"
|
|
759
|
+
| "HEALTHCHECK"
|
|
760
|
+
| "LABEL"
|
|
761
|
+
| "ONBUILD"
|
|
762
|
+
| "RUN"
|
|
763
|
+
| "SHELL"
|
|
764
|
+
| "STOPSIGNAL"
|
|
765
|
+
| "UNKNOWN"
|
|
766
|
+
| "USER"
|
|
767
|
+
| "VOLUME"
|
|
768
|
+
| "WORKDIR";
|
|
769
|
+
export const VcrImageLayerCase2Operation = /*@__PURE__*/ S.String;
|
|
770
|
+
|
|
771
|
+
export type VcrImageLayerCase2Type = "ENV";
|
|
772
|
+
export const VcrImageLayerCase2Type = /*@__PURE__*/ S.String;
|
|
773
|
+
|
|
774
|
+
export interface VcrImageLayerCase2 {
|
|
775
|
+
createdBy: string | null;
|
|
776
|
+
digest: string | null;
|
|
777
|
+
/** Docker/OCI build instruction associated with an image layer. */
|
|
778
|
+
operation: VcrImageLayerCase2Operation;
|
|
779
|
+
sizeBytes: number | null;
|
|
780
|
+
type: VcrImageLayerCase2Type;
|
|
781
|
+
env: string | null;
|
|
782
|
+
}
|
|
783
|
+
export const VcrImageLayerCase2 = /*@__PURE__*/ S.suspend(() =>
|
|
784
|
+
S.Struct({
|
|
785
|
+
createdBy: S.NullOr(S.String),
|
|
786
|
+
digest: S.NullOr(S.String),
|
|
787
|
+
operation: VcrImageLayerCase2Operation,
|
|
788
|
+
sizeBytes: S.NullOr(S.Number),
|
|
789
|
+
type: VcrImageLayerCase2Type,
|
|
790
|
+
env: S.NullOr(S.String),
|
|
791
|
+
}),
|
|
792
|
+
).annotate({
|
|
793
|
+
identifier: "VcrImageLayerCase2",
|
|
794
|
+
}) as any as S.Schema<VcrImageLayerCase2>;
|
|
795
|
+
|
|
796
|
+
/** Docker/OCI build instruction associated with an image layer. */
|
|
797
|
+
export type VcrImageLayerCase3Operation =
|
|
798
|
+
| "ADD"
|
|
799
|
+
| "ARG"
|
|
800
|
+
| "CMD"
|
|
801
|
+
| "COPY"
|
|
802
|
+
| "ENTRYPOINT"
|
|
803
|
+
| "ENV"
|
|
804
|
+
| "EXPOSE"
|
|
805
|
+
| "FROM"
|
|
806
|
+
| "HEALTHCHECK"
|
|
807
|
+
| "LABEL"
|
|
808
|
+
| "ONBUILD"
|
|
809
|
+
| "RUN"
|
|
810
|
+
| "SHELL"
|
|
811
|
+
| "STOPSIGNAL"
|
|
812
|
+
| "UNKNOWN"
|
|
813
|
+
| "USER"
|
|
814
|
+
| "VOLUME"
|
|
815
|
+
| "WORKDIR";
|
|
816
|
+
export const VcrImageLayerCase3Operation = /*@__PURE__*/ S.String;
|
|
817
|
+
|
|
818
|
+
export type VcrImageLayerCase3Type =
|
|
819
|
+
| "ADD"
|
|
820
|
+
| "ARG"
|
|
821
|
+
| "CMD"
|
|
822
|
+
| "COPY"
|
|
823
|
+
| "ENTRYPOINT"
|
|
824
|
+
| "EXPOSE"
|
|
825
|
+
| "HEALTHCHECK"
|
|
826
|
+
| "LABEL"
|
|
827
|
+
| "ONBUILD"
|
|
828
|
+
| "SHELL"
|
|
829
|
+
| "STOPSIGNAL"
|
|
830
|
+
| "UNKNOWN"
|
|
831
|
+
| "USER"
|
|
832
|
+
| "VOLUME"
|
|
833
|
+
| "WORKDIR";
|
|
834
|
+
export const VcrImageLayerCase3Type = /*@__PURE__*/ S.String;
|
|
835
|
+
|
|
836
|
+
export interface VcrImageLayerCase3 {
|
|
837
|
+
createdBy: string | null;
|
|
838
|
+
digest: string | null;
|
|
839
|
+
/** Docker/OCI build instruction associated with an image layer. */
|
|
840
|
+
operation: VcrImageLayerCase3Operation;
|
|
841
|
+
sizeBytes: number | null;
|
|
842
|
+
type: VcrImageLayerCase3Type;
|
|
843
|
+
value: string | null;
|
|
844
|
+
}
|
|
845
|
+
export const VcrImageLayerCase3 = /*@__PURE__*/ S.suspend(() =>
|
|
846
|
+
S.Struct({
|
|
847
|
+
createdBy: S.NullOr(S.String),
|
|
848
|
+
digest: S.NullOr(S.String),
|
|
849
|
+
operation: VcrImageLayerCase3Operation,
|
|
850
|
+
sizeBytes: S.NullOr(S.Number),
|
|
851
|
+
type: VcrImageLayerCase3Type,
|
|
852
|
+
value: S.NullOr(S.String),
|
|
853
|
+
}),
|
|
854
|
+
).annotate({
|
|
855
|
+
identifier: "VcrImageLayerCase3",
|
|
856
|
+
}) as any as S.Schema<VcrImageLayerCase3>;
|
|
857
|
+
|
|
858
|
+
export type VcrImageLayer =
|
|
859
|
+
| VcrImageLayerCase0
|
|
860
|
+
| VcrImageLayerCase1
|
|
861
|
+
| VcrImageLayerCase2
|
|
862
|
+
| VcrImageLayerCase3;
|
|
863
|
+
export const VcrImageLayer =
|
|
864
|
+
/*@__PURE__*/ S.Unknown as any as S.Schema<VcrImageLayer>;
|
|
865
|
+
|
|
866
|
+
export type VcrImageDetailLayersList = Array<VcrImageLayer>;
|
|
867
|
+
export const VcrImageDetailLayersList = /*@__PURE__*/ S.Array(
|
|
868
|
+
VcrImageLayer,
|
|
869
|
+
) as any as S.Schema<VcrImageDetailLayersList>;
|
|
870
|
+
|
|
871
|
+
/** VHS-readiness status, or `null` for a multi-platform index. */
|
|
872
|
+
export type VcrImageDetailStatus = "preparing" | "ready" | "unoptimized";
|
|
873
|
+
export const VcrImageDetailStatus = /*@__PURE__*/ S.String;
|
|
874
|
+
|
|
875
|
+
/** Tags pointing at this image's manifest. */
|
|
876
|
+
export type VcrImageDetailTagsList = Array<string>;
|
|
877
|
+
export const VcrImageDetailTagsList = /*@__PURE__*/ S.Array(
|
|
878
|
+
S.String,
|
|
879
|
+
) as any as S.Schema<VcrImageDetailTagsList>;
|
|
880
|
+
|
|
881
|
+
/** Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. */
|
|
882
|
+
export type VcrImageDetailKind = "attestation" | "index" | "manifest";
|
|
883
|
+
export const VcrImageDetailKind = /*@__PURE__*/ S.String;
|
|
884
|
+
|
|
885
|
+
export type VcrImageDetailVhsConfigCommandList = Array<string>;
|
|
886
|
+
export const VcrImageDetailVhsConfigCommandList = /*@__PURE__*/ S.Array(
|
|
887
|
+
S.String,
|
|
888
|
+
) as any as S.Schema<VcrImageDetailVhsConfigCommandList>;
|
|
889
|
+
|
|
890
|
+
export type VcrImageDetailVhsConfigEntrypointList = Array<string>;
|
|
891
|
+
export const VcrImageDetailVhsConfigEntrypointList = /*@__PURE__*/ S.Array(
|
|
892
|
+
S.String,
|
|
893
|
+
) as any as S.Schema<VcrImageDetailVhsConfigEntrypointList>;
|
|
894
|
+
|
|
895
|
+
/** Optional VHS drive configuration captured for an optimized image. */
|
|
896
|
+
export interface VcrImageDetailVhsConfig {
|
|
897
|
+
command?: VcrImageDetailVhsConfigCommandList;
|
|
898
|
+
entrypoint?: VcrImageDetailVhsConfigEntrypointList;
|
|
899
|
+
workingDir?: string;
|
|
900
|
+
}
|
|
901
|
+
export const VcrImageDetailVhsConfig = /*@__PURE__*/ S.suspend(() =>
|
|
902
|
+
S.Struct({
|
|
903
|
+
command: S.optional(VcrImageDetailVhsConfigCommandList),
|
|
904
|
+
entrypoint: S.optional(VcrImageDetailVhsConfigEntrypointList),
|
|
905
|
+
workingDir: S.optional(S.String),
|
|
906
|
+
}),
|
|
907
|
+
).annotate({
|
|
908
|
+
identifier: "VcrImageDetailVhsConfig",
|
|
909
|
+
}) as any as S.Schema<VcrImageDetailVhsConfig>;
|
|
910
|
+
|
|
911
|
+
/** Converted VHS drive data, present once an image has been optimized for sandbox launch. */
|
|
912
|
+
export interface VcrImageDetailVhs {
|
|
913
|
+
path: string;
|
|
914
|
+
digest: string;
|
|
915
|
+
/** Optional VHS drive configuration captured for an optimized image. */
|
|
916
|
+
config?: VcrImageDetailVhsConfig;
|
|
917
|
+
}
|
|
918
|
+
export const VcrImageDetailVhs = /*@__PURE__*/ S.suspend(() =>
|
|
919
|
+
S.Struct({
|
|
920
|
+
path: S.String,
|
|
921
|
+
digest: S.String,
|
|
922
|
+
config: S.optional(VcrImageDetailVhsConfig),
|
|
923
|
+
}),
|
|
924
|
+
).annotate({
|
|
925
|
+
identifier: "VcrImageDetailVhs",
|
|
926
|
+
}) as any as S.Schema<VcrImageDetailVhs>;
|
|
927
|
+
|
|
928
|
+
/** A single image with its tags, status and resolved Dockerfile layer history. */
|
|
929
|
+
export interface VcrImageDetail {
|
|
930
|
+
layers: VcrImageDetailLayersList;
|
|
931
|
+
/** VHS-readiness status, or `null` for a multi-platform index. */
|
|
932
|
+
status: VcrImageDetailStatus | null;
|
|
933
|
+
/** Tags pointing at this image's manifest. */
|
|
934
|
+
tags: VcrImageDetailTagsList;
|
|
935
|
+
/** Internal identifier of the image. */
|
|
936
|
+
id: string;
|
|
937
|
+
/** Identifier of the repository the image belongs to. */
|
|
938
|
+
repositoryId: string;
|
|
939
|
+
/** SHA-256 digest of the image manifest. */
|
|
940
|
+
manifestDigest: string;
|
|
941
|
+
/** Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. */
|
|
942
|
+
kind: VcrImageDetailKind;
|
|
943
|
+
/** Operating system the manifest targets. Only present for single-platform manifests. */
|
|
944
|
+
platform?: string;
|
|
945
|
+
/** CPU architecture the manifest targets. Only present for single-platform manifests. */
|
|
946
|
+
arch?: string;
|
|
947
|
+
/** Identifier of the actor that pushed the image. */
|
|
948
|
+
pushedBy?: string;
|
|
949
|
+
/** Total size in bytes of the image's resources (manifest, config and layer blobs) stored by the registry. */
|
|
950
|
+
sizeInBytes: number;
|
|
951
|
+
/** Converted VHS drive data, present once an image has been optimized for sandbox launch. */
|
|
952
|
+
vhs?: VcrImageDetailVhs;
|
|
953
|
+
/** ISO 8601 timestamp of when the image was created. */
|
|
954
|
+
createdAt: string;
|
|
955
|
+
}
|
|
956
|
+
export const VcrImageDetail = /*@__PURE__*/ S.suspend(() =>
|
|
957
|
+
S.Struct({
|
|
958
|
+
layers: VcrImageDetailLayersList,
|
|
959
|
+
status: S.NullOr(VcrImageDetailStatus),
|
|
960
|
+
tags: VcrImageDetailTagsList,
|
|
961
|
+
id: S.String,
|
|
962
|
+
repositoryId: S.String,
|
|
963
|
+
manifestDigest: S.String,
|
|
964
|
+
kind: VcrImageDetailKind,
|
|
965
|
+
platform: S.optional(S.String),
|
|
966
|
+
arch: S.optional(S.String),
|
|
967
|
+
pushedBy: S.optional(S.String),
|
|
968
|
+
sizeInBytes: S.Number,
|
|
969
|
+
vhs: S.optional(VcrImageDetailVhs),
|
|
970
|
+
createdAt: S.String,
|
|
971
|
+
}),
|
|
972
|
+
).annotate({ identifier: "VcrImageDetail" }) as any as S.Schema<VcrImageDetail>;
|
|
973
|
+
|
|
974
|
+
export interface GetRepositoryImageResponse {
|
|
975
|
+
image: VcrImageDetail;
|
|
976
|
+
}
|
|
977
|
+
export const GetRepositoryImageResponse = /*@__PURE__*/ S.suspend(() =>
|
|
978
|
+
S.Struct({
|
|
979
|
+
image: VcrImageDetail,
|
|
980
|
+
}),
|
|
981
|
+
).annotate({
|
|
982
|
+
identifier: "GetRepositoryImageResponse",
|
|
983
|
+
}) as any as S.Schema<GetRepositoryImageResponse>;
|
|
984
|
+
|
|
985
|
+
export interface GetRepositoryTagRequest {
|
|
986
|
+
idOrName: string;
|
|
987
|
+
tag: string;
|
|
988
|
+
projectId: string;
|
|
989
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
990
|
+
teamId?: string;
|
|
991
|
+
/** The Team slug to perform the request on behalf of. */
|
|
992
|
+
slug?: string;
|
|
993
|
+
}
|
|
994
|
+
export const GetRepositoryTagRequest = /*@__PURE__*/ S.suspend(() =>
|
|
995
|
+
S.Struct({
|
|
996
|
+
idOrName: S.String.pipe(T.Label()),
|
|
997
|
+
tag: S.String.pipe(T.Label()),
|
|
998
|
+
projectId: S.String.pipe(T.Query()),
|
|
999
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
1000
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
1001
|
+
}).pipe(
|
|
1002
|
+
T.Http({
|
|
1003
|
+
method: "GET",
|
|
1004
|
+
uri: "/v1/vcr/repository/{idOrName}/tags/{tag}",
|
|
1005
|
+
code: 200,
|
|
1006
|
+
}),
|
|
1007
|
+
),
|
|
1008
|
+
).annotate({
|
|
1009
|
+
identifier: "GetRepositoryTagRequest",
|
|
1010
|
+
}) as any as S.Schema<GetRepositoryTagRequest>;
|
|
1011
|
+
|
|
1012
|
+
/** Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. */
|
|
1013
|
+
export type VcrTagKind = "attestation" | "index" | "manifest";
|
|
1014
|
+
export const VcrTagKind = /*@__PURE__*/ S.String;
|
|
1015
|
+
|
|
1016
|
+
/** VHS-readiness status, or `null` for a multi-platform index. */
|
|
1017
|
+
export type VcrTagStatus = "preparing" | "ready" | "unoptimized";
|
|
1018
|
+
export const VcrTagStatus = /*@__PURE__*/ S.String;
|
|
1019
|
+
|
|
1020
|
+
/** A tag pointing at an image in a Vercel Container Registry repository, enriched with the backing image's metadata and VHS-readiness status. */
|
|
1021
|
+
export interface VcrTag {
|
|
1022
|
+
/** The tag name. */
|
|
1023
|
+
tag: string;
|
|
1024
|
+
/** SHA-256 digest of the image manifest the tag points at. */
|
|
1025
|
+
manifestDigest: string;
|
|
1026
|
+
/** Internal identifier of the image the tag points at. */
|
|
1027
|
+
imageId: string;
|
|
1028
|
+
/** Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. */
|
|
1029
|
+
kind: VcrTagKind;
|
|
1030
|
+
/** Operating system the manifest targets. Only present for single-platform manifests. */
|
|
1031
|
+
platform?: string;
|
|
1032
|
+
/** CPU architecture the manifest targets. Only present for single-platform manifests. */
|
|
1033
|
+
arch?: string;
|
|
1034
|
+
/** Identifier of the actor that pushed the image. */
|
|
1035
|
+
pushedBy?: string;
|
|
1036
|
+
/** VHS-readiness status, or `null` for a multi-platform index. */
|
|
1037
|
+
status: VcrTagStatus | null;
|
|
1038
|
+
/** Total size in bytes of the image's resources (manifest, config and layer blobs) stored by the registry. */
|
|
1039
|
+
sizeInBytes: number;
|
|
1040
|
+
/** ISO 8601 timestamp of when the tag was created. */
|
|
1041
|
+
createdAt: string;
|
|
1042
|
+
/** ISO 8601 timestamp of when the tag was last updated. */
|
|
1043
|
+
updatedAt: string;
|
|
1044
|
+
}
|
|
1045
|
+
export const VcrTag = /*@__PURE__*/ S.suspend(() =>
|
|
1046
|
+
S.Struct({
|
|
1047
|
+
tag: S.String,
|
|
1048
|
+
manifestDigest: S.String,
|
|
1049
|
+
imageId: S.String,
|
|
1050
|
+
kind: VcrTagKind,
|
|
1051
|
+
platform: S.optional(S.String),
|
|
1052
|
+
arch: S.optional(S.String),
|
|
1053
|
+
pushedBy: S.optional(S.String),
|
|
1054
|
+
status: S.NullOr(VcrTagStatus),
|
|
1055
|
+
sizeInBytes: S.Number,
|
|
1056
|
+
createdAt: S.String,
|
|
1057
|
+
updatedAt: S.String,
|
|
1058
|
+
}),
|
|
1059
|
+
).annotate({ identifier: "VcrTag" }) as any as S.Schema<VcrTag>;
|
|
1060
|
+
|
|
1061
|
+
export interface GetRepositoryTagResponse {
|
|
1062
|
+
tag: VcrTag;
|
|
1063
|
+
}
|
|
1064
|
+
export const GetRepositoryTagResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1065
|
+
S.Struct({
|
|
1066
|
+
tag: VcrTag,
|
|
1067
|
+
}),
|
|
1068
|
+
).annotate({
|
|
1069
|
+
identifier: "GetRepositoryTagResponse",
|
|
1070
|
+
}) as any as S.Schema<GetRepositoryTagResponse>;
|
|
1071
|
+
|
|
1072
|
+
export interface GetRootRequest {}
|
|
1073
|
+
export const GetRootRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1074
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v2/", code: 200 })),
|
|
1075
|
+
).annotate({ identifier: "GetRootRequest" }) as any as S.Schema<GetRootRequest>;
|
|
1076
|
+
|
|
1077
|
+
export type GetRootResponse = unknown;
|
|
1078
|
+
export const GetRootResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1079
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
1080
|
+
).annotate({
|
|
1081
|
+
identifier: "GetRootResponse",
|
|
1082
|
+
}) as any as S.Schema<GetRootResponse>;
|
|
1083
|
+
|
|
1084
|
+
export interface HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest {
|
|
1085
|
+
/** Single Docker repository team slug component. */
|
|
1086
|
+
teamSlug: string;
|
|
1087
|
+
/** Single Docker repository project slug component. */
|
|
1088
|
+
projectSlug: string;
|
|
1089
|
+
/** Single Docker repository name component. */
|
|
1090
|
+
repositoryName: string;
|
|
1091
|
+
/** Content-addressable digest (algorithm:hex). */
|
|
1092
|
+
digest: string;
|
|
1093
|
+
}
|
|
1094
|
+
export const HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest =
|
|
1095
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1096
|
+
S.Struct({
|
|
1097
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
1098
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
1099
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
1100
|
+
digest: S.String.pipe(T.Label()),
|
|
1101
|
+
}).pipe(
|
|
1102
|
+
T.Http({
|
|
1103
|
+
method: "HEAD",
|
|
1104
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/{digest}",
|
|
1105
|
+
code: 200,
|
|
1106
|
+
}),
|
|
1107
|
+
),
|
|
1108
|
+
).annotate({
|
|
1109
|
+
identifier:
|
|
1110
|
+
"HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest",
|
|
1111
|
+
}) as any as S.Schema<HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest>;
|
|
1112
|
+
|
|
1113
|
+
export interface HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse {}
|
|
1114
|
+
export const HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse =
|
|
1115
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1116
|
+
identifier:
|
|
1117
|
+
"HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse",
|
|
1118
|
+
}) as any as S.Schema<HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse>;
|
|
1119
|
+
|
|
1120
|
+
export interface HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest {
|
|
1121
|
+
/** Single Docker repository team slug component. */
|
|
1122
|
+
teamSlug: string;
|
|
1123
|
+
/** Single Docker repository project slug component. */
|
|
1124
|
+
projectSlug: string;
|
|
1125
|
+
/** Single Docker repository name component. */
|
|
1126
|
+
repositoryName: string;
|
|
1127
|
+
/** Manifest reference: a tag or digest. */
|
|
1128
|
+
reference: string;
|
|
1129
|
+
}
|
|
1130
|
+
export const HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest =
|
|
1131
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1132
|
+
S.Struct({
|
|
1133
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
1134
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
1135
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
1136
|
+
reference: S.String.pipe(T.Label()),
|
|
1137
|
+
}).pipe(
|
|
1138
|
+
T.Http({
|
|
1139
|
+
method: "HEAD",
|
|
1140
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}",
|
|
1141
|
+
code: 200,
|
|
1142
|
+
}),
|
|
1143
|
+
),
|
|
1144
|
+
).annotate({
|
|
1145
|
+
identifier:
|
|
1146
|
+
"HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest",
|
|
1147
|
+
}) as any as S.Schema<HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest>;
|
|
1148
|
+
|
|
1149
|
+
export interface HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse {}
|
|
1150
|
+
export const HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse =
|
|
1151
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1152
|
+
identifier:
|
|
1153
|
+
"HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse",
|
|
1154
|
+
}) as any as S.Schema<HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse>;
|
|
1155
|
+
|
|
1156
|
+
export interface ListRepositoriesRequest {
|
|
1157
|
+
projectId: string;
|
|
1158
|
+
limit?: number;
|
|
1159
|
+
/** Opaque pagination cursor returned by a previous list response. */
|
|
1160
|
+
cursor?: string;
|
|
1161
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
1162
|
+
teamId?: string;
|
|
1163
|
+
/** The Team slug to perform the request on behalf of. */
|
|
1164
|
+
slug?: string;
|
|
1165
|
+
}
|
|
1166
|
+
export const ListRepositoriesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1167
|
+
S.Struct({
|
|
1168
|
+
projectId: S.String.pipe(T.Query()),
|
|
1169
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1170
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1171
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
1172
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
1173
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/vcr/repository", code: 200 })),
|
|
1174
|
+
).annotate({
|
|
1175
|
+
identifier: "ListRepositoriesRequest",
|
|
1176
|
+
}) as any as S.Schema<ListRepositoriesRequest>;
|
|
1177
|
+
|
|
1178
|
+
export type VcrRepositoryListRepositoriesList = Array<VcrRepository>;
|
|
1179
|
+
export const VcrRepositoryListRepositoriesList = /*@__PURE__*/ S.Array(
|
|
1180
|
+
VcrRepository,
|
|
1181
|
+
) as any as S.Schema<VcrRepositoryListRepositoriesList>;
|
|
1182
|
+
|
|
1183
|
+
/** A paginated list of Vercel Container Registry repositories. */
|
|
1184
|
+
export interface VcrRepositoryList {
|
|
1185
|
+
repositories: VcrRepositoryListRepositoriesList;
|
|
1186
|
+
/** Cursor to fetch the next page of results, when more are available. */
|
|
1187
|
+
nextCursor?: string;
|
|
1188
|
+
}
|
|
1189
|
+
export const VcrRepositoryList = /*@__PURE__*/ S.suspend(() =>
|
|
1190
|
+
S.Struct({
|
|
1191
|
+
repositories: VcrRepositoryListRepositoriesList,
|
|
1192
|
+
nextCursor: S.optional(S.String),
|
|
1193
|
+
}),
|
|
1194
|
+
).annotate({
|
|
1195
|
+
identifier: "VcrRepositoryList",
|
|
1196
|
+
}) as any as S.Schema<VcrRepositoryList>;
|
|
1197
|
+
|
|
1198
|
+
export interface ListRepositoryImagesRequest {
|
|
1199
|
+
idOrName: string;
|
|
1200
|
+
projectId: string;
|
|
1201
|
+
limit?: number;
|
|
1202
|
+
/** Opaque pagination cursor returned by a previous list response. */
|
|
1203
|
+
cursor?: string;
|
|
1204
|
+
untagged?: boolean;
|
|
1205
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
1206
|
+
teamId?: string;
|
|
1207
|
+
/** The Team slug to perform the request on behalf of. */
|
|
1208
|
+
slug?: string;
|
|
1209
|
+
}
|
|
1210
|
+
export const ListRepositoryImagesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1211
|
+
S.Struct({
|
|
1212
|
+
idOrName: S.String.pipe(T.Label()),
|
|
1213
|
+
projectId: S.String.pipe(T.Query()),
|
|
1214
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1215
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1216
|
+
untagged: S.optional(S.Boolean.pipe(T.Query())),
|
|
1217
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
1218
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
1219
|
+
}).pipe(
|
|
1220
|
+
T.Http({
|
|
1221
|
+
method: "GET",
|
|
1222
|
+
uri: "/v1/vcr/repository/{idOrName}/images",
|
|
1223
|
+
code: 200,
|
|
1224
|
+
}),
|
|
1225
|
+
),
|
|
1226
|
+
).annotate({
|
|
1227
|
+
identifier: "ListRepositoryImagesRequest",
|
|
1228
|
+
}) as any as S.Schema<ListRepositoryImagesRequest>;
|
|
1229
|
+
|
|
1230
|
+
/** VHS-readiness status, or `null` for a multi-platform index. */
|
|
1231
|
+
export type VcrImageListItemStatus = "preparing" | "ready" | "unoptimized";
|
|
1232
|
+
export const VcrImageListItemStatus = /*@__PURE__*/ S.String;
|
|
1233
|
+
|
|
1234
|
+
/** Tags pointing at this image's manifest. */
|
|
1235
|
+
export type VcrImageListItemTagsList = Array<string>;
|
|
1236
|
+
export const VcrImageListItemTagsList = /*@__PURE__*/ S.Array(
|
|
1237
|
+
S.String,
|
|
1238
|
+
) as any as S.Schema<VcrImageListItemTagsList>;
|
|
1239
|
+
|
|
1240
|
+
/** Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. */
|
|
1241
|
+
export type VcrImageListItemKind = "attestation" | "index" | "manifest";
|
|
1242
|
+
export const VcrImageListItemKind = /*@__PURE__*/ S.String;
|
|
1243
|
+
|
|
1244
|
+
export type VcrImageListItemVhsConfigCommandList = Array<string>;
|
|
1245
|
+
export const VcrImageListItemVhsConfigCommandList = /*@__PURE__*/ S.Array(
|
|
1246
|
+
S.String,
|
|
1247
|
+
) as any as S.Schema<VcrImageListItemVhsConfigCommandList>;
|
|
1248
|
+
|
|
1249
|
+
export type VcrImageListItemVhsConfigEntrypointList = Array<string>;
|
|
1250
|
+
export const VcrImageListItemVhsConfigEntrypointList = /*@__PURE__*/ S.Array(
|
|
1251
|
+
S.String,
|
|
1252
|
+
) as any as S.Schema<VcrImageListItemVhsConfigEntrypointList>;
|
|
1253
|
+
|
|
1254
|
+
/** Optional VHS drive configuration captured for an optimized image. */
|
|
1255
|
+
export interface VcrImageListItemVhsConfig {
|
|
1256
|
+
command?: VcrImageListItemVhsConfigCommandList;
|
|
1257
|
+
entrypoint?: VcrImageListItemVhsConfigEntrypointList;
|
|
1258
|
+
workingDir?: string;
|
|
1259
|
+
}
|
|
1260
|
+
export const VcrImageListItemVhsConfig = /*@__PURE__*/ S.suspend(() =>
|
|
1261
|
+
S.Struct({
|
|
1262
|
+
command: S.optional(VcrImageListItemVhsConfigCommandList),
|
|
1263
|
+
entrypoint: S.optional(VcrImageListItemVhsConfigEntrypointList),
|
|
1264
|
+
workingDir: S.optional(S.String),
|
|
1265
|
+
}),
|
|
1266
|
+
).annotate({
|
|
1267
|
+
identifier: "VcrImageListItemVhsConfig",
|
|
1268
|
+
}) as any as S.Schema<VcrImageListItemVhsConfig>;
|
|
1269
|
+
|
|
1270
|
+
/** Converted VHS drive data, present once an image has been optimized for sandbox launch. */
|
|
1271
|
+
export interface VcrImageListItemVhs {
|
|
1272
|
+
path: string;
|
|
1273
|
+
digest: string;
|
|
1274
|
+
/** Optional VHS drive configuration captured for an optimized image. */
|
|
1275
|
+
config?: VcrImageListItemVhsConfig;
|
|
1276
|
+
}
|
|
1277
|
+
export const VcrImageListItemVhs = /*@__PURE__*/ S.suspend(() =>
|
|
1278
|
+
S.Struct({
|
|
1279
|
+
path: S.String,
|
|
1280
|
+
digest: S.String,
|
|
1281
|
+
config: S.optional(VcrImageListItemVhsConfig),
|
|
1282
|
+
}),
|
|
1283
|
+
).annotate({
|
|
1284
|
+
identifier: "VcrImageListItemVhs",
|
|
1285
|
+
}) as any as S.Schema<VcrImageListItemVhs>;
|
|
1286
|
+
|
|
1287
|
+
/** An image enriched with its tags and VHS-readiness status, as returned when listing a repository's images. */
|
|
1288
|
+
export interface VcrImageListItem {
|
|
1289
|
+
/** VHS-readiness status, or `null` for a multi-platform index. */
|
|
1290
|
+
status: VcrImageListItemStatus | null;
|
|
1291
|
+
/** Tags pointing at this image's manifest. */
|
|
1292
|
+
tags: VcrImageListItemTagsList;
|
|
1293
|
+
/** Internal identifier of the image. */
|
|
1294
|
+
id: string;
|
|
1295
|
+
/** Identifier of the repository the image belongs to. */
|
|
1296
|
+
repositoryId: string;
|
|
1297
|
+
/** SHA-256 digest of the image manifest. */
|
|
1298
|
+
manifestDigest: string;
|
|
1299
|
+
/** Whether the manifest is a multi-platform image index, a single-platform image manifest or an attestation. */
|
|
1300
|
+
kind: VcrImageListItemKind;
|
|
1301
|
+
/** Operating system the manifest targets. Only present for single-platform manifests. */
|
|
1302
|
+
platform?: string;
|
|
1303
|
+
/** CPU architecture the manifest targets. Only present for single-platform manifests. */
|
|
1304
|
+
arch?: string;
|
|
1305
|
+
/** Identifier of the actor that pushed the image. */
|
|
1306
|
+
pushedBy?: string;
|
|
1307
|
+
/** Total size in bytes of the image's resources (manifest, config and layer blobs) stored by the registry. */
|
|
1308
|
+
sizeInBytes: number;
|
|
1309
|
+
/** Converted VHS drive data, present once an image has been optimized for sandbox launch. */
|
|
1310
|
+
vhs?: VcrImageListItemVhs;
|
|
1311
|
+
/** ISO 8601 timestamp of when the image was created. */
|
|
1312
|
+
createdAt: string;
|
|
1313
|
+
}
|
|
1314
|
+
export const VcrImageListItem = /*@__PURE__*/ S.suspend(() =>
|
|
1315
|
+
S.Struct({
|
|
1316
|
+
status: S.NullOr(VcrImageListItemStatus),
|
|
1317
|
+
tags: VcrImageListItemTagsList,
|
|
1318
|
+
id: S.String,
|
|
1319
|
+
repositoryId: S.String,
|
|
1320
|
+
manifestDigest: S.String,
|
|
1321
|
+
kind: VcrImageListItemKind,
|
|
1322
|
+
platform: S.optional(S.String),
|
|
1323
|
+
arch: S.optional(S.String),
|
|
1324
|
+
pushedBy: S.optional(S.String),
|
|
1325
|
+
sizeInBytes: S.Number,
|
|
1326
|
+
vhs: S.optional(VcrImageListItemVhs),
|
|
1327
|
+
createdAt: S.String,
|
|
1328
|
+
}),
|
|
1329
|
+
).annotate({
|
|
1330
|
+
identifier: "VcrImageListItem",
|
|
1331
|
+
}) as any as S.Schema<VcrImageListItem>;
|
|
1332
|
+
|
|
1333
|
+
export type VcrImageListImagesList = Array<VcrImageListItem>;
|
|
1334
|
+
export const VcrImageListImagesList = /*@__PURE__*/ S.Array(
|
|
1335
|
+
VcrImageListItem,
|
|
1336
|
+
) as any as S.Schema<VcrImageListImagesList>;
|
|
1337
|
+
|
|
1338
|
+
/** A paginated list of images for a repository. */
|
|
1339
|
+
export interface VcrImageList {
|
|
1340
|
+
images: VcrImageListImagesList;
|
|
1341
|
+
/** Cursor to fetch the next page of results, when more are available. */
|
|
1342
|
+
nextCursor?: string;
|
|
1343
|
+
}
|
|
1344
|
+
export const VcrImageList = /*@__PURE__*/ S.suspend(() =>
|
|
1345
|
+
S.Struct({
|
|
1346
|
+
images: VcrImageListImagesList,
|
|
1347
|
+
nextCursor: S.optional(S.String),
|
|
1348
|
+
}),
|
|
1349
|
+
).annotate({ identifier: "VcrImageList" }) as any as S.Schema<VcrImageList>;
|
|
1350
|
+
|
|
1351
|
+
export interface ListRepositoryPermissionsRequest {
|
|
1352
|
+
idOrName: string;
|
|
1353
|
+
projectId: string;
|
|
1354
|
+
limit?: number;
|
|
1355
|
+
/** Opaque pagination cursor returned by a previous list response. */
|
|
1356
|
+
cursor?: string;
|
|
1357
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
1358
|
+
teamId?: string;
|
|
1359
|
+
/** The Team slug to perform the request on behalf of. */
|
|
1360
|
+
slug?: string;
|
|
1361
|
+
}
|
|
1362
|
+
export const ListRepositoryPermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1363
|
+
S.Struct({
|
|
1364
|
+
idOrName: S.String.pipe(T.Label()),
|
|
1365
|
+
projectId: S.String.pipe(T.Query()),
|
|
1366
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1367
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1368
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
1369
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
1370
|
+
}).pipe(
|
|
1371
|
+
T.Http({
|
|
1372
|
+
method: "GET",
|
|
1373
|
+
uri: "/v1/vcr/repository/{idOrName}/permissions",
|
|
1374
|
+
code: 200,
|
|
1375
|
+
}),
|
|
1376
|
+
),
|
|
1377
|
+
).annotate({
|
|
1378
|
+
identifier: "ListRepositoryPermissionsRequest",
|
|
1379
|
+
}) as any as S.Schema<ListRepositoryPermissionsRequest>;
|
|
1380
|
+
|
|
1381
|
+
export type VcrRepositoryPermissionListPermissionsList =
|
|
1382
|
+
Array<VcrRepositoryPermission>;
|
|
1383
|
+
export const VcrRepositoryPermissionListPermissionsList = /*@__PURE__*/ S.Array(
|
|
1384
|
+
VcrRepositoryPermission,
|
|
1385
|
+
) as any as S.Schema<VcrRepositoryPermissionListPermissionsList>;
|
|
1386
|
+
|
|
1387
|
+
/** A paginated list of Vercel Container Registry repository permissions. */
|
|
1388
|
+
export interface VcrRepositoryPermissionList {
|
|
1389
|
+
permissions: VcrRepositoryPermissionListPermissionsList;
|
|
1390
|
+
/** Cursor to fetch the next page of results, when more are available. */
|
|
1391
|
+
nextCursor?: string;
|
|
1392
|
+
}
|
|
1393
|
+
export const VcrRepositoryPermissionList = /*@__PURE__*/ S.suspend(() =>
|
|
1394
|
+
S.Struct({
|
|
1395
|
+
permissions: VcrRepositoryPermissionListPermissionsList,
|
|
1396
|
+
nextCursor: S.optional(S.String),
|
|
1397
|
+
}),
|
|
1398
|
+
).annotate({
|
|
1399
|
+
identifier: "VcrRepositoryPermissionList",
|
|
1400
|
+
}) as any as S.Schema<VcrRepositoryPermissionList>;
|
|
1401
|
+
|
|
1402
|
+
/** Field to sort the non-pinned tags by. */
|
|
1403
|
+
export type ListRepositoryTagsRequestSortBy = "updatedAt" | "tag";
|
|
1404
|
+
export const ListRepositoryTagsRequestSortBy = /*@__PURE__*/ S.String;
|
|
1405
|
+
|
|
1406
|
+
/** Sort direction. Defaults to desc. */
|
|
1407
|
+
export type ListRepositoryTagsRequestSortOrder = "asc" | "desc";
|
|
1408
|
+
export const ListRepositoryTagsRequestSortOrder = /*@__PURE__*/ S.String;
|
|
1409
|
+
|
|
1410
|
+
export interface ListRepositoryTagsRequest {
|
|
1411
|
+
idOrName: string;
|
|
1412
|
+
projectId: string;
|
|
1413
|
+
limit?: number;
|
|
1414
|
+
cursor?: string;
|
|
1415
|
+
/** Field to sort the non-pinned tags by. */
|
|
1416
|
+
sortBy?: ListRepositoryTagsRequestSortBy | (string & {});
|
|
1417
|
+
/** Sort direction. Defaults to desc. */
|
|
1418
|
+
sortOrder?: ListRepositoryTagsRequestSortOrder | (string & {});
|
|
1419
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
1420
|
+
teamId?: string;
|
|
1421
|
+
/** The Team slug to perform the request on behalf of. */
|
|
1422
|
+
slug?: string;
|
|
1423
|
+
}
|
|
1424
|
+
export const ListRepositoryTagsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1425
|
+
S.Struct({
|
|
1426
|
+
idOrName: S.String.pipe(T.Label()),
|
|
1427
|
+
projectId: S.String.pipe(T.Query()),
|
|
1428
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1429
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1430
|
+
sortBy: S.optional(ListRepositoryTagsRequestSortBy.pipe(T.Query())),
|
|
1431
|
+
sortOrder: S.optional(ListRepositoryTagsRequestSortOrder.pipe(T.Query())),
|
|
1432
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
1433
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
1434
|
+
}).pipe(
|
|
1435
|
+
T.Http({
|
|
1436
|
+
method: "GET",
|
|
1437
|
+
uri: "/v1/vcr/repository/{idOrName}/tags",
|
|
1438
|
+
code: 200,
|
|
1439
|
+
}),
|
|
1440
|
+
),
|
|
1441
|
+
).annotate({
|
|
1442
|
+
identifier: "ListRepositoryTagsRequest",
|
|
1443
|
+
}) as any as S.Schema<ListRepositoryTagsRequest>;
|
|
1444
|
+
|
|
1445
|
+
export type ListRepositoryTagsResponseTagsItemKind =
|
|
1446
|
+
| "attestation"
|
|
1447
|
+
| "index"
|
|
1448
|
+
| "manifest";
|
|
1449
|
+
export const ListRepositoryTagsResponseTagsItemKind = /*@__PURE__*/ S.String;
|
|
1450
|
+
|
|
1451
|
+
export type ListRepositoryTagsResponseTagsItemStatus =
|
|
1452
|
+
| "preparing"
|
|
1453
|
+
| "ready"
|
|
1454
|
+
| "unoptimized";
|
|
1455
|
+
export const ListRepositoryTagsResponseTagsItemStatus = /*@__PURE__*/ S.String;
|
|
1456
|
+
|
|
1457
|
+
export interface ListRepositoryTagsResponseTagsItem {
|
|
1458
|
+
tag: string;
|
|
1459
|
+
manifestDigest: string;
|
|
1460
|
+
imageId: string;
|
|
1461
|
+
kind: ListRepositoryTagsResponseTagsItemKind;
|
|
1462
|
+
platform?: string;
|
|
1463
|
+
arch?: string;
|
|
1464
|
+
pushedBy?: string;
|
|
1465
|
+
status: ListRepositoryTagsResponseTagsItemStatus | null;
|
|
1466
|
+
sizeInBytes: number;
|
|
1467
|
+
createdAt: string;
|
|
1468
|
+
updatedAt: string;
|
|
1469
|
+
}
|
|
1470
|
+
export const ListRepositoryTagsResponseTagsItem = /*@__PURE__*/ S.suspend(() =>
|
|
1471
|
+
S.Struct({
|
|
1472
|
+
tag: S.String,
|
|
1473
|
+
manifestDigest: S.String,
|
|
1474
|
+
imageId: S.String,
|
|
1475
|
+
kind: ListRepositoryTagsResponseTagsItemKind,
|
|
1476
|
+
platform: S.optional(S.String),
|
|
1477
|
+
arch: S.optional(S.String),
|
|
1478
|
+
pushedBy: S.optional(S.String),
|
|
1479
|
+
status: S.NullOr(ListRepositoryTagsResponseTagsItemStatus),
|
|
1480
|
+
sizeInBytes: S.Number,
|
|
1481
|
+
createdAt: S.String,
|
|
1482
|
+
updatedAt: S.String,
|
|
1483
|
+
}),
|
|
1484
|
+
).annotate({
|
|
1485
|
+
identifier: "ListRepositoryTagsResponseTagsItem",
|
|
1486
|
+
}) as any as S.Schema<ListRepositoryTagsResponseTagsItem>;
|
|
1487
|
+
|
|
1488
|
+
export type ListRepositoryTagsResponseTagsList =
|
|
1489
|
+
Array<ListRepositoryTagsResponseTagsItem>;
|
|
1490
|
+
export const ListRepositoryTagsResponseTagsList = /*@__PURE__*/ S.Array(
|
|
1491
|
+
ListRepositoryTagsResponseTagsItem,
|
|
1492
|
+
) as any as S.Schema<ListRepositoryTagsResponseTagsList>;
|
|
1493
|
+
|
|
1494
|
+
export interface ListRepositoryTagsResponse {
|
|
1495
|
+
tags: ListRepositoryTagsResponseTagsList;
|
|
1496
|
+
nextCursor?: string;
|
|
1497
|
+
}
|
|
1498
|
+
export const ListRepositoryTagsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1499
|
+
S.Struct({
|
|
1500
|
+
tags: ListRepositoryTagsResponseTagsList,
|
|
1501
|
+
nextCursor: S.optional(S.String),
|
|
1502
|
+
}),
|
|
1503
|
+
).annotate({
|
|
1504
|
+
identifier: "ListRepositoryTagsResponse",
|
|
1505
|
+
}) as any as S.Schema<ListRepositoryTagsResponse>;
|
|
1506
|
+
|
|
1507
|
+
export interface RemoveRepositoryPermissionRequest {
|
|
1508
|
+
idOrName: string;
|
|
1509
|
+
projectId: string;
|
|
1510
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
1511
|
+
teamId?: string;
|
|
1512
|
+
/** The Team slug to perform the request on behalf of. */
|
|
1513
|
+
slug?: string;
|
|
1514
|
+
/** Slug of a team that is granted access to a repository. */
|
|
1515
|
+
teamSlug?: string;
|
|
1516
|
+
}
|
|
1517
|
+
export const RemoveRepositoryPermissionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1518
|
+
S.Struct({
|
|
1519
|
+
idOrName: S.String.pipe(T.Label()),
|
|
1520
|
+
projectId: S.String.pipe(T.Query()),
|
|
1521
|
+
teamId: S.optional(S.String.pipe(T.Query())),
|
|
1522
|
+
slug: S.optional(S.String.pipe(T.Query())),
|
|
1523
|
+
teamSlug: S.optional(S.String),
|
|
1524
|
+
}).pipe(
|
|
1525
|
+
T.Http({
|
|
1526
|
+
method: "DELETE",
|
|
1527
|
+
uri: "/v1/vcr/repository/{idOrName}/permissions",
|
|
1528
|
+
code: 200,
|
|
1529
|
+
}),
|
|
1530
|
+
),
|
|
1531
|
+
).annotate({
|
|
1532
|
+
identifier: "RemoveRepositoryPermissionRequest",
|
|
1533
|
+
}) as any as S.Schema<RemoveRepositoryPermissionRequest>;
|
|
1534
|
+
|
|
1535
|
+
export type RemoveRepositoryPermissionResponse = unknown;
|
|
1536
|
+
export const RemoveRepositoryPermissionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1537
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
1538
|
+
).annotate({
|
|
1539
|
+
identifier: "RemoveRepositoryPermissionResponse",
|
|
1540
|
+
}) as any as S.Schema<RemoveRepositoryPermissionResponse>;
|
|
1541
|
+
|
|
1542
|
+
export interface ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest {
|
|
1543
|
+
/** Single Docker repository team slug component. */
|
|
1544
|
+
teamSlug: string;
|
|
1545
|
+
/** Single Docker repository project slug component. */
|
|
1546
|
+
projectSlug: string;
|
|
1547
|
+
/** Single Docker repository name component. */
|
|
1548
|
+
repositoryName: string;
|
|
1549
|
+
/** Blob upload session identifier. */
|
|
1550
|
+
uuid: string;
|
|
1551
|
+
/** Content-addressable digest (algorithm:hex). */
|
|
1552
|
+
digest: string;
|
|
1553
|
+
}
|
|
1554
|
+
export const ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest =
|
|
1555
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1556
|
+
S.Struct({
|
|
1557
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
1558
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
1559
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
1560
|
+
uuid: S.String.pipe(T.Label()),
|
|
1561
|
+
digest: S.String.pipe(T.Query()),
|
|
1562
|
+
}).pipe(
|
|
1563
|
+
T.Http({
|
|
1564
|
+
method: "PUT",
|
|
1565
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}",
|
|
1566
|
+
code: 200,
|
|
1567
|
+
}),
|
|
1568
|
+
),
|
|
1569
|
+
).annotate({
|
|
1570
|
+
identifier:
|
|
1571
|
+
"ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest",
|
|
1572
|
+
}) as any as S.Schema<ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest>;
|
|
1573
|
+
|
|
1574
|
+
export type ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse =
|
|
1575
|
+
unknown;
|
|
1576
|
+
export const ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse =
|
|
1577
|
+
/*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1578
|
+
identifier:
|
|
1579
|
+
"ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse",
|
|
1580
|
+
}) as any as S.Schema<ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse>;
|
|
1581
|
+
|
|
1582
|
+
export interface ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest {
|
|
1583
|
+
/** Single Docker repository team slug component. */
|
|
1584
|
+
teamSlug: string;
|
|
1585
|
+
/** Single Docker repository project slug component. */
|
|
1586
|
+
projectSlug: string;
|
|
1587
|
+
/** Single Docker repository name component. */
|
|
1588
|
+
repositoryName: string;
|
|
1589
|
+
/** Manifest reference: a tag or digest. */
|
|
1590
|
+
reference: string;
|
|
1591
|
+
}
|
|
1592
|
+
export const ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest =
|
|
1593
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1594
|
+
S.Struct({
|
|
1595
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
1596
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
1597
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
1598
|
+
reference: S.String.pipe(T.Label()),
|
|
1599
|
+
}).pipe(
|
|
1600
|
+
T.Http({
|
|
1601
|
+
method: "PUT",
|
|
1602
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}",
|
|
1603
|
+
code: 200,
|
|
1604
|
+
}),
|
|
1605
|
+
),
|
|
1606
|
+
).annotate({
|
|
1607
|
+
identifier:
|
|
1608
|
+
"ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest",
|
|
1609
|
+
}) as any as S.Schema<ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest>;
|
|
1610
|
+
|
|
1611
|
+
export type ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse =
|
|
1612
|
+
unknown;
|
|
1613
|
+
export const ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse =
|
|
1614
|
+
/*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1615
|
+
identifier:
|
|
1616
|
+
"ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse",
|
|
1617
|
+
}) as any as S.Schema<ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse>;
|
|
1618
|
+
|
|
1619
|
+
export interface UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest {
|
|
1620
|
+
/** Single Docker repository team slug component. */
|
|
1621
|
+
teamSlug: string;
|
|
1622
|
+
/** Single Docker repository project slug component. */
|
|
1623
|
+
projectSlug: string;
|
|
1624
|
+
/** Single Docker repository name component. */
|
|
1625
|
+
repositoryName: string;
|
|
1626
|
+
/** Blob upload session identifier. */
|
|
1627
|
+
uuid: string;
|
|
1628
|
+
}
|
|
1629
|
+
export const UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest =
|
|
1630
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1631
|
+
S.Struct({
|
|
1632
|
+
teamSlug: S.String.pipe(T.Label()),
|
|
1633
|
+
projectSlug: S.String.pipe(T.Label()),
|
|
1634
|
+
repositoryName: S.String.pipe(T.Label()),
|
|
1635
|
+
uuid: S.String.pipe(T.Label()),
|
|
1636
|
+
}).pipe(
|
|
1637
|
+
T.Http({
|
|
1638
|
+
method: "PATCH",
|
|
1639
|
+
uri: "/v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}",
|
|
1640
|
+
code: 200,
|
|
1641
|
+
}),
|
|
1642
|
+
),
|
|
1643
|
+
).annotate({
|
|
1644
|
+
identifier:
|
|
1645
|
+
"UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest",
|
|
1646
|
+
}) as any as S.Schema<UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest>;
|
|
1647
|
+
|
|
1648
|
+
export type UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse =
|
|
1649
|
+
unknown;
|
|
1650
|
+
export const UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse =
|
|
1651
|
+
/*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1652
|
+
identifier:
|
|
1653
|
+
"UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse",
|
|
1654
|
+
}) as any as S.Schema<UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse>;
|
|
1655
|
+
|
|
1656
|
+
export type AddRepositoryPermissionError =
|
|
1657
|
+
| BadRequest
|
|
1658
|
+
| Forbidden
|
|
1659
|
+
| NotFound
|
|
1660
|
+
| VercelOpError;
|
|
1661
|
+
/** Add a repository permission Grant a team access to a VCR repository. Sharing applies to the whole repository. */
|
|
1662
|
+
export const addRepositoryPermission: API.OperationMethod<
|
|
1663
|
+
AddRepositoryPermissionRequest,
|
|
1664
|
+
AddRepositoryPermissionResponse,
|
|
1665
|
+
AddRepositoryPermissionError,
|
|
1666
|
+
VercelOpContext
|
|
1667
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1668
|
+
input: AddRepositoryPermissionRequest,
|
|
1669
|
+
output: AddRepositoryPermissionResponse,
|
|
1670
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1671
|
+
protocol: VercelProtocol,
|
|
1672
|
+
retry: Retry.Retry,
|
|
1673
|
+
}));
|
|
1674
|
+
|
|
1675
|
+
export type ClearRepositoryPermissionsError =
|
|
1676
|
+
| BadRequest
|
|
1677
|
+
| Forbidden
|
|
1678
|
+
| NotFound
|
|
1679
|
+
| VercelOpError;
|
|
1680
|
+
/** Clear all repository permissions Revoke every team's access to a VCR repository. Clearing an unshared repository is a no-op. */
|
|
1681
|
+
export const clearRepositoryPermissions: API.OperationMethod<
|
|
1682
|
+
ClearRepositoryPermissionsRequest,
|
|
1683
|
+
ClearRepositoryPermissionsResponse,
|
|
1684
|
+
ClearRepositoryPermissionsError,
|
|
1685
|
+
VercelOpContext
|
|
1686
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1687
|
+
input: ClearRepositoryPermissionsRequest,
|
|
1688
|
+
output: ClearRepositoryPermissionsResponse,
|
|
1689
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1690
|
+
protocol: VercelProtocol,
|
|
1691
|
+
retry: Retry.Retry,
|
|
1692
|
+
}));
|
|
1693
|
+
|
|
1694
|
+
export type CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsError =
|
|
1695
|
+
| BadRequest
|
|
1696
|
+
| PaymentRequired
|
|
1697
|
+
| Forbidden
|
|
1698
|
+
| NotFound
|
|
1699
|
+
| VercelOpError;
|
|
1700
|
+
/** Start a blob upload POST /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/[?mount=<digest>&from=<repo>] Initiate a blob upload. Returns a UUID in the Location header that the client uses for subsequent PATCH (chunk) and PUT (complete) requests. */
|
|
1701
|
+
export const createByTeamSlugByProjectSlugByRepositoryNameBlobsUploads: API.OperationMethod<
|
|
1702
|
+
CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsRequest,
|
|
1703
|
+
CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsResponse,
|
|
1704
|
+
CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsError,
|
|
1705
|
+
VercelOpContext
|
|
1706
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1707
|
+
input: CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsRequest,
|
|
1708
|
+
output: CreateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsResponse,
|
|
1709
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1710
|
+
protocol: VercelProtocol,
|
|
1711
|
+
retry: Retry.Retry,
|
|
1712
|
+
}));
|
|
1713
|
+
|
|
1714
|
+
export type CreateRepositoryError =
|
|
1715
|
+
| BadRequest
|
|
1716
|
+
| PaymentRequired
|
|
1717
|
+
| Forbidden
|
|
1718
|
+
| NotFound
|
|
1719
|
+
| Conflict
|
|
1720
|
+
| VercelOpError;
|
|
1721
|
+
/** Create a repository Create a container registry repository for a project. */
|
|
1722
|
+
export const createRepository: API.OperationMethod<
|
|
1723
|
+
CreateRepositoryRequest,
|
|
1724
|
+
CreateRepositoryResponse,
|
|
1725
|
+
CreateRepositoryError,
|
|
1726
|
+
VercelOpContext
|
|
1727
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1728
|
+
input: CreateRepositoryRequest,
|
|
1729
|
+
output: CreateRepositoryResponse,
|
|
1730
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound, Conflict],
|
|
1731
|
+
protocol: VercelProtocol,
|
|
1732
|
+
retry: Retry.Retry,
|
|
1733
|
+
}));
|
|
1734
|
+
|
|
1735
|
+
export type DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestError =
|
|
1736
|
+
| BadRequest
|
|
1737
|
+
| PaymentRequired
|
|
1738
|
+
| Forbidden
|
|
1739
|
+
| NotFound
|
|
1740
|
+
| VercelOpError;
|
|
1741
|
+
/** Delete a blob DELETE /v2/:teamSlug/:projectSlug/:repositoryName/blobs/:digest Blob deletion is intentionally not supported. Matches the behaviour of most public registries. */
|
|
1742
|
+
export const deleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest: API.OperationMethod<
|
|
1743
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest,
|
|
1744
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse,
|
|
1745
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestError,
|
|
1746
|
+
VercelOpContext
|
|
1747
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1748
|
+
input: DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest,
|
|
1749
|
+
output: DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse,
|
|
1750
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1751
|
+
protocol: VercelProtocol,
|
|
1752
|
+
retry: Retry.Retry,
|
|
1753
|
+
}));
|
|
1754
|
+
|
|
1755
|
+
export type DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidError =
|
|
1756
|
+
BadRequest | PaymentRequired | Forbidden | NotFound | VercelOpError;
|
|
1757
|
+
/** Cancel a blob upload DELETE /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid Cancel an in-flight blob upload. Aborts the underlying S3 multipart upload (if one was started) and discards the session. */
|
|
1758
|
+
export const deleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid: API.OperationMethod<
|
|
1759
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest,
|
|
1760
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse,
|
|
1761
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidError,
|
|
1762
|
+
VercelOpContext
|
|
1763
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1764
|
+
input: DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest,
|
|
1765
|
+
output:
|
|
1766
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse,
|
|
1767
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1768
|
+
protocol: VercelProtocol,
|
|
1769
|
+
retry: Retry.Retry,
|
|
1770
|
+
}));
|
|
1771
|
+
|
|
1772
|
+
export type DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceError =
|
|
1773
|
+
BadRequest | PaymentRequired | Forbidden | NotFound | VercelOpError;
|
|
1774
|
+
/** Delete an image manifest DELETE /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Reference must be a digest. */
|
|
1775
|
+
export const deleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference: API.OperationMethod<
|
|
1776
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest,
|
|
1777
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse,
|
|
1778
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceError,
|
|
1779
|
+
VercelOpContext
|
|
1780
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1781
|
+
input:
|
|
1782
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest,
|
|
1783
|
+
output:
|
|
1784
|
+
DeleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse,
|
|
1785
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1786
|
+
protocol: VercelProtocol,
|
|
1787
|
+
retry: Retry.Retry,
|
|
1788
|
+
}));
|
|
1789
|
+
|
|
1790
|
+
export type DeleteRepositoryError =
|
|
1791
|
+
| BadRequest
|
|
1792
|
+
| Forbidden
|
|
1793
|
+
| NotFound
|
|
1794
|
+
| VercelOpError;
|
|
1795
|
+
/** Delete a repository Schedule a repository for deletion. The repository is marked so it disappears from list/get immediately; subscriber-vcr reclaims every image (manifests, blobs, tags and rows) and finally deletes the repository row asynchronously via the VcrRepositoryRemoved event. */
|
|
1796
|
+
export const deleteRepository: API.OperationMethod<
|
|
1797
|
+
DeleteRepositoryRequest,
|
|
1798
|
+
DeleteRepositoryResponse,
|
|
1799
|
+
DeleteRepositoryError,
|
|
1800
|
+
VercelOpContext
|
|
1801
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1802
|
+
input: DeleteRepositoryRequest,
|
|
1803
|
+
output: DeleteRepositoryResponse,
|
|
1804
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1805
|
+
protocol: VercelProtocol,
|
|
1806
|
+
retry: Retry.Retry,
|
|
1807
|
+
}));
|
|
1808
|
+
|
|
1809
|
+
export type DeleteRepositoryImageError =
|
|
1810
|
+
| BadRequest
|
|
1811
|
+
| Forbidden
|
|
1812
|
+
| NotFound
|
|
1813
|
+
| VercelOpError;
|
|
1814
|
+
/** Delete a repository image Schedule an image for deletion. The image is marked so it disappears from list/get immediately; subscriber-vcr reclaims the manifest, blobs, tags and row asynchronously via the VcrManifestRemoved event. */
|
|
1815
|
+
export const deleteRepositoryImage: API.OperationMethod<
|
|
1816
|
+
DeleteRepositoryImageRequest,
|
|
1817
|
+
DeleteRepositoryImageResponse,
|
|
1818
|
+
DeleteRepositoryImageError,
|
|
1819
|
+
VercelOpContext
|
|
1820
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1821
|
+
input: DeleteRepositoryImageRequest,
|
|
1822
|
+
output: DeleteRepositoryImageResponse,
|
|
1823
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1824
|
+
protocol: VercelProtocol,
|
|
1825
|
+
retry: Retry.Retry,
|
|
1826
|
+
}));
|
|
1827
|
+
|
|
1828
|
+
export type GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestError =
|
|
1829
|
+
| BadRequest
|
|
1830
|
+
| PaymentRequired
|
|
1831
|
+
| Forbidden
|
|
1832
|
+
| NotFound
|
|
1833
|
+
| VercelOpError;
|
|
1834
|
+
/** Download a blob GET /v2/:teamSlug/:projectSlug/:repositoryName/blobs/:digest Fetch a blob by digest. */
|
|
1835
|
+
export const getByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest: API.OperationMethod<
|
|
1836
|
+
GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest,
|
|
1837
|
+
GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse,
|
|
1838
|
+
GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestError,
|
|
1839
|
+
VercelOpContext
|
|
1840
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1841
|
+
input: GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest,
|
|
1842
|
+
output: GetByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse,
|
|
1843
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1844
|
+
protocol: VercelProtocol,
|
|
1845
|
+
retry: Retry.Retry,
|
|
1846
|
+
}));
|
|
1847
|
+
|
|
1848
|
+
export type GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidError =
|
|
1849
|
+
| BadRequest
|
|
1850
|
+
| PaymentRequired
|
|
1851
|
+
| Forbidden
|
|
1852
|
+
| NotFound
|
|
1853
|
+
| VercelOpError;
|
|
1854
|
+
/** Get blob upload status GET /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid Query the status of an in-progress blob upload. Used by clients to resume a partial upload after an interruption. */
|
|
1855
|
+
export const getByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid: API.OperationMethod<
|
|
1856
|
+
GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest,
|
|
1857
|
+
GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse,
|
|
1858
|
+
GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidError,
|
|
1859
|
+
VercelOpContext
|
|
1860
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1861
|
+
input: GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest,
|
|
1862
|
+
output: GetByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse,
|
|
1863
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1864
|
+
protocol: VercelProtocol,
|
|
1865
|
+
retry: Retry.Retry,
|
|
1866
|
+
}));
|
|
1867
|
+
|
|
1868
|
+
export type GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceError =
|
|
1869
|
+
BadRequest | PaymentRequired | Forbidden | NotFound | VercelOpError;
|
|
1870
|
+
/** Pull an image manifest GET /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Fetch a manifest by tag or digest. */
|
|
1871
|
+
export const getByTeamSlugByProjectSlugByRepositoryNameManifestsByReference: API.OperationMethod<
|
|
1872
|
+
GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest,
|
|
1873
|
+
GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse,
|
|
1874
|
+
GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceError,
|
|
1875
|
+
VercelOpContext
|
|
1876
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1877
|
+
input: GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest,
|
|
1878
|
+
output:
|
|
1879
|
+
GetByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse,
|
|
1880
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1881
|
+
protocol: VercelProtocol,
|
|
1882
|
+
retry: Retry.Retry,
|
|
1883
|
+
}));
|
|
1884
|
+
|
|
1885
|
+
export type GetByTeamSlugByProjectSlugByRepositoryNameTagsListError =
|
|
1886
|
+
| BadRequest
|
|
1887
|
+
| PaymentRequired
|
|
1888
|
+
| Forbidden
|
|
1889
|
+
| NotFound
|
|
1890
|
+
| VercelOpError;
|
|
1891
|
+
/** List image tags GET /v2/:teamSlug/:projectSlug/:repositoryName/tags/list List the tags in a repository. */
|
|
1892
|
+
export const getByTeamSlugByProjectSlugByRepositoryNameTagsList: API.OperationMethod<
|
|
1893
|
+
GetByTeamSlugByProjectSlugByRepositoryNameTagsListRequest,
|
|
1894
|
+
GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponse,
|
|
1895
|
+
GetByTeamSlugByProjectSlugByRepositoryNameTagsListError,
|
|
1896
|
+
VercelOpContext
|
|
1897
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1898
|
+
input: GetByTeamSlugByProjectSlugByRepositoryNameTagsListRequest,
|
|
1899
|
+
output: GetByTeamSlugByProjectSlugByRepositoryNameTagsListResponse,
|
|
1900
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1901
|
+
protocol: VercelProtocol,
|
|
1902
|
+
retry: Retry.Retry,
|
|
1903
|
+
}));
|
|
1904
|
+
|
|
1905
|
+
export type GetRepositoryError =
|
|
1906
|
+
| BadRequest
|
|
1907
|
+
| Forbidden
|
|
1908
|
+
| NotFound
|
|
1909
|
+
| VercelOpError;
|
|
1910
|
+
/** Get a repository Fetch a container registry repository for a project by ID or name. */
|
|
1911
|
+
export const getRepository: API.OperationMethod<
|
|
1912
|
+
GetRepositoryRequest,
|
|
1913
|
+
GetRepositoryResponse,
|
|
1914
|
+
GetRepositoryError,
|
|
1915
|
+
VercelOpContext
|
|
1916
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1917
|
+
input: GetRepositoryRequest,
|
|
1918
|
+
output: GetRepositoryResponse,
|
|
1919
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1920
|
+
protocol: VercelProtocol,
|
|
1921
|
+
retry: Retry.Retry,
|
|
1922
|
+
}));
|
|
1923
|
+
|
|
1924
|
+
export type GetRepositoryImageError =
|
|
1925
|
+
| BadRequest
|
|
1926
|
+
| Forbidden
|
|
1927
|
+
| NotFound
|
|
1928
|
+
| VercelOpError;
|
|
1929
|
+
/** Get a repository image Fetch an individual image from a repository, including its tags and Dockerfile history entries with discriminated layer details for UI rendering. The image may be addressed by its internal id (`image_...`) or by its manifest digest (`sha256:...`). */
|
|
1930
|
+
export const getRepositoryImage: API.OperationMethod<
|
|
1931
|
+
GetRepositoryImageRequest,
|
|
1932
|
+
GetRepositoryImageResponse,
|
|
1933
|
+
GetRepositoryImageError,
|
|
1934
|
+
VercelOpContext
|
|
1935
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1936
|
+
input: GetRepositoryImageRequest,
|
|
1937
|
+
output: GetRepositoryImageResponse,
|
|
1938
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1939
|
+
protocol: VercelProtocol,
|
|
1940
|
+
retry: Retry.Retry,
|
|
1941
|
+
}));
|
|
1942
|
+
|
|
1943
|
+
export type GetRepositoryTagError =
|
|
1944
|
+
| BadRequest
|
|
1945
|
+
| Forbidden
|
|
1946
|
+
| NotFound
|
|
1947
|
+
| VercelOpError;
|
|
1948
|
+
/** Get a repository tag Fetch a single tag from a repository, including the backing image's metadata and VHS-readiness status. */
|
|
1949
|
+
export const getRepositoryTag: API.OperationMethod<
|
|
1950
|
+
GetRepositoryTagRequest,
|
|
1951
|
+
GetRepositoryTagResponse,
|
|
1952
|
+
GetRepositoryTagError,
|
|
1953
|
+
VercelOpContext
|
|
1954
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1955
|
+
input: GetRepositoryTagRequest,
|
|
1956
|
+
output: GetRepositoryTagResponse,
|
|
1957
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1958
|
+
protocol: VercelProtocol,
|
|
1959
|
+
retry: Retry.Retry,
|
|
1960
|
+
}));
|
|
1961
|
+
|
|
1962
|
+
export type GetRootError =
|
|
1963
|
+
| BadRequest
|
|
1964
|
+
| PaymentRequired
|
|
1965
|
+
| Forbidden
|
|
1966
|
+
| NotFound
|
|
1967
|
+
| VercelOpError;
|
|
1968
|
+
/** Check registry API version support GET /v2/ Docker Registry v2 version check. Returns a 401 challenge when no credentials are provided, prompting the Docker client to send auth. With valid credentials, returns 200 so the client can proceed. */
|
|
1969
|
+
export const getRoot: API.OperationMethod<
|
|
1970
|
+
GetRootRequest,
|
|
1971
|
+
GetRootResponse,
|
|
1972
|
+
GetRootError,
|
|
1973
|
+
VercelOpContext
|
|
1974
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1975
|
+
input: GetRootRequest,
|
|
1976
|
+
output: GetRootResponse,
|
|
1977
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1978
|
+
protocol: VercelProtocol,
|
|
1979
|
+
retry: Retry.Retry,
|
|
1980
|
+
}));
|
|
1981
|
+
|
|
1982
|
+
export type HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestError =
|
|
1983
|
+
| BadRequest
|
|
1984
|
+
| PaymentRequired
|
|
1985
|
+
| Forbidden
|
|
1986
|
+
| NotFound
|
|
1987
|
+
| VercelOpError;
|
|
1988
|
+
/** Check if a blob exists HEAD /v2/:teamSlug/:projectSlug/:repositoryName/blobs/:digest Check whether a blob exists. Used by the Docker client before pushing a layer to avoid re-uploading content that already exists. */
|
|
1989
|
+
export const headByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest: API.OperationMethod<
|
|
1990
|
+
HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest,
|
|
1991
|
+
HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse,
|
|
1992
|
+
HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestError,
|
|
1993
|
+
VercelOpContext
|
|
1994
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1995
|
+
input: HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestRequest,
|
|
1996
|
+
output: HeadByTeamSlugByProjectSlugByRepositoryNameBlobsByDigestResponse,
|
|
1997
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
1998
|
+
protocol: VercelProtocol,
|
|
1999
|
+
retry: Retry.Retry,
|
|
2000
|
+
}));
|
|
2001
|
+
|
|
2002
|
+
export type HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceError =
|
|
2003
|
+
BadRequest | PaymentRequired | Forbidden | NotFound | VercelOpError;
|
|
2004
|
+
/** Check if a manifest exists HEAD /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Check whether a manifest exists. Used by Docker client during push to determine if a manifest (or config blob referenced by digest) is already present. */
|
|
2005
|
+
export const headByTeamSlugByProjectSlugByRepositoryNameManifestsByReference: API.OperationMethod<
|
|
2006
|
+
HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest,
|
|
2007
|
+
HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse,
|
|
2008
|
+
HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceError,
|
|
2009
|
+
VercelOpContext
|
|
2010
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2011
|
+
input: HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest,
|
|
2012
|
+
output:
|
|
2013
|
+
HeadByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse,
|
|
2014
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
2015
|
+
protocol: VercelProtocol,
|
|
2016
|
+
retry: Retry.Retry,
|
|
2017
|
+
}));
|
|
2018
|
+
|
|
2019
|
+
export type ListRepositoriesError =
|
|
2020
|
+
| BadRequest
|
|
2021
|
+
| Forbidden
|
|
2022
|
+
| NotFound
|
|
2023
|
+
| VercelOpError;
|
|
2024
|
+
/** List repositories List container registry repositories for a project. */
|
|
2025
|
+
export const listRepositories: API.OperationMethod<
|
|
2026
|
+
ListRepositoriesRequest,
|
|
2027
|
+
VcrRepositoryList,
|
|
2028
|
+
ListRepositoriesError,
|
|
2029
|
+
VercelOpContext
|
|
2030
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2031
|
+
input: ListRepositoriesRequest,
|
|
2032
|
+
output: VcrRepositoryList,
|
|
2033
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2034
|
+
protocol: VercelProtocol,
|
|
2035
|
+
retry: Retry.Retry,
|
|
2036
|
+
}));
|
|
2037
|
+
|
|
2038
|
+
export type ListRepositoryImagesError =
|
|
2039
|
+
| BadRequest
|
|
2040
|
+
| Forbidden
|
|
2041
|
+
| NotFound
|
|
2042
|
+
| VercelOpError;
|
|
2043
|
+
/** List repository images List images for a container registry repository, including their tags. */
|
|
2044
|
+
export const listRepositoryImages: API.OperationMethod<
|
|
2045
|
+
ListRepositoryImagesRequest,
|
|
2046
|
+
VcrImageList,
|
|
2047
|
+
ListRepositoryImagesError,
|
|
2048
|
+
VercelOpContext
|
|
2049
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2050
|
+
input: ListRepositoryImagesRequest,
|
|
2051
|
+
output: VcrImageList,
|
|
2052
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2053
|
+
protocol: VercelProtocol,
|
|
2054
|
+
retry: Retry.Retry,
|
|
2055
|
+
}));
|
|
2056
|
+
|
|
2057
|
+
export type ListRepositoryPermissionsError =
|
|
2058
|
+
| BadRequest
|
|
2059
|
+
| Forbidden
|
|
2060
|
+
| NotFound
|
|
2061
|
+
| VercelOpError;
|
|
2062
|
+
/** List repository permissions List the teams a VCR repository is shared with. */
|
|
2063
|
+
export const listRepositoryPermissions: API.OperationMethod<
|
|
2064
|
+
ListRepositoryPermissionsRequest,
|
|
2065
|
+
VcrRepositoryPermissionList,
|
|
2066
|
+
ListRepositoryPermissionsError,
|
|
2067
|
+
VercelOpContext
|
|
2068
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2069
|
+
input: ListRepositoryPermissionsRequest,
|
|
2070
|
+
output: VcrRepositoryPermissionList,
|
|
2071
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2072
|
+
protocol: VercelProtocol,
|
|
2073
|
+
retry: Retry.Retry,
|
|
2074
|
+
}));
|
|
2075
|
+
|
|
2076
|
+
export type ListRepositoryTagsError =
|
|
2077
|
+
| BadRequest
|
|
2078
|
+
| Forbidden
|
|
2079
|
+
| NotFound
|
|
2080
|
+
| VercelOpError;
|
|
2081
|
+
/** List repository tags List a repository's tags. */
|
|
2082
|
+
export const listRepositoryTags: API.OperationMethod<
|
|
2083
|
+
ListRepositoryTagsRequest,
|
|
2084
|
+
ListRepositoryTagsResponse,
|
|
2085
|
+
ListRepositoryTagsError,
|
|
2086
|
+
VercelOpContext
|
|
2087
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2088
|
+
input: ListRepositoryTagsRequest,
|
|
2089
|
+
output: ListRepositoryTagsResponse,
|
|
2090
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2091
|
+
protocol: VercelProtocol,
|
|
2092
|
+
retry: Retry.Retry,
|
|
2093
|
+
}));
|
|
2094
|
+
|
|
2095
|
+
export type RemoveRepositoryPermissionError =
|
|
2096
|
+
| BadRequest
|
|
2097
|
+
| Forbidden
|
|
2098
|
+
| NotFound
|
|
2099
|
+
| VercelOpError;
|
|
2100
|
+
/** Remove a repository permission Revoke a team's access to a VCR repository. */
|
|
2101
|
+
export const removeRepositoryPermission: API.OperationMethod<
|
|
2102
|
+
RemoveRepositoryPermissionRequest,
|
|
2103
|
+
RemoveRepositoryPermissionResponse,
|
|
2104
|
+
RemoveRepositoryPermissionError,
|
|
2105
|
+
VercelOpContext
|
|
2106
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2107
|
+
input: RemoveRepositoryPermissionRequest,
|
|
2108
|
+
output: RemoveRepositoryPermissionResponse,
|
|
2109
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2110
|
+
protocol: VercelProtocol,
|
|
2111
|
+
retry: Retry.Retry,
|
|
2112
|
+
}));
|
|
2113
|
+
|
|
2114
|
+
export type ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidError =
|
|
2115
|
+
BadRequest | PaymentRequired | Forbidden | NotFound | VercelOpError;
|
|
2116
|
+
/** Complete a blob upload PUT /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid?digest=<digest> Complete the blob upload. This may include a final chunk of data in the request body (monolithic upload) or just finalize a previous chunked upload. */
|
|
2117
|
+
export const replaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid: API.OperationMethod<
|
|
2118
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest,
|
|
2119
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse,
|
|
2120
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidError,
|
|
2121
|
+
VercelOpContext
|
|
2122
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2123
|
+
input:
|
|
2124
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest,
|
|
2125
|
+
output:
|
|
2126
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse,
|
|
2127
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
2128
|
+
protocol: VercelProtocol,
|
|
2129
|
+
retry: Retry.Retry,
|
|
2130
|
+
}));
|
|
2131
|
+
|
|
2132
|
+
export type ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceError =
|
|
2133
|
+
BadRequest | PaymentRequired | Forbidden | NotFound | VercelOpError;
|
|
2134
|
+
/** Push an image manifest PUT /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Upload an image manifest. The digest is computed from the body and returned in the Docker-Content-Digest header. */
|
|
2135
|
+
export const replaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference: API.OperationMethod<
|
|
2136
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest,
|
|
2137
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse,
|
|
2138
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceError,
|
|
2139
|
+
VercelOpContext
|
|
2140
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2141
|
+
input:
|
|
2142
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceRequest,
|
|
2143
|
+
output:
|
|
2144
|
+
ReplaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReferenceResponse,
|
|
2145
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
2146
|
+
protocol: VercelProtocol,
|
|
2147
|
+
retry: Retry.Retry,
|
|
2148
|
+
}));
|
|
2149
|
+
|
|
2150
|
+
export type UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidError =
|
|
2151
|
+
BadRequest | PaymentRequired | Forbidden | NotFound | VercelOpError;
|
|
2152
|
+
/** Upload a blob chunk PATCH /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid Upload a chunk of blob data. The request body is streamed directly to S3 as a multipart upload part while hashing incrementally. The client may call this multiple times for chunked uploads. */
|
|
2153
|
+
export const updateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid: API.OperationMethod<
|
|
2154
|
+
UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest,
|
|
2155
|
+
UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse,
|
|
2156
|
+
UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidError,
|
|
2157
|
+
VercelOpContext
|
|
2158
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2159
|
+
input: UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidRequest,
|
|
2160
|
+
output:
|
|
2161
|
+
UpdateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuidResponse,
|
|
2162
|
+
errors: [BadRequest, PaymentRequired, Forbidden, NotFound],
|
|
2163
|
+
protocol: VercelProtocol,
|
|
2164
|
+
retry: Retry.Retry,
|
|
2165
|
+
}));
|