@pipelex/sdk 0.48.0 → 0.49.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.
Files changed (63) hide show
  1. package/README.md +11 -1
  2. package/dist/artifacts.d.ts +4 -3
  3. package/dist/artifacts.js +20 -14
  4. package/dist/artifacts.js.map +1 -1
  5. package/dist/cli/script.d.ts +1 -1
  6. package/dist/client.d.ts +95 -9
  7. package/dist/client.js +143 -12
  8. package/dist/client.js.map +1 -1
  9. package/dist/codegen-check.d.ts +2 -3
  10. package/dist/codegen-check.js +2 -3
  11. package/dist/codegen-check.js.map +1 -1
  12. package/dist/errors.d.ts +91 -6
  13. package/dist/errors.js +48 -6
  14. package/dist/errors.js.map +1 -1
  15. package/dist/hooks/bundle-gather.d.ts +29 -10
  16. package/dist/hooks/bundle-gather.js +91 -14
  17. package/dist/hooks/bundle-gather.js.map +1 -1
  18. package/dist/hooks/check-core.d.ts +70 -6
  19. package/dist/hooks/check-core.js +188 -29
  20. package/dist/hooks/check-core.js.map +1 -1
  21. package/dist/hooks/claude-mthds-check.d.ts +12 -0
  22. package/dist/hooks/claude-mthds-check.js +12 -0
  23. package/dist/hooks/claude-mthds-check.js.map +1 -1
  24. package/dist/hooks/secret-guard.d.ts +38 -0
  25. package/dist/hooks/secret-guard.js +134 -0
  26. package/dist/hooks/secret-guard.js.map +1 -0
  27. package/dist/hooks/validate-stage.d.ts +5 -3
  28. package/dist/hooks/validate-stage.js +16 -7
  29. package/dist/hooks/validate-stage.js.map +1 -1
  30. package/dist/index.d.ts +4 -3
  31. package/dist/index.js +1 -1
  32. package/dist/index.js.map +1 -1
  33. package/dist/method-trees.d.ts +19 -8
  34. package/dist/method-trees.js +37 -11
  35. package/dist/method-trees.js.map +1 -1
  36. package/dist/node-host/node.d.ts +33 -0
  37. package/dist/node-host/node.js +27 -0
  38. package/dist/node-host/node.js.map +1 -0
  39. package/dist/node-host/unavailable.d.ts +8 -0
  40. package/dist/node-host/unavailable.js +8 -0
  41. package/dist/node-host/unavailable.js.map +1 -0
  42. package/dist/node-host.d.ts +53 -0
  43. package/dist/node-host.js +72 -0
  44. package/dist/node-host.js.map +1 -0
  45. package/dist/prepare-inputs.d.ts +12 -1
  46. package/dist/prepare-inputs.js +26 -3
  47. package/dist/prepare-inputs.js.map +1 -1
  48. package/dist/product-models.d.ts +219 -2
  49. package/dist/product-models.js +2 -2
  50. package/dist/upload.d.ts +43 -20
  51. package/dist/upload.js +128 -24
  52. package/dist/upload.js.map +1 -1
  53. package/dist/version.d.ts +1 -1
  54. package/dist/version.js +1 -1
  55. package/docs/architecture.md +32 -6
  56. package/docs/crate-routes.md +1 -1
  57. package/docs/errors.md +6 -1
  58. package/docs/files.md +88 -0
  59. package/docs/hook-bundle.md +27 -1
  60. package/docs/input-preparation.md +16 -6
  61. package/docs/method-trees.md +2 -2
  62. package/docs/organization-branding.md +102 -0
  63. package/package.json +7 -1
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The Node host as Node resolves it: the one module of the SDK that loads what only Node has,
3
+ * `node:fs/promises`, `node:path`, the `mthds` package's tree lister and `undici`'s `Agent`.
4
+ *
5
+ * Nothing imports this file by its path. `src/node-host.ts` reaches it through `#node-host`, the
6
+ * package's own subpath import, which `package.json` maps to this file under the `node` condition
7
+ * and to `./unavailable.ts` under every other condition set, so a bundler building for a browser
8
+ * or an edge runtime never follows it (see `src/node-host.ts`).
9
+ *
10
+ * The two built-ins load with the host. The `mthds` root entry and `undici` are heavier, and only
11
+ * listing a directory or fetching an artifact needs one of them, so each loads on its first use.
12
+ */
13
+ import * as fs from "node:fs/promises";
14
+ import * as path from "node:path";
15
+ export const nodeHost = {
16
+ fs,
17
+ path,
18
+ async loadTreeLister() {
19
+ const { listMethodTree, MethodTreeError } = await import("mthds");
20
+ return { listMethodTree, MethodTreeError };
21
+ },
22
+ async loadAgent() {
23
+ const { Agent } = await import("undici");
24
+ return Agent;
25
+ },
26
+ };
27
+ //# sourceMappingURL=node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/node-host/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAsBlC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,EAAE;IACF,IAAI;IACJ,KAAK,CAAC,cAAc;QAClB,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC;QAClE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC;IAC7C,CAAC;IACD,KAAK,CAAC,SAAS;QACb,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The Node host as every runtime other than Node resolves it: absent. `package.json` maps
3
+ * `#node-host` to this file under every condition set without `node`, a browser's or an edge
4
+ * runtime's, so the graph a bundler follows there holds no Node built-in, no `undici` and not the
5
+ * `mthds` root entry (see `src/node-host.ts`). It imports nothing at run time.
6
+ */
7
+ import type { NodeHost } from "./node.js";
8
+ export declare const nodeHost: NodeHost | null;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The Node host as every runtime other than Node resolves it: absent. `package.json` maps
3
+ * `#node-host` to this file under every condition set without `node`, a browser's or an edge
4
+ * runtime's, so the graph a bundler follows there holds no Node built-in, no `undici` and not the
5
+ * `mthds` root entry (see `src/node-host.ts`). It imports nothing at run time.
6
+ */
7
+ export const nodeHost = null;
8
+ //# sourceMappingURL=unavailable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unavailable.js","sourceRoot":"","sources":["../../src/node-host/unavailable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,CAAC,MAAM,QAAQ,GAAoB,IAAI,CAAC"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * The Node host: what the SDK uses that only Node has, behind one import that a bundler building
3
+ * for any other runtime never follows. See `docs/architecture.md`, "The Node host".
4
+ *
5
+ * The operations that need Node, reading a local path (`upload.ts`), downloading a run's files and
6
+ * the undici dispatcher of an artifact fetch (`artifacts.ts`), listing a method directory and
7
+ * writing a saved tree to disk (`method-trees.ts`), get it from `loadNodeHost()`, and never import
8
+ * a Node built-in, `undici` or the `mthds` root entry themselves. `loadNodeHost()` imports
9
+ * `#node-host`, the package's own subpath import, which the `imports` map of `package.json`
10
+ * resolves by condition: under `node` to `node-host/node.ts`, which holds those modules, and under
11
+ * every other condition set, a browser's or an edge runtime's, to `node-host/unavailable.ts`,
12
+ * which holds none. A bundler building for the browser therefore follows no Node built-in from the
13
+ * barrel, statically or dynamically, and `tests/browser-bundle.test.ts` bundles the built package
14
+ * for the browser to hold it to that. Node resolves the same import under its own condition, so
15
+ * the Node-only operations work there as they always did. Where the host cannot be had, outside
16
+ * Node, inside it without the `node` condition, or where the import itself fails, `loadNodeHost()`
17
+ * answers why rather than throwing, so each operation refuses with its own class and verdict.
18
+ */
19
+ import type { NodeHost } from "./node-host/node.js";
20
+ export type { NodeHost, TreeLister } from "./node-host/node.js";
21
+ /** True when running under Node (has `process.versions.node`). */
22
+ export declare function isNodeRuntime(): boolean;
23
+ /**
24
+ * The Node host could not be had: why, for a refusal to say, and the error behind it when the
25
+ * host's import failed.
26
+ */
27
+ export interface NodeHostAbsence {
28
+ readonly host: null;
29
+ /**
30
+ * Why, as a clause a refusal puts after its own subject; `null` outside Node, where the
31
+ * operation's own "Node only" refusal is the right one.
32
+ */
33
+ readonly reason: string | null;
34
+ /** The import's own error, when the host's import failed rather than resolving to nothing. */
35
+ readonly cause?: unknown;
36
+ }
37
+ /** The Node host, or why it could not be had. */
38
+ export type NodeHostLoad = {
39
+ readonly host: NodeHost;
40
+ } | NodeHostAbsence;
41
+ /**
42
+ * The Node host, or its absence and why, in three cases: a runtime that is not Node; Node itself
43
+ * where the package was resolved without the `node` export condition, so `#node-host` resolved to
44
+ * the variant holding nothing; and Node where the import of `#node-host` failed, as in a
45
+ * toolchain that does not resolve the `imports` map of `package.json`, whose error is the
46
+ * absence's `cause`. It never throws, so every operation needing Node refuses with its own class
47
+ * and verdict. The runtime is checked first, so nothing is loaded where it is not Node.
48
+ */
49
+ export declare function loadNodeHost(): Promise<NodeHostLoad>;
50
+ /** The `cause` option of a refusal made for `absence`: the import's own error, when there is one. */
51
+ export declare function absenceCause(absence: NodeHostAbsence): {
52
+ cause?: unknown;
53
+ };
@@ -0,0 +1,72 @@
1
+ /**
2
+ * The Node host: what the SDK uses that only Node has, behind one import that a bundler building
3
+ * for any other runtime never follows. See `docs/architecture.md`, "The Node host".
4
+ *
5
+ * The operations that need Node, reading a local path (`upload.ts`), downloading a run's files and
6
+ * the undici dispatcher of an artifact fetch (`artifacts.ts`), listing a method directory and
7
+ * writing a saved tree to disk (`method-trees.ts`), get it from `loadNodeHost()`, and never import
8
+ * a Node built-in, `undici` or the `mthds` root entry themselves. `loadNodeHost()` imports
9
+ * `#node-host`, the package's own subpath import, which the `imports` map of `package.json`
10
+ * resolves by condition: under `node` to `node-host/node.ts`, which holds those modules, and under
11
+ * every other condition set, a browser's or an edge runtime's, to `node-host/unavailable.ts`,
12
+ * which holds none. A bundler building for the browser therefore follows no Node built-in from the
13
+ * barrel, statically or dynamically, and `tests/browser-bundle.test.ts` bundles the built package
14
+ * for the browser to hold it to that. Node resolves the same import under its own condition, so
15
+ * the Node-only operations work there as they always did. Where the host cannot be had, outside
16
+ * Node, inside it without the `node` condition, or where the import itself fails, `loadNodeHost()`
17
+ * answers why rather than throwing, so each operation refuses with its own class and verdict.
18
+ */
19
+ /** True when running under Node (has `process.versions.node`). */
20
+ export function isNodeRuntime() {
21
+ return (typeof process !== "undefined" && process.versions != null && process.versions.node != null);
22
+ }
23
+ /**
24
+ * Inside Node, the package was resolved without the `node` export condition, as a bundle built
25
+ * for the browser or for esbuild's `neutral` platform resolves it, so `#node-host` resolved to the
26
+ * variant holding nothing.
27
+ */
28
+ const NODE_CONDITION_MISSING = 'this copy of @pipelex/sdk runs in Node but was resolved without the "node" export ' +
29
+ "condition, which selects the part of the package that reaches Node's file system. Bundle " +
30
+ 'it for Node (esbuild platform "node", webpack target "node"), add "node" to the bundler\'s ' +
31
+ "conditions (esbuild conditions, webpack resolve.conditionNames, Vite resolve.conditions), " +
32
+ "or leave @pipelex/sdk out of the bundle.";
33
+ /**
34
+ * Inside Node, the import of `#node-host` itself failed: the toolchain loading the package does
35
+ * not resolve the `imports` map of `package.json`, as Jest before 29.4 does not, or the package is
36
+ * installed in part. `detail` is the import's own error message.
37
+ */
38
+ function hostImportFailed(detail) {
39
+ return (`the Node host of @pipelex/sdk could not be loaded (${detail}). The SDK reaches Node's file ` +
40
+ 'system through "#node-host", an entry of the "imports" map of its package.json, and a ' +
41
+ 'toolchain that does not resolve package "imports", such as Jest before 29.4, cannot load ' +
42
+ "it: run under one that does, such as Node's own loader, Jest 29.4 or later or a current " +
43
+ "bundler, or reinstall @pipelex/sdk if it is installed in part.");
44
+ }
45
+ /**
46
+ * The Node host, or its absence and why, in three cases: a runtime that is not Node; Node itself
47
+ * where the package was resolved without the `node` export condition, so `#node-host` resolved to
48
+ * the variant holding nothing; and Node where the import of `#node-host` failed, as in a
49
+ * toolchain that does not resolve the `imports` map of `package.json`, whose error is the
50
+ * absence's `cause`. It never throws, so every operation needing Node refuses with its own class
51
+ * and verdict. The runtime is checked first, so nothing is loaded where it is not Node.
52
+ */
53
+ export async function loadNodeHost() {
54
+ if (!isNodeRuntime())
55
+ return { host: null, reason: null };
56
+ let loaded;
57
+ try {
58
+ loaded = await import("#node-host");
59
+ }
60
+ catch (cause) {
61
+ const detail = cause instanceof Error ? cause.message : String(cause);
62
+ return { host: null, reason: hostImportFailed(detail), cause };
63
+ }
64
+ return loaded.nodeHost === null
65
+ ? { host: null, reason: NODE_CONDITION_MISSING }
66
+ : { host: loaded.nodeHost };
67
+ }
68
+ /** The `cause` option of a refusal made for `absence`: the import's own error, when there is one. */
69
+ export function absenceCause(absence) {
70
+ return absence.cause === undefined ? {} : { cause: absence.cause };
71
+ }
72
+ //# sourceMappingURL=node-host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-host.js","sourceRoot":"","sources":["../src/node-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,kEAAkE;AAClE,MAAM,UAAU,aAAa;IAC3B,OAAO,CACL,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,QAAQ,IAAI,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,CAC5F,CAAC;AACJ,CAAC;AAoBD;;;;GAIG;AACH,MAAM,sBAAsB,GAC1B,oFAAoF;IACpF,2FAA2F;IAC3F,6FAA6F;IAC7F,4FAA4F;IAC5F,0CAA0C,CAAC;AAE7C;;;;GAIG;AACH,SAAS,gBAAgB,CAAC,MAAc;IACtC,OAAO,CACL,sDAAsD,MAAM,iCAAiC;QAC7F,wFAAwF;QACxF,2FAA2F;QAC3F,0FAA0F;QAC1F,gEAAgE,CACjE,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY;IAChC,IAAI,CAAC,aAAa,EAAE;QAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC1D,IAAI,MAA8C,CAAC;IACnD,IAAI,CAAC;QACH,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACtE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjE,CAAC;IACD,OAAO,MAAM,CAAC,QAAQ,KAAK,IAAI;QAC7B,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,sBAAsB,EAAE;QAChD,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;AAChC,CAAC;AAED,qGAAqG;AACrG,MAAM,UAAU,YAAY,CAAC,OAAwB;IACnD,OAAO,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;AACrE,CAAC"}
@@ -33,7 +33,7 @@
33
33
  import type { MethodFiles } from "mthds/protocol";
34
34
  import type { CrateRouteOptions, PipeIORequest, PipeIOResponse } from "./models.js";
35
35
  import type { MethodTreeForm } from "./method-trees.js";
36
- import type { UploadCapableClient, UploadRecord } from "./upload.js";
36
+ import type { UploadCapableClient, UploadKindOptions, UploadRecord } from "./upload.js";
37
37
  /** The shared half of the request: the target pipe and the caller's inputs. */
38
38
  export interface PrepareInputsBase {
39
39
  /**
@@ -65,6 +65,17 @@ export interface PrepareInputsBase {
65
65
  * of its own because the caller named it. It is not sent to the server.
66
66
  */
67
67
  allowUploads?: boolean;
68
+ /**
69
+ * What every file this preparation uploads is recorded as, sent with each upload to
70
+ * `POST /v1/upload`: its `kind` and, for a test file, the `method_id` of the method it is for,
71
+ * such as `{ kind: "test", method_id: "mt_abc123" }` for the inputs a build assistant makes to
72
+ * try a method. Omitted, each upload is a person's file (`uploaded`). It is nested so that its
73
+ * `method_id`, the method a test file is for, never reads as the request's own `method_id`
74
+ * selector. It is checked before any request, as `uploadFile` checks it: `kind: "test"` needs a
75
+ * bare `method_id`, and only a test file names one. A file the upload route refuses for it is a
76
+ * `TestFileRefusedError`.
77
+ */
78
+ upload?: UploadKindOptions;
68
79
  }
69
80
  /**
70
81
  * The method's tree, in exactly one of the forms `pipeIo` takes it (see `CrateRequestBase`):
@@ -34,7 +34,7 @@ import { isValidationItem } from "./error-models.js";
34
34
  import { throwIfAborted } from "./runs.js";
35
35
  import { ApiResponseError, InputPreparationError, InvalidInputValueError, MethodLoadError, UploadNotAllowedError, } from "./errors.js";
36
36
  import { treeShapeFault } from "./method-trees.js";
37
- import { uploadFile } from "./upload.js";
37
+ import { uploadFile, uploadKindFields } from "./upload.js";
38
38
  const PIPELEX_STORAGE_SCHEME = "pipelex-storage://";
39
39
  const HTTP_URL_RE = /^https?:\/\//i;
40
40
  /**
@@ -189,14 +189,21 @@ async function doResolveSource(ctx, source, at) {
189
189
  case "data_url": {
190
190
  const { bytes, contentType } = decodeDataUrl(source.value, at);
191
191
  throwIfAborted(ctx.signal);
192
- const record = await uploadFile(ctx.client, bytes, { contentType, signal: ctx.signal });
192
+ const record = await uploadFile(ctx.client, bytes, {
193
+ contentType,
194
+ signal: ctx.signal,
195
+ ...ctx.uploadAs,
196
+ });
193
197
  ctx.uploads.push(record);
194
198
  return record.uri;
195
199
  }
196
200
  case "local_path":
197
201
  case "bytes": {
198
202
  throwIfAborted(ctx.signal);
199
- const record = await uploadFile(ctx.client, source.value, { signal: ctx.signal });
203
+ const record = await uploadFile(ctx.client, source.value, {
204
+ signal: ctx.signal,
205
+ ...ctx.uploadAs,
206
+ });
200
207
  ctx.uploads.push(record);
201
208
  return record.uri;
202
209
  }
@@ -485,6 +492,20 @@ function resolveAllowUploads(raw) {
485
492
  return raw;
486
493
  throw new InputPreparationError(`Cannot prepare inputs: \`allowUploads\` must be a boolean, got ${raw === null ? "null" : typeof raw}.`);
487
494
  }
495
+ /**
496
+ * The request's `upload`, checked once before any request as `uploadFile` checks its own: absent
497
+ * or `null` sends neither member, and anything that is not an object of `kind` and `method_id`
498
+ * the route would take is an `InputPreparationError` naming `upload.kind` or `upload.method_id`.
499
+ */
500
+ function resolveUploadAs(raw) {
501
+ if (raw === undefined || raw === null)
502
+ return {};
503
+ if (!isPlainObject(raw)) {
504
+ throw new InputPreparationError("Cannot prepare inputs: `upload` must be an object of `kind` and `method_id`, got " +
505
+ `${describeNonMap(raw)}.`);
506
+ }
507
+ return uploadKindFields(raw, "Cannot prepare inputs", "upload.");
508
+ }
488
509
  /**
489
510
  * Ask `POST /v1/pipe-io` for the pipe and its signature, whatever the selector,
490
511
  * and hand back the valid report.
@@ -697,6 +718,7 @@ export async function prepareInputs(client, request) {
697
718
  const selector = resolveSelector(request);
698
719
  const pipeRef = normalizePipeRef(request.pipe_ref);
699
720
  const allowUploads = resolveAllowUploads(request.allowUploads);
721
+ const uploadAs = resolveUploadAs(request.upload);
700
722
  throwIfAborted(request.signal);
701
723
  const report = await fetchSignature(client, selector, pipeRef, request.signal);
702
724
  throwIfAborted(request.signal);
@@ -706,6 +728,7 @@ export async function prepareInputs(client, request) {
706
728
  client,
707
729
  signal: request.signal,
708
730
  allowUploads,
731
+ uploadAs,
709
732
  uploads: [],
710
733
  dedup: new Map(),
711
734
  };
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-inputs.js","sourceRoot":"","sources":["../src/prepare-inputs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAWH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAOrB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,sBAAsB,GAAG,oBAAoB,CAAC;AACpD,MAAM,WAAW,GAAG,eAAe,CAAC;AAEpC;;;;;;GAMG;AACH,MAAM,YAAY,GAAG;IACnB,IA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,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACjE,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,SAAS,CAAC,2DAA2D;QACvE,CAAC;QACD,IAAI,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC;YACpC,2EAA2E;YAC3E,mEAAmE;YACnE,0EAA0E;YAC1E,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YACxF,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QACxD,CAAC;aAAM,CAAC;YACN,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QACrF,CAAC;IACH,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;AACrD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pipelex-product wire models — the snake_case JSON shapes the hosted-product
3
- * routes (`/v1/me`, `/v1/methods` and its examples, `/v1/organizations`, `/v1/billing/*`,
3
+ * routes (`/v1/me`, `/v1/methods` and its examples, `/v1/organizations`, `/v1/branding`, `/v1/billing/*`,
4
4
  * `/v1/pipelex-api-keys`, `/v1/onboarding/submit`,
5
- * `/v1/resolve-storage-url`, `/v1/upload`, `/v1/upload/grant`, `/v1/runs`) speak.
5
+ * `/v1/resolve-storage-url`, `/v1/upload`, `/v1/upload/grant`, `/v1/files`, `/v1/runs`) speak.
6
6
  *
7
7
  * These are the management surface a consumer (today `pipelex-app`) hand-rolls.
8
8
  * The wire is snake_case; any camelCase remap is a consumer's UI concern and
@@ -513,6 +513,93 @@ export interface MembershipsResponse {
513
513
  memberships: Membership[];
514
514
  active_org_feature_flags: string[];
515
515
  }
516
+ /**
517
+ * One colour set: the button, accent and header colours, each `#rrggbb` in lower case, or `null`
518
+ * when not set. The platform always sends all three keys.
519
+ */
520
+ export interface BrandingColors {
521
+ /** The button colour. */
522
+ action: string | null;
523
+ /** The accent colour: links, the active tab, the brand ink. */
524
+ accent: string | null;
525
+ /** The header band's colour. */
526
+ header: string | null;
527
+ }
528
+ /**
529
+ * What the platform recorded about a logo when it accepted it.
530
+ *
531
+ * `content_type` is the type the platform read from the file's own bytes, never the type the
532
+ * upload declared: `image/png`, `image/jpeg`, `image/webp` or `image/svg+xml`. `width` and
533
+ * `height` are the image's size in pixels for a raster, oriented as a browser draws it, and for an
534
+ * SVG its `width` and `height` in pixels when both are in absolute units, which is the size a
535
+ * browser draws it at, else the width and height of its `viewBox`; an SVG's may be fractional.
536
+ * Their ratio is the logo's shape, which sizes its box before the image loads.
537
+ */
538
+ export interface LogoDescriptor {
539
+ /**
540
+ * The platform's own copy of the logo, `pipelex-storage://<org_id>/branding/<uuid>.<ext>`, never
541
+ * the upload URI the write sent: the platform copies a logo it accepts, under a fresh uuid each
542
+ * time, so the same bytes attached again get a new URI. Sending it back unchanged in its slot
543
+ * keeps the logo. `resolveStorageUrl` turns it into a short-lived link to its bytes.
544
+ */
545
+ uri: string;
546
+ /** The SHA-256 of the logo's bytes, 64 lower-case hexadecimal digits: a cache key for them. */
547
+ sha256: string;
548
+ content_type: string;
549
+ width: number;
550
+ height: number;
551
+ }
552
+ /**
553
+ * An organization's branding — what `getBranding` and `updateOrganizationBranding` answer.
554
+ *
555
+ * `colors` is the light set and `dark_colors` the dark one, used in dark mode only: a dark colour
556
+ * that is `null` falls back to the light colour of the same role, and a light one that is `null`
557
+ * to Pipelex's own palette. A logo is `null` when its slot is empty. A personal workspace, or a
558
+ * team that set nothing, answers every colour and logo `null`.
559
+ */
560
+ export interface OrganizationBranding {
561
+ org_id: string;
562
+ /** The organization's display name, the wordmark a client shows when it has no logo. */
563
+ org_name: string;
564
+ colors: BrandingColors;
565
+ dark_colors: BrandingColors;
566
+ /** The square logo, for the organization menu and small headers. */
567
+ square_logo: LogoDescriptor | null;
568
+ /** The wide logo, at least one and a half times as wide as it is tall, for an app's header. */
569
+ wide_logo: LogoDescriptor | null;
570
+ }
571
+ /**
572
+ * Changes to one colour set. A key set to a colour sets it, a key set to `null` clears it, and a
573
+ * key left out keeps its value. A colour is `#rrggbb` in either case, stored in lower case; the
574
+ * platform refuses anything else with a `422` `validation_failed` whose `errors[]` entry names the
575
+ * key, such as `colors.action`.
576
+ */
577
+ export interface BrandingColorsUpdate {
578
+ action?: string | null;
579
+ accent?: string | null;
580
+ header?: string | null;
581
+ }
582
+ /**
583
+ * The body of `updateOrganizationBranding`: every key optional, a value sets it, `null` clears it,
584
+ * and a key left out keeps its value, so `{}` writes nothing and answers the branding as it
585
+ * stands.
586
+ *
587
+ * - `colors` and `dark_colors` take a `BrandingColorsUpdate`, or `null` to clear all three
588
+ * colours of that set.
589
+ * - `square_logo` and `wide_logo` take the `pipelex-storage://` URI of a file the organization
590
+ * uploaded on its own (`requestUploadGrant` or `upload`) to set a new logo, the `uri` the
591
+ * branding answers for that slot to keep it, or `null` to remove it. Any other URI, a run's or
592
+ * a method's file, a stale `branding/` copy or the other slot's logo, is refused as
593
+ * `logo_not_an_upload`, so a logo cannot move between slots by its URI. The platform reads and
594
+ * measures an upload before it accepts it, keeps its own copy under `branding/`, whose URI it
595
+ * answers, and erases the copy a write replaces or clears; the upload is left as it is.
596
+ */
597
+ export interface OrganizationBrandingUpdate {
598
+ colors?: BrandingColorsUpdate | null;
599
+ dark_colors?: BrandingColorsUpdate | null;
600
+ square_logo?: string | null;
601
+ wide_logo?: string | null;
602
+ }
516
603
  export interface SubscriptionResponse {
517
604
  plan: string | null;
518
605
  status: string | null;
@@ -597,11 +684,23 @@ export interface UploadInput {
597
684
  filename: string;
598
685
  data: string;
599
686
  content_type: string;
687
+ /** What the upload is recorded as; `uploaded` when omitted. */
688
+ kind?: UploadKind;
689
+ /**
690
+ * The bare catalog id of the method a `test` file is for, required with `kind: "test"`
691
+ * and refused without it.
692
+ */
693
+ method_id?: string;
600
694
  }
601
695
  export interface UploadedFile {
602
696
  uri: string;
603
697
  filename: string;
604
698
  }
699
+ /**
700
+ * What an upload is recorded as: `uploaded`, a person's file, or `test`, a test input
701
+ * made for one method, which names that method in `method_id`.
702
+ */
703
+ export type UploadKind = "uploaded" | "test";
605
704
  /**
606
705
  * What an upload grant is requested for — `POST /v1/upload/grant`. The file is
607
706
  * described, never sent: its bytes go to storage with the grant, from wherever
@@ -643,6 +742,124 @@ export interface UploadGrant {
643
742
  /** The largest file any grant allows, in bytes (the service's upload cap). */
644
743
  max_bytes: number;
645
744
  }
745
+ /**
746
+ * What made a file: `uploaded`, a person's upload or a run's inline input; `generated`, a file a
747
+ * run made whose result reaches it; `test`, a test input made for one method, which its
748
+ * `origin.method_id` names.
749
+ */
750
+ export type FileKind = "uploaded" | "generated" | "test";
751
+ /**
752
+ * Who or what made a file, as far as the platform knows it. Each kind fills a different part, and
753
+ * the rest is `null`: an upload names the surface it came through; a generated file or a run's
754
+ * inline input names the run, its method and the version or draft that ran; a test file names the
755
+ * surface it came through and the method it was made for. The member a file is attributed to is
756
+ * the record's `created_by`, never repeated here.
757
+ */
758
+ export interface FileOrigin {
759
+ /**
760
+ * The surface an upload came through, as its request's `User-Agent` declared it (`app`, `mcp`,
761
+ * `cli`, `n8n`, `hook`, `sdk`, `raw_http`, and more as surfaces are added); `null` for a run's
762
+ * files. Self-declared, so it is provenance to show, never authority.
763
+ */
764
+ surface: string | null;
765
+ /** The run that made the file; `null` for an upload. */
766
+ run_id: string | null;
767
+ /** The method whose run made the file, or the method a test file was made for; `null` otherwise. */
768
+ method_id: string | null;
769
+ /**
770
+ * The published version number or `"draft"` that ran, for a file made by a saved method's run;
771
+ * `null` otherwise.
772
+ */
773
+ method_version: number | "draft" | null;
774
+ }
775
+ /**
776
+ * One row of a file list, what a list or a picker shows. A list never holds a file a run made
777
+ * along the way, nor an upload whose bytes have not been seen stored.
778
+ */
779
+ export interface FileSummary {
780
+ /** The record's id, `fl_…`. */
781
+ file_id: string;
782
+ /** The `pipelex-storage://` address of the bytes, which a run's inputs take as they take any address. */
783
+ uri: string;
784
+ /** The name shown and used for downloads; it starts as the name the file arrived with and changes with a rename. */
785
+ name: string;
786
+ /** The MIME type the object is stored under. */
787
+ media_type: string;
788
+ /** The format key the list's `format` filter matches: `pdf`, `docx`, `image`, `html` and the rest of the runtime's table. */
789
+ format: string;
790
+ /** The byte size. */
791
+ size: number;
792
+ kind: FileKind;
793
+ origin: FileOrigin;
794
+ /** ISO-8601 instant the record was made. */
795
+ created_at: string;
796
+ /** The member the file is attributed to: the uploader, or the member who started the run that made it. */
797
+ created_by: string;
798
+ }
799
+ /**
800
+ * Query for one page of an organization's files — `GET /v1/files`. Every member is optional, and
801
+ * each is sent only when given, so an empty string is sent and refused by the API rather than
802
+ * dropped into an unfiltered list.
803
+ *
804
+ * `methodId`, `runId` and `createdBy` choose which list serves the page: a method's list, a
805
+ * run's own list, one member's, or, with none of them, the organization's. The other members
806
+ * filter whichever list serves it, after the index read, so a filtered page can hold fewer rows
807
+ * than `limit`, or none, and still carry a `nextCursor`.
808
+ */
809
+ export interface ListFilesQuery {
810
+ /** A case-insensitive search in a file's name and the name it arrived with, applied server-side; at most 200 characters. */
811
+ q?: string;
812
+ /** Only the files of this kind. */
813
+ kind?: FileKind;
814
+ /**
815
+ * Only the files of one of these format keys (`pdf`, `image`, …), sent as one repeated
816
+ * `format=` parameter per value; at most 100. An empty list names no format and is a
817
+ * `RequestArgumentError` before any request, since sent as no parameter it would list every
818
+ * format.
819
+ */
820
+ format?: readonly string[];
821
+ /**
822
+ * Only the files of one of these MIME types (`image/png`, …), sent as one repeated
823
+ * `media_type=` parameter per value; at most 100. An empty list is refused as `format`'s is.
824
+ */
825
+ mediaType?: readonly string[];
826
+ /** The method's list, by its bare catalog id: the files its runs and examples took or made. Sent as `method_id`. */
827
+ methodId?: string;
828
+ /**
829
+ * The run's own list: its final outputs and its inline inputs, in the order of their addresses
830
+ * rather than newest first. Beside `methodId`, the run's list when the method is the run's own,
831
+ * and an empty page otherwise. The files a run took from the organization as inputs are not in
832
+ * it. Sent as `run_id`.
833
+ */
834
+ runId?: string;
835
+ /** One member's files by user id, or `"me"` for the caller's own: their uploads and their runs' outputs. Sent as `created_by`. */
836
+ createdBy?: string;
837
+ /**
838
+ * Only the files created at or after this INSTANT, ISO-8601 with a UTC offset
839
+ * (`2026-10-01T00:00:00Z`), inclusive. A bare date or a naive timestamp is refused by the API
840
+ * with a `400`. Sent as `created_from`.
841
+ */
842
+ createdFrom?: string;
843
+ /** Only the files created at or before this instant. Same rules as `createdFrom`. Sent as `created_to`. */
844
+ createdTo?: string;
845
+ /** Page size, from 1 to 200; the API defaults to 50 and refuses one outside that range with a `422`. */
846
+ limit?: number;
847
+ /** Opaque `nextCursor` from the previous page, bound to the list and the filters that issued it. */
848
+ cursor?: string;
849
+ }
850
+ /**
851
+ * One page of an organization's files, newest first (in the order of their addresses under
852
+ * `runId`).
853
+ *
854
+ * `nextCursor` is opaque — pass it straight back to `listFiles` with the same filters to
855
+ * continue; `null` means this was the last page. A filtered page can hold fewer rows than
856
+ * `limit`, or none, and still carry a `nextCursor`: only a `null` cursor ends the list, and
857
+ * `iterateFiles` keeps following the cursor through such a page. There is deliberately no total.
858
+ */
859
+ export interface FilePage {
860
+ items: FileSummary[];
861
+ nextCursor: string | null;
862
+ }
646
863
  /**
647
864
  * A run's record — the base of `RunDetail`, which `getRunDetail` returns. The run-history list
648
865
  * does not return it: its rows are the slimmer `RunHistoryItem`.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pipelex-product wire models — the snake_case JSON shapes the hosted-product
3
- * routes (`/v1/me`, `/v1/methods` and its examples, `/v1/organizations`, `/v1/billing/*`,
3
+ * routes (`/v1/me`, `/v1/methods` and its examples, `/v1/organizations`, `/v1/branding`, `/v1/billing/*`,
4
4
  * `/v1/pipelex-api-keys`, `/v1/onboarding/submit`,
5
- * `/v1/resolve-storage-url`, `/v1/upload`, `/v1/upload/grant`, `/v1/runs`) speak.
5
+ * `/v1/resolve-storage-url`, `/v1/upload`, `/v1/upload/grant`, `/v1/files`, `/v1/runs`) speak.
6
6
  *
7
7
  * These are the management surface a consumer (today `pipelex-app`) hand-rolls.
8
8
  * The wire is snake_case; any camelCase remap is a consumer's UI concern and