@arbidocs/sdk 0.4.84 → 0.4.86
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/{browser-uyIwS2cN.d.cts → browser-V51dp6kY.d.cts} +251 -117
- package/dist/{browser-uyIwS2cN.d.ts → browser-V51dp6kY.d.ts} +251 -117
- package/dist/browser.cjs +249 -180
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +250 -181
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +249 -180
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +250 -181
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _arbidocs_client from '@arbidocs/client';
|
|
2
1
|
import { SessionStorageProvider, ArbiClient, LoginResult, components, WebSocketServerMessage, WsAuthResultMessage, WsTaskUpdateMessage, KeyPair, LoginProfile } from '@arbidocs/client';
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -2381,27 +2380,55 @@ declare namespace responses {
|
|
|
2381
2380
|
}
|
|
2382
2381
|
|
|
2383
2382
|
/**
|
|
2384
|
-
* Tag operations — list, create, delete, update,
|
|
2383
|
+
* Tag operations — list (with filters and links), create, delete, update, values, and the
|
|
2384
|
+
* workspace's fields per tag kind.
|
|
2385
2385
|
*
|
|
2386
|
-
* A tag
|
|
2387
|
-
*
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2386
|
+
* A tag's kind (label, annotation, search, issue, person, organisation) has one field list per
|
|
2387
|
+
* workspace: the columns of a table of that kind's tags (`getTagKind(arbi, 'issue')`: the
|
|
2388
|
+
* workspace's issue fields). Each tag holds its own values for them (`field_values`, keyed by
|
|
2389
|
+
* field id). Issues, people and organisations are flat: no parent, no children.
|
|
2390
|
+
*
|
|
2391
|
+
* A table of tags is the list, filtered and expanded: `listTags(arbi, { kind: 'issue', include:
|
|
2392
|
+
* ['links'] })` is every issue with its values and the documents, facts and threads linked to it.
|
|
2390
2393
|
*/
|
|
2391
2394
|
|
|
2392
2395
|
type TagResponse = components['schemas']['TagResponse'];
|
|
2396
|
+
/** What a tag is: a label, annotation, search, issue, person or organisation. */
|
|
2397
|
+
type TagKind = NonNullable<components['schemas']['CreateTagRequest']['kind']>;
|
|
2393
2398
|
type UpdateTagRequest = components['schemas']['UpdateTagRequest'];
|
|
2394
|
-
/** A change to a tag: only what is given changes
|
|
2395
|
-
type TagChange =
|
|
2399
|
+
/** A change to a tag: only what is given changes. */
|
|
2400
|
+
type TagChange = UpdateTagRequest;
|
|
2401
|
+
/** A field of a kind, as the API returns it. */
|
|
2402
|
+
type TagKindField = components['schemas']['FieldDefinition'];
|
|
2396
2403
|
/** A field definition to write (`id` keeps an existing field, so renaming keeps its values). */
|
|
2397
2404
|
type TagFieldDefinition = components['schemas']['FieldDefinitionWrite'];
|
|
2398
|
-
/** A
|
|
2399
|
-
type
|
|
2400
|
-
|
|
2401
|
-
|
|
2405
|
+
/** A kind's fields in a workspace: the columns of a table of its tags (`fields` always a list). */
|
|
2406
|
+
type TagKindSchema = Omit<components['schemas']['TagKindSchema'], 'fields'> & {
|
|
2407
|
+
fields: TagKindField[];
|
|
2408
|
+
};
|
|
2409
|
+
/** A tag's documents, facts and threads (with `include: ['links']`). */
|
|
2410
|
+
type TagLinks = components['schemas']['TagLinks'];
|
|
2411
|
+
/** Every tag kind, in the order a Tags page lists them. */
|
|
2412
|
+
declare const TAG_KINDS: readonly TagKind[];
|
|
2413
|
+
/** Kinds that are flat: a tag of one has no parent and is no tag's parent. */
|
|
2414
|
+
declare const FLAT_TAG_KINDS: readonly TagKind[];
|
|
2402
2415
|
/** The types a tag field can have. */
|
|
2403
2416
|
declare const TAG_FIELD_TYPES: readonly TagFieldDefinition['type'][];
|
|
2404
|
-
|
|
2417
|
+
/** Which tags to list, and what to bring with each. Filters combine. */
|
|
2418
|
+
interface TagListQuery {
|
|
2419
|
+
/** Only tags of this kind (`'issue'`: every issue). */
|
|
2420
|
+
kind?: TagKind;
|
|
2421
|
+
/** Only this tag's children (a label hierarchy). */
|
|
2422
|
+
parentId?: string;
|
|
2423
|
+
/** Only these tags, in this order. */
|
|
2424
|
+
ids?: string[];
|
|
2425
|
+
/** `'links'`: each tag's documents (with the doctag's note), facts and threads, and counts. */
|
|
2426
|
+
include?: 'links'[];
|
|
2427
|
+
/** With links: most documents, facts and threads per tag (newest first). Default 50. */
|
|
2428
|
+
linksLimit?: number;
|
|
2429
|
+
}
|
|
2430
|
+
/** The tags of the open workspace (oldest first, or in the order of `ids`). */
|
|
2431
|
+
declare function listTags(arbi: ArbiClient, query?: TagListQuery): Promise<{
|
|
2405
2432
|
external_id: string;
|
|
2406
2433
|
workspace_ext_id: string;
|
|
2407
2434
|
name: string;
|
|
@@ -2416,16 +2443,32 @@ declare function listTags(arbi: ArbiClient): Promise<{
|
|
|
2416
2443
|
doctag_count: number;
|
|
2417
2444
|
facttag_count: number;
|
|
2418
2445
|
convotag_count: number;
|
|
2419
|
-
fields?: {
|
|
2420
|
-
id: string;
|
|
2421
|
-
name: string;
|
|
2422
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
2423
|
-
options?: string[] | null | undefined;
|
|
2424
|
-
tag_ext_id: string;
|
|
2425
|
-
}[] | undefined;
|
|
2426
2446
|
field_values?: {
|
|
2427
2447
|
[x: string]: unknown;
|
|
2428
2448
|
} | undefined;
|
|
2449
|
+
links?: {
|
|
2450
|
+
docs?: {
|
|
2451
|
+
doc_ext_id: string;
|
|
2452
|
+
file_name: string;
|
|
2453
|
+
note?: string | null | undefined;
|
|
2454
|
+
citations_count: number;
|
|
2455
|
+
updated_at: string;
|
|
2456
|
+
}[] | undefined;
|
|
2457
|
+
facts?: {
|
|
2458
|
+
fact_ext_id: string;
|
|
2459
|
+
text: string;
|
|
2460
|
+
confirmed: boolean;
|
|
2461
|
+
updated_at: string;
|
|
2462
|
+
}[] | undefined;
|
|
2463
|
+
threads?: {
|
|
2464
|
+
conversation_ext_id: string;
|
|
2465
|
+
title?: string | null | undefined;
|
|
2466
|
+
updated_at: string;
|
|
2467
|
+
}[] | undefined;
|
|
2468
|
+
doc_count: number;
|
|
2469
|
+
fact_count: number;
|
|
2470
|
+
thread_count: number;
|
|
2471
|
+
} | null | undefined;
|
|
2429
2472
|
created_by_ext_id: string;
|
|
2430
2473
|
updated_by_ext_id?: string | null | undefined;
|
|
2431
2474
|
created_at: string;
|
|
@@ -2437,11 +2480,11 @@ declare function createTag(arbi: ArbiClient, options: {
|
|
|
2437
2480
|
tagType?: components['schemas']['TagFormat'];
|
|
2438
2481
|
instruction?: string | null;
|
|
2439
2482
|
shared?: boolean;
|
|
2440
|
-
/**
|
|
2483
|
+
/** What the tag is. Absent: from the format (checkbox: a label). Never from the parent. */
|
|
2484
|
+
kind?: TagKind | null;
|
|
2485
|
+
/** Nest it under this tag (labels and annotations only: issues and entities are flat). */
|
|
2441
2486
|
parentId?: string | null;
|
|
2442
|
-
/**
|
|
2443
|
-
fields?: TagFieldDefinition[] | null;
|
|
2444
|
-
/** Values for its fields (and its parent's). */
|
|
2487
|
+
/** Values for its kind's fields, keyed by field id or name. */
|
|
2445
2488
|
fieldValues?: Record<string, unknown> | null;
|
|
2446
2489
|
}): Promise<{
|
|
2447
2490
|
external_id: string;
|
|
@@ -2458,16 +2501,32 @@ declare function createTag(arbi: ArbiClient, options: {
|
|
|
2458
2501
|
doctag_count: number;
|
|
2459
2502
|
facttag_count: number;
|
|
2460
2503
|
convotag_count: number;
|
|
2461
|
-
fields?: {
|
|
2462
|
-
id: string;
|
|
2463
|
-
name: string;
|
|
2464
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
2465
|
-
options?: string[] | null | undefined;
|
|
2466
|
-
tag_ext_id: string;
|
|
2467
|
-
}[] | undefined;
|
|
2468
2504
|
field_values?: {
|
|
2469
2505
|
[x: string]: unknown;
|
|
2470
2506
|
} | undefined;
|
|
2507
|
+
links?: {
|
|
2508
|
+
docs?: {
|
|
2509
|
+
doc_ext_id: string;
|
|
2510
|
+
file_name: string;
|
|
2511
|
+
note?: string | null | undefined;
|
|
2512
|
+
citations_count: number;
|
|
2513
|
+
updated_at: string;
|
|
2514
|
+
}[] | undefined;
|
|
2515
|
+
facts?: {
|
|
2516
|
+
fact_ext_id: string;
|
|
2517
|
+
text: string;
|
|
2518
|
+
confirmed: boolean;
|
|
2519
|
+
updated_at: string;
|
|
2520
|
+
}[] | undefined;
|
|
2521
|
+
threads?: {
|
|
2522
|
+
conversation_ext_id: string;
|
|
2523
|
+
title?: string | null | undefined;
|
|
2524
|
+
updated_at: string;
|
|
2525
|
+
}[] | undefined;
|
|
2526
|
+
doc_count: number;
|
|
2527
|
+
fact_count: number;
|
|
2528
|
+
thread_count: number;
|
|
2529
|
+
} | null | undefined;
|
|
2471
2530
|
created_by_ext_id: string;
|
|
2472
2531
|
updated_by_ext_id?: string | null | undefined;
|
|
2473
2532
|
created_at: string;
|
|
@@ -2491,78 +2550,83 @@ declare function updateTag(arbi: ArbiClient, tagId: string, change: TagChange):
|
|
|
2491
2550
|
doctag_count: number;
|
|
2492
2551
|
facttag_count: number;
|
|
2493
2552
|
convotag_count: number;
|
|
2494
|
-
fields?: {
|
|
2495
|
-
id: string;
|
|
2496
|
-
name: string;
|
|
2497
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
2498
|
-
options?: string[] | null | undefined;
|
|
2499
|
-
tag_ext_id: string;
|
|
2500
|
-
}[] | undefined;
|
|
2501
2553
|
field_values?: {
|
|
2502
2554
|
[x: string]: unknown;
|
|
2503
2555
|
} | undefined;
|
|
2556
|
+
links?: {
|
|
2557
|
+
docs?: {
|
|
2558
|
+
doc_ext_id: string;
|
|
2559
|
+
file_name: string;
|
|
2560
|
+
note?: string | null | undefined;
|
|
2561
|
+
citations_count: number;
|
|
2562
|
+
updated_at: string;
|
|
2563
|
+
}[] | undefined;
|
|
2564
|
+
facts?: {
|
|
2565
|
+
fact_ext_id: string;
|
|
2566
|
+
text: string;
|
|
2567
|
+
confirmed: boolean;
|
|
2568
|
+
updated_at: string;
|
|
2569
|
+
}[] | undefined;
|
|
2570
|
+
threads?: {
|
|
2571
|
+
conversation_ext_id: string;
|
|
2572
|
+
title?: string | null | undefined;
|
|
2573
|
+
updated_at: string;
|
|
2574
|
+
}[] | undefined;
|
|
2575
|
+
doc_count: number;
|
|
2576
|
+
fact_count: number;
|
|
2577
|
+
thread_count: number;
|
|
2578
|
+
} | null | undefined;
|
|
2504
2579
|
created_by_ext_id: string;
|
|
2505
2580
|
updated_by_ext_id?: string | null | undefined;
|
|
2506
2581
|
created_at: string;
|
|
2507
2582
|
updated_at: string;
|
|
2508
2583
|
}>;
|
|
2584
|
+
/** Merge-patch a tag's values for its kind's fields (keyed by field id or name; `null` clears). */
|
|
2585
|
+
declare function setTagValues(arbi: ArbiClient, tagId: string, values: Record<string, unknown>): Promise<TagResponse>;
|
|
2586
|
+
/** Every kind's fields in the open workspace (built-in ones where it has not set its own). */
|
|
2587
|
+
declare function listTagKinds(arbi: ArbiClient): Promise<TagKindSchema[]>;
|
|
2588
|
+
/** A kind's fields in the open workspace: the columns of a table of its tags. */
|
|
2589
|
+
declare function getTagKind(arbi: ArbiClient, kind: TagKind): Promise<TagKindSchema>;
|
|
2509
2590
|
/**
|
|
2510
|
-
*
|
|
2511
|
-
* its
|
|
2512
|
-
*/
|
|
2513
|
-
declare function updateTagFields(arbi: ArbiClient, tagId: string, change: {
|
|
2514
|
-
fields?: TagFieldDefinition[];
|
|
2515
|
-
values?: Record<string, unknown>;
|
|
2516
|
-
}): Promise<TagResponse>;
|
|
2517
|
-
/** Which tags a matrix shows: a parent's children, or these tags in this order. */
|
|
2518
|
-
type TagMatrixSelection = {
|
|
2519
|
-
parentId: string;
|
|
2520
|
-
} | {
|
|
2521
|
-
tagIds: string[];
|
|
2522
|
-
};
|
|
2523
|
-
/**
|
|
2524
|
-
* The tag matrix: rows are tags (a parent's children, oldest first, or the given tags), each with
|
|
2525
|
-
* its fields and values, up to `linksLimit` of its newest documents and facts, and their totals
|
|
2526
|
-
* (`doc_count`, `fact_count`). With a parent, the parent comes back too: its fields are the columns.
|
|
2527
|
-
*/
|
|
2528
|
-
declare function getTagMatrix(arbi: ArbiClient, selection: TagMatrixSelection, linksLimit?: number): Promise<TagMatrixResponse>;
|
|
2529
|
-
/**
|
|
2530
|
-
* The columns of a matrix: the parent's fields (shared by every row), then the fields only some
|
|
2531
|
-
* rows define, each once (by id), in the order first seen. A row's value for a column is
|
|
2532
|
-
* `row.tag.field_values[column.id]` (values are keyed by field id).
|
|
2591
|
+
* Set a kind's fields, in full and in order: a field with its `id` is kept (its type cannot
|
|
2592
|
+
* change; its name and options can), one without is added, one left out is removed.
|
|
2533
2593
|
*/
|
|
2534
|
-
declare function
|
|
2535
|
-
/**
|
|
2536
|
-
declare
|
|
2594
|
+
declare function updateTagKind(arbi: ArbiClient, kind: TagKind, fields: TagFieldDefinition[]): Promise<TagKindSchema>;
|
|
2595
|
+
/** A kind's current fields as definitions to write back (every one kept, by id). */
|
|
2596
|
+
declare const kindFieldWrites: (fields: readonly TagKindField[]) => TagFieldDefinition[];
|
|
2537
2597
|
/**
|
|
2538
|
-
* The definitions to write so a
|
|
2598
|
+
* The definitions to write so a kind's fields become `wanted`: a field it already has with the
|
|
2539
2599
|
* same name (any case) keeps its id, so its values survive (its type cannot change). With
|
|
2540
|
-
* `keepOthers`, its other
|
|
2600
|
+
* `keepOthers`, its other fields stay too (after `wanted`); otherwise they are removed.
|
|
2541
2601
|
*/
|
|
2542
|
-
declare function
|
|
2602
|
+
declare function mergeKindFieldDefinitions(current: readonly TagKindField[], wanted: TagFieldDefinition[], { keepOthers }?: {
|
|
2543
2603
|
keepOthers?: boolean;
|
|
2544
2604
|
}): TagFieldDefinition[];
|
|
2545
2605
|
|
|
2606
|
+
declare const tags_FLAT_TAG_KINDS: typeof FLAT_TAG_KINDS;
|
|
2546
2607
|
declare const tags_TAG_FIELD_TYPES: typeof TAG_FIELD_TYPES;
|
|
2608
|
+
declare const tags_TAG_KINDS: typeof TAG_KINDS;
|
|
2547
2609
|
type tags_TagChange = TagChange;
|
|
2548
|
-
type tags_TagField = TagField;
|
|
2549
2610
|
type tags_TagFieldDefinition = TagFieldDefinition;
|
|
2550
|
-
type
|
|
2551
|
-
type
|
|
2552
|
-
type
|
|
2611
|
+
type tags_TagKind = TagKind;
|
|
2612
|
+
type tags_TagKindField = TagKindField;
|
|
2613
|
+
type tags_TagKindSchema = TagKindSchema;
|
|
2614
|
+
type tags_TagLinks = TagLinks;
|
|
2615
|
+
type tags_TagListQuery = TagListQuery;
|
|
2553
2616
|
type tags_TagResponse = TagResponse;
|
|
2554
2617
|
type tags_UpdateTagRequest = UpdateTagRequest;
|
|
2555
2618
|
declare const tags_createTag: typeof createTag;
|
|
2556
2619
|
declare const tags_deleteTag: typeof deleteTag;
|
|
2557
|
-
declare const
|
|
2620
|
+
declare const tags_getTagKind: typeof getTagKind;
|
|
2621
|
+
declare const tags_kindFieldWrites: typeof kindFieldWrites;
|
|
2622
|
+
declare const tags_listTagKinds: typeof listTagKinds;
|
|
2558
2623
|
declare const tags_listTags: typeof listTags;
|
|
2559
|
-
declare const
|
|
2560
|
-
declare const
|
|
2561
|
-
declare const tags_tagMatrixColumns: typeof tagMatrixColumns;
|
|
2624
|
+
declare const tags_mergeKindFieldDefinitions: typeof mergeKindFieldDefinitions;
|
|
2625
|
+
declare const tags_setTagValues: typeof setTagValues;
|
|
2562
2626
|
declare const tags_updateTag: typeof updateTag;
|
|
2563
|
-
declare const
|
|
2627
|
+
declare const tags_updateTagKind: typeof updateTagKind;
|
|
2564
2628
|
declare namespace tags {
|
|
2565
|
-
export { tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, type tags_TagChange as TagChange, type
|
|
2629
|
+
export { tags_FLAT_TAG_KINDS as FLAT_TAG_KINDS, tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, tags_TAG_KINDS as TAG_KINDS, type tags_TagChange as TagChange, type tags_TagFieldDefinition as TagFieldDefinition, type tags_TagKind as TagKind, type tags_TagKindField as TagKindField, type tags_TagKindSchema as TagKindSchema, type tags_TagLinks as TagLinks, type tags_TagListQuery as TagListQuery, type tags_TagResponse as TagResponse, type tags_UpdateTagRequest as UpdateTagRequest, tags_createTag as createTag, tags_deleteTag as deleteTag, tags_getTagKind as getTagKind, tags_kindFieldWrites as kindFieldWrites, tags_listTagKinds as listTagKinds, tags_listTags as listTags, tags_mergeKindFieldDefinitions as mergeKindFieldDefinitions, tags_setTagValues as setTagValues, tags_updateTag as updateTag, tags_updateTagKind as updateTagKind };
|
|
2566
2630
|
}
|
|
2567
2631
|
|
|
2568
2632
|
/**
|
|
@@ -5385,14 +5449,14 @@ declare class Arbi {
|
|
|
5385
5449
|
email: string;
|
|
5386
5450
|
}>;
|
|
5387
5451
|
/**
|
|
5388
|
-
* Change (or, after recovery, set) the master password
|
|
5389
|
-
*
|
|
5390
|
-
*
|
|
5452
|
+
* Change (or, after recovery, set) the master password. Omit `currentPassword` in recovery
|
|
5453
|
+
* mode. One request: the account identity is re-wrapped under the new password and nothing is
|
|
5454
|
+
* re-encrypted, so the session, the workspace keys and the recovery key all stay as they are.
|
|
5391
5455
|
*/
|
|
5392
5456
|
changePassword: (params: {
|
|
5393
5457
|
newPassword: string;
|
|
5394
5458
|
currentPassword?: string;
|
|
5395
|
-
}) => Promise<
|
|
5459
|
+
}) => Promise<void>;
|
|
5396
5460
|
/** Close the account (soft delete) and sign out. Refused while a subscription is active. */
|
|
5397
5461
|
requestDeletion: () => Promise<{
|
|
5398
5462
|
detail: string;
|
|
@@ -7302,6 +7366,16 @@ declare class Arbi {
|
|
|
7302
7366
|
readonly editor: {
|
|
7303
7367
|
request: (path: string, options?: RequestInit) => Promise<Response>;
|
|
7304
7368
|
};
|
|
7369
|
+
/**
|
|
7370
|
+
* Mail transport for `/v1/mail` (the native inbox and connected accounts), with normal session
|
|
7371
|
+
* recovery. Pass `fetch` to the `mail` operations, e.g. `mail.listFolders(arbi.mail.fetch)`.
|
|
7372
|
+
*/
|
|
7373
|
+
readonly mail: {
|
|
7374
|
+
/** Fetch a path under `/v1/mail`; rejects a non-2xx response with an `ArbiApiError` (`status`). */
|
|
7375
|
+
fetch: (path: string, init?: RequestInit) => Promise<Response>;
|
|
7376
|
+
/** Unlock the signed-in user's native inbox for this server session (see `unlockNativeMail`). */
|
|
7377
|
+
unlockNative: () => Promise<void>;
|
|
7378
|
+
};
|
|
7305
7379
|
readonly assistant: {
|
|
7306
7380
|
cancelRun: (responseId: string) => Promise<void>;
|
|
7307
7381
|
/** Start a durable background turn; task options make its thread a work item. */
|
|
@@ -7374,7 +7448,12 @@ declare class Arbi {
|
|
|
7374
7448
|
}) => Promise<RetrieveResult>;
|
|
7375
7449
|
};
|
|
7376
7450
|
readonly tags: {
|
|
7377
|
-
|
|
7451
|
+
/**
|
|
7452
|
+
* The workspace's tags, filtered (`kind`, `parentId`, `ids`) and with `include: ['links']`
|
|
7453
|
+
* each tag's documents, facts and threads: `list({ kind: 'issue', include: ['links'] })` is the
|
|
7454
|
+
* issue table's rows (its columns: `tagKinds.get('issue')`).
|
|
7455
|
+
*/
|
|
7456
|
+
list: (query?: TagListQuery) => Promise<{
|
|
7378
7457
|
external_id: string;
|
|
7379
7458
|
workspace_ext_id: string;
|
|
7380
7459
|
name: string;
|
|
@@ -7389,16 +7468,32 @@ declare class Arbi {
|
|
|
7389
7468
|
doctag_count: number;
|
|
7390
7469
|
facttag_count: number;
|
|
7391
7470
|
convotag_count: number;
|
|
7392
|
-
fields?: {
|
|
7393
|
-
id: string;
|
|
7394
|
-
name: string;
|
|
7395
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
7396
|
-
options?: string[] | null | undefined;
|
|
7397
|
-
tag_ext_id: string;
|
|
7398
|
-
}[] | undefined;
|
|
7399
7471
|
field_values?: {
|
|
7400
7472
|
[x: string]: unknown;
|
|
7401
7473
|
} | undefined;
|
|
7474
|
+
links?: {
|
|
7475
|
+
docs?: {
|
|
7476
|
+
doc_ext_id: string;
|
|
7477
|
+
file_name: string;
|
|
7478
|
+
note?: string | null | undefined;
|
|
7479
|
+
citations_count: number;
|
|
7480
|
+
updated_at: string;
|
|
7481
|
+
}[] | undefined;
|
|
7482
|
+
facts?: {
|
|
7483
|
+
fact_ext_id: string;
|
|
7484
|
+
text: string;
|
|
7485
|
+
confirmed: boolean;
|
|
7486
|
+
updated_at: string;
|
|
7487
|
+
}[] | undefined;
|
|
7488
|
+
threads?: {
|
|
7489
|
+
conversation_ext_id: string;
|
|
7490
|
+
title?: string | null | undefined;
|
|
7491
|
+
updated_at: string;
|
|
7492
|
+
}[] | undefined;
|
|
7493
|
+
doc_count: number;
|
|
7494
|
+
fact_count: number;
|
|
7495
|
+
thread_count: number;
|
|
7496
|
+
} | null | undefined;
|
|
7402
7497
|
created_by_ext_id: string;
|
|
7403
7498
|
updated_by_ext_id?: string | null | undefined;
|
|
7404
7499
|
created_at: string;
|
|
@@ -7410,8 +7505,10 @@ declare class Arbi {
|
|
|
7410
7505
|
tagType?: TagFormat;
|
|
7411
7506
|
instruction?: string | null;
|
|
7412
7507
|
shared?: boolean;
|
|
7508
|
+
/** What the tag is (`'issue'`: an issue; flat, no parent). Absent: from the format. */
|
|
7509
|
+
kind?: TagKind | null;
|
|
7413
7510
|
parentId?: string | null;
|
|
7414
|
-
fields
|
|
7511
|
+
/** Values for its kind's fields, keyed by field id or name. */
|
|
7415
7512
|
fieldValues?: Record<string, unknown> | null;
|
|
7416
7513
|
}) => Promise<{
|
|
7417
7514
|
external_id: string;
|
|
@@ -7428,16 +7525,32 @@ declare class Arbi {
|
|
|
7428
7525
|
doctag_count: number;
|
|
7429
7526
|
facttag_count: number;
|
|
7430
7527
|
convotag_count: number;
|
|
7431
|
-
fields?: {
|
|
7432
|
-
id: string;
|
|
7433
|
-
name: string;
|
|
7434
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
7435
|
-
options?: string[] | null | undefined;
|
|
7436
|
-
tag_ext_id: string;
|
|
7437
|
-
}[] | undefined;
|
|
7438
7528
|
field_values?: {
|
|
7439
7529
|
[x: string]: unknown;
|
|
7440
7530
|
} | undefined;
|
|
7531
|
+
links?: {
|
|
7532
|
+
docs?: {
|
|
7533
|
+
doc_ext_id: string;
|
|
7534
|
+
file_name: string;
|
|
7535
|
+
note?: string | null | undefined;
|
|
7536
|
+
citations_count: number;
|
|
7537
|
+
updated_at: string;
|
|
7538
|
+
}[] | undefined;
|
|
7539
|
+
facts?: {
|
|
7540
|
+
fact_ext_id: string;
|
|
7541
|
+
text: string;
|
|
7542
|
+
confirmed: boolean;
|
|
7543
|
+
updated_at: string;
|
|
7544
|
+
}[] | undefined;
|
|
7545
|
+
threads?: {
|
|
7546
|
+
conversation_ext_id: string;
|
|
7547
|
+
title?: string | null | undefined;
|
|
7548
|
+
updated_at: string;
|
|
7549
|
+
}[] | undefined;
|
|
7550
|
+
doc_count: number;
|
|
7551
|
+
fact_count: number;
|
|
7552
|
+
thread_count: number;
|
|
7553
|
+
} | null | undefined;
|
|
7441
7554
|
created_by_ext_id: string;
|
|
7442
7555
|
updated_by_ext_id?: string | null | undefined;
|
|
7443
7556
|
created_at: string;
|
|
@@ -7461,26 +7574,39 @@ declare class Arbi {
|
|
|
7461
7574
|
doctag_count: number;
|
|
7462
7575
|
facttag_count: number;
|
|
7463
7576
|
convotag_count: number;
|
|
7464
|
-
fields?: {
|
|
7465
|
-
id: string;
|
|
7466
|
-
name: string;
|
|
7467
|
-
type: "text" | "number" | "date" | "checkbox" | "select" | "person" | "document" | "relation" | "lookup" | "rollup";
|
|
7468
|
-
options?: string[] | null | undefined;
|
|
7469
|
-
tag_ext_id: string;
|
|
7470
|
-
}[] | undefined;
|
|
7471
7577
|
field_values?: {
|
|
7472
7578
|
[x: string]: unknown;
|
|
7473
7579
|
} | undefined;
|
|
7580
|
+
links?: {
|
|
7581
|
+
docs?: {
|
|
7582
|
+
doc_ext_id: string;
|
|
7583
|
+
file_name: string;
|
|
7584
|
+
note?: string | null | undefined;
|
|
7585
|
+
citations_count: number;
|
|
7586
|
+
updated_at: string;
|
|
7587
|
+
}[] | undefined;
|
|
7588
|
+
facts?: {
|
|
7589
|
+
fact_ext_id: string;
|
|
7590
|
+
text: string;
|
|
7591
|
+
confirmed: boolean;
|
|
7592
|
+
updated_at: string;
|
|
7593
|
+
}[] | undefined;
|
|
7594
|
+
threads?: {
|
|
7595
|
+
conversation_ext_id: string;
|
|
7596
|
+
title?: string | null | undefined;
|
|
7597
|
+
updated_at: string;
|
|
7598
|
+
}[] | undefined;
|
|
7599
|
+
doc_count: number;
|
|
7600
|
+
fact_count: number;
|
|
7601
|
+
thread_count: number;
|
|
7602
|
+
} | null | undefined;
|
|
7474
7603
|
created_by_ext_id: string;
|
|
7475
7604
|
updated_by_ext_id?: string | null | undefined;
|
|
7476
7605
|
created_at: string;
|
|
7477
7606
|
updated_at: string;
|
|
7478
7607
|
}>;
|
|
7479
|
-
/**
|
|
7480
|
-
|
|
7481
|
-
fields?: TagFieldDefinition[];
|
|
7482
|
-
values?: Record<string, unknown>;
|
|
7483
|
-
}) => Promise<{
|
|
7608
|
+
/** Merge-patch a tag's values for its kind's fields (`null` clears one). */
|
|
7609
|
+
setValues: (tagId: string, values: Record<string, unknown>) => Promise<{
|
|
7484
7610
|
external_id: string;
|
|
7485
7611
|
workspace_ext_id: string;
|
|
7486
7612
|
name: string;
|
|
@@ -7492,21 +7618,23 @@ declare class Arbi {
|
|
|
7492
7618
|
doctag_count: number;
|
|
7493
7619
|
facttag_count: number;
|
|
7494
7620
|
convotag_count: number;
|
|
7495
|
-
fields?: components["schemas"]["TagField"][];
|
|
7496
7621
|
field_values?: {
|
|
7497
7622
|
[key: string]: unknown;
|
|
7498
7623
|
};
|
|
7624
|
+
links?: components["schemas"]["TagLinks"] | null;
|
|
7499
7625
|
created_by_ext_id: string;
|
|
7500
7626
|
updated_by_ext_id?: string | null;
|
|
7501
7627
|
created_at: string;
|
|
7502
7628
|
updated_at: string;
|
|
7503
7629
|
}>;
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7630
|
+
};
|
|
7631
|
+
readonly tagKinds: {
|
|
7632
|
+
/** Every kind's fields (the built-in ones where the workspace has not set its own). */
|
|
7633
|
+
list: () => Promise<TagKindSchema[]>;
|
|
7634
|
+
/** A kind's fields: the columns of a table of its tags. */
|
|
7635
|
+
get: (kind: TagKind) => Promise<TagKindSchema>;
|
|
7636
|
+
/** Set a kind's fields in full (ids keep fields and their values; the rest are new). */
|
|
7637
|
+
update: (kind: TagKind, fields: TagFieldDefinition[]) => Promise<TagKindSchema>;
|
|
7510
7638
|
};
|
|
7511
7639
|
readonly doctags: {
|
|
7512
7640
|
assign: (tagId: string, docIds: string[], note?: string | null) => Promise<{
|
|
@@ -7756,6 +7884,9 @@ declare class Arbi {
|
|
|
7756
7884
|
use_s3_direct_upload: boolean;
|
|
7757
7885
|
hide_online_status: boolean;
|
|
7758
7886
|
muted_users: string[];
|
|
7887
|
+
muted_workspaces: string[];
|
|
7888
|
+
followed_workspaces: string[];
|
|
7889
|
+
followed_threads: string[];
|
|
7759
7890
|
email_notifications?: {
|
|
7760
7891
|
messages: boolean;
|
|
7761
7892
|
workspace_added: boolean;
|
|
@@ -9178,6 +9309,9 @@ declare function getSettings(arbi: ArbiClient): Promise<{
|
|
|
9178
9309
|
use_s3_direct_upload: boolean;
|
|
9179
9310
|
hide_online_status: boolean;
|
|
9180
9311
|
muted_users: string[];
|
|
9312
|
+
muted_workspaces: string[];
|
|
9313
|
+
followed_workspaces: string[];
|
|
9314
|
+
followed_threads: string[];
|
|
9181
9315
|
email_notifications?: {
|
|
9182
9316
|
messages: boolean;
|
|
9183
9317
|
workspace_added: boolean;
|
|
@@ -9830,4 +9964,4 @@ declare namespace identity {
|
|
|
9830
9964
|
export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
|
|
9831
9965
|
}
|
|
9832
9966
|
|
|
9833
|
-
export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type
|
|
9967
|
+
export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type TagResponse as a$, type MailAttachment as a0, type MessageLevel as a1, type MessageMetadataPayload$1 as a2, type MessageQueuedEvent as a3, type OutputTokensDetails as a4, type ParsedSlashCommand as a5, type PendingAuthResponse as a6, PlanStepsError as a7, type PlanWorkRequest as a8, type ProbeAnswerEvent as a9, type RunWaitingOn as aA, type SSEEvent as aB, type SSEStreamCallbacks as aC, type SSEStreamResult as aD, type SSEStreamStartData as aE, SUPPORTED_EXTENSIONS as aF, type SendBack as aG, type SkillSummary as aH, type SkippedFile as aI, type StepActionRequest as aJ, type StepActivityEvent as aK, type StepAssignee as aL, type StepField as aM, type StepKind as aN, type StepPhase as aO, type StepSignal as aP, type StepSignalWhen as aQ, type StepState as aR, type StepStatus as aS, type SubmitBackgroundQueryOptions as aT, type TagChange as aU, type TagFieldDefinition as aV, type TagKind as aW, type TagKindField as aX, type TagKindSchema as aY, type TagLinks as aZ, type TagListQuery as a_, type ProjectBudget as aa, type ProjectConversationUsageResponse as ab, type ProjectDetails as ac, type ProjectEventKind as ad, type ProjectEventResponse as ae, type ProjectInvoicesResponse as af, type ProjectResponse as ag, type ProjectUpdateRequest as ah, type ProjectUsageResponse as ai, type QueryOptions as aj, type RaisedSignal as ak, type ReconnectOptions as al, type ReconnectableWsConnection as am, type ResolvedCitation as an, type ResolvedRecipient as ao, type ResponseCompletedEvent as ap, type ResponseContentPartAddedEvent as aq, type ResponseCreatedEvent as ar, type ResponseFailedEvent as as, type ResponseOutputItemAddedEvent as at, type ResponseOutputItemDoneEvent as au, type ResponseOutputTextDeltaEvent as av, type ResponseOutputTextDoneEvent as aw, type ResponseUsage as ax, type RunProgress as ay, type RunStep as az, type AgentControlStateEvent as b, mail as b$, type TaskPlan as b0, type TaskPlanStep as b1, type TokenBudgetContext as b2, type UpdateConversationRequest as b3, type UpdateFactRequest as b4, type UpdateWorkflowRequest as b5, type UploadBatchResult as b6, type UploadDirectOptions as b7, type UploadDirectResult as b8, type UploadOptions as b9, consumeSSEStream as bA, contacts as bB, conversations as bC, countCitations as bD, createAuthenticatedClient as bE, createDocumentWaiter as bF, dm as bG, doctags as bH, documents as bI, facts as bJ, files as bK, filterSkills as bL, formatAgentStepLabel as bM, formatFileSize as bN, formatItemLabel as bO, formatStreamSummary as bP, formatUserName as bQ, formatWorkspaceChoices as bR, formatWsMessage as bS, generateEncryptedWorkspaceKey as bT, generateNewWorkspaceKey as bU, getErrorCode as bV, getErrorMessage as bW, getRawWorkspaceKey as bX, health as bY, identity as bZ, identityErrorCode as b_, type UploadResult as ba, type UsageBreakdown as bb, type UserDailyUsageResponse as bc, type UserInfo as bd, type UserInputRequestEvent as be, type UserMessageEvent as bf, WebSocketAuthError as bg, type WorkStatus as bh, type WorkflowAuthMode as bi, type WorkflowResponse as bj, type WorkflowRunHistoryResponse as bk, type WorkflowRunResponse as bl, type WorkspaceContext as bm, type WsConnection as bn, account as bo, agentconfig as bp, agents as bq, assistant as br, authenticatedFetch as bs, buildDocNameMap as bt, buildFactsContextTool as bu, buildRetrievalChunkTool as bv, buildRetrievalFullContextTool as bw, buildRetrievalTocTool as bx, connectWebSocket as by, connectWithReconnect as bz, type AgentStepDeltaEvent as c, parseSSEEvents as c0, parseSlashCommand as c1, parseSlashTokenInProgress as c2, performPasswordLogin as c3, performSigningKeyLogin as c4, performSsoDeviceFlowLogin as c5, profile as c6, projects as c7, requireData as c8, requireOk as c9, resolveAuth as ca, resolveCitations as cb, resolveWorkspace as cc, responses as cd, selectWorkspace as ce, selectWorkspaceById as cf, sessions as cg, settings as ch, streamSSE as ci, stripCitationMarkdown as cj, summarizeCitations as ck, tags as cl, work as cm, workflowSteps as cn, workflows as co, workspaces as cp, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
|