@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.
Files changed (216) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +125 -2
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +55 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +33 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +42 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +7 -0
  16. package/lib/index.lazy.js +7 -0
  17. package/lib/index.lazy.js.map +1 -0
  18. package/lib/pagination.d.ts +2 -0
  19. package/lib/pagination.d.ts.map +1 -0
  20. package/lib/pagination.js +1 -0
  21. package/lib/protocol.d.ts +15 -0
  22. package/lib/protocol.d.ts.map +1 -0
  23. package/lib/protocol.js +1 -0
  24. package/lib/retry.d.ts +12 -0
  25. package/lib/retry.d.ts.map +1 -0
  26. package/lib/retry.js +1 -0
  27. package/lib/services/artifacts.d.ts +260 -0
  28. package/lib/services/artifacts.d.ts.map +1 -0
  29. package/lib/services/artifacts.js +2 -0
  30. package/lib/services/artifacts.js.map +1 -0
  31. package/lib/services/audit.d.ts +149 -0
  32. package/lib/services/audit.d.ts.map +1 -0
  33. package/lib/services/audit.js +2 -0
  34. package/lib/services/audit.js.map +1 -0
  35. package/lib/services/bazel.d.ts +173 -0
  36. package/lib/services/bazel.d.ts.map +1 -0
  37. package/lib/services/bazel.js +2 -0
  38. package/lib/services/bazel.js.map +1 -0
  39. package/lib/services/bazel_cache.d.ts +118 -0
  40. package/lib/services/bazel_cache.d.ts.map +1 -0
  41. package/lib/services/bazel_cache.js +2 -0
  42. package/lib/services/bazel_cache.js.map +1 -0
  43. package/lib/services/builder.d.ts +234 -0
  44. package/lib/services/builder.d.ts.map +1 -0
  45. package/lib/services/builder.js +2 -0
  46. package/lib/services/builder.js.map +1 -0
  47. package/lib/services/buildkite_jobs.d.ts +121 -0
  48. package/lib/services/buildkite_jobs.d.ts.map +1 -0
  49. package/lib/services/buildkite_jobs.js +2 -0
  50. package/lib/services/buildkite_jobs.js.map +1 -0
  51. package/lib/services/buildkite_queue.d.ts +178 -0
  52. package/lib/services/buildkite_queue.d.ts.map +1 -0
  53. package/lib/services/buildkite_queue.js +2 -0
  54. package/lib/services/buildkite_queue.js.map +1 -0
  55. package/lib/services/compute.d.ts +1057 -0
  56. package/lib/services/compute.d.ts.map +1 -0
  57. package/lib/services/compute.js +43 -0
  58. package/lib/services/compute.js.map +1 -0
  59. package/lib/services/compute_command.d.ts +112 -0
  60. package/lib/services/compute_command.d.ts.map +1 -0
  61. package/lib/services/compute_command.js +2 -0
  62. package/lib/services/compute_command.js.map +1 -0
  63. package/lib/services/compute_observability.d.ts +157 -0
  64. package/lib/services/compute_observability.d.ts.map +1 -0
  65. package/lib/services/compute_observability.js +2 -0
  66. package/lib/services/compute_observability.js.map +1 -0
  67. package/lib/services/compute_storage.d.ts +371 -0
  68. package/lib/services/compute_storage.d.ts.map +1 -0
  69. package/lib/services/compute_storage.js +33 -0
  70. package/lib/services/compute_storage.js.map +1 -0
  71. package/lib/services/compute_usage.d.ts +275 -0
  72. package/lib/services/compute_usage.d.ts.map +1 -0
  73. package/lib/services/compute_usage.js +2 -0
  74. package/lib/services/compute_usage.js.map +1 -0
  75. package/lib/services/egress.d.ts +183 -0
  76. package/lib/services/egress.d.ts.map +1 -0
  77. package/lib/services/egress.js +2 -0
  78. package/lib/services/egress.js.map +1 -0
  79. package/lib/services/experimental_compute_reservation.d.ts +662 -0
  80. package/lib/services/experimental_compute_reservation.d.ts.map +1 -0
  81. package/lib/services/experimental_compute_reservation.js +23 -0
  82. package/lib/services/experimental_compute_reservation.js.map +1 -0
  83. package/lib/services/experimental_remote_results.d.ts +488 -0
  84. package/lib/services/experimental_remote_results.d.ts.map +1 -0
  85. package/lib/services/experimental_remote_results.js +2 -0
  86. package/lib/services/experimental_remote_results.js.map +1 -0
  87. package/lib/services/github_image.d.ts +154 -0
  88. package/lib/services/github_image.d.ts.map +1 -0
  89. package/lib/services/github_image.js +2 -0
  90. package/lib/services/github_image.js.map +1 -0
  91. package/lib/services/github_jobs.d.ts +175 -0
  92. package/lib/services/github_jobs.d.ts.map +1 -0
  93. package/lib/services/github_jobs.js +2 -0
  94. package/lib/services/github_jobs.js.map +1 -0
  95. package/lib/services/github_profile.d.ts +288 -0
  96. package/lib/services/github_profile.d.ts.map +1 -0
  97. package/lib/services/github_profile.js +2 -0
  98. package/lib/services/github_profile.js.map +1 -0
  99. package/lib/services/gradle_cache.d.ts +117 -0
  100. package/lib/services/gradle_cache.d.ts.map +1 -0
  101. package/lib/services/gradle_cache.js +2 -0
  102. package/lib/services/gradle_cache.js.map +1 -0
  103. package/lib/services/httpcache.d.ts +117 -0
  104. package/lib/services/httpcache.d.ts.map +1 -0
  105. package/lib/services/httpcache.js +2 -0
  106. package/lib/services/httpcache.js.map +1 -0
  107. package/lib/services/iam_tenant.d.ts +373 -0
  108. package/lib/services/iam_tenant.d.ts.map +1 -0
  109. package/lib/services/iam_tenant.js +39 -0
  110. package/lib/services/iam_tenant.js.map +1 -0
  111. package/lib/services/iam_tenant_membership.d.ts +106 -0
  112. package/lib/services/iam_tenant_membership.d.ts.map +1 -0
  113. package/lib/services/iam_tenant_membership.js +2 -0
  114. package/lib/services/iam_tenant_membership.js.map +1 -0
  115. package/lib/services/iam_token.d.ts +249 -0
  116. package/lib/services/iam_token.d.ts.map +1 -0
  117. package/lib/services/iam_token.js +2 -0
  118. package/lib/services/iam_token.js.map +1 -0
  119. package/lib/services/image.d.ts +214 -0
  120. package/lib/services/image.d.ts.map +1 -0
  121. package/lib/services/image.js +2 -0
  122. package/lib/services/image.js.map +1 -0
  123. package/lib/services/index.d.ts +30 -0
  124. package/lib/services/index.d.ts.map +1 -0
  125. package/lib/services/index.js +29 -0
  126. package/lib/services/private_devbox.d.ts +1156 -0
  127. package/lib/services/private_devbox.d.ts.map +1 -0
  128. package/lib/services/private_devbox.js +81 -0
  129. package/lib/services/private_devbox.js.map +1 -0
  130. package/lib/services/private_user_sessions.d.ts +137 -0
  131. package/lib/services/private_user_sessions.d.ts.map +1 -0
  132. package/lib/services/private_user_sessions.js +2 -0
  133. package/lib/services/private_user_sessions.js.map +1 -0
  134. package/lib/services/registry.d.ts +365 -0
  135. package/lib/services/registry.d.ts.map +1 -0
  136. package/lib/services/registry.js +34 -0
  137. package/lib/services/registry.js.map +1 -0
  138. package/lib/services/testing.d.ts +152 -0
  139. package/lib/services/testing.d.ts.map +1 -0
  140. package/lib/services/testing.js +2 -0
  141. package/lib/services/testing.js.map +1 -0
  142. package/lib/services/vault.d.ts +195 -0
  143. package/lib/services/vault.d.ts.map +1 -0
  144. package/lib/services/vault.js +2 -0
  145. package/lib/services/vault.js.map +1 -0
  146. package/lib/services.lazy/artifacts.js +1 -0
  147. package/lib/services.lazy/audit.js +1 -0
  148. package/lib/services.lazy/bazel.js +1 -0
  149. package/lib/services.lazy/bazel_cache.js +1 -0
  150. package/lib/services.lazy/builder.js +1 -0
  151. package/lib/services.lazy/buildkite_jobs.js +1 -0
  152. package/lib/services.lazy/buildkite_queue.js +1 -0
  153. package/lib/services.lazy/compute.js +4 -0
  154. package/lib/services.lazy/compute_command.js +1 -0
  155. package/lib/services.lazy/compute_observability.js +1 -0
  156. package/lib/services.lazy/compute_storage.js +4 -0
  157. package/lib/services.lazy/compute_usage.js +1 -0
  158. package/lib/services.lazy/egress.js +1 -0
  159. package/lib/services.lazy/experimental_compute_reservation.js +4 -0
  160. package/lib/services.lazy/experimental_remote_results.js +1 -0
  161. package/lib/services.lazy/github_image.js +1 -0
  162. package/lib/services.lazy/github_jobs.js +1 -0
  163. package/lib/services.lazy/github_profile.js +1 -0
  164. package/lib/services.lazy/gradle_cache.js +1 -0
  165. package/lib/services.lazy/httpcache.js +1 -0
  166. package/lib/services.lazy/iam_tenant.js +4 -0
  167. package/lib/services.lazy/iam_tenant_membership.js +1 -0
  168. package/lib/services.lazy/iam_token.js +1 -0
  169. package/lib/services.lazy/image.js +1 -0
  170. package/lib/services.lazy/index.js +3 -0
  171. package/lib/services.lazy/private_devbox.js +4 -0
  172. package/lib/services.lazy/private_user_sessions.js +1 -0
  173. package/lib/services.lazy/registry.js +4 -0
  174. package/lib/services.lazy/testing.js +1 -0
  175. package/lib/services.lazy/vault.js +1 -0
  176. package/lib/traits.d.ts +3 -0
  177. package/lib/traits.d.ts.map +1 -0
  178. package/lib/traits.js +1 -0
  179. package/package.json +87 -3
  180. package/src/credentials.ts +164 -0
  181. package/src/errors.ts +47 -0
  182. package/src/index.ts +48 -0
  183. package/src/pagination.ts +1 -0
  184. package/src/protocol.ts +82 -0
  185. package/src/retry.ts +28 -0
  186. package/src/services/artifacts.ts +761 -0
  187. package/src/services/audit.ts +315 -0
  188. package/src/services/bazel.ts +415 -0
  189. package/src/services/bazel_cache.ts +211 -0
  190. package/src/services/builder.ts +568 -0
  191. package/src/services/buildkite_jobs.ts +222 -0
  192. package/src/services/buildkite_queue.ts +445 -0
  193. package/src/services/compute.ts +2794 -0
  194. package/src/services/compute_command.ts +212 -0
  195. package/src/services/compute_observability.ts +428 -0
  196. package/src/services/compute_storage.ts +1159 -0
  197. package/src/services/compute_usage.ts +730 -0
  198. package/src/services/egress.ts +508 -0
  199. package/src/services/experimental_compute_reservation.ts +1488 -0
  200. package/src/services/experimental_remote_results.ts +1157 -0
  201. package/src/services/github_image.ts +293 -0
  202. package/src/services/github_jobs.ts +381 -0
  203. package/src/services/github_profile.ts +721 -0
  204. package/src/services/gradle_cache.ts +263 -0
  205. package/src/services/httpcache.ts +263 -0
  206. package/src/services/iam_tenant.ts +1355 -0
  207. package/src/services/iam_tenant_membership.ts +245 -0
  208. package/src/services/iam_token.ts +780 -0
  209. package/src/services/image.ts +594 -0
  210. package/src/services/index.ts +30 -0
  211. package/src/services/private_devbox.ts +4217 -0
  212. package/src/services/private_user_sessions.ts +402 -0
  213. package/src/services/registry.ts +1234 -0
  214. package/src/services/testing.ts +386 -0
  215. package/src/services/vault.ts +514 -0
  216. package/src/traits.ts +36 -0
@@ -0,0 +1,173 @@
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
+ /** Controls which authentication mode the returned cluster endpoints expect. */
76
+ export type BazelExecutionAuthMode = "BAZEL_EXECUTION_AUTH_MODE_UNSPECIFIED" | "BAZEL_EXECUTION_AUTH_MODE_MTLS" | "BAZEL_EXECUTION_AUTH_MODE_STATIC";
77
+ export interface EnsureClusterRequest {
78
+ /** Stable identifier that disambiguates multiple parallel execution clusters for the same tenant. Used to derive the unique tags. Defaults to "default" when empty. Must be a valid DNS subdomain segment. */
79
+ key?: string | undefined;
80
+ /** Authentication mode the client intends to use. Determines which endpoints are returned. Defaults to mTLS when unset. */
81
+ authMode?: BazelExecutionAuthMode | (string & {}) | undefined;
82
+ /** When true, the returned response includes a remote asset endpoint suitable for use with bazel's `--experimental_remote_downloader`. The backing storage instance always serves the remote asset API; this flag only controls whether the endpoint is surfaced to the client. */
83
+ enableRemoteAssetApi?: boolean | undefined;
84
+ }
85
+ export type StringList = Array<string>;
86
+ export interface EnsureClusterResponse {
87
+ /** gRPC endpoint clients use to reach the scheduler. Authentication matches the requested auth_mode: an mTLS client certificate (port 444) by default, or a static bearer token against the public endpoint (port 443) when static auth was requested. Empty for storage-only access. Format: [protocol://]host:port */
88
+ schedulerEndpoint: string;
89
+ /** gRPC endpoint clients use to reach the storage instance, with the same authentication semantics as scheduler_endpoint. Format: [protocol://]host:port */
90
+ storageEndpoint: string;
91
+ /** Recommended value for Bazel's `--jobs` flag. */
92
+ recommendedBazelJobs: number;
93
+ /** Recommended value for Bazel's `--remote_timeout` flag, in seconds. */
94
+ recommendedBazelRemoteTimeoutSeconds: number;
95
+ /** Recommended value for Bazel's `--remote_local_fallback` flag. */
96
+ recommendedBazelRemoteLocalFallback: boolean;
97
+ /** Recommended value for Bazel's `--remote_download_outputs` flag. */
98
+ recommendedBazelRemoteDownloadOutputs: string;
99
+ /** A gRPC endpoint where build events can be sent to (e.g. `bazel build --bes_backend=<endpoint>`). Empty when build event ingestion is not enabled for the tenant. Format: [protocol://]host:port */
100
+ buildEventEndpoint: string;
101
+ /** For which domains the credential helper should be enabled. Used to authenticate build event uploads in the default (mTLS) auth mode, where the client certificate cannot authenticate the bearer-only build event endpoint. Empty when build event ingestion is not enabled for the tenant. */
102
+ credentialHelperDomains: StringList;
103
+ /** A remote asset endpoint to use with bazel's `--experimental_remote_downloader`. Authentication matches the requested auth_mode, like scheduler_endpoint and storage_endpoint. Only set when the request set enable_remote_asset_api. Format: [protocol://]host:port */
104
+ remoteAssetEndpoint: string;
105
+ /** Base URL where Bazel can link to uploaded build event results (e.g. `bazel build --bes_results_url=<url>`). Empty when build event ingestion is not enabled for the tenant. */
106
+ buildEventResultsUrl: string;
107
+ }
108
+ export type BazelStorageAccessMode = "BAZEL_STORAGE_ACCESS_MODE_UNSPECIFIED" | "BAZEL_STORAGE_ACCESS_MODE_READ_ONLY" | "BAZEL_STORAGE_ACCESS_MODE_READ_WRITE";
109
+ export interface EnsureStorageClusterRequest {
110
+ /** Stable identifier shared with the corresponding execution cluster. Defaults to "default" when empty. Must be a valid DNS subdomain segment. */
111
+ key?: string | undefined;
112
+ /** Authentication mode the client intends to use. Determines which endpoint is returned. Defaults to mTLS when unset. */
113
+ authMode?: BazelExecutionAuthMode | (string & {}) | undefined;
114
+ /** When true, the returned response includes a remote asset endpoint when the resolved storage access mode is read-write. */
115
+ enableRemoteAssetApi?: boolean | undefined;
116
+ /** Requested storage access. Read-write requires bazel/storage write access. Read-only requires bazel/storage read or write access. When unset, access is derived from the caller's permissions for backwards compatibility. */
117
+ accessMode?: BazelStorageAccessMode | (string & {}) | undefined;
118
+ }
119
+ export interface EnsureStorageClusterResponse {
120
+ /** gRPC endpoint clients use to reach the storage instance with the resolved access mode. Format: [protocol://]host:port */
121
+ storageEndpoint: string;
122
+ /** A remote asset endpoint to use with Bazel's `--experimental_remote_downloader`. Only set for read-write access when the request set enable_remote_asset_api. Format: [protocol://]host:port */
123
+ remoteAssetEndpoint: string;
124
+ /** Recommended value for Bazel's `--remote_upload_local_results` flag. */
125
+ recommendedBazelRemoteUploadLocalResults: boolean;
126
+ /** A gRPC endpoint where build events can be sent. */
127
+ buildEventEndpoint: string;
128
+ /** Base URL where Bazel can link to uploaded build event results. */
129
+ buildEventResultsUrl: string;
130
+ }
131
+ export interface ListInvocationsRequest {
132
+ /** The maximum number of invocations to return. Defaults to 50 and may not exceed 100. */
133
+ maxEntries?: number | undefined;
134
+ /** If a previous response returned a pagination_cursor, pass it here to continue listing invocations. The cursor preserves the time filters from the original request; not_older_than and older_than are ignored when it is set. */
135
+ paginationCursor?: string | undefined;
136
+ /** Don't return invocations that started before this timestamp. */
137
+ notOlderThan?: string | undefined;
138
+ /** Only return invocations that started before this timestamp. */
139
+ olderThan?: string | undefined;
140
+ }
141
+ export interface InvocationListEntry {
142
+ /** The Bazel invocation identifier reported to the build event service. */
143
+ invocationId: string;
144
+ /** The build identifier reported to the build event service. */
145
+ buildId: string;
146
+ /** The project identifier reported to the build event service. */
147
+ projectId: string;
148
+ /** When the invocation started. */
149
+ startedAt?: string | undefined;
150
+ /** When the invocation completed. Unset while it is still running. */
151
+ completedAt?: string | undefined;
152
+ /** The Bazel command that started the invocation (e.g. "build", "test"). */
153
+ command: string;
154
+ /** The target patterns passed to the invocation (e.g. "//foo:bar"). */
155
+ targetPatterns: StringList;
156
+ }
157
+ export type InvocationListEntryList = Array<InvocationListEntry>;
158
+ export interface ListInvocationsResponse {
159
+ /** Invocations matching the request filters, ordered newest first. */
160
+ invocations: InvocationListEntryList;
161
+ /** If set, there are additional invocations. Pass this cursor to a subsequent ListInvocations call to continue listing them. */
162
+ paginationCursor: string;
163
+ }
164
+ export type EnsureClusterError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
165
+ /** Returns remote execution cluster configuration for the caller's environment. Creates necessary resources if they don't exist. */
166
+ export declare const ensureCluster: API.OperationMethod<EnsureClusterRequest, EnsureClusterResponse, EnsureClusterError, NamespaceLabsOpContext>;
167
+ export type EnsureStorageClusterError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
168
+ /** Returns remote cache configuration for the caller's environment. Creates necessary resources if they don't exist. */
169
+ export declare const ensureStorageCluster: API.OperationMethod<EnsureStorageClusterRequest, EnsureStorageClusterResponse, EnsureStorageClusterError, NamespaceLabsOpContext>;
170
+ export type ListInvocationsError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
171
+ /** Lists Bazel invocations for the caller's tenant, newest first. */
172
+ export declare const listInvocations: API.PaginatedOperationMethod<ListInvocationsRequest, ListInvocationsResponse, ListInvocationsError, NamespaceLabsOpContext, InvocationListEntry>;
173
+ //# sourceMappingURL=bazel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bazel.d.ts","sourceRoot":"","sources":["../../src/services/bazel.ts"],"names":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EACzB,sBAAsB,CAkBrB,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAC5B,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,qEAAqE;AACrE,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,wBAAwB,CACxD,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,CA4Bb,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,mc as h,n as g,pagination$paginateCursor as _,protocol$NamespaceLabsProtocol as v,retry$Retry as y,traits$Http as b,traits$applyErrorMatchers as x,uc as S,xa as C,xc as w,ya as T,yc as E}from"../_bundle/sdk.js";const D={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:`BazelService`,propagate:`w3c`};const O=/*@__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,w,n,e,x]])});const k=/*@__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,T,w,n,e,x]])});const A=/*@__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,T,w,n,e,x]])});const j=/*@__PURE__*/ l(function NotFound(t){return f(t,new.target,[`$5($4()("NotFound",{message:$2,body:$3}).pipe($1),[{status:404}])`,[r,T,w,n,e,x]])});const M=/*@__PURE__*/ l(function PermissionDenied(t){return f(t,new.target,[`$5($4()("PermissionDenied",{message:$2,body:$3}).pipe($1),[{status:403}])`,[r,C,w,n,e,x]])});const N=/*@__PURE__*/ l(function ResourceExhausted(t){return f(t,new.target,[`$5($4()("ResourceExhausted",{message:$2,body:$3}).pipe($1),[{status:429}])`,[r,a,w,n,e,x]])});const P=/*@__PURE__*/ l(function Unauthenticated(t){return f(t,new.target,[`$5($4()("Unauthenticated",{message:$2,body:$3}).pipe($1),[{status:401}])`,[r,C,w,n,e,x]])});const F=/*@__PURE__*/ m(e=>e===s?d(`EnsureCluster`,`{input:#1,output:#2,errors:[$9,$10,$11,$12,$13,$14,$15,$16],protocol:$17,retry:$18,telemetry:$19,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({key:$3($2),authMode:$3($2),enableRemoteAssetApi:$3($4)}).pipe($1({method:"POST",uri:"/namespace.cloud.integrations.bazel.v1beta.BazelService/%",code:200}));$5({schedulerEndpoint:$2,storageEndpoint:$2,recommendedBazelJobs:$7,recommendedBazelRemoteTimeoutSeconds:$7,recommendedBazelRemoteLocalFallback:$4,recommendedBazelRemoteDownloadOutputs:$2,buildEventEndpoint:$2,credentialHelperDomains:#8:0,remoteAssetEndpoint:$2,buildEventResultsUrl:$2})`,[r,b,w,i,h,E,o,S,__d0,A,k,P,M,j,O,N,u,v,y,D]):c(F,e));const I=/*@__PURE__*/ m(e=>e===s?d(`EnsureStorageCluster`,`{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({key:$3($2),authMode:$3($2),enableRemoteAssetApi:$3($4),accessMode:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.integrations.bazel.v1beta.BazelService/%",code:200}));$5({storageEndpoint:$2,remoteAssetEndpoint:$2,recommendedBazelRemoteUploadLocalResults:$4,buildEventEndpoint:$2,buildEventResultsUrl:$2})`,[r,b,w,i,h,E,o,A,k,P,M,j,O,N,u,v,y,D]):c(I,e));const L=/*@__PURE__*/ g(e=>e===s?d(`ListInvocations`,`{input:#1,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:"invocations",pageSize:"maxEntries"},strategy:$20};$6(>5)@"%Request";$6(>6)@"InvocationListEntry";$8(#2);$6(>7)@"%Response";$5({maxEntries:$3($2),paginationCursor:$3($4),notOlderThan:$3($4),olderThan:$3($4)}).pipe($1({method:"POST",uri:"/namespace.cloud.integrations.bazel.v1beta.BazelService/%",code:200}));$5({invocationId:$4,buildId:$4,projectId:$4,startedAt:$3($4),completedAt:$3($4),command:$4,targetPatterns:#7:0});$5({invocations:#3,paginationCursor:$4})`,[r,b,S,i,w,E,o,__d0,p,A,k,P,M,j,O,N,u,v,y,D,_]):c(L,e));function __d0(){return[`$2($1)`,[r,w,p]]}export{O as AlreadyExists,k as FailedPrecondition,A as InvalidArgument,j as NotFound,M as PermissionDenied,N as ResourceExhausted,P as Unauthenticated,F as ensureCluster,I as ensureStorageCluster,L as listInvocations};
2
+ //# sourceMappingURL=bazel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bazel.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.optional","S.Boolean","S.Struct","S.suspend","S.Number","Retry.Retry","API.call","S.Array","TaggedError","withConflictError","Unknown","at","optional","withThrottlingError","suspend","D","error","UnknownNamespaceLabsError","named","newError","Array","Boolean","opPaginated","paginateCursor","NamespaceLabsProtocol","Retry","Http","applyErrorMatchers","Number","withAuthError","String","withBadRequestError","Struct","TELEMETRY","AlreadyExists","FailedPrecondition","i","InvalidArgument","NotFound","PermissionDenied","ResourceExhausted","Unauthenticated","ensureCluster","call","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/schema-lite";
3
+ import type * as Redacted from "effect/Redacted";
4
+ import { type NamespaceLabsOpError, type NamespaceLabsOpContext } from "../protocol.ts";
5
+ export type { NamespaceLabsOpError, NamespaceLabsOpContext };
6
+ declare const AlreadyExists_base: S.TaggedErrorClass<"AlreadyExists", {
7
+ readonly message: any;
8
+ readonly body: any;
9
+ }> & (new (...args: any[]) => {
10
+ "@distilled.cloud/error/categories": {
11
+ ConflictError: true;
12
+ };
13
+ });
14
+ export declare class AlreadyExists extends /*@__PURE__*/ AlreadyExists_base {
15
+ }
16
+ declare const FailedPrecondition_base: S.TaggedErrorClass<"FailedPrecondition", {
17
+ readonly message: any;
18
+ readonly body: any;
19
+ }> & (new (...args: any[]) => {
20
+ "@distilled.cloud/error/categories": {
21
+ BadRequestError: true;
22
+ };
23
+ });
24
+ export declare class FailedPrecondition extends /*@__PURE__*/ FailedPrecondition_base {
25
+ }
26
+ declare const InvalidArgument_base: S.TaggedErrorClass<"InvalidArgument", {
27
+ readonly message: any;
28
+ readonly body: any;
29
+ }> & (new (...args: any[]) => {
30
+ "@distilled.cloud/error/categories": {
31
+ BadRequestError: true;
32
+ };
33
+ });
34
+ export declare class InvalidArgument extends /*@__PURE__*/ InvalidArgument_base {
35
+ }
36
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
37
+ readonly message: any;
38
+ readonly body: any;
39
+ }> & (new (...args: any[]) => {
40
+ "@distilled.cloud/error/categories": {
41
+ BadRequestError: true;
42
+ };
43
+ });
44
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
45
+ }
46
+ declare const PermissionDenied_base: S.TaggedErrorClass<"PermissionDenied", {
47
+ readonly message: any;
48
+ readonly body: any;
49
+ }> & (new (...args: any[]) => {
50
+ "@distilled.cloud/error/categories": {
51
+ AuthError: true;
52
+ };
53
+ });
54
+ export declare class PermissionDenied extends /*@__PURE__*/ PermissionDenied_base {
55
+ }
56
+ declare const ResourceExhausted_base: S.TaggedErrorClass<"ResourceExhausted", {
57
+ readonly message: any;
58
+ readonly body: any;
59
+ }> & (new (...args: any[]) => {
60
+ "@distilled.cloud/error/categories": {
61
+ ThrottlingError: true;
62
+ };
63
+ });
64
+ export declare class ResourceExhausted extends /*@__PURE__*/ ResourceExhausted_base {
65
+ }
66
+ declare const Unauthenticated_base: S.TaggedErrorClass<"Unauthenticated", {
67
+ readonly message: any;
68
+ readonly body: any;
69
+ }> & (new (...args: any[]) => {
70
+ "@distilled.cloud/error/categories": {
71
+ AuthError: true;
72
+ };
73
+ });
74
+ export declare class Unauthenticated extends /*@__PURE__*/ Unauthenticated_base {
75
+ }
76
+ export interface EnsureBazelCacheRequest {
77
+ /** A key to identify the purpose. Currently 'ci' or 'workstation' are supported. */
78
+ key?: string | undefined;
79
+ /** Cache version number. */
80
+ version?: string | undefined;
81
+ /** Optional site preference (e.g., "iad", "ord"). If not set, the site is determined from the caller's location or workload context. */
82
+ site?: string | undefined;
83
+ /** When true, the returned response will include a remote asset endpoint suitable for use with bazel's `--experimental_remote_downloader`. */
84
+ enableRemoteAssetApi?: boolean | undefined;
85
+ /** Experimental: request a direct mTLS endpoint that terminates TLS at ingress and forwards to the cache's plaintext gRPC backend. */
86
+ experimentalDirectMtls?: boolean | undefined;
87
+ /** Experimental: suffix appended to the backing cache volume name and unique tag. */
88
+ experimentalCacheName?: string | undefined;
89
+ }
90
+ export type StringList = Array<string>;
91
+ export interface EnsureBazelCacheResponse {
92
+ /** The gRPC endpoint to connect to (e.g., `bazel build --remote_cache=<endpoint>`). Format: [protocol://]host:port */
93
+ cacheEndpoint: string;
94
+ /** An endpoint for HTTPS access to the cache with client certificate authentication. Format: https://host:port */
95
+ httpsMtlsCacheEndpoint: string;
96
+ /** An endpoint for HTTPS access to the cache with header-based authentication. Format: https://host:port */
97
+ httpsCacheEndpoint: string;
98
+ /** The PEM-encoded CA certificate(s) that should be used to verify server certificates of Namespace services that accept the issued client certificate. The PEM container will contain one or more PEM "CERTIFICATE" blocks. */
99
+ serverCaPem: string;
100
+ /** The PEM-encoded client certificate that can be used by Bazel to connect to the cache. */
101
+ clientCertPem: string;
102
+ /** The PEM-encoded client key that can be used by Bazel to connect to the cache. */
103
+ clientKeyPem: string | Redacted.Redacted<string>;
104
+ /** Until when is the returned cache configuration usable. */
105
+ expiresAt?: string | undefined;
106
+ /** For which domains the credential helper should be enabled. An empty list means that we do not use the credential helper. */
107
+ credentialHelperDomains: StringList;
108
+ /** A gRPC endpoint where we can send the build events to (e.g., `bazel build --bes_backend=<endpoint>`). Format: [protocol://]host:port */
109
+ buildEventEndpoint: string;
110
+ /** A remote asset endpoint to use with bazel's `--experimental_remote_downloader`. Format: [protocol://]host:port */
111
+ remoteAssetEndpoint: string;
112
+ /** Set to true when the returned cache endpoint expects workload mTLS (i.e. the request set experimental_direct_mtls). */
113
+ useWorkloadMtls: boolean;
114
+ }
115
+ export type EnsureBazelCacheError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
116
+ /** Returns cache configuration for the caller's environment. Creates necessary resources if they don't exist. */
117
+ export declare const ensureBazelCache: API.OperationMethod<EnsureBazelCacheRequest, EnsureBazelCacheResponse, EnsureBazelCacheError, NamespaceLabsOpContext>;
118
+ //# sourceMappingURL=bazel_cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bazel_cache.d.ts","sourceRoot":"","sources":["../../src/services/bazel_cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAEvD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,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;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S,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,+HAA+H;IAC/H,uBAAuB,EAAE,UAAU,CAAC;IACpC,2IAA2I;IAC3I,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qHAAqH;IACrH,mBAAmB,EAAE,MAAM,CAAC;IAC5B,0HAA0H;IAC1H,eAAe,EAAE,OAAO,CAAC;CAC1B;AACD,MAAM,MAAM,qBAAqB,GAC7B,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,iHAAiH;AACjH,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,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,mc as h,protocol$NamespaceLabsProtocol as g,retry$Retry as _,traits$Http as v,traits$SensitiveValue as y,traits$applyErrorMatchers 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:`BazelCacheService`,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,b]])});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,b]])});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,b]])});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,b]])});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,b]])});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,b]])});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,b]])});const N=/*@__PURE__*/ m(e=>e===s?d(`EnsureBazelCache`,`{input:#1,output:#3,errors:[$9,$10,$11,$12,$13,$14,$15,$16],protocol:$17,retry:$18,telemetry:$19,span:"%"};$6(>4)@"%Request";$7($2);$6(>5)@"%Response";$5({key:$3($2),version:$3($2),site:$3($2),enableRemoteAssetApi:$3($4),experimentalDirectMtls:$3($4),experimentalCacheName:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.integrations.bazel.v1beta.BazelCacheService/%",code:200}));$5({cacheEndpoint:$2,httpsMtlsCacheEndpoint:$2,httpsCacheEndpoint:$2,serverCaPem:$2,clientCertPem:$2,clientKeyPem:$2.pipe($8({})),expiresAt:$3($2),credentialHelperDomains:#2,buildEventEndpoint:$2,remoteAssetEndpoint:$2,useWorkloadMtls:$4})`,[r,v,S,i,h,w,o,p,y,O,D,M,A,k,E,j,u,g,_,T]):c(N,e));export{E as AlreadyExists,D as FailedPrecondition,O as InvalidArgument,k as NotFound,A as PermissionDenied,j as ResourceExhausted,M as Unauthenticated,N as ensureBazelCache};
2
+ //# sourceMappingURL=bazel_cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bazel_cache.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.optional","S.Boolean","S.Struct","S.suspend","S.Array","T.SensitiveValue","Retry.Retry","API.call","TaggedError","withConflictError","Unknown","at","optional","withThrottlingError","suspend","D","error","UnknownNamespaceLabsError","named","newError","Array","Boolean","NamespaceLabsProtocol","Retry","Http","SensitiveValue","applyErrorMatchers","withAuthError","String","withBadRequestError","Struct","TELEMETRY","AlreadyExists","FailedPrecondition","i","InvalidArgument","NotFound","PermissionDenied","ResourceExhausted","Unauthenticated","ensureBazelCache","call"],"sources":["../../src/services/bazel_cache.ts"],"mappings":"6UAkBA,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,oBACT,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,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CAC9O,CAAC,EAED,MAAa2C,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAOjD,EAAa+C,EAAG,WAAY,CAAC,oEAAqE,CAAC9C,EAAQM,EAAuBJ,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACrM,CAAC,EAED,MAAa4C,EAAsC,gBAAU,SAAS,iBAAiB,EAAa,CAClG,OAAOlD,EAAa+C,EAAG,WAAY,CAAC,4EAA6E,CAAC9C,EAAQO,EAAiBL,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACvM,CAAC,EAED,MAAa6C,EAAuC,gBAAU,SAAS,kBAAkB,EAAa,CACpG,OAAOnD,EAAa+C,EAAG,WAAY,CAAC,6EAA8E,CAAC9C,EAAQQ,EAAuBN,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CAC9M,CAAC,EAED,MAAa8C,EAAqC,gBAAU,SAAS,gBAAgB,EAAa,CAChG,OAAOpD,EAAa+C,EAAG,WAAY,CAAC,2EAA4E,CAAC9C,EAAQO,EAAiBL,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACtM,CAAC,EAmDD,MAAa+C,EAKK,gBAAQ,GAAgBN,IAAMrC,EAAQC,EAAU,mBAAoB,onBAAqnB,CAACV,EAAQW,EAAQT,EAAUU,EAAYC,EAAWC,EAAUC,EAAWC,EAASC,EAAkB8B,EAAiBF,EAAoBM,EAAiBF,EAAkBD,EAAUJ,EAAeM,EAAmBrB,EAA2BK,EAAuBhB,EAAayB,CAAS,CAAC,EAAIxB,EAASiC,EAAkBN,CAAC,CAAC"}
@@ -0,0 +1,234 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import type * as Redacted from "effect/Redacted";
4
+ import { type NamespaceLabsOpError, type NamespaceLabsOpContext } from "../protocol.ts";
5
+ export type { NamespaceLabsOpError, NamespaceLabsOpContext };
6
+ declare const AlreadyExists_base: S.TaggedErrorClass<"AlreadyExists", {
7
+ readonly message: any;
8
+ readonly body: any;
9
+ }> & (new (...args: any[]) => {
10
+ "@distilled.cloud/error/categories": {
11
+ ConflictError: true;
12
+ };
13
+ });
14
+ export declare class AlreadyExists extends /*@__PURE__*/ AlreadyExists_base {
15
+ }
16
+ declare const FailedPrecondition_base: S.TaggedErrorClass<"FailedPrecondition", {
17
+ readonly message: any;
18
+ readonly body: any;
19
+ }> & (new (...args: any[]) => {
20
+ "@distilled.cloud/error/categories": {
21
+ BadRequestError: true;
22
+ };
23
+ });
24
+ export declare class FailedPrecondition extends /*@__PURE__*/ FailedPrecondition_base {
25
+ }
26
+ declare const InvalidArgument_base: S.TaggedErrorClass<"InvalidArgument", {
27
+ readonly message: any;
28
+ readonly body: any;
29
+ }> & (new (...args: any[]) => {
30
+ "@distilled.cloud/error/categories": {
31
+ BadRequestError: true;
32
+ };
33
+ });
34
+ export declare class InvalidArgument extends /*@__PURE__*/ InvalidArgument_base {
35
+ }
36
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
37
+ readonly message: any;
38
+ readonly body: any;
39
+ }> & (new (...args: any[]) => {
40
+ "@distilled.cloud/error/categories": {
41
+ BadRequestError: true;
42
+ };
43
+ });
44
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
45
+ }
46
+ declare const PermissionDenied_base: S.TaggedErrorClass<"PermissionDenied", {
47
+ readonly message: any;
48
+ readonly body: any;
49
+ }> & (new (...args: any[]) => {
50
+ "@distilled.cloud/error/categories": {
51
+ AuthError: true;
52
+ };
53
+ });
54
+ export declare class PermissionDenied extends /*@__PURE__*/ PermissionDenied_base {
55
+ }
56
+ declare const ResourceExhausted_base: S.TaggedErrorClass<"ResourceExhausted", {
57
+ readonly message: any;
58
+ readonly body: any;
59
+ }> & (new (...args: any[]) => {
60
+ "@distilled.cloud/error/categories": {
61
+ ThrottlingError: true;
62
+ };
63
+ });
64
+ export declare class ResourceExhausted extends /*@__PURE__*/ ResourceExhausted_base {
65
+ }
66
+ declare const Unauthenticated_base: S.TaggedErrorClass<"Unauthenticated", {
67
+ readonly message: any;
68
+ readonly body: any;
69
+ }> & (new (...args: any[]) => {
70
+ "@distilled.cloud/error/categories": {
71
+ AuthError: true;
72
+ };
73
+ });
74
+ export declare class Unauthenticated extends /*@__PURE__*/ Unauthenticated_base {
75
+ }
76
+ /** Labels are key/value pairs attached to entities such as tenants. */
77
+ export interface Label {
78
+ /** A name is an string up to 63 bytes that matches the regular expression `^[a-z]([a-z0-9-.]*[a-z0-9])?$`. */
79
+ name?: string | undefined;
80
+ /** Label values are arbitrary values up to 255 bytes. */
81
+ value?: string | undefined;
82
+ }
83
+ export type LabelList = Array<Label>;
84
+ /** Defines an instance shape: the combination of CPU, RAM and Disk that the instance should use. The size of the ephemeral disk automatically scales with the selected CPU/RAM allocation. See also https://namespace.so/docs/architecture/compute/machine-shapes#storage-allocation Usable values are constrained by policy, and are typically only settable in values as powers of two. */
85
+ export interface InstanceShape {
86
+ /** Number of virtual CPUs. Typically a power of two (e.g. 2, 4, 8, 16). */
87
+ virtualCpu?: number | undefined;
88
+ /** Memory in megabytes. Typically scales with CPU (e.g. 2048 per vCPU). */
89
+ memoryMegabytes?: number | undefined;
90
+ /** Architecture of the instance, e.g. "amd64" or "arm64". */
91
+ machineArch?: string | undefined;
92
+ /** Operating system of the instance, e.g. "linux" or "macos". */
93
+ os?: string | undefined;
94
+ /** Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors */
95
+ selectors?: LabelList | undefined;
96
+ }
97
+ export interface EnsureBuildInstanceRequestExperimentalFeatures {
98
+ shape?: InstanceShape | undefined;
99
+ cacheSizeMb?: string | undefined;
100
+ builderName?: string | undefined;
101
+ sku?: string | undefined;
102
+ /** Allows specifying a custom cache tag to allow sharing caches between differently named builders. */
103
+ cacheIdentity?: string | undefined;
104
+ }
105
+ export interface EnsureBuildInstanceRequest {
106
+ /** The target platform for the builder, e.g. "linux/amd64" or "linux/arm64". */
107
+ platform?: string | undefined;
108
+ /** Experimental - please talk to the Namespace team before using. */
109
+ experimentalConsistencyKey?: string | undefined;
110
+ experimental?: EnsureBuildInstanceRequestExperimentalFeatures | undefined;
111
+ }
112
+ /** Describes how the connection to a builder endpoint is encapsulated. */
113
+ export type Encapsulation = "ENCAPSULATION_UNKNOWN" | "NONE" | "WEBSOCKET_TCPPROXY";
114
+ /** Describes which authentication method a builder endpoint requires. */
115
+ export type Authentication = "AUTHENTICATION_UNKNOWN" | "BEARER_TOKEN" | "MTLS";
116
+ export interface EnsureBuildInstanceResponse {
117
+ /** The compute instance ID backing the builder. */
118
+ instanceId: string;
119
+ /** The BuildKit endpoint to connect to. */
120
+ endpoint: string;
121
+ /** How the connection to the builder endpoint is encapsulated. */
122
+ encapsulation: Encapsulation;
123
+ /** Which authentication method the builder endpoint requires. */
124
+ authentication: Authentication;
125
+ /** The deadline of the compute instance backing the builder. */
126
+ deadline?: string | undefined;
127
+ }
128
+ export interface GetBuilderConfigurationRequest {
129
+ /** E.g. linux/amd64, linux/arm64. */
130
+ platform?: string | undefined;
131
+ /** Skip pre-spawning builder instances. */
132
+ skipBuilderPreSpawn?: boolean | undefined;
133
+ /** If true, returns new mTLS credentials to access the builder instance. */
134
+ returnNewCredentials?: boolean | undefined;
135
+ /** Targets a specific remote builder. The name must be max 32 characters long and match the regular expression `^[a-z][a-z0-9_-]*$`. Optional. */
136
+ builderName?: string | undefined;
137
+ /** Shape of the remote builder instance. Optional - overrides the default if given. */
138
+ builderShape?: InstanceShape | undefined;
139
+ /** If given, overrides the default cache volume size of the remote builder. Usable values are constrained by policy. */
140
+ cacheSizeMb?: string | undefined;
141
+ /** JSON serialized set of experimental values. Reach out to the Namespace team for more details. */
142
+ experimental?: string | undefined;
143
+ }
144
+ export interface BuilderCredentials {
145
+ /** The PEM-encoded client certificate that has been issued. The PEM container will contain one or more PEM "CERTIFICATE" blocks. If multiple certificates are returned, they can be used to build a certificate chain to a server-requested Certification Authority. */
146
+ clientCertificatePem: string;
147
+ /** This field will be a PEM container with exactly one "PRIVATE KEY" block. */
148
+ privateKeyPem: string | Redacted.Redacted<string>;
149
+ /** Timestamp at which these credentials expire (in UTC). */
150
+ expiresAt?: string | undefined;
151
+ }
152
+ export interface GetBuilderConfigurationResponse {
153
+ /** The instance shape (CPU, memory) of the builder. */
154
+ shape?: InstanceShape | undefined;
155
+ /** The size of the builder's cache volume in megabytes. */
156
+ cacheSizeMb: string;
157
+ /** The endpoint to connect to (e.g. for the buildx remote driver). */
158
+ buildkitEndpoint: string;
159
+ /** The endpoint to connect to (e.g. for the buildx remote driver). Including protocol prefix (e.g. tcp:// ) and port (e.g. :443) */
160
+ fullBuildkitEndpoint: string;
161
+ /** The PEM-encoded CA certificate(s) that should be used to verify server certificates of Namespace services that accept the issued client certificate. The PEM container will contain one or more PEM "CERTIFICATE" blocks. */
162
+ serverCaPem: string;
163
+ /** Only set if `return_new_credentials` was true. */
164
+ credentials?: BuilderCredentials | undefined;
165
+ }
166
+ export interface Date {
167
+ /** 2023 */
168
+ year?: number | undefined;
169
+ /** 1-12 */
170
+ month?: number | undefined;
171
+ /** 1-31 */
172
+ day?: number | undefined;
173
+ }
174
+ export interface GetBuilderUsageRequest {
175
+ /** Required */
176
+ periodStart?: Date | undefined;
177
+ /** Optional; if not set, defaults to now. */
178
+ periodEnd?: Date | undefined;
179
+ }
180
+ export interface GetBuilderUsageResponseUsage {
181
+ buildCount: string;
182
+ buildWallMinutes: string;
183
+ buildUnitMinutes: string;
184
+ }
185
+ export interface GetBuilderUsageResponsePerDay {
186
+ date?: Date | undefined;
187
+ usage?: GetBuilderUsageResponseUsage | undefined;
188
+ /** Usage which the system is aware of, but which has not been finalized yet. When finalized, parts of this usage or all of this usage can still move to other days. */
189
+ pendingUsage?: GetBuilderUsageResponseUsage | undefined;
190
+ }
191
+ export type GetBuilderUsageResponsePerDayList = Array<GetBuilderUsageResponsePerDay>;
192
+ export interface GetBuilderUsageResponse {
193
+ perDay: GetBuilderUsageResponsePerDayList;
194
+ total?: GetBuilderUsageResponseUsage | undefined;
195
+ /** Usage which the system is aware of, but which has not been finalized yet. */
196
+ pendingTotal?: GetBuilderUsageResponseUsage | undefined;
197
+ }
198
+ export interface GetBuildRecordRequest {
199
+ buildRef?: string | undefined;
200
+ }
201
+ export type BuildRecordStatus = "STATUS_UNKNOWN" | "SUCCEEDED" | "FAILED";
202
+ export interface BuildMachine {
203
+ /** The compute instance ID that hosted this build. */
204
+ instanceId: string;
205
+ /** The instance shape (CPU, memory) used for this build. */
206
+ shape?: InstanceShape | undefined;
207
+ /** If true, the build was executed locally and did not use remote builders. */
208
+ local: boolean;
209
+ }
210
+ export interface GetBuildRecordResponse {
211
+ /** An opaque identifier for this build. */
212
+ buildRef: string;
213
+ /** Timestamp of when the build started (in UTC). */
214
+ startedAt?: string | undefined;
215
+ /** Timestamp of when the build completed (in UTC). Not set if the build is still in progress. */
216
+ completedAt?: string | undefined;
217
+ /** The outcome of the build. */
218
+ status: BuildRecordStatus;
219
+ /** Details about the machine that executed this build. */
220
+ buildMachine?: BuildMachine | undefined;
221
+ }
222
+ export type EnsureBuildInstanceError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
223
+ /** Creates a builder for the specified platform for the specified tenant, or returns an existing one if one is already running. */
224
+ export declare const ensureBuildInstance: API.OperationMethod<EnsureBuildInstanceRequest, EnsureBuildInstanceResponse, EnsureBuildInstanceError, NamespaceLabsOpContext>;
225
+ export type GetBuilderConfigurationError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
226
+ /** Returns the configuration of a builder. */
227
+ export declare const getBuilderConfiguration: API.OperationMethod<GetBuilderConfigurationRequest, GetBuilderConfigurationResponse, GetBuilderConfigurationError, NamespaceLabsOpContext>;
228
+ export type GetBuilderUsageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
229
+ /** Returns build usage for a specified period. */
230
+ export declare const getBuilderUsage: API.OperationMethod<GetBuilderUsageRequest, GetBuilderUsageResponse, GetBuilderUsageError, NamespaceLabsOpContext>;
231
+ export type GetBuildRecordError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
232
+ /** Get the build record for a single build reference. */
233
+ export declare const getBuildRecord: API.OperationMethod<GetBuildRecordRequest, GetBuildRecordResponse, GetBuildRecordError, NamespaceLabsOpContext>;
234
+ //# sourceMappingURL=builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/services/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAEvD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,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,sBAMrB;CAAG;;;;;;;;;AAEN,qBAAa,eACX,SAAQ,aAAa,CAAC,oBAMrB;CAAG;AAEN,uEAAuE;AACvE,MAAM,WAAW,KAAK;IACpB,8GAA8G;IAC9G,IAAI,CAAC,EAAE,MAA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AAsB,CAkBrB,CAAC;AAEJ,MAAM,MAAM,mBAAmB,GAC3B,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,yDAAyD;AACzD,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,eAAe,CAC9C,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,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,mc as h,protocol$NamespaceLabsProtocol as g,retry$Retry as _,traits$Http as v,traits$SensitiveValue as y,traits$applyErrorMatchers as b,uc 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:`BuilderService`,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(`EnsureBuildInstance`,`{input:#2,output:#3,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$5(>4)@"%RequestExperimentalFeatures";$5(>5)@"%Request";$5(>6)@"%Response";$4({shape:$2(#1:2),cacheSizeMb:$2($3),builderName:$2($3),sku:$2($3),cacheIdentity:$2($3)});$4({platform:$2($3),experimentalConsistencyKey:$2($3),experimental:$2(#1)}).pipe($6({method:"POST",uri:"/namespace.cloud.builder.v1beta.BuilderService/%",code:200}));$4({instanceId:$3,endpoint:$3,encapsulation:$3,authentication:$3,deadline:$2($3)})`,[r,__d0,i,C,T,o,v,k,O,N,j,A,D,M,u,g,_,E]):c(P,e));const F=/*@__PURE__*/ m(e=>e===s?d(`GetBuilderConfiguration`,`{input:#1,output:#3,errors:[$9,$10,$11,$12,$13,$14,$15,$16],protocol:$17,retry:$18,telemetry:$19,span:"%"};$7(>4)@"%Request";$7(>5)@"BuilderCredentials";$7(>6)@"%Response";$6({platform:$3($2),skipBuilderPreSpawn:$3($4),returnNewCredentials:$3($4),builderName:$3($2),builderShape:$3(#5:2),cacheSizeMb:$3($2),experimental:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.builder.v1beta.BuilderService/%",code:200}));$6({clientCertificatePem:$2,privateKeyPem:$2.pipe($8({})),expiresAt:$3($2)});$6({shape:$3(#5:2),cacheSizeMb:$2,buildkitEndpoint:$2,fullBuildkitEndpoint:$2,serverCaPem:$2,credentials:$3(#2)})`,[r,v,C,i,h,__d0,T,o,y,k,O,N,j,A,D,M,u,g,_,E]):c(F,e));const I=/*@__PURE__*/ m(e=>e===s?d(`GetBuilderUsage`,`{input:#2,output:#6,errors:[$8,$9,$10,$11,$12,$13,$14,$15],protocol:$16,retry:$17,telemetry:$18,span:"%"};$4(>7)@"Date";$4(>8)@"%Request";$4(>9)@"%ResponseUsage";$4(>10)@"%ResponsePerDay";$7(#4);$4(>11)@"%Response";$3({year:$2($1),month:$2($1),day:$2($1)});$3({periodStart:$2(#1),periodEnd:$2(#1)}).pipe($5({method:"POST",uri:"/namespace.cloud.builder.v1beta.BuilderService/%",code:200}));$3({buildCount:$6,buildWallMinutes:$6,buildUnitMinutes:$6});$3({date:$2(#1),usage:$2(#3),pendingUsage:$2(#3)});$3({perDay:#5,total:$2(#3),pendingTotal:$2(#3)})`,[r,x,i,T,o,v,C,p,k,O,N,j,A,D,M,u,g,_,E]):c(I,e));const L=/*@__PURE__*/ m(e=>e===s?d(`GetBuildRecord`,`{input:#1,output:#3,errors:[$8,$9,$10,$11,$12,$13,$14,$15],protocol:$16,retry:$17,telemetry:$18,span:"%"};$5(>4)@"%Request";$5(>5)@"BuildMachine";$5(>6)@"%Response";$4({buildRef:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.builder.v1beta.BuilderService/%",code:200}));$4({instanceId:$2,shape:$3(#6:2),local:$7});$4({buildRef:$2,startedAt:$3($2),completedAt:$3($2),status:$2,buildMachine:$3(#2)})`,[r,v,C,i,T,o,__d0,h,k,O,N,j,A,D,M,u,g,_,E]):c(L,e));function __d0(){return[`$4(>3)@"Label";$5(#0);$4(>4)@"InstanceShape";$3({name:$2($1),value:$2($1)});$3({virtualCpu:$2($6),memoryMegabytes:$2($6),machineArch:$2($1),os:$2($1),selectors:$2(#1)})`,[r,C,i,T,o,p,x]]}export{D as AlreadyExists,O as FailedPrecondition,k as InvalidArgument,A as NotFound,j as PermissionDenied,M as ResourceExhausted,N as Unauthenticated,P as ensureBuildInstance,L as getBuildRecord,F as getBuilderConfiguration,I as getBuilderUsage};
2
+ //# sourceMappingURL=builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.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","S.optional","S.Struct","S.suspend","T.Http","Retry.Retry","API.call","S.Boolean","T.SensitiveValue","S.Number","S.Array","TaggedError","withConflictError","Unknown","at","optional","withThrottlingError","suspend","D","error","UnknownNamespaceLabsError","named","newError","Array","Boolean","NamespaceLabsProtocol","Retry","Http","SensitiveValue","applyErrorMatchers","Number","withAuthError","String","withBadRequestError","Struct","TELEMETRY","AlreadyExists","FailedPrecondition","i","InvalidArgument","NotFound","PermissionDenied","ResourceExhausted","Unauthenticated","ensureBuildInstance","call","getBuilderConfiguration","getBuilderUsage","getBuildRecord"],"sources":["../../src/services/builder.ts"],"mappings":"qVAkBA,MAAM8C,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,iBACT,UAAW,KACb,EAEA,MAAaC,EAAmC,gBAAU,SAAS,cAAc,EAAa,CAC5F,OAAO/C,EAAa,EAAG,WAAY,CAAC,yGAA0G,CAACC,EAAQC,EAAqBC,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACxO,CAAC,EAED,MAAa0C,EAAwC,gBAAU,SAAS,mBAAmB,EAAa,CACtG,OAAOhD,EAAaiD,EAAG,WAAY,CAAC,mHAAoH,CAAChD,EAAQM,EAAuBJ,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACpP,CAAC,EAED,MAAa4C,EAAqC,gBAAU,SAAS,gBAAgB,EAAa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