@distilled.cloud/namespacelabs 0.0.0-stage → 1.0.0-rc.20
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/LICENSE +201 -0
- package/README.md +125 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +55 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +33 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +42 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.lazy.js +7 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/pagination.d.ts +2 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +15 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +12 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/artifacts.d.ts +260 -0
- package/lib/services/artifacts.d.ts.map +1 -0
- package/lib/services/artifacts.js +2 -0
- package/lib/services/artifacts.js.map +1 -0
- package/lib/services/audit.d.ts +149 -0
- package/lib/services/audit.d.ts.map +1 -0
- package/lib/services/audit.js +2 -0
- package/lib/services/audit.js.map +1 -0
- package/lib/services/bazel.d.ts +173 -0
- package/lib/services/bazel.d.ts.map +1 -0
- package/lib/services/bazel.js +2 -0
- package/lib/services/bazel.js.map +1 -0
- package/lib/services/bazel_cache.d.ts +118 -0
- package/lib/services/bazel_cache.d.ts.map +1 -0
- package/lib/services/bazel_cache.js +2 -0
- package/lib/services/bazel_cache.js.map +1 -0
- package/lib/services/builder.d.ts +234 -0
- package/lib/services/builder.d.ts.map +1 -0
- package/lib/services/builder.js +2 -0
- package/lib/services/builder.js.map +1 -0
- package/lib/services/buildkite_jobs.d.ts +121 -0
- package/lib/services/buildkite_jobs.d.ts.map +1 -0
- package/lib/services/buildkite_jobs.js +2 -0
- package/lib/services/buildkite_jobs.js.map +1 -0
- package/lib/services/buildkite_queue.d.ts +178 -0
- package/lib/services/buildkite_queue.d.ts.map +1 -0
- package/lib/services/buildkite_queue.js +2 -0
- package/lib/services/buildkite_queue.js.map +1 -0
- package/lib/services/compute.d.ts +1057 -0
- package/lib/services/compute.d.ts.map +1 -0
- package/lib/services/compute.js +43 -0
- package/lib/services/compute.js.map +1 -0
- package/lib/services/compute_command.d.ts +112 -0
- package/lib/services/compute_command.d.ts.map +1 -0
- package/lib/services/compute_command.js +2 -0
- package/lib/services/compute_command.js.map +1 -0
- package/lib/services/compute_observability.d.ts +157 -0
- package/lib/services/compute_observability.d.ts.map +1 -0
- package/lib/services/compute_observability.js +2 -0
- package/lib/services/compute_observability.js.map +1 -0
- package/lib/services/compute_storage.d.ts +371 -0
- package/lib/services/compute_storage.d.ts.map +1 -0
- package/lib/services/compute_storage.js +33 -0
- package/lib/services/compute_storage.js.map +1 -0
- package/lib/services/compute_usage.d.ts +275 -0
- package/lib/services/compute_usage.d.ts.map +1 -0
- package/lib/services/compute_usage.js +2 -0
- package/lib/services/compute_usage.js.map +1 -0
- package/lib/services/egress.d.ts +183 -0
- package/lib/services/egress.d.ts.map +1 -0
- package/lib/services/egress.js +2 -0
- package/lib/services/egress.js.map +1 -0
- package/lib/services/experimental_compute_reservation.d.ts +662 -0
- package/lib/services/experimental_compute_reservation.d.ts.map +1 -0
- package/lib/services/experimental_compute_reservation.js +23 -0
- package/lib/services/experimental_compute_reservation.js.map +1 -0
- package/lib/services/experimental_remote_results.d.ts +488 -0
- package/lib/services/experimental_remote_results.d.ts.map +1 -0
- package/lib/services/experimental_remote_results.js +2 -0
- package/lib/services/experimental_remote_results.js.map +1 -0
- package/lib/services/github_image.d.ts +154 -0
- package/lib/services/github_image.d.ts.map +1 -0
- package/lib/services/github_image.js +2 -0
- package/lib/services/github_image.js.map +1 -0
- package/lib/services/github_jobs.d.ts +175 -0
- package/lib/services/github_jobs.d.ts.map +1 -0
- package/lib/services/github_jobs.js +2 -0
- package/lib/services/github_jobs.js.map +1 -0
- package/lib/services/github_profile.d.ts +288 -0
- package/lib/services/github_profile.d.ts.map +1 -0
- package/lib/services/github_profile.js +2 -0
- package/lib/services/github_profile.js.map +1 -0
- package/lib/services/gradle_cache.d.ts +117 -0
- package/lib/services/gradle_cache.d.ts.map +1 -0
- package/lib/services/gradle_cache.js +2 -0
- package/lib/services/gradle_cache.js.map +1 -0
- package/lib/services/httpcache.d.ts +117 -0
- package/lib/services/httpcache.d.ts.map +1 -0
- package/lib/services/httpcache.js +2 -0
- package/lib/services/httpcache.js.map +1 -0
- package/lib/services/iam_tenant.d.ts +373 -0
- package/lib/services/iam_tenant.d.ts.map +1 -0
- package/lib/services/iam_tenant.js +39 -0
- package/lib/services/iam_tenant.js.map +1 -0
- package/lib/services/iam_tenant_membership.d.ts +106 -0
- package/lib/services/iam_tenant_membership.d.ts.map +1 -0
- package/lib/services/iam_tenant_membership.js +2 -0
- package/lib/services/iam_tenant_membership.js.map +1 -0
- package/lib/services/iam_token.d.ts +249 -0
- package/lib/services/iam_token.d.ts.map +1 -0
- package/lib/services/iam_token.js +2 -0
- package/lib/services/iam_token.js.map +1 -0
- package/lib/services/image.d.ts +214 -0
- package/lib/services/image.d.ts.map +1 -0
- package/lib/services/image.js +2 -0
- package/lib/services/image.js.map +1 -0
- package/lib/services/index.d.ts +30 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +29 -0
- package/lib/services/private_devbox.d.ts +1156 -0
- package/lib/services/private_devbox.d.ts.map +1 -0
- package/lib/services/private_devbox.js +81 -0
- package/lib/services/private_devbox.js.map +1 -0
- package/lib/services/private_user_sessions.d.ts +137 -0
- package/lib/services/private_user_sessions.d.ts.map +1 -0
- package/lib/services/private_user_sessions.js +2 -0
- package/lib/services/private_user_sessions.js.map +1 -0
- package/lib/services/registry.d.ts +365 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +34 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/testing.d.ts +152 -0
- package/lib/services/testing.d.ts.map +1 -0
- package/lib/services/testing.js +2 -0
- package/lib/services/testing.js.map +1 -0
- package/lib/services/vault.d.ts +195 -0
- package/lib/services/vault.d.ts.map +1 -0
- package/lib/services/vault.js +2 -0
- package/lib/services/vault.js.map +1 -0
- package/lib/services.lazy/artifacts.js +1 -0
- package/lib/services.lazy/audit.js +1 -0
- package/lib/services.lazy/bazel.js +1 -0
- package/lib/services.lazy/bazel_cache.js +1 -0
- package/lib/services.lazy/builder.js +1 -0
- package/lib/services.lazy/buildkite_jobs.js +1 -0
- package/lib/services.lazy/buildkite_queue.js +1 -0
- package/lib/services.lazy/compute.js +4 -0
- package/lib/services.lazy/compute_command.js +1 -0
- package/lib/services.lazy/compute_observability.js +1 -0
- package/lib/services.lazy/compute_storage.js +4 -0
- package/lib/services.lazy/compute_usage.js +1 -0
- package/lib/services.lazy/egress.js +1 -0
- package/lib/services.lazy/experimental_compute_reservation.js +4 -0
- package/lib/services.lazy/experimental_remote_results.js +1 -0
- package/lib/services.lazy/github_image.js +1 -0
- package/lib/services.lazy/github_jobs.js +1 -0
- package/lib/services.lazy/github_profile.js +1 -0
- package/lib/services.lazy/gradle_cache.js +1 -0
- package/lib/services.lazy/httpcache.js +1 -0
- package/lib/services.lazy/iam_tenant.js +4 -0
- package/lib/services.lazy/iam_tenant_membership.js +1 -0
- package/lib/services.lazy/iam_token.js +1 -0
- package/lib/services.lazy/image.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/private_devbox.js +4 -0
- package/lib/services.lazy/private_user_sessions.js +1 -0
- package/lib/services.lazy/registry.js +4 -0
- package/lib/services.lazy/testing.js +1 -0
- package/lib/services.lazy/vault.js +1 -0
- package/lib/traits.d.ts +3 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +87 -3
- package/src/credentials.ts +164 -0
- package/src/errors.ts +47 -0
- package/src/index.ts +48 -0
- package/src/pagination.ts +1 -0
- package/src/protocol.ts +82 -0
- package/src/retry.ts +28 -0
- package/src/services/artifacts.ts +761 -0
- package/src/services/audit.ts +315 -0
- package/src/services/bazel.ts +415 -0
- package/src/services/bazel_cache.ts +211 -0
- package/src/services/builder.ts +568 -0
- package/src/services/buildkite_jobs.ts +222 -0
- package/src/services/buildkite_queue.ts +445 -0
- package/src/services/compute.ts +2794 -0
- package/src/services/compute_command.ts +212 -0
- package/src/services/compute_observability.ts +428 -0
- package/src/services/compute_storage.ts +1159 -0
- package/src/services/compute_usage.ts +730 -0
- package/src/services/egress.ts +508 -0
- package/src/services/experimental_compute_reservation.ts +1488 -0
- package/src/services/experimental_remote_results.ts +1157 -0
- package/src/services/github_image.ts +293 -0
- package/src/services/github_jobs.ts +381 -0
- package/src/services/github_profile.ts +721 -0
- package/src/services/gradle_cache.ts +263 -0
- package/src/services/httpcache.ts +263 -0
- package/src/services/iam_tenant.ts +1355 -0
- package/src/services/iam_tenant_membership.ts +245 -0
- package/src/services/iam_token.ts +780 -0
- package/src/services/image.ts +594 -0
- package/src/services/index.ts +30 -0
- package/src/services/private_devbox.ts +4217 -0
- package/src/services/private_user_sessions.ts +402 -0
- package/src/services/registry.ts +1234 -0
- package/src/services/testing.ts +386 -0
- package/src/services/vault.ts +514 -0
- package/src/traits.ts +36 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import { type NamespaceLabsOpError, type NamespaceLabsOpContext } from "../protocol.ts";
|
|
4
|
+
export type { NamespaceLabsOpError, NamespaceLabsOpContext };
|
|
5
|
+
declare const AlreadyExists_base: S.TaggedErrorClass<"AlreadyExists", {
|
|
6
|
+
readonly message: any;
|
|
7
|
+
readonly body: any;
|
|
8
|
+
}> & (new (...args: any[]) => {
|
|
9
|
+
"@distilled.cloud/error/categories": {
|
|
10
|
+
ConflictError: true;
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
export declare class AlreadyExists extends /*@__PURE__*/ AlreadyExists_base {
|
|
14
|
+
}
|
|
15
|
+
declare const FailedPrecondition_base: S.TaggedErrorClass<"FailedPrecondition", {
|
|
16
|
+
readonly message: any;
|
|
17
|
+
readonly body: any;
|
|
18
|
+
}> & (new (...args: any[]) => {
|
|
19
|
+
"@distilled.cloud/error/categories": {
|
|
20
|
+
BadRequestError: true;
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
export declare class FailedPrecondition extends /*@__PURE__*/ FailedPrecondition_base {
|
|
24
|
+
}
|
|
25
|
+
declare const InvalidArgument_base: S.TaggedErrorClass<"InvalidArgument", {
|
|
26
|
+
readonly message: any;
|
|
27
|
+
readonly body: any;
|
|
28
|
+
}> & (new (...args: any[]) => {
|
|
29
|
+
"@distilled.cloud/error/categories": {
|
|
30
|
+
BadRequestError: true;
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
export declare class InvalidArgument extends /*@__PURE__*/ InvalidArgument_base {
|
|
34
|
+
}
|
|
35
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
36
|
+
readonly message: any;
|
|
37
|
+
readonly body: any;
|
|
38
|
+
}> & (new (...args: any[]) => {
|
|
39
|
+
"@distilled.cloud/error/categories": {
|
|
40
|
+
BadRequestError: true;
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
44
|
+
}
|
|
45
|
+
declare const PermissionDenied_base: S.TaggedErrorClass<"PermissionDenied", {
|
|
46
|
+
readonly message: any;
|
|
47
|
+
readonly body: any;
|
|
48
|
+
}> & (new (...args: any[]) => {
|
|
49
|
+
"@distilled.cloud/error/categories": {
|
|
50
|
+
AuthError: true;
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
export declare class PermissionDenied extends /*@__PURE__*/ PermissionDenied_base {
|
|
54
|
+
}
|
|
55
|
+
declare const ResourceExhausted_base: S.TaggedErrorClass<"ResourceExhausted", {
|
|
56
|
+
readonly message: any;
|
|
57
|
+
readonly body: any;
|
|
58
|
+
}> & (new (...args: any[]) => {
|
|
59
|
+
"@distilled.cloud/error/categories": {
|
|
60
|
+
ThrottlingError: true;
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
export declare class ResourceExhausted extends /*@__PURE__*/ ResourceExhausted_base {
|
|
64
|
+
}
|
|
65
|
+
declare const Unauthenticated_base: S.TaggedErrorClass<"Unauthenticated", {
|
|
66
|
+
readonly message: any;
|
|
67
|
+
readonly body: any;
|
|
68
|
+
}> & (new (...args: any[]) => {
|
|
69
|
+
"@distilled.cloud/error/categories": {
|
|
70
|
+
AuthError: true;
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
export declare class Unauthenticated extends /*@__PURE__*/ Unauthenticated_base {
|
|
74
|
+
}
|
|
75
|
+
export interface GetDefaultPolicyRequest {
|
|
76
|
+
}
|
|
77
|
+
/** Controls whether image expiration is enforced. */
|
|
78
|
+
export type ExpirationEnforcement = "EXPIRATION_ENFORCEMENT_UNKNOWN" | "EXPIRATION_ENFORCEMENT_ENFORCE" | "EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE";
|
|
79
|
+
export interface GetDefaultPolicyResponse {
|
|
80
|
+
/** The current revision. */
|
|
81
|
+
revision: string;
|
|
82
|
+
/** The default expiration duration that is applied to newly created images. After this duration the image becomes inaccessible and the underlying blobs are deleted. Not set means no default policy is configured. Note: In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds. */
|
|
83
|
+
defaultExpiration?: string | undefined;
|
|
84
|
+
/** Controls whether expiration is enforced. */
|
|
85
|
+
expirationEnforcement: ExpirationEnforcement;
|
|
86
|
+
}
|
|
87
|
+
export interface GetImageRequest {
|
|
88
|
+
/** The repository containing the image. */
|
|
89
|
+
repository?: string | undefined;
|
|
90
|
+
/** The reference to the image. Can be either a tag or a digest. Digests have the form sha256:<hash>. */
|
|
91
|
+
reference?: string | undefined;
|
|
92
|
+
}
|
|
93
|
+
export type StringMap = {
|
|
94
|
+
[key: string]: string | undefined;
|
|
95
|
+
};
|
|
96
|
+
export interface ImageSizes {
|
|
97
|
+
/** Total size of the image in bytes. */
|
|
98
|
+
total: string;
|
|
99
|
+
/** Size per platform in bytes. Keys are platform identifiers (e.g., "linux/amd64"). */
|
|
100
|
+
perPlatform: StringMap;
|
|
101
|
+
}
|
|
102
|
+
/** Labels are key/value pairs attached to entities such as tenants. */
|
|
103
|
+
export interface Label {
|
|
104
|
+
/** A name is an string up to 63 bytes that matches the regular expression `^[a-z]([a-z0-9-.]*[a-z0-9])?$`. */
|
|
105
|
+
name: string;
|
|
106
|
+
/** Label values are arbitrary values up to 255 bytes. */
|
|
107
|
+
value: string;
|
|
108
|
+
}
|
|
109
|
+
export type LabelList = Array<Label>;
|
|
110
|
+
export type StringList = Array<string>;
|
|
111
|
+
export interface Image {
|
|
112
|
+
/** The repository containing the image. */
|
|
113
|
+
repository: string;
|
|
114
|
+
/** The digest of the image. */
|
|
115
|
+
digest: string;
|
|
116
|
+
/** When the image was created. */
|
|
117
|
+
createdAt?: string | undefined;
|
|
118
|
+
/** When the image expires. Not set if the image does not expire. */
|
|
119
|
+
expiresAt?: string | undefined;
|
|
120
|
+
/** Size information for the image. */
|
|
121
|
+
sizes?: ImageSizes | undefined;
|
|
122
|
+
/** If the image has been deleted, when it was deleted. */
|
|
123
|
+
deletedAt?: string | undefined;
|
|
124
|
+
/** Labels attached to this image. */
|
|
125
|
+
labels: LabelList;
|
|
126
|
+
/** Tags that reference this image. */
|
|
127
|
+
tags: StringList;
|
|
128
|
+
}
|
|
129
|
+
export interface GetImageResponse {
|
|
130
|
+
image?: Image | undefined;
|
|
131
|
+
}
|
|
132
|
+
export interface GetRepositoryPolicyRequest {
|
|
133
|
+
/** The repository to get the policy for. */
|
|
134
|
+
repository?: string | undefined;
|
|
135
|
+
}
|
|
136
|
+
export interface GetRepositoryPolicyResponse {
|
|
137
|
+
/** The current revision. */
|
|
138
|
+
revision: string;
|
|
139
|
+
/** The expiration duration that is applied to newly created images in this repository. Not set means the default policy is used. Note: In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds. */
|
|
140
|
+
expiration?: string | undefined;
|
|
141
|
+
/** Controls whether expiration is enforced for this repository. */
|
|
142
|
+
expirationEnforcement: ExpirationEnforcement;
|
|
143
|
+
}
|
|
144
|
+
export type StringMatcherOperator = "OPERATOR_UNKNOWN" | "IS_ANY_OF" | "IS_NOT";
|
|
145
|
+
export interface StringMatcher {
|
|
146
|
+
values?: StringList | undefined;
|
|
147
|
+
op?: StringMatcherOperator | (string & {}) | undefined;
|
|
148
|
+
}
|
|
149
|
+
export interface TimestampRange {
|
|
150
|
+
after?: string | undefined;
|
|
151
|
+
before?: string | undefined;
|
|
152
|
+
}
|
|
153
|
+
export type ListImagesRequestDeletionFilter = "DELETION_FILTER_UNSPECIFIED" | "INCLUDE_DELETED" | "EXCLUDE_DELETED";
|
|
154
|
+
export interface ListImagesRequest {
|
|
155
|
+
/** If a previous response returned a `pagination_cursor`, it can be specified to continue reading results with the same arguments as the original call. */
|
|
156
|
+
paginationCursor?: string | undefined;
|
|
157
|
+
/** The maximum number of entries to return as part of this ListImages request. A maximum number of entries may also be specified when `pagination_cursor` is set. We won't return more than `max_entries`, but may return fewer. */
|
|
158
|
+
maxEntries?: string | undefined;
|
|
159
|
+
/** Filter images by repository name. If not specified, images from all repositories are returned. */
|
|
160
|
+
matchRepository?: StringMatcher | undefined;
|
|
161
|
+
/** Filter images by creation timestamp range. */
|
|
162
|
+
createdAt?: TimestampRange | undefined;
|
|
163
|
+
/** Filter images by expiration timestamp range, with exclusive before/after bounds. When either bound is set, images that never expire are excluded. */
|
|
164
|
+
expiresAt?: TimestampRange | undefined;
|
|
165
|
+
/** Unspecified includes deleted images on the first request and inherits the original filter on cursor continuation. Explicit continuation values must match. */
|
|
166
|
+
deletionFilter?: ListImagesRequestDeletionFilter | (string & {}) | undefined;
|
|
167
|
+
}
|
|
168
|
+
export type ImageList = Array<Image>;
|
|
169
|
+
export interface ListImagesResponse {
|
|
170
|
+
images: ImageList;
|
|
171
|
+
/** If set, there are additional results. Pass the same cursor to a subsequent ListImages call to continue fetching results. */
|
|
172
|
+
paginationCursor: string;
|
|
173
|
+
}
|
|
174
|
+
export interface ListRepositoriesRequest {
|
|
175
|
+
/** If a previous response returned a `pagination_cursor`, it can be specified to continue reading results with the same arguments as the original call. */
|
|
176
|
+
paginationCursor?: string | undefined;
|
|
177
|
+
/** The maximum number of entries to return as part of this ListRepositories request. A maximum number of entries may also be specified when `pagination_cursor` is set. We won't return more than `max_entries`, but may return fewer. */
|
|
178
|
+
maxEntries?: string | undefined;
|
|
179
|
+
}
|
|
180
|
+
export interface Repository {
|
|
181
|
+
/** The name of the repository. */
|
|
182
|
+
name: string;
|
|
183
|
+
/** The timestamp of the last push to this repository. */
|
|
184
|
+
lastPush?: string | undefined;
|
|
185
|
+
}
|
|
186
|
+
export type RepositoryList = Array<Repository>;
|
|
187
|
+
export interface ListRepositoriesResponse {
|
|
188
|
+
repositories: RepositoryList;
|
|
189
|
+
/** If set, there are additional results. Pass the same cursor to a subsequent ListRepositories call to continue fetching results. */
|
|
190
|
+
paginationCursor: string;
|
|
191
|
+
}
|
|
192
|
+
export type Visibility = "UNKNOWN_VISIBILITY" | "PUBLIC" | "PARTNER";
|
|
193
|
+
export interface ListSharedImagesRequest {
|
|
194
|
+
matchRepositories?: StringMatcher | undefined;
|
|
195
|
+
/** If set to UNKNOWN_VISIBILITY any image is returned. */
|
|
196
|
+
matchVisibility?: Visibility | (string & {}) | undefined;
|
|
197
|
+
}
|
|
198
|
+
export interface SharedImage {
|
|
199
|
+
/** The unique identifier of this shared image. */
|
|
200
|
+
id: string;
|
|
201
|
+
/** The repository that contains the shared image. */
|
|
202
|
+
sharedRepository: string;
|
|
203
|
+
/** The digest of the shared image. */
|
|
204
|
+
sharedDigest: string;
|
|
205
|
+
/** When this shared image expires. */
|
|
206
|
+
expiresAt?: string | undefined;
|
|
207
|
+
/** The image reference used to access the shared image. */
|
|
208
|
+
imageRef: string;
|
|
209
|
+
visibility: Visibility;
|
|
210
|
+
/** The suffix that was provided when the shared image got created. */
|
|
211
|
+
suffix: string;
|
|
212
|
+
}
|
|
213
|
+
export type SharedImageList = Array<SharedImage>;
|
|
214
|
+
export interface ListSharedImagesResponse {
|
|
215
|
+
sharedImages: SharedImageList;
|
|
216
|
+
}
|
|
217
|
+
export interface ListTagsRequest {
|
|
218
|
+
/** If a previous response returned a `pagination_cursor`, it can be specified to continue reading results with the same arguments as the original call. */
|
|
219
|
+
paginationCursor?: string | undefined;
|
|
220
|
+
/** The maximum number of entries to return as part of this ListTags request. A maximum number of entries may also be specified when `pagination_cursor` is set. We won't return more than `max_entries`, but may return fewer. */
|
|
221
|
+
maxEntries?: string | undefined;
|
|
222
|
+
/** The repository to list tags from. */
|
|
223
|
+
repository?: string | undefined;
|
|
224
|
+
}
|
|
225
|
+
export interface Tag {
|
|
226
|
+
/** The tag name. */
|
|
227
|
+
tag: string;
|
|
228
|
+
/** The image this tag points to. */
|
|
229
|
+
image?: Image | undefined;
|
|
230
|
+
/** When the tag was created. */
|
|
231
|
+
createdAt?: string | undefined;
|
|
232
|
+
}
|
|
233
|
+
export type TagList = Array<Tag>;
|
|
234
|
+
export interface ListTagsResponse {
|
|
235
|
+
tags: TagList;
|
|
236
|
+
/** If set, there are additional results. Pass the same cursor to a subsequent ListTags call to continue fetching results. */
|
|
237
|
+
paginationCursor: string;
|
|
238
|
+
}
|
|
239
|
+
export interface ListTagVersionsRequest {
|
|
240
|
+
/** If a previous response returned a `pagination_cursor`, it can be specified to continue reading results with the same arguments as the original call. */
|
|
241
|
+
paginationCursor?: string | undefined;
|
|
242
|
+
/** The maximum number of entries to return as part of this ListTagVersions request. A maximum number of entries may also be specified when `pagination_cursor` is set. We won't return more than `max_entries`, but may return fewer. */
|
|
243
|
+
maxEntries?: string | undefined;
|
|
244
|
+
/** The repository containing the tag. */
|
|
245
|
+
repository?: string | undefined;
|
|
246
|
+
/** The tag to list versions for. */
|
|
247
|
+
tag?: string | undefined;
|
|
248
|
+
}
|
|
249
|
+
export interface ListTagVersionsResponse {
|
|
250
|
+
/** The versions of the tag, ordered from newest to oldest. */
|
|
251
|
+
versions: TagList;
|
|
252
|
+
/** If set, there are additional results. Pass the same cursor to a subsequent ListTagVersions call to continue fetching results. */
|
|
253
|
+
paginationCursor: string;
|
|
254
|
+
}
|
|
255
|
+
export interface ShareImageRequest {
|
|
256
|
+
/** The repository that contains the image to be shared. */
|
|
257
|
+
repository?: string | undefined;
|
|
258
|
+
/** The digest of the image to be shared. */
|
|
259
|
+
digest?: string | undefined;
|
|
260
|
+
/** When the shared image should expire. Not setting this results in indefinitely shared images. */
|
|
261
|
+
expiresAt?: string | undefined;
|
|
262
|
+
/** Defines who can access this shared image. */
|
|
263
|
+
visibility?: Visibility | (string & {}) | undefined;
|
|
264
|
+
/** The optional suffix does not have a practical purpose apart from making the image more operationally distinct. The resulting image reference will, for example, be: public.nscr.io/{meaningful_id}/{suffix} */
|
|
265
|
+
suffix?: string | undefined;
|
|
266
|
+
}
|
|
267
|
+
export interface ShareImageResponse {
|
|
268
|
+
/** The unique identifier of this shared image. */
|
|
269
|
+
id: string;
|
|
270
|
+
/** The repository that contains the shared image. */
|
|
271
|
+
sharedRepository: string;
|
|
272
|
+
/** The digest of the shared image. */
|
|
273
|
+
sharedDigest: string;
|
|
274
|
+
/** When this shared image expires. */
|
|
275
|
+
expiresAt?: string | undefined;
|
|
276
|
+
/** The image reference used to access the shared image. */
|
|
277
|
+
imageRef: string;
|
|
278
|
+
visibility: Visibility;
|
|
279
|
+
/** The suffix that was provided when the shared image got created. */
|
|
280
|
+
suffix: string;
|
|
281
|
+
}
|
|
282
|
+
export interface UnshareImageRequest {
|
|
283
|
+
/** The unique identifier of the shared image to unshare. */
|
|
284
|
+
id?: string | undefined;
|
|
285
|
+
}
|
|
286
|
+
export interface UnshareImageResponse {
|
|
287
|
+
}
|
|
288
|
+
export interface UpdateDefaultPolicyRequest {
|
|
289
|
+
/** Only update if revision matches. */
|
|
290
|
+
revision?: string | undefined;
|
|
291
|
+
/** The new default expiration duration for newly created images. A duration of at least 4h (=14400s) is required. In order to apply the expiration retroactively to existing images reach out to `support@namespace.so`. Note: In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds. */
|
|
292
|
+
defaultExpiration?: string | undefined;
|
|
293
|
+
/** Controls whether expiration is enforced. */
|
|
294
|
+
expirationEnforcement?: ExpirationEnforcement | (string & {}) | undefined;
|
|
295
|
+
}
|
|
296
|
+
export interface UpdateDefaultPolicyResponse {
|
|
297
|
+
}
|
|
298
|
+
export interface UpdateImageLifetimeRequest {
|
|
299
|
+
/** The repository containing the image. */
|
|
300
|
+
repository?: string | undefined;
|
|
301
|
+
/** The digest of the image of the form sha256:<hash>. */
|
|
302
|
+
digest?: string | undefined;
|
|
303
|
+
/** The duration the lifetime of this image should be extended by. If the image currently has no expiration then providing extend_by is not supported. Can not be used in combination with new_expiry. Note: In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds. */
|
|
304
|
+
extendBy?: string | undefined;
|
|
305
|
+
/** The minimum remaining duration this image should be alive for. Note: In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds. */
|
|
306
|
+
ensureMinimumRemaining?: string | undefined;
|
|
307
|
+
/** The new expiration timestamp (in UTC) at which the image expires. Can not be used in combination with extend_by. Note: In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. */
|
|
308
|
+
newExpiry?: string | undefined;
|
|
309
|
+
}
|
|
310
|
+
export interface UpdateImageLifetimeResponse {
|
|
311
|
+
/** A timestamp at which the image will expire. */
|
|
312
|
+
newExpiry?: string | undefined;
|
|
313
|
+
}
|
|
314
|
+
export interface UpdateRepositoryPolicyRequest {
|
|
315
|
+
/** The repository to configure. */
|
|
316
|
+
repository?: string | undefined;
|
|
317
|
+
/** Only update if revision matches. */
|
|
318
|
+
revision?: string | undefined;
|
|
319
|
+
/** The expiration duration for newly created images in this repository. A duration of at least 4h (=14400s) is required. If set, this overrides the default policy for images pushed to this repository. If not set, the default policy is used. Note: In JSON format, the Duration type is encoded as a string rather than an object, where the string ends in the suffix "s" (indicating seconds) and is preceded by the number of seconds, with nanoseconds expressed as fractional seconds. */
|
|
320
|
+
expiration?: string | undefined;
|
|
321
|
+
/** Controls whether expiration is enforced for this repository. */
|
|
322
|
+
expirationEnforcement?: ExpirationEnforcement | (string & {}) | undefined;
|
|
323
|
+
}
|
|
324
|
+
export interface UpdateRepositoryPolicyResponse {
|
|
325
|
+
}
|
|
326
|
+
export type GetDefaultPolicyError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
327
|
+
/** Returns the current default image expiration policy. */
|
|
328
|
+
export declare const getDefaultPolicy: API.OperationMethod<GetDefaultPolicyRequest, GetDefaultPolicyResponse, GetDefaultPolicyError, NamespaceLabsOpContext>;
|
|
329
|
+
export type GetImageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
330
|
+
/** Retrieves a specific image by repository and reference (tag or digest). ### Errors - If the image does not exist, a `NotFound` status is returned. */
|
|
331
|
+
export declare const getImage: API.OperationMethod<GetImageRequest, GetImageResponse, GetImageError, NamespaceLabsOpContext>;
|
|
332
|
+
export type GetRepositoryPolicyError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
333
|
+
/** Returns the current image expiration policy for a specific repository. */
|
|
334
|
+
export declare const getRepositoryPolicy: API.OperationMethod<GetRepositoryPolicyRequest, GetRepositoryPolicyResponse, GetRepositoryPolicyError, NamespaceLabsOpContext>;
|
|
335
|
+
export type ListImagesError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
336
|
+
/** Lists images in the registry that match the specified criteria. */
|
|
337
|
+
export declare const listImages: API.PaginatedOperationMethod<ListImagesRequest, ListImagesResponse, ListImagesError, NamespaceLabsOpContext, Image>;
|
|
338
|
+
export type ListRepositoriesError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
339
|
+
/** Lists all repositories in the registry. */
|
|
340
|
+
export declare const listRepositories: API.PaginatedOperationMethod<ListRepositoriesRequest, ListRepositoriesResponse, ListRepositoriesError, NamespaceLabsOpContext, Repository>;
|
|
341
|
+
export type ListSharedImagesError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
342
|
+
/** Lists shared images, optionally filtered by repository and visibility. */
|
|
343
|
+
export declare const listSharedImages: API.OperationMethod<ListSharedImagesRequest, ListSharedImagesResponse, ListSharedImagesError, NamespaceLabsOpContext>;
|
|
344
|
+
export type ListTagsError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
345
|
+
/** Lists all tags for a specific repository. */
|
|
346
|
+
export declare const listTags: API.PaginatedOperationMethod<ListTagsRequest, ListTagsResponse, ListTagsError, NamespaceLabsOpContext, Tag>;
|
|
347
|
+
export type ListTagVersionsError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
348
|
+
/** Lists all versions of a specific tag in a repository, ordered from newest to oldest. A tag can point to different images over time as it is overwritten by new pushes. */
|
|
349
|
+
export declare const listTagVersions: API.PaginatedOperationMethod<ListTagVersionsRequest, ListTagVersionsResponse, ListTagVersionsError, NamespaceLabsOpContext, Tag>;
|
|
350
|
+
export type ShareImageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
351
|
+
/** Shares an image either publicly or with tenants of partner accounts. Returns the shared image metadata, including the public image reference that can be used to pull the image. ### Errors - If the image does not exist, a `NotFound` status is returned. */
|
|
352
|
+
export declare const shareImage: API.OperationMethod<ShareImageRequest, ShareImageResponse, ShareImageError, NamespaceLabsOpContext>;
|
|
353
|
+
export type UnshareImageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
354
|
+
/** Removes an existing share, making the shared image reference inaccessible. ### Errors - If the share does not exist, a `NotFound` status is returned. */
|
|
355
|
+
export declare const unshareImage: API.OperationMethod<UnshareImageRequest, UnshareImageResponse, UnshareImageError, NamespaceLabsOpContext>;
|
|
356
|
+
export type UpdateDefaultPolicyError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
357
|
+
/** Updates the default image expiration policy for the workspace. The policy applies to newly created images only. */
|
|
358
|
+
export declare const updateDefaultPolicy: API.OperationMethod<UpdateDefaultPolicyRequest, UpdateDefaultPolicyResponse, UpdateDefaultPolicyError, NamespaceLabsOpContext>;
|
|
359
|
+
export type UpdateImageLifetimeError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
360
|
+
/** Extends or updates the expiration of a single image. ### Errors - If the image does not exist, a `NotFound` status is returned. */
|
|
361
|
+
export declare const updateImageLifetime: API.OperationMethod<UpdateImageLifetimeRequest, UpdateImageLifetimeResponse, UpdateImageLifetimeError, NamespaceLabsOpContext>;
|
|
362
|
+
export type UpdateRepositoryPolicyError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
363
|
+
/** Updates the image expiration policy for a specific repository. Repository-level policies override the default policy. */
|
|
364
|
+
export declare const updateRepositoryPolicy: API.OperationMethod<UpdateRepositoryPolicyRequest, UpdateRepositoryPolicyResponse, UpdateRepositoryPolicyError, NamespaceLabsOpContext>;
|
|
365
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/services/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAIvD,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC5B,MAAM,gBAAgB,CAAC;AAMxB,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAC;;;;;;;;;AAc7D,qBAAa,aACX,SAAQ,aAAa,CAAC,kBAMrB;CAAG;;;;;;;;;AAEN,qBAAa,kBACX,SAAQ,aAAa,CAAC,uBAMrB;CAAG;;;;;;;;;AAEN,qBAAa,eACX,SAAQ,aAAa,CAAC,oBAMrB;CAAG;;;;;;;;;AAEN,qBAAa,QACX,SAAQ,aAAa,CAAC,aAMrB;CAAG;;;;;;;;;AAEN,qBAAa,gBACX,SAAQ,aAAa,CAAC,qBAMrB;CAAG;;;;;;;;;AAEN,qBAAa,iBACX,SAAQ,aAAa,CAAC,sB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AAM,MAAM,wBAAwB,GAChC,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,sHAAsH;AACtH,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,eAAe,CACnD,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,CAkBrB,CAAC;AAEJ,MAAM,MAAM,wBAAwB,GAChC,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,sIAAsI;AACtI,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,eAAe,CACnD,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,CAkBrB,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GACnC,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,4HAA4H;AAC5H,eAAO,MAAM,sBAAsB,EAAE,GAAG,CAAC,eAAe,CACtD,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,sBAAsB,CAkBrB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{Ac as e,Ba as t,Dc as n,Fc as r,Kc as i,La as a,Lc as o,a as s,c,e as l,errors$UnknownNamespaceLabsError as u,k as d,l as f,lc as p,m,n as h,pagination$paginateCursor as g,protocol$NamespaceLabsProtocol as _,retry$Retry as v,traits$Http as y,traits$applyErrorMatchers as b,vc as x,xa as S,xc as C,ya as w,yc as T}from"../_bundle/sdk.js";const E={system:`namespacelabs-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Namespacelabs`,service:`ContainerRegistryService`,propagate:`w3c`};const D=/*@__PURE__*/ l(function AlreadyExists(i){return f(i,new.target,[`$5($4()("AlreadyExists",{message:$2,body:$3}).pipe($1),[{status:409,body:{"/code":"already_exists"}}])`,[r,t,C,n,e,b]])});const O=/*@__PURE__*/ l(function FailedPrecondition(t){return f(t,new.target,[`$5($4()("FailedPrecondition",{message:$2,body:$3}).pipe($1),[{status:400,body:{"/code":"failed_precondition"}}])`,[r,w,C,n,e,b]])});const k=/*@__PURE__*/ l(function InvalidArgument(t){return f(t,new.target,[`$5($4()("InvalidArgument",{message:$2,body:$3}).pipe($1),[{status:400,body:{"/code":"invalid_argument"}}])`,[r,w,C,n,e,b]])});const A=/*@__PURE__*/ l(function NotFound(t){return f(t,new.target,[`$5($4()("NotFound",{message:$2,body:$3}).pipe($1),[{status:404}])`,[r,w,C,n,e,b]])});const j=/*@__PURE__*/ l(function PermissionDenied(t){return f(t,new.target,[`$5($4()("PermissionDenied",{message:$2,body:$3}).pipe($1),[{status:403}])`,[r,S,C,n,e,b]])});const M=/*@__PURE__*/ l(function ResourceExhausted(t){return f(t,new.target,[`$5($4()("ResourceExhausted",{message:$2,body:$3}).pipe($1),[{status:429}])`,[r,a,C,n,e,b]])});const N=/*@__PURE__*/ l(function Unauthenticated(t){return f(t,new.target,[`$5($4()("Unauthenticated",{message:$2,body:$3}).pipe($1),[{status:401}])`,[r,S,C,n,e,b]])});const P=/*@__PURE__*/ m(e=>e===s?d(`GetDefaultPolicy`,`{input:#1,output:#2,errors:[$6,$7,$8,$9,$10,$11,$12,$13],protocol:$14,retry:$15,telemetry:$16,span:"%"};$3(>3)@"%Request";$3(>4)@"%Response";$2({}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}));$2({revision:$4,defaultExpiration:$5($4),expirationEnforcement:$4})`,[r,y,T,o,C,i,k,O,N,j,A,D,M,u,_,v,E]):c(P,e));const F=/*@__PURE__*/ m(e=>e===s?d(`GetImage`,`{input:#1,output:#2,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({repository:$3($2),reference:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}));$4({image:$3(#6:4)})`,[r,y,C,i,T,o,__d5,k,O,N,j,A,D,M,u,_,v,E]):c(F,e));const I=/*@__PURE__*/ m(e=>e===s?d(`GetRepositoryPolicy`,`{input:#1,output:#2,errors:[$6,$7,$8,$9,$10,$11,$12,$13],protocol:$14,retry:$15,telemetry:$16,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({repository:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}));$4({revision:$2,expiration:$3($2),expirationEnforcement:$2})`,[r,y,C,i,T,o,k,O,N,j,A,D,M,u,_,v,E]):c(I,e));const L=/*@__PURE__*/ h(e=>e===s?d(`ListImages`,`{input:#2,output:#4,errors:[$9,$10,$11,$12,$13,$14,$15,$16],protocol:$17,retry:$18,telemetry:$19,span:"%",pagination:{mode:"cursor",inputToken:"paginationCursor",outputToken:"paginationCursor",items:"images"},strategy:$20};$4(>5)@"TimestampRange";$4(>6)@"%Request";$8(#7:4);$4(>7)@"%Response";$3({after:$2($1),before:$2($1)});$3({paginationCursor:$2($1),maxEntries:$2($1),matchRepository:$2(#6:0),createdAt:$2(#1),expiresAt:$2(#1),deletionFilter:$2($1)}).pipe($5({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}));$3({images:#3,paginationCursor:$1})`,[r,C,i,T,o,y,__d0,__d5,p,k,O,N,j,A,D,M,u,_,v,E,g]):c(L,e));const R=/*@__PURE__*/ h(e=>e===s?d(`ListRepositories`,`{input:#1,output:#4,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%",pagination:{mode:"cursor",inputToken:"paginationCursor",outputToken:"paginationCursor",items:"repositories"},strategy:$18};$5(>5)@"%Request";$5(>6)@"Repository";$6(#2);$5(>7)@"%Response";$4({paginationCursor:$3($2),maxEntries:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}));$4({name:$2,lastPush:$3($2)});$4({repositories:#3,paginationCursor:$2})`,[r,y,C,i,T,o,p,k,O,N,j,A,D,M,u,_,v,E,g]):c(R,e));const z=/*@__PURE__*/ m(e=>e===s?d(`ListSharedImages`,`{input:#1,output:#3,errors:[$9,$10,$11,$12,$13,$14,$15,$16],protocol:$17,retry:$18,telemetry:$19,span:"%"};$6(>4)@"%Request";$8(#7:0);$6(>5)@"%Response";$5({matchRepositories:$3(#2:0),matchVisibility:$3($4)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}));$5({sharedImages:#2})`,[r,y,__d0,i,C,T,o,__d1,p,k,O,N,j,A,D,M,u,_,v,E]):c(z,e));const B=/*@__PURE__*/ h(e=>e===s?d(`ListTags`,`{input:#1,output:#2,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%",pagination:{mode:"cursor",inputToken:"paginationCursor",outputToken:"paginationCursor",items:"tags"},strategy:$18};$5(>3)@"%Request";$5(>4)@"%Response";$4({paginationCursor:$3($2),maxEntries:$3($2),repository:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}));$4({tags:#6:1,paginationCursor:$2})`,[r,y,C,i,T,o,__d2,k,O,N,j,A,D,M,u,_,v,E,g]):c(B,e));const V=/*@__PURE__*/ h(e=>e===s?d(`ListTagVersions`,`{input:#1,output:#2,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%",pagination:{mode:"cursor",inputToken:"paginationCursor",outputToken:"paginationCursor",items:"versions"},strategy:$18};$5(>3)@"%Request";$5(>4)@"%Response";$4({paginationCursor:$3($2),maxEntries:$3($2),repository:$3($2),tag:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}));$4({versions:#6:1,paginationCursor:$2})`,[r,y,C,i,T,o,__d2,k,O,N,j,A,D,M,u,_,v,E,g]):c(V,e));const H=/*@__PURE__*/ m(e=>e===s?d(`ShareImage`,`{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$5(>2)@"%Request";$4({repository:$3($2),digest:$3($2),expiresAt:$3($2),visibility:$3($2),suffix:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}))`,[r,y,C,i,T,o,__d1,k,O,N,j,A,D,M,u,_,v,E]):c(H,e));const U=/*@__PURE__*/ m(e=>e===s?d(`UnshareImage`,`{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$5(>2)@"%Request";$4({id:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}))`,[r,y,C,i,T,o,__d3,k,O,N,j,A,D,M,u,_,v,E]):c(U,e));const W=/*@__PURE__*/ m(e=>e===s?d(`UpdateDefaultPolicy`,`{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$5(>2)@"%Request";$4({revision:$3($2),defaultExpiration:$3($2),expirationEnforcement:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}))`,[r,y,C,i,T,o,__d3,k,O,N,j,A,D,M,u,_,v,E]):c(W,e));const G=/*@__PURE__*/ m(e=>e===s?d(`UpdateImageLifetime`,`{input:#1,output:#2,errors:[$6,$7,$8,$9,$10,$11,$12,$13],protocol:$14,retry:$15,telemetry:$16,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({repository:$3($2),digest:$3($2),extendBy:$3($2),ensureMinimumRemaining:$3($2),newExpiry:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}));$4({newExpiry:$3($2)})`,[r,y,C,i,T,o,k,O,N,j,A,D,M,u,_,v,E]):c(G,e));const K=/*@__PURE__*/ m(e=>e===s?d(`UpdateRepositoryPolicy`,`{input:#1,output:#6:0,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$5(>2)@"%Request";$4({repository:$3($2),revision:$3($2),expiration:$3($2),expirationEnforcement:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.registry.v1beta.ContainerRegistryService/%",code:200}))`,[r,y,C,i,T,o,__d3,k,O,N,j,A,D,M,u,_,v,E]):c(K,e));function __d0(){return[`$5(>1)@"StringMatcher";$4({values:$2(#1:0),op:$2($3)})`,[r,__d4,i,C,T,o]]}function __d1(){return[`$4(>1)@"SharedImage";$3({id:$1,sharedRepository:$1,sharedDigest:$1,expiresAt:$2($1),imageRef:$1,visibility:$1,suffix:$1})`,[r,C,i,T,o]]}function __d2(){return[`$5(>2)@"Tag";$6(#0);$4({tag:$1,image:$3(#2:4),createdAt:$3($1)})`,[r,C,__d5,i,T,o,p]]}function __d3(){return[`$2(>1)@"UnshareImageResponse";$1({})`,[r,T,o]]}function __d4(){return[`$2($1)`,[r,C,p]]}function __d5(){return[`$2($1,$1);$4(>5)@"ImageSizes";$4(>6)@"Label";$5(#2);$4(>7)@"Image";$3({total:$1,perPlatform:#0});$3({name:$1,value:$1});$3({repository:$1,digest:$1,createdAt:$6($1),expiresAt:$6($1),sizes:$6(#1),deletedAt:$6($1),labels:#3,tags:#7:0})`,[r,C,x,T,o,p,i,__d4]]}export{D as AlreadyExists,O as FailedPrecondition,k as InvalidArgument,A as NotFound,j as PermissionDenied,M as ResourceExhausted,N as Unauthenticated,P as getDefaultPolicy,F as getImage,I as getRepositoryPolicy,L as listImages,R as listRepositories,z as listSharedImages,V as listTagVersions,B as listTags,H as shareImage,U as unshareImage,W as updateDefaultPolicy,G as updateImageLifetime,K as updateRepositoryPolicy};
|
|
2
|
+
/*
|
|
3
|
+
26 27
|
|
4
|
+
e:0:Ac t:0:Ba n:0:Dc r:0:Fc i:0:Kc a:0:La o:0:Lc s:0:a c:0:c l:0:e u:0:errors$UnknownNamespaceLabsError d:0:k f:0:l p:0:lc m:0:m h:0:n g:0:pagination$paginateCursor _:0:protocol$NamespaceLabsProtocol v:0:retry$Retry y:0:traits$Http b:0:traits$applyErrorMatchers x:0:vc S:0:xa C:0:xc w:0:ya T:0:yc
|
|
5
|
+
00000000280004b0006m0008y000ba000dq000fv000i7000kc000mj000ox000r8000tp000uj000vd000w7000x4000y2000z0000zy0010a0011c0012b0013f0014a001550016b
|
|
6
|
+
2 1hm 1si P|=GetDefaultPolicy;1ih 1r9;3,j,p,6,n,4,15,14,19,17,16,13,18,a,h,i,1a
|
|
7
|
+
2 1t8 23p F|=GetImage;1tv 22b;3,j,n,4,p,6,1g,15,14,19,17,16,13,18,a,h,i,1a
|
|
8
|
+
2 24f 2fo I|=GetRepositoryPolicy;25d 2ef;3,j,n,4,p,6,15,14,19,17,16,13,18,a,h,i,1a
|
|
9
|
+
2 2ge 2z5 L|=ListImages;2h3 2xi;3,n,4,p,6,j,1b,1g,d,15,14,19,17,16,13,18,a,h,i,1a,g
|
|
10
|
+
2 2zv 3ga R|=ListRepositories;30q 3ex;3,j,n,4,p,6,d,15,14,19,17,16,13,18,a,h,i,1a,g
|
|
11
|
+
2 3h0 3sn z|=ListSharedImages;3hv 3r2;3,j,1b,4,n,p,6,1c,d,15,14,19,17,16,13,18,a,h,i,1a
|
|
12
|
+
2 3td 486 B|=ListTags;3u0 46q;3,j,n,4,p,6,1d,15,14,19,17,16,13,18,a,h,i,1a,g
|
|
13
|
+
2 48w 4of V|=ListTagVersions;49q 4mz;3,j,n,4,p,6,1d,15,14,19,17,16,13,18,a,h,i,1a,g
|
|
14
|
+
2 4p5 4zw H|=ShareImage;4pu 4yi;3,j,n,4,p,6,1c,15,14,19,17,16,13,18,a,h,i,1a
|
|
15
|
+
2 50m 59g U|=UnshareImage;51d 582;3,j,n,4,p,6,1e,15,14,19,17,16,13,18,a,h,i,1a
|
|
16
|
+
2 5a6 5kv W|=UpdateDefaultPolicy;5b4 5jh;3,j,n,4,p,6,1e,15,14,19,17,16,13,18,a,h,i,1a
|
|
17
|
+
2 5ll 5xx G|=UpdateImageLifetime;5mj 5wo;3,j,n,4,p,6,15,14,19,17,16,13,18,a,h,i,1a
|
|
18
|
+
2 5yn 69q K|=UpdateRepositoryPolicy;5zo 68c;3,j,n,4,p,6,1e,15,14,19,17,16,13,18,a,h,i,1a
|
|
19
|
+
3 i9 mz D|=;jn mh;3,1,n,2,0,k
|
|
20
|
+
3 np su O|=;p8 sc;3,o,n,2,0,k
|
|
21
|
+
3 tk yg k|=;v0 xy;3,o,n,2,0,k
|
|
22
|
+
3 z6 12q A|=;10f 128;3,o,n,2,0,k
|
|
23
|
+
3 13g 17g j|=;14x 16y;3,m,n,2,0,k
|
|
24
|
+
3 186 1c8 M|=;19o 1bq;3,5,n,2,0,k
|
|
25
|
+
3 1cy 1gw N|=;1ee 1ge;3,m,n,2,0,k
|
|
26
|
+
0 9s hk E||
|
|
27
|
+
1 69s 6ci __d0|=;6ag 6by;3,1f,4,n,p,6
|
|
28
|
+
1 6ci 6gy __d1|=;6d6 6gj;3,n,4,p,6
|
|
29
|
+
1 6gy 6k0 __d2|=;6hm 6je;3,n,1g,4,p,6,d
|
|
30
|
+
1 6k0 6lz __d3|=;6ko 6lo;3,p,6
|
|
31
|
+
1 6lz 6n4 __d4|=;6mn 6mt;3,n,d
|
|
32
|
+
1 6n4 6ux __d5|=;6ns 6u9;3,n,l,p,6,d,4,1f
|
|
33
|
+
*/
|
|
34
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","names":["API.newError","__L.at","C.withConflictError","S.String","S.Unknown","S.TaggedError","T.applyErrorMatchers","C.withBadRequestError","C.withAuthError","C.withThrottlingError","API.D","API.named","T.Http","S.Struct","S.suspend","S.optional","Retry.Retry","API.call","S.Array","S.Record","TaggedError","withConflictError","Unknown","at","optional","withThrottlingError","suspend","D","error","UnknownNamespaceLabsError","named","newError","Array","opPaginated","paginateCursor","NamespaceLabsProtocol","Retry","Http","applyErrorMatchers","Record","withAuthError","String","withBadRequestError","Struct","TELEMETRY","AlreadyExists","FailedPrecondition","i","InvalidArgument","NotFound","PermissionDenied","ResourceExhausted","Unauthenticated","getDefaultPolicy","call","getImage","getRepositoryPolicy","listImages","listRepositories","listSharedImages","listTags","listTagVersions","shareImage","unshareImage","updateDefaultPolicy","updateImageLifetime","updateRepositoryPolicy"],"sources":["../../src/services/registry.ts"],"mappings":"wVAkBA,MAAM4C,EAAY,CAChB,OAAQ,oBACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,CACrF,EACA,OAAQ,gBACR,QAAS,2BACT,UAAW,KACb,EAEA,MAAaC,EAAmC,gBAAU,SAAS,cAAc,EAAa,CAC5F,OAAO7C,EAAa,EAAG,WAAY,CAAC,yGAA0G,CAACC,EAAQC,EAAqBC,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACxO,CAAC,EAED,MAAawC,EAAwC,gBAAU,SAAS,mBAAmB,EAAa,CACtG,OAAO9C,EAAa+C,EAAG,WAAY,CAAC,mHAAoH,CAAC9C,EAAQM,EAAuBJ,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACpP,CAAC,EAED,MAAa0C,EAAqC,gBAAU,SAAS,gBAAgB,EAAa,CAChG,OAAOhD,EAAa+C,EAAG,WAAY,CAAC,6GAA8G,CAAC9C,EAAQM,EAAuBJ,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core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import { type NamespaceLabsOpError, type NamespaceLabsOpContext } from "../protocol.ts";
|
|
4
|
+
export type { NamespaceLabsOpError, NamespaceLabsOpContext };
|
|
5
|
+
declare const AlreadyExists_base: S.TaggedErrorClass<"AlreadyExists", {
|
|
6
|
+
readonly message: any;
|
|
7
|
+
readonly body: any;
|
|
8
|
+
}> & (new (...args: any[]) => {
|
|
9
|
+
"@distilled.cloud/error/categories": {
|
|
10
|
+
ConflictError: true;
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
export declare class AlreadyExists extends /*@__PURE__*/ AlreadyExists_base {
|
|
14
|
+
}
|
|
15
|
+
declare const FailedPrecondition_base: S.TaggedErrorClass<"FailedPrecondition", {
|
|
16
|
+
readonly message: any;
|
|
17
|
+
readonly body: any;
|
|
18
|
+
}> & (new (...args: any[]) => {
|
|
19
|
+
"@distilled.cloud/error/categories": {
|
|
20
|
+
BadRequestError: true;
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
export declare class FailedPrecondition extends /*@__PURE__*/ FailedPrecondition_base {
|
|
24
|
+
}
|
|
25
|
+
declare const InvalidArgument_base: S.TaggedErrorClass<"InvalidArgument", {
|
|
26
|
+
readonly message: any;
|
|
27
|
+
readonly body: any;
|
|
28
|
+
}> & (new (...args: any[]) => {
|
|
29
|
+
"@distilled.cloud/error/categories": {
|
|
30
|
+
BadRequestError: true;
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
export declare class InvalidArgument extends /*@__PURE__*/ InvalidArgument_base {
|
|
34
|
+
}
|
|
35
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
36
|
+
readonly message: any;
|
|
37
|
+
readonly body: any;
|
|
38
|
+
}> & (new (...args: any[]) => {
|
|
39
|
+
"@distilled.cloud/error/categories": {
|
|
40
|
+
BadRequestError: true;
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
44
|
+
}
|
|
45
|
+
declare const PermissionDenied_base: S.TaggedErrorClass<"PermissionDenied", {
|
|
46
|
+
readonly message: any;
|
|
47
|
+
readonly body: any;
|
|
48
|
+
}> & (new (...args: any[]) => {
|
|
49
|
+
"@distilled.cloud/error/categories": {
|
|
50
|
+
AuthError: true;
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
export declare class PermissionDenied extends /*@__PURE__*/ PermissionDenied_base {
|
|
54
|
+
}
|
|
55
|
+
declare const ResourceExhausted_base: S.TaggedErrorClass<"ResourceExhausted", {
|
|
56
|
+
readonly message: any;
|
|
57
|
+
readonly body: any;
|
|
58
|
+
}> & (new (...args: any[]) => {
|
|
59
|
+
"@distilled.cloud/error/categories": {
|
|
60
|
+
ThrottlingError: true;
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
export declare class ResourceExhausted extends /*@__PURE__*/ ResourceExhausted_base {
|
|
64
|
+
}
|
|
65
|
+
declare const Unauthenticated_base: S.TaggedErrorClass<"Unauthenticated", {
|
|
66
|
+
readonly message: any;
|
|
67
|
+
readonly body: any;
|
|
68
|
+
}> & (new (...args: any[]) => {
|
|
69
|
+
"@distilled.cloud/error/categories": {
|
|
70
|
+
AuthError: true;
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
export declare class Unauthenticated extends /*@__PURE__*/ Unauthenticated_base {
|
|
74
|
+
}
|
|
75
|
+
export type TestRunStatus = "TEST_RUN_STATUS_UNKNOWN" | "TEST_RUN_STATUS_IN_PROGRESS" | "TEST_RUN_STATUS_COMPLETED" | "TEST_RUN_STATUS_FAILED" | "TEST_RUN_STATUS_CANCELLED";
|
|
76
|
+
export interface TestRunSummary {
|
|
77
|
+
totalTargets?: number | undefined;
|
|
78
|
+
passedTargets?: number | undefined;
|
|
79
|
+
failedTargets?: number | undefined;
|
|
80
|
+
skippedTargets?: number | undefined;
|
|
81
|
+
errorTargets?: number | undefined;
|
|
82
|
+
totalTestCases?: number | undefined;
|
|
83
|
+
passedTestCases?: number | undefined;
|
|
84
|
+
failedTestCases?: number | undefined;
|
|
85
|
+
skippedTestCases?: number | undefined;
|
|
86
|
+
totalDuration?: string | undefined;
|
|
87
|
+
}
|
|
88
|
+
export interface CompleteTestRunRequest {
|
|
89
|
+
/** The run ID to mark as complete. */
|
|
90
|
+
runId?: string | undefined;
|
|
91
|
+
/** Overall status of the test run. */
|
|
92
|
+
status?: TestRunStatus | (string & {}) | undefined;
|
|
93
|
+
/** Optional summary information. */
|
|
94
|
+
summary?: TestRunSummary | undefined;
|
|
95
|
+
/** Optional completed timestamp. If not provided, defaults to now. */
|
|
96
|
+
completedAt?: string | undefined;
|
|
97
|
+
}
|
|
98
|
+
export interface CompleteTestRunResponse {
|
|
99
|
+
}
|
|
100
|
+
/** Labels are key/value pairs attached to entities such as tenants. */
|
|
101
|
+
export interface Label {
|
|
102
|
+
/** A name is an string up to 63 bytes that matches the regular expression `^[a-z]([a-z0-9-.]*[a-z0-9])?$`. */
|
|
103
|
+
name?: string | undefined;
|
|
104
|
+
/** Label values are arbitrary values up to 255 bytes. */
|
|
105
|
+
value?: string | undefined;
|
|
106
|
+
}
|
|
107
|
+
export type LabelList = Array<Label>;
|
|
108
|
+
export type StringMap = {
|
|
109
|
+
[key: string]: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
export interface TestEnvironment {
|
|
112
|
+
/** E.g., "linux/amd64", "darwin/arm64" */
|
|
113
|
+
platform?: string | undefined;
|
|
114
|
+
/** E.g., "go1.21.0", "python3.11" */
|
|
115
|
+
runtimeVersion?: string | undefined;
|
|
116
|
+
/** Optional environment variables or configuration. */
|
|
117
|
+
properties?: StringMap | undefined;
|
|
118
|
+
}
|
|
119
|
+
export interface CreateTestRunRequest {
|
|
120
|
+
/** Optional identifier for the test run (e.g., commit SHA, build ID). */
|
|
121
|
+
runIdentifier?: string | undefined;
|
|
122
|
+
/** Optional user-provided labels for the test run. */
|
|
123
|
+
labels?: LabelList | undefined;
|
|
124
|
+
/** Optional environment information. */
|
|
125
|
+
environment?: TestEnvironment | undefined;
|
|
126
|
+
}
|
|
127
|
+
export interface CreateTestRunResponse {
|
|
128
|
+
runId: string;
|
|
129
|
+
}
|
|
130
|
+
export interface GetTestRunRequest {
|
|
131
|
+
runId?: string | undefined;
|
|
132
|
+
}
|
|
133
|
+
export interface GetTestRunResponse {
|
|
134
|
+
runId: string;
|
|
135
|
+
runIdentifier: string;
|
|
136
|
+
status: TestRunStatus;
|
|
137
|
+
createdAt?: string | undefined;
|
|
138
|
+
completedAt?: string | undefined;
|
|
139
|
+
environment?: TestEnvironment | undefined;
|
|
140
|
+
summary?: TestRunSummary | undefined;
|
|
141
|
+
metadata: StringMap;
|
|
142
|
+
}
|
|
143
|
+
export type CompleteTestRunError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
144
|
+
/** Marks a test run as complete. */
|
|
145
|
+
export declare const completeTestRun: API.OperationMethod<CompleteTestRunRequest, CompleteTestRunResponse, CompleteTestRunError, NamespaceLabsOpContext>;
|
|
146
|
+
export type CreateTestRunError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
147
|
+
/** Creates a new test run and returns a run ID for subsequent operations. */
|
|
148
|
+
export declare const createTestRun: API.OperationMethod<CreateTestRunRequest, CreateTestRunResponse, CreateTestRunError, NamespaceLabsOpContext>;
|
|
149
|
+
export type GetTestRunError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
|
|
150
|
+
/** Retrieves information about a test run. */
|
|
151
|
+
export declare const getTestRun: API.OperationMethod<GetTestRunRequest, GetTestRunResponse, GetTestRunError, NamespaceLabsOpContext>;
|
|
152
|
+
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -0,0 +1 @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U,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,CAkBrB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ac as e,Ba as t,Dc as n,Fc as r,Kc as i,La as a,Lc as o,a as s,c,e as l,errors$UnknownNamespaceLabsError as u,k as d,l as f,lc as p,m,protocol$NamespaceLabsProtocol as h,retry$Retry as g,traits$Http as _,traits$applyErrorMatchers as v,uc as y,vc as b,xa as x,xc as S,ya as C,yc as w}from"../_bundle/sdk.js";const T={system:`namespacelabs-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Namespacelabs`,service:`TestResultsService`,propagate:`w3c`};const E=/*@__PURE__*/ l(function AlreadyExists(i){return f(i,new.target,[`$5($4()("AlreadyExists",{message:$2,body:$3}).pipe($1),[{status:409,body:{"/code":"already_exists"}}])`,[r,t,S,n,e,v]])});const D=/*@__PURE__*/ l(function FailedPrecondition(t){return f(t,new.target,[`$5($4()("FailedPrecondition",{message:$2,body:$3}).pipe($1),[{status:400,body:{"/code":"failed_precondition"}}])`,[r,C,S,n,e,v]])});const O=/*@__PURE__*/ l(function InvalidArgument(t){return f(t,new.target,[`$5($4()("InvalidArgument",{message:$2,body:$3}).pipe($1),[{status:400,body:{"/code":"invalid_argument"}}])`,[r,C,S,n,e,v]])});const k=/*@__PURE__*/ l(function NotFound(t){return f(t,new.target,[`$5($4()("NotFound",{message:$2,body:$3}).pipe($1),[{status:404}])`,[r,C,S,n,e,v]])});const A=/*@__PURE__*/ l(function PermissionDenied(t){return f(t,new.target,[`$5($4()("PermissionDenied",{message:$2,body:$3}).pipe($1),[{status:403}])`,[r,x,S,n,e,v]])});const j=/*@__PURE__*/ l(function ResourceExhausted(t){return f(t,new.target,[`$5($4()("ResourceExhausted",{message:$2,body:$3}).pipe($1),[{status:429}])`,[r,a,S,n,e,v]])});const M=/*@__PURE__*/ l(function Unauthenticated(t){return f(t,new.target,[`$5($4()("Unauthenticated",{message:$2,body:$3}).pipe($1),[{status:401}])`,[r,x,S,n,e,v]])});const N=/*@__PURE__*/ m(e=>e===s?d(`CompleteTestRun`,`{input:#1,output:#2,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({runId:$3($2),status:$3($2),summary:$3(#4:0),completedAt:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.testing.v1beta.TestResultsService/%",code:200}));$5({})`,[r,_,S,i,__d0,w,o,O,D,M,A,k,E,j,u,h,g,T]):c(N,e));const P=/*@__PURE__*/ m(e=>e===s?d(`CreateTestRun`,`{input:#3,output:#4,errors:[$8,$9,$10,$11,$12,$13,$14,$15],protocol:$16,retry:$17,telemetry:$18,span:"%"};$4(>5)@"Label";$5(#1);$4(>6)@"%Request";$4(>7)@"%Response";$3({name:$2($1),value:$2($1)});$3({runIdentifier:$2($1),labels:$2(#2),environment:$2(#7:1)}).pipe($6({method:"POST",uri:"/namespace.cloud.testing.v1beta.TestResultsService/%",code:200}));$3({runId:$1})`,[r,S,i,w,o,p,_,__d1,O,D,M,A,k,E,j,u,h,g,T]):c(P,e));const F=/*@__PURE__*/ m(e=>e===s?d(`GetTestRun`,`{input:#1,output:#2,errors:[$8,$9,$10,$11,$12,$13,$14,$15],protocol:$16,retry:$17,telemetry:$18,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({runId:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.testing.v1beta.TestResultsService/%",code:200}));$4({runId:$2,runIdentifier:$2,status:$2,createdAt:$3($2),completedAt:$3($2),environment:$3(#6:1),summary:$3(#7:0),metadata:#6:0})`,[r,_,S,i,w,o,__d1,__d0,O,D,M,A,k,E,j,u,h,g,T]):c(F,e));function __d0(){return[`$5(>1)@"TestRunSummary";$4({totalTargets:$2($1),passedTargets:$2($1),failedTargets:$2($1),skippedTargets:$2($1),errorTargets:$2($1),totalTestCases:$2($1),passedTestCases:$2($1),failedTestCases:$2($1),skippedTestCases:$2($1),totalDuration:$2($3)})`,[r,y,i,S,w,o]]}function __d1(){return[`$2($1,$1);$5(>2)@"TestEnvironment";$4({platform:$3($1),runtimeVersion:$3($1),properties:$3(#0)})`,[r,S,b,i,w,o]]}export{E as AlreadyExists,D as FailedPrecondition,O as InvalidArgument,k as NotFound,A as PermissionDenied,j as ResourceExhausted,M as Unauthenticated,N as completeTestRun,P as createTestRun,F as getTestRun};
|
|
2
|
+
//# sourceMappingURL=testing.js.map
|