@cat-factory/contracts 0.105.0 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities.d.ts +54 -0
- package/dist/entities.d.ts.map +1 -1
- package/dist/environments.d.ts +36 -0
- package/dist/environments.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/preflights.d.ts +107 -0
- package/dist/preflights.d.ts.map +1 -0
- package/dist/preflights.js +114 -0
- package/dist/preflights.js.map +1 -0
- package/dist/requests.d.ts +130 -4
- package/dist/requests.d.ts.map +1 -1
- package/dist/routes/agent-runs.d.ts +36 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/board.d.ts +310 -4
- package/dist/routes/board.d.ts.map +1 -1
- package/dist/routes/environments.d.ts +18 -0
- package/dist/routes/environments.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +180 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +18 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +90 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/initiative.d.ts +18 -0
- package/dist/routes/initiative.d.ts.map +1 -1
- package/dist/routes/preflights.d.ts +63 -0
- package/dist/routes/preflights.d.ts.map +1 -0
- package/dist/routes/preflights.js +27 -0
- package/dist/routes/preflights.js.map +1 -0
- package/dist/routes/tasks.d.ts +54 -0
- package/dist/routes/tasks.d.ts.map +1 -1
- package/dist/routes/visual-confirm.d.ts +54 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +72 -0
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +36 -0
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/stack-recipes.d.ts +24 -0
- package/dist/stack-recipes.d.ts.map +1 -1
- package/dist/stack-recipes.js +8 -0
- package/dist/stack-recipes.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { urlString } from './primitives.js';
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
// PREFLIGHTS — machine-prerequisite checks with guided remediation. A stack
|
|
5
|
+
// recipe (see `stack-recipes.ts`) declares the checks that apply to it
|
|
6
|
+
// (`prerequisites: PreflightRef[]`); each check is a PROBE that is automated
|
|
7
|
+
// (docker daemon reachable, disk/RAM, registry login state, VPN reachability,
|
|
8
|
+
// mkcert CA, /etc/hosts entries, an env-file secrets marker) plus REMEDIATION
|
|
9
|
+
// that is human instructions — this is exactly where the inherently-manual
|
|
10
|
+
// one-time machine setup (VPN / SSO / Vault / mkcert) lives, as guided steps
|
|
11
|
+
// rather than pretend-automation.
|
|
12
|
+
//
|
|
13
|
+
// The probes are runtime-BOUND to a host (they read the local Docker daemon /
|
|
14
|
+
// filesystem / network), so they run on the local facade — the documented
|
|
15
|
+
// compose exception to runtime symmetry — but the DECLARATION here is fully
|
|
16
|
+
// symmetric + rides the existing `provisioning` blob (no migration). Checks are
|
|
17
|
+
// re-run at provision start: a failed REQUIRED check fails the provision fast
|
|
18
|
+
// with its remediation text in the provisioning log, instead of a mid-provision
|
|
19
|
+
// mystery deep inside a 40-image pull. They are also surfaced in the setup
|
|
20
|
+
// wizard (slice 7) with a live re-check button. See
|
|
21
|
+
// docs/initiatives/stack-recipes-and-shared-stacks.md.
|
|
22
|
+
// ---------------------------------------------------------------------------
|
|
23
|
+
/**
|
|
24
|
+
* The built-in preflight checks (the local-facade probe implementations). Leaf values mirror the
|
|
25
|
+
* check id verbatim so a dynamic i18n/lookup is total:
|
|
26
|
+
* - `docker-daemon` — the host Docker daemon is reachable.
|
|
27
|
+
* - `disk-space` — free disk ≥ `minGib` (a heavy stack wants headroom for images/volumes).
|
|
28
|
+
* - `memory` — total RAM ≥ `minGib` (acme wants ≥16 GiB).
|
|
29
|
+
* - `registry-auth` — `docker login` state for `registry` (detects an expired ECR token BEFORE
|
|
30
|
+
* a 40-image pull fails; we check, never store, credentials).
|
|
31
|
+
* - `tcp-reachable` — a TCP connect to `host:port` succeeds (a VPN-only Vault/ECR host).
|
|
32
|
+
* - `http-reachable` — an HTTP GET of `url` returns the expected status/body.
|
|
33
|
+
* - `mkcert-ca` — the mkcert local CA is present in the trust store.
|
|
34
|
+
* - `hosts-entries` — every hostname in `hostnames` is present in the hosts file.
|
|
35
|
+
* - `env-secrets-marker` — `file` contains `marker` (e.g. acme's `# BOF SECRETS #` block — detects
|
|
36
|
+
* "the Vault step hasn't been run yet" without knowing anything about Vault).
|
|
37
|
+
*/
|
|
38
|
+
export const preflightCheckIdSchema = v.picklist([
|
|
39
|
+
'docker-daemon',
|
|
40
|
+
'disk-space',
|
|
41
|
+
'memory',
|
|
42
|
+
'registry-auth',
|
|
43
|
+
'tcp-reachable',
|
|
44
|
+
'http-reachable',
|
|
45
|
+
'mkcert-ca',
|
|
46
|
+
'hosts-entries',
|
|
47
|
+
'env-secrets-marker',
|
|
48
|
+
]);
|
|
49
|
+
/** A host / registry / path / hostname / marker identifier a preflight probe reads (bounded). */
|
|
50
|
+
const preflightString = v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(500));
|
|
51
|
+
/**
|
|
52
|
+
* Per-check parameters. A single flat bag (every field optional) rather than a per-kind variant —
|
|
53
|
+
* a check reads only the fields it needs, and the preflight service fails a check with a clear
|
|
54
|
+
* "misconfigured" verdict when a required param for its kind is missing. Keeps a hand-authored /
|
|
55
|
+
* analyst-drafted `PreflightRef` lenient to parse.
|
|
56
|
+
*/
|
|
57
|
+
export const preflightParamsSchema = v.object({
|
|
58
|
+
/** `disk-space` / `memory`: the minimum required, in GiB. */
|
|
59
|
+
minGib: v.optional(v.pipe(v.number(), v.minValue(0), v.maxValue(1024))),
|
|
60
|
+
/** `registry-auth`: the registry host to check `docker login` state for. */
|
|
61
|
+
registry: v.optional(preflightString),
|
|
62
|
+
/** `tcp-reachable`: the host to connect to. */
|
|
63
|
+
host: v.optional(preflightString),
|
|
64
|
+
/** `tcp-reachable`: the port to connect to. */
|
|
65
|
+
port: v.optional(v.pipe(v.number(), v.integer(), v.minValue(1), v.maxValue(65535))),
|
|
66
|
+
/** `http-reachable`: the URL to GET. */
|
|
67
|
+
url: v.optional(urlString),
|
|
68
|
+
/** `http-reachable`: require exactly this HTTP status; absent ⇒ any 2xx. */
|
|
69
|
+
expectStatus: v.optional(v.pipe(v.number(), v.integer(), v.minValue(100), v.maxValue(599))),
|
|
70
|
+
/** `http-reachable`: require this substring in the response body. */
|
|
71
|
+
expectBodyContains: v.optional(v.pipe(v.string(), v.maxLength(500))),
|
|
72
|
+
/** `hosts-entries`: the hostnames that must be present in the hosts file. */
|
|
73
|
+
hostnames: v.optional(v.array(preflightString)),
|
|
74
|
+
/** `env-secrets-marker`: the host path to read. */
|
|
75
|
+
file: v.optional(preflightString),
|
|
76
|
+
/** `env-secrets-marker`: the substring that must be present in `file`. */
|
|
77
|
+
marker: v.optional(v.pipe(v.string(), v.minLength(1), v.maxLength(500))),
|
|
78
|
+
});
|
|
79
|
+
/**
|
|
80
|
+
* One preflight check a recipe declares (`stackRecipeSchema.prerequisites`). `check` selects the
|
|
81
|
+
* built-in probe; `params` feeds it; `required` (default true) decides whether a failure BLOCKS the
|
|
82
|
+
* provision (a non-required check is advisory — a warning); `remediation` overrides the built-in
|
|
83
|
+
* instructions; `label` overrides the built-in title.
|
|
84
|
+
*/
|
|
85
|
+
export const preflightRefSchema = v.object({
|
|
86
|
+
check: preflightCheckIdSchema,
|
|
87
|
+
params: v.optional(preflightParamsSchema),
|
|
88
|
+
/** A failing REQUIRED check blocks the provision; a non-required one is advisory. Default true. */
|
|
89
|
+
required: v.optional(v.boolean()),
|
|
90
|
+
/** Operator override of the built-in remediation markdown (shown on a non-pass verdict). */
|
|
91
|
+
remediation: v.optional(v.pipe(v.string(), v.maxLength(4000))),
|
|
92
|
+
/** Operator override of the built-in check title. */
|
|
93
|
+
label: v.optional(preflightString),
|
|
94
|
+
});
|
|
95
|
+
/** A preflight verdict: `pass` (satisfied) / `fail` (blocking when required) / `warn` (advisory). */
|
|
96
|
+
export const preflightStatusSchema = v.picklist(['pass', 'fail', 'warn']);
|
|
97
|
+
/**
|
|
98
|
+
* One evaluated check's outcome — the wizard's checklist row and the provision-start log entry.
|
|
99
|
+
* `remediation` is present on a non-pass verdict (the operator override or the built-in default),
|
|
100
|
+
* carrying the copy-paste instructions to fix it.
|
|
101
|
+
*/
|
|
102
|
+
export const preflightResultSchema = v.object({
|
|
103
|
+
check: preflightCheckIdSchema,
|
|
104
|
+
/** The resolved title (the ref's `label` override, or the built-in title). */
|
|
105
|
+
title: v.string(),
|
|
106
|
+
status: preflightStatusSchema,
|
|
107
|
+
/** Whether a failure of this check blocks the provision (the ref's `required`, defaulted). */
|
|
108
|
+
required: v.boolean(),
|
|
109
|
+
/** A short probe detail (free disk, HTTP status, the connect error). */
|
|
110
|
+
detail: v.optional(v.string()),
|
|
111
|
+
/** The remediation markdown, present on a non-pass verdict. */
|
|
112
|
+
remediation: v.optional(v.string()),
|
|
113
|
+
});
|
|
114
|
+
//# sourceMappingURL=preflights.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preflights.js","sourceRoot":"","sources":["../src/preflights.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,8EAA8E;AAC9E,4EAA4E;AAC5E,uEAAuE;AACvE,6EAA6E;AAC7E,8EAA8E;AAC9E,8EAA8E;AAC9E,2EAA2E;AAC3E,6EAA6E;AAC7E,kCAAkC;AAClC,E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AM,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9D,qDAAqD;IACrD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC;CACnC,CAAC,CAAA;AAGF,qGAAqG;AACrG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAGzE;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,sBAAsB;IAC7B,8EAA8E;IAC9E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,qBAAqB;IAC7B,8FAA8F;IAC9F,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,wEAAwE;IACxE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,+DAA+D;IAC/D,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,CAAA"}
|
package/dist/requests.d.ts
CHANGED
|
@@ -170,6 +170,24 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
170
170
|
}, undefined>, undefined>, undefined>;
|
|
171
171
|
readonly externalNetworks: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
172
172
|
readonly sharedStackRefs: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
173
|
+
readonly prerequisites: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
174
|
+
readonly check: v.PicklistSchema<["docker-daemon", "disk-space", "memory", "registry-auth", "tcp-reachable", "http-reachable", "mkcert-ca", "hosts-entries", "env-secrets-marker"], undefined>;
|
|
175
|
+
readonly params: v.OptionalSchema<v.ObjectSchema<{
|
|
176
|
+
readonly minGib: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1024, undefined>]>, undefined>;
|
|
177
|
+
readonly registry: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
178
|
+
readonly host: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
179
|
+
readonly port: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>, undefined>;
|
|
180
|
+
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
181
|
+
readonly expectStatus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
|
|
182
|
+
readonly expectBodyContains: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
183
|
+
readonly hostnames: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>, undefined>;
|
|
184
|
+
readonly file: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
185
|
+
readonly marker: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
186
|
+
}, undefined>, undefined>;
|
|
187
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
188
|
+
readonly remediation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
189
|
+
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
190
|
+
}, undefined>, undefined>, undefined>;
|
|
173
191
|
readonly setupSteps: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
174
192
|
readonly kind: v.LiteralSchema<"compose-exec", undefined>;
|
|
175
193
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
@@ -435,6 +453,24 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
435
453
|
}, undefined>, undefined>, undefined>;
|
|
436
454
|
readonly externalNetworks: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
437
455
|
readonly sharedStackRefs: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
456
|
+
readonly prerequisites: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
457
|
+
readonly check: v.PicklistSchema<["docker-daemon", "disk-space", "memory", "registry-auth", "tcp-reachable", "http-reachable", "mkcert-ca", "hosts-entries", "env-secrets-marker"], undefined>;
|
|
458
|
+
readonly params: v.OptionalSchema<v.ObjectSchema<{
|
|
459
|
+
readonly minGib: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1024, undefined>]>, undefined>;
|
|
460
|
+
readonly registry: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
461
|
+
readonly host: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
462
|
+
readonly port: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>, undefined>;
|
|
463
|
+
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
464
|
+
readonly expectStatus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
|
|
465
|
+
readonly expectBodyContains: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
466
|
+
readonly hostnames: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>, undefined>;
|
|
467
|
+
readonly file: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
468
|
+
readonly marker: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
469
|
+
}, undefined>, undefined>;
|
|
470
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
471
|
+
readonly remediation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
472
|
+
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
473
|
+
}, undefined>, undefined>, undefined>;
|
|
438
474
|
readonly setupSteps: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
439
475
|
readonly kind: v.LiteralSchema<"compose-exec", undefined>;
|
|
440
476
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
@@ -702,6 +738,24 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
702
738
|
}[] | undefined;
|
|
703
739
|
externalNetworks?: string[] | undefined;
|
|
704
740
|
sharedStackRefs?: string[] | undefined;
|
|
741
|
+
prerequisites?: {
|
|
742
|
+
check: "disk-space" | "docker-daemon" | "env-secrets-marker" | "hosts-entries" | "http-reachable" | "memory" | "mkcert-ca" | "registry-auth" | "tcp-reachable";
|
|
743
|
+
params?: {
|
|
744
|
+
minGib?: number | undefined;
|
|
745
|
+
registry?: string | undefined;
|
|
746
|
+
host?: string | undefined;
|
|
747
|
+
port?: number | undefined;
|
|
748
|
+
url?: string | undefined;
|
|
749
|
+
expectStatus?: number | undefined;
|
|
750
|
+
expectBodyContains?: string | undefined;
|
|
751
|
+
hostnames?: string[] | undefined;
|
|
752
|
+
file?: string | undefined;
|
|
753
|
+
marker?: string | undefined;
|
|
754
|
+
} | undefined;
|
|
755
|
+
required?: boolean | undefined;
|
|
756
|
+
remediation?: string | undefined;
|
|
757
|
+
label?: string | undefined;
|
|
758
|
+
}[] | undefined;
|
|
705
759
|
setupSteps?: ({
|
|
706
760
|
kind: "compose-exec";
|
|
707
761
|
name: string;
|
|
@@ -939,6 +993,24 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
939
993
|
}[] | undefined;
|
|
940
994
|
externalNetworks?: string[] | undefined;
|
|
941
995
|
sharedStackRefs?: string[] | undefined;
|
|
996
|
+
prerequisites?: {
|
|
997
|
+
check: "disk-space" | "docker-daemon" | "env-secrets-marker" | "hosts-entries" | "http-reachable" | "memory" | "mkcert-ca" | "registry-auth" | "tcp-reachable";
|
|
998
|
+
params?: {
|
|
999
|
+
minGib?: number | undefined;
|
|
1000
|
+
registry?: string | undefined;
|
|
1001
|
+
host?: string | undefined;
|
|
1002
|
+
port?: number | undefined;
|
|
1003
|
+
url?: string | undefined;
|
|
1004
|
+
expectStatus?: number | undefined;
|
|
1005
|
+
expectBodyContains?: string | undefined;
|
|
1006
|
+
hostnames?: string[] | undefined;
|
|
1007
|
+
file?: string | undefined;
|
|
1008
|
+
marker?: string | undefined;
|
|
1009
|
+
} | undefined;
|
|
1010
|
+
required?: boolean | undefined;
|
|
1011
|
+
remediation?: string | undefined;
|
|
1012
|
+
label?: string | undefined;
|
|
1013
|
+
}[] | undefined;
|
|
942
1014
|
setupSteps?: ({
|
|
943
1015
|
kind: "compose-exec";
|
|
944
1016
|
name: string;
|
|
@@ -1177,6 +1249,24 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
1177
1249
|
}[] | undefined;
|
|
1178
1250
|
externalNetworks?: string[] | undefined;
|
|
1179
1251
|
sharedStackRefs?: string[] | undefined;
|
|
1252
|
+
prerequisites?: {
|
|
1253
|
+
check: "disk-space" | "docker-daemon" | "env-secrets-marker" | "hosts-entries" | "http-reachable" | "memory" | "mkcert-ca" | "registry-auth" | "tcp-reachable";
|
|
1254
|
+
params?: {
|
|
1255
|
+
minGib?: number | undefined;
|
|
1256
|
+
registry?: string | undefined;
|
|
1257
|
+
host?: string | undefined;
|
|
1258
|
+
port?: number | undefined;
|
|
1259
|
+
url?: string | undefined;
|
|
1260
|
+
expectStatus?: number | undefined;
|
|
1261
|
+
expectBodyContains?: string | undefined;
|
|
1262
|
+
hostnames?: string[] | undefined;
|
|
1263
|
+
file?: string | undefined;
|
|
1264
|
+
marker?: string | undefined;
|
|
1265
|
+
} | undefined;
|
|
1266
|
+
required?: boolean | undefined;
|
|
1267
|
+
remediation?: string | undefined;
|
|
1268
|
+
label?: string | undefined;
|
|
1269
|
+
}[] | undefined;
|
|
1180
1270
|
setupSteps?: ({
|
|
1181
1271
|
kind: "compose-exec";
|
|
1182
1272
|
name: string;
|
|
@@ -1379,7 +1469,7 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
1379
1469
|
key: string;
|
|
1380
1470
|
} | undefined;
|
|
1381
1471
|
valueTemplate?: string | undefined;
|
|
1382
|
-
}> | v.IntegerIssue<number> | v.LiteralIssue | v.MaxLengthIssue<string, 64> | v.MaxLengthIssue<string, 120> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 256> | v.MaxLengthIssue<string, 300> | v.MaxLengthIssue<string, 400> | v.MaxLengthIssue<string, 500> | v.MaxLengthIssue<string, 2000> | v.MaxLengthIssue<string[], 50> | v.MaxLengthIssue<{
|
|
1472
|
+
}> | v.IntegerIssue<number> | v.LiteralIssue | v.MaxLengthIssue<string, 64> | v.MaxLengthIssue<string, 120> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 256> | v.MaxLengthIssue<string, 300> | v.MaxLengthIssue<string, 400> | v.MaxLengthIssue<string, 500> | v.MaxLengthIssue<string, 2000> | v.MaxLengthIssue<string, 4000> | v.MaxLengthIssue<string[], 50> | v.MaxLengthIssue<{
|
|
1383
1473
|
serviceBlockId: string;
|
|
1384
1474
|
description?: string | undefined;
|
|
1385
1475
|
}[], 50> | v.MaxLengthIssue<{
|
|
@@ -1388,7 +1478,7 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
1388
1478
|
name: string;
|
|
1389
1479
|
defaultBranch: string;
|
|
1390
1480
|
connectionId?: number | undefined;
|
|
1391
|
-
}[], 20> | v.MaxValueIssue<number, 599> | v.MaxValueIssue<number, 60000> | v.MaxValueIssue<number, 65535> | v.MaxValueIssue<number, 3600000> | v.MinLengthIssue<string, 1> | v.MinLengthIssue<string[], 1> | v.MinValueIssue<number, 1> | v.MinValueIssue<number, 100> | v.MinValueIssue<number, 250> | v.MinValueIssue<number, 1000> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.RecordIssue | v.RegexIssue<string> | v.StringIssue | v.VariantIssue>;
|
|
1481
|
+
}[], 20> | v.MaxValueIssue<number, 599> | v.MaxValueIssue<number, 1024> | v.MaxValueIssue<number, 60000> | v.MaxValueIssue<number, 65535> | v.MaxValueIssue<number, 3600000> | v.MinLengthIssue<string, 1> | v.MinLengthIssue<string[], 1> | v.MinValueIssue<number, 0> | v.MinValueIssue<number, 1> | v.MinValueIssue<number, 100> | v.MinValueIssue<number, 250> | v.MinValueIssue<number, 1000> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.RecordIssue | v.RegexIssue<string> | v.StringIssue | v.VariantIssue>;
|
|
1392
1482
|
readonly "~types"?: {
|
|
1393
1483
|
readonly input: {
|
|
1394
1484
|
title?: string | undefined;
|
|
@@ -1436,6 +1526,24 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
1436
1526
|
}[] | undefined;
|
|
1437
1527
|
externalNetworks?: string[] | undefined;
|
|
1438
1528
|
sharedStackRefs?: string[] | undefined;
|
|
1529
|
+
prerequisites?: {
|
|
1530
|
+
check: "disk-space" | "docker-daemon" | "env-secrets-marker" | "hosts-entries" | "http-reachable" | "memory" | "mkcert-ca" | "registry-auth" | "tcp-reachable";
|
|
1531
|
+
params?: {
|
|
1532
|
+
minGib?: number | undefined;
|
|
1533
|
+
registry?: string | undefined;
|
|
1534
|
+
host?: string | undefined;
|
|
1535
|
+
port?: number | undefined;
|
|
1536
|
+
url?: string | undefined;
|
|
1537
|
+
expectStatus?: number | undefined;
|
|
1538
|
+
expectBodyContains?: string | undefined;
|
|
1539
|
+
hostnames?: string[] | undefined;
|
|
1540
|
+
file?: string | undefined;
|
|
1541
|
+
marker?: string | undefined;
|
|
1542
|
+
} | undefined;
|
|
1543
|
+
required?: boolean | undefined;
|
|
1544
|
+
remediation?: string | undefined;
|
|
1545
|
+
label?: string | undefined;
|
|
1546
|
+
}[] | undefined;
|
|
1439
1547
|
setupSteps?: ({
|
|
1440
1548
|
kind: "compose-exec";
|
|
1441
1549
|
name: string;
|
|
@@ -1674,6 +1782,24 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
1674
1782
|
}[] | undefined;
|
|
1675
1783
|
externalNetworks?: string[] | undefined;
|
|
1676
1784
|
sharedStackRefs?: string[] | undefined;
|
|
1785
|
+
prerequisites?: {
|
|
1786
|
+
check: "disk-space" | "docker-daemon" | "env-secrets-marker" | "hosts-entries" | "http-reachable" | "memory" | "mkcert-ca" | "registry-auth" | "tcp-reachable";
|
|
1787
|
+
params?: {
|
|
1788
|
+
minGib?: number | undefined;
|
|
1789
|
+
registry?: string | undefined;
|
|
1790
|
+
host?: string | undefined;
|
|
1791
|
+
port?: number | undefined;
|
|
1792
|
+
url?: string | undefined;
|
|
1793
|
+
expectStatus?: number | undefined;
|
|
1794
|
+
expectBodyContains?: string | undefined;
|
|
1795
|
+
hostnames?: string[] | undefined;
|
|
1796
|
+
file?: string | undefined;
|
|
1797
|
+
marker?: string | undefined;
|
|
1798
|
+
} | undefined;
|
|
1799
|
+
required?: boolean | undefined;
|
|
1800
|
+
remediation?: string | undefined;
|
|
1801
|
+
label?: string | undefined;
|
|
1802
|
+
}[] | undefined;
|
|
1677
1803
|
setupSteps?: ({
|
|
1678
1804
|
kind: "compose-exec";
|
|
1679
1805
|
name: string;
|
|
@@ -1877,7 +2003,7 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
1877
2003
|
key: string;
|
|
1878
2004
|
} | undefined;
|
|
1879
2005
|
valueTemplate?: string | undefined;
|
|
1880
|
-
}> | v.IntegerIssue<number> | v.LiteralIssue | v.MaxLengthIssue<string, 64> | v.MaxLengthIssue<string, 120> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 256> | v.MaxLengthIssue<string, 300> | v.MaxLengthIssue<string, 400> | v.MaxLengthIssue<string, 500> | v.MaxLengthIssue<string, 2000> | v.MaxLengthIssue<string[], 50> | v.MaxLengthIssue<{
|
|
2006
|
+
}> | v.IntegerIssue<number> | v.LiteralIssue | v.MaxLengthIssue<string, 64> | v.MaxLengthIssue<string, 120> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 256> | v.MaxLengthIssue<string, 300> | v.MaxLengthIssue<string, 400> | v.MaxLengthIssue<string, 500> | v.MaxLengthIssue<string, 2000> | v.MaxLengthIssue<string, 4000> | v.MaxLengthIssue<string[], 50> | v.MaxLengthIssue<{
|
|
1881
2007
|
serviceBlockId: string;
|
|
1882
2008
|
description?: string | undefined;
|
|
1883
2009
|
}[], 50> | v.MaxLengthIssue<{
|
|
@@ -1886,7 +2012,7 @@ export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
|
1886
2012
|
name: string;
|
|
1887
2013
|
defaultBranch: string;
|
|
1888
2014
|
connectionId?: number | undefined;
|
|
1889
|
-
}[], 20> | v.MaxValueIssue<number, 599> | v.MaxValueIssue<number, 60000> | v.MaxValueIssue<number, 65535> | v.MaxValueIssue<number, 3600000> | v.MinLengthIssue<string, 1> | v.MinLengthIssue<string[], 1> | v.MinValueIssue<number, 1> | v.MinValueIssue<number, 100> | v.MinValueIssue<number, 250> | v.MinValueIssue<number, 1000> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.RecordIssue | v.RegexIssue<string> | v.StringIssue | v.VariantIssue;
|
|
2015
|
+
}[], 20> | v.MaxValueIssue<number, 599> | v.MaxValueIssue<number, 1024> | v.MaxValueIssue<number, 60000> | v.MaxValueIssue<number, 65535> | v.MaxValueIssue<number, 3600000> | v.MinLengthIssue<string, 1> | v.MinLengthIssue<string[], 1> | v.MinValueIssue<number, 0> | v.MinValueIssue<number, 1> | v.MinValueIssue<number, 100> | v.MinValueIssue<number, 250> | v.MinValueIssue<number, 1000> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.RecordIssue | v.RegexIssue<string> | v.StringIssue | v.VariantIssue;
|
|
1890
2016
|
} | undefined;
|
|
1891
2017
|
};
|
|
1892
2018
|
export type UpdateBlockInput = v.InferOutput<typeof updateBlockSchema>;
|
package/dist/requests.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../src/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA0B5B,eAAO,MAAM,qBAAqB;;IAEhC,oFAAoF;;IAEpF;;;;OAIG;;IAEH;;;;OAIG;;aAEH,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE9E,oDAAoD;AACpD,eAAO,MAAM,qBAAqB;;IAEhC,wEAAwE;;aAExE,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,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AAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAUtE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;yDASpC,CAAA;AACD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB;;aAE3B,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEpE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;aAEhC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -484,6 +484,24 @@ export declare const retryAgentRunContract: {
|
|
|
484
484
|
}, undefined>, undefined>, undefined>;
|
|
485
485
|
readonly externalNetworks: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
486
486
|
readonly sharedStackRefs: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
487
|
+
readonly prerequisites: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
488
|
+
readonly check: v.PicklistSchema<["docker-daemon", "disk-space", "memory", "registry-auth", "tcp-reachable", "http-reachable", "mkcert-ca", "hosts-entries", "env-secrets-marker"], undefined>;
|
|
489
|
+
readonly params: v.OptionalSchema<v.ObjectSchema<{
|
|
490
|
+
readonly minGib: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1024, undefined>]>, undefined>;
|
|
491
|
+
readonly registry: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
492
|
+
readonly host: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
493
|
+
readonly port: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>, undefined>;
|
|
494
|
+
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
495
|
+
readonly expectStatus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
|
|
496
|
+
readonly expectBodyContains: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
497
|
+
readonly hostnames: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>, undefined>;
|
|
498
|
+
readonly file: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
499
|
+
readonly marker: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
500
|
+
}, undefined>, undefined>;
|
|
501
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
502
|
+
readonly remediation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
503
|
+
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
504
|
+
}, undefined>, undefined>, undefined>;
|
|
487
505
|
readonly setupSteps: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
488
506
|
readonly kind: v.LiteralSchema<"compose-exec", undefined>;
|
|
489
507
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
@@ -1229,6 +1247,24 @@ export declare const stopAgentRunContract: {
|
|
|
1229
1247
|
}, undefined>, undefined>, undefined>;
|
|
1230
1248
|
readonly externalNetworks: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
1231
1249
|
readonly sharedStackRefs: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
1250
|
+
readonly prerequisites: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1251
|
+
readonly check: v.PicklistSchema<["docker-daemon", "disk-space", "memory", "registry-auth", "tcp-reachable", "http-reachable", "mkcert-ca", "hosts-entries", "env-secrets-marker"], undefined>;
|
|
1252
|
+
readonly params: v.OptionalSchema<v.ObjectSchema<{
|
|
1253
|
+
readonly minGib: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1024, undefined>]>, undefined>;
|
|
1254
|
+
readonly registry: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
1255
|
+
readonly host: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
1256
|
+
readonly port: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>, undefined>;
|
|
1257
|
+
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1258
|
+
readonly expectStatus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 100, undefined>, v.MaxValueAction<number, 599, undefined>]>, undefined>;
|
|
1259
|
+
readonly expectBodyContains: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
1260
|
+
readonly hostnames: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>, undefined>;
|
|
1261
|
+
readonly file: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
1262
|
+
readonly marker: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
1263
|
+
}, undefined>, undefined>;
|
|
1264
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1265
|
+
readonly remediation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
1266
|
+
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
1267
|
+
}, undefined>, undefined>, undefined>;
|
|
1232
1268
|
readonly setupSteps: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
1233
1269
|
readonly kind: v.LiteralSchema<"compose-exec", undefined>;
|
|
1234
1270
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runs.d.ts","sourceRoot":"","sources":["../../src/routes/agent-runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsB5B,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"agent-runs.d.ts","sourceRoot":"","sources":["../../src/routes/agent-runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsB5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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