@arbidocs/sdk 0.4.84 → 0.4.85
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-BOIk_RaR.d.cts} +247 -112
- package/dist/{browser-uyIwS2cN.d.ts → browser-BOIk_RaR.d.ts} +247 -112
- package/dist/browser.cjs +244 -172
- 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 +244 -172
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +244 -172
- 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 +244 -172
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2381,27 +2381,55 @@ declare namespace responses {
|
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
2383
|
/**
|
|
2384
|
-
* Tag operations — list, create, delete, update,
|
|
2384
|
+
* Tag operations — list (with filters and links), create, delete, update, values, and the
|
|
2385
|
+
* workspace's fields per tag kind.
|
|
2385
2386
|
*
|
|
2386
|
-
* A tag
|
|
2387
|
-
*
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2387
|
+
* A tag's kind (label, annotation, search, issue, person, organisation) has one field list per
|
|
2388
|
+
* workspace: the columns of a table of that kind's tags (`getTagKind(arbi, 'issue')`: the
|
|
2389
|
+
* workspace's issue fields). Each tag holds its own values for them (`field_values`, keyed by
|
|
2390
|
+
* field id). Issues, people and organisations are flat: no parent, no children.
|
|
2391
|
+
*
|
|
2392
|
+
* A table of tags is the list, filtered and expanded: `listTags(arbi, { kind: 'issue', include:
|
|
2393
|
+
* ['links'] })` is every issue with its values and the documents, facts and threads linked to it.
|
|
2390
2394
|
*/
|
|
2391
2395
|
|
|
2392
2396
|
type TagResponse = components['schemas']['TagResponse'];
|
|
2397
|
+
/** What a tag is: a label, annotation, search, issue, person or organisation. */
|
|
2398
|
+
type TagKind = NonNullable<components['schemas']['CreateTagRequest']['kind']>;
|
|
2393
2399
|
type UpdateTagRequest = components['schemas']['UpdateTagRequest'];
|
|
2394
|
-
/** A change to a tag: only what is given changes
|
|
2395
|
-
type TagChange =
|
|
2400
|
+
/** A change to a tag: only what is given changes. */
|
|
2401
|
+
type TagChange = UpdateTagRequest;
|
|
2402
|
+
/** A field of a kind, as the API returns it. */
|
|
2403
|
+
type TagKindField = components['schemas']['FieldDefinition'];
|
|
2396
2404
|
/** A field definition to write (`id` keeps an existing field, so renaming keeps its values). */
|
|
2397
2405
|
type TagFieldDefinition = components['schemas']['FieldDefinitionWrite'];
|
|
2398
|
-
/** A
|
|
2399
|
-
type
|
|
2400
|
-
|
|
2401
|
-
|
|
2406
|
+
/** A kind's fields in a workspace: the columns of a table of its tags (`fields` always a list). */
|
|
2407
|
+
type TagKindSchema = Omit<components['schemas']['TagKindSchema'], 'fields'> & {
|
|
2408
|
+
fields: TagKindField[];
|
|
2409
|
+
};
|
|
2410
|
+
/** A tag's documents, facts and threads (with `include: ['links']`). */
|
|
2411
|
+
type TagLinks = components['schemas']['TagLinks'];
|
|
2412
|
+
/** Every tag kind, in the order a Tags page lists them. */
|
|
2413
|
+
declare const TAG_KINDS: readonly TagKind[];
|
|
2414
|
+
/** Kinds that are flat: a tag of one has no parent and is no tag's parent. */
|
|
2415
|
+
declare const FLAT_TAG_KINDS: readonly TagKind[];
|
|
2402
2416
|
/** The types a tag field can have. */
|
|
2403
2417
|
declare const TAG_FIELD_TYPES: readonly TagFieldDefinition['type'][];
|
|
2404
|
-
|
|
2418
|
+
/** Which tags to list, and what to bring with each. Filters combine. */
|
|
2419
|
+
interface TagListQuery {
|
|
2420
|
+
/** Only tags of this kind (`'issue'`: every issue). */
|
|
2421
|
+
kind?: TagKind;
|
|
2422
|
+
/** Only this tag's children (a label hierarchy). */
|
|
2423
|
+
parentId?: string;
|
|
2424
|
+
/** Only these tags, in this order. */
|
|
2425
|
+
ids?: string[];
|
|
2426
|
+
/** `'links'`: each tag's documents (with the doctag's note), facts and threads, and counts. */
|
|
2427
|
+
include?: 'links'[];
|
|
2428
|
+
/** With links: most documents, facts and threads per tag (newest first). Default 50. */
|
|
2429
|
+
linksLimit?: number;
|
|
2430
|
+
}
|
|
2431
|
+
/** The tags of the open workspace (oldest first, or in the order of `ids`). */
|
|
2432
|
+
declare function listTags(arbi: ArbiClient, query?: TagListQuery): Promise<{
|
|
2405
2433
|
external_id: string;
|
|
2406
2434
|
workspace_ext_id: string;
|
|
2407
2435
|
name: string;
|
|
@@ -2416,16 +2444,32 @@ declare function listTags(arbi: ArbiClient): Promise<{
|
|
|
2416
2444
|
doctag_count: number;
|
|
2417
2445
|
facttag_count: number;
|
|
2418
2446
|
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
2447
|
field_values?: {
|
|
2427
2448
|
[x: string]: unknown;
|
|
2428
2449
|
} | undefined;
|
|
2450
|
+
links?: {
|
|
2451
|
+
docs?: {
|
|
2452
|
+
doc_ext_id: string;
|
|
2453
|
+
file_name: string;
|
|
2454
|
+
note?: string | null | undefined;
|
|
2455
|
+
citations_count: number;
|
|
2456
|
+
updated_at: string;
|
|
2457
|
+
}[] | undefined;
|
|
2458
|
+
facts?: {
|
|
2459
|
+
fact_ext_id: string;
|
|
2460
|
+
text: string;
|
|
2461
|
+
confirmed: boolean;
|
|
2462
|
+
updated_at: string;
|
|
2463
|
+
}[] | undefined;
|
|
2464
|
+
threads?: {
|
|
2465
|
+
conversation_ext_id: string;
|
|
2466
|
+
title?: string | null | undefined;
|
|
2467
|
+
updated_at: string;
|
|
2468
|
+
}[] | undefined;
|
|
2469
|
+
doc_count: number;
|
|
2470
|
+
fact_count: number;
|
|
2471
|
+
thread_count: number;
|
|
2472
|
+
} | null | undefined;
|
|
2429
2473
|
created_by_ext_id: string;
|
|
2430
2474
|
updated_by_ext_id?: string | null | undefined;
|
|
2431
2475
|
created_at: string;
|
|
@@ -2437,11 +2481,11 @@ declare function createTag(arbi: ArbiClient, options: {
|
|
|
2437
2481
|
tagType?: components['schemas']['TagFormat'];
|
|
2438
2482
|
instruction?: string | null;
|
|
2439
2483
|
shared?: boolean;
|
|
2440
|
-
/**
|
|
2484
|
+
/** What the tag is. Absent: from the format (checkbox: a label). Never from the parent. */
|
|
2485
|
+
kind?: TagKind | null;
|
|
2486
|
+
/** Nest it under this tag (labels and annotations only: issues and entities are flat). */
|
|
2441
2487
|
parentId?: string | null;
|
|
2442
|
-
/**
|
|
2443
|
-
fields?: TagFieldDefinition[] | null;
|
|
2444
|
-
/** Values for its fields (and its parent's). */
|
|
2488
|
+
/** Values for its kind's fields, keyed by field id or name. */
|
|
2445
2489
|
fieldValues?: Record<string, unknown> | null;
|
|
2446
2490
|
}): Promise<{
|
|
2447
2491
|
external_id: string;
|
|
@@ -2458,16 +2502,32 @@ declare function createTag(arbi: ArbiClient, options: {
|
|
|
2458
2502
|
doctag_count: number;
|
|
2459
2503
|
facttag_count: number;
|
|
2460
2504
|
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
2505
|
field_values?: {
|
|
2469
2506
|
[x: string]: unknown;
|
|
2470
2507
|
} | undefined;
|
|
2508
|
+
links?: {
|
|
2509
|
+
docs?: {
|
|
2510
|
+
doc_ext_id: string;
|
|
2511
|
+
file_name: string;
|
|
2512
|
+
note?: string | null | undefined;
|
|
2513
|
+
citations_count: number;
|
|
2514
|
+
updated_at: string;
|
|
2515
|
+
}[] | undefined;
|
|
2516
|
+
facts?: {
|
|
2517
|
+
fact_ext_id: string;
|
|
2518
|
+
text: string;
|
|
2519
|
+
confirmed: boolean;
|
|
2520
|
+
updated_at: string;
|
|
2521
|
+
}[] | undefined;
|
|
2522
|
+
threads?: {
|
|
2523
|
+
conversation_ext_id: string;
|
|
2524
|
+
title?: string | null | undefined;
|
|
2525
|
+
updated_at: string;
|
|
2526
|
+
}[] | undefined;
|
|
2527
|
+
doc_count: number;
|
|
2528
|
+
fact_count: number;
|
|
2529
|
+
thread_count: number;
|
|
2530
|
+
} | null | undefined;
|
|
2471
2531
|
created_by_ext_id: string;
|
|
2472
2532
|
updated_by_ext_id?: string | null | undefined;
|
|
2473
2533
|
created_at: string;
|
|
@@ -2491,78 +2551,83 @@ declare function updateTag(arbi: ArbiClient, tagId: string, change: TagChange):
|
|
|
2491
2551
|
doctag_count: number;
|
|
2492
2552
|
facttag_count: number;
|
|
2493
2553
|
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
2554
|
field_values?: {
|
|
2502
2555
|
[x: string]: unknown;
|
|
2503
2556
|
} | undefined;
|
|
2557
|
+
links?: {
|
|
2558
|
+
docs?: {
|
|
2559
|
+
doc_ext_id: string;
|
|
2560
|
+
file_name: string;
|
|
2561
|
+
note?: string | null | undefined;
|
|
2562
|
+
citations_count: number;
|
|
2563
|
+
updated_at: string;
|
|
2564
|
+
}[] | undefined;
|
|
2565
|
+
facts?: {
|
|
2566
|
+
fact_ext_id: string;
|
|
2567
|
+
text: string;
|
|
2568
|
+
confirmed: boolean;
|
|
2569
|
+
updated_at: string;
|
|
2570
|
+
}[] | undefined;
|
|
2571
|
+
threads?: {
|
|
2572
|
+
conversation_ext_id: string;
|
|
2573
|
+
title?: string | null | undefined;
|
|
2574
|
+
updated_at: string;
|
|
2575
|
+
}[] | undefined;
|
|
2576
|
+
doc_count: number;
|
|
2577
|
+
fact_count: number;
|
|
2578
|
+
thread_count: number;
|
|
2579
|
+
} | null | undefined;
|
|
2504
2580
|
created_by_ext_id: string;
|
|
2505
2581
|
updated_by_ext_id?: string | null | undefined;
|
|
2506
2582
|
created_at: string;
|
|
2507
2583
|
updated_at: string;
|
|
2508
2584
|
}>;
|
|
2585
|
+
/** Merge-patch a tag's values for its kind's fields (keyed by field id or name; `null` clears). */
|
|
2586
|
+
declare function setTagValues(arbi: ArbiClient, tagId: string, values: Record<string, unknown>): Promise<TagResponse>;
|
|
2587
|
+
/** Every kind's fields in the open workspace (built-in ones where it has not set its own). */
|
|
2588
|
+
declare function listTagKinds(arbi: ArbiClient): Promise<TagKindSchema[]>;
|
|
2589
|
+
/** A kind's fields in the open workspace: the columns of a table of its tags. */
|
|
2590
|
+
declare function getTagKind(arbi: ArbiClient, kind: TagKind): Promise<TagKindSchema>;
|
|
2509
2591
|
/**
|
|
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).
|
|
2592
|
+
* Set a kind's fields, in full and in order: a field with its `id` is kept (its type cannot
|
|
2593
|
+
* change; its name and options can), one without is added, one left out is removed.
|
|
2533
2594
|
*/
|
|
2534
|
-
declare function
|
|
2535
|
-
/**
|
|
2536
|
-
declare
|
|
2595
|
+
declare function updateTagKind(arbi: ArbiClient, kind: TagKind, fields: TagFieldDefinition[]): Promise<TagKindSchema>;
|
|
2596
|
+
/** A kind's current fields as definitions to write back (every one kept, by id). */
|
|
2597
|
+
declare const kindFieldWrites: (fields: readonly TagKindField[]) => TagFieldDefinition[];
|
|
2537
2598
|
/**
|
|
2538
|
-
* The definitions to write so a
|
|
2599
|
+
* The definitions to write so a kind's fields become `wanted`: a field it already has with the
|
|
2539
2600
|
* same name (any case) keeps its id, so its values survive (its type cannot change). With
|
|
2540
|
-
* `keepOthers`, its other
|
|
2601
|
+
* `keepOthers`, its other fields stay too (after `wanted`); otherwise they are removed.
|
|
2541
2602
|
*/
|
|
2542
|
-
declare function
|
|
2603
|
+
declare function mergeKindFieldDefinitions(current: readonly TagKindField[], wanted: TagFieldDefinition[], { keepOthers }?: {
|
|
2543
2604
|
keepOthers?: boolean;
|
|
2544
2605
|
}): TagFieldDefinition[];
|
|
2545
2606
|
|
|
2607
|
+
declare const tags_FLAT_TAG_KINDS: typeof FLAT_TAG_KINDS;
|
|
2546
2608
|
declare const tags_TAG_FIELD_TYPES: typeof TAG_FIELD_TYPES;
|
|
2609
|
+
declare const tags_TAG_KINDS: typeof TAG_KINDS;
|
|
2547
2610
|
type tags_TagChange = TagChange;
|
|
2548
|
-
type tags_TagField = TagField;
|
|
2549
2611
|
type tags_TagFieldDefinition = TagFieldDefinition;
|
|
2550
|
-
type
|
|
2551
|
-
type
|
|
2552
|
-
type
|
|
2612
|
+
type tags_TagKind = TagKind;
|
|
2613
|
+
type tags_TagKindField = TagKindField;
|
|
2614
|
+
type tags_TagKindSchema = TagKindSchema;
|
|
2615
|
+
type tags_TagLinks = TagLinks;
|
|
2616
|
+
type tags_TagListQuery = TagListQuery;
|
|
2553
2617
|
type tags_TagResponse = TagResponse;
|
|
2554
2618
|
type tags_UpdateTagRequest = UpdateTagRequest;
|
|
2555
2619
|
declare const tags_createTag: typeof createTag;
|
|
2556
2620
|
declare const tags_deleteTag: typeof deleteTag;
|
|
2557
|
-
declare const
|
|
2621
|
+
declare const tags_getTagKind: typeof getTagKind;
|
|
2622
|
+
declare const tags_kindFieldWrites: typeof kindFieldWrites;
|
|
2623
|
+
declare const tags_listTagKinds: typeof listTagKinds;
|
|
2558
2624
|
declare const tags_listTags: typeof listTags;
|
|
2559
|
-
declare const
|
|
2560
|
-
declare const
|
|
2561
|
-
declare const tags_tagMatrixColumns: typeof tagMatrixColumns;
|
|
2625
|
+
declare const tags_mergeKindFieldDefinitions: typeof mergeKindFieldDefinitions;
|
|
2626
|
+
declare const tags_setTagValues: typeof setTagValues;
|
|
2562
2627
|
declare const tags_updateTag: typeof updateTag;
|
|
2563
|
-
declare const
|
|
2628
|
+
declare const tags_updateTagKind: typeof updateTagKind;
|
|
2564
2629
|
declare namespace tags {
|
|
2565
|
-
export { tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, type tags_TagChange as TagChange, type
|
|
2630
|
+
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
2631
|
}
|
|
2567
2632
|
|
|
2568
2633
|
/**
|
|
@@ -7302,6 +7367,16 @@ declare class Arbi {
|
|
|
7302
7367
|
readonly editor: {
|
|
7303
7368
|
request: (path: string, options?: RequestInit) => Promise<Response>;
|
|
7304
7369
|
};
|
|
7370
|
+
/**
|
|
7371
|
+
* Mail transport for `/v1/mail` (the native inbox and connected accounts), with normal session
|
|
7372
|
+
* recovery. Pass `fetch` to the `mail` operations, e.g. `mail.listFolders(arbi.mail.fetch)`.
|
|
7373
|
+
*/
|
|
7374
|
+
readonly mail: {
|
|
7375
|
+
/** Fetch a path under `/v1/mail`; rejects a non-2xx response with an `ArbiApiError` (`status`). */
|
|
7376
|
+
fetch: (path: string, init?: RequestInit) => Promise<Response>;
|
|
7377
|
+
/** Unlock the signed-in user's native inbox for this server session (see `unlockNativeMail`). */
|
|
7378
|
+
unlockNative: () => Promise<void>;
|
|
7379
|
+
};
|
|
7305
7380
|
readonly assistant: {
|
|
7306
7381
|
cancelRun: (responseId: string) => Promise<void>;
|
|
7307
7382
|
/** Start a durable background turn; task options make its thread a work item. */
|
|
@@ -7374,7 +7449,12 @@ declare class Arbi {
|
|
|
7374
7449
|
}) => Promise<RetrieveResult>;
|
|
7375
7450
|
};
|
|
7376
7451
|
readonly tags: {
|
|
7377
|
-
|
|
7452
|
+
/**
|
|
7453
|
+
* The workspace's tags, filtered (`kind`, `parentId`, `ids`) and with `include: ['links']`
|
|
7454
|
+
* each tag's documents, facts and threads: `list({ kind: 'issue', include: ['links'] })` is the
|
|
7455
|
+
* issue table's rows (its columns: `tagKinds.get('issue')`).
|
|
7456
|
+
*/
|
|
7457
|
+
list: (query?: TagListQuery) => Promise<{
|
|
7378
7458
|
external_id: string;
|
|
7379
7459
|
workspace_ext_id: string;
|
|
7380
7460
|
name: string;
|
|
@@ -7389,16 +7469,32 @@ declare class Arbi {
|
|
|
7389
7469
|
doctag_count: number;
|
|
7390
7470
|
facttag_count: number;
|
|
7391
7471
|
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
7472
|
field_values?: {
|
|
7400
7473
|
[x: string]: unknown;
|
|
7401
7474
|
} | undefined;
|
|
7475
|
+
links?: {
|
|
7476
|
+
docs?: {
|
|
7477
|
+
doc_ext_id: string;
|
|
7478
|
+
file_name: string;
|
|
7479
|
+
note?: string | null | undefined;
|
|
7480
|
+
citations_count: number;
|
|
7481
|
+
updated_at: string;
|
|
7482
|
+
}[] | undefined;
|
|
7483
|
+
facts?: {
|
|
7484
|
+
fact_ext_id: string;
|
|
7485
|
+
text: string;
|
|
7486
|
+
confirmed: boolean;
|
|
7487
|
+
updated_at: string;
|
|
7488
|
+
}[] | undefined;
|
|
7489
|
+
threads?: {
|
|
7490
|
+
conversation_ext_id: string;
|
|
7491
|
+
title?: string | null | undefined;
|
|
7492
|
+
updated_at: string;
|
|
7493
|
+
}[] | undefined;
|
|
7494
|
+
doc_count: number;
|
|
7495
|
+
fact_count: number;
|
|
7496
|
+
thread_count: number;
|
|
7497
|
+
} | null | undefined;
|
|
7402
7498
|
created_by_ext_id: string;
|
|
7403
7499
|
updated_by_ext_id?: string | null | undefined;
|
|
7404
7500
|
created_at: string;
|
|
@@ -7410,8 +7506,10 @@ declare class Arbi {
|
|
|
7410
7506
|
tagType?: TagFormat;
|
|
7411
7507
|
instruction?: string | null;
|
|
7412
7508
|
shared?: boolean;
|
|
7509
|
+
/** What the tag is (`'issue'`: an issue; flat, no parent). Absent: from the format. */
|
|
7510
|
+
kind?: TagKind | null;
|
|
7413
7511
|
parentId?: string | null;
|
|
7414
|
-
fields
|
|
7512
|
+
/** Values for its kind's fields, keyed by field id or name. */
|
|
7415
7513
|
fieldValues?: Record<string, unknown> | null;
|
|
7416
7514
|
}) => Promise<{
|
|
7417
7515
|
external_id: string;
|
|
@@ -7428,16 +7526,32 @@ declare class Arbi {
|
|
|
7428
7526
|
doctag_count: number;
|
|
7429
7527
|
facttag_count: number;
|
|
7430
7528
|
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
7529
|
field_values?: {
|
|
7439
7530
|
[x: string]: unknown;
|
|
7440
7531
|
} | undefined;
|
|
7532
|
+
links?: {
|
|
7533
|
+
docs?: {
|
|
7534
|
+
doc_ext_id: string;
|
|
7535
|
+
file_name: string;
|
|
7536
|
+
note?: string | null | undefined;
|
|
7537
|
+
citations_count: number;
|
|
7538
|
+
updated_at: string;
|
|
7539
|
+
}[] | undefined;
|
|
7540
|
+
facts?: {
|
|
7541
|
+
fact_ext_id: string;
|
|
7542
|
+
text: string;
|
|
7543
|
+
confirmed: boolean;
|
|
7544
|
+
updated_at: string;
|
|
7545
|
+
}[] | undefined;
|
|
7546
|
+
threads?: {
|
|
7547
|
+
conversation_ext_id: string;
|
|
7548
|
+
title?: string | null | undefined;
|
|
7549
|
+
updated_at: string;
|
|
7550
|
+
}[] | undefined;
|
|
7551
|
+
doc_count: number;
|
|
7552
|
+
fact_count: number;
|
|
7553
|
+
thread_count: number;
|
|
7554
|
+
} | null | undefined;
|
|
7441
7555
|
created_by_ext_id: string;
|
|
7442
7556
|
updated_by_ext_id?: string | null | undefined;
|
|
7443
7557
|
created_at: string;
|
|
@@ -7461,26 +7575,39 @@ declare class Arbi {
|
|
|
7461
7575
|
doctag_count: number;
|
|
7462
7576
|
facttag_count: number;
|
|
7463
7577
|
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
7578
|
field_values?: {
|
|
7472
7579
|
[x: string]: unknown;
|
|
7473
7580
|
} | undefined;
|
|
7581
|
+
links?: {
|
|
7582
|
+
docs?: {
|
|
7583
|
+
doc_ext_id: string;
|
|
7584
|
+
file_name: string;
|
|
7585
|
+
note?: string | null | undefined;
|
|
7586
|
+
citations_count: number;
|
|
7587
|
+
updated_at: string;
|
|
7588
|
+
}[] | undefined;
|
|
7589
|
+
facts?: {
|
|
7590
|
+
fact_ext_id: string;
|
|
7591
|
+
text: string;
|
|
7592
|
+
confirmed: boolean;
|
|
7593
|
+
updated_at: string;
|
|
7594
|
+
}[] | undefined;
|
|
7595
|
+
threads?: {
|
|
7596
|
+
conversation_ext_id: string;
|
|
7597
|
+
title?: string | null | undefined;
|
|
7598
|
+
updated_at: string;
|
|
7599
|
+
}[] | undefined;
|
|
7600
|
+
doc_count: number;
|
|
7601
|
+
fact_count: number;
|
|
7602
|
+
thread_count: number;
|
|
7603
|
+
} | null | undefined;
|
|
7474
7604
|
created_by_ext_id: string;
|
|
7475
7605
|
updated_by_ext_id?: string | null | undefined;
|
|
7476
7606
|
created_at: string;
|
|
7477
7607
|
updated_at: string;
|
|
7478
7608
|
}>;
|
|
7479
|
-
/**
|
|
7480
|
-
|
|
7481
|
-
fields?: TagFieldDefinition[];
|
|
7482
|
-
values?: Record<string, unknown>;
|
|
7483
|
-
}) => Promise<{
|
|
7609
|
+
/** Merge-patch a tag's values for its kind's fields (`null` clears one). */
|
|
7610
|
+
setValues: (tagId: string, values: Record<string, unknown>) => Promise<{
|
|
7484
7611
|
external_id: string;
|
|
7485
7612
|
workspace_ext_id: string;
|
|
7486
7613
|
name: string;
|
|
@@ -7492,21 +7619,23 @@ declare class Arbi {
|
|
|
7492
7619
|
doctag_count: number;
|
|
7493
7620
|
facttag_count: number;
|
|
7494
7621
|
convotag_count: number;
|
|
7495
|
-
fields?: components["schemas"]["TagField"][];
|
|
7496
7622
|
field_values?: {
|
|
7497
7623
|
[key: string]: unknown;
|
|
7498
7624
|
};
|
|
7625
|
+
links?: components["schemas"]["TagLinks"] | null;
|
|
7499
7626
|
created_by_ext_id: string;
|
|
7500
7627
|
updated_by_ext_id?: string | null;
|
|
7501
7628
|
created_at: string;
|
|
7502
7629
|
updated_at: string;
|
|
7503
7630
|
}>;
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7631
|
+
};
|
|
7632
|
+
readonly tagKinds: {
|
|
7633
|
+
/** Every kind's fields (the built-in ones where the workspace has not set its own). */
|
|
7634
|
+
list: () => Promise<TagKindSchema[]>;
|
|
7635
|
+
/** A kind's fields: the columns of a table of its tags. */
|
|
7636
|
+
get: (kind: TagKind) => Promise<TagKindSchema>;
|
|
7637
|
+
/** Set a kind's fields in full (ids keep fields and their values; the rest are new). */
|
|
7638
|
+
update: (kind: TagKind, fields: TagFieldDefinition[]) => Promise<TagKindSchema>;
|
|
7510
7639
|
};
|
|
7511
7640
|
readonly doctags: {
|
|
7512
7641
|
assign: (tagId: string, docIds: string[], note?: string | null) => Promise<{
|
|
@@ -7756,6 +7885,9 @@ declare class Arbi {
|
|
|
7756
7885
|
use_s3_direct_upload: boolean;
|
|
7757
7886
|
hide_online_status: boolean;
|
|
7758
7887
|
muted_users: string[];
|
|
7888
|
+
muted_workspaces: string[];
|
|
7889
|
+
followed_workspaces: string[];
|
|
7890
|
+
followed_threads: string[];
|
|
7759
7891
|
email_notifications?: {
|
|
7760
7892
|
messages: boolean;
|
|
7761
7893
|
workspace_added: boolean;
|
|
@@ -9178,6 +9310,9 @@ declare function getSettings(arbi: ArbiClient): Promise<{
|
|
|
9178
9310
|
use_s3_direct_upload: boolean;
|
|
9179
9311
|
hide_online_status: boolean;
|
|
9180
9312
|
muted_users: string[];
|
|
9313
|
+
muted_workspaces: string[];
|
|
9314
|
+
followed_workspaces: string[];
|
|
9315
|
+
followed_threads: string[];
|
|
9181
9316
|
email_notifications?: {
|
|
9182
9317
|
messages: boolean;
|
|
9183
9318
|
workspace_added: boolean;
|
|
@@ -9830,4 +9965,4 @@ declare namespace identity {
|
|
|
9830
9965
|
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
9966
|
}
|
|
9832
9967
|
|
|
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
|
|
9968
|
+
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 };
|