@scarn/sdk 0.8.19 → 0.8.21
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/auth/api-token-cache.d.ts +24 -0
- package/dist/auth/api-token-source.d.ts +39 -0
- package/dist/auth/authenticated-fetch.d.ts +10 -0
- package/dist/auth/index.d.ts +3 -0
- package/dist/auth/index.js +20 -0
- package/dist/automations/index.js +6 -6
- package/dist/{chunk-pqtd0hr7.js → chunk-08gcnrzh.js} +2 -2
- package/dist/{chunk-2tmrw253.js → chunk-0he2dx5n.js} +5 -5
- package/dist/{chunk-aknfw08j.js → chunk-59arcerk.js} +16 -13
- package/dist/{chunk-61jf8b6s.js → chunk-5dny5jg1.js} +11 -1
- package/dist/{chunk-46wmsgv7.js → chunk-5say64w8.js} +1 -1
- package/dist/{chunk-9we3vqsv.js → chunk-6p340dd4.js} +2 -2
- package/dist/{chunk-19brnwkp.js → chunk-8hsk6f6b.js} +1 -1
- package/dist/{chunk-098740f7.js → chunk-8kzaxz52.js} +1 -1
- package/dist/{chunk-mmy80pec.js → chunk-8tmsvkmj.js} +5 -5
- package/dist/{chunk-e0pt5x0e.js → chunk-aph2js2v.js} +5 -5
- package/dist/chunk-azss2d1n.js +1036 -0
- package/dist/{chunk-t1dq2c2s.js → chunk-gasw078g.js} +5 -5
- package/dist/{chunk-0c60x3v8.js → chunk-h1v6w1fh.js} +5 -5
- package/dist/{chunk-tvjcfh6s.js → chunk-k57h6qke.js} +8 -5
- package/dist/{chunk-x0hjhqrf.js → chunk-mp2rqtcj.js} +1 -1
- package/dist/{chunk-aemxz9r7.js → chunk-mrzn5tq4.js} +1 -1
- package/dist/{chunk-qgkx89eg.js → chunk-nkm31g10.js} +3 -3
- package/dist/{chunk-833ef6dg.js → chunk-p74r4y6j.js} +14 -14
- package/dist/{chunk-p1fs73bd.js → chunk-pwyj6qf3.js} +2 -2
- package/dist/{chunk-evb3hw48.js → chunk-qt81x1pm.js} +7 -4
- package/dist/{chunk-mzj1j0p5.js → chunk-r3sbp2wn.js} +3 -3
- package/dist/{chunk-rphfy0fj.js → chunk-vsp708vw.js} +1 -1
- package/dist/{chunk-yf15kdte.js → chunk-xhpp6qz8.js} +96 -96
- package/dist/{chunk-jj9pezwb.js → chunk-xqfj56m9.js} +43 -3
- package/dist/{chunk-y34zsgsw.js → chunk-y7ac1t9c.js} +1 -1
- package/dist/{chunk-3zp2qtf8.js → chunk-y81cr6tp.js} +38 -14
- package/dist/{chunk-ymywp5ht.js → chunk-zxzvketc.js} +5 -5
- package/dist/client.d.ts +5 -1
- package/dist/client.js +2 -2
- package/dist/connectors/index.js +4 -4
- package/dist/contracts/artifacts.js +2 -2
- package/dist/contracts/automation-document/index.js +3 -3
- package/dist/contracts/pipeline-document/index.js +5 -3
- package/dist/contracts/pipeline-document/routes.d.ts +9 -0
- package/dist/contracts/pipeline-document/schema.d.ts +40 -1
- package/dist/contracts/step-artifact-submissions.js +2 -2
- package/dist/contracts/work-item-changes.js +1 -1
- package/dist/create-api-client.d.ts +11 -0
- package/dist/defaults/index.js +32 -871
- package/dist/defaults/load-push-defaults.d.ts +11 -4
- package/dist/defaults/project-ref.d.ts +2 -4
- package/dist/definitions/automations/automations-client.d.ts +2 -1
- package/dist/definitions/automations/index.js +3 -3
- package/dist/definitions/environments/environments-client.d.ts +2 -1
- package/dist/definitions/environments/index.js +10 -10
- package/dist/definitions/pipelines/index.js +3 -3
- package/dist/definitions/pipelines/pipeline-definitions-client.d.ts +2 -1
- package/dist/definitions/steps/index.js +14 -14
- package/dist/definitions/steps/step-definitions-client.d.ts +2 -1
- package/dist/definitions/validation/index.js +10 -10
- package/dist/devcontainer-config-path.js +2 -2
- package/dist/env-vars.js +2 -2
- package/dist/environment.js +7 -7
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +5 -1
- package/dist/generated/types.gen.d.ts +298 -0
- package/dist/health-checks.js +2 -2
- package/dist/index.js +23 -23
- package/dist/managed-runtimes.js +2 -2
- package/dist/opencode-mcp.js +3 -3
- package/dist/pipelines/index.d.ts +1 -1
- package/dist/pipelines/index.js +6 -6
- package/dist/pipelines/model.d.ts +10 -4
- package/dist/pipelines/types.d.ts +13 -1
- package/dist/push/index.js +43 -42
- package/dist/push/push-from-directory.d.ts +6 -1
- package/dist/repo-config.js +2 -2
- package/dist/resolve-environment.js +8 -8
- package/dist/task-plane-client.d.ts +6 -0
- package/package.json +6 -2
|
@@ -36,13 +36,47 @@ function assertOpen(data, method) {
|
|
|
36
36
|
function isTargetSpec(value) {
|
|
37
37
|
return typeof value === "function" || nodeOf(value) !== undefined || targetOf(value) !== undefined || eachOf(value) !== undefined || chainOf(value) !== undefined;
|
|
38
38
|
}
|
|
39
|
+
function overridableOf(id, value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (!value) {
|
|
44
|
+
throw new AuthoringError(`.next() for "${id}": "overridable" can only be true; leave it out instead`);
|
|
45
|
+
}
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function otherwiseData(id, otherwise) {
|
|
49
|
+
if (otherwise === undefined) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (isTargetSpec(otherwise)) {
|
|
53
|
+
return { target: otherwise, label: undefined, overridable: undefined };
|
|
54
|
+
}
|
|
55
|
+
const options = otherwise;
|
|
56
|
+
if (options.to === undefined) {
|
|
57
|
+
throw new AuthoringError(`.next() for "${id}": "otherwise" has no "to"`);
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
target: options.to,
|
|
61
|
+
label: options.label,
|
|
62
|
+
overridable: overridableOf(id, options.overridable)
|
|
63
|
+
};
|
|
64
|
+
}
|
|
39
65
|
function nextData(id, arg) {
|
|
40
66
|
const site = captureSite();
|
|
41
67
|
if (isTargetSpec(arg) || !("routes" in arg)) {
|
|
42
68
|
return {
|
|
43
69
|
match: undefined,
|
|
44
|
-
routes: [
|
|
70
|
+
routes: [
|
|
71
|
+
{
|
|
72
|
+
when: undefined,
|
|
73
|
+
target: arg,
|
|
74
|
+
label: undefined,
|
|
75
|
+
overridable: undefined
|
|
76
|
+
}
|
|
77
|
+
],
|
|
45
78
|
otherwise: undefined,
|
|
79
|
+
overridable: undefined,
|
|
46
80
|
site
|
|
47
81
|
};
|
|
48
82
|
}
|
|
@@ -57,12 +91,18 @@ function nextData(id, arg) {
|
|
|
57
91
|
if (route.to === undefined) {
|
|
58
92
|
throw new AuthoringError(`.next() for "${id}": route ${String(index)} has no "to"`);
|
|
59
93
|
}
|
|
60
|
-
return {
|
|
94
|
+
return {
|
|
95
|
+
when: route.when,
|
|
96
|
+
target: route.to,
|
|
97
|
+
label: route.label,
|
|
98
|
+
overridable: overridableOf(id, route.overridable)
|
|
99
|
+
};
|
|
61
100
|
});
|
|
62
101
|
return {
|
|
63
102
|
match: options.match === "all" ? "all" : undefined,
|
|
64
103
|
routes,
|
|
65
|
-
otherwise: options.otherwise,
|
|
104
|
+
otherwise: otherwiseData(id, options.otherwise),
|
|
105
|
+
overridable: overridableOf(id, options.overridable),
|
|
66
106
|
site
|
|
67
107
|
};
|
|
68
108
|
}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
// src/generated/core/bodySerializer.gen.ts
|
|
3
|
+
var jsonBodySerializer = {
|
|
4
|
+
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
5
|
+
};
|
|
6
|
+
// src/generated/core/params.gen.ts
|
|
7
|
+
var extraPrefixesMap = {
|
|
8
|
+
$body_: "body",
|
|
9
|
+
$headers_: "headers",
|
|
10
|
+
$path_: "path",
|
|
11
|
+
$query_: "query"
|
|
12
|
+
};
|
|
13
|
+
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
2
14
|
// src/generated/core/serverSentEvents.gen.ts
|
|
3
15
|
var createSseClient = ({
|
|
4
16
|
onRequest,
|
|
@@ -363,11 +375,6 @@ var getAuthToken = async (auth, callback) => {
|
|
|
363
375
|
return token;
|
|
364
376
|
};
|
|
365
377
|
|
|
366
|
-
// src/generated/core/bodySerializer.gen.ts
|
|
367
|
-
var jsonBodySerializer = {
|
|
368
|
-
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
369
|
-
};
|
|
370
|
-
|
|
371
378
|
// src/generated/client/utils.gen.ts
|
|
372
379
|
var createQuerySerializer = ({
|
|
373
380
|
parameters = {},
|
|
@@ -791,14 +798,6 @@ var createClient = (config = {}) => {
|
|
|
791
798
|
trace: makeMethodFn("TRACE")
|
|
792
799
|
};
|
|
793
800
|
};
|
|
794
|
-
// src/generated/core/params.gen.ts
|
|
795
|
-
var extraPrefixesMap = {
|
|
796
|
-
$body_: "body",
|
|
797
|
-
$headers_: "headers",
|
|
798
|
-
$path_: "path",
|
|
799
|
-
$query_: "query"
|
|
800
|
-
};
|
|
801
|
-
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
802
801
|
// src/generated/client.gen.ts
|
|
803
802
|
var client = createClient(createConfig());
|
|
804
803
|
|
|
@@ -1268,6 +1267,16 @@ class PipelineExecutions extends HeyApiClient {
|
|
|
1268
1267
|
rerunPipelineExecutionVisit(options) {
|
|
1269
1268
|
return (options.client ?? this.client).post({ url: "/api/pipeline-executions/{pipelineExecutionId}/visits/{visitId}/rerun", ...options });
|
|
1270
1269
|
}
|
|
1270
|
+
overrulePipelineExecutionRoute(options) {
|
|
1271
|
+
return (options.client ?? this.client).post({
|
|
1272
|
+
url: "/api/pipeline-executions/{pipelineExecutionId}/visits/{visitId}/route",
|
|
1273
|
+
...options,
|
|
1274
|
+
headers: {
|
|
1275
|
+
"Content-Type": "application/json",
|
|
1276
|
+
...options.headers
|
|
1277
|
+
}
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1271
1280
|
answerQuestion(options) {
|
|
1272
1281
|
return (options.client ?? this.client).post({
|
|
1273
1282
|
url: "/api/pipeline-executions/{pipelineExecutionId}/questions/{questionId}/answer",
|
|
@@ -1947,4 +1956,19 @@ class ScarnClient extends HeyApiClient {
|
|
|
1947
1956
|
}
|
|
1948
1957
|
}
|
|
1949
1958
|
|
|
1950
|
-
|
|
1959
|
+
// src/create-api-client.ts
|
|
1960
|
+
function createApiClient(baseUrl, options) {
|
|
1961
|
+
const client2 = createClient({
|
|
1962
|
+
baseUrl,
|
|
1963
|
+
headers: options?.headers,
|
|
1964
|
+
fetch: options?.fetch
|
|
1965
|
+
});
|
|
1966
|
+
client2.interceptors.error.use((error, response) => {
|
|
1967
|
+
if (response === undefined)
|
|
1968
|
+
throw error;
|
|
1969
|
+
return error;
|
|
1970
|
+
});
|
|
1971
|
+
return client2;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
export { Api, Projects, StepDefinitions, Tasks, TaskRuns, PipelineDefinitions, Automations, PipelineExecutions, WorkItems, Conversations, WorkItemComments, WorkItemCommentDrafts, WorkItemBlocks, ProjectArtifacts, UserNotifications, Inbox, NotificationRules, ProjectIntegrations, GitHubIntegrations, ProjectInvites, Billing, Username, Secrets, ProjectSecrets, Environments, Connectors, ScarnClient, createApiClient };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
PipelineDefinitions,
|
|
4
|
-
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
createApiClient
|
|
5
|
+
} from "./chunk-y81cr6tp.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_external
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-xhpp6qz8.js";
|
|
9
9
|
|
|
10
10
|
// src/definitions/pipelines/pipeline-definitions-client.ts
|
|
11
11
|
var pipelineDocumentIssueSchema = exports_external.object({
|
|
@@ -40,8 +40,8 @@ function unwrap(result) {
|
|
|
40
40
|
}
|
|
41
41
|
return result.data;
|
|
42
42
|
}
|
|
43
|
-
function createPipelineDefinitionsClient(baseUrl) {
|
|
44
|
-
const client =
|
|
43
|
+
function createPipelineDefinitionsClient(baseUrl, options) {
|
|
44
|
+
const client = createApiClient(baseUrl, { fetch: options?.fetch });
|
|
45
45
|
return buildPipelineDefinitionsClient(new PipelineDefinitions({ client }));
|
|
46
46
|
}
|
|
47
47
|
var buildPipelineDefinitionsClient = (pipelineDefinitions) => ({
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ScarnClient } from "./generated";
|
|
2
2
|
export * from "./task-plane-client";
|
|
3
3
|
export * from "./generated/";
|
|
4
|
-
export
|
|
4
|
+
export type ScarnClientOptions = {
|
|
5
|
+
/** Replaces `fetch` for every request, e.g. one from `createAuthenticatedFetch`. */
|
|
6
|
+
fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
|
|
7
|
+
};
|
|
8
|
+
export declare function createScarnClient(baseUrl: string, options?: ScarnClientOptions): ScarnClient;
|
package/dist/client.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createScarnClient,
|
|
4
4
|
createTaskPlaneClient
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-k57h6qke.js";
|
|
6
6
|
import {
|
|
7
7
|
Api,
|
|
8
8
|
Automations,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
WorkItemCommentDrafts,
|
|
32
32
|
WorkItemComments,
|
|
33
33
|
WorkItems
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-y81cr6tp.js";
|
|
35
35
|
import"./chunk-y64skrwp.js";
|
|
36
36
|
export {
|
|
37
37
|
Api,
|
package/dist/connectors/index.js
CHANGED
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
listConnectorSummaries,
|
|
17
17
|
mergeConnectorMcpServers,
|
|
18
18
|
validateConnectorCatalog
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import"../chunk-
|
|
21
|
-
import"../chunk-
|
|
22
|
-
import"../chunk-
|
|
19
|
+
} from "../chunk-nkm31g10.js";
|
|
20
|
+
import"../chunk-08gcnrzh.js";
|
|
21
|
+
import"../chunk-mrzn5tq4.js";
|
|
22
|
+
import"../chunk-xhpp6qz8.js";
|
|
23
23
|
import"../chunk-y64skrwp.js";
|
|
24
24
|
export {
|
|
25
25
|
CONNECTOR_CATALOG,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
isEmbeddableArtifactExtension,
|
|
11
11
|
matchArtifactNode,
|
|
12
12
|
readArtifactKeyword
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import"../chunk-
|
|
13
|
+
} from "../chunk-8hsk6f6b.js";
|
|
14
|
+
import"../chunk-xhpp6qz8.js";
|
|
15
15
|
import"../chunk-y64skrwp.js";
|
|
16
16
|
export {
|
|
17
17
|
ARTIFACT_SCHEMA_KEYWORD,
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
automationTargetSchema,
|
|
14
14
|
eventHasChild,
|
|
15
15
|
scopeOfEvent
|
|
16
|
-
} from "../../chunk-
|
|
17
|
-
import"../../chunk-
|
|
18
|
-
import"../../chunk-
|
|
16
|
+
} from "../../chunk-pwyj6qf3.js";
|
|
17
|
+
import"../../chunk-qt81x1pm.js";
|
|
18
|
+
import"../../chunk-xhpp6qz8.js";
|
|
19
19
|
import"../../chunk-y64skrwp.js";
|
|
20
20
|
export {
|
|
21
21
|
AUTOMATION_EVENTS,
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
deepEqual,
|
|
4
4
|
isJsonObject,
|
|
5
|
+
isRouteOverridable,
|
|
5
6
|
jsonPointer,
|
|
6
7
|
routeAt,
|
|
7
8
|
routeEntries
|
|
8
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-5dny5jg1.js";
|
|
9
10
|
import {
|
|
10
11
|
ALIAS_PATTERN,
|
|
11
12
|
COMPARISON_OPERATORS,
|
|
@@ -40,7 +41,7 @@ import {
|
|
|
40
41
|
succeedNodeSchema,
|
|
41
42
|
toleratedFailuresSchema,
|
|
42
43
|
waitNodeSchema
|
|
43
|
-
} from "../../chunk-
|
|
44
|
+
} from "../../chunk-qt81x1pm.js";
|
|
44
45
|
import {
|
|
45
46
|
BUILT_IN_ERRORS,
|
|
46
47
|
CONVERSATION_RESULT_SCHEMA,
|
|
@@ -50,7 +51,7 @@ import {
|
|
|
50
51
|
WAIT_ERRORS,
|
|
51
52
|
decisionResultSchema
|
|
52
53
|
} from "../../chunk-01nfqm18.js";
|
|
53
|
-
import"../../chunk-
|
|
54
|
+
import"../../chunk-xhpp6qz8.js";
|
|
54
55
|
import"../../chunk-y64skrwp.js";
|
|
55
56
|
export {
|
|
56
57
|
ALIAS_PATTERN,
|
|
@@ -81,6 +82,7 @@ export {
|
|
|
81
82
|
eachSchema,
|
|
82
83
|
failNodeSchema,
|
|
83
84
|
isJsonObject,
|
|
85
|
+
isRouteOverridable,
|
|
84
86
|
jsonPointer,
|
|
85
87
|
listSchema,
|
|
86
88
|
literalSchema,
|
|
@@ -14,3 +14,12 @@ export interface RouteEntry {
|
|
|
14
14
|
export declare function routeEntries(next: Next | undefined): RouteEntry[];
|
|
15
15
|
/** The route a `kind` and `index` name, if `next` has it. */
|
|
16
16
|
export declare function routeAt(next: Next | undefined, kind: RouteKind, index: number): Route | Otherwise | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Whether a person may overrule a visit that took this route: the route's own
|
|
19
|
+
* `overridable`, else `next.overridable`. Under `match: "all"` a route without
|
|
20
|
+
* `when` always runs, so it is never overridable.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isRouteOverridable(next: Next | undefined, transition: {
|
|
23
|
+
kind: RouteKind;
|
|
24
|
+
index: number;
|
|
25
|
+
}): boolean;
|
|
@@ -99,9 +99,12 @@ export declare const routeSchema: z.ZodObject<{
|
|
|
99
99
|
}, z.core.$strict>]>>;
|
|
100
100
|
}, z.core.$strict>>;
|
|
101
101
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
102
|
+
label: z.ZodOptional<z.ZodString>;
|
|
103
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
102
104
|
}, z.core.$strict>;
|
|
103
105
|
/** The route taken when no route matched. It has no `when`. */
|
|
104
106
|
export declare const otherwiseSchema: z.ZodObject<{
|
|
107
|
+
label: z.ZodOptional<z.ZodString>;
|
|
105
108
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
106
109
|
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
107
110
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -121,8 +124,9 @@ export declare const otherwiseSchema: z.ZodObject<{
|
|
|
121
124
|
pipeline: z.ZodOptional<z.ZodString>;
|
|
122
125
|
to: z.ZodString;
|
|
123
126
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
127
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
124
128
|
}, z.core.$strict>;
|
|
125
|
-
/** The pipeline's first route. It can't split or merge. */
|
|
129
|
+
/** The pipeline's first route. It can't split or merge, and has no visit to overrule. */
|
|
126
130
|
export declare const startSchema: z.ZodObject<{
|
|
127
131
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
128
132
|
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
@@ -175,8 +179,11 @@ export declare const nextSchema: z.ZodObject<{
|
|
|
175
179
|
}, z.core.$strict>]>>;
|
|
176
180
|
}, z.core.$strict>>;
|
|
177
181
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
182
|
+
label: z.ZodOptional<z.ZodString>;
|
|
183
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
178
184
|
}, z.core.$strict>>;
|
|
179
185
|
otherwise: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
label: z.ZodOptional<z.ZodString>;
|
|
180
187
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
181
188
|
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
182
189
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -196,7 +203,9 @@ export declare const nextSchema: z.ZodObject<{
|
|
|
196
203
|
pipeline: z.ZodOptional<z.ZodString>;
|
|
197
204
|
to: z.ZodString;
|
|
198
205
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
206
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
199
207
|
}, z.core.$strict>>;
|
|
208
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
200
209
|
}, z.core.$strict>;
|
|
201
210
|
export declare const retrySchema: z.ZodObject<{
|
|
202
211
|
on: z.ZodArray<z.ZodString>;
|
|
@@ -247,8 +256,11 @@ export declare const stepNodeSchema: z.ZodObject<{
|
|
|
247
256
|
}, z.core.$strict>]>>;
|
|
248
257
|
}, z.core.$strict>>;
|
|
249
258
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
259
|
+
label: z.ZodOptional<z.ZodString>;
|
|
260
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
250
261
|
}, z.core.$strict>>;
|
|
251
262
|
otherwise: z.ZodOptional<z.ZodObject<{
|
|
263
|
+
label: z.ZodOptional<z.ZodString>;
|
|
252
264
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
253
265
|
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
254
266
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -268,7 +280,9 @@ export declare const stepNodeSchema: z.ZodObject<{
|
|
|
268
280
|
pipeline: z.ZodOptional<z.ZodString>;
|
|
269
281
|
to: z.ZodString;
|
|
270
282
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
283
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
271
284
|
}, z.core.$strict>>;
|
|
285
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
272
286
|
}, z.core.$strict>>;
|
|
273
287
|
retry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
274
288
|
on: z.ZodArray<z.ZodString>;
|
|
@@ -350,8 +364,11 @@ export declare const waitNodeSchema: z.ZodObject<{
|
|
|
350
364
|
}, z.core.$strict>]>>;
|
|
351
365
|
}, z.core.$strict>>;
|
|
352
366
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
367
|
+
label: z.ZodOptional<z.ZodString>;
|
|
368
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
353
369
|
}, z.core.$strict>>;
|
|
354
370
|
otherwise: z.ZodOptional<z.ZodObject<{
|
|
371
|
+
label: z.ZodOptional<z.ZodString>;
|
|
355
372
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
356
373
|
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
357
374
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -371,7 +388,9 @@ export declare const waitNodeSchema: z.ZodObject<{
|
|
|
371
388
|
pipeline: z.ZodOptional<z.ZodString>;
|
|
372
389
|
to: z.ZodString;
|
|
373
390
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
391
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
374
392
|
}, z.core.$strict>>;
|
|
393
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
375
394
|
}, z.core.$strict>>;
|
|
376
395
|
catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
377
396
|
on: z.ZodArray<z.ZodString>;
|
|
@@ -428,8 +447,11 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
428
447
|
}, z.core.$strict>]>>;
|
|
429
448
|
}, z.core.$strict>>;
|
|
430
449
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
450
|
+
label: z.ZodOptional<z.ZodString>;
|
|
451
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
431
452
|
}, z.core.$strict>>;
|
|
432
453
|
otherwise: z.ZodOptional<z.ZodObject<{
|
|
454
|
+
label: z.ZodOptional<z.ZodString>;
|
|
433
455
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
434
456
|
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
435
457
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -449,7 +471,9 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
449
471
|
pipeline: z.ZodOptional<z.ZodString>;
|
|
450
472
|
to: z.ZodString;
|
|
451
473
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
474
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
452
475
|
}, z.core.$strict>>;
|
|
476
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
453
477
|
}, z.core.$strict>>;
|
|
454
478
|
retry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
455
479
|
on: z.ZodArray<z.ZodString>;
|
|
@@ -517,8 +541,11 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
517
541
|
}, z.core.$strict>]>>;
|
|
518
542
|
}, z.core.$strict>>;
|
|
519
543
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
544
|
+
label: z.ZodOptional<z.ZodString>;
|
|
545
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
520
546
|
}, z.core.$strict>>;
|
|
521
547
|
otherwise: z.ZodOptional<z.ZodObject<{
|
|
548
|
+
label: z.ZodOptional<z.ZodString>;
|
|
522
549
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
523
550
|
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
524
551
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -538,7 +565,9 @@ export declare const nodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
538
565
|
pipeline: z.ZodOptional<z.ZodString>;
|
|
539
566
|
to: z.ZodString;
|
|
540
567
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
568
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
541
569
|
}, z.core.$strict>>;
|
|
570
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
542
571
|
}, z.core.$strict>>;
|
|
543
572
|
catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
544
573
|
on: z.ZodArray<z.ZodString>;
|
|
@@ -621,8 +650,11 @@ export declare const pipelineDocumentSchema: z.ZodObject<{
|
|
|
621
650
|
}, z.core.$strict>]>>;
|
|
622
651
|
}, z.core.$strict>>;
|
|
623
652
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
653
|
+
label: z.ZodOptional<z.ZodString>;
|
|
654
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
624
655
|
}, z.core.$strict>>;
|
|
625
656
|
otherwise: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
label: z.ZodOptional<z.ZodString>;
|
|
626
658
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
627
659
|
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
628
660
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -642,7 +674,9 @@ export declare const pipelineDocumentSchema: z.ZodObject<{
|
|
|
642
674
|
pipeline: z.ZodOptional<z.ZodString>;
|
|
643
675
|
to: z.ZodString;
|
|
644
676
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
677
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
645
678
|
}, z.core.$strict>>;
|
|
679
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
646
680
|
}, z.core.$strict>>;
|
|
647
681
|
retry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
648
682
|
on: z.ZodArray<z.ZodString>;
|
|
@@ -710,8 +744,11 @@ export declare const pipelineDocumentSchema: z.ZodObject<{
|
|
|
710
744
|
}, z.core.$strict>]>>;
|
|
711
745
|
}, z.core.$strict>>;
|
|
712
746
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
747
|
+
label: z.ZodOptional<z.ZodString>;
|
|
748
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
713
749
|
}, z.core.$strict>>;
|
|
714
750
|
otherwise: z.ZodOptional<z.ZodObject<{
|
|
751
|
+
label: z.ZodOptional<z.ZodString>;
|
|
715
752
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
716
753
|
value: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
717
754
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -731,7 +768,9 @@ export declare const pipelineDocumentSchema: z.ZodObject<{
|
|
|
731
768
|
pipeline: z.ZodOptional<z.ZodString>;
|
|
732
769
|
to: z.ZodString;
|
|
733
770
|
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
771
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
734
772
|
}, z.core.$strict>>;
|
|
773
|
+
overridable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
735
774
|
}, z.core.$strict>>;
|
|
736
775
|
catch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
737
776
|
on: z.ZodArray<z.ZodString>;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
artifactAcceptsFile,
|
|
4
4
|
artifactFileExtension,
|
|
5
5
|
findArtifactFields
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-8hsk6f6b.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_external
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-xhpp6qz8.js";
|
|
10
10
|
import"../chunk-y64skrwp.js";
|
|
11
11
|
|
|
12
12
|
// src/contracts/step-artifact-submissions.ts
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createClient } from "./generated/client";
|
|
2
|
+
/**
|
|
3
|
+
* The generated `createClient`, configured so that an error thrown by `fetch`
|
|
4
|
+
* itself (a failed token mint, a network error) fails the call as is instead of
|
|
5
|
+
* being folded into `{ error: {} }`. Errors carried by a response are left to
|
|
6
|
+
* the caller as usual.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createApiClient(baseUrl: string, options?: {
|
|
9
|
+
headers?: Record<string, string> | undefined;
|
|
10
|
+
fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
|
|
11
|
+
}): ReturnType<typeof createClient>;
|