@akterjs/cli 0.0.0-stage → 0.1.1

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 (109) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +47 -2
  3. package/dist/Argument-D81dqizB.mjs +57 -0
  4. package/dist/Array-B4kuTQeW.mjs +2323 -0
  5. package/dist/Boolean-kILIvmhE.mjs +26 -0
  6. package/dist/ChildProcess-BCIwxPGc.mjs +577 -0
  7. package/dist/CliError-Cf5xqkkj.mjs +633 -0
  8. package/dist/Command-Dzq9KM-h.mjs +5135 -0
  9. package/dist/Config-B6OND9WR.mjs +854 -0
  10. package/dist/Console-BKHUkH6a.mjs +141 -0
  11. package/dist/Data-CeCULr0-.mjs +251 -0
  12. package/dist/Digest-CBd3uv5B.mjs +348 -0
  13. package/dist/Duration-EH9Vy4U6.mjs +791 -0
  14. package/dist/Effect-CKFpqbmw.mjs +12911 -0
  15. package/dist/FileSystem-4pPcEb_i.mjs +1366 -0
  16. package/dist/HttpClientError-BUeMWx70.mjs +303 -0
  17. package/dist/HttpClientResponse-D5ZKICVV.mjs +855 -0
  18. package/dist/Match-CGPLZYrV.mjs +434 -0
  19. package/dist/MutableHashMap-f8nW8AJR.mjs +376 -0
  20. package/dist/MutableHashSet-_HI572Ya.mjs +155 -0
  21. package/dist/MutableRef-D4Qv592C.mjs +107 -0
  22. package/dist/Number-BvkRkfc-.mjs +137 -0
  23. package/dist/Option-DkxSnBhp.mjs +3967 -0
  24. package/dist/Order-C1JC991I.mjs +481 -0
  25. package/dist/Path-Djdv_eF5.mjs +130 -0
  26. package/dist/Queue-CO5UQ6os.mjs +1394 -0
  27. package/dist/Redacted-RkJrG5Me.mjs +160 -0
  28. package/dist/Ref-BIPOxJNH.mjs +267 -0
  29. package/dist/Runtime-BInIAwK3.mjs +297 -0
  30. package/dist/Schema-MiKt5K1v.mjs +10999 -0
  31. package/dist/SecureRandom-B_U4ysO3.mjs +279 -0
  32. package/dist/Semaphore-DOVJ4ZGS.mjs +177 -0
  33. package/dist/Stdio-KylmOBX_.mjs +74 -0
  34. package/dist/Stream-bK9QIETN.mjs +4012 -0
  35. package/dist/String-q5dcsVe4.mjs +351 -0
  36. package/dist/TerminalCapabilities-w_44MAca.mjs +1769 -0
  37. package/dist/WebCrypto-ZI_GNVlw.mjs +33 -0
  38. package/dist/actor-call.service-CGM_vD9u.mjs +1269 -0
  39. package/dist/actor-client.adapter-Coem7gF1.mjs +3691 -0
  40. package/dist/akter-program.config-D8yb9xQP.mjs +7034 -0
  41. package/dist/akter.cli.mjs +5 -0
  42. package/dist/app-cli.config.mjs +49 -0
  43. package/dist/app-entry.pure.mjs +31 -0
  44. package/dist/archive/akter-archive.schema.mjs +65 -0
  45. package/dist/archive/akter-archive.service.mjs +309 -0
  46. package/dist/archive/archive-cli.config.mjs +45 -0
  47. package/dist/archive/archive-invalid.errors.mjs +5 -0
  48. package/dist/archive/archived-lineage.pure.mjs +13 -0
  49. package/dist/archive/tar.pure.mjs +291 -0
  50. package/dist/archive/zstd.adapter.mjs +46 -0
  51. package/dist/bench/bench-report.pure.mjs +120 -0
  52. package/dist/bench/bench-runner.pure.mjs +89 -0
  53. package/dist/bench/bench.service.mjs +301 -0
  54. package/dist/cli-runtime.layer-BqK2mmVL.mjs +1191 -0
  55. package/dist/cli-runtime.layer.mjs +1 -0
  56. package/dist/cloud-client.adapter-Cy1BjDbG.mjs +3186 -0
  57. package/dist/cloud-client.adapter-DOVMoYAj.mjs +304 -0
  58. package/dist/command/akter-commands.config.mjs +32 -0
  59. package/dist/command/akter-program.config.mjs +1 -0
  60. package/dist/credentials/credentials.service.mjs +226 -0
  61. package/dist/credentials/keychain.adapter.mjs +92 -0
  62. package/dist/credentials/login.config.mjs +251 -0
  63. package/dist/deploy/auth/api-attempt.service.mjs +30 -0
  64. package/dist/deploy/auth/token-refresh.errors.mjs +4 -0
  65. package/dist/deploy/build-bundle.adapter.mjs +133 -0
  66. package/dist/deploy/build-manifest.pure.mjs +44 -0
  67. package/dist/deploy/cloud-client.adapter.mjs +1 -0
  68. package/dist/deploy/cloud-url.pure.mjs +17 -0
  69. package/dist/deploy/deploy-failed.errors.mjs +17 -0
  70. package/dist/deploy/deploy.service.mjs +156 -0
  71. package/dist/deploy/request-failure.pure.mjs +87 -0
  72. package/dist/dev-runner.pure.mjs +30 -0
  73. package/dist/docs/doc-topics.pure.mjs +21 -0
  74. package/dist/docs/docs.config.mjs +1 -0
  75. package/dist/docs.config-D2amjsje.mjs +190 -0
  76. package/dist/docs.config-D3zzLzLR.mjs +190 -0
  77. package/dist/export/actor-export.service.mjs +267 -0
  78. package/dist/export/export-failed.errors.mjs +4 -0
  79. package/dist/export/export-failure.pure.mjs +18 -0
  80. package/dist/export/ordered-lines.pure.mjs +43 -0
  81. package/dist/export/ranged-download.pure.mjs +66 -0
  82. package/dist/export/snapshot-download.pure.mjs +86 -0
  83. package/dist/history-runner.pure.mjs +186 -0
  84. package/dist/history-since.pure.mjs +17 -0
  85. package/dist/hosted-runtime.layer-Cx3IPsEd.mjs +16358 -0
  86. package/dist/local/environment-cli.config.mjs +90 -0
  87. package/dist/local/environment-runner.pure.mjs +75 -0
  88. package/dist/local/local-cli.config.mjs +159 -0
  89. package/dist/logs/log-follow.config.mjs +21 -0
  90. package/dist/logs/log-follow.service.mjs +87 -0
  91. package/dist/logs/log-lines.pure.mjs +44 -0
  92. package/dist/migrate-runner.pure.mjs +28 -0
  93. package/dist/operation-input.pure-CS9iUhqK.mjs +1383 -0
  94. package/dist/operation-registry.pure-DVC8EDgj.mjs +283 -0
  95. package/dist/registry/actor-call.service.mjs +1 -0
  96. package/dist/registry/actor-commands.config.mjs +127 -0
  97. package/dist/registry/actor-refusal.pure.mjs +34 -0
  98. package/dist/registry/approval.service.mjs +80 -0
  99. package/dist/registry/cloud-commands.config.mjs +151 -0
  100. package/dist/registry/cloud-served.pure.mjs +31 -0
  101. package/dist/registry/operation-call.service.mjs +262 -0
  102. package/dist/registry/operation-input.pure.mjs +1 -0
  103. package/dist/registry/operation-output.pure.mjs +91 -0
  104. package/dist/registry/served-command.config.mjs +57 -0
  105. package/dist/runner-exited.errors.mjs +10 -0
  106. package/dist/terminal/cli-exit.errors.mjs +38 -0
  107. package/dist/terminal/cli-failure.pure.mjs +31 -0
  108. package/dist/terminal/confirm.adapter.mjs +27 -0
  109. package/package.json +61 -3
@@ -0,0 +1,3186 @@
1
+ import { n as Error } from "./Data-CeCULr0-.mjs";
2
+ import { $t as suspend, B as flatMap, Dt as orElseSucceed, E as contextWith, Kr as hasInterrupts, M as fail, N as failCause, Vn as effect, Xi as DisablePropagation, Xt as succeed, aa as Service, bn as withParentSpan, dt as map, en as sync, gn as void_, ha as merge, hn as useSpan, ia as Reference, mn as updateContext, or as TracerTimingEnabled, pn as uninterruptibleMask, vt as matchCauseEffect, wt as onInterrupt, xr as fail$1, yn as withFiber } from "./Effect-CKFpqbmw.mjs";
3
+ import { $t as isUnique, Ct as isFinite, Dt as isGreaterThanOrEqualTo, F as String$1, Ft as isLessThanOrEqualTo, Gn as CurrentRedactedNames, I as Struct, In as CurrentRedactedNames$1, Jn as fromRecordUnsafe, Jt as isPropertyNames, M as Record, Rt as isMaxCodePoints, S as Literals, U as Tuple, Ut as isMinLength, W as TupleWithRest, Xn as isRedactedName, Y as Union, a as Boolean, an as optionalKey, g as Finite, jt as isInt, k as Number$1, n as ArraySchema, qt as isPattern, rn as makeFilterGroup, v as Int, wt as isGreaterThan, x as Literal, zn as redactUrl } from "./Schema-MiKt5K1v.mjs";
4
+ import { J as suspend$1, d as ensuring, nt as unwrap } from "./Stream-bK9QIETN.mjs";
5
+ import { C as put, E as setUrlParams, N as Clock, O as make$3, a as WebSourceSymbol, b as patch, c as TypeId$2, g as del, i as matchStatus, m as bodyJsonUnsafe, n as filterStatusOk$1, o as getWebSource, t as TypeId$1, u as schemaBodyJson, v as get, w as setHeaders, x as post, y as make$2 } from "./HttpClientResponse-D5ZKICVV.mjs";
6
+ import { Ct as NodeInspectSymbol, On as pipeArguments, bn as dual, bt as setStackTraceLimit, gn as constTrue, hn as constFalse, m as getOrUndefined, x as match, xt as BaseProto, yt as getStackTraceLimit } from "./Option-DkxSnBhp.mjs";
7
+ import { $ as isFailure } from "./Array-B4kuTQeW.mjs";
8
+ import { i as HttpClientError, o as InvalidUrlError, s as StatusCodeError } from "./HttpClientError-BUeMWx70.mjs";
9
+ // ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/http/HttpMethod.js
10
+ /**
11
+ * Provides a readonly set containing every supported `HttpMethod` literal.
12
+ *
13
+ * **When to use**
14
+ *
15
+ * Use when you need to iterate over or test membership against every supported
16
+ * HTTP method literal.
17
+ *
18
+ * @stability unstable
19
+ * @category constants
20
+ * @since 4.0.0
21
+ */
22
+ const all = /*#__PURE__*/ new Set([
23
+ "GET",
24
+ "POST",
25
+ "PUT",
26
+ "DELETE",
27
+ "PATCH",
28
+ "HEAD",
29
+ "OPTIONS",
30
+ "TRACE",
31
+ "QUERY"
32
+ ]);
33
+ /**
34
+ * Provides tuples mapping each supported HTTP method to its short
35
+ * request-constructor name.
36
+ *
37
+ * **When to use**
38
+ *
39
+ * Use when you need the mapping from supported HTTP method literals to their
40
+ * short request-constructor names.
41
+ *
42
+ * @stability unstable
43
+ * @category constants
44
+ * @since 4.0.0
45
+ */
46
+ const allShort = [
47
+ ["GET", "get"],
48
+ ["POST", "post"],
49
+ ["PUT", "put"],
50
+ ["DELETE", "del"],
51
+ ["PATCH", "patch"],
52
+ ["HEAD", "head"],
53
+ ["OPTIONS", "options"],
54
+ ["TRACE", "trace"],
55
+ ["QUERY", "query"]
56
+ ];
57
+ /**
58
+ * Checks whether a value is a `HttpMethod`.
59
+ *
60
+ * **Example** (Checking HTTP method values)
61
+ *
62
+ * ```ts import.meta.vitest
63
+ * import { HttpMethod } from "effect/http"
64
+ *
65
+ * HttpMethod.isHttpMethod("GET") // => true
66
+ * HttpMethod.isHttpMethod("get") // => false
67
+ * HttpMethod.isHttpMethod(1) // => false
68
+ * ```
69
+ *
70
+ * @stability unstable
71
+ * @category guards
72
+ * @since 4.0.0
73
+ */
74
+ const isHttpMethod = (u) => all.has(u);
75
+ // ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/http/HttpTraceContext.js
76
+ /**
77
+ * HTTP propagation helpers for Effect tracing context.
78
+ *
79
+ * This module converts Effect `Tracer.Span` values into outbound trace headers
80
+ * and decodes inbound propagation headers into `Tracer.ExternalSpan` parents.
81
+ * HTTP clients use it to continue the current span across outgoing requests, and
82
+ * server middleware uses it to parent request spans from upstream services.
83
+ *
84
+ * @stability unstable
85
+ * @since 4.0.0
86
+ */
87
+ /**
88
+ * Encodes a span into HTTP trace propagation headers.
89
+ *
90
+ * **Details**
91
+ *
92
+ * The generated headers include both compact B3 (`b3`) and W3C `traceparent`
93
+ * formats.
94
+ *
95
+ * @stability unstable
96
+ * @category encoding
97
+ * @since 4.0.0
98
+ */
99
+ const toHeaders = (span) => fromRecordUnsafe({
100
+ b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
101
+ onNone: () => "",
102
+ onSome: (parent) => `-${parent.spanId}`
103
+ })}`,
104
+ traceparent: `00-${span.traceId.padStart(32, "0")}-${span.spanId}-${span.sampled ? "01" : "00"}`
105
+ });
106
+ // ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/http/internal/tracing.js
107
+ const defaultPorts = {
108
+ "http:": 80,
109
+ "https:": 443,
110
+ "ws:": 80,
111
+ "wss:": 443
112
+ };
113
+ /**
114
+ * Records `url.*` and `server.*` attributes with URL redaction.
115
+ *
116
+ * @internal
117
+ */
118
+ const addUrlAttributes = (span, url, redactedNames) => {
119
+ const query = redactUrl(url.search, redactedNames).slice(1);
120
+ span.attribute("url.full", redactUrl(url.href, redactedNames));
121
+ span.attribute("url.path", url.pathname);
122
+ if (query !== "") span.attribute("url.query", query);
123
+ span.attribute("url.scheme", url.protocol.slice(0, -1));
124
+ if (url.hostname !== "") {
125
+ span.attribute("server.address", url.hostname.startsWith("[") ? url.hostname.slice(1, -1) : url.hostname);
126
+ const port = url.port === "" ? defaultPorts[url.protocol] : Number(url.port);
127
+ if (port !== void 0) span.attribute("server.port", port);
128
+ }
129
+ };
130
+ /**
131
+ * Adds the names of `Redacted` parameters to the redacted names.
132
+ *
133
+ * @internal
134
+ */
135
+ const redactedNames = (urlParams, redactedNames) => {
136
+ const keys = urlParams.params.filter(([, value]) => typeof value !== "string").map(([key]) => key);
137
+ return keys.length === 0 ? redactedNames : [...redactedNames, ...new URLSearchParams(keys.map((key) => [key, ""])).keys()];
138
+ };
139
+ /** @internal */
140
+ const addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
141
+ for (const name in headers) {
142
+ if (!filter(name, phase)) continue;
143
+ span.attribute(`http.${phase}.header.${name}`, isRedactedName(name, redactedNames) ? "<redacted>" : headers[name]);
144
+ }
145
+ };
146
+ // ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/http/HttpClient.js
147
+ const TypeId = "~effect/http/HttpClient";
148
+ /**
149
+ * Service tag for the default outgoing HTTP client service.
150
+ *
151
+ * **When to use**
152
+ *
153
+ * Use to provide the default outgoing HTTP client service used by request
154
+ * accessors such as `execute`, `get`, and `post`.
155
+ *
156
+ * @stability unstable
157
+ * @category services
158
+ * @since 4.0.0
159
+ */
160
+ const HttpClient = /*#__PURE__*/ Service("effect/HttpClient");
161
+ /**
162
+ * Transforms a client by applying an effectful transformation to each response effect.
163
+ *
164
+ * @stability unstable
165
+ * @category mapping
166
+ * @since 4.0.0
167
+ */
168
+ const transformResponse = /*#__PURE__*/ dual(2, (self, f) => makeWith((request) => f(self.postprocess(request)), self.preprocess));
169
+ /**
170
+ * Filters responses that return a 2xx status code.
171
+ *
172
+ * @stability unstable
173
+ * @category filtering
174
+ * @since 4.0.0
175
+ */
176
+ const filterStatusOk = /*#__PURE__*/ transformResponse(/*#__PURE__*/ flatMap(filterStatusOk$1));
177
+ /**
178
+ * Constructs an `HttpClient.With` from a preprocessing function and a postprocessing function.
179
+ *
180
+ * **Details**
181
+ *
182
+ * `execute` applies preprocessing to the request and then passes the resulting request effect to postprocessing.
183
+ *
184
+ * @stability unstable
185
+ * @category constructors
186
+ * @since 4.0.0
187
+ */
188
+ const makeWith = (postprocess, preprocess) => {
189
+ const self = Object.create(Proto);
190
+ self.preprocess = preprocess;
191
+ self.postprocess = postprocess;
192
+ self.execute = function(request) {
193
+ return postprocess(preprocess(request));
194
+ };
195
+ return self;
196
+ };
197
+ const Proto = {
198
+ [TypeId]: TypeId,
199
+ pipe() {
200
+ return pipeArguments(this, arguments);
201
+ },
202
+ ...BaseProto,
203
+ toJSON() {
204
+ return { _id: "effect/HttpClient" };
205
+ },
206
+ .../*#__PURE__*/ Object.fromEntries(/*#__PURE__*/ allShort.map(([fullMethod, method]) => [method, function(url, options) {
207
+ return this.execute(make$2(fullMethod)(url, options));
208
+ }]))
209
+ };
210
+ /**
211
+ * Constructs an `HttpClient` from a low-level request runner.
212
+ *
213
+ * **Details**
214
+ *
215
+ * The runner receives the request, resolved URL, abort signal, and current fiber. The client wrapper handles URL construction failures, tracing and propagation, header redaction, and aborting non-scoped requests on interruption.
216
+ *
217
+ * @stability unstable
218
+ * @category constructors
219
+ * @since 4.0.0
220
+ */
221
+ const make$1 = (f) => makeWith((effect) => flatMap(effect, (request) => withFiber((fiber) => {
222
+ const scopedController = scopedRequests.get(request);
223
+ const controller = scopedController ?? new AbortController();
224
+ const urlResult = make$3(request.url, request.urlParams, getOrUndefined(request.hash));
225
+ if (isFailure(urlResult)) return fail(new HttpClientError({ reason: new InvalidUrlError({
226
+ request,
227
+ cause: urlResult.failure
228
+ }) }));
229
+ const url = urlResult.success;
230
+ if (fiber.getRef(DisablePropagation) || fiber.getRef(TracerDisabledWhen)(request)) {
231
+ const effect = f(request, url, controller.signal, fiber);
232
+ if (scopedController) return map(effect, (response) => trackResponse(response, controller, true));
233
+ return uninterruptibleMask((restore) => matchCauseEffect(restore(effect), {
234
+ onSuccess(response) {
235
+ return succeed(trackResponse(response, controller, false));
236
+ },
237
+ onFailure(cause) {
238
+ if (hasInterrupts(cause)) controller.abort();
239
+ return failCause(cause);
240
+ }
241
+ }));
242
+ }
243
+ return useSpan(fiber.getRef(SpanNameGenerator)(request), { kind: "client" }, (span) => {
244
+ span.attribute("http.request.method", request.method);
245
+ const redactedHeaderNames = fiber.getRef(CurrentRedactedNames);
246
+ addUrlAttributes(span, url, redactedNames(request.urlParams, fiber.getRef(CurrentRedactedNames$1)));
247
+ const headerFilter = fiber.getRef(TracerHeaderFilter);
248
+ addHeaderAttributes(span, "request", request.headers, headerFilter, redactedHeaderNames);
249
+ request = fiber.getRef(TracerPropagationEnabled) ? setHeaders(request, toHeaders(span)) : request;
250
+ return uninterruptibleMask((restore) => restore(f(request, url, controller.signal, fiber)).pipe(withParentSpan(span, { captureStackTrace: false }), matchCauseEffect({
251
+ onSuccess: (response) => {
252
+ span.attribute("http.response.status_code", response.status);
253
+ addHeaderAttributes(span, "response", response.headers, headerFilter, redactedHeaderNames);
254
+ if (response.status >= 400 && response.status < 600) {
255
+ span.attribute("error.type", String(response.status));
256
+ endSpanWithStatusError(fiber, span, request, response);
257
+ }
258
+ return succeed(trackResponse(response, controller, scopedController !== void 0));
259
+ },
260
+ onFailure(cause) {
261
+ if (!scopedController && hasInterrupts(cause)) controller.abort();
262
+ return failCause(cause);
263
+ }
264
+ })));
265
+ });
266
+ })), succeed);
267
+ const endSpanWithStatusError = (fiber, span, request, response) => {
268
+ const stackTraceLimit = getStackTraceLimit();
269
+ setStackTraceLimit(0);
270
+ let exit;
271
+ try {
272
+ exit = fail$1(new HttpClientError({ reason: new StatusCodeError({
273
+ request,
274
+ response
275
+ }) }));
276
+ } finally {
277
+ setStackTraceLimit(stackTraceLimit);
278
+ }
279
+ span.end(fiber.getRef(TracerTimingEnabled) ? fiber.getRef(Clock).currentTimeNanosUnsafe() : BigInt(0), exit);
280
+ };
281
+ /**
282
+ * Appends a transformation of the request object before sending it.
283
+ *
284
+ * @stability unstable
285
+ * @category mapping
286
+ * @since 4.0.0
287
+ */
288
+ const mapRequest = /*#__PURE__*/ dual(2, (self, f) => makeWith(self.postprocess, (request) => map(self.preprocess(request), f)));
289
+ /**
290
+ * Appends an effectful transformation of the request object before sending it.
291
+ *
292
+ * @stability unstable
293
+ * @category mapping
294
+ * @since 4.0.0
295
+ */
296
+ const mapRequestEffect = /*#__PURE__*/ dual(2, (self, f) => makeWith(self.postprocess, (request) => flatMap(self.preprocess(request), f)));
297
+ /**
298
+ * Context reference for a predicate that disables client-side tracing for matching outgoing requests.
299
+ *
300
+ * @stability unstable
301
+ * @category services
302
+ * @since 4.0.0
303
+ */
304
+ const TracerDisabledWhen = /*#__PURE__*/ Reference("effect/http/HttpClient/TracerDisabledWhen", { defaultValue: () => constFalse });
305
+ /**
306
+ * Context reference for filtering request and response headers added to client spans.
307
+ *
308
+ * **Details**
309
+ *
310
+ * Header capture is opt-in: the default filter records no headers. Captured
311
+ * headers listed in `Headers.CurrentRedactedNames` are recorded as `<redacted>`.
312
+ *
313
+ * @stability unstable
314
+ * @category services
315
+ * @since 4.0.0
316
+ */
317
+ const TracerHeaderFilter = /*#__PURE__*/ Reference("effect/http/HttpClient/TracerHeaderFilter", { defaultValue: () => constFalse });
318
+ /**
319
+ * Context reference that controls whether outgoing client spans are propagated to request headers.
320
+ *
321
+ * **Details**
322
+ *
323
+ * When this is `true`, the client writes the compact B3 `b3` header and the
324
+ * W3C `traceparent` header. The default is on. The client span is still
325
+ * created when this is `false`.
326
+ *
327
+ * **Gotchas**
328
+ *
329
+ * A browser preflight fails when the target does not list `b3` and
330
+ * `traceparent` in `Access-Control-Allow-Headers`. Set this to `false` for
331
+ * those requests.
332
+ *
333
+ * @stability unstable
334
+ * @category services
335
+ * @since 4.0.0
336
+ */
337
+ const TracerPropagationEnabled = /*#__PURE__*/ Reference("effect/http/HttpClient/TracerPropagationEnabled", { defaultValue: constTrue });
338
+ /**
339
+ * Context reference for generating the span name used for outgoing client request spans.
340
+ *
341
+ * **Details**
342
+ *
343
+ * Defaults to the request method unchanged.
344
+ *
345
+ * @stability unstable
346
+ * @category services
347
+ * @since 4.0.0
348
+ */
349
+ const SpanNameGenerator = /*#__PURE__*/ Reference("effect/http/HttpClient/SpanNameGenerator", { defaultValue: () => (request) => request.method });
350
+ /**
351
+ * Creates an `HttpClient` layer and merges the layer construction context into client response effects.
352
+ *
353
+ * @stability unstable
354
+ * @category layers
355
+ * @since 4.0.0
356
+ */
357
+ const layerMergedContext = (effect$1) => effect(HttpClient)(contextWith((context) => map(effect$1, (client) => transformResponse(client, updateContext((input) => merge(context, input))))));
358
+ const responseRegistry = /*#__PURE__*/ (() => {
359
+ if ("FinalizationRegistry" in globalThis && globalThis.FinalizationRegistry) {
360
+ const registry = /*#__PURE__*/ new FinalizationRegistry((controller) => {
361
+ try {
362
+ controller.abort();
363
+ } catch {}
364
+ });
365
+ return {
366
+ register(response, controller) {
367
+ registry.register(response, controller, response);
368
+ },
369
+ unregister(response) {
370
+ registry.unregister(response);
371
+ }
372
+ };
373
+ }
374
+ const timers = /*#__PURE__*/ new WeakMap();
375
+ return {
376
+ register(response, controller) {
377
+ timers.set(response, setTimeout(() => controller.abort(), 5e3));
378
+ },
379
+ unregister(response) {
380
+ const timer = timers.get(response);
381
+ if (timer === void 0) return;
382
+ clearTimeout(timer);
383
+ timers.delete(response);
384
+ }
385
+ };
386
+ })();
387
+ const scopedRequests = /*#__PURE__*/ new WeakMap();
388
+ const responseControllers = /*#__PURE__*/ new WeakMap();
389
+ const trackResponse = (response, controller, scoped) => {
390
+ if (!scoped) {
391
+ responseRegistry.register(response, controller);
392
+ response = new InterruptibleResponse(response, controller);
393
+ }
394
+ responseControllers.set(response, controller);
395
+ return response;
396
+ };
397
+ var InterruptibleResponse = class {
398
+ original;
399
+ controller;
400
+ constructor(original, controller) {
401
+ this.original = original;
402
+ this.controller = controller;
403
+ }
404
+ [TypeId$1] = TypeId$1;
405
+ [TypeId$2] = TypeId$2;
406
+ applyInterrupt(effect) {
407
+ return suspend(() => {
408
+ responseRegistry.unregister(this.original);
409
+ return onInterrupt(effect, () => sync(() => {
410
+ this.controller.abort();
411
+ }));
412
+ });
413
+ }
414
+ get request() {
415
+ return this.original.request;
416
+ }
417
+ get url() {
418
+ return this.original.url;
419
+ }
420
+ get status() {
421
+ return this.original.status;
422
+ }
423
+ get headers() {
424
+ return this.original.headers;
425
+ }
426
+ get cookies() {
427
+ return this.original.cookies;
428
+ }
429
+ get remoteAddress() {
430
+ return this.original.remoteAddress;
431
+ }
432
+ get formData() {
433
+ return this.applyInterrupt(this.original.formData);
434
+ }
435
+ get text() {
436
+ return this.applyInterrupt(this.original.text);
437
+ }
438
+ get json() {
439
+ return this.applyInterrupt(this.original.json);
440
+ }
441
+ get urlParamsBody() {
442
+ return this.applyInterrupt(this.original.urlParamsBody);
443
+ }
444
+ get arrayBuffer() {
445
+ return this.applyInterrupt(this.original.arrayBuffer);
446
+ }
447
+ get upgrade() {
448
+ return this.applyInterrupt(this.original.upgrade);
449
+ }
450
+ [WebSourceSymbol]() {
451
+ const source = getWebSource(this.original);
452
+ if (source !== void 0) responseRegistry.unregister(this.original);
453
+ return source;
454
+ }
455
+ get stream() {
456
+ return suspend$1(() => {
457
+ responseRegistry.unregister(this.original);
458
+ return ensuring(this.original.stream, sync(() => {
459
+ this.controller.abort();
460
+ }));
461
+ });
462
+ }
463
+ toJSON() {
464
+ return this.original.toJSON();
465
+ }
466
+ [NodeInspectSymbol]() {
467
+ return this.original[NodeInspectSymbol]();
468
+ }
469
+ pipe() {
470
+ return pipeArguments(this, arguments);
471
+ }
472
+ };
473
+ // .generated/compiled/cloud-client.adapter.js
474
+ const OrganizationName = String$1.annotate({ "description": "An organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
475
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
476
+ "identifier": "OrganizationName"
477
+ }));
478
+ const UnauthorizedErrorEncoded = Struct({ "_tag": Literal("UnauthorizedError") }).annotate({ "identifier": "UnauthorizedErrorEncoded" });
479
+ const ActorUnavailableErrorEncoded = Struct({
480
+ "_tag": Literal("ActorUnavailableError"),
481
+ "reason": String$1
482
+ }).annotate({ "identifier": "ActorUnavailableErrorEncoded" });
483
+ const AuthUnavailableErrorEncoded = Struct({
484
+ "_tag": Literal("AuthUnavailableError"),
485
+ "retryAfterSeconds": Number$1.annotate({ "description": "Seconds to wait before retrying, also sent as the Retry-After header." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
486
+ }).annotate({ "identifier": "AuthUnavailableErrorEncoded" });
487
+ const BillingUnavailableErrorEncoded = Struct({
488
+ "_tag": Literal("BillingUnavailableError"),
489
+ "retryAfterSeconds": Number$1.annotate({ "description": "Seconds to wait before retrying, also sent as the Retry-After header." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
490
+ }).annotate({ "identifier": "BillingUnavailableErrorEncoded" });
491
+ const BuildStorageUnavailableErrorEncoded = Struct({
492
+ "_tag": Literal("BuildStorageUnavailableError"),
493
+ "missing": ArraySchema(String$1).annotate({ "description": "The config this control plane needs to store builds." })
494
+ }).annotate({ "identifier": "BuildStorageUnavailableErrorEncoded" });
495
+ const ExecUnavailableErrorEncoded = Struct({
496
+ "_tag": Literal("ExecUnavailableError"),
497
+ "reason": String$1,
498
+ "retryAfterSeconds": Number$1.annotate({ "description": "Seconds to wait before asking again, also sent as the Retry-After header." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
499
+ }).annotate({ "identifier": "ExecUnavailableErrorEncoded" });
500
+ const AlreadyExistsErrorEncoded = Struct({
501
+ "_tag": Literal("AlreadyExistsError"),
502
+ "key": String$1,
503
+ "resource": Literals([
504
+ "organization",
505
+ "member",
506
+ "api-key",
507
+ "app",
508
+ "environment",
509
+ "snapshot",
510
+ "build",
511
+ "deploy",
512
+ "actor",
513
+ "domain",
514
+ "session",
515
+ "account",
516
+ "invitation",
517
+ "approval"
518
+ ])
519
+ }).annotate({ "identifier": "AlreadyExistsErrorEncoded" });
520
+ const ForbiddenErrorEncoded = Struct({
521
+ "_tag": Literal("ForbiddenError"),
522
+ "needs": String$1,
523
+ "reason": optionalKey(String$1.annotate({ "description": "Why the caller can't have it, when a rule refused it outright, such as a key limited to named apps." }))
524
+ }).annotate({ "identifier": "ForbiddenErrorEncoded" });
525
+ const NotFoundErrorEncoded = Struct({
526
+ "_tag": Literal("NotFoundError"),
527
+ "key": String$1,
528
+ "resource": Literals([
529
+ "organization",
530
+ "member",
531
+ "api-key",
532
+ "app",
533
+ "environment",
534
+ "snapshot",
535
+ "build",
536
+ "deploy",
537
+ "actor",
538
+ "domain",
539
+ "session",
540
+ "account",
541
+ "invitation",
542
+ "approval"
543
+ ])
544
+ }).annotate({ "identifier": "NotFoundErrorEncoded" });
545
+ const FlagName = String$1.annotate({ "description": "A feature flag's name: a lowercase letter, then 1 to 62 letters or digits, such as cloudFork." }).check(isPattern(new globalThis.RegExp("^[a-z][A-Za-z0-9]{1,62}$", "u")).annotate({
546
+ "expected": "a string matching the RegExp ^[a-z][A-Za-z0-9]{1,62}$",
547
+ "identifier": "FlagName"
548
+ }));
549
+ const EnvironmentName = String$1.annotate({ "description": "An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
550
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
551
+ "identifier": "EnvironmentName"
552
+ }));
553
+ const InUseReason = Literals([
554
+ "organizationHasApps",
555
+ "soleOwner",
556
+ "environmentHasDomains",
557
+ "environmentRetired",
558
+ "environmentNotReady",
559
+ "environmentReadOnly",
560
+ "environmentLive",
561
+ "environmentPromoted",
562
+ "environmentHasBranches",
563
+ "snapshotNotReady"
564
+ ]).annotate({
565
+ "description": "organizationHasApps: delete the organization's apps first; soleOwner: the account is the only owner of the organization named by key, so make someone else an owner or delete the organization first; environmentHasDomains: delete the domains that point at the environment named by key first; environmentRetired: the environment named by key was deleted and keeps its name, so neither a deploy nor a new environment can take it; use another name; environmentNotReady: the environment named by key is Branching or Failed, so it can't be promoted or branched from yet; environmentReadOnly: a promote fenced the environment named by key and no promoted environment serves its hostname, so it takes no deploys until it is promoted again; environmentLive: the environment named by key serves another environment's hostname after a promote, so promote that one back before deleting it; environmentPromoted: the environment named by key was promoted and serves the hostname of the environment named by route, so it takes no deploys by its own name; deploy to route, which reaches it; environmentHasBranches: the environment named by key has the live branches named by branches, so delete them first; snapshotNotReady: the snapshot named by key is not Ready, so nothing can branch from it yet.",
566
+ "identifier": "InUseReason"
567
+ });
568
+ const EnvironmentName_1 = String$1.annotate({ "description": "With environmentPromoted: the environment whose hostname the one named by key now serves." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
569
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
570
+ "identifier": "EnvironmentName_1"
571
+ }));
572
+ const DangerousOperation = Literals([
573
+ "account.delete",
574
+ "actorForks.create",
575
+ "actors.erase",
576
+ "apiKeys.revoke",
577
+ "apiKeys.update",
578
+ "apps.delete",
579
+ "billing.cancel",
580
+ "billing.setCap",
581
+ "domains.delete",
582
+ "environments.delete",
583
+ "environments.promote",
584
+ "members.remove",
585
+ "organizations.delete",
586
+ "secrets.delete",
587
+ "snapshots.delete"
588
+ ]).annotate({
589
+ "description": "The operation that needs a person's approval. Request one at POST /v1/organizations/{organization}/approvals and send its token as the akter-approval header.",
590
+ "identifier": "DangerousOperation"
591
+ });
592
+ const ApprovalTarget = String$1.annotate({ "description": "What the operation acts on: its path's values after the organization, joined with /, such as the app's name for apps.delete or shop/prod/DB_URL for secrets.delete; the organization's name for organizations.delete; account for account.delete." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(200).annotate({
593
+ "expected": "a string with at most 200 code points",
594
+ "identifier": "ApprovalTarget"
595
+ }));
596
+ Struct({ "displayName": String$1.annotate({ "description": "A name for people to read, 1 to 100 characters." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(100).annotate({ "expected": "a string with at most 100 code points" })) }).annotate({ "identifier": "UpdateOrganization" });
597
+ const AppName = String$1.annotate({ "description": "An app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
598
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
599
+ "identifier": "AppName"
600
+ }));
601
+ const Email = String$1.annotate({ "description": "The person who created the key, who is asked to approve its dangerous actions." }).check(isMaxCodePoints(254).annotate({ "expected": "a string with at most 254 code points" })).check(isPattern(new globalThis.RegExp("^[^\\s@]+@[^\\s@]+$", "u")).annotate({
602
+ "expected": "a string matching the RegExp ^[^\\s@]+@[^\\s@]+$",
603
+ "identifier": "Email"
604
+ }));
605
+ const ApiKeyId = String$1.annotate({ "description": "An opaque id that starts with key_." }).check(isPattern(new globalThis.RegExp("^key_[0-9a-z]{1,64}$", "u")).annotate({
606
+ "expected": "a string matching the RegExp ^key_[0-9a-z]{1,64}$",
607
+ "identifier": "ApiKeyId"
608
+ }));
609
+ const ApiKeyScope = Literals([
610
+ "deploy",
611
+ "usage",
612
+ "call",
613
+ "read",
614
+ "export",
615
+ "delete",
616
+ "branch",
617
+ "snapshot",
618
+ "fork"
619
+ ]).annotate({
620
+ "description": "What a key may do in its organization: deploy its apps, read its usage, call its apps' actors, read their history, export their databases and history, delete its apps, branch an environment, take and delete an environment's snapshots, or fork an actor. A delete, a snapshot delete and a fork still need a person's approval each time.",
621
+ "identifier": "ApiKeyScope"
622
+ });
623
+ const SpendCap = Number$1.annotate({ "description": "The key's monthly cap in whole US dollars. Every key made since Phase 8 has one; an older key without it is bounded by its organization's cap." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(9007199254740991).annotate({
624
+ "expected": "a value less than or equal to 9007199254740991",
625
+ "identifier": "SpendCap"
626
+ }));
627
+ const SpendCap_1 = Number$1.annotate({ "description": "The most the work this key starts may cost in a calendar month, in whole US dollars. Raising it needs a person's confirmation." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(9007199254740991).annotate({
628
+ "expected": "a value less than or equal to 9007199254740991",
629
+ "identifier": "SpendCap_1"
630
+ }));
631
+ const DangerousOperation_1 = Literals([
632
+ "account.delete",
633
+ "actorForks.create",
634
+ "actors.erase",
635
+ "apiKeys.revoke",
636
+ "apiKeys.update",
637
+ "apps.delete",
638
+ "billing.cancel",
639
+ "billing.setCap",
640
+ "domains.delete",
641
+ "environments.delete",
642
+ "environments.promote",
643
+ "members.remove",
644
+ "organizations.delete",
645
+ "secrets.delete",
646
+ "snapshots.delete"
647
+ ]).annotate({
648
+ "description": "An operation an API key may run only with a person's approval, named as group.operation like the CLI command and MCP tool.",
649
+ "identifier": "DangerousOperation_1"
650
+ });
651
+ const ApprovalId = String$1.annotate({ "description": "An opaque id that starts with apr_." }).check(isPattern(new globalThis.RegExp("^apr_[0-9a-z]{1,64}$", "u")).annotate({
652
+ "expected": "a string matching the RegExp ^apr_[0-9a-z]{1,64}$",
653
+ "identifier": "ApprovalId"
654
+ }));
655
+ const Email_1 = String$1.annotate({ "description": "The person asked to approve: the key's creator." }).check(isMaxCodePoints(254).annotate({ "expected": "a string with at most 254 code points" })).check(isPattern(new globalThis.RegExp("^[^\\s@]+@[^\\s@]+$", "u")).annotate({
656
+ "expected": "a string matching the RegExp ^[^\\s@]+@[^\\s@]+$",
657
+ "identifier": "Email_1"
658
+ }));
659
+ const RateLimitedErrorEncoded = Struct({
660
+ "_tag": Literal("RateLimitedError"),
661
+ "retryAfterSeconds": Number$1.annotate({ "description": "Seconds until the limit resets, also sent as the Retry-After header." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
662
+ }).annotate({ "identifier": "RateLimitedErrorEncoded" });
663
+ Struct({ "code": String$1.annotate({ "description": "The 6-digit code from the approval email." }).check(isPattern(new globalThis.RegExp("^\\d{6}$", "u")).annotate({ "expected": "a string matching the RegExp ^\\d{6}$" })) }).annotate({ "identifier": "ConfirmApproval" });
664
+ const ApprovalToken = Struct({
665
+ "expiresAt": String$1,
666
+ "token": String$1.annotate({ "description": "Send it once as the akter-approval header of the approved operation on the approved target. It works once and only for the key that asked." })
667
+ }).annotate({ "identifier": "ApprovalToken" });
668
+ const CodeRejection = Literals([
669
+ "invalid",
670
+ "expired",
671
+ "tooManyAttempts"
672
+ ]).annotate({
673
+ "description": "invalid: wrong, already used, or replaced by a newer code; expired: ask for a new code; tooManyAttempts: the code took too many wrong guesses and no longer works, so ask for a new one.",
674
+ "identifier": "CodeRejection"
675
+ });
676
+ const AppHostname = String$1.annotate({
677
+ "description": "The hostname an app's environment answers on over HTTPS, such as shop--prod--acme.akter.run. An environment keeps the hostname its first published deploy got.",
678
+ "identifier": "AppHostname"
679
+ });
680
+ const SnapshotName = String$1.annotate({ "description": "A named snapshot of an environment, such as before-migration, unique within the environment. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
681
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
682
+ "identifier": "SnapshotName"
683
+ }));
684
+ const EnvironmentName_2 = String$1.annotate({ "description": "The environment that served the hostname before. It stays read-only, with its data, until deleted." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
685
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
686
+ "identifier": "EnvironmentName_2"
687
+ }));
688
+ const EnvironmentName_3 = String$1.annotate({ "description": "The environment whose hostname moves: the one a branch came from, or the environment itself when it is promoted back." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
689
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
690
+ "identifier": "EnvironmentName_3"
691
+ }));
692
+ const PromotionStatus = Literals([
693
+ "Promoting",
694
+ "Promoted",
695
+ "Failed"
696
+ ]).annotate({
697
+ "description": "Promoting: the environment that served the hostname is being fenced, so nothing moved yet. Promoted: the hostname serves this environment. Failed: nothing moved; reason says why, and promoting again retries.",
698
+ "identifier": "PromotionStatus"
699
+ });
700
+ const EnvironmentStatus = Literals([
701
+ "Branching",
702
+ "Ready",
703
+ "Failed",
704
+ "Retired"
705
+ ]).annotate({
706
+ "description": "Branching: its store is being made from a snapshot. Ready: deploys land on it, unless it is read-only. Failed: its branch was not made; reason says why, and it can only be deleted. Retired: it was deleted, so it serves nothing and takes no deploys; its data is kept but never reattached, and it keeps its name.",
707
+ "identifier": "EnvironmentStatus"
708
+ });
709
+ const SnapshotStatus = Literals([
710
+ "Pending",
711
+ "Ready",
712
+ "Failed",
713
+ "Retired"
714
+ ]).annotate({
715
+ "description": "Pending: the checkpoint is being taken. Ready: it holds the environment's data as of takenAt. Failed: no snapshot was taken; reason says why. Retired: it was deleted and can't be used, but the storage provider keeps its data until it can be removed.",
716
+ "identifier": "SnapshotStatus"
717
+ });
718
+ const Sha256 = String$1.annotate({ "description": "A SHA-256 digest as 64 lowercase hex characters." }).check(isPattern(new globalThis.RegExp("^[0-9a-f]{64}$", "u")).annotate({
719
+ "expected": "a string matching the RegExp ^[0-9a-f]{64}$",
720
+ "identifier": "Sha256"
721
+ }));
722
+ const BuildId = String$1.annotate({ "description": "An opaque id that starts with bld_." }).check(isPattern(new globalThis.RegExp("^bld_[0-9a-z]{1,64}$", "u")).annotate({
723
+ "expected": "a string matching the RegExp ^bld_[0-9a-z]{1,64}$",
724
+ "identifier": "BuildId"
725
+ }));
726
+ const Sha256_1 = String$1.annotate({ "description": "The SHA-256 of the actor's entry in contracts.json." }).check(isPattern(new globalThis.RegExp("^[0-9a-f]{64}$", "u")).annotate({
727
+ "expected": "a string matching the RegExp ^[0-9a-f]{64}$",
728
+ "identifier": "Sha256_1"
729
+ }));
730
+ const BuildStatus = Literals([
731
+ "Uploading",
732
+ "Building",
733
+ "Ready",
734
+ "Failed"
735
+ ]).annotate({ "identifier": "BuildStatus" });
736
+ const BuildUpload = Struct({
737
+ "expiresAt": String$1,
738
+ "headers": Record(String$1, String$1).annotate({ "description": "Send these headers with the PUT." }),
739
+ "url": String$1.annotate({ "description": "PUT the build here before expiresAt." })
740
+ }).annotate({
741
+ "description": "Absent when the app already stores a build with this digest.",
742
+ "identifier": "BuildUpload"
743
+ });
744
+ const DeployId = String$1.annotate({ "description": "An opaque id that starts with dep_." }).check(isPattern(new globalThis.RegExp("^dep_[0-9a-z]{1,64}$", "u")).annotate({
745
+ "expected": "a string matching the RegExp ^dep_[0-9a-z]{1,64}$",
746
+ "identifier": "DeployId"
747
+ }));
748
+ const DeployStatus = Literals([
749
+ "Queued",
750
+ "Building",
751
+ "Rolling",
752
+ "Live",
753
+ "NotServing",
754
+ "RollingBack",
755
+ "RolledBack"
756
+ ]).annotate({
757
+ "description": "Where the deploy is in its lifecycle. Live, NotServing and RolledBack are final. NotServing means the build was published but not every shard had a serving host within 15 minutes; a new deploy replaces it.",
758
+ "identifier": "DeployStatus"
759
+ });
760
+ const NotServingReason = Union([
761
+ Struct({ "code": Literal("no-answer") }),
762
+ Struct({ "code": Literal("no-host") }),
763
+ Struct({ "code": Literal("no-host-up") }),
764
+ Struct({
765
+ "code": Literal("load-failed"),
766
+ "message": String$1
767
+ }),
768
+ Struct({
769
+ "ceiling": Int.check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
770
+ "code": Literal("host-ceiling"),
771
+ "hosts": Int.check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
772
+ }),
773
+ Struct({
774
+ "code": Literal("owners-missing"),
775
+ "published": Int.check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
776
+ "serving": Int.check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
777
+ "shards": Int.check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
778
+ })
779
+ ]).annotate({
780
+ "description": "Why a NotServing deploy isn't serving: the control plane never answered, no host, no host up, the app failed to load (the first line of its message, without paths or credentials, at most 1,024 characters), the environment already holds as many hosts as its ceiling allows and a new one waits for a release, or shards without a serving, published owner.",
781
+ "identifier": "NotServingReason"
782
+ });
783
+ const RollbackReason = Struct({ "code": Literals([
784
+ "build-refused",
785
+ "build-not-ready",
786
+ "build-mismatch",
787
+ "build-unsupported",
788
+ "store-unavailable",
789
+ "target-changed",
790
+ "link-outside-disk",
791
+ "superseded",
792
+ "failed"
793
+ ]) }).annotate({
794
+ "description": "Why a RolledBack deploy rolled back: the build edits a migration the live build applied or another deploy held the environment, the build wasn't ready, its bytes didn't match its digest, it was built with an Akter release these hosts don't serve, the app's disk was unavailable, the app's disk or hostname changed under it, a link in the disk's .akter folder leads outside the disk, a newer deploy published first, or Akter failed to publish it. New codes may be added.",
795
+ "identifier": "RollbackReason"
796
+ });
797
+ const DeployInFlightErrorEncoded = Struct({
798
+ "_tag": Literal("DeployInFlightError"),
799
+ "app": String$1,
800
+ "deploy": String$1,
801
+ "environment": String$1
802
+ }).annotate({ "identifier": "DeployInFlightErrorEncoded" });
803
+ const MigrationEditedErrorEncoded = Struct({
804
+ "_tag": Literal("MigrationEditedError"),
805
+ "actor": String$1,
806
+ "environment": String$1,
807
+ "number": Int.check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
808
+ }).annotate({ "identifier": "MigrationEditedErrorEncoded" });
809
+ const CustomerHostname = String$1.annotate({ "description": "A hostname you own, such as app.example.com. Names under akter.run are Akter's own." }).check(isPattern(new globalThis.RegExp("^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$", "u")).annotate({
810
+ "expected": "a string matching the RegExp ^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$",
811
+ "identifier": "CustomerHostname"
812
+ }));
813
+ const DeployId_1 = String$1.annotate({ "description": "Only the lines about this deploy." }).check(isPattern(new globalThis.RegExp("^dep_[0-9a-z]{1,64}$", "u")).annotate({
814
+ "expected": "a string matching the RegExp ^dep_[0-9a-z]{1,64}$",
815
+ "identifier": "DeployId_1"
816
+ }));
817
+ const LogSource = Literals(["deploy", "computer"]).annotate({
818
+ "description": "What wrote the line: deploy for a deploy's lifecycle, computer for what happened to one of an actor's computers.",
819
+ "identifier": "LogSource"
820
+ });
821
+ const LogLevel = Literals([
822
+ "info",
823
+ "warning",
824
+ "error"
825
+ ]).annotate({ "identifier": "LogLevel" });
826
+ Struct({ "value": String$1.annotate({ "description": "The secret's value, up to 64 KiB. It is sealed at once and never returned." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(65536).annotate({ "expected": "a string with at most 65536 code points" })) }).annotate({ "identifier": "SetSecret" });
827
+ const SecretName = String$1.annotate({ "description": "A secret's name within an environment, as an environment variable: an uppercase letter, then up to 127 uppercase letters, digits or underscores." }).check(isPattern(new globalThis.RegExp("^[A-Z][A-Z0-9_]{0,127}$", "u")).annotate({
828
+ "expected": "a string matching the RegExp ^[A-Z][A-Z0-9_]{0,127}$",
829
+ "identifier": "SecretName"
830
+ }));
831
+ const SecretsUnavailableErrorEncoded = Struct({
832
+ "_tag": Literal("SecretsUnavailableError"),
833
+ "reason": Literals(["not-configured", "sealing-failed"]).annotate({ "description": "`not-configured` when this control plane has no secrets Worker; `sealing-failed` when it did not answer." })
834
+ }).annotate({ "identifier": "SecretsUnavailableErrorEncoded" });
835
+ const ActorFilter = String$1.annotate({ "description": "Only actors of this name in the app's contract, such as Room." }).check(isMinLength(1).annotate({
836
+ "expected": "a value with a length of at least 1",
837
+ "identifier": "ActorFilter"
838
+ }));
839
+ const ActorCursor = String$1.annotate({ "description": "Where a page of actors stopped. Pass the previous page's next unchanged; its contents are not a contract." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(2048).annotate({
840
+ "expected": "a string with at most 2048 code points",
841
+ "identifier": "ActorCursor"
842
+ }));
843
+ const ActorEnvironment = String$1.annotate({ "description": "The environment whose actors to list, such as prod, when called at the Cloud API's URL. Defaults to prod. An app's own hostname lists its own environment's actors." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
844
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
845
+ "identifier": "ActorEnvironment"
846
+ }));
847
+ const ActorType = String$1.annotate({ "description": "The actor's name in the app's contract, such as Room." }).check(isMinLength(1).annotate({
848
+ "expected": "a value with a length of at least 1",
849
+ "identifier": "ActorType"
850
+ }));
851
+ const ExportKey = String$1.annotate({
852
+ "description": "The actor's key, as the app's contract encodes it. The empty key is allowed.",
853
+ "identifier": "ExportKey"
854
+ });
855
+ const CommandSeq = Number$1.annotate({ "description": "The command's place in the actor's journal, counting from 1." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(9007199254740991).annotate({
856
+ "expected": "a value less than or equal to 9007199254740991",
857
+ "identifier": "CommandSeq"
858
+ }));
859
+ const ActorErasedErrorEncoded = Struct({
860
+ "_tag": Literal("ActorErasedError"),
861
+ "actor": String$1
862
+ }).annotate({ "identifier": "ActorErasedErrorEncoded" });
863
+ const ExportSnapshotId = String$1.annotate({ "description": "Names one export snapshot of one actor." }).check(isPattern(new globalThis.RegExp("^[0-9a-f]{32}$", "u")).annotate({
864
+ "expected": "a string matching the RegExp ^[0-9a-f]{32}$",
865
+ "identifier": "ExportSnapshotId"
866
+ }));
867
+ const ExportSnapshotGoneErrorEncoded = Struct({
868
+ "_tag": Literal("ExportSnapshotGoneError"),
869
+ "actor": String$1,
870
+ "key": String$1,
871
+ "reason": String$1
872
+ }).annotate({ "identifier": "ExportSnapshotGoneErrorEncoded" });
873
+ const ExecEnvironment = String$1.annotate({ "description": "The environment whose actor runs it, such as prod, when called at the Cloud API's URL. Defaults to prod. An app's own hostname runs its own environment's actor." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
874
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
875
+ "identifier": "ExecEnvironment"
876
+ }));
877
+ Struct({ "command": String$1.annotate({ "description": "The shell command to run, at most 100 KiB of UTF-8, in /mnt/archil with the actor's files at /mnt/archil/files. There is no standard input." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(102400).annotate({ "expected": "a string with at most 102400 code points" })) }).annotate({ "identifier": "RunExec" });
878
+ const ExecResult = Struct({
879
+ "executeMs": Number$1.annotate({ "description": "How long the command itself ran, in milliseconds." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
880
+ "exitCode": Number$1.annotate({ "description": "The command's exit status: 0 when it succeeded." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
881
+ "queueMs": Number$1.annotate({ "description": "How long the command waited for its machine and disk before it started, in milliseconds." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
882
+ "stderr": String$1.annotate({ "description": "The command's standard error, its first 4 MiB." }),
883
+ "stdout": String$1.annotate({ "description": "The command's standard output, its first 4 MiB." })
884
+ }).annotate({
885
+ "description": "A command that ran to an end.",
886
+ "identifier": "ExecResult"
887
+ });
888
+ const ExecRefusedErrorEncoded = Struct({
889
+ "_tag": Literal("ExecRefusedError"),
890
+ "reason": String$1
891
+ }).annotate({ "identifier": "ExecRefusedErrorEncoded" });
892
+ const ForkId = String$1.annotate({ "description": "Names this fork. A retry with the same id answers the same version and never forks twice; the same id into another key is refused." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(200).annotate({
893
+ "expected": "a string with at most 200 code points",
894
+ "identifier": "ForkId"
895
+ }));
896
+ const ActorKey_1 = String$1.annotate({ "description": "The free key the copy is created under. Akter Cloud forks only into a key on the parent's own shard for now." }).check(isMinLength(1).annotate({
897
+ "expected": "a value with a length of at least 1",
898
+ "identifier": "ActorKey_1"
899
+ }));
900
+ const ActorKey = String$1.annotate({ "description": "The actor's key, as the app's contract encodes it." }).check(isMinLength(1).annotate({
901
+ "expected": "a value with a length of at least 1",
902
+ "identifier": "ActorKey"
903
+ }));
904
+ const Email_2 = String$1.annotate({ "description": "An email address, such as ada@example.com." }).check(isMaxCodePoints(254).annotate({ "expected": "a string with at most 254 code points" })).check(isPattern(new globalThis.RegExp("^[^\\s@]+@[^\\s@]+$", "u")).annotate({
905
+ "expected": "a string matching the RegExp ^[^\\s@]+@[^\\s@]+$",
906
+ "identifier": "Email_2"
907
+ }));
908
+ const MemberId = String$1.annotate({ "description": "An opaque id that starts with mem_." }).check(isPattern(new globalThis.RegExp("^mem_[0-9a-z]{1,64}$", "u")).annotate({
909
+ "expected": "a string matching the RegExp ^mem_[0-9a-z]{1,64}$",
910
+ "identifier": "MemberId"
911
+ }));
912
+ const Role = Literals([
913
+ "owner",
914
+ "admin",
915
+ "developer",
916
+ "viewer"
917
+ ]).annotate({
918
+ "description": "owner manages members and billing; admin manages apps and API keys; developer builds and deploys; viewer reads.",
919
+ "identifier": "Role"
920
+ });
921
+ const InvitationId = String$1.annotate({ "description": "An opaque id that starts with inv_." }).check(isPattern(new globalThis.RegExp("^inv_[0-9a-z]{1,64}$", "u")).annotate({
922
+ "expected": "a string matching the RegExp ^inv_[0-9a-z]{1,64}$",
923
+ "identifier": "InvitationId"
924
+ }));
925
+ const AppName_1 = String$1.annotate({ "description": "Only this app's usage." }).check(isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" })).check(isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({
926
+ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$",
927
+ "identifier": "AppName_1"
928
+ }));
929
+ const ApiKeyId_1 = String$1.annotate({ "description": "Only the usage this API key started." }).check(isPattern(new globalThis.RegExp("^key_[0-9a-z]{1,64}$", "u")).annotate({
930
+ "expected": "a string matching the RegExp ^key_[0-9a-z]{1,64}$",
931
+ "identifier": "ApiKeyId_1"
932
+ }));
933
+ const BillingPeriod = String$1.annotate({ "description": "The month to read. Defaults to this month." }).check(isPattern(new globalThis.RegExp("^\\d{4}-(?:0[1-9]|1[0-2])$", "u")).annotate({
934
+ "expected": "a string matching the RegExp ^\\d{4}-(?:0[1-9]|1[0-2])$",
935
+ "identifier": "BillingPeriod"
936
+ }));
937
+ const Usd = Number$1.annotate({ "description": "The organization's spend cap for the month, or the key's when `key` was asked." }).check(isFinite().annotate({
938
+ "expected": "a finite number",
939
+ "identifier": "Usd"
940
+ }));
941
+ const UsageMeter = Literals([
942
+ "commands",
943
+ "queries",
944
+ "storage",
945
+ "snapshots",
946
+ "computerVcpu",
947
+ "computerMemory",
948
+ "execCalls",
949
+ "egress",
950
+ "planMinimum"
951
+ ]).annotate({ "identifier": "UsageMeter" });
952
+ const Usd_1 = Number$1.annotate({ "description": "US dollars." }).check(isFinite().annotate({
953
+ "expected": "a finite number",
954
+ "identifier": "Usd_1"
955
+ }));
956
+ const BillingPeriod_1 = String$1.annotate({ "description": "A calendar month in UTC, YYYY-MM. Usage, caps and invoices are counted per month." }).check(isPattern(new globalThis.RegExp("^\\d{4}-(?:0[1-9]|1[0-2])$", "u")).annotate({
957
+ "expected": "a string matching the RegExp ^\\d{4}-(?:0[1-9]|1[0-2])$",
958
+ "identifier": "BillingPeriod_1"
959
+ }));
960
+ const Usd_2 = Number$1.annotate({ "description": "This month's spend so far carried to the month's end at its average rate." }).check(isFinite().annotate({
961
+ "expected": "a finite number",
962
+ "identifier": "Usd_2"
963
+ }));
964
+ const Plan = Literals(["none", "usage"]).annotate({
965
+ "description": "none: no card, a small fixed monthly allowance and no invoices. usage: pay for usage in arrears with a card added on Stripe's page.",
966
+ "identifier": "Plan"
967
+ });
968
+ const SpendCap_2 = Number$1.annotate({ "description": "The most the organization may spend in a calendar month, in whole US dollars." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(9007199254740991).annotate({
969
+ "expected": "a value less than or equal to 9007199254740991",
970
+ "identifier": "SpendCap_2"
971
+ }));
972
+ const BillingStatus = Literals([
973
+ "none",
974
+ "checkoutOpen",
975
+ "active",
976
+ "pastDue",
977
+ "canceled"
978
+ ]).annotate({
979
+ "description": "none: no card yet. checkoutOpen: a checkout link is waiting for a person. active: billed monthly. pastDue: a payment failed; new spend stops after a grace period. canceled: back to no card after a final invoice.",
980
+ "identifier": "BillingStatus"
981
+ });
982
+ const SpendCap_3 = Number$1.annotate({ "description": "The monthly cap to start the paid plan with. Defaults to the plan's starting cap." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(9007199254740991).annotate({
983
+ "expected": "a value less than or equal to 9007199254740991",
984
+ "identifier": "SpendCap_3"
985
+ }));
986
+ const CheckoutLink = Struct({
987
+ "expiresAt": String$1,
988
+ "url": String$1.annotate({ "description": "A Stripe-hosted page where a person adds a card. Card details go to Stripe only, never to Akter, the CLI or an agent." })
989
+ }).annotate({ "identifier": "CheckoutLink" });
990
+ const Usd_3 = Number$1.annotate({ "description": "The most an organization without a card may spend in a month." }).check(isFinite().annotate({
991
+ "expected": "a finite number",
992
+ "identifier": "Usd_3"
993
+ }));
994
+ const InvoiceStatus = Literals([
995
+ "draft",
996
+ "open",
997
+ "paid",
998
+ "void",
999
+ "uncollectible"
1000
+ ]).annotate({ "identifier": "InvoiceStatus" });
1001
+ Struct({ "secret": String$1.annotate({ "description": "An API key's secret, as returned when the key was created, or a session's secret from sign-in." }) }).annotate({ "identifier": "ExchangeApiKey" });
1002
+ const IssuedToken = Struct({
1003
+ "expiresAt": String$1,
1004
+ "token": String$1.annotate({ "description": "A bearer JWT that carries the key's organization and scopes, or the signed-in account's email." })
1005
+ }).annotate({ "identifier": "IssuedToken" });
1006
+ const CodePurpose = Literals(["signIn", "recovery"]).annotate({
1007
+ "description": "signIn emails a code that signs in, creating the account the first time; recovery emails the same kind of code worded for someone who lost their session.",
1008
+ "identifier": "CodePurpose"
1009
+ });
1010
+ const AcceptedTerms = Struct({
1011
+ "acceptedAt": String$1,
1012
+ "version": String$1.annotate({ "description": "The version of the terms of service and privacy notice, as their `version:` line." })
1013
+ }).annotate({
1014
+ "description": "The terms of service and privacy notice the account accepted at sign-up, and when. Accounts made before sign-up asked have none.",
1015
+ "identifier": "AcceptedTerms"
1016
+ });
1017
+ const AccountId = String$1.annotate({ "description": "An opaque id that starts with usr_." }).check(isPattern(new globalThis.RegExp("^usr_[0-9a-z]{1,64}$", "u")).annotate({
1018
+ "expected": "a string matching the RegExp ^usr_[0-9a-z]{1,64}$",
1019
+ "identifier": "AccountId"
1020
+ }));
1021
+ const SessionId = String$1.annotate({ "description": "An opaque id that starts with ses_." }).check(isPattern(new globalThis.RegExp("^ses_[0-9a-z]{1,64}$", "u")).annotate({
1022
+ "expected": "a string matching the RegExp ^ses_[0-9a-z]{1,64}$",
1023
+ "identifier": "SessionId"
1024
+ }));
1025
+ const TermsNotAcceptedErrorEncoded = Struct({
1026
+ "_tag": Literal("TermsNotAcceptedError"),
1027
+ "version": String$1.annotate({ "description": "The current version of the terms of service and privacy notice. Send it as acceptedTerms once the person accepts them; the code still works." })
1028
+ }).annotate({ "identifier": "TermsNotAcceptedErrorEncoded" });
1029
+ const Organization = Struct({
1030
+ "createdAt": String$1,
1031
+ "displayName": String$1.annotate({ "description": "A name for people to read, 1 to 100 characters." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(100).annotate({ "expected": "a string with at most 100 code points" })),
1032
+ "name": OrganizationName
1033
+ }).annotate({ "identifier": "Organization" });
1034
+ Struct({
1035
+ "displayName": String$1.annotate({ "description": "A name for people to read, 1 to 100 characters." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(100).annotate({ "expected": "a string with at most 100 code points" })),
1036
+ "name": OrganizationName
1037
+ }).annotate({ "identifier": "CreateOrganization" });
1038
+ const FeatureNotEnabledErrorEncoded = Struct({
1039
+ "_tag": Literal("FeatureNotEnabledError"),
1040
+ "flag": FlagName
1041
+ }).annotate({ "identifier": "FeatureNotEnabledErrorEncoded" });
1042
+ const SnapshotLimitErrorEncoded = Struct({
1043
+ "_tag": Literal("SnapshotLimitError"),
1044
+ "environment": EnvironmentName,
1045
+ "limit": Number$1.annotate({ "description": "Snapshots one environment may hold. Deleted snapshots count too, because the storage provider keeps their data until it can be removed; delete the environment to start again." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
1046
+ }).annotate({ "identifier": "SnapshotLimitErrorEncoded" });
1047
+ const InUseErrorEncoded = Struct({
1048
+ "_tag": Literal("InUseError"),
1049
+ "branches": optionalKey(ArraySchema(EnvironmentName).annotate({ "description": "With environmentHasBranches: the live branches of the environment named by key." })),
1050
+ "key": String$1.annotate({ "description": "What is in the way: an organization's, an environment's or a snapshot's name." }),
1051
+ "reason": InUseReason,
1052
+ "route": optionalKey(EnvironmentName_1)
1053
+ }).annotate({ "identifier": "InUseErrorEncoded" });
1054
+ const ConfirmationRequiredErrorEncoded = Struct({
1055
+ "_tag": Literal("ConfirmationRequiredError"),
1056
+ "operation": DangerousOperation,
1057
+ "target": ApprovalTarget
1058
+ }).annotate({ "identifier": "ConfirmationRequiredErrorEncoded" });
1059
+ const ApiKeyApps = TupleWithRest(Tuple([AppName]), [AppName]).annotate({ "description": "Allowed app names in this organization. Omit for organization-wide access. App-restricted keys cannot read organization-wide usage." }).check(isUnique().annotate({
1060
+ "expected": "an array with unique items",
1061
+ "identifier": "ApiKeyApps"
1062
+ }));
1063
+ Struct({ "name": AppName }).annotate({ "identifier": "CreateApp" });
1064
+ Struct({ "spendCap": SpendCap_1 }).annotate({ "identifier": "UpdateApiKey" });
1065
+ Struct({ "spendCap": SpendCap_1 }).annotate({ "identifier": "SetOrganizationCap" });
1066
+ Struct({
1067
+ "operation": DangerousOperation_1,
1068
+ "target": ApprovalTarget
1069
+ }).annotate({ "identifier": "RequestApproval" });
1070
+ const ApprovalRequested = Struct({
1071
+ "expiresAt": String$1,
1072
+ "id": ApprovalId,
1073
+ "operation": DangerousOperation_1,
1074
+ "sentTo": Email_1,
1075
+ "target": ApprovalTarget
1076
+ }).annotate({
1077
+ "description": "A pending approval. The person it was sent to gets a code by email, and gives it to the agent if they agree.",
1078
+ "identifier": "ApprovalRequested"
1079
+ });
1080
+ const CodeRejectedErrorEncoded = Struct({
1081
+ "_tag": Literal("CodeRejectedError"),
1082
+ "reason": CodeRejection
1083
+ }).annotate({ "identifier": "CodeRejectedErrorEncoded" });
1084
+ const App = Struct({
1085
+ "createdAt": String$1,
1086
+ "hostnames": Record(String$1, AppHostname).annotate({ "description": "Each environment's hostname, once a deploy to it has published its build. The app's actors answer at https://<hostname>/rpc." }).check(isPropertyNames(String$1.check(makeFilterGroup([isMaxCodePoints(63).annotate({ "expected": "a string with at most 63 code points" }), isPattern(new globalThis.RegExp("^[a-z](?:-?[a-z0-9])*$", "u")).annotate({ "expected": "a string matching the RegExp ^[a-z](?:-?[a-z0-9])*$" })]).annotate({ "description": "An environment of an app, such as prod or pr-42. Each environment has its own store. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit." }))).annotate({ "expected": "an object with property names matching the schema" })),
1087
+ "name": AppName,
1088
+ "organization": OrganizationName
1089
+ }).annotate({ "identifier": "App" });
1090
+ const EnvironmentOrigin = Struct({
1091
+ "environment": EnvironmentName,
1092
+ "snapshot": SnapshotName
1093
+ }).annotate({
1094
+ "description": "Where a branched environment came from: the environment and its Ready snapshot whose data it started with.",
1095
+ "identifier": "EnvironmentOrigin"
1096
+ });
1097
+ const EnvironmentOrigin_1 = Struct({
1098
+ "environment": EnvironmentName,
1099
+ "snapshot": SnapshotName
1100
+ }).annotate({
1101
+ "description": "Branch the new environment from a Ready snapshot: it starts with the snapshot's data, quiet, until it is promoted.",
1102
+ "identifier": "EnvironmentOrigin_1"
1103
+ });
1104
+ Struct({ "name": SnapshotName }).annotate({ "identifier": "CreateSnapshot" });
1105
+ const Promotion = Struct({
1106
+ "environment": EnvironmentName,
1107
+ "fenced": optionalKey(EnvironmentName_2),
1108
+ "hostname": optionalKey(AppHostname),
1109
+ "missingWrites": String$1.annotate({ "description": "The catch, stated for this promote: which writes the promoted environment does not have and where they stay." }),
1110
+ "reason": optionalKey(String$1.annotate({ "description": "Why a Failed promote moved nothing." })),
1111
+ "route": EnvironmentName_3,
1112
+ "status": PromotionStatus
1113
+ }).annotate({
1114
+ "description": "Moving an app's hostname to an environment. The environment that served it is fenced first: its hosts give up their shards and it turns read-only. Then the hostname moves, and the promoted environment's held timers, outbox and jobs start.",
1115
+ "identifier": "Promotion"
1116
+ });
1117
+ const Snapshot = Struct({
1118
+ "createdAt": String$1,
1119
+ "environment": EnvironmentName,
1120
+ "name": SnapshotName,
1121
+ "reason": optionalKey(String$1.annotate({ "description": "Why a Failed snapshot was not taken." })),
1122
+ "sizeBytes": optionalKey(Number$1.annotate({ "description": "The environment's data size when the snapshot was taken, which it is billed by." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))),
1123
+ "status": SnapshotStatus,
1124
+ "takenAt": optionalKey(String$1)
1125
+ }).annotate({
1126
+ "description": "A named, point-in-time snapshot of one environment's data. A Ready snapshot is kept until it or its environment is deleted, and is billed by its size as snapshot storage.",
1127
+ "identifier": "Snapshot"
1128
+ });
1129
+ const BuildMigration = Struct({
1130
+ "number": Int.check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
1131
+ "sha256": Sha256
1132
+ }).annotate({
1133
+ "description": "One numbered SQL migration and the SHA-256 of its text.",
1134
+ "identifier": "BuildMigration"
1135
+ });
1136
+ const ExportedFile = Struct({
1137
+ "bytes": Int.check(isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
1138
+ "sha256": Sha256
1139
+ }).annotate({
1140
+ "description": "One distinct file the snapshot's database names, by the SHA-256 and size of its content. The paths that name it are in the database.",
1141
+ "identifier": "ExportedFile"
1142
+ });
1143
+ Struct({
1144
+ "build": BuildId,
1145
+ "environment": EnvironmentName
1146
+ }).annotate({ "identifier": "CreateDeploy" });
1147
+ const BuildNotReadyErrorEncoded = Struct({
1148
+ "_tag": Literal("BuildNotReadyError"),
1149
+ "build": BuildId
1150
+ }).annotate({ "identifier": "BuildNotReadyErrorEncoded" });
1151
+ const Deploy = Struct({
1152
+ "app": AppName,
1153
+ "build": BuildId,
1154
+ "createdAt": String$1,
1155
+ "environment": EnvironmentName,
1156
+ "hostname": optionalKey(AppHostname),
1157
+ "id": DeployId,
1158
+ "notices": ArraySchema(DeployStatus),
1159
+ "reason": optionalKey(NotServingReason),
1160
+ "rollbackReason": optionalKey(RollbackReason),
1161
+ "status": DeployStatus,
1162
+ "url": optionalKey(String$1.annotate({ "description": "https://<hostname>, where the app answers once this deploy has published its build." }))
1163
+ }).annotate({ "identifier": "Deploy" });
1164
+ const Domain = Struct({
1165
+ "cname": Literal("customers.akter.run"),
1166
+ "environment": EnvironmentName,
1167
+ "hostname": CustomerHostname,
1168
+ "status": Literals([
1169
+ "Pending",
1170
+ "Active",
1171
+ "Removing"
1172
+ ])
1173
+ }).annotate({ "identifier": "Domain" });
1174
+ Struct({
1175
+ "environment": EnvironmentName,
1176
+ "hostname": CustomerHostname
1177
+ }).annotate({ "identifier": "CreateDomain" });
1178
+ const HostnameClaimedErrorEncoded = Struct({
1179
+ "_tag": Literal("HostnameClaimedError"),
1180
+ "hostname": CustomerHostname
1181
+ }).annotate({ "identifier": "HostnameClaimedErrorEncoded" });
1182
+ const LogLine = Struct({
1183
+ "at": String$1,
1184
+ "level": LogLevel,
1185
+ "message": String$1,
1186
+ "source": LogSource,
1187
+ "subject": String$1.annotate({ "description": "What the line is about: a deploy's id for deploy lines, and <environment>/<Actor>/<key>/<computer> for computer lines." })
1188
+ }).annotate({ "identifier": "LogLine" });
1189
+ const AppSecret = Struct({
1190
+ "environment": EnvironmentName,
1191
+ "name": SecretName,
1192
+ "updatedAt": Number$1.annotate({ "description": "When the value was last set, in milliseconds since the epoch." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
1193
+ "version": Number$1.annotate({ "description": "Increases each time the value is set." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
1194
+ }).annotate({
1195
+ "description": "A secret's name and when it was set. Never its value.",
1196
+ "identifier": "AppSecret"
1197
+ });
1198
+ const ExportedActor = Struct({
1199
+ "actor": ActorType,
1200
+ "key": ExportKey
1201
+ }).annotate({
1202
+ "description": "An actor that has a database on the shard.",
1203
+ "identifier": "ExportedActor"
1204
+ });
1205
+ const ExportedComputer = Struct({
1206
+ "actor": ActorType,
1207
+ "checkpoint": optionalKey(String$1.annotate({ "description": "The computer's newest checkpoint Akter recorded. It stays in Akter Cloud and can't be downloaded; absent before the first." })),
1208
+ "egress": ArraySchema(String$1).annotate({ "description": "The hosts the computer may reach. Never credentials." }),
1209
+ "image": String$1,
1210
+ "key": ExportKey,
1211
+ "name": String$1.annotate({ "description": "The computer's name, unique within its actor." }),
1212
+ "size": Struct({
1213
+ "memoryMib": Int.check(isGreaterThanOrEqualTo(-9007199254740991).annotate({ "expected": "a value greater than or equal to -9007199254740991" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })),
1214
+ "vcpu": Finite
1215
+ })
1216
+ }).annotate({
1217
+ "description": "A computer an actor on the shard keeps, as Akter Cloud records it. Its disk stays in the Cloud.",
1218
+ "identifier": "ExportedComputer"
1219
+ });
1220
+ const CommandEntry = Struct({
1221
+ "at": String$1,
1222
+ "command": String$1.check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })),
1223
+ "commandId": String$1.check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })),
1224
+ "exit": String$1.annotate({ "description": "The command's outcome, as JSON text in the app's contract encoding." }),
1225
+ "payload": String$1.annotate({ "description": "The command's payload, as JSON text in the app's contract encoding." }),
1226
+ "principal": String$1.annotate({ "description": "Who sent the command, as JSON text in the app's contract encoding." }),
1227
+ "seq": CommandSeq
1228
+ }).annotate({
1229
+ "description": "One journal row, as the host recorded it. Decode it with the app's contract; a row the contract no longer reads is unreadable there, not here.",
1230
+ "identifier": "CommandEntry"
1231
+ });
1232
+ const ExportSnapshot = Struct({
1233
+ "actor": ActorType,
1234
+ "bytes": Int.check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })).check(isGreaterThan(0).annotate({ "expected": "a value greater than 0" })),
1235
+ "key": ExportKey,
1236
+ "sha256": Sha256,
1237
+ "snapshot": ExportSnapshotId
1238
+ }).annotate({
1239
+ "description": "A consistent snapshot of the actor's database and history, taken after its last commit. Download it as bytes 0 to bytes; the decrypted bytes hash to sha256.",
1240
+ "identifier": "ExportSnapshot"
1241
+ });
1242
+ Struct({
1243
+ "forkId": ForkId,
1244
+ "into": ActorKey_1
1245
+ }).annotate({ "identifier": "ForkActor" });
1246
+ const ActorFork = Struct({
1247
+ "into": ActorKey,
1248
+ "version": Number$1.annotate({ "description": "The parent's commit version at the cut: the copy holds the parent's state as of this commit." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))
1249
+ }).annotate({
1250
+ "description": "A copy of the actor under a new key, holding its state and files at the cut and starting quiet: no timers, outbox or open jobs.",
1251
+ "identifier": "ActorFork"
1252
+ });
1253
+ const CodeSent = Struct({
1254
+ "email": Email_2,
1255
+ "expiresAt": String$1
1256
+ }).annotate({ "identifier": "CodeSent" });
1257
+ Struct({
1258
+ "acceptedTerms": optionalKey(String$1.annotate({ "description": "The version of the terms of service and privacy notice the person accepted, as the `version:` line of `akter docs legal/terms`. Required when the code creates an account." })),
1259
+ "code": String$1.annotate({ "description": "The 6-digit code from the email." }).check(isPattern(new globalThis.RegExp("^\\d{6}$", "u")).annotate({ "expected": "a string matching the RegExp ^\\d{6}$" })),
1260
+ "email": Email_2,
1261
+ "endOtherSessions": optionalKey(Boolean.annotate({ "description": "Also revoke every other session of the account, as a recovery does after a lost machine." }))
1262
+ }).annotate({ "identifier": "VerifyCode" });
1263
+ const Member = Struct({
1264
+ "email": Email_2,
1265
+ "id": MemberId,
1266
+ "joinedAt": String$1,
1267
+ "role": Role
1268
+ }).annotate({ "identifier": "Member" });
1269
+ Struct({
1270
+ "email": Email_2,
1271
+ "role": Role
1272
+ }).annotate({ "identifier": "AddMember" });
1273
+ Struct({ "role": Role }).annotate({ "identifier": "ChangeRole" });
1274
+ Struct({
1275
+ "email": Email_2,
1276
+ "role": Role
1277
+ }).annotate({ "identifier": "Invite" });
1278
+ const Invitation = Struct({
1279
+ "createdAt": String$1,
1280
+ "email": Email_2,
1281
+ "expiresAt": String$1,
1282
+ "id": InvitationId,
1283
+ "invitedBy": Email_2,
1284
+ "role": Role
1285
+ }).annotate({
1286
+ "description": "A pending invitation. The invited email signs in and accepts it to become a member with this role.",
1287
+ "identifier": "Invitation"
1288
+ });
1289
+ const MeterUsage = Struct({
1290
+ "meter": UsageMeter,
1291
+ "quantity": Number$1.annotate({ "description": "How much was used, in `unit`." }).check(isFinite().annotate({ "expected": "a finite number" })),
1292
+ "spentUsd": Usd_1,
1293
+ "unit": String$1.annotate({ "description": "The unit prices are quoted in: million commands, million queries, GiB-month, vCPU-hour, GiB-hour, thousand calls, GB or USD." })
1294
+ }).annotate({ "identifier": "MeterUsage" });
1295
+ const UsageForecast = Struct({
1296
+ "capUsd": Usd_1,
1297
+ "period": BillingPeriod_1,
1298
+ "projectedUsd": Usd_2,
1299
+ "spentUsd": Usd_1
1300
+ }).annotate({ "identifier": "UsageForecast" });
1301
+ const BillingAccount = Struct({
1302
+ "plan": Plan,
1303
+ "spendCap": SpendCap_2,
1304
+ "status": BillingStatus
1305
+ }).annotate({ "identifier": "BillingAccount" });
1306
+ Struct({ "spendCap": optionalKey(SpendCap_3) }).annotate({ "identifier": "StartCheckout" });
1307
+ const CardRequiredErrorEncoded = Struct({
1308
+ "_tag": Literal("CardRequiredError"),
1309
+ "allowanceUsd": Usd_3
1310
+ }).annotate({ "identifier": "CardRequiredErrorEncoded" });
1311
+ const Invoice = Struct({
1312
+ "amountDueUsd": Usd_1,
1313
+ "amountPaidUsd": Usd_1,
1314
+ "createdAt": String$1,
1315
+ "id": String$1,
1316
+ "period": optionalKey(BillingPeriod_1),
1317
+ "status": InvoiceStatus,
1318
+ "url": optionalKey(String$1.annotate({ "description": "Stripe's page for the invoice." }))
1319
+ }).annotate({ "identifier": "Invoice" });
1320
+ Struct({
1321
+ "email": Email_2,
1322
+ "purpose": optionalKey(CodePurpose)
1323
+ }).annotate({ "identifier": "SendCode" });
1324
+ const Account = Struct({
1325
+ "acceptedTerms": optionalKey(AcceptedTerms),
1326
+ "createdAt": String$1,
1327
+ "email": Email_2,
1328
+ "id": AccountId
1329
+ }).annotate({ "identifier": "Account" });
1330
+ const Session = Struct({
1331
+ "createdAt": String$1,
1332
+ "expiresAt": String$1,
1333
+ "id": SessionId
1334
+ }).annotate({ "identifier": "Session" });
1335
+ const OrganizationPage = Struct({
1336
+ "items": ArraySchema(Organization),
1337
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1338
+ }).annotate({ "identifier": "OrganizationPage" });
1339
+ const ApiKey = Struct({
1340
+ "apps": optionalKey(ApiKeyApps),
1341
+ "createdAt": String$1,
1342
+ "createdBy": optionalKey(Email),
1343
+ "expiresAt": optionalKey(String$1.annotate({ "description": "When the key stops getting tokens. Every key made since Phase 8 has one." })),
1344
+ "id": ApiKeyId,
1345
+ "lastUsedAt": optionalKey(String$1),
1346
+ "name": String$1.annotate({ "description": "A name for people to read, 1 to 100 characters." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(100).annotate({ "expected": "a string with at most 100 code points" })),
1347
+ "scopes": TupleWithRest(Tuple([ApiKeyScope]), [ApiKeyScope]).annotate({ "description": "What the key may do: one or more scopes." }),
1348
+ "spendCap": optionalKey(SpendCap),
1349
+ "start": String$1.annotate({ "description": "The first characters of the secret, to tell keys apart." })
1350
+ }).annotate({ "identifier": "ApiKey" });
1351
+ Struct({
1352
+ "apps": optionalKey(ApiKeyApps),
1353
+ "expiresAt": String$1.annotate({ "description": "When the key stops getting tokens. Required: every key expires (Decision 11A)." }),
1354
+ "name": String$1.annotate({ "description": "A name for people to read, 1 to 100 characters." }).check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })).check(isMaxCodePoints(100).annotate({ "expected": "a string with at most 100 code points" })),
1355
+ "scopes": TupleWithRest(Tuple([ApiKeyScope]), [ApiKeyScope]).annotate({ "description": "What the key may do: one or more scopes." }),
1356
+ "spendCap": SpendCap_1
1357
+ }).annotate({ "identifier": "CreateApiKey" });
1358
+ const AppPage = Struct({
1359
+ "items": ArraySchema(App),
1360
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1361
+ }).annotate({ "identifier": "AppPage" });
1362
+ Struct({
1363
+ "from": optionalKey(EnvironmentOrigin_1),
1364
+ "name": EnvironmentName
1365
+ }).annotate({ "identifier": "CreateEnvironment" });
1366
+ const Environment = Struct({
1367
+ "createdAt": String$1,
1368
+ "from": optionalKey(EnvironmentOrigin),
1369
+ "hostname": optionalKey(AppHostname),
1370
+ "name": EnvironmentName,
1371
+ "promotion": optionalKey(Promotion),
1372
+ "quiet": optionalKey(Boolean.annotate({ "description": "True while its timers, outbox and jobs are held, not dropped: a branch until it is promoted, and an environment a promote fenced. Calls are still served." })),
1373
+ "readOnly": optionalKey(Boolean.annotate({ "description": "True once a promote moved its hostname to another environment: its store takes no writes and no builds, and keeps its data until deleted. Deploys to it go to the environment now serving its hostname, or are refused once none does. Promote it to move the hostname back." })),
1374
+ "reason": optionalKey(String$1.annotate({ "description": "Why a Failed branch was not made." })),
1375
+ "status": EnvironmentStatus,
1376
+ "storage": optionalKey(String$1.annotate({ "description": "Set on a branch: it lives on the disk of the environment it came from, which Archil measures once with its branches, so its storage is billed with that disk. A deleted branch's data stays on that disk, counting against the store's ceilings, until the disk is deleted." }))
1377
+ }).annotate({
1378
+ "description": "One environment of an app, such as prod or pr-42, with its own store. Its store's disk counts against the store's ceilings and is metered as storage until the environment is deleted; a deleted environment's kept data is not billed, except a branch's, which is billed with its source's disk (see storage).",
1379
+ "identifier": "Environment"
1380
+ });
1381
+ const SnapshotPage = Struct({
1382
+ "items": ArraySchema(Snapshot),
1383
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1384
+ }).annotate({ "identifier": "SnapshotPage" });
1385
+ const BuildActor = Struct({
1386
+ "contract": Sha256_1,
1387
+ "migrations": ArraySchema(BuildMigration),
1388
+ "name": String$1.check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" })),
1389
+ "staleForMs": optionalKey(Record(String$1, Number$1.annotate({ "description": "How old an answer to the query may be, in milliseconds, when no atLeast asks for newer." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" }))).annotate({ "description": "Each query that declares staleFor, by name. A query not listed, or a build without the field, is always fresh." }).check(isPropertyNames(String$1.check(isMinLength(1).annotate({ "expected": "a value with a length of at least 1" }))).annotate({ "expected": "an object with property names matching the schema" })))
1390
+ }).annotate({ "identifier": "BuildActor" });
1391
+ const ExportFilePage = Struct({
1392
+ "files": ArraySchema(ExportedFile),
1393
+ "next": optionalKey(Sha256)
1394
+ }).annotate({
1395
+ "description": "A page of the files an export snapshot holds, in SHA-256 order. Pass next as after for the following page; a page without next is the last. The snapshot holds each file until it expires, so a file it holds can still be read after the actor changes or removes it.",
1396
+ "identifier": "ExportFilePage"
1397
+ });
1398
+ const DeployPage = Struct({
1399
+ "items": ArraySchema(Deploy),
1400
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1401
+ }).annotate({ "identifier": "DeployPage" });
1402
+ const DomainPage = Struct({
1403
+ "items": ArraySchema(Domain),
1404
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1405
+ }).annotate({ "identifier": "DomainPage" });
1406
+ const LogPage = Struct({
1407
+ "items": ArraySchema(LogLine),
1408
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1409
+ }).annotate({ "identifier": "LogPage" });
1410
+ const AppSecretList = Struct({ "items": ArraySchema(AppSecret) }).annotate({ "identifier": "AppSecretList" });
1411
+ const ActorPage = Struct({
1412
+ "actors": ArraySchema(ExportedActor),
1413
+ "next": optionalKey(ActorCursor)
1414
+ }).annotate({
1415
+ "description": "A page of the app's stored actors, by shard and then by actor and key. A page holds limit actors unless it is the last; next is absent exactly on the last page, so read on while next is present. An erased actor is still listed until its storage is reclaimed.",
1416
+ "identifier": "ActorPage"
1417
+ });
1418
+ const ExportShardPage = Struct({
1419
+ "actors": ArraySchema(ExportedActor),
1420
+ "computers": optionalKey(ArraySchema(ExportedComputer).annotate({ "description": "The computers those actors keep, ordered by actor, key and name. Absent from a host that predates computers." }))
1421
+ }).annotate({
1422
+ "description": "Every actor stored on the shard, ordered by actor and key, and the computers they keep.",
1423
+ "identifier": "ExportShardPage"
1424
+ });
1425
+ const CommandHistoryPage = Struct({
1426
+ "entries": ArraySchema(CommandEntry),
1427
+ "next": optionalKey(CommandSeq)
1428
+ }).annotate({
1429
+ "description": "Commands in seq order. When the page is full, next is its last seq: pass it as after for the next page.",
1430
+ "identifier": "CommandHistoryPage"
1431
+ });
1432
+ const MemberPage = Struct({
1433
+ "items": ArraySchema(Member),
1434
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1435
+ }).annotate({ "identifier": "MemberPage" });
1436
+ const InvitationPage = Struct({
1437
+ "items": ArraySchema(Invitation),
1438
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1439
+ }).annotate({ "identifier": "InvitationPage" });
1440
+ const Usage = Struct({
1441
+ "apiKey": optionalKey(ApiKeyId),
1442
+ "app": optionalKey(AppName),
1443
+ "capUsd": Usd,
1444
+ "meters": ArraySchema(MeterUsage),
1445
+ "period": BillingPeriod_1,
1446
+ "spentUsd": Usd_1
1447
+ }).annotate({ "identifier": "Usage" });
1448
+ const InvoicePage = Struct({
1449
+ "items": ArraySchema(Invoice),
1450
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1451
+ }).annotate({ "identifier": "InvoicePage" });
1452
+ const SignedIn = Struct({
1453
+ "account": Account,
1454
+ "created": Boolean.annotate({ "description": "true when this code created the account." }),
1455
+ "secret": String$1.annotate({ "description": "The session's bearer secret, as_ and 32 characters. Exchange it at POST /v1/tokens. It is returned once and never again." }),
1456
+ "session": Session
1457
+ }).annotate({ "identifier": "SignedIn" });
1458
+ const SessionPage = Struct({
1459
+ "items": ArraySchema(Session),
1460
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1461
+ }).annotate({ "identifier": "SessionPage" });
1462
+ const ApiKeyPage = Struct({
1463
+ "items": ArraySchema(ApiKey),
1464
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1465
+ }).annotate({ "identifier": "ApiKeyPage" });
1466
+ const CreatedApiKey = Struct({
1467
+ "key": ApiKey,
1468
+ "secret": String$1.annotate({ "description": "The bearer secret. It is returned once and never again." })
1469
+ }).annotate({ "identifier": "CreatedApiKey" });
1470
+ const EnvironmentPage = Struct({
1471
+ "items": ArraySchema(Environment),
1472
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1473
+ }).annotate({ "identifier": "EnvironmentPage" });
1474
+ const BuildManifest = Struct({ "actors": ArraySchema(BuildActor) }).annotate({
1475
+ "description": "build.json: the actor types, contract hashes and migrations of a build.",
1476
+ "identifier": "BuildManifest"
1477
+ });
1478
+ const Build = Struct({
1479
+ "app": AppName,
1480
+ "createdAt": String$1,
1481
+ "digest": Sha256,
1482
+ "id": BuildId,
1483
+ "manifest": BuildManifest,
1484
+ "size": Number$1.annotate({ "description": "The build's size in bytes." }).check(isInt().annotate({ "expected": "an integer" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })).check(isGreaterThan(0).annotate({ "expected": "a value greater than 0" })),
1485
+ "status": BuildStatus
1486
+ }).annotate({ "identifier": "Build" });
1487
+ Struct({
1488
+ "digest": Sha256,
1489
+ "manifest": BuildManifest,
1490
+ "size": Number$1.annotate({ "description": "The build's size in bytes." }).check(isInt().annotate({ "expected": "an integer" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })).check(isGreaterThan(0).annotate({ "expected": "a value greater than 0" }))
1491
+ }).annotate({ "identifier": "CreateBuild" });
1492
+ const BuildPage = Struct({
1493
+ "items": ArraySchema(Build),
1494
+ "nextCursor": optionalKey(String$1.annotate({ "description": "Pass as cursor for the next page." }))
1495
+ }).annotate({ "identifier": "BuildPage" });
1496
+ const CreatedBuild = Struct({
1497
+ "build": Build,
1498
+ "upload": optionalKey(BuildUpload)
1499
+ }).annotate({ "identifier": "CreatedBuild" });
1500
+ Struct({
1501
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
1502
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
1503
+ });
1504
+ const OrganizationsList200 = OrganizationPage;
1505
+ const OrganizationsList401 = UnauthorizedErrorEncoded;
1506
+ const OrganizationsList503 = Union([
1507
+ ActorUnavailableErrorEncoded,
1508
+ AuthUnavailableErrorEncoded,
1509
+ BillingUnavailableErrorEncoded,
1510
+ BuildStorageUnavailableErrorEncoded,
1511
+ ExecUnavailableErrorEncoded
1512
+ ]);
1513
+ const OrganizationsCreate201 = Organization;
1514
+ const OrganizationsCreate401 = UnauthorizedErrorEncoded;
1515
+ const OrganizationsCreate409 = AlreadyExistsErrorEncoded;
1516
+ const OrganizationsCreate503 = Union([
1517
+ ActorUnavailableErrorEncoded,
1518
+ AuthUnavailableErrorEncoded,
1519
+ BillingUnavailableErrorEncoded,
1520
+ BuildStorageUnavailableErrorEncoded,
1521
+ ExecUnavailableErrorEncoded
1522
+ ]);
1523
+ const OrganizationsGet200 = Organization;
1524
+ const OrganizationsGet401 = UnauthorizedErrorEncoded;
1525
+ const OrganizationsGet403 = ForbiddenErrorEncoded;
1526
+ const OrganizationsGet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1527
+ const OrganizationsGet503 = Union([
1528
+ ActorUnavailableErrorEncoded,
1529
+ AuthUnavailableErrorEncoded,
1530
+ BillingUnavailableErrorEncoded,
1531
+ BuildStorageUnavailableErrorEncoded,
1532
+ ExecUnavailableErrorEncoded
1533
+ ]);
1534
+ const OrganizationsDelete401 = UnauthorizedErrorEncoded;
1535
+ const OrganizationsDelete403 = ForbiddenErrorEncoded;
1536
+ const OrganizationsDelete404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1537
+ const OrganizationsDelete409 = InUseErrorEncoded;
1538
+ const OrganizationsDelete428 = ConfirmationRequiredErrorEncoded;
1539
+ const OrganizationsDelete503 = Union([
1540
+ ActorUnavailableErrorEncoded,
1541
+ AuthUnavailableErrorEncoded,
1542
+ BillingUnavailableErrorEncoded,
1543
+ BuildStorageUnavailableErrorEncoded,
1544
+ ExecUnavailableErrorEncoded
1545
+ ]);
1546
+ const OrganizationsUpdate200 = Organization;
1547
+ const OrganizationsUpdate401 = UnauthorizedErrorEncoded;
1548
+ const OrganizationsUpdate403 = ForbiddenErrorEncoded;
1549
+ const OrganizationsUpdate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1550
+ const OrganizationsUpdate503 = Union([
1551
+ ActorUnavailableErrorEncoded,
1552
+ AuthUnavailableErrorEncoded,
1553
+ BillingUnavailableErrorEncoded,
1554
+ BuildStorageUnavailableErrorEncoded,
1555
+ ExecUnavailableErrorEncoded
1556
+ ]);
1557
+ Struct({
1558
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
1559
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
1560
+ });
1561
+ const ApiKeysList200 = ApiKeyPage;
1562
+ const ApiKeysList401 = UnauthorizedErrorEncoded;
1563
+ const ApiKeysList403 = ForbiddenErrorEncoded;
1564
+ const ApiKeysList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1565
+ const ApiKeysList503 = Union([
1566
+ ActorUnavailableErrorEncoded,
1567
+ AuthUnavailableErrorEncoded,
1568
+ BillingUnavailableErrorEncoded,
1569
+ BuildStorageUnavailableErrorEncoded,
1570
+ ExecUnavailableErrorEncoded
1571
+ ]);
1572
+ const ApiKeysCreate201 = CreatedApiKey;
1573
+ const ApiKeysCreate401 = UnauthorizedErrorEncoded;
1574
+ const ApiKeysCreate403 = ForbiddenErrorEncoded;
1575
+ const ApiKeysCreate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1576
+ const ApiKeysCreate503 = Union([
1577
+ ActorUnavailableErrorEncoded,
1578
+ AuthUnavailableErrorEncoded,
1579
+ BillingUnavailableErrorEncoded,
1580
+ BuildStorageUnavailableErrorEncoded,
1581
+ ExecUnavailableErrorEncoded
1582
+ ]);
1583
+ const ApiKeysRevoke401 = UnauthorizedErrorEncoded;
1584
+ const ApiKeysRevoke403 = ForbiddenErrorEncoded;
1585
+ const ApiKeysRevoke404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1586
+ const ApiKeysRevoke428 = ConfirmationRequiredErrorEncoded;
1587
+ const ApiKeysRevoke503 = Union([
1588
+ ActorUnavailableErrorEncoded,
1589
+ AuthUnavailableErrorEncoded,
1590
+ BillingUnavailableErrorEncoded,
1591
+ BuildStorageUnavailableErrorEncoded,
1592
+ ExecUnavailableErrorEncoded
1593
+ ]);
1594
+ const ApiKeysUpdate200 = ApiKey;
1595
+ const ApiKeysUpdate401 = UnauthorizedErrorEncoded;
1596
+ const ApiKeysUpdate403 = ForbiddenErrorEncoded;
1597
+ const ApiKeysUpdate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1598
+ const ApiKeysUpdate428 = ConfirmationRequiredErrorEncoded;
1599
+ const ApiKeysUpdate503 = Union([
1600
+ ActorUnavailableErrorEncoded,
1601
+ AuthUnavailableErrorEncoded,
1602
+ BillingUnavailableErrorEncoded,
1603
+ BuildStorageUnavailableErrorEncoded,
1604
+ ExecUnavailableErrorEncoded
1605
+ ]);
1606
+ const ApprovalsRequest202 = ApprovalRequested;
1607
+ const ApprovalsRequest401 = UnauthorizedErrorEncoded;
1608
+ const ApprovalsRequest403 = ForbiddenErrorEncoded;
1609
+ const ApprovalsRequest404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1610
+ const ApprovalsRequest429 = RateLimitedErrorEncoded;
1611
+ const ApprovalsRequest503 = Union([
1612
+ ActorUnavailableErrorEncoded,
1613
+ AuthUnavailableErrorEncoded,
1614
+ BillingUnavailableErrorEncoded,
1615
+ BuildStorageUnavailableErrorEncoded,
1616
+ ExecUnavailableErrorEncoded
1617
+ ]);
1618
+ const ApprovalsConfirm201 = ApprovalToken;
1619
+ const ApprovalsConfirm401 = Union([CodeRejectedErrorEncoded, UnauthorizedErrorEncoded]);
1620
+ const ApprovalsConfirm403 = ForbiddenErrorEncoded;
1621
+ const ApprovalsConfirm404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1622
+ const ApprovalsConfirm503 = Union([
1623
+ ActorUnavailableErrorEncoded,
1624
+ AuthUnavailableErrorEncoded,
1625
+ BillingUnavailableErrorEncoded,
1626
+ BuildStorageUnavailableErrorEncoded,
1627
+ ExecUnavailableErrorEncoded
1628
+ ]);
1629
+ Struct({
1630
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
1631
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
1632
+ });
1633
+ const AppsList200 = AppPage;
1634
+ const AppsList401 = UnauthorizedErrorEncoded;
1635
+ const AppsList403 = ForbiddenErrorEncoded;
1636
+ const AppsList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1637
+ const AppsList503 = Union([
1638
+ ActorUnavailableErrorEncoded,
1639
+ AuthUnavailableErrorEncoded,
1640
+ BillingUnavailableErrorEncoded,
1641
+ BuildStorageUnavailableErrorEncoded,
1642
+ ExecUnavailableErrorEncoded
1643
+ ]);
1644
+ const AppsCreate201 = App;
1645
+ const AppsCreate401 = UnauthorizedErrorEncoded;
1646
+ const AppsCreate403 = ForbiddenErrorEncoded;
1647
+ const AppsCreate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1648
+ const AppsCreate409 = AlreadyExistsErrorEncoded;
1649
+ const AppsCreate503 = Union([
1650
+ ActorUnavailableErrorEncoded,
1651
+ AuthUnavailableErrorEncoded,
1652
+ BillingUnavailableErrorEncoded,
1653
+ BuildStorageUnavailableErrorEncoded,
1654
+ ExecUnavailableErrorEncoded
1655
+ ]);
1656
+ const AppsGet200 = App;
1657
+ const AppsGet401 = UnauthorizedErrorEncoded;
1658
+ const AppsGet403 = ForbiddenErrorEncoded;
1659
+ const AppsGet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1660
+ const AppsGet503 = Union([
1661
+ ActorUnavailableErrorEncoded,
1662
+ AuthUnavailableErrorEncoded,
1663
+ BillingUnavailableErrorEncoded,
1664
+ BuildStorageUnavailableErrorEncoded,
1665
+ ExecUnavailableErrorEncoded
1666
+ ]);
1667
+ const AppsDelete401 = UnauthorizedErrorEncoded;
1668
+ const AppsDelete403 = ForbiddenErrorEncoded;
1669
+ const AppsDelete404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1670
+ const AppsDelete428 = ConfirmationRequiredErrorEncoded;
1671
+ const AppsDelete503 = Union([
1672
+ ActorUnavailableErrorEncoded,
1673
+ AuthUnavailableErrorEncoded,
1674
+ BillingUnavailableErrorEncoded,
1675
+ BuildStorageUnavailableErrorEncoded,
1676
+ ExecUnavailableErrorEncoded
1677
+ ]);
1678
+ Struct({
1679
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
1680
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
1681
+ });
1682
+ const EnvironmentsList200 = EnvironmentPage;
1683
+ const EnvironmentsList401 = UnauthorizedErrorEncoded;
1684
+ const EnvironmentsList403 = ForbiddenErrorEncoded;
1685
+ const EnvironmentsList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1686
+ const EnvironmentsList503 = Union([
1687
+ ActorUnavailableErrorEncoded,
1688
+ AuthUnavailableErrorEncoded,
1689
+ BillingUnavailableErrorEncoded,
1690
+ BuildStorageUnavailableErrorEncoded,
1691
+ ExecUnavailableErrorEncoded
1692
+ ]);
1693
+ const EnvironmentsCreate201 = Environment;
1694
+ const EnvironmentsCreate401 = UnauthorizedErrorEncoded;
1695
+ const EnvironmentsCreate403 = ForbiddenErrorEncoded;
1696
+ const EnvironmentsCreate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1697
+ const EnvironmentsCreate409 = Union([AlreadyExistsErrorEncoded, InUseErrorEncoded]);
1698
+ const EnvironmentsCreate503 = Union([
1699
+ ActorUnavailableErrorEncoded,
1700
+ AuthUnavailableErrorEncoded,
1701
+ BillingUnavailableErrorEncoded,
1702
+ BuildStorageUnavailableErrorEncoded,
1703
+ ExecUnavailableErrorEncoded
1704
+ ]);
1705
+ const EnvironmentsGet200 = Environment;
1706
+ const EnvironmentsGet401 = UnauthorizedErrorEncoded;
1707
+ const EnvironmentsGet403 = ForbiddenErrorEncoded;
1708
+ const EnvironmentsGet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1709
+ const EnvironmentsGet503 = Union([
1710
+ ActorUnavailableErrorEncoded,
1711
+ AuthUnavailableErrorEncoded,
1712
+ BillingUnavailableErrorEncoded,
1713
+ BuildStorageUnavailableErrorEncoded,
1714
+ ExecUnavailableErrorEncoded
1715
+ ]);
1716
+ const EnvironmentsDelete202 = Environment;
1717
+ const EnvironmentsDelete401 = UnauthorizedErrorEncoded;
1718
+ const EnvironmentsDelete403 = ForbiddenErrorEncoded;
1719
+ const EnvironmentsDelete404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1720
+ const EnvironmentsDelete409 = InUseErrorEncoded;
1721
+ const EnvironmentsDelete428 = ConfirmationRequiredErrorEncoded;
1722
+ const EnvironmentsDelete503 = Union([
1723
+ ActorUnavailableErrorEncoded,
1724
+ AuthUnavailableErrorEncoded,
1725
+ BillingUnavailableErrorEncoded,
1726
+ BuildStorageUnavailableErrorEncoded,
1727
+ ExecUnavailableErrorEncoded
1728
+ ]);
1729
+ const EnvironmentsPromote202 = Promotion;
1730
+ const EnvironmentsPromote401 = UnauthorizedErrorEncoded;
1731
+ const EnvironmentsPromote403 = ForbiddenErrorEncoded;
1732
+ const EnvironmentsPromote404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1733
+ const EnvironmentsPromote409 = InUseErrorEncoded;
1734
+ const EnvironmentsPromote428 = ConfirmationRequiredErrorEncoded;
1735
+ const EnvironmentsPromote503 = Union([
1736
+ ActorUnavailableErrorEncoded,
1737
+ AuthUnavailableErrorEncoded,
1738
+ BillingUnavailableErrorEncoded,
1739
+ BuildStorageUnavailableErrorEncoded,
1740
+ ExecUnavailableErrorEncoded
1741
+ ]);
1742
+ Struct({
1743
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
1744
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
1745
+ });
1746
+ const SnapshotsList200 = SnapshotPage;
1747
+ const SnapshotsList401 = UnauthorizedErrorEncoded;
1748
+ const SnapshotsList403 = ForbiddenErrorEncoded;
1749
+ const SnapshotsList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1750
+ const SnapshotsList503 = Union([
1751
+ ActorUnavailableErrorEncoded,
1752
+ AuthUnavailableErrorEncoded,
1753
+ BillingUnavailableErrorEncoded,
1754
+ BuildStorageUnavailableErrorEncoded,
1755
+ ExecUnavailableErrorEncoded
1756
+ ]);
1757
+ const SnapshotsCreate202 = Snapshot;
1758
+ const SnapshotsCreate401 = UnauthorizedErrorEncoded;
1759
+ const SnapshotsCreate403 = ForbiddenErrorEncoded;
1760
+ const SnapshotsCreate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1761
+ const SnapshotsCreate409 = Union([
1762
+ AlreadyExistsErrorEncoded,
1763
+ InUseErrorEncoded,
1764
+ SnapshotLimitErrorEncoded
1765
+ ]);
1766
+ const SnapshotsCreate503 = Union([
1767
+ ActorUnavailableErrorEncoded,
1768
+ AuthUnavailableErrorEncoded,
1769
+ BillingUnavailableErrorEncoded,
1770
+ BuildStorageUnavailableErrorEncoded,
1771
+ ExecUnavailableErrorEncoded
1772
+ ]);
1773
+ const SnapshotsGet200 = Snapshot;
1774
+ const SnapshotsGet401 = UnauthorizedErrorEncoded;
1775
+ const SnapshotsGet403 = ForbiddenErrorEncoded;
1776
+ const SnapshotsGet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1777
+ const SnapshotsGet503 = Union([
1778
+ ActorUnavailableErrorEncoded,
1779
+ AuthUnavailableErrorEncoded,
1780
+ BillingUnavailableErrorEncoded,
1781
+ BuildStorageUnavailableErrorEncoded,
1782
+ ExecUnavailableErrorEncoded
1783
+ ]);
1784
+ const SnapshotsDelete200 = Snapshot;
1785
+ const SnapshotsDelete401 = UnauthorizedErrorEncoded;
1786
+ const SnapshotsDelete403 = ForbiddenErrorEncoded;
1787
+ const SnapshotsDelete404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1788
+ const SnapshotsDelete428 = ConfirmationRequiredErrorEncoded;
1789
+ const SnapshotsDelete503 = Union([
1790
+ ActorUnavailableErrorEncoded,
1791
+ AuthUnavailableErrorEncoded,
1792
+ BillingUnavailableErrorEncoded,
1793
+ BuildStorageUnavailableErrorEncoded,
1794
+ ExecUnavailableErrorEncoded
1795
+ ]);
1796
+ Struct({
1797
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
1798
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
1799
+ });
1800
+ const BuildsList200 = BuildPage;
1801
+ const BuildsList401 = UnauthorizedErrorEncoded;
1802
+ const BuildsList403 = ForbiddenErrorEncoded;
1803
+ const BuildsList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1804
+ const BuildsList503 = Union([
1805
+ ActorUnavailableErrorEncoded,
1806
+ AuthUnavailableErrorEncoded,
1807
+ BillingUnavailableErrorEncoded,
1808
+ BuildStorageUnavailableErrorEncoded,
1809
+ ExecUnavailableErrorEncoded
1810
+ ]);
1811
+ const BuildsCreate201 = CreatedBuild;
1812
+ const BuildsCreate401 = UnauthorizedErrorEncoded;
1813
+ const BuildsCreate403 = ForbiddenErrorEncoded;
1814
+ const BuildsCreate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1815
+ const BuildsCreate503 = Union([
1816
+ ActorUnavailableErrorEncoded,
1817
+ AuthUnavailableErrorEncoded,
1818
+ BillingUnavailableErrorEncoded,
1819
+ BuildStorageUnavailableErrorEncoded,
1820
+ ExecUnavailableErrorEncoded
1821
+ ]);
1822
+ const BuildsGet200 = Build;
1823
+ const BuildsGet401 = UnauthorizedErrorEncoded;
1824
+ const BuildsGet403 = ForbiddenErrorEncoded;
1825
+ const BuildsGet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1826
+ const BuildsGet503 = Union([
1827
+ ActorUnavailableErrorEncoded,
1828
+ AuthUnavailableErrorEncoded,
1829
+ BillingUnavailableErrorEncoded,
1830
+ BuildStorageUnavailableErrorEncoded,
1831
+ ExecUnavailableErrorEncoded
1832
+ ]);
1833
+ Struct({
1834
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
1835
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
1836
+ });
1837
+ const DeploysList200 = DeployPage;
1838
+ const DeploysList401 = UnauthorizedErrorEncoded;
1839
+ const DeploysList403 = ForbiddenErrorEncoded;
1840
+ const DeploysList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1841
+ const DeploysList503 = Union([
1842
+ ActorUnavailableErrorEncoded,
1843
+ AuthUnavailableErrorEncoded,
1844
+ BillingUnavailableErrorEncoded,
1845
+ BuildStorageUnavailableErrorEncoded,
1846
+ ExecUnavailableErrorEncoded
1847
+ ]);
1848
+ const DeploysCreate202 = Deploy;
1849
+ const DeploysCreate401 = UnauthorizedErrorEncoded;
1850
+ const DeploysCreate403 = ForbiddenErrorEncoded;
1851
+ const DeploysCreate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1852
+ const DeploysCreate409 = Union([
1853
+ DeployInFlightErrorEncoded,
1854
+ BuildNotReadyErrorEncoded,
1855
+ MigrationEditedErrorEncoded,
1856
+ InUseErrorEncoded
1857
+ ]);
1858
+ const DeploysCreate503 = Union([
1859
+ ActorUnavailableErrorEncoded,
1860
+ AuthUnavailableErrorEncoded,
1861
+ BillingUnavailableErrorEncoded,
1862
+ BuildStorageUnavailableErrorEncoded,
1863
+ ExecUnavailableErrorEncoded
1864
+ ]);
1865
+ const DeploysGet200 = Deploy;
1866
+ const DeploysGet401 = UnauthorizedErrorEncoded;
1867
+ const DeploysGet403 = ForbiddenErrorEncoded;
1868
+ const DeploysGet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1869
+ const DeploysGet503 = Union([
1870
+ ActorUnavailableErrorEncoded,
1871
+ AuthUnavailableErrorEncoded,
1872
+ BillingUnavailableErrorEncoded,
1873
+ BuildStorageUnavailableErrorEncoded,
1874
+ ExecUnavailableErrorEncoded
1875
+ ]);
1876
+ Struct({
1877
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
1878
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
1879
+ });
1880
+ const DomainsList200 = DomainPage;
1881
+ const DomainsList401 = UnauthorizedErrorEncoded;
1882
+ const DomainsList403 = ForbiddenErrorEncoded;
1883
+ const DomainsList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1884
+ const DomainsList503 = Union([
1885
+ ActorUnavailableErrorEncoded,
1886
+ AuthUnavailableErrorEncoded,
1887
+ BillingUnavailableErrorEncoded,
1888
+ BuildStorageUnavailableErrorEncoded,
1889
+ ExecUnavailableErrorEncoded
1890
+ ]);
1891
+ const DomainsCreate202 = Domain;
1892
+ const DomainsCreate401 = UnauthorizedErrorEncoded;
1893
+ const DomainsCreate403 = ForbiddenErrorEncoded;
1894
+ const DomainsCreate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1895
+ const DomainsCreate409 = HostnameClaimedErrorEncoded;
1896
+ const DomainsCreate503 = Union([
1897
+ ActorUnavailableErrorEncoded,
1898
+ AuthUnavailableErrorEncoded,
1899
+ BillingUnavailableErrorEncoded,
1900
+ BuildStorageUnavailableErrorEncoded,
1901
+ ExecUnavailableErrorEncoded
1902
+ ]);
1903
+ const DomainsGet200 = Domain;
1904
+ const DomainsGet401 = UnauthorizedErrorEncoded;
1905
+ const DomainsGet403 = ForbiddenErrorEncoded;
1906
+ const DomainsGet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1907
+ const DomainsGet503 = Union([
1908
+ ActorUnavailableErrorEncoded,
1909
+ AuthUnavailableErrorEncoded,
1910
+ BillingUnavailableErrorEncoded,
1911
+ BuildStorageUnavailableErrorEncoded,
1912
+ ExecUnavailableErrorEncoded
1913
+ ]);
1914
+ const DomainsDelete401 = UnauthorizedErrorEncoded;
1915
+ const DomainsDelete403 = ForbiddenErrorEncoded;
1916
+ const DomainsDelete404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1917
+ const DomainsDelete428 = ConfirmationRequiredErrorEncoded;
1918
+ const DomainsDelete503 = Union([
1919
+ ActorUnavailableErrorEncoded,
1920
+ AuthUnavailableErrorEncoded,
1921
+ BillingUnavailableErrorEncoded,
1922
+ BuildStorageUnavailableErrorEncoded,
1923
+ ExecUnavailableErrorEncoded
1924
+ ]);
1925
+ const LogsReadParams = Struct({
1926
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
1927
+ "limit": optionalKey(String$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." })),
1928
+ "deploy": optionalKey(DeployId_1),
1929
+ "since": optionalKey(String$1.annotate({ "description": "Only the lines written at or after this time." })),
1930
+ "source": optionalKey(LogSource)
1931
+ });
1932
+ const LogsRead200 = LogPage;
1933
+ const LogsRead401 = UnauthorizedErrorEncoded;
1934
+ const LogsRead403 = ForbiddenErrorEncoded;
1935
+ const LogsRead404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1936
+ const LogsRead503 = Union([
1937
+ ActorUnavailableErrorEncoded,
1938
+ AuthUnavailableErrorEncoded,
1939
+ BillingUnavailableErrorEncoded,
1940
+ BuildStorageUnavailableErrorEncoded,
1941
+ ExecUnavailableErrorEncoded
1942
+ ]);
1943
+ const SecretsSet200 = AppSecret;
1944
+ const SecretsSet401 = UnauthorizedErrorEncoded;
1945
+ const SecretsSet403 = ForbiddenErrorEncoded;
1946
+ const SecretsSet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1947
+ const SecretsSet503 = Union([
1948
+ SecretsUnavailableErrorEncoded,
1949
+ ActorUnavailableErrorEncoded,
1950
+ AuthUnavailableErrorEncoded,
1951
+ BillingUnavailableErrorEncoded,
1952
+ BuildStorageUnavailableErrorEncoded,
1953
+ ExecUnavailableErrorEncoded
1954
+ ]);
1955
+ const SecretsDelete401 = UnauthorizedErrorEncoded;
1956
+ const SecretsDelete403 = ForbiddenErrorEncoded;
1957
+ const SecretsDelete404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1958
+ const SecretsDelete428 = ConfirmationRequiredErrorEncoded;
1959
+ const SecretsDelete503 = Union([
1960
+ ActorUnavailableErrorEncoded,
1961
+ AuthUnavailableErrorEncoded,
1962
+ BillingUnavailableErrorEncoded,
1963
+ BuildStorageUnavailableErrorEncoded,
1964
+ ExecUnavailableErrorEncoded
1965
+ ]);
1966
+ const SecretsList200 = AppSecretList;
1967
+ const SecretsList401 = UnauthorizedErrorEncoded;
1968
+ const SecretsList403 = ForbiddenErrorEncoded;
1969
+ const SecretsList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1970
+ const SecretsList503 = Union([
1971
+ ActorUnavailableErrorEncoded,
1972
+ AuthUnavailableErrorEncoded,
1973
+ BillingUnavailableErrorEncoded,
1974
+ BuildStorageUnavailableErrorEncoded,
1975
+ ExecUnavailableErrorEncoded
1976
+ ]);
1977
+ Struct({
1978
+ "actor": optionalKey(ActorFilter),
1979
+ "after": optionalKey(ActorCursor),
1980
+ "environment": optionalKey(ActorEnvironment),
1981
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many actors, 1 to 500. Defaults to 500." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(500).annotate({ "expected": "a value less than or equal to 500" })))
1982
+ });
1983
+ const ActorsList200 = ActorPage;
1984
+ const ActorsList401 = UnauthorizedErrorEncoded;
1985
+ const ActorsList403 = ForbiddenErrorEncoded;
1986
+ const ActorsList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
1987
+ const ActorsList503 = Union([
1988
+ ActorUnavailableErrorEncoded,
1989
+ AuthUnavailableErrorEncoded,
1990
+ BillingUnavailableErrorEncoded,
1991
+ BuildStorageUnavailableErrorEncoded,
1992
+ ExecUnavailableErrorEncoded
1993
+ ]);
1994
+ Struct({
1995
+ "after": optionalKey(Number$1.annotate({ "description": "Only commands after this seq. Pass the previous page's next. Defaults to 0, the start." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" }))),
1996
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many commands, 1 to 500. Defaults to 500." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(500).annotate({ "expected": "a value less than or equal to 500" }))),
1997
+ "since": optionalKey(String$1.annotate({ "description": "Only commands recorded at or after this time." }))
1998
+ });
1999
+ const ActorsHistory200 = CommandHistoryPage;
2000
+ const ActorsHistory401 = UnauthorizedErrorEncoded;
2001
+ const ActorsHistory403 = ForbiddenErrorEncoded;
2002
+ const ActorsHistory404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2003
+ const ActorsHistory410 = ActorErasedErrorEncoded;
2004
+ const ActorsHistory503 = Union([
2005
+ ActorUnavailableErrorEncoded,
2006
+ AuthUnavailableErrorEncoded,
2007
+ BillingUnavailableErrorEncoded,
2008
+ BuildStorageUnavailableErrorEncoded,
2009
+ ExecUnavailableErrorEncoded
2010
+ ]);
2011
+ const ActorsErase401 = UnauthorizedErrorEncoded;
2012
+ const ActorsErase403 = ForbiddenErrorEncoded;
2013
+ const ActorsErase404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2014
+ const ActorsErase428 = ConfirmationRequiredErrorEncoded;
2015
+ const ActorsErase503 = Union([
2016
+ ActorUnavailableErrorEncoded,
2017
+ AuthUnavailableErrorEncoded,
2018
+ BillingUnavailableErrorEncoded,
2019
+ BuildStorageUnavailableErrorEncoded,
2020
+ ExecUnavailableErrorEncoded
2021
+ ]);
2022
+ const ActorsExportShard200 = ExportShardPage;
2023
+ const ActorsExportShard401 = UnauthorizedErrorEncoded;
2024
+ const ActorsExportShard403 = ForbiddenErrorEncoded;
2025
+ const ActorsExportShard404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2026
+ const ActorsExportShard503 = Union([
2027
+ ActorUnavailableErrorEncoded,
2028
+ AuthUnavailableErrorEncoded,
2029
+ BillingUnavailableErrorEncoded,
2030
+ BuildStorageUnavailableErrorEncoded,
2031
+ ExecUnavailableErrorEncoded
2032
+ ]);
2033
+ const ActorsExportSnapshot201 = ExportSnapshot;
2034
+ const ActorsExportSnapshot401 = UnauthorizedErrorEncoded;
2035
+ const ActorsExportSnapshot403 = ForbiddenErrorEncoded;
2036
+ const ActorsExportSnapshot404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2037
+ const ActorsExportSnapshot410 = Union([ActorErasedErrorEncoded, ExportSnapshotGoneErrorEncoded]);
2038
+ const ActorsExportSnapshot503 = Union([
2039
+ ActorUnavailableErrorEncoded,
2040
+ AuthUnavailableErrorEncoded,
2041
+ BillingUnavailableErrorEncoded,
2042
+ BuildStorageUnavailableErrorEncoded,
2043
+ ExecUnavailableErrorEncoded
2044
+ ]);
2045
+ Struct({
2046
+ "actor": ActorType,
2047
+ "key": ExportKey,
2048
+ "length": Number$1.annotate({ "description": "How many bytes to read, 1 to 65536." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(65536).annotate({ "expected": "a value less than or equal to 65536" })),
2049
+ "offset": Number$1.annotate({ "description": "The first byte to read." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" }))
2050
+ });
2051
+ const ActorsExportRead401 = UnauthorizedErrorEncoded;
2052
+ const ActorsExportRead403 = ForbiddenErrorEncoded;
2053
+ const ActorsExportRead404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2054
+ const ActorsExportRead410 = Union([ActorErasedErrorEncoded, ExportSnapshotGoneErrorEncoded]);
2055
+ const ActorsExportRead503 = Union([
2056
+ ActorUnavailableErrorEncoded,
2057
+ AuthUnavailableErrorEncoded,
2058
+ BillingUnavailableErrorEncoded,
2059
+ BuildStorageUnavailableErrorEncoded,
2060
+ ExecUnavailableErrorEncoded
2061
+ ]);
2062
+ Struct({
2063
+ "actor": ActorType,
2064
+ "after": optionalKey(Sha256),
2065
+ "key": ExportKey
2066
+ });
2067
+ const ActorsExportFiles200 = ExportFilePage;
2068
+ const ActorsExportFiles401 = UnauthorizedErrorEncoded;
2069
+ const ActorsExportFiles403 = ForbiddenErrorEncoded;
2070
+ const ActorsExportFiles404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2071
+ const ActorsExportFiles410 = Union([ActorErasedErrorEncoded, ExportSnapshotGoneErrorEncoded]);
2072
+ const ActorsExportFiles503 = Union([
2073
+ ActorUnavailableErrorEncoded,
2074
+ AuthUnavailableErrorEncoded,
2075
+ BillingUnavailableErrorEncoded,
2076
+ BuildStorageUnavailableErrorEncoded,
2077
+ ExecUnavailableErrorEncoded
2078
+ ]);
2079
+ Struct({
2080
+ "actor": ActorType,
2081
+ "key": ExportKey,
2082
+ "length": Number$1.annotate({ "description": "How many bytes to read, 1 to 65536." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(65536).annotate({ "expected": "a value less than or equal to 65536" })),
2083
+ "offset": Number$1.annotate({ "description": "The first byte to read." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" }))
2084
+ });
2085
+ const ActorsExportFileRead401 = UnauthorizedErrorEncoded;
2086
+ const ActorsExportFileRead403 = ForbiddenErrorEncoded;
2087
+ const ActorsExportFileRead404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2088
+ const ActorsExportFileRead410 = Union([ActorErasedErrorEncoded, ExportSnapshotGoneErrorEncoded]);
2089
+ const ActorsExportFileRead503 = Union([
2090
+ ActorUnavailableErrorEncoded,
2091
+ AuthUnavailableErrorEncoded,
2092
+ BillingUnavailableErrorEncoded,
2093
+ BuildStorageUnavailableErrorEncoded,
2094
+ ExecUnavailableErrorEncoded
2095
+ ]);
2096
+ Struct({ "environment": optionalKey(ExecEnvironment) });
2097
+ const ActorsExec200 = ExecResult;
2098
+ const ActorsExec401 = UnauthorizedErrorEncoded;
2099
+ const ActorsExec403 = ForbiddenErrorEncoded;
2100
+ const ActorsExec404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2101
+ const ActorsExec409 = ExecRefusedErrorEncoded;
2102
+ const ActorsExec410 = ActorErasedErrorEncoded;
2103
+ const ActorsExec503 = Union([
2104
+ ActorUnavailableErrorEncoded,
2105
+ AuthUnavailableErrorEncoded,
2106
+ BillingUnavailableErrorEncoded,
2107
+ BuildStorageUnavailableErrorEncoded,
2108
+ ExecUnavailableErrorEncoded
2109
+ ]);
2110
+ const ActorForksCreate201 = ActorFork;
2111
+ const ActorForksCreate401 = UnauthorizedErrorEncoded;
2112
+ const ActorForksCreate403 = ForbiddenErrorEncoded;
2113
+ const ActorForksCreate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2114
+ const ActorForksCreate409 = AlreadyExistsErrorEncoded;
2115
+ const ActorForksCreate410 = ActorErasedErrorEncoded;
2116
+ const ActorForksCreate428 = ConfirmationRequiredErrorEncoded;
2117
+ const ActorForksCreate503 = Union([
2118
+ ActorUnavailableErrorEncoded,
2119
+ AuthUnavailableErrorEncoded,
2120
+ BillingUnavailableErrorEncoded,
2121
+ BuildStorageUnavailableErrorEncoded,
2122
+ ExecUnavailableErrorEncoded
2123
+ ]);
2124
+ Struct({
2125
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
2126
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
2127
+ });
2128
+ const MembersList200 = MemberPage;
2129
+ const MembersList401 = UnauthorizedErrorEncoded;
2130
+ const MembersList403 = ForbiddenErrorEncoded;
2131
+ const MembersList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2132
+ const MembersList503 = Union([
2133
+ ActorUnavailableErrorEncoded,
2134
+ AuthUnavailableErrorEncoded,
2135
+ BillingUnavailableErrorEncoded,
2136
+ BuildStorageUnavailableErrorEncoded,
2137
+ ExecUnavailableErrorEncoded
2138
+ ]);
2139
+ const MembersAdd201 = Member;
2140
+ const MembersAdd401 = UnauthorizedErrorEncoded;
2141
+ const MembersAdd403 = ForbiddenErrorEncoded;
2142
+ const MembersAdd404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2143
+ const MembersAdd409 = AlreadyExistsErrorEncoded;
2144
+ const MembersAdd503 = Union([
2145
+ ActorUnavailableErrorEncoded,
2146
+ AuthUnavailableErrorEncoded,
2147
+ BillingUnavailableErrorEncoded,
2148
+ BuildStorageUnavailableErrorEncoded,
2149
+ ExecUnavailableErrorEncoded
2150
+ ]);
2151
+ const MembersRemove401 = UnauthorizedErrorEncoded;
2152
+ const MembersRemove403 = ForbiddenErrorEncoded;
2153
+ const MembersRemove404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2154
+ const MembersRemove428 = ConfirmationRequiredErrorEncoded;
2155
+ const MembersRemove503 = Union([
2156
+ ActorUnavailableErrorEncoded,
2157
+ AuthUnavailableErrorEncoded,
2158
+ BillingUnavailableErrorEncoded,
2159
+ BuildStorageUnavailableErrorEncoded,
2160
+ ExecUnavailableErrorEncoded
2161
+ ]);
2162
+ const MembersChangeRole200 = Member;
2163
+ const MembersChangeRole401 = UnauthorizedErrorEncoded;
2164
+ const MembersChangeRole403 = ForbiddenErrorEncoded;
2165
+ const MembersChangeRole404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2166
+ const MembersChangeRole503 = Union([
2167
+ ActorUnavailableErrorEncoded,
2168
+ AuthUnavailableErrorEncoded,
2169
+ BillingUnavailableErrorEncoded,
2170
+ BuildStorageUnavailableErrorEncoded,
2171
+ ExecUnavailableErrorEncoded
2172
+ ]);
2173
+ Struct({
2174
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
2175
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
2176
+ });
2177
+ const InvitationsList200 = InvitationPage;
2178
+ const InvitationsList401 = UnauthorizedErrorEncoded;
2179
+ const InvitationsList403 = ForbiddenErrorEncoded;
2180
+ const InvitationsList404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2181
+ const InvitationsList503 = Union([
2182
+ ActorUnavailableErrorEncoded,
2183
+ AuthUnavailableErrorEncoded,
2184
+ BillingUnavailableErrorEncoded,
2185
+ BuildStorageUnavailableErrorEncoded,
2186
+ ExecUnavailableErrorEncoded
2187
+ ]);
2188
+ const InvitationsCreate201 = Invitation;
2189
+ const InvitationsCreate401 = UnauthorizedErrorEncoded;
2190
+ const InvitationsCreate403 = ForbiddenErrorEncoded;
2191
+ const InvitationsCreate404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2192
+ const InvitationsCreate409 = AlreadyExistsErrorEncoded;
2193
+ const InvitationsCreate503 = Union([
2194
+ ActorUnavailableErrorEncoded,
2195
+ AuthUnavailableErrorEncoded,
2196
+ BillingUnavailableErrorEncoded,
2197
+ BuildStorageUnavailableErrorEncoded,
2198
+ ExecUnavailableErrorEncoded
2199
+ ]);
2200
+ const InvitationsRevoke401 = UnauthorizedErrorEncoded;
2201
+ const InvitationsRevoke403 = ForbiddenErrorEncoded;
2202
+ const InvitationsRevoke404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2203
+ const InvitationsRevoke503 = Union([
2204
+ ActorUnavailableErrorEncoded,
2205
+ AuthUnavailableErrorEncoded,
2206
+ BillingUnavailableErrorEncoded,
2207
+ BuildStorageUnavailableErrorEncoded,
2208
+ ExecUnavailableErrorEncoded
2209
+ ]);
2210
+ const InvitationsAccept201 = Member;
2211
+ const InvitationsAccept401 = UnauthorizedErrorEncoded;
2212
+ const InvitationsAccept403 = ForbiddenErrorEncoded;
2213
+ const InvitationsAccept404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2214
+ const InvitationsAccept409 = AlreadyExistsErrorEncoded;
2215
+ const InvitationsAccept503 = Union([
2216
+ ActorUnavailableErrorEncoded,
2217
+ AuthUnavailableErrorEncoded,
2218
+ BillingUnavailableErrorEncoded,
2219
+ BuildStorageUnavailableErrorEncoded,
2220
+ ExecUnavailableErrorEncoded
2221
+ ]);
2222
+ Struct({
2223
+ "app": optionalKey(AppName_1),
2224
+ "key": optionalKey(ApiKeyId_1),
2225
+ "period": optionalKey(BillingPeriod)
2226
+ });
2227
+ const UsageGet200 = Usage;
2228
+ const UsageGet401 = UnauthorizedErrorEncoded;
2229
+ const UsageGet403 = ForbiddenErrorEncoded;
2230
+ const UsageGet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2231
+ const UsageGet503 = Union([
2232
+ ActorUnavailableErrorEncoded,
2233
+ AuthUnavailableErrorEncoded,
2234
+ BillingUnavailableErrorEncoded,
2235
+ BuildStorageUnavailableErrorEncoded,
2236
+ ExecUnavailableErrorEncoded
2237
+ ]);
2238
+ const UsageForecast200 = UsageForecast;
2239
+ const UsageForecast401 = UnauthorizedErrorEncoded;
2240
+ const UsageForecast403 = ForbiddenErrorEncoded;
2241
+ const UsageForecast404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2242
+ const UsageForecast503 = Union([
2243
+ ActorUnavailableErrorEncoded,
2244
+ AuthUnavailableErrorEncoded,
2245
+ BillingUnavailableErrorEncoded,
2246
+ BuildStorageUnavailableErrorEncoded,
2247
+ ExecUnavailableErrorEncoded
2248
+ ]);
2249
+ const BillingGet200 = BillingAccount;
2250
+ const BillingGet401 = UnauthorizedErrorEncoded;
2251
+ const BillingGet403 = ForbiddenErrorEncoded;
2252
+ const BillingGet404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2253
+ const BillingGet503 = Union([
2254
+ ActorUnavailableErrorEncoded,
2255
+ AuthUnavailableErrorEncoded,
2256
+ BillingUnavailableErrorEncoded,
2257
+ BuildStorageUnavailableErrorEncoded,
2258
+ ExecUnavailableErrorEncoded
2259
+ ]);
2260
+ const BillingCancel200 = BillingAccount;
2261
+ const BillingCancel401 = UnauthorizedErrorEncoded;
2262
+ const BillingCancel403 = ForbiddenErrorEncoded;
2263
+ const BillingCancel404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2264
+ const BillingCancel428 = ConfirmationRequiredErrorEncoded;
2265
+ const BillingCancel503 = Union([
2266
+ ActorUnavailableErrorEncoded,
2267
+ AuthUnavailableErrorEncoded,
2268
+ BillingUnavailableErrorEncoded,
2269
+ BuildStorageUnavailableErrorEncoded,
2270
+ ExecUnavailableErrorEncoded
2271
+ ]);
2272
+ const BillingCheckout201 = CheckoutLink;
2273
+ const BillingCheckout401 = UnauthorizedErrorEncoded;
2274
+ const BillingCheckout403 = ForbiddenErrorEncoded;
2275
+ const BillingCheckout404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2276
+ const BillingCheckout503 = Union([
2277
+ ActorUnavailableErrorEncoded,
2278
+ AuthUnavailableErrorEncoded,
2279
+ BillingUnavailableErrorEncoded,
2280
+ BuildStorageUnavailableErrorEncoded,
2281
+ ExecUnavailableErrorEncoded
2282
+ ]);
2283
+ const BillingSetCap200 = BillingAccount;
2284
+ const BillingSetCap401 = UnauthorizedErrorEncoded;
2285
+ const BillingSetCap402 = CardRequiredErrorEncoded;
2286
+ const BillingSetCap403 = ForbiddenErrorEncoded;
2287
+ const BillingSetCap404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2288
+ const BillingSetCap428 = ConfirmationRequiredErrorEncoded;
2289
+ const BillingSetCap503 = Union([
2290
+ ActorUnavailableErrorEncoded,
2291
+ AuthUnavailableErrorEncoded,
2292
+ BillingUnavailableErrorEncoded,
2293
+ BuildStorageUnavailableErrorEncoded,
2294
+ ExecUnavailableErrorEncoded
2295
+ ]);
2296
+ Struct({
2297
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
2298
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
2299
+ });
2300
+ const BillingInvoices200 = InvoicePage;
2301
+ const BillingInvoices401 = UnauthorizedErrorEncoded;
2302
+ const BillingInvoices403 = ForbiddenErrorEncoded;
2303
+ const BillingInvoices404 = Union([NotFoundErrorEncoded, FeatureNotEnabledErrorEncoded]);
2304
+ const BillingInvoices503 = Union([
2305
+ ActorUnavailableErrorEncoded,
2306
+ AuthUnavailableErrorEncoded,
2307
+ BillingUnavailableErrorEncoded,
2308
+ BuildStorageUnavailableErrorEncoded,
2309
+ ExecUnavailableErrorEncoded
2310
+ ]);
2311
+ const TokensExchange200 = IssuedToken;
2312
+ const TokensExchange401 = UnauthorizedErrorEncoded;
2313
+ const TokensExchange503 = Union([
2314
+ ActorUnavailableErrorEncoded,
2315
+ AuthUnavailableErrorEncoded,
2316
+ BillingUnavailableErrorEncoded,
2317
+ BuildStorageUnavailableErrorEncoded,
2318
+ ExecUnavailableErrorEncoded
2319
+ ]);
2320
+ const SignInSendCode202 = CodeSent;
2321
+ const SignInSendCode429 = RateLimitedErrorEncoded;
2322
+ const SignInVerifyCode201 = SignedIn;
2323
+ const SignInVerifyCode401 = CodeRejectedErrorEncoded;
2324
+ const SignInVerifyCode422 = TermsNotAcceptedErrorEncoded;
2325
+ const SignInVerifyCode429 = RateLimitedErrorEncoded;
2326
+ Struct({
2327
+ "cursor": optionalKey(String$1.annotate({ "description": "The nextCursor of the previous page." })),
2328
+ "limit": optionalKey(Number$1.annotate({ "description": "At most this many items, 1 to 100. Defaults to 50." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(1).annotate({ "expected": "a value greater than or equal to 1" })).check(isLessThanOrEqualTo(100).annotate({ "expected": "a value less than or equal to 100" })))
2329
+ });
2330
+ const SessionsList200 = SessionPage;
2331
+ const SessionsList401 = UnauthorizedErrorEncoded;
2332
+ const SessionsList503 = Union([
2333
+ ActorUnavailableErrorEncoded,
2334
+ AuthUnavailableErrorEncoded,
2335
+ BillingUnavailableErrorEncoded,
2336
+ BuildStorageUnavailableErrorEncoded,
2337
+ ExecUnavailableErrorEncoded
2338
+ ]);
2339
+ const SessionsRevoke401 = UnauthorizedErrorEncoded;
2340
+ const SessionsRevoke404 = NotFoundErrorEncoded;
2341
+ const SessionsRevoke503 = Union([
2342
+ ActorUnavailableErrorEncoded,
2343
+ AuthUnavailableErrorEncoded,
2344
+ BillingUnavailableErrorEncoded,
2345
+ BuildStorageUnavailableErrorEncoded,
2346
+ ExecUnavailableErrorEncoded
2347
+ ]);
2348
+ const AccountGet200 = Account;
2349
+ const AccountGet401 = UnauthorizedErrorEncoded;
2350
+ const AccountGet404 = NotFoundErrorEncoded;
2351
+ const AccountGet503 = Union([
2352
+ ActorUnavailableErrorEncoded,
2353
+ AuthUnavailableErrorEncoded,
2354
+ BillingUnavailableErrorEncoded,
2355
+ BuildStorageUnavailableErrorEncoded,
2356
+ ExecUnavailableErrorEncoded
2357
+ ]);
2358
+ const AccountDelete401 = UnauthorizedErrorEncoded;
2359
+ const AccountDelete403 = ForbiddenErrorEncoded;
2360
+ const AccountDelete404 = NotFoundErrorEncoded;
2361
+ const AccountDelete409 = InUseErrorEncoded;
2362
+ const AccountDelete428 = ConfirmationRequiredErrorEncoded;
2363
+ const AccountDelete503 = Union([
2364
+ ActorUnavailableErrorEncoded,
2365
+ AuthUnavailableErrorEncoded,
2366
+ BillingUnavailableErrorEncoded,
2367
+ BuildStorageUnavailableErrorEncoded,
2368
+ ExecUnavailableErrorEncoded
2369
+ ]);
2370
+ const make = (httpClient, options = {}) => {
2371
+ const unexpectedStatus = (response) => flatMap(orElseSucceed(response.json, () => "Unexpected status code"), (description) => fail(new HttpClientError({ reason: new StatusCodeError({
2372
+ request: response.request,
2373
+ response,
2374
+ description: typeof description === "string" ? description : JSON.stringify(description)
2375
+ }) })));
2376
+ const withResponse = (config) => (f) => {
2377
+ const withOptionalResponse = config?.includeResponse ? (response) => map(f(response), (a) => [a, response]) : (response) => f(response);
2378
+ return options?.transformClient ? (request) => flatMap(flatMap(options.transformClient(httpClient), (client) => client.execute(request)), withOptionalResponse) : (request) => flatMap(httpClient.execute(request), withOptionalResponse);
2379
+ };
2380
+ const __encodePathParam = encodeURIComponent;
2381
+ const __makePathRequest = (method, parameters, getPath) => suspend(() => {
2382
+ const fail$2 = (description, cause) => fail(new HttpClientError({ reason: new InvalidUrlError({
2383
+ request: method(""),
2384
+ cause,
2385
+ description
2386
+ }) }));
2387
+ if (parameters.some((value) => value === "" || /^(?:\.|%2e){1,2}$/i.test(value))) return fail$2("Path parameters must be non-empty and cannot be dot segments");
2388
+ let path;
2389
+ try {
2390
+ path = getPath();
2391
+ } catch (cause) {
2392
+ return fail$2("Failed to encode path parameter", cause);
2393
+ }
2394
+ if (path.split("/").some((segment) => /^(?:\.|%2e){1,2}$/i.test(segment))) return fail$2("Request paths cannot contain dot segments");
2395
+ return succeed(method(path));
2396
+ });
2397
+ const executeStreamRequest = (request) => suspend(() => options.transformClient ? flatMap(options.transformClient(httpClient), (client) => filterStatusOk(client).execute(request)) : filterStatusOk(httpClient).execute(request));
2398
+ const decodeBinary = (response) => map(response.arrayBuffer, (buffer) => new Uint8Array(buffer));
2399
+ const binaryRequest = (request) => executeStreamRequest(request).pipe(map((response) => response.stream), unwrap);
2400
+ const decodeSuccess = (schema) => (response) => schemaBodyJson(schema)(response);
2401
+ const decodeError = (tag, schema) => (response) => flatMap(schemaBodyJson(schema)(response), (cause) => fail(CloudClientError(tag, cause, response)));
2402
+ return {
2403
+ httpClient,
2404
+ "organizationsList": (options) => get("/v1/organizations").pipe(setUrlParams({
2405
+ "cursor": options?.params?.["cursor"],
2406
+ "limit": options?.params?.["limit"]
2407
+ }), withResponse(options?.config)(matchStatus({
2408
+ "2xx": decodeSuccess(OrganizationsList200),
2409
+ "401": decodeError("OrganizationsList401", OrganizationsList401),
2410
+ "503": decodeError("OrganizationsList503", OrganizationsList503),
2411
+ orElse: unexpectedStatus
2412
+ }))),
2413
+ "organizationsCreate": (options) => post("/v1/organizations").pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2414
+ "2xx": decodeSuccess(OrganizationsCreate201),
2415
+ "401": decodeError("OrganizationsCreate401", OrganizationsCreate401),
2416
+ "409": decodeError("OrganizationsCreate409", OrganizationsCreate409),
2417
+ "503": decodeError("OrganizationsCreate503", OrganizationsCreate503),
2418
+ orElse: unexpectedStatus
2419
+ }))),
2420
+ "organizationsGet": (organization, options) => __makePathRequest(get, [organization], () => "/v1/organizations/" + __encodePathParam(organization)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2421
+ "2xx": decodeSuccess(OrganizationsGet200),
2422
+ "401": decodeError("OrganizationsGet401", OrganizationsGet401),
2423
+ "403": decodeError("OrganizationsGet403", OrganizationsGet403),
2424
+ "404": decodeError("OrganizationsGet404", OrganizationsGet404),
2425
+ "503": decodeError("OrganizationsGet503", OrganizationsGet503),
2426
+ orElse: unexpectedStatus
2427
+ }))))),
2428
+ "organizationsDelete": (organization, options) => __makePathRequest(del, [organization], () => "/v1/organizations/" + __encodePathParam(organization)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2429
+ "401": decodeError("OrganizationsDelete401", OrganizationsDelete401),
2430
+ "403": decodeError("OrganizationsDelete403", OrganizationsDelete403),
2431
+ "404": decodeError("OrganizationsDelete404", OrganizationsDelete404),
2432
+ "409": decodeError("OrganizationsDelete409", OrganizationsDelete409),
2433
+ "428": decodeError("OrganizationsDelete428", OrganizationsDelete428),
2434
+ "503": decodeError("OrganizationsDelete503", OrganizationsDelete503),
2435
+ "204": () => void_,
2436
+ orElse: unexpectedStatus
2437
+ }))))),
2438
+ "organizationsUpdate": (organization, options) => __makePathRequest(patch, [organization], () => "/v1/organizations/" + __encodePathParam(organization)).pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2439
+ "2xx": decodeSuccess(OrganizationsUpdate200),
2440
+ "401": decodeError("OrganizationsUpdate401", OrganizationsUpdate401),
2441
+ "403": decodeError("OrganizationsUpdate403", OrganizationsUpdate403),
2442
+ "404": decodeError("OrganizationsUpdate404", OrganizationsUpdate404),
2443
+ "503": decodeError("OrganizationsUpdate503", OrganizationsUpdate503),
2444
+ orElse: unexpectedStatus
2445
+ }))))),
2446
+ "apiKeysList": (organization, options) => __makePathRequest(get, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/api-keys").pipe(flatMap((request) => request.pipe(setUrlParams({
2447
+ "cursor": options?.params?.["cursor"],
2448
+ "limit": options?.params?.["limit"]
2449
+ }), withResponse(options?.config)(matchStatus({
2450
+ "2xx": decodeSuccess(ApiKeysList200),
2451
+ "401": decodeError("ApiKeysList401", ApiKeysList401),
2452
+ "403": decodeError("ApiKeysList403", ApiKeysList403),
2453
+ "404": decodeError("ApiKeysList404", ApiKeysList404),
2454
+ "503": decodeError("ApiKeysList503", ApiKeysList503),
2455
+ orElse: unexpectedStatus
2456
+ }))))),
2457
+ "apiKeysCreate": (organization, options) => __makePathRequest(post, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/api-keys").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2458
+ "2xx": decodeSuccess(ApiKeysCreate201),
2459
+ "401": decodeError("ApiKeysCreate401", ApiKeysCreate401),
2460
+ "403": decodeError("ApiKeysCreate403", ApiKeysCreate403),
2461
+ "404": decodeError("ApiKeysCreate404", ApiKeysCreate404),
2462
+ "503": decodeError("ApiKeysCreate503", ApiKeysCreate503),
2463
+ orElse: unexpectedStatus
2464
+ }))))),
2465
+ "apiKeysRevoke": (organization, key, options) => __makePathRequest(del, [organization, key], () => "/v1/organizations/" + __encodePathParam(organization) + "/api-keys/" + __encodePathParam(key)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2466
+ "401": decodeError("ApiKeysRevoke401", ApiKeysRevoke401),
2467
+ "403": decodeError("ApiKeysRevoke403", ApiKeysRevoke403),
2468
+ "404": decodeError("ApiKeysRevoke404", ApiKeysRevoke404),
2469
+ "428": decodeError("ApiKeysRevoke428", ApiKeysRevoke428),
2470
+ "503": decodeError("ApiKeysRevoke503", ApiKeysRevoke503),
2471
+ "204": () => void_,
2472
+ orElse: unexpectedStatus
2473
+ }))))),
2474
+ "apiKeysUpdate": (organization, key, options) => __makePathRequest(patch, [organization, key], () => "/v1/organizations/" + __encodePathParam(organization) + "/api-keys/" + __encodePathParam(key)).pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2475
+ "2xx": decodeSuccess(ApiKeysUpdate200),
2476
+ "401": decodeError("ApiKeysUpdate401", ApiKeysUpdate401),
2477
+ "403": decodeError("ApiKeysUpdate403", ApiKeysUpdate403),
2478
+ "404": decodeError("ApiKeysUpdate404", ApiKeysUpdate404),
2479
+ "428": decodeError("ApiKeysUpdate428", ApiKeysUpdate428),
2480
+ "503": decodeError("ApiKeysUpdate503", ApiKeysUpdate503),
2481
+ orElse: unexpectedStatus
2482
+ }))))),
2483
+ "approvalsRequest": (organization, options) => __makePathRequest(post, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/approvals").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2484
+ "2xx": decodeSuccess(ApprovalsRequest202),
2485
+ "401": decodeError("ApprovalsRequest401", ApprovalsRequest401),
2486
+ "403": decodeError("ApprovalsRequest403", ApprovalsRequest403),
2487
+ "404": decodeError("ApprovalsRequest404", ApprovalsRequest404),
2488
+ "429": decodeError("ApprovalsRequest429", ApprovalsRequest429),
2489
+ "503": decodeError("ApprovalsRequest503", ApprovalsRequest503),
2490
+ orElse: unexpectedStatus
2491
+ }))))),
2492
+ "approvalsConfirm": (organization, request, options) => __makePathRequest(post, [organization, request], () => "/v1/organizations/" + __encodePathParam(organization) + "/approvals/" + __encodePathParam(request) + "/tokens").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2493
+ "2xx": decodeSuccess(ApprovalsConfirm201),
2494
+ "401": decodeError("ApprovalsConfirm401", ApprovalsConfirm401),
2495
+ "403": decodeError("ApprovalsConfirm403", ApprovalsConfirm403),
2496
+ "404": decodeError("ApprovalsConfirm404", ApprovalsConfirm404),
2497
+ "503": decodeError("ApprovalsConfirm503", ApprovalsConfirm503),
2498
+ orElse: unexpectedStatus
2499
+ }))))),
2500
+ "appsList": (organization, options) => __makePathRequest(get, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps").pipe(flatMap((request) => request.pipe(setUrlParams({
2501
+ "cursor": options?.params?.["cursor"],
2502
+ "limit": options?.params?.["limit"]
2503
+ }), withResponse(options?.config)(matchStatus({
2504
+ "2xx": decodeSuccess(AppsList200),
2505
+ "401": decodeError("AppsList401", AppsList401),
2506
+ "403": decodeError("AppsList403", AppsList403),
2507
+ "404": decodeError("AppsList404", AppsList404),
2508
+ "503": decodeError("AppsList503", AppsList503),
2509
+ orElse: unexpectedStatus
2510
+ }))))),
2511
+ "appsCreate": (organization, options) => __makePathRequest(post, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2512
+ "2xx": decodeSuccess(AppsCreate201),
2513
+ "401": decodeError("AppsCreate401", AppsCreate401),
2514
+ "403": decodeError("AppsCreate403", AppsCreate403),
2515
+ "404": decodeError("AppsCreate404", AppsCreate404),
2516
+ "409": decodeError("AppsCreate409", AppsCreate409),
2517
+ "503": decodeError("AppsCreate503", AppsCreate503),
2518
+ orElse: unexpectedStatus
2519
+ }))))),
2520
+ "appsGet": (organization, app, options) => __makePathRequest(get, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2521
+ "2xx": decodeSuccess(AppsGet200),
2522
+ "401": decodeError("AppsGet401", AppsGet401),
2523
+ "403": decodeError("AppsGet403", AppsGet403),
2524
+ "404": decodeError("AppsGet404", AppsGet404),
2525
+ "503": decodeError("AppsGet503", AppsGet503),
2526
+ orElse: unexpectedStatus
2527
+ }))))),
2528
+ "appsDelete": (organization, app, options) => __makePathRequest(del, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2529
+ "401": decodeError("AppsDelete401", AppsDelete401),
2530
+ "403": decodeError("AppsDelete403", AppsDelete403),
2531
+ "404": decodeError("AppsDelete404", AppsDelete404),
2532
+ "428": decodeError("AppsDelete428", AppsDelete428),
2533
+ "503": decodeError("AppsDelete503", AppsDelete503),
2534
+ "204": () => void_,
2535
+ orElse: unexpectedStatus
2536
+ }))))),
2537
+ "environmentsList": (organization, app, options) => __makePathRequest(get, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments").pipe(flatMap((request) => request.pipe(setUrlParams({
2538
+ "cursor": options?.params?.["cursor"],
2539
+ "limit": options?.params?.["limit"]
2540
+ }), withResponse(options?.config)(matchStatus({
2541
+ "2xx": decodeSuccess(EnvironmentsList200),
2542
+ "401": decodeError("EnvironmentsList401", EnvironmentsList401),
2543
+ "403": decodeError("EnvironmentsList403", EnvironmentsList403),
2544
+ "404": decodeError("EnvironmentsList404", EnvironmentsList404),
2545
+ "503": decodeError("EnvironmentsList503", EnvironmentsList503),
2546
+ orElse: unexpectedStatus
2547
+ }))))),
2548
+ "environmentsCreate": (organization, app, options) => __makePathRequest(post, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2549
+ "2xx": decodeSuccess(EnvironmentsCreate201),
2550
+ "401": decodeError("EnvironmentsCreate401", EnvironmentsCreate401),
2551
+ "403": decodeError("EnvironmentsCreate403", EnvironmentsCreate403),
2552
+ "404": decodeError("EnvironmentsCreate404", EnvironmentsCreate404),
2553
+ "409": decodeError("EnvironmentsCreate409", EnvironmentsCreate409),
2554
+ "503": decodeError("EnvironmentsCreate503", EnvironmentsCreate503),
2555
+ orElse: unexpectedStatus
2556
+ }))))),
2557
+ "environmentsGet": (organization, app, environment, options) => __makePathRequest(get, [
2558
+ organization,
2559
+ app,
2560
+ environment
2561
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2562
+ "2xx": decodeSuccess(EnvironmentsGet200),
2563
+ "401": decodeError("EnvironmentsGet401", EnvironmentsGet401),
2564
+ "403": decodeError("EnvironmentsGet403", EnvironmentsGet403),
2565
+ "404": decodeError("EnvironmentsGet404", EnvironmentsGet404),
2566
+ "503": decodeError("EnvironmentsGet503", EnvironmentsGet503),
2567
+ orElse: unexpectedStatus
2568
+ }))))),
2569
+ "environmentsDelete": (organization, app, environment, options) => __makePathRequest(del, [
2570
+ organization,
2571
+ app,
2572
+ environment
2573
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2574
+ "2xx": decodeSuccess(EnvironmentsDelete202),
2575
+ "401": decodeError("EnvironmentsDelete401", EnvironmentsDelete401),
2576
+ "403": decodeError("EnvironmentsDelete403", EnvironmentsDelete403),
2577
+ "404": decodeError("EnvironmentsDelete404", EnvironmentsDelete404),
2578
+ "409": decodeError("EnvironmentsDelete409", EnvironmentsDelete409),
2579
+ "428": decodeError("EnvironmentsDelete428", EnvironmentsDelete428),
2580
+ "503": decodeError("EnvironmentsDelete503", EnvironmentsDelete503),
2581
+ orElse: unexpectedStatus
2582
+ }))))),
2583
+ "environmentsPromote": (organization, app, environment, options) => __makePathRequest(post, [
2584
+ organization,
2585
+ app,
2586
+ environment
2587
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment) + "/promote").pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2588
+ "2xx": decodeSuccess(EnvironmentsPromote202),
2589
+ "401": decodeError("EnvironmentsPromote401", EnvironmentsPromote401),
2590
+ "403": decodeError("EnvironmentsPromote403", EnvironmentsPromote403),
2591
+ "404": decodeError("EnvironmentsPromote404", EnvironmentsPromote404),
2592
+ "409": decodeError("EnvironmentsPromote409", EnvironmentsPromote409),
2593
+ "428": decodeError("EnvironmentsPromote428", EnvironmentsPromote428),
2594
+ "503": decodeError("EnvironmentsPromote503", EnvironmentsPromote503),
2595
+ orElse: unexpectedStatus
2596
+ }))))),
2597
+ "snapshotsList": (organization, app, environment, options) => __makePathRequest(get, [
2598
+ organization,
2599
+ app,
2600
+ environment
2601
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment) + "/snapshots").pipe(flatMap((request) => request.pipe(setUrlParams({
2602
+ "cursor": options?.params?.["cursor"],
2603
+ "limit": options?.params?.["limit"]
2604
+ }), withResponse(options?.config)(matchStatus({
2605
+ "2xx": decodeSuccess(SnapshotsList200),
2606
+ "401": decodeError("SnapshotsList401", SnapshotsList401),
2607
+ "403": decodeError("SnapshotsList403", SnapshotsList403),
2608
+ "404": decodeError("SnapshotsList404", SnapshotsList404),
2609
+ "503": decodeError("SnapshotsList503", SnapshotsList503),
2610
+ orElse: unexpectedStatus
2611
+ }))))),
2612
+ "snapshotsCreate": (organization, app, environment, options) => __makePathRequest(post, [
2613
+ organization,
2614
+ app,
2615
+ environment
2616
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment) + "/snapshots").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2617
+ "2xx": decodeSuccess(SnapshotsCreate202),
2618
+ "401": decodeError("SnapshotsCreate401", SnapshotsCreate401),
2619
+ "403": decodeError("SnapshotsCreate403", SnapshotsCreate403),
2620
+ "404": decodeError("SnapshotsCreate404", SnapshotsCreate404),
2621
+ "409": decodeError("SnapshotsCreate409", SnapshotsCreate409),
2622
+ "503": decodeError("SnapshotsCreate503", SnapshotsCreate503),
2623
+ orElse: unexpectedStatus
2624
+ }))))),
2625
+ "snapshotsGet": (organization, app, environment, snapshot, options) => __makePathRequest(get, [
2626
+ organization,
2627
+ app,
2628
+ environment,
2629
+ snapshot
2630
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment) + "/snapshots/" + __encodePathParam(snapshot)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2631
+ "2xx": decodeSuccess(SnapshotsGet200),
2632
+ "401": decodeError("SnapshotsGet401", SnapshotsGet401),
2633
+ "403": decodeError("SnapshotsGet403", SnapshotsGet403),
2634
+ "404": decodeError("SnapshotsGet404", SnapshotsGet404),
2635
+ "503": decodeError("SnapshotsGet503", SnapshotsGet503),
2636
+ orElse: unexpectedStatus
2637
+ }))))),
2638
+ "snapshotsDelete": (organization, app, environment, snapshot, options) => __makePathRequest(del, [
2639
+ organization,
2640
+ app,
2641
+ environment,
2642
+ snapshot
2643
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment) + "/snapshots/" + __encodePathParam(snapshot)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2644
+ "2xx": decodeSuccess(SnapshotsDelete200),
2645
+ "401": decodeError("SnapshotsDelete401", SnapshotsDelete401),
2646
+ "403": decodeError("SnapshotsDelete403", SnapshotsDelete403),
2647
+ "404": decodeError("SnapshotsDelete404", SnapshotsDelete404),
2648
+ "428": decodeError("SnapshotsDelete428", SnapshotsDelete428),
2649
+ "503": decodeError("SnapshotsDelete503", SnapshotsDelete503),
2650
+ orElse: unexpectedStatus
2651
+ }))))),
2652
+ "buildsList": (organization, app, options) => __makePathRequest(get, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/builds").pipe(flatMap((request) => request.pipe(setUrlParams({
2653
+ "cursor": options?.params?.["cursor"],
2654
+ "limit": options?.params?.["limit"]
2655
+ }), withResponse(options?.config)(matchStatus({
2656
+ "2xx": decodeSuccess(BuildsList200),
2657
+ "401": decodeError("BuildsList401", BuildsList401),
2658
+ "403": decodeError("BuildsList403", BuildsList403),
2659
+ "404": decodeError("BuildsList404", BuildsList404),
2660
+ "503": decodeError("BuildsList503", BuildsList503),
2661
+ orElse: unexpectedStatus
2662
+ }))))),
2663
+ "buildsCreate": (organization, app, options) => __makePathRequest(post, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/builds").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2664
+ "2xx": decodeSuccess(BuildsCreate201),
2665
+ "401": decodeError("BuildsCreate401", BuildsCreate401),
2666
+ "403": decodeError("BuildsCreate403", BuildsCreate403),
2667
+ "404": decodeError("BuildsCreate404", BuildsCreate404),
2668
+ "503": decodeError("BuildsCreate503", BuildsCreate503),
2669
+ orElse: unexpectedStatus
2670
+ }))))),
2671
+ "buildsGet": (organization, app, build, options) => __makePathRequest(get, [
2672
+ organization,
2673
+ app,
2674
+ build
2675
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/builds/" + __encodePathParam(build)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2676
+ "2xx": decodeSuccess(BuildsGet200),
2677
+ "401": decodeError("BuildsGet401", BuildsGet401),
2678
+ "403": decodeError("BuildsGet403", BuildsGet403),
2679
+ "404": decodeError("BuildsGet404", BuildsGet404),
2680
+ "503": decodeError("BuildsGet503", BuildsGet503),
2681
+ orElse: unexpectedStatus
2682
+ }))))),
2683
+ "deploysList": (organization, app, options) => __makePathRequest(get, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/deploys").pipe(flatMap((request) => request.pipe(setUrlParams({
2684
+ "cursor": options?.params?.["cursor"],
2685
+ "limit": options?.params?.["limit"]
2686
+ }), withResponse(options?.config)(matchStatus({
2687
+ "2xx": decodeSuccess(DeploysList200),
2688
+ "401": decodeError("DeploysList401", DeploysList401),
2689
+ "403": decodeError("DeploysList403", DeploysList403),
2690
+ "404": decodeError("DeploysList404", DeploysList404),
2691
+ "503": decodeError("DeploysList503", DeploysList503),
2692
+ orElse: unexpectedStatus
2693
+ }))))),
2694
+ "deploysCreate": (organization, app, options) => __makePathRequest(post, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/deploys").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2695
+ "2xx": decodeSuccess(DeploysCreate202),
2696
+ "401": decodeError("DeploysCreate401", DeploysCreate401),
2697
+ "403": decodeError("DeploysCreate403", DeploysCreate403),
2698
+ "404": decodeError("DeploysCreate404", DeploysCreate404),
2699
+ "409": decodeError("DeploysCreate409", DeploysCreate409),
2700
+ "503": decodeError("DeploysCreate503", DeploysCreate503),
2701
+ orElse: unexpectedStatus
2702
+ }))))),
2703
+ "deploysGet": (organization, app, deploy, options) => __makePathRequest(get, [
2704
+ organization,
2705
+ app,
2706
+ deploy
2707
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/deploys/" + __encodePathParam(deploy)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2708
+ "2xx": decodeSuccess(DeploysGet200),
2709
+ "401": decodeError("DeploysGet401", DeploysGet401),
2710
+ "403": decodeError("DeploysGet403", DeploysGet403),
2711
+ "404": decodeError("DeploysGet404", DeploysGet404),
2712
+ "503": decodeError("DeploysGet503", DeploysGet503),
2713
+ orElse: unexpectedStatus
2714
+ }))))),
2715
+ "domainsList": (organization, app, options) => __makePathRequest(get, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/domains").pipe(flatMap((request) => request.pipe(setUrlParams({
2716
+ "cursor": options?.params?.["cursor"],
2717
+ "limit": options?.params?.["limit"]
2718
+ }), withResponse(options?.config)(matchStatus({
2719
+ "2xx": decodeSuccess(DomainsList200),
2720
+ "401": decodeError("DomainsList401", DomainsList401),
2721
+ "403": decodeError("DomainsList403", DomainsList403),
2722
+ "404": decodeError("DomainsList404", DomainsList404),
2723
+ "503": decodeError("DomainsList503", DomainsList503),
2724
+ orElse: unexpectedStatus
2725
+ }))))),
2726
+ "domainsCreate": (organization, app, options) => __makePathRequest(post, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/domains").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2727
+ "2xx": decodeSuccess(DomainsCreate202),
2728
+ "401": decodeError("DomainsCreate401", DomainsCreate401),
2729
+ "403": decodeError("DomainsCreate403", DomainsCreate403),
2730
+ "404": decodeError("DomainsCreate404", DomainsCreate404),
2731
+ "409": decodeError("DomainsCreate409", DomainsCreate409),
2732
+ "503": decodeError("DomainsCreate503", DomainsCreate503),
2733
+ orElse: unexpectedStatus
2734
+ }))))),
2735
+ "domainsGet": (organization, app, hostname, options) => __makePathRequest(get, [
2736
+ organization,
2737
+ app,
2738
+ hostname
2739
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/domains/" + __encodePathParam(hostname)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2740
+ "2xx": decodeSuccess(DomainsGet200),
2741
+ "401": decodeError("DomainsGet401", DomainsGet401),
2742
+ "403": decodeError("DomainsGet403", DomainsGet403),
2743
+ "404": decodeError("DomainsGet404", DomainsGet404),
2744
+ "503": decodeError("DomainsGet503", DomainsGet503),
2745
+ orElse: unexpectedStatus
2746
+ }))))),
2747
+ "domainsDelete": (organization, app, hostname, options) => __makePathRequest(del, [
2748
+ organization,
2749
+ app,
2750
+ hostname
2751
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/domains/" + __encodePathParam(hostname)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2752
+ "401": decodeError("DomainsDelete401", DomainsDelete401),
2753
+ "403": decodeError("DomainsDelete403", DomainsDelete403),
2754
+ "404": decodeError("DomainsDelete404", DomainsDelete404),
2755
+ "428": decodeError("DomainsDelete428", DomainsDelete428),
2756
+ "503": decodeError("DomainsDelete503", DomainsDelete503),
2757
+ "202": () => void_,
2758
+ orElse: unexpectedStatus
2759
+ }))))),
2760
+ "logsRead": (organization, app, options) => __makePathRequest(get, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/logs").pipe(flatMap((request) => request.pipe(setUrlParams({
2761
+ "cursor": options?.params?.["cursor"],
2762
+ "limit": options?.params?.["limit"],
2763
+ "deploy": options?.params?.["deploy"],
2764
+ "since": options?.params?.["since"],
2765
+ "source": options?.params?.["source"]
2766
+ }), withResponse(options?.config)(matchStatus({
2767
+ "2xx": decodeSuccess(LogsRead200),
2768
+ "401": decodeError("LogsRead401", LogsRead401),
2769
+ "403": decodeError("LogsRead403", LogsRead403),
2770
+ "404": decodeError("LogsRead404", LogsRead404),
2771
+ "503": decodeError("LogsRead503", LogsRead503),
2772
+ orElse: unexpectedStatus
2773
+ }))))),
2774
+ "secretsSet": (organization, app, environment, name, options) => __makePathRequest(put, [
2775
+ organization,
2776
+ app,
2777
+ environment,
2778
+ name
2779
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment) + "/secrets/" + __encodePathParam(name)).pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2780
+ "2xx": decodeSuccess(SecretsSet200),
2781
+ "401": decodeError("SecretsSet401", SecretsSet401),
2782
+ "403": decodeError("SecretsSet403", SecretsSet403),
2783
+ "404": decodeError("SecretsSet404", SecretsSet404),
2784
+ "503": decodeError("SecretsSet503", SecretsSet503),
2785
+ orElse: unexpectedStatus
2786
+ }))))),
2787
+ "secretsDelete": (organization, app, environment, name, options) => __makePathRequest(del, [
2788
+ organization,
2789
+ app,
2790
+ environment,
2791
+ name
2792
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment) + "/secrets/" + __encodePathParam(name)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2793
+ "401": decodeError("SecretsDelete401", SecretsDelete401),
2794
+ "403": decodeError("SecretsDelete403", SecretsDelete403),
2795
+ "404": decodeError("SecretsDelete404", SecretsDelete404),
2796
+ "428": decodeError("SecretsDelete428", SecretsDelete428),
2797
+ "503": decodeError("SecretsDelete503", SecretsDelete503),
2798
+ "204": () => void_,
2799
+ orElse: unexpectedStatus
2800
+ }))))),
2801
+ "secretsList": (organization, app, environment, options) => __makePathRequest(get, [
2802
+ organization,
2803
+ app,
2804
+ environment
2805
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment) + "/secrets").pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2806
+ "2xx": decodeSuccess(SecretsList200),
2807
+ "401": decodeError("SecretsList401", SecretsList401),
2808
+ "403": decodeError("SecretsList403", SecretsList403),
2809
+ "404": decodeError("SecretsList404", SecretsList404),
2810
+ "503": decodeError("SecretsList503", SecretsList503),
2811
+ orElse: unexpectedStatus
2812
+ }))))),
2813
+ "actorsList": (organization, app, options) => __makePathRequest(get, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/actors").pipe(flatMap((request) => request.pipe(setUrlParams({
2814
+ "actor": options?.params?.["actor"],
2815
+ "after": options?.params?.["after"],
2816
+ "environment": options?.params?.["environment"],
2817
+ "limit": options?.params?.["limit"]
2818
+ }), withResponse(options?.config)(matchStatus({
2819
+ "2xx": decodeSuccess(ActorsList200),
2820
+ "401": decodeError("ActorsList401", ActorsList401),
2821
+ "403": decodeError("ActorsList403", ActorsList403),
2822
+ "404": decodeError("ActorsList404", ActorsList404),
2823
+ "503": decodeError("ActorsList503", ActorsList503),
2824
+ orElse: unexpectedStatus
2825
+ }))))),
2826
+ "actorsHistory": (organization, app, actor, key, options) => __makePathRequest(get, [
2827
+ organization,
2828
+ app,
2829
+ actor,
2830
+ key
2831
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/actors/" + __encodePathParam(actor) + "/" + __encodePathParam(key) + "/history").pipe(flatMap((request) => request.pipe(setUrlParams({
2832
+ "after": options?.params?.["after"],
2833
+ "limit": options?.params?.["limit"],
2834
+ "since": options?.params?.["since"]
2835
+ }), withResponse(options?.config)(matchStatus({
2836
+ "2xx": decodeSuccess(ActorsHistory200),
2837
+ "401": decodeError("ActorsHistory401", ActorsHistory401),
2838
+ "403": decodeError("ActorsHistory403", ActorsHistory403),
2839
+ "404": decodeError("ActorsHistory404", ActorsHistory404),
2840
+ "410": decodeError("ActorsHistory410", ActorsHistory410),
2841
+ "503": decodeError("ActorsHistory503", ActorsHistory503),
2842
+ orElse: unexpectedStatus
2843
+ }))))),
2844
+ "actorsErase": (organization, app, actor, key, options) => __makePathRequest(del, [
2845
+ organization,
2846
+ app,
2847
+ actor,
2848
+ key
2849
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/actors/" + __encodePathParam(actor) + "/" + __encodePathParam(key)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2850
+ "401": decodeError("ActorsErase401", ActorsErase401),
2851
+ "403": decodeError("ActorsErase403", ActorsErase403),
2852
+ "404": decodeError("ActorsErase404", ActorsErase404),
2853
+ "428": decodeError("ActorsErase428", ActorsErase428),
2854
+ "503": decodeError("ActorsErase503", ActorsErase503),
2855
+ "204": () => void_,
2856
+ orElse: unexpectedStatus
2857
+ }))))),
2858
+ "actorsExportShard": (organization, app, shard, options) => __makePathRequest(get, [
2859
+ organization,
2860
+ app,
2861
+ shard
2862
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/export/shards/" + __encodePathParam(shard)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
2863
+ "2xx": decodeSuccess(ActorsExportShard200),
2864
+ "401": decodeError("ActorsExportShard401", ActorsExportShard401),
2865
+ "403": decodeError("ActorsExportShard403", ActorsExportShard403),
2866
+ "404": decodeError("ActorsExportShard404", ActorsExportShard404),
2867
+ "503": decodeError("ActorsExportShard503", ActorsExportShard503),
2868
+ orElse: unexpectedStatus
2869
+ }))))),
2870
+ "actorsExportSnapshot": (organization, app, options) => __makePathRequest(post, [organization, app], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/export/snapshots").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2871
+ "2xx": decodeSuccess(ActorsExportSnapshot201),
2872
+ "401": decodeError("ActorsExportSnapshot401", ActorsExportSnapshot401),
2873
+ "403": decodeError("ActorsExportSnapshot403", ActorsExportSnapshot403),
2874
+ "404": decodeError("ActorsExportSnapshot404", ActorsExportSnapshot404),
2875
+ "410": decodeError("ActorsExportSnapshot410", ActorsExportSnapshot410),
2876
+ "503": decodeError("ActorsExportSnapshot503", ActorsExportSnapshot503),
2877
+ orElse: unexpectedStatus
2878
+ }))))),
2879
+ "actorsExportRead": (organization, app, snapshot, options) => __makePathRequest(get, [
2880
+ organization,
2881
+ app,
2882
+ snapshot
2883
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/export/snapshots/" + __encodePathParam(snapshot)).pipe(flatMap((request) => request.pipe(setUrlParams({
2884
+ "actor": options.params["actor"],
2885
+ "key": options.params["key"],
2886
+ "length": options.params["length"],
2887
+ "offset": options.params["offset"]
2888
+ }), withResponse(options.config)(matchStatus({
2889
+ "2xx": decodeBinary,
2890
+ "401": decodeError("ActorsExportRead401", ActorsExportRead401),
2891
+ "403": decodeError("ActorsExportRead403", ActorsExportRead403),
2892
+ "404": decodeError("ActorsExportRead404", ActorsExportRead404),
2893
+ "410": decodeError("ActorsExportRead410", ActorsExportRead410),
2894
+ "503": decodeError("ActorsExportRead503", ActorsExportRead503),
2895
+ orElse: unexpectedStatus
2896
+ }))))),
2897
+ "actorsExportReadStream": (organization, app, snapshot, options) => unwrap(__makePathRequest(get, [
2898
+ organization,
2899
+ app,
2900
+ snapshot
2901
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/export/snapshots/" + __encodePathParam(snapshot)).pipe(map((request) => request.pipe(setUrlParams({
2902
+ "actor": options.params["actor"],
2903
+ "key": options.params["key"],
2904
+ "length": options.params["length"],
2905
+ "offset": options.params["offset"]
2906
+ }), binaryRequest)))),
2907
+ "actorsExportFiles": (organization, app, snapshot, options) => __makePathRequest(get, [
2908
+ organization,
2909
+ app,
2910
+ snapshot
2911
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/export/snapshots/" + __encodePathParam(snapshot) + "/files").pipe(flatMap((request) => request.pipe(setUrlParams({
2912
+ "actor": options.params["actor"],
2913
+ "after": options.params["after"],
2914
+ "key": options.params["key"]
2915
+ }), withResponse(options.config)(matchStatus({
2916
+ "2xx": decodeSuccess(ActorsExportFiles200),
2917
+ "401": decodeError("ActorsExportFiles401", ActorsExportFiles401),
2918
+ "403": decodeError("ActorsExportFiles403", ActorsExportFiles403),
2919
+ "404": decodeError("ActorsExportFiles404", ActorsExportFiles404),
2920
+ "410": decodeError("ActorsExportFiles410", ActorsExportFiles410),
2921
+ "503": decodeError("ActorsExportFiles503", ActorsExportFiles503),
2922
+ orElse: unexpectedStatus
2923
+ }))))),
2924
+ "actorsExportFileRead": (organization, app, snapshot, sha256, options) => __makePathRequest(get, [
2925
+ organization,
2926
+ app,
2927
+ snapshot,
2928
+ sha256
2929
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/export/snapshots/" + __encodePathParam(snapshot) + "/files/" + __encodePathParam(sha256)).pipe(flatMap((request) => request.pipe(setUrlParams({
2930
+ "actor": options.params["actor"],
2931
+ "key": options.params["key"],
2932
+ "length": options.params["length"],
2933
+ "offset": options.params["offset"]
2934
+ }), withResponse(options.config)(matchStatus({
2935
+ "2xx": decodeBinary,
2936
+ "401": decodeError("ActorsExportFileRead401", ActorsExportFileRead401),
2937
+ "403": decodeError("ActorsExportFileRead403", ActorsExportFileRead403),
2938
+ "404": decodeError("ActorsExportFileRead404", ActorsExportFileRead404),
2939
+ "410": decodeError("ActorsExportFileRead410", ActorsExportFileRead410),
2940
+ "503": decodeError("ActorsExportFileRead503", ActorsExportFileRead503),
2941
+ orElse: unexpectedStatus
2942
+ }))))),
2943
+ "actorsExportFileReadStream": (organization, app, snapshot, sha256, options) => unwrap(__makePathRequest(get, [
2944
+ organization,
2945
+ app,
2946
+ snapshot,
2947
+ sha256
2948
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/export/snapshots/" + __encodePathParam(snapshot) + "/files/" + __encodePathParam(sha256)).pipe(map((request) => request.pipe(setUrlParams({
2949
+ "actor": options.params["actor"],
2950
+ "key": options.params["key"],
2951
+ "length": options.params["length"],
2952
+ "offset": options.params["offset"]
2953
+ }), binaryRequest)))),
2954
+ "actorsExec": (organization, app, actor, key, options) => __makePathRequest(post, [
2955
+ organization,
2956
+ app,
2957
+ actor,
2958
+ key
2959
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/actors/" + __encodePathParam(actor) + "/" + __encodePathParam(key) + "/exec").pipe(flatMap((request) => request.pipe(setUrlParams({ "environment": options.params?.["environment"] }), bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2960
+ "2xx": decodeSuccess(ActorsExec200),
2961
+ "401": decodeError("ActorsExec401", ActorsExec401),
2962
+ "403": decodeError("ActorsExec403", ActorsExec403),
2963
+ "404": decodeError("ActorsExec404", ActorsExec404),
2964
+ "409": decodeError("ActorsExec409", ActorsExec409),
2965
+ "410": decodeError("ActorsExec410", ActorsExec410),
2966
+ "503": decodeError("ActorsExec503", ActorsExec503),
2967
+ orElse: unexpectedStatus
2968
+ }))))),
2969
+ "actorForksCreate": (organization, app, environment, actor, key, options) => __makePathRequest(post, [
2970
+ organization,
2971
+ app,
2972
+ environment,
2973
+ actor,
2974
+ key
2975
+ ], () => "/v1/organizations/" + __encodePathParam(organization) + "/apps/" + __encodePathParam(app) + "/environments/" + __encodePathParam(environment) + "/actors/" + __encodePathParam(actor) + "/" + __encodePathParam(key) + "/forks").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2976
+ "2xx": decodeSuccess(ActorForksCreate201),
2977
+ "401": decodeError("ActorForksCreate401", ActorForksCreate401),
2978
+ "403": decodeError("ActorForksCreate403", ActorForksCreate403),
2979
+ "404": decodeError("ActorForksCreate404", ActorForksCreate404),
2980
+ "409": decodeError("ActorForksCreate409", ActorForksCreate409),
2981
+ "410": decodeError("ActorForksCreate410", ActorForksCreate410),
2982
+ "428": decodeError("ActorForksCreate428", ActorForksCreate428),
2983
+ "503": decodeError("ActorForksCreate503", ActorForksCreate503),
2984
+ orElse: unexpectedStatus
2985
+ }))))),
2986
+ "membersList": (organization, options) => __makePathRequest(get, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/members").pipe(flatMap((request) => request.pipe(setUrlParams({
2987
+ "cursor": options?.params?.["cursor"],
2988
+ "limit": options?.params?.["limit"]
2989
+ }), withResponse(options?.config)(matchStatus({
2990
+ "2xx": decodeSuccess(MembersList200),
2991
+ "401": decodeError("MembersList401", MembersList401),
2992
+ "403": decodeError("MembersList403", MembersList403),
2993
+ "404": decodeError("MembersList404", MembersList404),
2994
+ "503": decodeError("MembersList503", MembersList503),
2995
+ orElse: unexpectedStatus
2996
+ }))))),
2997
+ "membersAdd": (organization, options) => __makePathRequest(post, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/members").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
2998
+ "2xx": decodeSuccess(MembersAdd201),
2999
+ "401": decodeError("MembersAdd401", MembersAdd401),
3000
+ "403": decodeError("MembersAdd403", MembersAdd403),
3001
+ "404": decodeError("MembersAdd404", MembersAdd404),
3002
+ "409": decodeError("MembersAdd409", MembersAdd409),
3003
+ "503": decodeError("MembersAdd503", MembersAdd503),
3004
+ orElse: unexpectedStatus
3005
+ }))))),
3006
+ "membersRemove": (organization, member, options) => __makePathRequest(del, [organization, member], () => "/v1/organizations/" + __encodePathParam(organization) + "/members/" + __encodePathParam(member)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
3007
+ "401": decodeError("MembersRemove401", MembersRemove401),
3008
+ "403": decodeError("MembersRemove403", MembersRemove403),
3009
+ "404": decodeError("MembersRemove404", MembersRemove404),
3010
+ "428": decodeError("MembersRemove428", MembersRemove428),
3011
+ "503": decodeError("MembersRemove503", MembersRemove503),
3012
+ "204": () => void_,
3013
+ orElse: unexpectedStatus
3014
+ }))))),
3015
+ "membersChangeRole": (organization, member, options) => __makePathRequest(patch, [organization, member], () => "/v1/organizations/" + __encodePathParam(organization) + "/members/" + __encodePathParam(member)).pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
3016
+ "2xx": decodeSuccess(MembersChangeRole200),
3017
+ "401": decodeError("MembersChangeRole401", MembersChangeRole401),
3018
+ "403": decodeError("MembersChangeRole403", MembersChangeRole403),
3019
+ "404": decodeError("MembersChangeRole404", MembersChangeRole404),
3020
+ "503": decodeError("MembersChangeRole503", MembersChangeRole503),
3021
+ orElse: unexpectedStatus
3022
+ }))))),
3023
+ "invitationsList": (organization, options) => __makePathRequest(get, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/invitations").pipe(flatMap((request) => request.pipe(setUrlParams({
3024
+ "cursor": options?.params?.["cursor"],
3025
+ "limit": options?.params?.["limit"]
3026
+ }), withResponse(options?.config)(matchStatus({
3027
+ "2xx": decodeSuccess(InvitationsList200),
3028
+ "401": decodeError("InvitationsList401", InvitationsList401),
3029
+ "403": decodeError("InvitationsList403", InvitationsList403),
3030
+ "404": decodeError("InvitationsList404", InvitationsList404),
3031
+ "503": decodeError("InvitationsList503", InvitationsList503),
3032
+ orElse: unexpectedStatus
3033
+ }))))),
3034
+ "invitationsCreate": (organization, options) => __makePathRequest(post, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/invitations").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
3035
+ "2xx": decodeSuccess(InvitationsCreate201),
3036
+ "401": decodeError("InvitationsCreate401", InvitationsCreate401),
3037
+ "403": decodeError("InvitationsCreate403", InvitationsCreate403),
3038
+ "404": decodeError("InvitationsCreate404", InvitationsCreate404),
3039
+ "409": decodeError("InvitationsCreate409", InvitationsCreate409),
3040
+ "503": decodeError("InvitationsCreate503", InvitationsCreate503),
3041
+ orElse: unexpectedStatus
3042
+ }))))),
3043
+ "invitationsRevoke": (organization, invitation, options) => __makePathRequest(del, [organization, invitation], () => "/v1/organizations/" + __encodePathParam(organization) + "/invitations/" + __encodePathParam(invitation)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
3044
+ "401": decodeError("InvitationsRevoke401", InvitationsRevoke401),
3045
+ "403": decodeError("InvitationsRevoke403", InvitationsRevoke403),
3046
+ "404": decodeError("InvitationsRevoke404", InvitationsRevoke404),
3047
+ "503": decodeError("InvitationsRevoke503", InvitationsRevoke503),
3048
+ "204": () => void_,
3049
+ orElse: unexpectedStatus
3050
+ }))))),
3051
+ "invitationsAccept": (organization, invitation, options) => __makePathRequest(post, [organization, invitation], () => "/v1/organizations/" + __encodePathParam(organization) + "/invitations/" + __encodePathParam(invitation) + "/accept").pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
3052
+ "2xx": decodeSuccess(InvitationsAccept201),
3053
+ "401": decodeError("InvitationsAccept401", InvitationsAccept401),
3054
+ "403": decodeError("InvitationsAccept403", InvitationsAccept403),
3055
+ "404": decodeError("InvitationsAccept404", InvitationsAccept404),
3056
+ "409": decodeError("InvitationsAccept409", InvitationsAccept409),
3057
+ "503": decodeError("InvitationsAccept503", InvitationsAccept503),
3058
+ orElse: unexpectedStatus
3059
+ }))))),
3060
+ "usageGet": (organization, options) => __makePathRequest(get, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/usage").pipe(flatMap((request) => request.pipe(setUrlParams({
3061
+ "app": options?.params?.["app"],
3062
+ "key": options?.params?.["key"],
3063
+ "period": options?.params?.["period"]
3064
+ }), withResponse(options?.config)(matchStatus({
3065
+ "2xx": decodeSuccess(UsageGet200),
3066
+ "401": decodeError("UsageGet401", UsageGet401),
3067
+ "403": decodeError("UsageGet403", UsageGet403),
3068
+ "404": decodeError("UsageGet404", UsageGet404),
3069
+ "503": decodeError("UsageGet503", UsageGet503),
3070
+ orElse: unexpectedStatus
3071
+ }))))),
3072
+ "usageForecast": (organization, options) => __makePathRequest(get, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/usage/forecast").pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
3073
+ "2xx": decodeSuccess(UsageForecast200),
3074
+ "401": decodeError("UsageForecast401", UsageForecast401),
3075
+ "403": decodeError("UsageForecast403", UsageForecast403),
3076
+ "404": decodeError("UsageForecast404", UsageForecast404),
3077
+ "503": decodeError("UsageForecast503", UsageForecast503),
3078
+ orElse: unexpectedStatus
3079
+ }))))),
3080
+ "billingGet": (organization, options) => __makePathRequest(get, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/billing").pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
3081
+ "2xx": decodeSuccess(BillingGet200),
3082
+ "401": decodeError("BillingGet401", BillingGet401),
3083
+ "403": decodeError("BillingGet403", BillingGet403),
3084
+ "404": decodeError("BillingGet404", BillingGet404),
3085
+ "503": decodeError("BillingGet503", BillingGet503),
3086
+ orElse: unexpectedStatus
3087
+ }))))),
3088
+ "billingCancel": (organization, options) => __makePathRequest(del, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/billing").pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
3089
+ "2xx": decodeSuccess(BillingCancel200),
3090
+ "401": decodeError("BillingCancel401", BillingCancel401),
3091
+ "403": decodeError("BillingCancel403", BillingCancel403),
3092
+ "404": decodeError("BillingCancel404", BillingCancel404),
3093
+ "428": decodeError("BillingCancel428", BillingCancel428),
3094
+ "503": decodeError("BillingCancel503", BillingCancel503),
3095
+ orElse: unexpectedStatus
3096
+ }))))),
3097
+ "billingCheckout": (organization, options) => __makePathRequest(post, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/billing/checkout").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
3098
+ "2xx": decodeSuccess(BillingCheckout201),
3099
+ "401": decodeError("BillingCheckout401", BillingCheckout401),
3100
+ "403": decodeError("BillingCheckout403", BillingCheckout403),
3101
+ "404": decodeError("BillingCheckout404", BillingCheckout404),
3102
+ "503": decodeError("BillingCheckout503", BillingCheckout503),
3103
+ orElse: unexpectedStatus
3104
+ }))))),
3105
+ "billingSetCap": (organization, options) => __makePathRequest(put, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/billing/cap").pipe(flatMap((request) => request.pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
3106
+ "2xx": decodeSuccess(BillingSetCap200),
3107
+ "401": decodeError("BillingSetCap401", BillingSetCap401),
3108
+ "402": decodeError("BillingSetCap402", BillingSetCap402),
3109
+ "403": decodeError("BillingSetCap403", BillingSetCap403),
3110
+ "404": decodeError("BillingSetCap404", BillingSetCap404),
3111
+ "428": decodeError("BillingSetCap428", BillingSetCap428),
3112
+ "503": decodeError("BillingSetCap503", BillingSetCap503),
3113
+ orElse: unexpectedStatus
3114
+ }))))),
3115
+ "billingInvoices": (organization, options) => __makePathRequest(get, [organization], () => "/v1/organizations/" + __encodePathParam(organization) + "/billing/invoices").pipe(flatMap((request) => request.pipe(setUrlParams({
3116
+ "cursor": options?.params?.["cursor"],
3117
+ "limit": options?.params?.["limit"]
3118
+ }), withResponse(options?.config)(matchStatus({
3119
+ "2xx": decodeSuccess(BillingInvoices200),
3120
+ "401": decodeError("BillingInvoices401", BillingInvoices401),
3121
+ "403": decodeError("BillingInvoices403", BillingInvoices403),
3122
+ "404": decodeError("BillingInvoices404", BillingInvoices404),
3123
+ "503": decodeError("BillingInvoices503", BillingInvoices503),
3124
+ orElse: unexpectedStatus
3125
+ }))))),
3126
+ "tokensExchange": (options) => post("/v1/tokens").pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
3127
+ "2xx": decodeSuccess(TokensExchange200),
3128
+ "401": decodeError("TokensExchange401", TokensExchange401),
3129
+ "503": decodeError("TokensExchange503", TokensExchange503),
3130
+ orElse: unexpectedStatus
3131
+ }))),
3132
+ "signInSendCode": (options) => post("/v1/sign-in/codes").pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
3133
+ "2xx": decodeSuccess(SignInSendCode202),
3134
+ "429": decodeError("SignInSendCode429", SignInSendCode429),
3135
+ orElse: unexpectedStatus
3136
+ }))),
3137
+ "signInVerifyCode": (options) => post("/v1/sign-in/sessions").pipe(bodyJsonUnsafe(options.payload), withResponse(options.config)(matchStatus({
3138
+ "2xx": decodeSuccess(SignInVerifyCode201),
3139
+ "401": decodeError("SignInVerifyCode401", SignInVerifyCode401),
3140
+ "422": decodeError("SignInVerifyCode422", SignInVerifyCode422),
3141
+ "429": decodeError("SignInVerifyCode429", SignInVerifyCode429),
3142
+ orElse: unexpectedStatus
3143
+ }))),
3144
+ "sessionsList": (options) => get("/v1/sessions").pipe(setUrlParams({
3145
+ "cursor": options?.params?.["cursor"],
3146
+ "limit": options?.params?.["limit"]
3147
+ }), withResponse(options?.config)(matchStatus({
3148
+ "2xx": decodeSuccess(SessionsList200),
3149
+ "401": decodeError("SessionsList401", SessionsList401),
3150
+ "503": decodeError("SessionsList503", SessionsList503),
3151
+ orElse: unexpectedStatus
3152
+ }))),
3153
+ "sessionsRevoke": (session, options) => __makePathRequest(del, [session], () => "/v1/sessions/" + __encodePathParam(session)).pipe(flatMap((request) => request.pipe(withResponse(options?.config)(matchStatus({
3154
+ "401": decodeError("SessionsRevoke401", SessionsRevoke401),
3155
+ "404": decodeError("SessionsRevoke404", SessionsRevoke404),
3156
+ "503": decodeError("SessionsRevoke503", SessionsRevoke503),
3157
+ "204": () => void_,
3158
+ orElse: unexpectedStatus
3159
+ }))))),
3160
+ "accountGet": (options) => get("/v1/account").pipe(withResponse(options?.config)(matchStatus({
3161
+ "2xx": decodeSuccess(AccountGet200),
3162
+ "401": decodeError("AccountGet401", AccountGet401),
3163
+ "404": decodeError("AccountGet404", AccountGet404),
3164
+ "503": decodeError("AccountGet503", AccountGet503),
3165
+ orElse: unexpectedStatus
3166
+ }))),
3167
+ "accountDelete": (options) => del("/v1/account").pipe(withResponse(options?.config)(matchStatus({
3168
+ "401": decodeError("AccountDelete401", AccountDelete401),
3169
+ "403": decodeError("AccountDelete403", AccountDelete403),
3170
+ "404": decodeError("AccountDelete404", AccountDelete404),
3171
+ "409": decodeError("AccountDelete409", AccountDelete409),
3172
+ "428": decodeError("AccountDelete428", AccountDelete428),
3173
+ "503": decodeError("AccountDelete503", AccountDelete503),
3174
+ "204": () => void_,
3175
+ orElse: unexpectedStatus
3176
+ })))
3177
+ };
3178
+ };
3179
+ var CloudClientErrorImpl = class extends Error {};
3180
+ const CloudClientError = (tag, cause, response) => new CloudClientErrorImpl({
3181
+ _tag: tag,
3182
+ cause,
3183
+ response,
3184
+ request: response.request
3185
+ });
3186
+ export { mapRequestEffect as _, Deploy as a, LogLine as c, make as d, HttpClient as f, mapRequest as g, make$1 as h, CustomerHostname as i, LogsReadParams as l, layerMergedContext as m, BuildManifest as n, EnvironmentName as o, filterStatusOk as p, ConfirmationRequiredErrorEncoded as r, ExportSnapshot as s, AppName as t, OrganizationName as u, transformResponse as v, isHttpMethod as y };