@scarn/sdk 0.8.14 → 0.8.15
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/{chunk-qq5mk270.js → chunk-7bpy3w3z.js} +17 -1
- package/dist/{chunk-jjxbkv7z.js → chunk-b8hxjwag.js} +1 -1
- package/dist/{chunk-8jfqd6m3.js → chunk-efs789y2.js} +1 -1
- package/dist/{chunk-qesxv9gj.js → chunk-z25n32z0.js} +9 -3
- package/dist/{chunk-tpe834e0.js → chunk-zf4gwg0p.js} +1 -1
- package/dist/client.js +2 -2
- package/dist/contracts/pipeline-document/schema.d.ts +10 -10
- package/dist/defaults/index.d.ts +1 -1
- package/dist/defaults/index.js +3 -2
- package/dist/definitions/automations/index.js +2 -2
- package/dist/definitions/pipelines/index.js +2 -2
- package/dist/definitions/steps/index.js +2 -2
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +13 -2
- package/dist/generated/types.gen.d.ts +693 -181
- package/dist/index.js +4 -4
- package/dist/push/index.js +4 -4
- package/dist/task-plane-client.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
WORK_ITEM_TOP_LEVEL_FIELDS,
|
|
10
10
|
createPipelineDefinitionsClient,
|
|
11
11
|
resolveWorkItemFieldPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-efs789y2.js";
|
|
13
13
|
import {
|
|
14
14
|
after,
|
|
15
15
|
all,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
createScarnClient,
|
|
64
64
|
createTaskPlaneClient
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-7bpy3w3z.js";
|
|
66
66
|
import"./chunk-61jf8b6s.js";
|
|
67
67
|
import"./chunk-cnxaagfj.js";
|
|
68
68
|
import {
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
resolveMcpChecks,
|
|
100
100
|
toStepHandle,
|
|
101
101
|
toStepSpec
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-zf4gwg0p.js";
|
|
103
103
|
import {
|
|
104
104
|
collectEnvPlaceholderNames,
|
|
105
105
|
isEnvPlaceholderValue,
|
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
WorkItemCommentDrafts,
|
|
150
150
|
WorkItemComments,
|
|
151
151
|
WorkItems
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-z25n32z0.js";
|
|
153
153
|
import {
|
|
154
154
|
ARTIFACT_MARKER_SCHEME,
|
|
155
155
|
buildArtifactMarker,
|
package/dist/push/index.js
CHANGED
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
AutomationsApiError,
|
|
8
8
|
createAutomationsClient
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-b8hxjwag.js";
|
|
10
10
|
import {
|
|
11
11
|
assertValidDefinitionSpecs
|
|
12
12
|
} from "../chunk-1yb2h6t9.js";
|
|
13
13
|
import {
|
|
14
14
|
PipelineDefinitionsApiError,
|
|
15
15
|
createPipelineDefinitionsClient
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-efs789y2.js";
|
|
17
17
|
import {
|
|
18
18
|
createStepDefinitionsClient,
|
|
19
19
|
toStepSpec
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-zf4gwg0p.js";
|
|
21
21
|
import"../chunk-e1h021kq.js";
|
|
22
22
|
import"../chunk-63f90zky.js";
|
|
23
23
|
import"../chunk-jj9pezwb.js";
|
|
@@ -26,7 +26,7 @@ import"../chunk-5zsavw98.js";
|
|
|
26
26
|
import"../chunk-4ggr8af6.js";
|
|
27
27
|
import"../chunk-k4y5qt4y.js";
|
|
28
28
|
import"../chunk-xzx08r6y.js";
|
|
29
|
-
import"../chunk-
|
|
29
|
+
import"../chunk-z25n32z0.js";
|
|
30
30
|
import"../chunk-ngy1fdcx.js";
|
|
31
31
|
import"../chunk-y2pv8d6a.js";
|
|
32
32
|
import"../chunk-01nfqm18.js";
|
|
@@ -6,6 +6,13 @@ type TaskRunRef = {
|
|
|
6
6
|
type CompletionBody = PostApiTaskRunsByTaskRunIdCompletionsData["body"];
|
|
7
7
|
export type TaskPlaneClientOptions = {
|
|
8
8
|
headers?: Record<string, string> | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Headers resolved per request and set over {@link headers}, for values
|
|
11
|
+
* that can change during the client's lifetime (e.g. a rotated token).
|
|
12
|
+
*/
|
|
13
|
+
requestHeaders?: (() => Promise<Record<string, string>> | Record<string, string>) | undefined;
|
|
14
|
+
/** Sees every response before it is parsed; throwing fails the call. */
|
|
15
|
+
onResponse?: ((response: Response) => Promise<void> | void) | undefined;
|
|
9
16
|
};
|
|
10
17
|
/**
|
|
11
18
|
* Worker-facing client for the task-run plane (`/api/task-runs/...`): claiming,
|