@arbidocs/client 0.3.144 → 0.3.146
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/index.d.cts +175 -172
- package/dist/index.d.ts +175 -172
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1945,7 +1945,7 @@ interface paths {
|
|
|
1945
1945
|
patch: operations['update_tag'];
|
|
1946
1946
|
trace?: never;
|
|
1947
1947
|
};
|
|
1948
|
-
'/v1/
|
|
1948
|
+
'/v1/facts/': {
|
|
1949
1949
|
parameters: {
|
|
1950
1950
|
query?: never;
|
|
1951
1951
|
header?: never;
|
|
@@ -1955,17 +1955,17 @@ interface paths {
|
|
|
1955
1955
|
get?: never;
|
|
1956
1956
|
put?: never;
|
|
1957
1957
|
/**
|
|
1958
|
-
* Create
|
|
1958
|
+
* Create Fact Endpoint
|
|
1959
1959
|
* @description Create a note in the active workspace.
|
|
1960
1960
|
*/
|
|
1961
|
-
post: operations['
|
|
1961
|
+
post: operations['create_fact'];
|
|
1962
1962
|
delete?: never;
|
|
1963
1963
|
options?: never;
|
|
1964
1964
|
head?: never;
|
|
1965
1965
|
patch?: never;
|
|
1966
1966
|
trace?: never;
|
|
1967
1967
|
};
|
|
1968
|
-
'/v1/
|
|
1968
|
+
'/v1/facts/list': {
|
|
1969
1969
|
parameters: {
|
|
1970
1970
|
query?: never;
|
|
1971
1971
|
header?: never;
|
|
@@ -1973,15 +1973,15 @@ interface paths {
|
|
|
1973
1973
|
cookie?: never;
|
|
1974
1974
|
};
|
|
1975
1975
|
/**
|
|
1976
|
-
* List
|
|
1977
|
-
* @description List
|
|
1976
|
+
* List Facts Endpoint
|
|
1977
|
+
* @description List facts visible in the active workspace.
|
|
1978
1978
|
*
|
|
1979
1979
|
* Newest first by default. Passing a date range (or ``dated_only``) turns this
|
|
1980
|
-
* into the timeline: only dated
|
|
1980
|
+
* into the timeline: only dated facts, ordered by when they happened. Each
|
|
1981
1981
|
* bound is read at its own precision and widened outward, so ``date_to=2019``
|
|
1982
1982
|
* runs through 31 December rather than stopping on 1 January.
|
|
1983
1983
|
*/
|
|
1984
|
-
get: operations['
|
|
1984
|
+
get: operations['list_facts'];
|
|
1985
1985
|
put?: never;
|
|
1986
1986
|
post?: never;
|
|
1987
1987
|
delete?: never;
|
|
@@ -1990,7 +1990,7 @@ interface paths {
|
|
|
1990
1990
|
patch?: never;
|
|
1991
1991
|
trace?: never;
|
|
1992
1992
|
};
|
|
1993
|
-
'/v1/
|
|
1993
|
+
'/v1/facts/search': {
|
|
1994
1994
|
parameters: {
|
|
1995
1995
|
query?: never;
|
|
1996
1996
|
header?: never;
|
|
@@ -2000,17 +2000,17 @@ interface paths {
|
|
|
2000
2000
|
get?: never;
|
|
2001
2001
|
put?: never;
|
|
2002
2002
|
/**
|
|
2003
|
-
* Search
|
|
2004
|
-
* @description Hybrid recall over the workspace's
|
|
2003
|
+
* Search Facts Endpoint
|
|
2004
|
+
* @description Hybrid recall over the workspace's facts.
|
|
2005
2005
|
*/
|
|
2006
|
-
post: operations['
|
|
2006
|
+
post: operations['search_facts'];
|
|
2007
2007
|
delete?: never;
|
|
2008
2008
|
options?: never;
|
|
2009
2009
|
head?: never;
|
|
2010
2010
|
patch?: never;
|
|
2011
2011
|
trace?: never;
|
|
2012
2012
|
};
|
|
2013
|
-
'/v1/
|
|
2013
|
+
'/v1/facts/{fact_ext_id}': {
|
|
2014
2014
|
parameters: {
|
|
2015
2015
|
query?: never;
|
|
2016
2016
|
header?: never;
|
|
@@ -2021,20 +2021,20 @@ interface paths {
|
|
|
2021
2021
|
put?: never;
|
|
2022
2022
|
post?: never;
|
|
2023
2023
|
/**
|
|
2024
|
-
* Delete
|
|
2024
|
+
* Delete Fact Endpoint
|
|
2025
2025
|
* @description Soft-delete a note. RLS governs permission; a blocked delete returns 403.
|
|
2026
2026
|
*/
|
|
2027
|
-
delete: operations['
|
|
2027
|
+
delete: operations['delete_fact'];
|
|
2028
2028
|
options?: never;
|
|
2029
2029
|
head?: never;
|
|
2030
2030
|
/**
|
|
2031
|
-
* Update
|
|
2031
|
+
* Update Fact Endpoint
|
|
2032
2032
|
* @description Patch a note. A content edit replaces it (append + soft-delete); pin/share toggle in place.
|
|
2033
2033
|
*/
|
|
2034
|
-
patch: operations['
|
|
2034
|
+
patch: operations['update_fact'];
|
|
2035
2035
|
trace?: never;
|
|
2036
2036
|
};
|
|
2037
|
-
'/v1/
|
|
2037
|
+
'/v1/facts/{fact_ext_id}/remind': {
|
|
2038
2038
|
parameters: {
|
|
2039
2039
|
query?: never;
|
|
2040
2040
|
header?: never;
|
|
@@ -2044,20 +2044,20 @@ interface paths {
|
|
|
2044
2044
|
get?: never;
|
|
2045
2045
|
put?: never;
|
|
2046
2046
|
/**
|
|
2047
|
-
* Remind
|
|
2047
|
+
* Remind Fact Endpoint
|
|
2048
2048
|
* @description Set a one-off reminder for a dated note, and link it to the note.
|
|
2049
2049
|
*
|
|
2050
2050
|
* Give an explicit ``remind_at`` or a ``lead_minutes`` offset before the note's
|
|
2051
|
-
* date; with neither it fires when the
|
|
2051
|
+
* date; with neither it fires when the fact's span starts. Only dated facts can
|
|
2052
2052
|
* be reminded about — there is nothing to fire relative to otherwise.
|
|
2053
2053
|
*
|
|
2054
2054
|
* The reminder is deliberately CONTENT-FREE: it names the note by external id
|
|
2055
|
-
* and nothing else. ``tasks.name`` is plaintext while ``
|
|
2055
|
+
* and nothing else. ``tasks.name`` is plaintext while ``facts.content`` is
|
|
2056
2056
|
* encrypted under the workspace key, so copying the text into the reminder
|
|
2057
2057
|
* would leak the very thing the note protects. The client resolves the text
|
|
2058
2058
|
* from the note when it displays the notification.
|
|
2059
2059
|
*/
|
|
2060
|
-
post: operations['
|
|
2060
|
+
post: operations['remind_fact'];
|
|
2061
2061
|
delete?: never;
|
|
2062
2062
|
options?: never;
|
|
2063
2063
|
head?: never;
|
|
@@ -3543,14 +3543,14 @@ interface components {
|
|
|
3543
3543
|
*/
|
|
3544
3544
|
PERSONAL_AGENT: boolean;
|
|
3545
3545
|
/**
|
|
3546
|
-
*
|
|
3547
|
-
* @description Workspace
|
|
3546
|
+
* Facts Enabled
|
|
3547
|
+
* @description Workspace facts are readable AND writable by the agent: pinned core facts are injected into the prompt, and the agent gets the search_facts (recall) and create_fact (write) tools.
|
|
3548
3548
|
* @default false
|
|
3549
3549
|
*/
|
|
3550
|
-
|
|
3550
|
+
FACTS_ENABLED: boolean;
|
|
3551
3551
|
/**
|
|
3552
3552
|
* Persist Learnings
|
|
3553
|
-
* @description After each turn, the curator consolidates this turn's learnings into durable memories (dedupe + supersede). Independent of
|
|
3553
|
+
* @description After each turn, the curator consolidates this turn's learnings into durable memories (dedupe + supersede). Independent of FACTS_ENABLED.
|
|
3554
3554
|
* @default false
|
|
3555
3555
|
*/
|
|
3556
3556
|
PERSIST_LEARNINGS: boolean;
|
|
@@ -3786,14 +3786,14 @@ interface components {
|
|
|
3786
3786
|
*/
|
|
3787
3787
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3788
3788
|
/**
|
|
3789
|
-
*
|
|
3790
|
-
* @description Workspace
|
|
3789
|
+
* Facts Enabled
|
|
3790
|
+
* @description Workspace facts are readable AND writable by the agent: pinned core facts are injected into the prompt, and the agent gets the search_facts (recall) and create_fact (write) tools.
|
|
3791
3791
|
* @default false
|
|
3792
3792
|
*/
|
|
3793
|
-
|
|
3793
|
+
FACTS_ENABLED: boolean;
|
|
3794
3794
|
/**
|
|
3795
3795
|
* Persist Learnings
|
|
3796
|
-
* @description After each turn, the curator consolidates this turn's learnings into durable memories (dedupe + supersede). Independent of
|
|
3796
|
+
* @description After each turn, the curator consolidates this turn's learnings into durable memories (dedupe + supersede). Independent of FACTS_ENABLED.
|
|
3797
3797
|
* @default false
|
|
3798
3798
|
*/
|
|
3799
3799
|
PERSIST_LEARNINGS: boolean;
|
|
@@ -3875,7 +3875,7 @@ interface components {
|
|
|
3875
3875
|
* "VISION_ENABLED": false,
|
|
3876
3876
|
* "CONVERSATION_SEARCH_ENABLED": false,
|
|
3877
3877
|
* "PERSONAL_AGENT": false,
|
|
3878
|
-
* "
|
|
3878
|
+
* "FACTS_ENABLED": false,
|
|
3879
3879
|
* "PERSIST_LEARNINGS": false,
|
|
3880
3880
|
* "SKILLS_ENABLED": false,
|
|
3881
3881
|
* "SKILL_CREATION": false,
|
|
@@ -4013,7 +4013,7 @@ interface components {
|
|
|
4013
4013
|
* }
|
|
4014
4014
|
* },
|
|
4015
4015
|
* {
|
|
4016
|
-
* "instruction": "What is the main subject or purpose of this document?
|
|
4016
|
+
* "instruction": "What is the main subject or purpose of this document? Open with one concise phrase naming what it is and what it is about, in the form 'Email chain re the site access dispute between Acme and Byrne'. Then add one or two sentences of detail.",
|
|
4017
4017
|
* "name": "doc_subject",
|
|
4018
4018
|
* "tag_type": {
|
|
4019
4019
|
* "options": [],
|
|
@@ -5506,10 +5506,10 @@ interface components {
|
|
|
5506
5506
|
citations?: components['schemas']['CitationSources'] | null;
|
|
5507
5507
|
};
|
|
5508
5508
|
/**
|
|
5509
|
-
*
|
|
5510
|
-
* @description Create a
|
|
5509
|
+
* CreateFactRequest
|
|
5510
|
+
* @description Create a fact in the active workspace.
|
|
5511
5511
|
*/
|
|
5512
|
-
|
|
5512
|
+
CreateFactRequest: {
|
|
5513
5513
|
/** Text */
|
|
5514
5514
|
text: string;
|
|
5515
5515
|
/**
|
|
@@ -5523,11 +5523,10 @@ interface components {
|
|
|
5523
5523
|
*/
|
|
5524
5524
|
shared: boolean;
|
|
5525
5525
|
/**
|
|
5526
|
-
*
|
|
5527
|
-
* @default
|
|
5528
|
-
* @enum {string}
|
|
5526
|
+
* Confirmed
|
|
5527
|
+
* @default true
|
|
5529
5528
|
*/
|
|
5530
|
-
|
|
5529
|
+
confirmed: boolean;
|
|
5531
5530
|
/** Date */
|
|
5532
5531
|
date?: string | null;
|
|
5533
5532
|
/** Date End */
|
|
@@ -6368,6 +6367,113 @@ interface components {
|
|
|
6368
6367
|
*/
|
|
6369
6368
|
EVAL_BATCH_TIMEOUT_S: number;
|
|
6370
6369
|
};
|
|
6370
|
+
/** FactDeleteResponse */
|
|
6371
|
+
FactDeleteResponse: {
|
|
6372
|
+
/**
|
|
6373
|
+
* Detail
|
|
6374
|
+
* @default Note deleted successfully
|
|
6375
|
+
*/
|
|
6376
|
+
detail: string;
|
|
6377
|
+
};
|
|
6378
|
+
/** FactResponse */
|
|
6379
|
+
FactResponse: {
|
|
6380
|
+
/** Text */
|
|
6381
|
+
text: string;
|
|
6382
|
+
citations?: components['schemas']['CitationSources'] | null;
|
|
6383
|
+
/** External Id */
|
|
6384
|
+
external_id: string;
|
|
6385
|
+
/** Workspace Ext Id */
|
|
6386
|
+
workspace_ext_id: string;
|
|
6387
|
+
/** Pinned */
|
|
6388
|
+
pinned: boolean;
|
|
6389
|
+
/** Shared */
|
|
6390
|
+
shared: boolean;
|
|
6391
|
+
/** Confirmed */
|
|
6392
|
+
confirmed: boolean;
|
|
6393
|
+
/** Date Start */
|
|
6394
|
+
date_start?: string | null;
|
|
6395
|
+
/** Date End */
|
|
6396
|
+
date_end?: string | null;
|
|
6397
|
+
/** Timezone */
|
|
6398
|
+
timezone?: string | null;
|
|
6399
|
+
/**
|
|
6400
|
+
* Reminder Task Ext Ids
|
|
6401
|
+
* @default []
|
|
6402
|
+
*/
|
|
6403
|
+
reminder_task_ext_ids: string[];
|
|
6404
|
+
/**
|
|
6405
|
+
* Tags
|
|
6406
|
+
* @default []
|
|
6407
|
+
*/
|
|
6408
|
+
tags: components['schemas']['FactTagResponse'][];
|
|
6409
|
+
/** Created By Ext Id */
|
|
6410
|
+
created_by_ext_id: string;
|
|
6411
|
+
/**
|
|
6412
|
+
* Created At
|
|
6413
|
+
* Format: date-time
|
|
6414
|
+
*/
|
|
6415
|
+
created_at: string;
|
|
6416
|
+
/**
|
|
6417
|
+
* Updated At
|
|
6418
|
+
* Format: date-time
|
|
6419
|
+
*/
|
|
6420
|
+
updated_at: string;
|
|
6421
|
+
};
|
|
6422
|
+
/** FactSearchHit */
|
|
6423
|
+
FactSearchHit: {
|
|
6424
|
+
/** External Id */
|
|
6425
|
+
external_id: string;
|
|
6426
|
+
/** Text */
|
|
6427
|
+
text: string;
|
|
6428
|
+
/** Pinned */
|
|
6429
|
+
pinned: boolean;
|
|
6430
|
+
/** Confirmed */
|
|
6431
|
+
confirmed: boolean;
|
|
6432
|
+
/** Score */
|
|
6433
|
+
score: number;
|
|
6434
|
+
};
|
|
6435
|
+
/**
|
|
6436
|
+
* FactSearchRequest
|
|
6437
|
+
* @description Hybrid recall over the workspace's facts.
|
|
6438
|
+
*/
|
|
6439
|
+
FactSearchRequest: {
|
|
6440
|
+
/**
|
|
6441
|
+
* Query
|
|
6442
|
+
* @description Search query text
|
|
6443
|
+
*/
|
|
6444
|
+
query: string;
|
|
6445
|
+
/**
|
|
6446
|
+
* Search Mode
|
|
6447
|
+
* @description Retrieval mode
|
|
6448
|
+
* @default hybrid
|
|
6449
|
+
* @enum {string}
|
|
6450
|
+
*/
|
|
6451
|
+
search_mode: 'semantic' | 'keyword' | 'hybrid';
|
|
6452
|
+
/**
|
|
6453
|
+
* Limit
|
|
6454
|
+
* @description Maximum number of notes to return
|
|
6455
|
+
* @default 10
|
|
6456
|
+
*/
|
|
6457
|
+
limit: number;
|
|
6458
|
+
};
|
|
6459
|
+
/** FactSearchResponse */
|
|
6460
|
+
FactSearchResponse: {
|
|
6461
|
+
/**
|
|
6462
|
+
* Facts
|
|
6463
|
+
* @default []
|
|
6464
|
+
*/
|
|
6465
|
+
facts: components['schemas']['FactSearchHit'][];
|
|
6466
|
+
};
|
|
6467
|
+
/**
|
|
6468
|
+
* FactTagResponse
|
|
6469
|
+
* @description A tag attached to a note — the tag's identity, decrypted name included.
|
|
6470
|
+
*/
|
|
6471
|
+
FactTagResponse: {
|
|
6472
|
+
/** Tag Ext Id */
|
|
6473
|
+
tag_ext_id: string;
|
|
6474
|
+
/** Name */
|
|
6475
|
+
name: string;
|
|
6476
|
+
};
|
|
6371
6477
|
/**
|
|
6372
6478
|
* FileDeleteResponse
|
|
6373
6479
|
* @description OpenAI-compatible file deletion response.
|
|
@@ -7007,7 +7113,7 @@ interface components {
|
|
|
7007
7113
|
* MemoryLLMConfig
|
|
7008
7114
|
* @description Configuration for MemoryLLM — the post-turn curator.
|
|
7009
7115
|
*
|
|
7010
|
-
* Judges which of a turn's learnings are worth keeping as durable
|
|
7116
|
+
* Judges which of a turn's learnings are worth keeping as durable Facts and
|
|
7011
7117
|
* reconciles them against existing ones (dedupe + supersede). It never
|
|
7012
7118
|
* re-authors text: each kept learning is stored verbatim.
|
|
7013
7119
|
*
|
|
@@ -7508,113 +7614,6 @@ interface components {
|
|
|
7508
7614
|
DoctagLLM: components['schemas']['DoctagLLMUserConfig'];
|
|
7509
7615
|
Parser: components['schemas']['ParserUserConfig'];
|
|
7510
7616
|
};
|
|
7511
|
-
/** NoteDeleteResponse */
|
|
7512
|
-
NoteDeleteResponse: {
|
|
7513
|
-
/**
|
|
7514
|
-
* Detail
|
|
7515
|
-
* @default Note deleted successfully
|
|
7516
|
-
*/
|
|
7517
|
-
detail: string;
|
|
7518
|
-
};
|
|
7519
|
-
/** NoteResponse */
|
|
7520
|
-
NoteResponse: {
|
|
7521
|
-
/** Text */
|
|
7522
|
-
text: string;
|
|
7523
|
-
citations?: components['schemas']['CitationSources'] | null;
|
|
7524
|
-
/** External Id */
|
|
7525
|
-
external_id: string;
|
|
7526
|
-
/** Workspace Ext Id */
|
|
7527
|
-
workspace_ext_id: string;
|
|
7528
|
-
/** Pinned */
|
|
7529
|
-
pinned: boolean;
|
|
7530
|
-
/** Shared */
|
|
7531
|
-
shared: boolean;
|
|
7532
|
-
/** Source */
|
|
7533
|
-
source: string;
|
|
7534
|
-
/** Date Start */
|
|
7535
|
-
date_start?: string | null;
|
|
7536
|
-
/** Date End */
|
|
7537
|
-
date_end?: string | null;
|
|
7538
|
-
/** Timezone */
|
|
7539
|
-
timezone?: string | null;
|
|
7540
|
-
/**
|
|
7541
|
-
* Reminder Task Ext Ids
|
|
7542
|
-
* @default []
|
|
7543
|
-
*/
|
|
7544
|
-
reminder_task_ext_ids: string[];
|
|
7545
|
-
/**
|
|
7546
|
-
* Tags
|
|
7547
|
-
* @default []
|
|
7548
|
-
*/
|
|
7549
|
-
tags: components['schemas']['NoteTagResponse'][];
|
|
7550
|
-
/** Created By Ext Id */
|
|
7551
|
-
created_by_ext_id: string;
|
|
7552
|
-
/**
|
|
7553
|
-
* Created At
|
|
7554
|
-
* Format: date-time
|
|
7555
|
-
*/
|
|
7556
|
-
created_at: string;
|
|
7557
|
-
/**
|
|
7558
|
-
* Updated At
|
|
7559
|
-
* Format: date-time
|
|
7560
|
-
*/
|
|
7561
|
-
updated_at: string;
|
|
7562
|
-
};
|
|
7563
|
-
/** NoteSearchHit */
|
|
7564
|
-
NoteSearchHit: {
|
|
7565
|
-
/** External Id */
|
|
7566
|
-
external_id: string;
|
|
7567
|
-
/** Text */
|
|
7568
|
-
text: string;
|
|
7569
|
-
/** Pinned */
|
|
7570
|
-
pinned: boolean;
|
|
7571
|
-
/** Source */
|
|
7572
|
-
source: string;
|
|
7573
|
-
/** Score */
|
|
7574
|
-
score: number;
|
|
7575
|
-
};
|
|
7576
|
-
/**
|
|
7577
|
-
* NoteSearchRequest
|
|
7578
|
-
* @description Hybrid recall over the workspace's notes.
|
|
7579
|
-
*/
|
|
7580
|
-
NoteSearchRequest: {
|
|
7581
|
-
/**
|
|
7582
|
-
* Query
|
|
7583
|
-
* @description Search query text
|
|
7584
|
-
*/
|
|
7585
|
-
query: string;
|
|
7586
|
-
/**
|
|
7587
|
-
* Search Mode
|
|
7588
|
-
* @description Retrieval mode
|
|
7589
|
-
* @default hybrid
|
|
7590
|
-
* @enum {string}
|
|
7591
|
-
*/
|
|
7592
|
-
search_mode: 'semantic' | 'keyword' | 'hybrid';
|
|
7593
|
-
/**
|
|
7594
|
-
* Limit
|
|
7595
|
-
* @description Maximum number of notes to return
|
|
7596
|
-
* @default 10
|
|
7597
|
-
*/
|
|
7598
|
-
limit: number;
|
|
7599
|
-
};
|
|
7600
|
-
/** NoteSearchResponse */
|
|
7601
|
-
NoteSearchResponse: {
|
|
7602
|
-
/**
|
|
7603
|
-
* Notes
|
|
7604
|
-
* @default []
|
|
7605
|
-
*/
|
|
7606
|
-
notes: components['schemas']['NoteSearchHit'][];
|
|
7607
|
-
};
|
|
7608
|
-
/**
|
|
7609
|
-
* NoteTagResponse
|
|
7610
|
-
* @description A tag attached to a note — the tag's identity, decrypted name included.
|
|
7611
|
-
*/
|
|
7612
|
-
NoteTagResponse: {
|
|
7613
|
-
/** Tag Ext Id */
|
|
7614
|
-
tag_ext_id: string;
|
|
7615
|
-
/** Name */
|
|
7616
|
-
name: string;
|
|
7617
|
-
};
|
|
7618
7617
|
/**
|
|
7619
7618
|
* NotificationResponse
|
|
7620
7619
|
* @description Notification response model for API and WebSocket.
|
|
@@ -7634,6 +7633,8 @@ interface components {
|
|
|
7634
7633
|
content?: string | null;
|
|
7635
7634
|
/** Conversation Ext Id */
|
|
7636
7635
|
conversation_ext_id?: string | null;
|
|
7636
|
+
/** Task Ext Id */
|
|
7637
|
+
task_ext_id?: string | null;
|
|
7637
7638
|
/**
|
|
7638
7639
|
* Read
|
|
7639
7640
|
* @default false
|
|
@@ -8459,7 +8460,7 @@ interface components {
|
|
|
8459
8460
|
picture?: string | null;
|
|
8460
8461
|
};
|
|
8461
8462
|
/**
|
|
8462
|
-
*
|
|
8463
|
+
* RemindFactRequest
|
|
8463
8464
|
* @description Set a one-off reminder for a dated note.
|
|
8464
8465
|
*
|
|
8465
8466
|
* Give either an explicit ``remind_at`` or a ``lead_minutes`` offset before
|
|
@@ -8469,7 +8470,7 @@ interface components {
|
|
|
8469
8470
|
* synthesises an inline ``Body_*`` schema for those, which is not strict, and
|
|
8470
8471
|
* the client generator rejects request bodies that accept unknown fields.
|
|
8471
8472
|
*/
|
|
8472
|
-
|
|
8473
|
+
RemindFactRequest: {
|
|
8473
8474
|
/** Remind At */
|
|
8474
8475
|
remind_at?: string | null;
|
|
8475
8476
|
/** Lead Minutes */
|
|
@@ -10573,18 +10574,20 @@ interface components {
|
|
|
10573
10574
|
documents: components['schemas']['DocUpdateRequest'][];
|
|
10574
10575
|
};
|
|
10575
10576
|
/**
|
|
10576
|
-
*
|
|
10577
|
-
* @description Patch a
|
|
10577
|
+
* UpdateFactRequest
|
|
10578
|
+
* @description Patch a fact. An edit to ``text`` soft-deletes the old row and
|
|
10578
10579
|
* inserts a replacement (append + soft-delete lifecycle); ``pinned``/``shared``/
|
|
10579
10580
|
* ``tag_ext_ids`` update in place.
|
|
10580
10581
|
*/
|
|
10581
|
-
|
|
10582
|
+
UpdateFactRequest: {
|
|
10582
10583
|
/** Text */
|
|
10583
10584
|
text?: string | null;
|
|
10584
10585
|
/** Pinned */
|
|
10585
10586
|
pinned?: boolean | null;
|
|
10586
10587
|
/** Shared */
|
|
10587
10588
|
shared?: boolean | null;
|
|
10589
|
+
/** Confirmed */
|
|
10590
|
+
confirmed?: boolean | null;
|
|
10588
10591
|
/** Date */
|
|
10589
10592
|
date?: string | null;
|
|
10590
10593
|
/** Date End */
|
|
@@ -14313,7 +14316,7 @@ interface operations {
|
|
|
14313
14316
|
};
|
|
14314
14317
|
};
|
|
14315
14318
|
};
|
|
14316
|
-
|
|
14319
|
+
create_fact: {
|
|
14317
14320
|
parameters: {
|
|
14318
14321
|
query?: never;
|
|
14319
14322
|
header?: never;
|
|
@@ -14322,7 +14325,7 @@ interface operations {
|
|
|
14322
14325
|
};
|
|
14323
14326
|
requestBody: {
|
|
14324
14327
|
content: {
|
|
14325
|
-
'application/json': components['schemas']['
|
|
14328
|
+
'application/json': components['schemas']['CreateFactRequest'];
|
|
14326
14329
|
};
|
|
14327
14330
|
};
|
|
14328
14331
|
responses: {
|
|
@@ -14332,7 +14335,7 @@ interface operations {
|
|
|
14332
14335
|
[name: string]: unknown;
|
|
14333
14336
|
};
|
|
14334
14337
|
content: {
|
|
14335
|
-
'application/json': components['schemas']['
|
|
14338
|
+
'application/json': components['schemas']['FactResponse'];
|
|
14336
14339
|
};
|
|
14337
14340
|
};
|
|
14338
14341
|
/** @description Validation Error */
|
|
@@ -14346,7 +14349,7 @@ interface operations {
|
|
|
14346
14349
|
};
|
|
14347
14350
|
};
|
|
14348
14351
|
};
|
|
14349
|
-
|
|
14352
|
+
list_facts: {
|
|
14350
14353
|
parameters: {
|
|
14351
14354
|
query?: {
|
|
14352
14355
|
pinned_only?: boolean;
|
|
@@ -14354,7 +14357,7 @@ interface operations {
|
|
|
14354
14357
|
date_from?: string | null;
|
|
14355
14358
|
/** @description Range end, any precision */
|
|
14356
14359
|
date_to?: string | null;
|
|
14357
|
-
/** @description Only
|
|
14360
|
+
/** @description Only facts that carry a date — the timeline view */
|
|
14358
14361
|
dated_only?: boolean;
|
|
14359
14362
|
};
|
|
14360
14363
|
header?: never;
|
|
@@ -14369,7 +14372,7 @@ interface operations {
|
|
|
14369
14372
|
[name: string]: unknown;
|
|
14370
14373
|
};
|
|
14371
14374
|
content: {
|
|
14372
|
-
'application/json': components['schemas']['
|
|
14375
|
+
'application/json': components['schemas']['FactResponse'][];
|
|
14373
14376
|
};
|
|
14374
14377
|
};
|
|
14375
14378
|
/** @description Validation Error */
|
|
@@ -14383,7 +14386,7 @@ interface operations {
|
|
|
14383
14386
|
};
|
|
14384
14387
|
};
|
|
14385
14388
|
};
|
|
14386
|
-
|
|
14389
|
+
search_facts: {
|
|
14387
14390
|
parameters: {
|
|
14388
14391
|
query?: never;
|
|
14389
14392
|
header?: never;
|
|
@@ -14392,7 +14395,7 @@ interface operations {
|
|
|
14392
14395
|
};
|
|
14393
14396
|
requestBody: {
|
|
14394
14397
|
content: {
|
|
14395
|
-
'application/json': components['schemas']['
|
|
14398
|
+
'application/json': components['schemas']['FactSearchRequest'];
|
|
14396
14399
|
};
|
|
14397
14400
|
};
|
|
14398
14401
|
responses: {
|
|
@@ -14402,7 +14405,7 @@ interface operations {
|
|
|
14402
14405
|
[name: string]: unknown;
|
|
14403
14406
|
};
|
|
14404
14407
|
content: {
|
|
14405
|
-
'application/json': components['schemas']['
|
|
14408
|
+
'application/json': components['schemas']['FactSearchResponse'];
|
|
14406
14409
|
};
|
|
14407
14410
|
};
|
|
14408
14411
|
/** @description Validation Error */
|
|
@@ -14416,12 +14419,12 @@ interface operations {
|
|
|
14416
14419
|
};
|
|
14417
14420
|
};
|
|
14418
14421
|
};
|
|
14419
|
-
|
|
14422
|
+
delete_fact: {
|
|
14420
14423
|
parameters: {
|
|
14421
14424
|
query?: never;
|
|
14422
14425
|
header?: never;
|
|
14423
14426
|
path: {
|
|
14424
|
-
|
|
14427
|
+
fact_ext_id: string;
|
|
14425
14428
|
};
|
|
14426
14429
|
cookie?: never;
|
|
14427
14430
|
};
|
|
@@ -14433,7 +14436,7 @@ interface operations {
|
|
|
14433
14436
|
[name: string]: unknown;
|
|
14434
14437
|
};
|
|
14435
14438
|
content: {
|
|
14436
|
-
'application/json': components['schemas']['
|
|
14439
|
+
'application/json': components['schemas']['FactDeleteResponse'];
|
|
14437
14440
|
};
|
|
14438
14441
|
};
|
|
14439
14442
|
/** @description Validation Error */
|
|
@@ -14447,18 +14450,18 @@ interface operations {
|
|
|
14447
14450
|
};
|
|
14448
14451
|
};
|
|
14449
14452
|
};
|
|
14450
|
-
|
|
14453
|
+
update_fact: {
|
|
14451
14454
|
parameters: {
|
|
14452
14455
|
query?: never;
|
|
14453
14456
|
header?: never;
|
|
14454
14457
|
path: {
|
|
14455
|
-
|
|
14458
|
+
fact_ext_id: string;
|
|
14456
14459
|
};
|
|
14457
14460
|
cookie?: never;
|
|
14458
14461
|
};
|
|
14459
14462
|
requestBody: {
|
|
14460
14463
|
content: {
|
|
14461
|
-
'application/json': components['schemas']['
|
|
14464
|
+
'application/json': components['schemas']['UpdateFactRequest'];
|
|
14462
14465
|
};
|
|
14463
14466
|
};
|
|
14464
14467
|
responses: {
|
|
@@ -14468,7 +14471,7 @@ interface operations {
|
|
|
14468
14471
|
[name: string]: unknown;
|
|
14469
14472
|
};
|
|
14470
14473
|
content: {
|
|
14471
|
-
'application/json': components['schemas']['
|
|
14474
|
+
'application/json': components['schemas']['FactResponse'];
|
|
14472
14475
|
};
|
|
14473
14476
|
};
|
|
14474
14477
|
/** @description Validation Error */
|
|
@@ -14482,18 +14485,18 @@ interface operations {
|
|
|
14482
14485
|
};
|
|
14483
14486
|
};
|
|
14484
14487
|
};
|
|
14485
|
-
|
|
14488
|
+
remind_fact: {
|
|
14486
14489
|
parameters: {
|
|
14487
14490
|
query?: never;
|
|
14488
14491
|
header?: never;
|
|
14489
14492
|
path: {
|
|
14490
|
-
|
|
14493
|
+
fact_ext_id: string;
|
|
14491
14494
|
};
|
|
14492
14495
|
cookie?: never;
|
|
14493
14496
|
};
|
|
14494
14497
|
requestBody?: {
|
|
14495
14498
|
content: {
|
|
14496
|
-
'application/json': components['schemas']['
|
|
14499
|
+
'application/json': components['schemas']['RemindFactRequest'];
|
|
14497
14500
|
};
|
|
14498
14501
|
};
|
|
14499
14502
|
responses: {
|
|
@@ -14503,7 +14506,7 @@ interface operations {
|
|
|
14503
14506
|
[name: string]: unknown;
|
|
14504
14507
|
};
|
|
14505
14508
|
content: {
|
|
14506
|
-
'application/json': components['schemas']['
|
|
14509
|
+
'application/json': components['schemas']['FactResponse'];
|
|
14507
14510
|
};
|
|
14508
14511
|
};
|
|
14509
14512
|
/** @description Validation Error */
|
package/dist/index.d.ts
CHANGED
|
@@ -1945,7 +1945,7 @@ interface paths {
|
|
|
1945
1945
|
patch: operations['update_tag'];
|
|
1946
1946
|
trace?: never;
|
|
1947
1947
|
};
|
|
1948
|
-
'/v1/
|
|
1948
|
+
'/v1/facts/': {
|
|
1949
1949
|
parameters: {
|
|
1950
1950
|
query?: never;
|
|
1951
1951
|
header?: never;
|
|
@@ -1955,17 +1955,17 @@ interface paths {
|
|
|
1955
1955
|
get?: never;
|
|
1956
1956
|
put?: never;
|
|
1957
1957
|
/**
|
|
1958
|
-
* Create
|
|
1958
|
+
* Create Fact Endpoint
|
|
1959
1959
|
* @description Create a note in the active workspace.
|
|
1960
1960
|
*/
|
|
1961
|
-
post: operations['
|
|
1961
|
+
post: operations['create_fact'];
|
|
1962
1962
|
delete?: never;
|
|
1963
1963
|
options?: never;
|
|
1964
1964
|
head?: never;
|
|
1965
1965
|
patch?: never;
|
|
1966
1966
|
trace?: never;
|
|
1967
1967
|
};
|
|
1968
|
-
'/v1/
|
|
1968
|
+
'/v1/facts/list': {
|
|
1969
1969
|
parameters: {
|
|
1970
1970
|
query?: never;
|
|
1971
1971
|
header?: never;
|
|
@@ -1973,15 +1973,15 @@ interface paths {
|
|
|
1973
1973
|
cookie?: never;
|
|
1974
1974
|
};
|
|
1975
1975
|
/**
|
|
1976
|
-
* List
|
|
1977
|
-
* @description List
|
|
1976
|
+
* List Facts Endpoint
|
|
1977
|
+
* @description List facts visible in the active workspace.
|
|
1978
1978
|
*
|
|
1979
1979
|
* Newest first by default. Passing a date range (or ``dated_only``) turns this
|
|
1980
|
-
* into the timeline: only dated
|
|
1980
|
+
* into the timeline: only dated facts, ordered by when they happened. Each
|
|
1981
1981
|
* bound is read at its own precision and widened outward, so ``date_to=2019``
|
|
1982
1982
|
* runs through 31 December rather than stopping on 1 January.
|
|
1983
1983
|
*/
|
|
1984
|
-
get: operations['
|
|
1984
|
+
get: operations['list_facts'];
|
|
1985
1985
|
put?: never;
|
|
1986
1986
|
post?: never;
|
|
1987
1987
|
delete?: never;
|
|
@@ -1990,7 +1990,7 @@ interface paths {
|
|
|
1990
1990
|
patch?: never;
|
|
1991
1991
|
trace?: never;
|
|
1992
1992
|
};
|
|
1993
|
-
'/v1/
|
|
1993
|
+
'/v1/facts/search': {
|
|
1994
1994
|
parameters: {
|
|
1995
1995
|
query?: never;
|
|
1996
1996
|
header?: never;
|
|
@@ -2000,17 +2000,17 @@ interface paths {
|
|
|
2000
2000
|
get?: never;
|
|
2001
2001
|
put?: never;
|
|
2002
2002
|
/**
|
|
2003
|
-
* Search
|
|
2004
|
-
* @description Hybrid recall over the workspace's
|
|
2003
|
+
* Search Facts Endpoint
|
|
2004
|
+
* @description Hybrid recall over the workspace's facts.
|
|
2005
2005
|
*/
|
|
2006
|
-
post: operations['
|
|
2006
|
+
post: operations['search_facts'];
|
|
2007
2007
|
delete?: never;
|
|
2008
2008
|
options?: never;
|
|
2009
2009
|
head?: never;
|
|
2010
2010
|
patch?: never;
|
|
2011
2011
|
trace?: never;
|
|
2012
2012
|
};
|
|
2013
|
-
'/v1/
|
|
2013
|
+
'/v1/facts/{fact_ext_id}': {
|
|
2014
2014
|
parameters: {
|
|
2015
2015
|
query?: never;
|
|
2016
2016
|
header?: never;
|
|
@@ -2021,20 +2021,20 @@ interface paths {
|
|
|
2021
2021
|
put?: never;
|
|
2022
2022
|
post?: never;
|
|
2023
2023
|
/**
|
|
2024
|
-
* Delete
|
|
2024
|
+
* Delete Fact Endpoint
|
|
2025
2025
|
* @description Soft-delete a note. RLS governs permission; a blocked delete returns 403.
|
|
2026
2026
|
*/
|
|
2027
|
-
delete: operations['
|
|
2027
|
+
delete: operations['delete_fact'];
|
|
2028
2028
|
options?: never;
|
|
2029
2029
|
head?: never;
|
|
2030
2030
|
/**
|
|
2031
|
-
* Update
|
|
2031
|
+
* Update Fact Endpoint
|
|
2032
2032
|
* @description Patch a note. A content edit replaces it (append + soft-delete); pin/share toggle in place.
|
|
2033
2033
|
*/
|
|
2034
|
-
patch: operations['
|
|
2034
|
+
patch: operations['update_fact'];
|
|
2035
2035
|
trace?: never;
|
|
2036
2036
|
};
|
|
2037
|
-
'/v1/
|
|
2037
|
+
'/v1/facts/{fact_ext_id}/remind': {
|
|
2038
2038
|
parameters: {
|
|
2039
2039
|
query?: never;
|
|
2040
2040
|
header?: never;
|
|
@@ -2044,20 +2044,20 @@ interface paths {
|
|
|
2044
2044
|
get?: never;
|
|
2045
2045
|
put?: never;
|
|
2046
2046
|
/**
|
|
2047
|
-
* Remind
|
|
2047
|
+
* Remind Fact Endpoint
|
|
2048
2048
|
* @description Set a one-off reminder for a dated note, and link it to the note.
|
|
2049
2049
|
*
|
|
2050
2050
|
* Give an explicit ``remind_at`` or a ``lead_minutes`` offset before the note's
|
|
2051
|
-
* date; with neither it fires when the
|
|
2051
|
+
* date; with neither it fires when the fact's span starts. Only dated facts can
|
|
2052
2052
|
* be reminded about — there is nothing to fire relative to otherwise.
|
|
2053
2053
|
*
|
|
2054
2054
|
* The reminder is deliberately CONTENT-FREE: it names the note by external id
|
|
2055
|
-
* and nothing else. ``tasks.name`` is plaintext while ``
|
|
2055
|
+
* and nothing else. ``tasks.name`` is plaintext while ``facts.content`` is
|
|
2056
2056
|
* encrypted under the workspace key, so copying the text into the reminder
|
|
2057
2057
|
* would leak the very thing the note protects. The client resolves the text
|
|
2058
2058
|
* from the note when it displays the notification.
|
|
2059
2059
|
*/
|
|
2060
|
-
post: operations['
|
|
2060
|
+
post: operations['remind_fact'];
|
|
2061
2061
|
delete?: never;
|
|
2062
2062
|
options?: never;
|
|
2063
2063
|
head?: never;
|
|
@@ -3543,14 +3543,14 @@ interface components {
|
|
|
3543
3543
|
*/
|
|
3544
3544
|
PERSONAL_AGENT: boolean;
|
|
3545
3545
|
/**
|
|
3546
|
-
*
|
|
3547
|
-
* @description Workspace
|
|
3546
|
+
* Facts Enabled
|
|
3547
|
+
* @description Workspace facts are readable AND writable by the agent: pinned core facts are injected into the prompt, and the agent gets the search_facts (recall) and create_fact (write) tools.
|
|
3548
3548
|
* @default false
|
|
3549
3549
|
*/
|
|
3550
|
-
|
|
3550
|
+
FACTS_ENABLED: boolean;
|
|
3551
3551
|
/**
|
|
3552
3552
|
* Persist Learnings
|
|
3553
|
-
* @description After each turn, the curator consolidates this turn's learnings into durable memories (dedupe + supersede). Independent of
|
|
3553
|
+
* @description After each turn, the curator consolidates this turn's learnings into durable memories (dedupe + supersede). Independent of FACTS_ENABLED.
|
|
3554
3554
|
* @default false
|
|
3555
3555
|
*/
|
|
3556
3556
|
PERSIST_LEARNINGS: boolean;
|
|
@@ -3786,14 +3786,14 @@ interface components {
|
|
|
3786
3786
|
*/
|
|
3787
3787
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3788
3788
|
/**
|
|
3789
|
-
*
|
|
3790
|
-
* @description Workspace
|
|
3789
|
+
* Facts Enabled
|
|
3790
|
+
* @description Workspace facts are readable AND writable by the agent: pinned core facts are injected into the prompt, and the agent gets the search_facts (recall) and create_fact (write) tools.
|
|
3791
3791
|
* @default false
|
|
3792
3792
|
*/
|
|
3793
|
-
|
|
3793
|
+
FACTS_ENABLED: boolean;
|
|
3794
3794
|
/**
|
|
3795
3795
|
* Persist Learnings
|
|
3796
|
-
* @description After each turn, the curator consolidates this turn's learnings into durable memories (dedupe + supersede). Independent of
|
|
3796
|
+
* @description After each turn, the curator consolidates this turn's learnings into durable memories (dedupe + supersede). Independent of FACTS_ENABLED.
|
|
3797
3797
|
* @default false
|
|
3798
3798
|
*/
|
|
3799
3799
|
PERSIST_LEARNINGS: boolean;
|
|
@@ -3875,7 +3875,7 @@ interface components {
|
|
|
3875
3875
|
* "VISION_ENABLED": false,
|
|
3876
3876
|
* "CONVERSATION_SEARCH_ENABLED": false,
|
|
3877
3877
|
* "PERSONAL_AGENT": false,
|
|
3878
|
-
* "
|
|
3878
|
+
* "FACTS_ENABLED": false,
|
|
3879
3879
|
* "PERSIST_LEARNINGS": false,
|
|
3880
3880
|
* "SKILLS_ENABLED": false,
|
|
3881
3881
|
* "SKILL_CREATION": false,
|
|
@@ -4013,7 +4013,7 @@ interface components {
|
|
|
4013
4013
|
* }
|
|
4014
4014
|
* },
|
|
4015
4015
|
* {
|
|
4016
|
-
* "instruction": "What is the main subject or purpose of this document?
|
|
4016
|
+
* "instruction": "What is the main subject or purpose of this document? Open with one concise phrase naming what it is and what it is about, in the form 'Email chain re the site access dispute between Acme and Byrne'. Then add one or two sentences of detail.",
|
|
4017
4017
|
* "name": "doc_subject",
|
|
4018
4018
|
* "tag_type": {
|
|
4019
4019
|
* "options": [],
|
|
@@ -5506,10 +5506,10 @@ interface components {
|
|
|
5506
5506
|
citations?: components['schemas']['CitationSources'] | null;
|
|
5507
5507
|
};
|
|
5508
5508
|
/**
|
|
5509
|
-
*
|
|
5510
|
-
* @description Create a
|
|
5509
|
+
* CreateFactRequest
|
|
5510
|
+
* @description Create a fact in the active workspace.
|
|
5511
5511
|
*/
|
|
5512
|
-
|
|
5512
|
+
CreateFactRequest: {
|
|
5513
5513
|
/** Text */
|
|
5514
5514
|
text: string;
|
|
5515
5515
|
/**
|
|
@@ -5523,11 +5523,10 @@ interface components {
|
|
|
5523
5523
|
*/
|
|
5524
5524
|
shared: boolean;
|
|
5525
5525
|
/**
|
|
5526
|
-
*
|
|
5527
|
-
* @default
|
|
5528
|
-
* @enum {string}
|
|
5526
|
+
* Confirmed
|
|
5527
|
+
* @default true
|
|
5529
5528
|
*/
|
|
5530
|
-
|
|
5529
|
+
confirmed: boolean;
|
|
5531
5530
|
/** Date */
|
|
5532
5531
|
date?: string | null;
|
|
5533
5532
|
/** Date End */
|
|
@@ -6368,6 +6367,113 @@ interface components {
|
|
|
6368
6367
|
*/
|
|
6369
6368
|
EVAL_BATCH_TIMEOUT_S: number;
|
|
6370
6369
|
};
|
|
6370
|
+
/** FactDeleteResponse */
|
|
6371
|
+
FactDeleteResponse: {
|
|
6372
|
+
/**
|
|
6373
|
+
* Detail
|
|
6374
|
+
* @default Note deleted successfully
|
|
6375
|
+
*/
|
|
6376
|
+
detail: string;
|
|
6377
|
+
};
|
|
6378
|
+
/** FactResponse */
|
|
6379
|
+
FactResponse: {
|
|
6380
|
+
/** Text */
|
|
6381
|
+
text: string;
|
|
6382
|
+
citations?: components['schemas']['CitationSources'] | null;
|
|
6383
|
+
/** External Id */
|
|
6384
|
+
external_id: string;
|
|
6385
|
+
/** Workspace Ext Id */
|
|
6386
|
+
workspace_ext_id: string;
|
|
6387
|
+
/** Pinned */
|
|
6388
|
+
pinned: boolean;
|
|
6389
|
+
/** Shared */
|
|
6390
|
+
shared: boolean;
|
|
6391
|
+
/** Confirmed */
|
|
6392
|
+
confirmed: boolean;
|
|
6393
|
+
/** Date Start */
|
|
6394
|
+
date_start?: string | null;
|
|
6395
|
+
/** Date End */
|
|
6396
|
+
date_end?: string | null;
|
|
6397
|
+
/** Timezone */
|
|
6398
|
+
timezone?: string | null;
|
|
6399
|
+
/**
|
|
6400
|
+
* Reminder Task Ext Ids
|
|
6401
|
+
* @default []
|
|
6402
|
+
*/
|
|
6403
|
+
reminder_task_ext_ids: string[];
|
|
6404
|
+
/**
|
|
6405
|
+
* Tags
|
|
6406
|
+
* @default []
|
|
6407
|
+
*/
|
|
6408
|
+
tags: components['schemas']['FactTagResponse'][];
|
|
6409
|
+
/** Created By Ext Id */
|
|
6410
|
+
created_by_ext_id: string;
|
|
6411
|
+
/**
|
|
6412
|
+
* Created At
|
|
6413
|
+
* Format: date-time
|
|
6414
|
+
*/
|
|
6415
|
+
created_at: string;
|
|
6416
|
+
/**
|
|
6417
|
+
* Updated At
|
|
6418
|
+
* Format: date-time
|
|
6419
|
+
*/
|
|
6420
|
+
updated_at: string;
|
|
6421
|
+
};
|
|
6422
|
+
/** FactSearchHit */
|
|
6423
|
+
FactSearchHit: {
|
|
6424
|
+
/** External Id */
|
|
6425
|
+
external_id: string;
|
|
6426
|
+
/** Text */
|
|
6427
|
+
text: string;
|
|
6428
|
+
/** Pinned */
|
|
6429
|
+
pinned: boolean;
|
|
6430
|
+
/** Confirmed */
|
|
6431
|
+
confirmed: boolean;
|
|
6432
|
+
/** Score */
|
|
6433
|
+
score: number;
|
|
6434
|
+
};
|
|
6435
|
+
/**
|
|
6436
|
+
* FactSearchRequest
|
|
6437
|
+
* @description Hybrid recall over the workspace's facts.
|
|
6438
|
+
*/
|
|
6439
|
+
FactSearchRequest: {
|
|
6440
|
+
/**
|
|
6441
|
+
* Query
|
|
6442
|
+
* @description Search query text
|
|
6443
|
+
*/
|
|
6444
|
+
query: string;
|
|
6445
|
+
/**
|
|
6446
|
+
* Search Mode
|
|
6447
|
+
* @description Retrieval mode
|
|
6448
|
+
* @default hybrid
|
|
6449
|
+
* @enum {string}
|
|
6450
|
+
*/
|
|
6451
|
+
search_mode: 'semantic' | 'keyword' | 'hybrid';
|
|
6452
|
+
/**
|
|
6453
|
+
* Limit
|
|
6454
|
+
* @description Maximum number of notes to return
|
|
6455
|
+
* @default 10
|
|
6456
|
+
*/
|
|
6457
|
+
limit: number;
|
|
6458
|
+
};
|
|
6459
|
+
/** FactSearchResponse */
|
|
6460
|
+
FactSearchResponse: {
|
|
6461
|
+
/**
|
|
6462
|
+
* Facts
|
|
6463
|
+
* @default []
|
|
6464
|
+
*/
|
|
6465
|
+
facts: components['schemas']['FactSearchHit'][];
|
|
6466
|
+
};
|
|
6467
|
+
/**
|
|
6468
|
+
* FactTagResponse
|
|
6469
|
+
* @description A tag attached to a note — the tag's identity, decrypted name included.
|
|
6470
|
+
*/
|
|
6471
|
+
FactTagResponse: {
|
|
6472
|
+
/** Tag Ext Id */
|
|
6473
|
+
tag_ext_id: string;
|
|
6474
|
+
/** Name */
|
|
6475
|
+
name: string;
|
|
6476
|
+
};
|
|
6371
6477
|
/**
|
|
6372
6478
|
* FileDeleteResponse
|
|
6373
6479
|
* @description OpenAI-compatible file deletion response.
|
|
@@ -7007,7 +7113,7 @@ interface components {
|
|
|
7007
7113
|
* MemoryLLMConfig
|
|
7008
7114
|
* @description Configuration for MemoryLLM — the post-turn curator.
|
|
7009
7115
|
*
|
|
7010
|
-
* Judges which of a turn's learnings are worth keeping as durable
|
|
7116
|
+
* Judges which of a turn's learnings are worth keeping as durable Facts and
|
|
7011
7117
|
* reconciles them against existing ones (dedupe + supersede). It never
|
|
7012
7118
|
* re-authors text: each kept learning is stored verbatim.
|
|
7013
7119
|
*
|
|
@@ -7508,113 +7614,6 @@ interface components {
|
|
|
7508
7614
|
DoctagLLM: components['schemas']['DoctagLLMUserConfig'];
|
|
7509
7615
|
Parser: components['schemas']['ParserUserConfig'];
|
|
7510
7616
|
};
|
|
7511
|
-
/** NoteDeleteResponse */
|
|
7512
|
-
NoteDeleteResponse: {
|
|
7513
|
-
/**
|
|
7514
|
-
* Detail
|
|
7515
|
-
* @default Note deleted successfully
|
|
7516
|
-
*/
|
|
7517
|
-
detail: string;
|
|
7518
|
-
};
|
|
7519
|
-
/** NoteResponse */
|
|
7520
|
-
NoteResponse: {
|
|
7521
|
-
/** Text */
|
|
7522
|
-
text: string;
|
|
7523
|
-
citations?: components['schemas']['CitationSources'] | null;
|
|
7524
|
-
/** External Id */
|
|
7525
|
-
external_id: string;
|
|
7526
|
-
/** Workspace Ext Id */
|
|
7527
|
-
workspace_ext_id: string;
|
|
7528
|
-
/** Pinned */
|
|
7529
|
-
pinned: boolean;
|
|
7530
|
-
/** Shared */
|
|
7531
|
-
shared: boolean;
|
|
7532
|
-
/** Source */
|
|
7533
|
-
source: string;
|
|
7534
|
-
/** Date Start */
|
|
7535
|
-
date_start?: string | null;
|
|
7536
|
-
/** Date End */
|
|
7537
|
-
date_end?: string | null;
|
|
7538
|
-
/** Timezone */
|
|
7539
|
-
timezone?: string | null;
|
|
7540
|
-
/**
|
|
7541
|
-
* Reminder Task Ext Ids
|
|
7542
|
-
* @default []
|
|
7543
|
-
*/
|
|
7544
|
-
reminder_task_ext_ids: string[];
|
|
7545
|
-
/**
|
|
7546
|
-
* Tags
|
|
7547
|
-
* @default []
|
|
7548
|
-
*/
|
|
7549
|
-
tags: components['schemas']['NoteTagResponse'][];
|
|
7550
|
-
/** Created By Ext Id */
|
|
7551
|
-
created_by_ext_id: string;
|
|
7552
|
-
/**
|
|
7553
|
-
* Created At
|
|
7554
|
-
* Format: date-time
|
|
7555
|
-
*/
|
|
7556
|
-
created_at: string;
|
|
7557
|
-
/**
|
|
7558
|
-
* Updated At
|
|
7559
|
-
* Format: date-time
|
|
7560
|
-
*/
|
|
7561
|
-
updated_at: string;
|
|
7562
|
-
};
|
|
7563
|
-
/** NoteSearchHit */
|
|
7564
|
-
NoteSearchHit: {
|
|
7565
|
-
/** External Id */
|
|
7566
|
-
external_id: string;
|
|
7567
|
-
/** Text */
|
|
7568
|
-
text: string;
|
|
7569
|
-
/** Pinned */
|
|
7570
|
-
pinned: boolean;
|
|
7571
|
-
/** Source */
|
|
7572
|
-
source: string;
|
|
7573
|
-
/** Score */
|
|
7574
|
-
score: number;
|
|
7575
|
-
};
|
|
7576
|
-
/**
|
|
7577
|
-
* NoteSearchRequest
|
|
7578
|
-
* @description Hybrid recall over the workspace's notes.
|
|
7579
|
-
*/
|
|
7580
|
-
NoteSearchRequest: {
|
|
7581
|
-
/**
|
|
7582
|
-
* Query
|
|
7583
|
-
* @description Search query text
|
|
7584
|
-
*/
|
|
7585
|
-
query: string;
|
|
7586
|
-
/**
|
|
7587
|
-
* Search Mode
|
|
7588
|
-
* @description Retrieval mode
|
|
7589
|
-
* @default hybrid
|
|
7590
|
-
* @enum {string}
|
|
7591
|
-
*/
|
|
7592
|
-
search_mode: 'semantic' | 'keyword' | 'hybrid';
|
|
7593
|
-
/**
|
|
7594
|
-
* Limit
|
|
7595
|
-
* @description Maximum number of notes to return
|
|
7596
|
-
* @default 10
|
|
7597
|
-
*/
|
|
7598
|
-
limit: number;
|
|
7599
|
-
};
|
|
7600
|
-
/** NoteSearchResponse */
|
|
7601
|
-
NoteSearchResponse: {
|
|
7602
|
-
/**
|
|
7603
|
-
* Notes
|
|
7604
|
-
* @default []
|
|
7605
|
-
*/
|
|
7606
|
-
notes: components['schemas']['NoteSearchHit'][];
|
|
7607
|
-
};
|
|
7608
|
-
/**
|
|
7609
|
-
* NoteTagResponse
|
|
7610
|
-
* @description A tag attached to a note — the tag's identity, decrypted name included.
|
|
7611
|
-
*/
|
|
7612
|
-
NoteTagResponse: {
|
|
7613
|
-
/** Tag Ext Id */
|
|
7614
|
-
tag_ext_id: string;
|
|
7615
|
-
/** Name */
|
|
7616
|
-
name: string;
|
|
7617
|
-
};
|
|
7618
7617
|
/**
|
|
7619
7618
|
* NotificationResponse
|
|
7620
7619
|
* @description Notification response model for API and WebSocket.
|
|
@@ -7634,6 +7633,8 @@ interface components {
|
|
|
7634
7633
|
content?: string | null;
|
|
7635
7634
|
/** Conversation Ext Id */
|
|
7636
7635
|
conversation_ext_id?: string | null;
|
|
7636
|
+
/** Task Ext Id */
|
|
7637
|
+
task_ext_id?: string | null;
|
|
7637
7638
|
/**
|
|
7638
7639
|
* Read
|
|
7639
7640
|
* @default false
|
|
@@ -8459,7 +8460,7 @@ interface components {
|
|
|
8459
8460
|
picture?: string | null;
|
|
8460
8461
|
};
|
|
8461
8462
|
/**
|
|
8462
|
-
*
|
|
8463
|
+
* RemindFactRequest
|
|
8463
8464
|
* @description Set a one-off reminder for a dated note.
|
|
8464
8465
|
*
|
|
8465
8466
|
* Give either an explicit ``remind_at`` or a ``lead_minutes`` offset before
|
|
@@ -8469,7 +8470,7 @@ interface components {
|
|
|
8469
8470
|
* synthesises an inline ``Body_*`` schema for those, which is not strict, and
|
|
8470
8471
|
* the client generator rejects request bodies that accept unknown fields.
|
|
8471
8472
|
*/
|
|
8472
|
-
|
|
8473
|
+
RemindFactRequest: {
|
|
8473
8474
|
/** Remind At */
|
|
8474
8475
|
remind_at?: string | null;
|
|
8475
8476
|
/** Lead Minutes */
|
|
@@ -10573,18 +10574,20 @@ interface components {
|
|
|
10573
10574
|
documents: components['schemas']['DocUpdateRequest'][];
|
|
10574
10575
|
};
|
|
10575
10576
|
/**
|
|
10576
|
-
*
|
|
10577
|
-
* @description Patch a
|
|
10577
|
+
* UpdateFactRequest
|
|
10578
|
+
* @description Patch a fact. An edit to ``text`` soft-deletes the old row and
|
|
10578
10579
|
* inserts a replacement (append + soft-delete lifecycle); ``pinned``/``shared``/
|
|
10579
10580
|
* ``tag_ext_ids`` update in place.
|
|
10580
10581
|
*/
|
|
10581
|
-
|
|
10582
|
+
UpdateFactRequest: {
|
|
10582
10583
|
/** Text */
|
|
10583
10584
|
text?: string | null;
|
|
10584
10585
|
/** Pinned */
|
|
10585
10586
|
pinned?: boolean | null;
|
|
10586
10587
|
/** Shared */
|
|
10587
10588
|
shared?: boolean | null;
|
|
10589
|
+
/** Confirmed */
|
|
10590
|
+
confirmed?: boolean | null;
|
|
10588
10591
|
/** Date */
|
|
10589
10592
|
date?: string | null;
|
|
10590
10593
|
/** Date End */
|
|
@@ -14313,7 +14316,7 @@ interface operations {
|
|
|
14313
14316
|
};
|
|
14314
14317
|
};
|
|
14315
14318
|
};
|
|
14316
|
-
|
|
14319
|
+
create_fact: {
|
|
14317
14320
|
parameters: {
|
|
14318
14321
|
query?: never;
|
|
14319
14322
|
header?: never;
|
|
@@ -14322,7 +14325,7 @@ interface operations {
|
|
|
14322
14325
|
};
|
|
14323
14326
|
requestBody: {
|
|
14324
14327
|
content: {
|
|
14325
|
-
'application/json': components['schemas']['
|
|
14328
|
+
'application/json': components['schemas']['CreateFactRequest'];
|
|
14326
14329
|
};
|
|
14327
14330
|
};
|
|
14328
14331
|
responses: {
|
|
@@ -14332,7 +14335,7 @@ interface operations {
|
|
|
14332
14335
|
[name: string]: unknown;
|
|
14333
14336
|
};
|
|
14334
14337
|
content: {
|
|
14335
|
-
'application/json': components['schemas']['
|
|
14338
|
+
'application/json': components['schemas']['FactResponse'];
|
|
14336
14339
|
};
|
|
14337
14340
|
};
|
|
14338
14341
|
/** @description Validation Error */
|
|
@@ -14346,7 +14349,7 @@ interface operations {
|
|
|
14346
14349
|
};
|
|
14347
14350
|
};
|
|
14348
14351
|
};
|
|
14349
|
-
|
|
14352
|
+
list_facts: {
|
|
14350
14353
|
parameters: {
|
|
14351
14354
|
query?: {
|
|
14352
14355
|
pinned_only?: boolean;
|
|
@@ -14354,7 +14357,7 @@ interface operations {
|
|
|
14354
14357
|
date_from?: string | null;
|
|
14355
14358
|
/** @description Range end, any precision */
|
|
14356
14359
|
date_to?: string | null;
|
|
14357
|
-
/** @description Only
|
|
14360
|
+
/** @description Only facts that carry a date — the timeline view */
|
|
14358
14361
|
dated_only?: boolean;
|
|
14359
14362
|
};
|
|
14360
14363
|
header?: never;
|
|
@@ -14369,7 +14372,7 @@ interface operations {
|
|
|
14369
14372
|
[name: string]: unknown;
|
|
14370
14373
|
};
|
|
14371
14374
|
content: {
|
|
14372
|
-
'application/json': components['schemas']['
|
|
14375
|
+
'application/json': components['schemas']['FactResponse'][];
|
|
14373
14376
|
};
|
|
14374
14377
|
};
|
|
14375
14378
|
/** @description Validation Error */
|
|
@@ -14383,7 +14386,7 @@ interface operations {
|
|
|
14383
14386
|
};
|
|
14384
14387
|
};
|
|
14385
14388
|
};
|
|
14386
|
-
|
|
14389
|
+
search_facts: {
|
|
14387
14390
|
parameters: {
|
|
14388
14391
|
query?: never;
|
|
14389
14392
|
header?: never;
|
|
@@ -14392,7 +14395,7 @@ interface operations {
|
|
|
14392
14395
|
};
|
|
14393
14396
|
requestBody: {
|
|
14394
14397
|
content: {
|
|
14395
|
-
'application/json': components['schemas']['
|
|
14398
|
+
'application/json': components['schemas']['FactSearchRequest'];
|
|
14396
14399
|
};
|
|
14397
14400
|
};
|
|
14398
14401
|
responses: {
|
|
@@ -14402,7 +14405,7 @@ interface operations {
|
|
|
14402
14405
|
[name: string]: unknown;
|
|
14403
14406
|
};
|
|
14404
14407
|
content: {
|
|
14405
|
-
'application/json': components['schemas']['
|
|
14408
|
+
'application/json': components['schemas']['FactSearchResponse'];
|
|
14406
14409
|
};
|
|
14407
14410
|
};
|
|
14408
14411
|
/** @description Validation Error */
|
|
@@ -14416,12 +14419,12 @@ interface operations {
|
|
|
14416
14419
|
};
|
|
14417
14420
|
};
|
|
14418
14421
|
};
|
|
14419
|
-
|
|
14422
|
+
delete_fact: {
|
|
14420
14423
|
parameters: {
|
|
14421
14424
|
query?: never;
|
|
14422
14425
|
header?: never;
|
|
14423
14426
|
path: {
|
|
14424
|
-
|
|
14427
|
+
fact_ext_id: string;
|
|
14425
14428
|
};
|
|
14426
14429
|
cookie?: never;
|
|
14427
14430
|
};
|
|
@@ -14433,7 +14436,7 @@ interface operations {
|
|
|
14433
14436
|
[name: string]: unknown;
|
|
14434
14437
|
};
|
|
14435
14438
|
content: {
|
|
14436
|
-
'application/json': components['schemas']['
|
|
14439
|
+
'application/json': components['schemas']['FactDeleteResponse'];
|
|
14437
14440
|
};
|
|
14438
14441
|
};
|
|
14439
14442
|
/** @description Validation Error */
|
|
@@ -14447,18 +14450,18 @@ interface operations {
|
|
|
14447
14450
|
};
|
|
14448
14451
|
};
|
|
14449
14452
|
};
|
|
14450
|
-
|
|
14453
|
+
update_fact: {
|
|
14451
14454
|
parameters: {
|
|
14452
14455
|
query?: never;
|
|
14453
14456
|
header?: never;
|
|
14454
14457
|
path: {
|
|
14455
|
-
|
|
14458
|
+
fact_ext_id: string;
|
|
14456
14459
|
};
|
|
14457
14460
|
cookie?: never;
|
|
14458
14461
|
};
|
|
14459
14462
|
requestBody: {
|
|
14460
14463
|
content: {
|
|
14461
|
-
'application/json': components['schemas']['
|
|
14464
|
+
'application/json': components['schemas']['UpdateFactRequest'];
|
|
14462
14465
|
};
|
|
14463
14466
|
};
|
|
14464
14467
|
responses: {
|
|
@@ -14468,7 +14471,7 @@ interface operations {
|
|
|
14468
14471
|
[name: string]: unknown;
|
|
14469
14472
|
};
|
|
14470
14473
|
content: {
|
|
14471
|
-
'application/json': components['schemas']['
|
|
14474
|
+
'application/json': components['schemas']['FactResponse'];
|
|
14472
14475
|
};
|
|
14473
14476
|
};
|
|
14474
14477
|
/** @description Validation Error */
|
|
@@ -14482,18 +14485,18 @@ interface operations {
|
|
|
14482
14485
|
};
|
|
14483
14486
|
};
|
|
14484
14487
|
};
|
|
14485
|
-
|
|
14488
|
+
remind_fact: {
|
|
14486
14489
|
parameters: {
|
|
14487
14490
|
query?: never;
|
|
14488
14491
|
header?: never;
|
|
14489
14492
|
path: {
|
|
14490
|
-
|
|
14493
|
+
fact_ext_id: string;
|
|
14491
14494
|
};
|
|
14492
14495
|
cookie?: never;
|
|
14493
14496
|
};
|
|
14494
14497
|
requestBody?: {
|
|
14495
14498
|
content: {
|
|
14496
|
-
'application/json': components['schemas']['
|
|
14499
|
+
'application/json': components['schemas']['RemindFactRequest'];
|
|
14497
14500
|
};
|
|
14498
14501
|
};
|
|
14499
14502
|
responses: {
|
|
@@ -14503,7 +14506,7 @@ interface operations {
|
|
|
14503
14506
|
[name: string]: unknown;
|
|
14504
14507
|
};
|
|
14505
14508
|
content: {
|
|
14506
|
-
'application/json': components['schemas']['
|
|
14509
|
+
'application/json': components['schemas']['FactResponse'];
|
|
14507
14510
|
};
|
|
14508
14511
|
};
|
|
14509
14512
|
/** @description Validation Error */
|
package/package.json
CHANGED