@distilled.cloud/namespacelabs 0.0.0 → 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 +121 -4
  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 +82 -2
  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,288 @@
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
+ /** Labels are key/value pairs attached to entities such as tenants. */
76
+ export interface Label {
77
+ /** A name is an string up to 63 bytes that matches the regular expression `^[a-z]([a-z0-9-.]*[a-z0-9])?$`. */
78
+ name?: string | undefined;
79
+ /** Label values are arbitrary values up to 255 bytes. */
80
+ value?: string | undefined;
81
+ }
82
+ export type LabelList = Array<Label>;
83
+ /** 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. */
84
+ export interface InstanceShape {
85
+ /** Number of virtual CPUs. Typically a power of two (e.g. 2, 4, 8, 16). */
86
+ virtualCpu?: number | undefined;
87
+ /** Memory in megabytes. Typically scales with CPU (e.g. 2048 per vCPU). */
88
+ memoryMegabytes?: number | undefined;
89
+ /** Architecture of the instance, e.g. "amd64" or "arm64". */
90
+ machineArch?: string | undefined;
91
+ /** Operating system of the instance, e.g. "linux" or "macos". */
92
+ os?: string | undefined;
93
+ /** Provide additional constraints to instance selection. Available selectors: https://namespace.so/docs/architecture/compute/macos#available-selectors */
94
+ selectors?: LabelList | undefined;
95
+ }
96
+ export type StringList = Array<string>;
97
+ /** CacheVolumeSettings configures persistent volumes attached to runners. */
98
+ export interface CacheVolumeSettings {
99
+ /** Total size of the volume in gigabytes. */
100
+ volumeSizeGb?: number | undefined;
101
+ /** Reserved size that cannot be used by the cache, in gigabytes. */
102
+ volumeReservedSizeGb?: number | undefined;
103
+ /** If true, includes container image cache in this volume. */
104
+ bundledContainerCache?: boolean | undefined;
105
+ /** If true, includes BuildKit cache in this volume. */
106
+ bundledBuildkitCache?: boolean | undefined;
107
+ /** If true, includes git repository mirror in this volume. */
108
+ bundledGitMirror?: boolean | undefined;
109
+ /** If true, includes runner tools cache in this volume. */
110
+ bundledRunnerToolsCache?: boolean | undefined;
111
+ /** If true, includes GitHub Actions cache in this volume. */
112
+ bundledRunnerActionsCache?: boolean | undefined;
113
+ /** List of branches allowed to write to this cache volume. If empty, all branches can write. */
114
+ allowCommitFromBranch?: StringList | undefined;
115
+ }
116
+ export type CacheVolumeSettingsList = Array<CacheVolumeSettings>;
117
+ /** BuilderMode controls how container builds are executed. */
118
+ export type BuilderMode = "BUILDER_MODE_UNSPECIFIED" | "USE_REMOTE_BUILDER" | "USE_LOCAL_CACHE" | "NO_CACHING";
119
+ /** UbuntuBaseImageSpec defines Ubuntu APT package customizations for runner images. */
120
+ export interface UbuntuBaseImageSpec {
121
+ /** List of Ubuntu APT packages to install. */
122
+ aptPackage?: StringList | undefined;
123
+ }
124
+ /** DockerBaseImageSpec defines Dockerfile-based customizations for runner images. */
125
+ export interface DockerBaseImageSpec {
126
+ /** Custom Dockerfile content to run as a layer on top of the base image. */
127
+ dockerfileContent?: string | undefined;
128
+ }
129
+ /** CustomRunnerImageSpec defines the specification for a custom runner image. */
130
+ export interface CustomRunnerImageSpec {
131
+ /** Ubuntu APT package customizations. */
132
+ ubuntuSpec?: UbuntuBaseImageSpec | undefined;
133
+ /** Dockerfile-based customizations. */
134
+ dockerSpec?: DockerBaseImageSpec | undefined;
135
+ }
136
+ export type NetworkPolicyEgressPolicy = "EGRESS_POLICY_UNKNOWN" | "EGRESS_POLICY_NONE" | "EGRESS_POLICY_DOMAIN_ALLOW_LIST" | "EGRESS_POLICY_TAG";
137
+ /** NetworkPolicy configures network egress restrictions for runners. */
138
+ export interface NetworkPolicy {
139
+ /** Egress policy controlling outbound network access. */
140
+ egress?: NetworkPolicyEgressPolicy | (string & {}) | undefined;
141
+ /** List of domains allowed for egress when policy is DOMAIN_ALLOW_LIST. Must be empty unless egress is DOMAIN_ALLOW_LIST. */
142
+ egressDomainAllowList?: StringList | undefined;
143
+ /** When true, runs the egress domain allow list in advisory mode: traffic is not blocked, but egress decisions are still recorded. Must be false unless egress is DOMAIN_ALLOW_LIST. */
144
+ advisory?: boolean | undefined;
145
+ /** Tag of the workspace egress policy to apply when policy is TAG. Must be empty unless egress is TAG. */
146
+ egressPolicyTag?: string | undefined;
147
+ }
148
+ /** AccessLevel controls which Namespace features the runner workload can use. */
149
+ export type AccessLevel = "ACCESS_LEVEL_UNSPECIFIED" | "ACCESS_LEVEL_PERMISSIVE" | "ACCESS_LEVEL_LIMITED" | "ACCESS_LEVEL_RESTRICTED" | "ACCESS_LEVEL_CUSTOM";
150
+ /** Defines a permission grant on a resource. Permissions are used to restrict what a token is allowed to do. See https://namespace.so/docs/security/permissions for a list of available resource types and actions. */
151
+ export interface Permission {
152
+ /** The type of resource this permission applies to, e.g. "instance", "vault/object", "token/revokable". */
153
+ resourceType?: string | undefined;
154
+ /** The specific resource ID, or empty for all resources of this type. */
155
+ resourceId?: string | undefined;
156
+ /** The set of actions allowed on the resource, e.g. "create", "list", "describe". */
157
+ actions?: StringList | undefined;
158
+ }
159
+ export type PermissionList = Array<Permission>;
160
+ /** RunnerProfileSpec contains the configurable specification for a runner profile. */
161
+ export interface RunnerProfileSpec {
162
+ /** Stable user-configurable alias. Must be unique within the workspace and can be changed. This is used to reference the profile in GitHub Actions workflow files. */
163
+ tag?: string | undefined;
164
+ /** Human-friendly description of the profile. */
165
+ description?: string | undefined;
166
+ /** Operating system label (e.g., "ubuntu-22.04", "ubuntu-24.04"). This determines the base image used for runners. */
167
+ os?: string | undefined;
168
+ /** Instance shape defining CPU, memory, and other compute resources. */
169
+ instanceShape?: InstanceShape | undefined;
170
+ /** Cache volume configuration for persistent storage across runner instances. */
171
+ cacheVolumeSettings?: CacheVolumeSettingsList | undefined;
172
+ /** Builder mode controls how builds are executed. */
173
+ builderMode?: BuilderMode | (string & {}) | undefined;
174
+ /** List of experimental features to enable for runners using this profile. */
175
+ experimentalFeatures?: StringList | undefined;
176
+ /** Optional emoji to visually identify the profile in UI. */
177
+ emoji?: string | undefined;
178
+ /** Specification for a custom runner image with additional packages or configuration. */
179
+ customRunnerImageSpec?: CustomRunnerImageSpec | undefined;
180
+ /** Network policy for egress restrictions. */
181
+ networkPolicy?: NetworkPolicy | undefined;
182
+ /** Controls which Namespace features the runner workload can access. */
183
+ accessLevel?: AccessLevel | (string & {}) | undefined;
184
+ /** Size of the swap file to provision on the runner, in megabytes. */
185
+ swapSizeMb?: number | undefined;
186
+ customPermissions?: PermissionList | undefined;
187
+ }
188
+ export interface CreateProfileRequest {
189
+ /** Profile specification. */
190
+ spec?: RunnerProfileSpec | undefined;
191
+ }
192
+ export type CustomRunnerImageStatusStatus = "STATUS_UNKNOWN" | "BUILDING" | "FAILED" | "READY";
193
+ /** CustomRunnerImageStatus contains the build and deployment status of a custom image. */
194
+ export interface CustomRunnerImageStatus {
195
+ /** Full image reference (registry path and tag). */
196
+ imageRef: string;
197
+ /** Current build status. */
198
+ status: CustomRunnerImageStatusStatus;
199
+ /** Error message from the last build failure, if any. */
200
+ lastBuildError: string;
201
+ /** Timestamp when the build started. */
202
+ startedBuildAt?: string | undefined;
203
+ /** Timestamp when the build completed successfully. */
204
+ builtAt?: string | undefined;
205
+ /** Timestamp of the last build error. */
206
+ lastErrorAt?: string | undefined;
207
+ /** Build reference identifier. */
208
+ buildRef: string;
209
+ }
210
+ /** CustomRunnerImage combines custom image spec with its build status. */
211
+ export interface CustomRunnerImage {
212
+ /** Image specification. */
213
+ imageSpec?: CustomRunnerImageSpec | undefined;
214
+ /** Build and deployment status. */
215
+ imageStatus?: CustomRunnerImageStatus | undefined;
216
+ }
217
+ export type CustomRunnerImageList = Array<CustomRunnerImage>;
218
+ /** RunnerProfileStatus contains runtime status information about a profile. */
219
+ export interface RunnerProfileStatus {
220
+ /** Status of all custom runner images, ordered by version (oldest first). */
221
+ customRunnerImage: CustomRunnerImageList;
222
+ }
223
+ /** RunnerProfileWithStatus combines profile specification with its runtime status. */
224
+ export interface RunnerProfileWithStatus {
225
+ /** Unique stable identifier for the profile. */
226
+ profileId: string;
227
+ /** Profile specification. */
228
+ spec?: RunnerProfileSpec | undefined;
229
+ /** Version number incremented on each update. Used for optimistic concurrency control. */
230
+ version: string;
231
+ /** Timestamp when the profile was created. */
232
+ createdAt?: string | undefined;
233
+ /** Timestamp when the profile was last updated. */
234
+ updatedAt?: string | undefined;
235
+ /** Runtime status information. */
236
+ status?: RunnerProfileStatus | undefined;
237
+ }
238
+ export interface CreateProfileResponse {
239
+ /** The created profile with runtime status. */
240
+ profile?: RunnerProfileWithStatus | undefined;
241
+ }
242
+ export interface DeleteProfileRequest {
243
+ /** Profile ID to delete. */
244
+ profileId?: string | undefined;
245
+ }
246
+ export interface DeleteProfileResponse {
247
+ }
248
+ export interface ListProfilesRequest {
249
+ }
250
+ export type RunnerProfileWithStatusList = Array<RunnerProfileWithStatus>;
251
+ export interface ListProfilesResponse {
252
+ /** List of profiles with runtime status. */
253
+ profiles: RunnerProfileWithStatusList;
254
+ }
255
+ export interface RebuildProfileImageRequest {
256
+ profileId?: string | undefined;
257
+ }
258
+ export interface RebuildProfileImageResponse {
259
+ status?: RunnerProfileStatus | undefined;
260
+ }
261
+ export interface UpdateProfileRequest {
262
+ /** Profile ID to update. */
263
+ profileId?: string | undefined;
264
+ /** Updated profile specification. */
265
+ spec?: RunnerProfileSpec | undefined;
266
+ /** If set, the update only succeeds if the stored version matches this value. This provides optimistic concurrency control. */
267
+ updateVersion?: string | undefined;
268
+ }
269
+ export interface UpdateProfileResponse {
270
+ /** The updated profile with runtime status. */
271
+ profile?: RunnerProfileWithStatus | undefined;
272
+ }
273
+ export type CreateProfileError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
274
+ /** Creates a new runner profile with the specified configuration. The profile's tag must be unique within the workspace. */
275
+ export declare const createProfile: API.OperationMethod<CreateProfileRequest, CreateProfileResponse, CreateProfileError, NamespaceLabsOpContext>;
276
+ export type DeleteProfileError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
277
+ /** Deletes a runner profile. Active runners using this profile will continue to run, but no new runners will be created with it. */
278
+ export declare const deleteProfile: API.OperationMethod<DeleteProfileRequest, DeleteProfileResponse, DeleteProfileError, NamespaceLabsOpContext>;
279
+ export type ListProfilesError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
280
+ /** Lists all runner profiles in the workspace. */
281
+ export declare const listProfiles: API.OperationMethod<ListProfilesRequest, ListProfilesResponse, ListProfilesError, NamespaceLabsOpContext>;
282
+ export type RebuildProfileImageError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
283
+ /** Triggers the rebuild of the custom base image of a runner profile. */
284
+ export declare const rebuildProfileImage: API.OperationMethod<RebuildProfileImageRequest, RebuildProfileImageResponse, RebuildProfileImageError, NamespaceLabsOpContext>;
285
+ export type UpdateProfileError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
286
+ /** Updates an existing runner profile. The update can be conditional based on the current version to prevent concurrent modifications. */
287
+ export declare const updateProfile: API.OperationMethod<UpdateProfileRequest, UpdateProfileResponse, UpdateProfileError, NamespaceLabsOpContext>;
288
+ //# sourceMappingURL=github_profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github_profile.d.ts","sourceRoot":"","sources":["../../src/services/github_profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAGjD,OAAO,KAAK,CAAC,MAAM,mCAAmC,CAAC;AAGvD,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,MAAM,GAAG,SAAS,CAAC;IAC1B,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AACD,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;AACrC,6XAA6X;AAC7X,MAA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B,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,kDAAkD;AAClD,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,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,yEAAyE;AACzE,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,eAAe,CACnD,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,CAkBrB,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAC1B,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,0IAA0I;AAC1I,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,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$applyErrorMatchers as y,uc 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:`ProfileService`,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,y]])});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,y]])});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,y]])});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,y]])});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,y]])});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,y]])});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,y]])});const N=/*@__PURE__*/ m(e=>e===s?d(`CreateProfile`,`{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({spec:$3(#2:8)}).pipe($1({method:"POST",uri:"/namespace.cloud.github.v1beta.ProfileService/%",code:200}))`,[r,v,__d2,i,w,o,__d0,O,D,M,A,k,E,j,u,g,_,T]):c(N,e));const P=/*@__PURE__*/ m(e=>e===s?d(`DeleteProfile`,`{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({profileId:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.github.v1beta.ProfileService/%",code:200}));$4({})`,[r,v,S,i,w,o,O,D,M,A,k,E,j,u,g,_,T]):c(P,e));const F=/*@__PURE__*/ m(e=>e===s?d(`ListProfiles`,`{input:#1,output:#3,errors:[$6,$7,$8,$9,$10,$11,$12,$13],protocol:$14,retry:$15,telemetry:$16,span:"%"};$3(>4)@"%Request";$5(#4:9);$3(>5)@"%Response";$2({}).pipe($1({method:"POST",uri:"/namespace.cloud.github.v1beta.ProfileService/%",code:200}));$2({profiles:#2})`,[r,v,w,o,__d2,p,O,D,M,A,k,E,j,u,g,_,T]):c(F,e));const I=/*@__PURE__*/ m(e=>e===s?d(`RebuildProfileImage`,`{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({profileId:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.github.v1beta.ProfileService/%",code:200}));$4({status:$3(#6:7)})`,[r,v,S,i,w,o,__d1,O,D,M,A,k,E,j,u,g,_,T]):c(I,e));const L=/*@__PURE__*/ m(e=>e===s?d(`UpdateProfile`,`{input:#1,output:#7:0,errors:[$8,$9,$10,$11,$12,$13,$14,$15],protocol:$16,retry:$17,telemetry:$18,span:"%"};$6(>2)@"%Request";$5({profileId:$3($2),spec:$3(#4:8),updateVersion:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.github.v1beta.ProfileService/%",code:200}))`,[r,v,S,i,__d2,w,o,__d0,O,D,M,A,k,E,j,u,g,_,T]):c(L,e));function __d0(){return[`$4(>1)@"CreateProfileResponse";$3({profile:$2(#1:9)})`,[r,__d2,i,w,o]]}function __d1(){return[`$2($1);$5(>8)@"UbuntuBaseImageSpec";$5(>9)@"DockerBaseImageSpec";$5(>10)@"CustomRunnerImageSpec";$5(>11)@"CustomRunnerImageStatus";$5(>12)@"CustomRunnerImage";$2(#5);$5(>13)@"RunnerProfileStatus";$4({aptPackage:$3(#0)});$4({dockerfileContent:$3($1)});$4({ubuntuSpec:$3(#1),dockerSpec:$3(#2)});$4({imageRef:$1,status:$1,lastBuildError:$1,startedBuildAt:$3($1),builtAt:$3($1),lastErrorAt:$3($1),buildRef:$1});$4({imageSpec:$3(#3),imageStatus:$3(#4)});$4({customRunnerImage:#6})`,[r,S,p,i,w,o]]}function __d2(){return[`$4(>10)@"Label";$5(#0);$4(>11)@"InstanceShape";$4(>12)@"CacheVolumeSettings";$5(#3);$4(>13)@"NetworkPolicy";$4(>14)@"Permission";$5(#6);$4(>15)@"RunnerProfileSpec";$4(>16)@"RunnerProfileWithStatus";$3({name:$2($1),value:$2($1)});$3({virtualCpu:$2($6),memoryMegabytes:$2($6),machineArch:$2($1),os:$2($1),selectors:$2(#1)});$3({volumeSizeGb:$2($6),volumeReservedSizeGb:$2($6),bundledContainerCache:$2($7),bundledBuildkitCache:$2($7),bundledGitMirror:$2($7),bundledRunnerToolsCache:$2($7),bundledRunnerActionsCache:$2($7),allowCommitFromBranch:$2(#8:0)});$3({egress:$2($1),egressDomainAllowList:$2(#8:0),advisory:$2($7),egressPolicyTag:$2($1)});$3({resourceType:$2($1),resourceId:$2($1),actions:$2(#8:0)});$3({tag:$2($1),description:$2($1),os:$2($1),instanceShape:$2(#2),cacheVolumeSettings:$2(#4),builderMode:$2($1),experimentalFeatures:$2(#8:0),emoji:$2($1),customRunnerImageSpec:$2(#8:3),networkPolicy:$2(#5),accessLevel:$2($1),swapSizeMb:$2($6),customPermissions:$2(#7)});$3({profileId:$1,spec:$2(#8),version:$1,createdAt:$2($1),updatedAt:$2($1),status:$2(#8:7)})`,[r,S,i,w,o,p,b,h,__d1]]}export{E as AlreadyExists,D as FailedPrecondition,O as InvalidArgument,k as NotFound,A as PermissionDenied,j as ResourceExhausted,M as Unauthenticated,N as createProfile,P as deleteProfile,F as listProfiles,I as rebuildProfileImage,L as updateProfile};
2
+ //# sourceMappingURL=github_profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github_profile.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.Struct","S.suspend","Retry.Retry","API.call","S.Array","S.Number","S.Boolean","TaggedError","withConflictError","Unknown","at","optional","withThrottlingError","suspend","D","error","UnknownNamespaceLabsError","named","newError","Array","Boolean","NamespaceLabsProtocol","Retry","Http","applyErrorMatchers","Number","withAuthError","String","withBadRequestError","Struct","TELEMETRY","AlreadyExists","FailedPrecondition","i","InvalidArgument","NotFound","PermissionDenied","ResourceExhausted","Unauthenticated","createProfile","call","deleteProfile","listProfiles","rebuildProfileImage","updateProfile"],"sources":["../../src/services/github_profile.ts"],"mappings":"0TAiBA,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,iBACT,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,gBAA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GAAgBT,IAAMrC,EAAQC,EAAU,eAAgB,0QAA2Q,CAACV,EAAQW,EAAQE,EAAUC,EAAW,KAAMG,EAAS8B,EAAiBF,EAAoBM,EAAiBF,EAAkBD,EAAUJ,EAAeM,EAAmBrB,EAA2BK,EAAuBnB,EAAa4B,CAAS,CAAC,EAAI3B,EAASuC,EAAcT,CAAC,CAAC,EAY5mB,MAAaU,EAKK,gBAAQ,GAAgBV,IAAMrC,EAAQC,EAAU,sBAAuB,sRAAuR,CAACV,EAAQW,EAAQT,EAAUU,EAAYC,EAAUC,EAAW,KAAMiC,EAAiBF,EAAoBM,EAAiBF,EAAkBD,EAAUJ,EAAeM,EAAmBrB,EAA2BK,EAAuBnB,EAAa4B,CAAS,CAAC,EAAI3B,EAASwC,EAAqBV,CAAC,CAAC,EAYnpB,MAAaW,EAKK,gBAAQ,GAAgBX,IAAMrC,EAAQC,EAAU,gBAAiB,mRAAoR,CAACV,EAAQW,EAAQT,EAAUU,EAAY,KAAMC,EAAUC,EAAW,KAAMiC,EAAiBF,EAAoBM,EAAiBF,EAAkBD,EAAUJ,EAAeM,EAAmBrB,EAA2BK,EAAuBnB,EAAa4B,CAAS,CAAC,EAAI3B,EAASyC,EAAeX,CAAC,CAAC,EAM1oB,SAAS,MAAY,CACnB,MAAO,CAAC,wDAAyD,CAAC9C,EAAQ,KAAMY,EAAYC,EAAUC,CAAS,CAAC,CAClH,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,8dAA+d,CAACd,EAAQE,EAAUe,EAASL,EAAYC,EAAUC,CAAS,CAAC,CACriB,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,2iCAA4iC,CAACd,EAAQE,EAAUU,EAAYC,EAAUC,EAAWG,EAASC,EAAUC,EAAW,IAAI,CAAC,CAC7oC"}
@@ -0,0 +1,117 @@
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
+ export interface EnsureGradleCacheRequest {
77
+ /** A name of the cache. */
78
+ name?: string | undefined;
79
+ /** Optional site preference (e.g., "iad", "ord"). If not set, the site is determined from the caller's location or workload context. */
80
+ site?: string | undefined;
81
+ }
82
+ export interface EnsureGradleCacheResponse {
83
+ /** The URL endpoint for the Gradle build cache. */
84
+ cacheEndpointUrl: string;
85
+ username: string;
86
+ password: string | Redacted.Redacted<string>;
87
+ /** Until when is the returned cache configuration usable. */
88
+ expiresAt?: string | undefined;
89
+ /** The site where the cache is located (e.g., "iad", "ord"). */
90
+ site: string;
91
+ }
92
+ export interface GetAccessPolicyRequest {
93
+ /** A name of the cache. */
94
+ name?: string | undefined;
95
+ }
96
+ export type StringList = Array<string>;
97
+ /** Defines a permission grant on a resource. Permissions are used to restrict what a token is allowed to do. See https://namespace.so/docs/security/permissions for a list of available resource types and actions. */
98
+ export interface Permission {
99
+ /** The type of resource this permission applies to, e.g. "instance", "vault/object", "token/revokable". */
100
+ resourceType: string;
101
+ /** The specific resource ID, or empty for all resources of this type. */
102
+ resourceId: string;
103
+ /** The set of actions allowed on the resource, e.g. "create", "list", "describe". */
104
+ actions: StringList;
105
+ }
106
+ export type PermissionList = Array<Permission>;
107
+ export interface GetAccessPolicyResponse {
108
+ /** The set of permissions that is required to access Gradle caches. */
109
+ requiredPermission: PermissionList;
110
+ }
111
+ export type EnsureGradleCacheError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
112
+ /** Returns cache configuration for the caller's environment. Creates necessary resources if they don't exist. */
113
+ export declare const ensureGradleCache: API.OperationMethod<EnsureGradleCacheRequest, EnsureGradleCacheResponse, EnsureGradleCacheError, NamespaceLabsOpContext>;
114
+ export type GetAccessPolicyError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
115
+ /** Returns the required permissions that are needed to access Gradle caches. */
116
+ export declare const getAccessPolicy: API.OperationMethod<GetAccessPolicyRequest, GetAccessPolicyResponse, GetAccessPolicyError, NamespaceLabsOpContext>;
117
+ //# sourceMappingURL=gradle_cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradle_cache.d.ts","sourceRoot":"","sources":["../../src/services/gradle_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;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;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oB,GAC5B,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,gFAAgF;AAChF,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,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$SensitiveValue as v,traits$applyErrorMatchers as y,xa as b,xc as x,ya as S,yc as C}from"../_bundle/sdk.js";const w={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:`GradleCacheService`,propagate:`w3c`};const T=/*@__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,x,n,e,y]])});const E=/*@__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,S,x,n,e,y]])});const D=/*@__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,S,x,n,e,y]])});const O=/*@__PURE__*/ l(function NotFound(t){return f(t,new.target,[`$5($4()("NotFound",{message:$2,body:$3}).pipe($1),[{status:404}])`,[r,S,x,n,e,y]])});const k=/*@__PURE__*/ l(function PermissionDenied(t){return f(t,new.target,[`$5($4()("PermissionDenied",{message:$2,body:$3}).pipe($1),[{status:403}])`,[r,b,x,n,e,y]])});const A=/*@__PURE__*/ l(function ResourceExhausted(t){return f(t,new.target,[`$5($4()("ResourceExhausted",{message:$2,body:$3}).pipe($1),[{status:429}])`,[r,a,x,n,e,y]])});const j=/*@__PURE__*/ l(function Unauthenticated(t){return f(t,new.target,[`$5($4()("Unauthenticated",{message:$2,body:$3}).pipe($1),[{status:401}])`,[r,b,x,n,e,y]])});const M=/*@__PURE__*/ m(e=>e===s?d(`EnsureGradleCache`,`{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({name:$3($2),site:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.integrations.gradle.v1beta.GradleCacheService/%",code:200}));$4({cacheEndpointUrl:$2,username:$2,password:$2.pipe($6({})),expiresAt:$3($2),site:$2})`,[r,_,x,i,C,o,v,D,E,j,k,O,T,A,u,h,g,w]):c(M,e));const N=/*@__PURE__*/ m(e=>e===s?d(`GetAccessPolicy`,`{input:#1,output:#5,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$5(>6)@"%Request";$6($2);$5(>7)@"Permission";$6(#3);$5(>8)@"%Response";$4({name:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.integrations.gradle.v1beta.GradleCacheService/%",code:200}));$4({resourceType:$2,resourceId:$2,actions:#2});$4({requiredPermission:#4})`,[r,_,x,i,C,o,p,D,E,j,k,O,T,A,u,h,g,w]):c(N,e));export{T as AlreadyExists,E as FailedPrecondition,D as InvalidArgument,O as NotFound,k as PermissionDenied,A as ResourceExhausted,j as Unauthenticated,M as ensureGradleCache,N as getAccessPolicy};
2
+ //# sourceMappingURL=gradle_cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradle_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.Struct","S.suspend","T.SensitiveValue","Retry.Retry","API.call","S.Array","TaggedError","withConflictError","Unknown","at","optional","withThrottlingError","suspend","D","error","UnknownNamespaceLabsError","named","newError","Array","NamespaceLabsProtocol","Retry","Http","SensitiveValue","applyErrorMatchers","withAuthError","String","withBadRequestError","Struct","TELEMETRY","AlreadyExists","FailedPrecondition","i","InvalidArgument","NotFound","PermissionDenied","ResourceExhausted","Unauthenticated","ensureGradleCache","call","getAccessPolicy"],"sources":["../../src/services/gradle_cache.ts"],"mappings":"qUAkBA,MAAM0C,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,qBACT,UAAW,KACb,EAEA,MAAaC,EAAmC,gBAAU,SAAS,cAAc,EAAa,CAC5F,OAAO3C,EAAa,EAAG,WAAY,CAAC,yGAA0G,CAACC,EAAQC,EAAqBC,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACxO,CAAC,EAED,MAAasC,EAAwC,gBAAU,SAAS,mBAAmB,EAAa,CACtG,OAAO5C,EAAa6C,EAAG,WAAY,CAAC,mHAAoH,CAAC5C,EAAQM,EAAuBJ,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACpP,CAAC,EAED,MAAawC,EAAqC,gBAAU,SAAS,gBAAgB,EAAa,CAChG,OAAO9C,EAAa6C,EAAG,WAAY,CAAC,6GAA8G,CAAC5C,EAAQM,EAAuBJ,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CAC9O,CAAC,EAED,MAAayC,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAO/C,EAAa6C,EAAG,WAAY,CAAC,oEAAqE,CAAC5C,EAAQM,EAAuBJ,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACrM,CAAC,EAED,MAAa0C,EAAsC,gBAAU,SAAS,iBAAiB,EAAa,CAClG,OAAOhD,EAAa6C,EAAG,WAAY,CAAC,4EAA6E,CAAC5C,EAAQO,EAAiBL,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACvM,CAAC,EAED,MAAa2C,EAAuC,gBAAU,SAAS,kBAAkB,EAAa,CACpG,OAAOjD,EAAa6C,EAAG,WAAY,CAAC,6EAA8E,CAAC5C,EAAQQ,EAAuBN,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CAC9M,CAAC,EAED,MAAa4C,EAAqC,gBAAU,SAAS,gBAAgB,EAAa,CAChG,OAAOlD,EAAa6C,EAAG,WAAY,CAAC,2EAA4E,CAAC5C,EAAQO,EAAiBL,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACtM,CAAC,EA+CD,MAAa6C,EAKK,gBAAQ,GAAgBN,IAAMnC,EAAQC,EAAU,oBAAqB,gXAAiX,CAACV,EAAQW,EAAQT,EAAUU,EAAYC,EAAUC,EAAWC,EAAkB8B,EAAiBF,EAAoBM,EAAiBF,EAAkBD,EAAUJ,EAAeM,EAAmBpB,EAA2BI,EAAuBhB,EAAayB,CAAS,CAAC,EAAIxB,EAASiC,EAAmBN,CAAC,CAAC,EAYrvB,MAAaQ,EAKK,gBAAQ,GAAgBR,IAAMnC,EAAQC,EAAU,kBAAmB,yXAA0X,CAACV,EAAQW,EAAQT,EAAUU,EAAYC,EAAUC,EAAWI,EAAS2B,EAAiBF,EAAoBM,EAAiBF,EAAkBD,EAAUJ,EAAeM,EAAmBpB,EAA2BI,EAAuBhB,EAAayB,CAAS,CAAC,EAAIxB,EAASmC,EAAiBR,CAAC,CAAC"}
@@ -0,0 +1,117 @@
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
+ export interface EnsureHttpCacheRequest {
77
+ /** A name of the cache. */
78
+ name?: string | undefined;
79
+ /** Optional site preference (e.g., "iad", "ord"). If not set, the site is determined from the caller's location or workload context. */
80
+ site?: string | undefined;
81
+ }
82
+ export interface EnsureHttpCacheResponse {
83
+ /** The URL endpoint for the HTTP build cache. */
84
+ cacheEndpointUrl: string;
85
+ username: string;
86
+ password: string | Redacted.Redacted<string>;
87
+ /** Until when is the returned cache configuration usable. */
88
+ expiresAt?: string | undefined;
89
+ /** The site where the cache is located (e.g., "iad", "ord"). */
90
+ site: string;
91
+ }
92
+ export interface GetAccessPolicyRequest {
93
+ /** A name of the cache. */
94
+ name?: string | undefined;
95
+ }
96
+ export type StringList = Array<string>;
97
+ /** Defines a permission grant on a resource. Permissions are used to restrict what a token is allowed to do. See https://namespace.so/docs/security/permissions for a list of available resource types and actions. */
98
+ export interface Permission {
99
+ /** The type of resource this permission applies to, e.g. "instance", "vault/object", "token/revokable". */
100
+ resourceType: string;
101
+ /** The specific resource ID, or empty for all resources of this type. */
102
+ resourceId: string;
103
+ /** The set of actions allowed on the resource, e.g. "create", "list", "describe". */
104
+ actions: StringList;
105
+ }
106
+ export type PermissionList = Array<Permission>;
107
+ export interface GetAccessPolicyResponse {
108
+ /** The set of permissions that is required to access HTTP caches. */
109
+ requiredPermission: PermissionList;
110
+ }
111
+ export type EnsureHttpCacheError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
112
+ /** Returns cache configuration for the caller's environment. Creates necessary resources if they don't exist. */
113
+ export declare const ensureHttpCache: API.OperationMethod<EnsureHttpCacheRequest, EnsureHttpCacheResponse, EnsureHttpCacheError, NamespaceLabsOpContext>;
114
+ export type GetAccessPolicyError = InvalidArgument | FailedPrecondition | Unauthenticated | PermissionDenied | NotFound | AlreadyExists | ResourceExhausted | NamespaceLabsOpError;
115
+ /** Returns the required permissions that are needed to access HTTP caches. */
116
+ export declare const getAccessPolicy: API.OperationMethod<GetAccessPolicyRequest, GetAccessPolicyResponse, GetAccessPolicyError, NamespaceLabsOpContext>;
117
+ //# sourceMappingURL=httpcache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpcache.d.ts","sourceRoot":"","sources":["../../src/services/httpcache.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;CA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GAC5B,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,oBAAoB,CAAC;AACzB,8EAA8E;AAC9E,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,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$SensitiveValue as v,traits$applyErrorMatchers as y,xa as b,xc as x,ya as S,yc as C}from"../_bundle/sdk.js";const w={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:`HttpCacheService`,propagate:`w3c`};const T=/*@__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,x,n,e,y]])});const E=/*@__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,S,x,n,e,y]])});const D=/*@__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,S,x,n,e,y]])});const O=/*@__PURE__*/ l(function NotFound(t){return f(t,new.target,[`$5($4()("NotFound",{message:$2,body:$3}).pipe($1),[{status:404}])`,[r,S,x,n,e,y]])});const k=/*@__PURE__*/ l(function PermissionDenied(t){return f(t,new.target,[`$5($4()("PermissionDenied",{message:$2,body:$3}).pipe($1),[{status:403}])`,[r,b,x,n,e,y]])});const A=/*@__PURE__*/ l(function ResourceExhausted(t){return f(t,new.target,[`$5($4()("ResourceExhausted",{message:$2,body:$3}).pipe($1),[{status:429}])`,[r,a,x,n,e,y]])});const j=/*@__PURE__*/ l(function Unauthenticated(t){return f(t,new.target,[`$5($4()("Unauthenticated",{message:$2,body:$3}).pipe($1),[{status:401}])`,[r,b,x,n,e,y]])});const M=/*@__PURE__*/ m(e=>e===s?d(`EnsureHttpCache`,`{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({name:$3($2),site:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.integrations.httpcache.v1beta.HttpCacheService/%",code:200}));$4({cacheEndpointUrl:$2,username:$2,password:$2.pipe($6({})),expiresAt:$3($2),site:$2})`,[r,_,x,i,C,o,v,D,E,j,k,O,T,A,u,h,g,w]):c(M,e));const N=/*@__PURE__*/ m(e=>e===s?d(`GetAccessPolicy`,`{input:#1,output:#5,errors:[$7,$8,$9,$10,$11,$12,$13,$14],protocol:$15,retry:$16,telemetry:$17,span:"%"};$5(>6)@"%Request";$6($2);$5(>7)@"Permission";$6(#3);$5(>8)@"%Response";$4({name:$3($2)}).pipe($1({method:"POST",uri:"/namespace.cloud.integrations.httpcache.v1beta.HttpCacheService/%",code:200}));$4({resourceType:$2,resourceId:$2,actions:#2});$4({requiredPermission:#4})`,[r,_,x,i,C,o,p,D,E,j,k,O,T,A,u,h,g,w]):c(N,e));export{T as AlreadyExists,E as FailedPrecondition,D as InvalidArgument,O as NotFound,k as PermissionDenied,A as ResourceExhausted,j as Unauthenticated,M as ensureHttpCache,N as getAccessPolicy};
2
+ //# sourceMappingURL=httpcache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpcache.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.Struct","S.suspend","T.SensitiveValue","Retry.Retry","API.call","S.Array","TaggedError","withConflictError","Unknown","at","optional","withThrottlingError","suspend","D","error","UnknownNamespaceLabsError","named","newError","Array","NamespaceLabsProtocol","Retry","Http","SensitiveValue","applyErrorMatchers","withAuthError","String","withBadRequestError","Struct","TELEMETRY","AlreadyExists","FailedPrecondition","i","InvalidArgument","NotFound","PermissionDenied","ResourceExhausted","Unauthenticated","ensureHttpCache","call","getAccessPolicy"],"sources":["../../src/services/httpcache.ts"],"mappings":"qUAkBA,MAAM0C,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,mBACT,UAAW,KACb,EAEA,MAAaC,EAAmC,gBAAU,SAAS,cAAc,EAAa,CAC5F,OAAO3C,EAAa,EAAG,WAAY,CAAC,yGAA0G,CAACC,EAAQC,EAAqBC,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACxO,CAAC,EAED,MAAasC,EAAwC,gBAAU,SAAS,mBAAmB,EAAa,CACtG,OAAO5C,EAAa6C,EAAG,WAAY,CAAC,mHAAoH,CAAC5C,EAAQM,EAAuBJ,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CACpP,CAAC,EAED,MAAawC,EAAqC,gBAAU,SAAS,gBAAgB,EAAa,CAChG,OAAO9C,EAAa6C,EAAG,WAAY,CAAC,6GAA8G,CAAC5C,EAAQM,EAAuBJ,EAAUC,EAAWC,EAAeC,CAAoB,CAAC,CAAC,CAC9O,CAAC,EAED,MAAayC,EAA8B,gBAAU,SAAS,SAAS,EAAa,CAClF,OAAO/C,EAAa6C,EAAG,WAAY,CAAC,oEAAqE,CAAC5C,EAAQM,EAAuBJ,EAAUC,EAAWC,EAA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