@sinequa/atomic 2.8.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/atomic.cjs +1 -1
- package/dist/atomic.js +1 -1
- package/dist/client/create-api.d.ts +8 -8
- package/dist/spfx/index.cjs +1 -1
- package/dist/spfx/index.js +1 -1
- package/dist/{src-DMsETv6_.cjs → src-CPlI3qi5.cjs} +1 -1
- package/dist/{src-C-nHTU3y.js → src-s3KlD6YE.js} +137 -92
- package/dist/types/agent-workspace/index.d.ts +4 -0
- package/dist/types/{document-upload → agent-workspace}/index.d.ts.map +1 -1
- package/dist/types/{document-upload → agent-workspace}/upload-status.d.ts +8 -8
- package/dist/types/{document-upload → agent-workspace}/upload-status.d.ts.map +1 -1
- package/dist/types/{document-upload/container-document.d.ts → agent-workspace/workspace-document.d.ts} +8 -8
- package/dist/types/{document-upload/container-document.d.ts.map → agent-workspace/workspace-document.d.ts.map} +1 -1
- package/dist/types/agent-workspace/workspace.d.ts +31 -0
- package/dist/types/{document-upload/container.d.ts.map → agent-workspace/workspace.d.ts.map} +1 -1
- package/dist/types/api-endpoints.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interfaces/Query.d.ts +9 -0
- package/dist/types/interfaces/Query.d.ts.map +1 -1
- package/dist/utils/aggregations.d.ts +16 -0
- package/dist/utils/aggregations.d.ts.map +1 -1
- package/dist/web-api/index.d.ts +2 -2
- package/dist/web-api/index.d.ts.map +1 -1
- package/dist/web-api/v1/fetch-security-principal.d.ts +1 -1
- package/dist/web-api/v2/{fetch-document-upload-status.d.ts → fetch-agent-workspace-status.d.ts} +4 -4
- package/dist/web-api/v2/{fetch-document-upload-status.d.ts.map → fetch-agent-workspace-status.d.ts.map} +1 -1
- package/dist/web-api/v2/fetch-agent-workspace.d.ts +100 -0
- package/dist/web-api/v2/fetch-agent-workspace.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/types/document-upload/container.d.ts +0 -31
- package/dist/types/document-upload/index.d.ts +0 -4
- package/dist/web-api/v2/fetch-document-upload-container.d.ts +0 -98
- package/dist/web-api/v2/fetch-document-upload-container.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/Query.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,EAAE,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;IAC9C;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,EAAE,CAAC;IACzE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CA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;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,MAAM,EAAE,CAAC;IAC7D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
|
@@ -7,14 +7,30 @@ export type DateFilter = {
|
|
|
7
7
|
value?: string;
|
|
8
8
|
filters?: LegacyFilter[];
|
|
9
9
|
display?: string;
|
|
10
|
+
/** Date mask (`YYYY`, `YYYY-MM`) of a masked date item; see {@link getDateMask}. */
|
|
11
|
+
mask?: DateMask;
|
|
10
12
|
disabled?: boolean;
|
|
11
13
|
hidden?: boolean;
|
|
12
14
|
};
|
|
15
|
+
export type DateMask = "YYYY" | "YYYY-MM";
|
|
13
16
|
export type FieldValue = string | number | Date | boolean | Array<string | {
|
|
14
17
|
value: string;
|
|
15
18
|
display?: string;
|
|
16
19
|
}>;
|
|
17
20
|
export declare const aggItemRegex: RegExp;
|
|
21
|
+
/**
|
|
22
|
+
* Deduces the mask of a masked date value: `YYYY` for `2016`, `YYYY-MM` for `2016-03`.
|
|
23
|
+
* Any other value (including masks the engine can produce but this does not recognise) yields `undefined`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function getDateMask(value: unknown): DateMask | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The real dates a masked date value stands for: its first day, and the first day of the next
|
|
28
|
+
* period (exclusive upper bound). `2016` → `2016-01-01` / `2017-01-01`, `2016-12` → `2016-12-01` / `2017-01-01`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getMaskedDateBounds(value: string, mask: DateMask): {
|
|
31
|
+
from: string;
|
|
32
|
+
to: string;
|
|
33
|
+
};
|
|
18
34
|
/**
|
|
19
35
|
* Translates an aggregation object to an array of DateFilter options.
|
|
20
36
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregations.d.ts","sourceRoot":"","sources":["../../src/utils/aggregations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,MAAM,GACN,IAAI,GACJ,OAAO,GACP,KAAK,CAAC,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAExD,eAAO,MAAM,YAAY,QAA+B,CAAC;AAEzD;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAC/C,WAAW,EAAE,WAAW,EACxB,iCAAiC,EAAE,OAAO,GACzC,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"aggregations.d.ts","sourceRoot":"","sources":["../../src/utils/aggregations.ts"],"names":[],"mapp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BAA6B,CAC3C,IAAI,EAAE,eAAe,EACrB,iBAAiB,EAAE,MAAM,GACxB,YAAY,CAiCd;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,sBAAsB,CAAC,EACtD,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,CAAC,EACjD,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,CAAC,GACjD,OAAO,CAGT;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,mBAAmB,CAQ9E;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,UAAU,EAAE,EACtB,UAAU,EAAE,MAAM,GACjB,mBAAmB,EAAE,CA6BvB"}
|
package/dist/web-api/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export * from "./v1/fetch-suggest";
|
|
|
16
16
|
export * from "./v1/fetch-text-chunk";
|
|
17
17
|
export * from "./v1/fetch-user-settings";
|
|
18
18
|
export * from "./v2/fetch-change-password";
|
|
19
|
-
export * from "./v2/fetch-
|
|
20
|
-
export * from "./v2/fetch-
|
|
19
|
+
export * from "./v2/fetch-agent-workspace";
|
|
20
|
+
export * from "./v2/fetch-agent-workspace-status";
|
|
21
21
|
export * from "./v2/fetch-forgot-password";
|
|
22
22
|
export * from "./v2/fetch-user-profile";
|
|
23
23
|
export * from "./v2/fetch-version";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/web-api/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/web-api/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
|
|
@@ -32,7 +32,7 @@ export declare function searchPrincipals(params: {
|
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```typescript
|
|
35
|
-
* const owners = await fetchPrincipalsByIds(
|
|
35
|
+
* const owners = await fetchPrincipalsByIds(workspace.owners);
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
38
|
export declare function fetchPrincipalsByIds(userIds: string[], ctx?: AtomicContext): Promise<SecurityPrincipal[]>;
|
package/dist/web-api/v2/{fetch-document-upload-status.d.ts → fetch-agent-workspace-status.d.ts}
RENAMED
|
@@ -2,8 +2,8 @@ import { type AtomicContext } from "../../client/atomic-context";
|
|
|
2
2
|
import type { UploadStatusResponse } from "../../types";
|
|
3
3
|
import type { RequestOptions } from "../helpers/request-options";
|
|
4
4
|
export interface UploadStatusParams {
|
|
5
|
-
/** Restrict to one
|
|
6
|
-
|
|
5
|
+
/** Restrict to one workspace (the cheaper per-workspace lookup server-side). */
|
|
6
|
+
workspaceId?: string;
|
|
7
7
|
/** Restrict to jobs started by this user id. */
|
|
8
8
|
initiatedBy?: string;
|
|
9
9
|
/** Jobs to skip (default 0). */
|
|
@@ -12,7 +12,7 @@ export interface UploadStatusParams {
|
|
|
12
12
|
take?: number;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Returns
|
|
15
|
+
* Returns agent-workspace jobs grouped by workspace, most-recently-started
|
|
16
16
|
* first.
|
|
17
17
|
*
|
|
18
18
|
* @param params - Optional filters and paging (see {@link UploadStatusParams}).
|
|
@@ -20,4 +20,4 @@ export interface UploadStatusParams {
|
|
|
20
20
|
* abandoned.
|
|
21
21
|
*/
|
|
22
22
|
export declare function fetchUploadStatus(params?: UploadStatusParams, options?: RequestOptions, ctx?: AtomicContext): Promise<UploadStatusResponse>;
|
|
23
|
-
//# sourceMappingURL=fetch-
|
|
23
|
+
//# sourceMappingURL=fetch-agent-workspace-status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-
|
|
1
|
+
{"version":3,"file":"fetch-agent-workspace-status.d.ts","sourceRoot":"","sources":["../../../src/web-api/v2/fetch-agent-workspace-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,6BAA6B,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,CAAC,EAAE,kBAAkB,EAC3B,OAAO,CAAC,EAAE,cAAc,EACxB,GAAG,GAAE,aAA8B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAO/B"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { type AtomicContext } from "../../client/atomic-context";
|
|
2
|
+
import type { Workspace, WorkspaceDocument, WorkspaceDocumentListResponse, WorkspaceListResponse } from "../../types";
|
|
3
|
+
import type { RequestOptions } from "../helpers/request-options";
|
|
4
|
+
/**
|
|
5
|
+
* Lists Agent Workspace workspaces, paginated.
|
|
6
|
+
*
|
|
7
|
+
* @param params - `page`/`pageSize` (server-side pagination; both optional).
|
|
8
|
+
*/
|
|
9
|
+
export declare function listWorkspaces(params?: {
|
|
10
|
+
page?: number;
|
|
11
|
+
pageSize?: number;
|
|
12
|
+
}, ctx?: AtomicContext): Promise<WorkspaceListResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Fetches a single workspace by id.
|
|
15
|
+
*
|
|
16
|
+
* @param id - The workspace id.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getWorkspace(id: string, ctx?: AtomicContext): Promise<Workspace>;
|
|
19
|
+
export interface CreateWorkspaceInput {
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
owners?: string[];
|
|
23
|
+
readers?: string[];
|
|
24
|
+
tags?: string[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Creates a new Agent Workspace workspace.
|
|
28
|
+
*/
|
|
29
|
+
export declare function createWorkspace(body: CreateWorkspaceInput, ctx?: AtomicContext): Promise<Workspace>;
|
|
30
|
+
export interface UpdateWorkspaceInput {
|
|
31
|
+
name?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
owners?: string[];
|
|
34
|
+
readers?: string[];
|
|
35
|
+
tags?: string[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Updates a workspace's metadata and/or access (owners/readers).
|
|
39
|
+
*
|
|
40
|
+
* @param id - The workspace id.
|
|
41
|
+
* @param patch - Fields to update; the API replaces `owners`/`readers`
|
|
42
|
+
* wholesale rather than patching a delta, so callers must send the full
|
|
43
|
+
* arrays.
|
|
44
|
+
* @throws {@link ApiError} with `status === 409` if an upload/indexing job is
|
|
45
|
+
* currently active on this workspace (error code `container_locked` — the
|
|
46
|
+
* server kept the legacy name).
|
|
47
|
+
*/
|
|
48
|
+
export declare function updateWorkspace(id: string, patch: UpdateWorkspaceInput, ctx?: AtomicContext): Promise<Workspace>;
|
|
49
|
+
export interface DeleteWorkspacesResult {
|
|
50
|
+
succeeded: string[];
|
|
51
|
+
failed: {
|
|
52
|
+
workspaceId: string;
|
|
53
|
+
error: string;
|
|
54
|
+
}[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Bulk-deletes workspaces by id — the API only exposes a bulk endpoint, so
|
|
58
|
+
* this is the single call site for deleting one workspace as much as many.
|
|
59
|
+
*
|
|
60
|
+
* @param workspaceIds - The ids to delete.
|
|
61
|
+
* @returns Which ids succeeded vs. failed (e.g. a locked workspace blocks its
|
|
62
|
+
* own deletion without failing the rest of the batch).
|
|
63
|
+
*/
|
|
64
|
+
export declare function deleteWorkspaces(workspaceIds: string[], ctx?: AtomicContext): Promise<DeleteWorkspacesResult>;
|
|
65
|
+
/**
|
|
66
|
+
* Lists the documents inside a workspace, paginated.
|
|
67
|
+
*
|
|
68
|
+
* @param id - The workspace id.
|
|
69
|
+
* @param params - `page`/`pageSize` (server-side pagination; both optional).
|
|
70
|
+
* @param options - Request options; `signal` lets a poller abandon an in-flight request.
|
|
71
|
+
*/
|
|
72
|
+
export declare function listWorkspaceDocuments(id: string, params?: {
|
|
73
|
+
page?: number;
|
|
74
|
+
pageSize?: number;
|
|
75
|
+
}, options?: RequestOptions, ctx?: AtomicContext): Promise<WorkspaceDocumentListResponse>;
|
|
76
|
+
export interface NewWorkspaceDocumentInput {
|
|
77
|
+
name: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Attaches existing documents to a workspace (no file transfer).
|
|
81
|
+
*
|
|
82
|
+
* Provisional: the backend contract for this endpoint is not final yet.
|
|
83
|
+
*
|
|
84
|
+
* @param id - The workspace id.
|
|
85
|
+
* @param documents - The documents to attach.
|
|
86
|
+
* @returns The documents created in the workspace.
|
|
87
|
+
*/
|
|
88
|
+
export declare function addWorkspaceDocuments(id: string, documents: NewWorkspaceDocumentInput[], ctx?: AtomicContext): Promise<WorkspaceDocument[]>;
|
|
89
|
+
/**
|
|
90
|
+
* Deletes documents from a workspace by id.
|
|
91
|
+
*
|
|
92
|
+
* @param id - The workspace id.
|
|
93
|
+
* @param fileIds - The document ids to delete.
|
|
94
|
+
* @throws {@link ApiError} with `status === 409` if an upload/indexing job is
|
|
95
|
+
* currently active on this workspace (error code `container_locked`, the
|
|
96
|
+
* server kept the legacy name), same as
|
|
97
|
+
* {@link updateWorkspace}.
|
|
98
|
+
*/
|
|
99
|
+
export declare function deleteWorkspaceDocuments(id: string, fileIds: string[], ctx?: AtomicContext): Promise<void>;
|
|
100
|
+
//# sourceMappingURL=fetch-agent-workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-agent-workspace.d.ts","sourceRoot":"","sources":["../../../src/web-api/v2/fetch-agent-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,6BAA6B,CAAC;AACjF,OAAO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AE,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAClD;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,MAAM,EAAE,EACtB,GAAG,GAAE,aAA8B,GAClC,OAAO,CAAC,sBAAsB,CAAC,CAUjC;AAED;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAC1C,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,EAC7C,OAAO,CAAC,EAAE,cAAc,EACxB,GAAG,GAAE,aAA8B,GAClC,OAAO,CAAC,6BAA6B,CAAC,CASxC;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CACzC,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,yBAAyB,EAAE,EACtC,GAAG,GAAE,aAA8B,GAClC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAO9B;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EAAE,EACjB,GAAG,GAAE,aAA8B,GAClC,OAAO,CAAC,IAAI,CAAC,CAIf"}
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The current user's role on a container, as returned by the API — drives
|
|
3
|
-
* which mutations a caller is allowed to attempt (only `owner`/`creator` can
|
|
4
|
-
* edit or share; only `creator` is fixed and never assignable).
|
|
5
|
-
*/
|
|
6
|
-
export type ContainerRole = "creator" | "owner" | "reader";
|
|
7
|
-
/**
|
|
8
|
-
* Wire shape of a document-upload container, per the "Container management"
|
|
9
|
-
* API (ES-32400, Confluence space SNQARND). Consumed by
|
|
10
|
-
* `fetchContainers`/`fetchContainer`/`createContainer`/`updateContainer` in
|
|
11
|
-
* `../../web-api/v2/fetch-document-upload-container`.
|
|
12
|
-
*/
|
|
13
|
-
export interface Container {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
description: string;
|
|
17
|
-
tags: string[];
|
|
18
|
-
creator: string;
|
|
19
|
-
owners: string[];
|
|
20
|
-
readers: string[];
|
|
21
|
-
documentCount: number;
|
|
22
|
-
currentUserRole: ContainerRole;
|
|
23
|
-
}
|
|
24
|
-
/** Paginated response of `GET .../document-upload/container`. */
|
|
25
|
-
export interface ContainerListResponse {
|
|
26
|
-
page: number;
|
|
27
|
-
pageSize: number;
|
|
28
|
-
total: number;
|
|
29
|
-
containers: Container[];
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=container.d.ts.map
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { type AtomicContext } from "../../client/atomic-context";
|
|
2
|
-
import type { Container, ContainerDocument, ContainerDocumentListResponse, ContainerListResponse } from "../../types";
|
|
3
|
-
import type { RequestOptions } from "../helpers/request-options";
|
|
4
|
-
/**
|
|
5
|
-
* Lists document-upload containers, paginated.
|
|
6
|
-
*
|
|
7
|
-
* @param params - `page`/`pageSize` (server-side pagination; both optional).
|
|
8
|
-
*/
|
|
9
|
-
export declare function listContainers(params?: {
|
|
10
|
-
page?: number;
|
|
11
|
-
pageSize?: number;
|
|
12
|
-
}, ctx?: AtomicContext): Promise<ContainerListResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Fetches a single container by id.
|
|
15
|
-
*
|
|
16
|
-
* @param id - The container id.
|
|
17
|
-
*/
|
|
18
|
-
export declare function getContainer(id: string, ctx?: AtomicContext): Promise<Container>;
|
|
19
|
-
export interface CreateContainerInput {
|
|
20
|
-
name: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
owners?: string[];
|
|
23
|
-
readers?: string[];
|
|
24
|
-
tags?: string[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Creates a new document-upload container.
|
|
28
|
-
*/
|
|
29
|
-
export declare function createContainer(body: CreateContainerInput, ctx?: AtomicContext): Promise<Container>;
|
|
30
|
-
export interface UpdateContainerInput {
|
|
31
|
-
name?: string;
|
|
32
|
-
description?: string;
|
|
33
|
-
owners?: string[];
|
|
34
|
-
readers?: string[];
|
|
35
|
-
tags?: string[];
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Updates a container's metadata and/or access (owners/readers).
|
|
39
|
-
*
|
|
40
|
-
* @param id - The container id.
|
|
41
|
-
* @param patch - Fields to update; the API replaces `owners`/`readers`
|
|
42
|
-
* wholesale rather than patching a delta, so callers must send the full
|
|
43
|
-
* arrays.
|
|
44
|
-
* @throws {@link ApiError} with `status === 409` if an upload/indexing job is
|
|
45
|
-
* currently active on this container (`container_locked`).
|
|
46
|
-
*/
|
|
47
|
-
export declare function updateContainer(id: string, patch: UpdateContainerInput, ctx?: AtomicContext): Promise<Container>;
|
|
48
|
-
export interface DeleteContainersResult {
|
|
49
|
-
succeeded: string[];
|
|
50
|
-
failed: {
|
|
51
|
-
containerId: string;
|
|
52
|
-
error: string;
|
|
53
|
-
}[];
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Bulk-deletes containers by id — the API only exposes a bulk endpoint, so
|
|
57
|
-
* this is the single call site for deleting one container as much as many.
|
|
58
|
-
*
|
|
59
|
-
* @param containerIds - The ids to delete.
|
|
60
|
-
* @returns Which ids succeeded vs. failed (e.g. a locked container blocks its
|
|
61
|
-
* own deletion without failing the rest of the batch).
|
|
62
|
-
*/
|
|
63
|
-
export declare function deleteContainers(containerIds: string[], ctx?: AtomicContext): Promise<DeleteContainersResult>;
|
|
64
|
-
/**
|
|
65
|
-
* Lists the documents inside a container, paginated.
|
|
66
|
-
*
|
|
67
|
-
* @param id - The container id.
|
|
68
|
-
* @param params - `page`/`pageSize` (server-side pagination; both optional).
|
|
69
|
-
* @param options - Request options; `signal` lets a poller abandon an in-flight request.
|
|
70
|
-
*/
|
|
71
|
-
export declare function listContainerDocuments(id: string, params?: {
|
|
72
|
-
page?: number;
|
|
73
|
-
pageSize?: number;
|
|
74
|
-
}, options?: RequestOptions, ctx?: AtomicContext): Promise<ContainerDocumentListResponse>;
|
|
75
|
-
export interface NewContainerDocumentInput {
|
|
76
|
-
name: string;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Attaches existing documents to a container (no file transfer).
|
|
80
|
-
*
|
|
81
|
-
* Provisional: the backend contract for this endpoint is not final yet.
|
|
82
|
-
*
|
|
83
|
-
* @param id - The container id.
|
|
84
|
-
* @param documents - The documents to attach.
|
|
85
|
-
* @returns The documents created in the container.
|
|
86
|
-
*/
|
|
87
|
-
export declare function addContainerDocuments(id: string, documents: NewContainerDocumentInput[], ctx?: AtomicContext): Promise<ContainerDocument[]>;
|
|
88
|
-
/**
|
|
89
|
-
* Deletes documents from a container by id.
|
|
90
|
-
*
|
|
91
|
-
* @param id - The container id.
|
|
92
|
-
* @param fileIds - The document ids to delete.
|
|
93
|
-
* @throws {@link ApiError} with `status === 409` if an upload/indexing job is
|
|
94
|
-
* currently active on this container (`container_locked`), same as
|
|
95
|
-
* {@link updateContainer}.
|
|
96
|
-
*/
|
|
97
|
-
export declare function deleteContainerDocuments(id: string, fileIds: string[], ctx?: AtomicContext): Promise<void>;
|
|
98
|
-
//# sourceMappingURL=fetch-document-upload-container.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-document-upload-container.d.ts","sourceRoot":"","sources":["../../../src/web-api/v2/fetch-document-upload-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,6BAA6B,CAAC;AACjF,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EACjB,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAKrB,OAAO,KAAK,EAAE,cAAc,EAAE,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