@valentinkolb/filegate 2.4.0 → 2.5.3
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/README.md +109 -512
- package/dist/activity.d.ts +15 -0
- package/dist/activity.d.ts.map +1 -0
- package/dist/activity.js +21 -0
- package/dist/activity.js.map +1 -0
- package/dist/capabilities.d.ts +9 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +11 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/client.d.ts +37 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +77 -0
- package/dist/client.js.map +1 -0
- package/dist/core.d.ts +26 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +58 -0
- package/dist/core.js.map +1 -0
- package/dist/downloads.d.ts +9 -0
- package/dist/downloads.d.ts.map +1 -0
- package/dist/downloads.js +11 -0
- package/dist/downloads.js.map +1 -0
- package/dist/errors.d.ts +18 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +42 -0
- package/dist/errors.js.map +1 -0
- package/dist/index-client.d.ts +17 -0
- package/dist/index-client.d.ts.map +1 -0
- package/dist/index-client.js +29 -0
- package/dist/index-client.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes.d.ts +27 -0
- package/dist/nodes.d.ts.map +1 -0
- package/dist/nodes.js +71 -0
- package/dist/nodes.js.map +1 -0
- package/dist/paths.d.ts +45 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +71 -0
- package/dist/paths.js.map +1 -0
- package/dist/search.d.ts +17 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +25 -0
- package/dist/search.js.map +1 -0
- package/dist/stats.d.ts +9 -0
- package/dist/stats.d.ts.map +1 -0
- package/dist/stats.js +11 -0
- package/dist/stats.js.map +1 -0
- package/dist/transfers.d.ts +9 -0
- package/dist/transfers.d.ts.map +1 -0
- package/dist/transfers.js +14 -0
- package/dist/transfers.js.map +1 -0
- package/dist/types.d.ts +285 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/uploads.d.ts +246 -0
- package/dist/uploads.d.ts.map +1 -0
- package/dist/uploads.js +580 -0
- package/dist/uploads.js.map +1 -0
- package/dist/utils.d.ts +25 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +41 -0
- package/dist/utils.js.map +1 -0
- package/dist/versions.d.ts +76 -0
- package/dist/versions.d.ts.map +1 -0
- package/dist/versions.js +82 -0
- package/dist/versions.js.map +1 -0
- package/package.json +36 -40
- package/LICENSE +0 -21
- package/src/client.ts +0 -436
- package/src/config.ts +0 -41
- package/src/handlers/files.ts +0 -696
- package/src/handlers/indexHandler.ts +0 -107
- package/src/handlers/search.ts +0 -144
- package/src/handlers/thumbnail.ts +0 -174
- package/src/handlers/upload.ts +0 -401
- package/src/index.ts +0 -131
- package/src/lib/index.ts +0 -325
- package/src/lib/openapi.ts +0 -48
- package/src/lib/ownership.ts +0 -133
- package/src/lib/path.ts +0 -128
- package/src/lib/response.ts +0 -10
- package/src/lib/scanner.ts +0 -121
- package/src/lib/validator.ts +0 -21
- package/src/schemas.ts +0 -376
- package/src/utils.ts +0 -282
package/dist/paths.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ClientCore } from "./core.js";
|
|
2
|
+
import type { FingerprintMode, Node, NodeListResponse } from "./types.js";
|
|
3
|
+
export interface GetPathOptions {
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
cursor?: string;
|
|
6
|
+
computeRecursiveSizes?: boolean;
|
|
7
|
+
fingerprint?: FingerprintMode;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Conflict-handling strategy for file writes. The default is `"error"`:
|
|
11
|
+
* a 409 is returned when a file at the target path already exists.
|
|
12
|
+
*
|
|
13
|
+
* - `"error"` (default) — fail with 409 if the target exists.
|
|
14
|
+
* - `"overwrite"` — replace the existing file in place; node id preserved.
|
|
15
|
+
* - `"rename"` — pick a unique sibling name (foo.jpg → foo-01.jpg) and
|
|
16
|
+
* create a new file. The returned `node.name`/`node.path` reflect the
|
|
17
|
+
* actually-used name.
|
|
18
|
+
*/
|
|
19
|
+
export type FileConflictMode = "error" | "overwrite" | "rename";
|
|
20
|
+
export interface PutPathOptions {
|
|
21
|
+
contentType?: string;
|
|
22
|
+
onConflict?: FileConflictMode;
|
|
23
|
+
}
|
|
24
|
+
export interface PathPutResponse {
|
|
25
|
+
node: Node;
|
|
26
|
+
nodeId: string;
|
|
27
|
+
createdId: string;
|
|
28
|
+
statusCode: number;
|
|
29
|
+
}
|
|
30
|
+
export declare class PathsClient {
|
|
31
|
+
private readonly core;
|
|
32
|
+
constructor(core: ClientCore);
|
|
33
|
+
/**
|
|
34
|
+
* Get a node by virtual path, or list roots when called without a path.
|
|
35
|
+
*
|
|
36
|
+
* - `get()` or `get("")` → lists root mounts (GET /v1/paths/)
|
|
37
|
+
* - `get("data/files")` → metadata for that path (GET /v1/paths/data/files)
|
|
38
|
+
*/
|
|
39
|
+
get(virtualPath?: string, opts?: GetPathOptions): Promise<Node | NodeListResponse>;
|
|
40
|
+
/** One-shot upload to a virtual path. */
|
|
41
|
+
put(virtualPath: string, data: BodyInit, opts?: PutPathOptions): Promise<PathPutResponse>;
|
|
42
|
+
/** One-shot upload returning the raw Response (for relay/proxy). */
|
|
43
|
+
putRaw(virtualPath: string, data: BodyInit, opts?: PutPathOptions): Promise<Response>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,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] = String(opts.pageSize);
|
|
6
|
+
if (opts?.cursor)
|
|
7
|
+
q["cursor"] = opts.cursor;
|
|
8
|
+
if (opts?.computeRecursiveSizes)
|
|
9
|
+
q["computeRecursiveSizes"] = "true";
|
|
10
|
+
if (opts?.fingerprint)
|
|
11
|
+
q["fingerprint"] = opts.fingerprint;
|
|
12
|
+
return q;
|
|
13
|
+
}
|
|
14
|
+
function encodeVirtualPath(path) {
|
|
15
|
+
return path
|
|
16
|
+
.split("/")
|
|
17
|
+
.filter((s) => s.length > 0)
|
|
18
|
+
.map(encodeURIComponent)
|
|
19
|
+
.join("/");
|
|
20
|
+
}
|
|
21
|
+
export class PathsClient {
|
|
22
|
+
core;
|
|
23
|
+
constructor(core) {
|
|
24
|
+
this.core = core;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get a node by virtual path, or list roots when called without a path.
|
|
28
|
+
*
|
|
29
|
+
* - `get()` or `get("")` → lists root mounts (GET /v1/paths/)
|
|
30
|
+
* - `get("data/files")` → metadata for that path (GET /v1/paths/data/files)
|
|
31
|
+
*/
|
|
32
|
+
async get(virtualPath, opts) {
|
|
33
|
+
const trimmed = virtualPath?.trim().replace(/^\/+|\/+$/g, "") ?? "";
|
|
34
|
+
if (trimmed === "") {
|
|
35
|
+
return this.core.doJSON("GET", "/v1/paths/", getQuery(opts));
|
|
36
|
+
}
|
|
37
|
+
const encoded = encodeVirtualPath(trimmed);
|
|
38
|
+
return this.core.doJSON("GET", `/v1/paths/${encoded}`, getQuery(opts));
|
|
39
|
+
}
|
|
40
|
+
/** One-shot upload to a virtual path. */
|
|
41
|
+
async put(virtualPath, data, opts) {
|
|
42
|
+
const encoded = encodeVirtualPath(virtualPath.trim());
|
|
43
|
+
if (!encoded)
|
|
44
|
+
throw new Error("path is required");
|
|
45
|
+
const contentType = opts?.contentType ?? "application/octet-stream";
|
|
46
|
+
const endpoint = `/v1/paths/${encoded}`;
|
|
47
|
+
const resp = await this.core.doRaw("PUT", endpoint, putQuery(opts), data, contentType);
|
|
48
|
+
await ensureSuccess(resp, "PUT", endpoint);
|
|
49
|
+
const node = (await resp.json());
|
|
50
|
+
return {
|
|
51
|
+
node,
|
|
52
|
+
nodeId: resp.headers.get("X-Node-Id") ?? "",
|
|
53
|
+
createdId: resp.headers.get("X-Created-Id") ?? "",
|
|
54
|
+
statusCode: resp.status,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/** One-shot upload returning the raw Response (for relay/proxy). */
|
|
58
|
+
async putRaw(virtualPath, data, opts) {
|
|
59
|
+
const encoded = encodeVirtualPath(virtualPath.trim());
|
|
60
|
+
if (!encoded)
|
|
61
|
+
throw new Error("path is required");
|
|
62
|
+
const contentType = opts?.contentType ?? "application/octet-stream";
|
|
63
|
+
return this.core.doRaw("PUT", `/v1/paths/${encoded}`, putQuery(opts), data, contentType);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function putQuery(opts) {
|
|
67
|
+
if (!opts?.onConflict)
|
|
68
|
+
return undefined;
|
|
69
|
+
return { onConflict: opts.onConflict };
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAkC5C,SAAS,QAAQ,CAAC,IAAqB;IACrC,MAAM,CAAC,GAA2B,EAAE,CAAC;IACrC,IAAI,IAAI,EAAE,QAAQ;QAAE,CAAC,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,IAAI,EAAE,MAAM;QAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5C,IAAI,IAAI,EAAE,qBAAqB;QAAE,CAAC,CAAC,uBAAuB,CAAC,GAAG,MAAM,CAAC;IACrE,IAAI,IAAI,EA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package/dist/search.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ClientCore } from "./core.js";
|
|
2
|
+
import type { GlobSearchResponse } from "./types.js";
|
|
3
|
+
export interface GlobOptions {
|
|
4
|
+
pattern: string;
|
|
5
|
+
paths?: string[];
|
|
6
|
+
limit?: number;
|
|
7
|
+
showHidden?: boolean;
|
|
8
|
+
files?: boolean;
|
|
9
|
+
directories?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class SearchClient {
|
|
12
|
+
private readonly core;
|
|
13
|
+
constructor(core: ClientCore);
|
|
14
|
+
/** Search for nodes matching a glob pattern. */
|
|
15
|
+
glob(opts: GlobOptions): Promise<GlobSearchResponse>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C,gDAAgD;IAC1C,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAW3D"}
|
package/dist/search.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export class SearchClient {
|
|
2
|
+
core;
|
|
3
|
+
constructor(core) {
|
|
4
|
+
this.core = core;
|
|
5
|
+
}
|
|
6
|
+
/** Search for nodes matching a glob pattern. */
|
|
7
|
+
async glob(opts) {
|
|
8
|
+
const pattern = opts.pattern.trim();
|
|
9
|
+
if (!pattern)
|
|
10
|
+
throw new Error("pattern is required");
|
|
11
|
+
const q = { pattern };
|
|
12
|
+
if (opts.limit)
|
|
13
|
+
q["limit"] = String(opts.limit);
|
|
14
|
+
if (opts.paths?.length)
|
|
15
|
+
q["paths"] = opts.paths.join(",");
|
|
16
|
+
if (opts.showHidden)
|
|
17
|
+
q["showHidden"] = "true";
|
|
18
|
+
if (opts.files !== undefined)
|
|
19
|
+
q["files"] = String(opts.files);
|
|
20
|
+
if (opts.directories !== undefined)
|
|
21
|
+
q["directories"] = String(opts.directories);
|
|
22
|
+
return this.core.doJSON("GET", "/v1/search/glob", q);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAYA,MAAM,OAAO,YAAY;IACM;IAA7B,YAA6B,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAEjD,gDAAgD;IAChD,KAAK,CAAC,IAAI,CAAC,IAAiB;QAC1B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpC,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACrD,MAAM,CAAC,GAA2B,EAAE,OAAO,EAAE,CAAC;QAC9C,IAAI,IAAI,CAAC,KAAK;YAAE,CAAC,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM;YAAE,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1D,IAAI,IAAI,CAAC,UAAU;YAAE,CAAC,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC;QAC9C,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS;YAAE,CAAC,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9D,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS;YAAE,CAAC,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAChF,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAqB,KAAK,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
package/dist/stats.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientCore } from "./core.js";
|
|
2
|
+
import type { StatsResponse } from "./types.js";
|
|
3
|
+
export declare class StatsClient {
|
|
4
|
+
private readonly core;
|
|
5
|
+
constructor(core: ClientCore);
|
|
6
|
+
/** Get runtime statistics. */
|
|
7
|
+
get(): Promise<StatsResponse>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=stats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../src/stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,qBAAa,WAAW;IACV,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C,8BAA8B;IACxB,GAAG,IAAI,OAAO,CAAC,aAAa,CAAC;CAGpC"}
|
package/dist/stats.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats.js","sourceRoot":"","sources":["../src/stats.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,WAAW;IACO;IAA7B,YAA6B,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAEjD,8BAA8B;IAC9B,KAAK,CAAC,GAAG;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAgB,KAAK,EAAE,WAAW,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientCore } from "./core.js";
|
|
2
|
+
import type { TransferRequest, TransferResponse } from "./types.js";
|
|
3
|
+
export declare class TransfersClient {
|
|
4
|
+
private readonly core;
|
|
5
|
+
constructor(core: ClientCore);
|
|
6
|
+
/** Execute a move or copy operation. */
|
|
7
|
+
create(req: TransferRequest, recursiveOwnership?: boolean): Promise<TransferResponse>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=transfers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/transfers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEpE,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C,wCAAwC;IAClC,MAAM,CAAC,GAAG,EAAE,eAAe,EAAE,kBAAkB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAW5F"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class TransfersClient {
|
|
2
|
+
core;
|
|
3
|
+
constructor(core) {
|
|
4
|
+
this.core = core;
|
|
5
|
+
}
|
|
6
|
+
/** Execute a move or copy operation. */
|
|
7
|
+
async create(req, recursiveOwnership) {
|
|
8
|
+
const q = {};
|
|
9
|
+
if (recursiveOwnership !== undefined)
|
|
10
|
+
q["recursiveOwnership"] = String(recursiveOwnership);
|
|
11
|
+
return this.core.doJSON("POST", "/v1/transfers", q, JSON.stringify(req), "application/json");
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=transfers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/transfers.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,eAAe;IACG;IAA7B,YAA6B,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAEjD,wCAAwC;IACxC,KAAK,CAAC,MAAM,CAAC,GAAoB,EAAE,kBAA4B;QAC7D,MAAM,CAAC,GAA2B,EAAE,CAAC;QACrC,IAAI,kBAAkB,KAAK,SAAS;YAAE,CAAC,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAC3F,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CACrB,MAAM,EACN,eAAe,EACf,CAAC,EACD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EACnB,kBAAkB,CACnB,CAAC;IACJ,CAAC;CACF"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/** Ownership input for create/update operations. */
|
|
2
|
+
export interface Ownership {
|
|
3
|
+
uid?: number;
|
|
4
|
+
gid?: number;
|
|
5
|
+
mode?: string;
|
|
6
|
+
dirMode?: string;
|
|
7
|
+
}
|
|
8
|
+
/** Ownership as returned by the server. */
|
|
9
|
+
export interface OwnershipView {
|
|
10
|
+
uid: number;
|
|
11
|
+
gid: number;
|
|
12
|
+
mode: string;
|
|
13
|
+
}
|
|
14
|
+
/** A file or directory node.
|
|
15
|
+
*
|
|
16
|
+
* `nextCursor` is an opaque pagination token: pass it back verbatim as
|
|
17
|
+
* the `cursor` option to fetch the next page of children. Do not
|
|
18
|
+
* construct or interpret it. */
|
|
19
|
+
export interface Node {
|
|
20
|
+
id: string;
|
|
21
|
+
type: "file" | "directory";
|
|
22
|
+
name: string;
|
|
23
|
+
path: string;
|
|
24
|
+
size: number;
|
|
25
|
+
mtime: number;
|
|
26
|
+
ownership: OwnershipView;
|
|
27
|
+
mimeType?: string;
|
|
28
|
+
etag?: string;
|
|
29
|
+
sha256?: string;
|
|
30
|
+
exif: Record<string, string>;
|
|
31
|
+
children?: Node[];
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
nextCursor?: string;
|
|
34
|
+
}
|
|
35
|
+
/** Response for root listing (GET /v1/paths/). */
|
|
36
|
+
export interface NodeListResponse {
|
|
37
|
+
items: Node[];
|
|
38
|
+
total: number;
|
|
39
|
+
}
|
|
40
|
+
/** OK acknowledgement. */
|
|
41
|
+
export interface OKResponse {
|
|
42
|
+
ok: boolean;
|
|
43
|
+
}
|
|
44
|
+
/** Error response body. On a 409 Conflict, `existingId` and `existingPath`
|
|
45
|
+
* are populated so the client can render a "what should we do?" prompt
|
|
46
|
+
* without an extra resolve call. Both undefined otherwise. */
|
|
47
|
+
export interface ErrorResponse {
|
|
48
|
+
error: string;
|
|
49
|
+
existingId?: string;
|
|
50
|
+
existingPath?: string;
|
|
51
|
+
}
|
|
52
|
+
/** Conflict mode accepted by file-write endpoints. `"skip"` is mkdir-only and
|
|
53
|
+
* not allowed here. Upload sessions narrow this to `"error" | "overwrite"`. */
|
|
54
|
+
export type FileConflictMode = "error" | "overwrite" | "rename";
|
|
55
|
+
export type UploadSessionConflictMode = Exclude<FileConflictMode, "rename">;
|
|
56
|
+
export type FingerprintMode = "none" | "cached" | "ensure";
|
|
57
|
+
/** Conflict mode accepted by mkdir. `"overwrite"` is forbidden — replacing
|
|
58
|
+
* a directory subtree is a Transfer operation, not a mkdir one. */
|
|
59
|
+
export type MkdirConflictMode = "error" | "skip" | "rename";
|
|
60
|
+
export interface StatsIndex {
|
|
61
|
+
totalEntities: number;
|
|
62
|
+
totalFiles: number;
|
|
63
|
+
totalDirs: number;
|
|
64
|
+
dbSizeBytes: number;
|
|
65
|
+
}
|
|
66
|
+
export interface StatsCache {
|
|
67
|
+
pathEntries: number;
|
|
68
|
+
pathCapacity: number;
|
|
69
|
+
pathUtilRatio: number;
|
|
70
|
+
}
|
|
71
|
+
export interface StatsMount {
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
path: string;
|
|
75
|
+
files: number;
|
|
76
|
+
dirs: number;
|
|
77
|
+
}
|
|
78
|
+
export interface StatsDisk {
|
|
79
|
+
diskName: string;
|
|
80
|
+
fsType: string;
|
|
81
|
+
used: number;
|
|
82
|
+
size: number;
|
|
83
|
+
roots: string[];
|
|
84
|
+
}
|
|
85
|
+
export interface StatsSystem {
|
|
86
|
+
goroutines: number;
|
|
87
|
+
heapAllocBytes: number;
|
|
88
|
+
heapSysBytes: number;
|
|
89
|
+
heapObjects: number;
|
|
90
|
+
numGC: number;
|
|
91
|
+
lastGCPauseNs: number;
|
|
92
|
+
openFDs: number;
|
|
93
|
+
maxFDs: number;
|
|
94
|
+
}
|
|
95
|
+
export interface StatsResponse {
|
|
96
|
+
generatedAt: number;
|
|
97
|
+
index: StatsIndex;
|
|
98
|
+
cache: StatsCache;
|
|
99
|
+
mounts: StatsMount[];
|
|
100
|
+
disks: StatsDisk[];
|
|
101
|
+
system: StatsSystem;
|
|
102
|
+
}
|
|
103
|
+
export interface ActivityActor {
|
|
104
|
+
kind: "system" | "bearer_token" | "s3_key" | "signed_url" | string;
|
|
105
|
+
id: string;
|
|
106
|
+
label?: string;
|
|
107
|
+
delegatedActor?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface ActivityTarget {
|
|
110
|
+
kind: string;
|
|
111
|
+
id?: string;
|
|
112
|
+
path?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface ActivityEvent {
|
|
115
|
+
id: string;
|
|
116
|
+
at: number;
|
|
117
|
+
actor: ActivityActor;
|
|
118
|
+
operation: string;
|
|
119
|
+
outcome: "succeeded" | "failed" | "skipped" | string;
|
|
120
|
+
target?: ActivityTarget;
|
|
121
|
+
durationMs?: number;
|
|
122
|
+
requestId?: string;
|
|
123
|
+
error?: string;
|
|
124
|
+
meta?: Record<string, string | number | boolean>;
|
|
125
|
+
}
|
|
126
|
+
export interface ActivityListResponse {
|
|
127
|
+
items: ActivityEvent[];
|
|
128
|
+
total: number;
|
|
129
|
+
offset: number;
|
|
130
|
+
limit: number;
|
|
131
|
+
retained: number;
|
|
132
|
+
capacity: number;
|
|
133
|
+
operations: string[];
|
|
134
|
+
}
|
|
135
|
+
export interface CapabilitiesResponse {
|
|
136
|
+
uploads: UploadCapabilities;
|
|
137
|
+
}
|
|
138
|
+
export interface UploadCapabilities {
|
|
139
|
+
maxChunkBytes: number;
|
|
140
|
+
maxUploadBytes: number;
|
|
141
|
+
maxSessionUploadBytes: number;
|
|
142
|
+
maxConcurrentSegmentWrites: number;
|
|
143
|
+
}
|
|
144
|
+
export interface MkdirRequest {
|
|
145
|
+
path: string;
|
|
146
|
+
recursive?: boolean;
|
|
147
|
+
ownership?: Ownership;
|
|
148
|
+
/** Default `"error"`. `"skip"` returns the existing directory unchanged
|
|
149
|
+
* if one with the same name exists. `"rename"` picks a unique sibling
|
|
150
|
+
* name and creates a fresh directory there. `"overwrite"` is rejected. */
|
|
151
|
+
onConflict?: MkdirConflictMode;
|
|
152
|
+
}
|
|
153
|
+
export interface UpdateNodeRequest {
|
|
154
|
+
name?: string;
|
|
155
|
+
ownership?: Ownership;
|
|
156
|
+
}
|
|
157
|
+
export interface TransferRequest {
|
|
158
|
+
op: "move" | "copy";
|
|
159
|
+
sourceId: string;
|
|
160
|
+
targetParentId: string;
|
|
161
|
+
targetName: string;
|
|
162
|
+
/** Default `"error"`. Same vocabulary as the other file-write endpoints —
|
|
163
|
+
* see `FileConflictMode`. */
|
|
164
|
+
onConflict?: FileConflictMode;
|
|
165
|
+
ownership?: Ownership;
|
|
166
|
+
}
|
|
167
|
+
export interface TransferResponse {
|
|
168
|
+
node: Node;
|
|
169
|
+
op: string;
|
|
170
|
+
}
|
|
171
|
+
export interface GlobSearchError {
|
|
172
|
+
path: string;
|
|
173
|
+
cause: string;
|
|
174
|
+
}
|
|
175
|
+
export interface GlobSearchPath {
|
|
176
|
+
path: string;
|
|
177
|
+
returned: number;
|
|
178
|
+
hasMore: boolean;
|
|
179
|
+
}
|
|
180
|
+
export interface GlobSearchMeta {
|
|
181
|
+
pattern: string;
|
|
182
|
+
limit: number;
|
|
183
|
+
resultCount: number;
|
|
184
|
+
errorCount: number;
|
|
185
|
+
}
|
|
186
|
+
export interface GlobSearchResponse {
|
|
187
|
+
results: Node[];
|
|
188
|
+
errors: GlobSearchError[];
|
|
189
|
+
meta: GlobSearchMeta;
|
|
190
|
+
paths: GlobSearchPath[];
|
|
191
|
+
}
|
|
192
|
+
export interface DirectUploadURLRequest {
|
|
193
|
+
path: string;
|
|
194
|
+
expiresInSeconds?: number;
|
|
195
|
+
contentType?: string;
|
|
196
|
+
onConflict?: FileConflictMode;
|
|
197
|
+
maxBytes?: number;
|
|
198
|
+
}
|
|
199
|
+
export interface DirectUploadURLResponse {
|
|
200
|
+
uploadUrl: string;
|
|
201
|
+
method: "PUT";
|
|
202
|
+
path: string;
|
|
203
|
+
expiresAt: number;
|
|
204
|
+
maxBytes: number;
|
|
205
|
+
}
|
|
206
|
+
export interface DirectDownloadURLRequest {
|
|
207
|
+
nodeId?: string;
|
|
208
|
+
path?: string;
|
|
209
|
+
expiresInSeconds?: number;
|
|
210
|
+
inline?: boolean;
|
|
211
|
+
}
|
|
212
|
+
export interface DirectDownloadURLResponse {
|
|
213
|
+
downloadUrl: string;
|
|
214
|
+
method: "GET";
|
|
215
|
+
expiresAt: number;
|
|
216
|
+
node: Node;
|
|
217
|
+
}
|
|
218
|
+
export interface UploadSessionDirectRequest {
|
|
219
|
+
expiresInSeconds?: number;
|
|
220
|
+
allow?: Array<"putSegment" | "status" | "commit" | "abort">;
|
|
221
|
+
}
|
|
222
|
+
export interface UploadSessionCreateRequest {
|
|
223
|
+
path: string;
|
|
224
|
+
size: number;
|
|
225
|
+
checksum: string;
|
|
226
|
+
segmentSize?: number;
|
|
227
|
+
contentType?: string;
|
|
228
|
+
ownership?: Ownership;
|
|
229
|
+
onConflict?: UploadSessionConflictMode;
|
|
230
|
+
direct?: UploadSessionDirectRequest;
|
|
231
|
+
}
|
|
232
|
+
export interface UploadSessionBatchCreateRequest {
|
|
233
|
+
uploads: UploadSessionCreateRequest[];
|
|
234
|
+
segmentSize?: number;
|
|
235
|
+
direct?: UploadSessionDirectRequest;
|
|
236
|
+
}
|
|
237
|
+
export interface UploadSessionSegment {
|
|
238
|
+
index: number;
|
|
239
|
+
offset: number;
|
|
240
|
+
size: number;
|
|
241
|
+
}
|
|
242
|
+
export interface UploadSessionDirect {
|
|
243
|
+
baseUrl: string;
|
|
244
|
+
token: string;
|
|
245
|
+
expiresAt: number;
|
|
246
|
+
allow: Array<"putSegment" | "status" | "commit" | "abort">;
|
|
247
|
+
}
|
|
248
|
+
export interface UploadSessionResponse {
|
|
249
|
+
id: string;
|
|
250
|
+
path: string;
|
|
251
|
+
size: number;
|
|
252
|
+
checksum: string;
|
|
253
|
+
segmentSize: number;
|
|
254
|
+
totalSegments: number;
|
|
255
|
+
segments: UploadSessionSegment[];
|
|
256
|
+
uploadedSegments: number[];
|
|
257
|
+
phase: "in_progress" | "committing" | "committed" | "aborted";
|
|
258
|
+
direct?: UploadSessionDirect;
|
|
259
|
+
}
|
|
260
|
+
export interface UploadSessionBatchCreateResponse {
|
|
261
|
+
sessions: UploadSessionResponse[];
|
|
262
|
+
}
|
|
263
|
+
export interface UploadSegmentResponse {
|
|
264
|
+
sessionId: string;
|
|
265
|
+
index: number;
|
|
266
|
+
uploadedSegments: number[];
|
|
267
|
+
}
|
|
268
|
+
export interface UploadSessionCommitResponse {
|
|
269
|
+
node: Node;
|
|
270
|
+
checksum: string;
|
|
271
|
+
}
|
|
272
|
+
export interface IndexResolveRequest {
|
|
273
|
+
path?: string;
|
|
274
|
+
paths?: string[];
|
|
275
|
+
id?: string;
|
|
276
|
+
ids?: string[];
|
|
277
|
+
}
|
|
278
|
+
export interface IndexResolveSingleResponse {
|
|
279
|
+
item: Node | null;
|
|
280
|
+
}
|
|
281
|
+
export interface IndexResolveManyResponse {
|
|
282
|
+
items: (Node | null)[];
|
|
283
|
+
total: number;
|
|
284
|
+
}
|
|
285
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,2CAA2C;AAC3C,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;gCAIgC;AAChC,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,aAAa,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,kDAAkD;AAClD,MAAM,WAAW,gBAAgB;IA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