@arbidocs/sdk 0.3.145 → 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/{browser-BgkwIgWN.d.cts → browser-Z9m6Vrzw.d.cts} +45 -45
- package/dist/{browser-BgkwIgWN.d.ts → browser-Z9m6Vrzw.d.ts} +45 -45
- package/dist/browser.cjs +33 -33
- 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 +33 -33
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +33 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1900,16 +1900,16 @@ declare namespace tasks {
|
|
|
1900
1900
|
* Workspace note — per-workspace encrypted knowledge notes with citations.
|
|
1901
1901
|
* The firm's practice profile / house style / precedent knowhow lives here and is
|
|
1902
1902
|
* read by grounded agents. All endpoints require an OPEN workspace.
|
|
1903
|
-
* Backend: `/v1/
|
|
1903
|
+
* Backend: `/v1/facts` (src/api/v1/routers/notes.py).
|
|
1904
1904
|
*/
|
|
1905
1905
|
|
|
1906
|
-
type
|
|
1907
|
-
type
|
|
1908
|
-
type
|
|
1909
|
-
type
|
|
1910
|
-
type
|
|
1906
|
+
type FactResponse = components['schemas']['FactResponse'];
|
|
1907
|
+
type CreateFactRequest = components['schemas']['CreateFactRequest'];
|
|
1908
|
+
type UpdateFactRequest = components['schemas']['UpdateFactRequest'];
|
|
1909
|
+
type FactSearchRequest = components['schemas']['FactSearchRequest'];
|
|
1910
|
+
type FactSearchResponse = components['schemas']['FactSearchResponse'];
|
|
1911
1911
|
/** Create a note. `content` is required; `shared` makes it workspace-wide. */
|
|
1912
|
-
declare function
|
|
1912
|
+
declare function createFact(arbi: ArbiClient, body: CreateFactRequest): Promise<FactResponse>;
|
|
1913
1913
|
/** List the open workspace's notes (newest first). */
|
|
1914
1914
|
/**
|
|
1915
1915
|
* List notes. Passing a date range — or `datedOnly` — turns this into the
|
|
@@ -1920,40 +1920,40 @@ declare function createNote(arbi: ArbiClient, body: CreateNoteRequest): Promise<
|
|
|
1920
1920
|
* The range selects by overlap, so a note spanning all of 2019 shows up in a
|
|
1921
1921
|
* one-month window it covers.
|
|
1922
1922
|
*/
|
|
1923
|
-
declare function
|
|
1923
|
+
declare function listFacts(arbi: ArbiClient, options?: {
|
|
1924
1924
|
pinnedOnly?: boolean;
|
|
1925
1925
|
from?: string;
|
|
1926
1926
|
to?: string;
|
|
1927
1927
|
datedOnly?: boolean;
|
|
1928
|
-
}): Promise<
|
|
1928
|
+
}): Promise<FactResponse[]>;
|
|
1929
1929
|
/** Semantic/keyword/hybrid search across the workspace's notes. */
|
|
1930
|
-
declare function
|
|
1931
|
-
declare function
|
|
1932
|
-
declare function
|
|
1930
|
+
declare function searchFacts(arbi: ArbiClient, body: FactSearchRequest): Promise<FactSearchResponse>;
|
|
1931
|
+
declare function updateFact(arbi: ArbiClient, factId: string, body: UpdateFactRequest): Promise<FactResponse>;
|
|
1932
|
+
declare function deleteFact(arbi: ArbiClient, factId: string): Promise<void>;
|
|
1933
1933
|
/**
|
|
1934
1934
|
* Set a one-off reminder on a dated note. Give `remindAt` for an explicit time,
|
|
1935
1935
|
* or `leadMinutes` to fire that long before the note's date; with neither it
|
|
1936
1936
|
* fires when the note's span starts. A reminder whose time has already passed
|
|
1937
1937
|
* is rejected rather than silently never firing.
|
|
1938
1938
|
*/
|
|
1939
|
-
declare function
|
|
1939
|
+
declare function remindFact(arbi: ArbiClient, factId: string, options?: {
|
|
1940
1940
|
remindAt?: string;
|
|
1941
1941
|
leadMinutes?: number;
|
|
1942
|
-
}): Promise<
|
|
1942
|
+
}): Promise<FactResponse>;
|
|
1943
1943
|
|
|
1944
|
-
type
|
|
1945
|
-
type
|
|
1946
|
-
type
|
|
1947
|
-
type
|
|
1948
|
-
type
|
|
1949
|
-
declare const
|
|
1950
|
-
declare const
|
|
1951
|
-
declare const
|
|
1952
|
-
declare const
|
|
1953
|
-
declare const
|
|
1954
|
-
declare const
|
|
1955
|
-
declare namespace
|
|
1956
|
-
export { type
|
|
1944
|
+
type facts_CreateFactRequest = CreateFactRequest;
|
|
1945
|
+
type facts_FactResponse = FactResponse;
|
|
1946
|
+
type facts_FactSearchRequest = FactSearchRequest;
|
|
1947
|
+
type facts_FactSearchResponse = FactSearchResponse;
|
|
1948
|
+
type facts_UpdateFactRequest = UpdateFactRequest;
|
|
1949
|
+
declare const facts_createFact: typeof createFact;
|
|
1950
|
+
declare const facts_deleteFact: typeof deleteFact;
|
|
1951
|
+
declare const facts_listFacts: typeof listFacts;
|
|
1952
|
+
declare const facts_remindFact: typeof remindFact;
|
|
1953
|
+
declare const facts_searchFacts: typeof searchFacts;
|
|
1954
|
+
declare const facts_updateFact: typeof updateFact;
|
|
1955
|
+
declare namespace facts {
|
|
1956
|
+
export { type facts_CreateFactRequest as CreateFactRequest, type facts_FactResponse as FactResponse, type facts_FactSearchRequest as FactSearchRequest, type facts_FactSearchResponse as FactSearchResponse, type facts_UpdateFactRequest as UpdateFactRequest, facts_createFact as createFact, facts_deleteFact as deleteFact, facts_listFacts as listFacts, facts_remindFact as remindFact, facts_searchFacts as searchFacts, facts_updateFact as updateFact };
|
|
1957
1957
|
}
|
|
1958
1958
|
|
|
1959
1959
|
type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
|
|
@@ -3420,7 +3420,7 @@ declare class Arbi {
|
|
|
3420
3420
|
VISION_ENABLED: boolean;
|
|
3421
3421
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3422
3422
|
PERSONAL_AGENT: boolean;
|
|
3423
|
-
|
|
3423
|
+
FACTS_ENABLED: boolean;
|
|
3424
3424
|
PERSIST_LEARNINGS: boolean;
|
|
3425
3425
|
SKILLS_ENABLED: boolean;
|
|
3426
3426
|
SKILL_CREATION: boolean;
|
|
@@ -3654,7 +3654,7 @@ declare class Arbi {
|
|
|
3654
3654
|
IMAGE_ENABLED: boolean;
|
|
3655
3655
|
VISION_ENABLED: boolean;
|
|
3656
3656
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3657
|
-
|
|
3657
|
+
FACTS_ENABLED: boolean;
|
|
3658
3658
|
PERSIST_LEARNINGS: boolean;
|
|
3659
3659
|
SKILLS_ENABLED: boolean;
|
|
3660
3660
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -3851,7 +3851,7 @@ declare class Arbi {
|
|
|
3851
3851
|
VISION_ENABLED: boolean;
|
|
3852
3852
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3853
3853
|
PERSONAL_AGENT: boolean;
|
|
3854
|
-
|
|
3854
|
+
FACTS_ENABLED: boolean;
|
|
3855
3855
|
PERSIST_LEARNINGS: boolean;
|
|
3856
3856
|
SKILLS_ENABLED: boolean;
|
|
3857
3857
|
SKILL_CREATION: boolean;
|
|
@@ -4085,7 +4085,7 @@ declare class Arbi {
|
|
|
4085
4085
|
IMAGE_ENABLED: boolean;
|
|
4086
4086
|
VISION_ENABLED: boolean;
|
|
4087
4087
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
4088
|
-
|
|
4088
|
+
FACTS_ENABLED: boolean;
|
|
4089
4089
|
PERSIST_LEARNINGS: boolean;
|
|
4090
4090
|
SKILLS_ENABLED: boolean;
|
|
4091
4091
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -4312,8 +4312,8 @@ declare class Arbi {
|
|
|
4312
4312
|
updated_at: string;
|
|
4313
4313
|
}>;
|
|
4314
4314
|
};
|
|
4315
|
-
readonly
|
|
4316
|
-
create: (body:
|
|
4315
|
+
readonly facts: {
|
|
4316
|
+
create: (body: CreateFactRequest) => Promise<{
|
|
4317
4317
|
text: string;
|
|
4318
4318
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
4319
4319
|
external_id: string;
|
|
@@ -4325,7 +4325,7 @@ declare class Arbi {
|
|
|
4325
4325
|
date_end?: string | null;
|
|
4326
4326
|
timezone?: string | null;
|
|
4327
4327
|
reminder_task_ext_ids: string[];
|
|
4328
|
-
tags: components["schemas"]["
|
|
4328
|
+
tags: components["schemas"]["FactTagResponse"][];
|
|
4329
4329
|
created_by_ext_id: string;
|
|
4330
4330
|
created_at: string;
|
|
4331
4331
|
updated_at: string;
|
|
@@ -4349,15 +4349,15 @@ declare class Arbi {
|
|
|
4349
4349
|
date_end?: string | null;
|
|
4350
4350
|
timezone?: string | null;
|
|
4351
4351
|
reminder_task_ext_ids: string[];
|
|
4352
|
-
tags: components["schemas"]["
|
|
4352
|
+
tags: components["schemas"]["FactTagResponse"][];
|
|
4353
4353
|
created_by_ext_id: string;
|
|
4354
4354
|
created_at: string;
|
|
4355
4355
|
updated_at: string;
|
|
4356
4356
|
}[]>;
|
|
4357
|
-
search: (body:
|
|
4358
|
-
|
|
4357
|
+
search: (body: FactSearchRequest) => Promise<{
|
|
4358
|
+
facts: components["schemas"]["FactSearchHit"][];
|
|
4359
4359
|
}>;
|
|
4360
|
-
update: (
|
|
4360
|
+
update: (factId: string, body: UpdateFactRequest) => Promise<{
|
|
4361
4361
|
text: string;
|
|
4362
4362
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
4363
4363
|
external_id: string;
|
|
@@ -4369,15 +4369,15 @@ declare class Arbi {
|
|
|
4369
4369
|
date_end?: string | null;
|
|
4370
4370
|
timezone?: string | null;
|
|
4371
4371
|
reminder_task_ext_ids: string[];
|
|
4372
|
-
tags: components["schemas"]["
|
|
4372
|
+
tags: components["schemas"]["FactTagResponse"][];
|
|
4373
4373
|
created_by_ext_id: string;
|
|
4374
4374
|
created_at: string;
|
|
4375
4375
|
updated_at: string;
|
|
4376
4376
|
}>;
|
|
4377
|
-
delete: (
|
|
4377
|
+
delete: (factId: string) => Promise<void>;
|
|
4378
4378
|
/** One-off reminder on a dated note: an explicit `remindAt`, or
|
|
4379
4379
|
* `leadMinutes` before its date. */
|
|
4380
|
-
remind: (
|
|
4380
|
+
remind: (factId: string, options?: {
|
|
4381
4381
|
remindAt?: string;
|
|
4382
4382
|
leadMinutes?: number;
|
|
4383
4383
|
}) => Promise<{
|
|
@@ -4392,7 +4392,7 @@ declare class Arbi {
|
|
|
4392
4392
|
date_end?: string | null;
|
|
4393
4393
|
timezone?: string | null;
|
|
4394
4394
|
reminder_task_ext_ids: string[];
|
|
4395
|
-
tags: components["schemas"]["
|
|
4395
|
+
tags: components["schemas"]["FactTagResponse"][];
|
|
4396
4396
|
created_by_ext_id: string;
|
|
4397
4397
|
created_at: string;
|
|
4398
4398
|
updated_at: string;
|
|
@@ -5230,7 +5230,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5230
5230
|
VISION_ENABLED: boolean;
|
|
5231
5231
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
5232
5232
|
PERSONAL_AGENT: boolean;
|
|
5233
|
-
|
|
5233
|
+
FACTS_ENABLED: boolean;
|
|
5234
5234
|
PERSIST_LEARNINGS: boolean;
|
|
5235
5235
|
SKILLS_ENABLED: boolean;
|
|
5236
5236
|
SKILL_CREATION: boolean;
|
|
@@ -5464,7 +5464,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5464
5464
|
IMAGE_ENABLED: boolean;
|
|
5465
5465
|
VISION_ENABLED: boolean;
|
|
5466
5466
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
5467
|
-
|
|
5467
|
+
FACTS_ENABLED: boolean;
|
|
5468
5468
|
PERSIST_LEARNINGS: boolean;
|
|
5469
5469
|
SKILLS_ENABLED: boolean;
|
|
5470
5470
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -5834,4 +5834,4 @@ declare namespace projects {
|
|
|
5834
5834
|
export { type projects_ProjectInvoicesResponse as ProjectInvoicesResponse, type projects_ProjectUpdateRequest as ProjectUpdateRequest, type projects_ProjectUsageResponse as ProjectUsageResponse, type projects_UserDailyUsageResponse as UserDailyUsageResponse, projects_createProject as createProject, projects_deleteProject as deleteProject, projects_getProjectInvoices as getProjectInvoices, projects_getProjectUsage as getProjectUsage, projects_getUserUsageToday as getUserUsageToday, projects_listProjects as listProjects, projects_refreshProject as refreshProject, projects_renameProject as renameProject, projects_updateProject as updateProject };
|
|
5835
5835
|
}
|
|
5836
5836
|
|
|
5837
|
-
export { type ResponseOutputItemDoneEvent as $, type AgentControlStateEvent as A, type
|
|
5837
|
+
export { type ResponseOutputItemDoneEvent as $, type AgentControlStateEvent as A, type FactSearchRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type FactSearchResponse as E, type FactResponse as F, type FormattedWsMessage as G, type ListPaginatedOptions as H, type MessageMetadataPayload$1 as I, type MessageQueuedEvent as J, type ProbeAnswerEvent as K, type ListAllOptions as L, type MessageLevel as M, type ProjectInvoicesResponse as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type ProjectUsageResponse as Q, type QueryOptions as R, type ReconnectOptions as S, type ReconnectableWsConnection as T, type ResolvedCitation as U, type ResolvedRecipient as V, type ResponseCompletedEvent as W, type ResponseContentPartAddedEvent as X, type ResponseCreatedEvent as Y, type ResponseFailedEvent as Z, type ResponseOutputItemAddedEvent as _, type AgentStepDeltaEvent as a, parseSlashTokenInProgress as a$, type ResponseOutputTextDeltaEvent as a0, type ResponseOutputTextDoneEvent as a1, type ResponseUsage as a2, type SSEEvent as a3, type SSEStreamCallbacks as a4, type SSEStreamResult as a5, type SSEStreamStartData as a6, SUPPORTED_EXTENSIONS as a7, type SkillSummary as a8, type SkippedFile as a9, consumeSSEStream as aA, contacts as aB, conversations as aC, countCitations as aD, createAuthenticatedClient as aE, createDocumentWaiter as aF, dm as aG, doctags as aH, documents as aI, facts as aJ, files as aK, filterSkills as aL, formatAgentStepLabel as aM, formatFileSize as aN, formatItemLabel as aO, formatStreamSummary as aP, formatUserName as aQ, formatWorkspaceChoices as aR, formatWsMessage as aS, generateEncryptedWorkspaceKey as aT, generateNewWorkspaceKey as aU, getErrorCode as aV, getErrorMessage as aW, getRawWorkspaceKey as aX, health as aY, parseSSEEvents as aZ, parseSlashCommand as a_, type TaskResponse as aa, type TokenBudgetContext as ab, type UpdateFactRequest as ac, type UpdateTaskRequest as ad, type UploadBatchResult as ae, type UploadDirectOptions as af, type UploadDirectResult as ag, type UploadOptions as ah, type UploadResult as ai, type UserDailyUsageResponse as aj, type UserInfo as ak, type UserInputRequestEvent as al, type UserMessageEvent as am, WebSocketAuthError as an, type WorkspaceChronologyOut as ao, type WorkspaceContext as ap, type WsConnection as aq, agentconfig as ar, assistant as as, authenticatedFetch as at, buildDocNameMap as au, buildRetrievalChunkTool as av, buildRetrievalFullContextTool as aw, buildRetrievalTocTool as ax, connectWebSocket as ay, connectWithReconnect as az, type AgentStepEvent as b, performPasswordLogin as b0, performSigningKeyLogin as b1, performSsoDeviceFlowLogin as b2, projects as b3, requireData as b4, requireOk as b5, resolveAuth as b6, resolveCitations as b7, resolveWorkspace as b8, responses as b9, selectWorkspace as ba, selectWorkspaceById as bb, settings as bc, streamSSE as bd, stripCitationMarkdown as be, summarizeCitations as bf, tags as bg, tasks as bh, workspaces as bi, Arbi as c, ArbiApiError as d, ArbiError as e, type ArbiErrorEvent as f, type ArbiOptions as g, type ArtifactEvent as h, type AuthContext as i, type AuthHeaders as j, type AuthenticatedClient as k, type CitationSummary as l, type CliConfig as m, type CliCredentials as n, type CommandDescriptor as o, type ConfigStore as p, type ConnectOptions as q, type CreateFactRequest as r, type CreateTaskRequest as s, type DeferredInterjectionEvent as t, type DmCryptoContext as u, type DocNameMap as v, type DocumentListFields as w, type DocumentListOrder as x, type DocumentWaiter as y, type DocumentWaiterOptions as z };
|
|
@@ -1900,16 +1900,16 @@ declare namespace tasks {
|
|
|
1900
1900
|
* Workspace note — per-workspace encrypted knowledge notes with citations.
|
|
1901
1901
|
* The firm's practice profile / house style / precedent knowhow lives here and is
|
|
1902
1902
|
* read by grounded agents. All endpoints require an OPEN workspace.
|
|
1903
|
-
* Backend: `/v1/
|
|
1903
|
+
* Backend: `/v1/facts` (src/api/v1/routers/notes.py).
|
|
1904
1904
|
*/
|
|
1905
1905
|
|
|
1906
|
-
type
|
|
1907
|
-
type
|
|
1908
|
-
type
|
|
1909
|
-
type
|
|
1910
|
-
type
|
|
1906
|
+
type FactResponse = components['schemas']['FactResponse'];
|
|
1907
|
+
type CreateFactRequest = components['schemas']['CreateFactRequest'];
|
|
1908
|
+
type UpdateFactRequest = components['schemas']['UpdateFactRequest'];
|
|
1909
|
+
type FactSearchRequest = components['schemas']['FactSearchRequest'];
|
|
1910
|
+
type FactSearchResponse = components['schemas']['FactSearchResponse'];
|
|
1911
1911
|
/** Create a note. `content` is required; `shared` makes it workspace-wide. */
|
|
1912
|
-
declare function
|
|
1912
|
+
declare function createFact(arbi: ArbiClient, body: CreateFactRequest): Promise<FactResponse>;
|
|
1913
1913
|
/** List the open workspace's notes (newest first). */
|
|
1914
1914
|
/**
|
|
1915
1915
|
* List notes. Passing a date range — or `datedOnly` — turns this into the
|
|
@@ -1920,40 +1920,40 @@ declare function createNote(arbi: ArbiClient, body: CreateNoteRequest): Promise<
|
|
|
1920
1920
|
* The range selects by overlap, so a note spanning all of 2019 shows up in a
|
|
1921
1921
|
* one-month window it covers.
|
|
1922
1922
|
*/
|
|
1923
|
-
declare function
|
|
1923
|
+
declare function listFacts(arbi: ArbiClient, options?: {
|
|
1924
1924
|
pinnedOnly?: boolean;
|
|
1925
1925
|
from?: string;
|
|
1926
1926
|
to?: string;
|
|
1927
1927
|
datedOnly?: boolean;
|
|
1928
|
-
}): Promise<
|
|
1928
|
+
}): Promise<FactResponse[]>;
|
|
1929
1929
|
/** Semantic/keyword/hybrid search across the workspace's notes. */
|
|
1930
|
-
declare function
|
|
1931
|
-
declare function
|
|
1932
|
-
declare function
|
|
1930
|
+
declare function searchFacts(arbi: ArbiClient, body: FactSearchRequest): Promise<FactSearchResponse>;
|
|
1931
|
+
declare function updateFact(arbi: ArbiClient, factId: string, body: UpdateFactRequest): Promise<FactResponse>;
|
|
1932
|
+
declare function deleteFact(arbi: ArbiClient, factId: string): Promise<void>;
|
|
1933
1933
|
/**
|
|
1934
1934
|
* Set a one-off reminder on a dated note. Give `remindAt` for an explicit time,
|
|
1935
1935
|
* or `leadMinutes` to fire that long before the note's date; with neither it
|
|
1936
1936
|
* fires when the note's span starts. A reminder whose time has already passed
|
|
1937
1937
|
* is rejected rather than silently never firing.
|
|
1938
1938
|
*/
|
|
1939
|
-
declare function
|
|
1939
|
+
declare function remindFact(arbi: ArbiClient, factId: string, options?: {
|
|
1940
1940
|
remindAt?: string;
|
|
1941
1941
|
leadMinutes?: number;
|
|
1942
|
-
}): Promise<
|
|
1942
|
+
}): Promise<FactResponse>;
|
|
1943
1943
|
|
|
1944
|
-
type
|
|
1945
|
-
type
|
|
1946
|
-
type
|
|
1947
|
-
type
|
|
1948
|
-
type
|
|
1949
|
-
declare const
|
|
1950
|
-
declare const
|
|
1951
|
-
declare const
|
|
1952
|
-
declare const
|
|
1953
|
-
declare const
|
|
1954
|
-
declare const
|
|
1955
|
-
declare namespace
|
|
1956
|
-
export { type
|
|
1944
|
+
type facts_CreateFactRequest = CreateFactRequest;
|
|
1945
|
+
type facts_FactResponse = FactResponse;
|
|
1946
|
+
type facts_FactSearchRequest = FactSearchRequest;
|
|
1947
|
+
type facts_FactSearchResponse = FactSearchResponse;
|
|
1948
|
+
type facts_UpdateFactRequest = UpdateFactRequest;
|
|
1949
|
+
declare const facts_createFact: typeof createFact;
|
|
1950
|
+
declare const facts_deleteFact: typeof deleteFact;
|
|
1951
|
+
declare const facts_listFacts: typeof listFacts;
|
|
1952
|
+
declare const facts_remindFact: typeof remindFact;
|
|
1953
|
+
declare const facts_searchFacts: typeof searchFacts;
|
|
1954
|
+
declare const facts_updateFact: typeof updateFact;
|
|
1955
|
+
declare namespace facts {
|
|
1956
|
+
export { type facts_CreateFactRequest as CreateFactRequest, type facts_FactResponse as FactResponse, type facts_FactSearchRequest as FactSearchRequest, type facts_FactSearchResponse as FactSearchResponse, type facts_UpdateFactRequest as UpdateFactRequest, facts_createFact as createFact, facts_deleteFact as deleteFact, facts_listFacts as listFacts, facts_remindFact as remindFact, facts_searchFacts as searchFacts, facts_updateFact as updateFact };
|
|
1957
1957
|
}
|
|
1958
1958
|
|
|
1959
1959
|
type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
|
|
@@ -3420,7 +3420,7 @@ declare class Arbi {
|
|
|
3420
3420
|
VISION_ENABLED: boolean;
|
|
3421
3421
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3422
3422
|
PERSONAL_AGENT: boolean;
|
|
3423
|
-
|
|
3423
|
+
FACTS_ENABLED: boolean;
|
|
3424
3424
|
PERSIST_LEARNINGS: boolean;
|
|
3425
3425
|
SKILLS_ENABLED: boolean;
|
|
3426
3426
|
SKILL_CREATION: boolean;
|
|
@@ -3654,7 +3654,7 @@ declare class Arbi {
|
|
|
3654
3654
|
IMAGE_ENABLED: boolean;
|
|
3655
3655
|
VISION_ENABLED: boolean;
|
|
3656
3656
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3657
|
-
|
|
3657
|
+
FACTS_ENABLED: boolean;
|
|
3658
3658
|
PERSIST_LEARNINGS: boolean;
|
|
3659
3659
|
SKILLS_ENABLED: boolean;
|
|
3660
3660
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -3851,7 +3851,7 @@ declare class Arbi {
|
|
|
3851
3851
|
VISION_ENABLED: boolean;
|
|
3852
3852
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3853
3853
|
PERSONAL_AGENT: boolean;
|
|
3854
|
-
|
|
3854
|
+
FACTS_ENABLED: boolean;
|
|
3855
3855
|
PERSIST_LEARNINGS: boolean;
|
|
3856
3856
|
SKILLS_ENABLED: boolean;
|
|
3857
3857
|
SKILL_CREATION: boolean;
|
|
@@ -4085,7 +4085,7 @@ declare class Arbi {
|
|
|
4085
4085
|
IMAGE_ENABLED: boolean;
|
|
4086
4086
|
VISION_ENABLED: boolean;
|
|
4087
4087
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
4088
|
-
|
|
4088
|
+
FACTS_ENABLED: boolean;
|
|
4089
4089
|
PERSIST_LEARNINGS: boolean;
|
|
4090
4090
|
SKILLS_ENABLED: boolean;
|
|
4091
4091
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -4312,8 +4312,8 @@ declare class Arbi {
|
|
|
4312
4312
|
updated_at: string;
|
|
4313
4313
|
}>;
|
|
4314
4314
|
};
|
|
4315
|
-
readonly
|
|
4316
|
-
create: (body:
|
|
4315
|
+
readonly facts: {
|
|
4316
|
+
create: (body: CreateFactRequest) => Promise<{
|
|
4317
4317
|
text: string;
|
|
4318
4318
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
4319
4319
|
external_id: string;
|
|
@@ -4325,7 +4325,7 @@ declare class Arbi {
|
|
|
4325
4325
|
date_end?: string | null;
|
|
4326
4326
|
timezone?: string | null;
|
|
4327
4327
|
reminder_task_ext_ids: string[];
|
|
4328
|
-
tags: components["schemas"]["
|
|
4328
|
+
tags: components["schemas"]["FactTagResponse"][];
|
|
4329
4329
|
created_by_ext_id: string;
|
|
4330
4330
|
created_at: string;
|
|
4331
4331
|
updated_at: string;
|
|
@@ -4349,15 +4349,15 @@ declare class Arbi {
|
|
|
4349
4349
|
date_end?: string | null;
|
|
4350
4350
|
timezone?: string | null;
|
|
4351
4351
|
reminder_task_ext_ids: string[];
|
|
4352
|
-
tags: components["schemas"]["
|
|
4352
|
+
tags: components["schemas"]["FactTagResponse"][];
|
|
4353
4353
|
created_by_ext_id: string;
|
|
4354
4354
|
created_at: string;
|
|
4355
4355
|
updated_at: string;
|
|
4356
4356
|
}[]>;
|
|
4357
|
-
search: (body:
|
|
4358
|
-
|
|
4357
|
+
search: (body: FactSearchRequest) => Promise<{
|
|
4358
|
+
facts: components["schemas"]["FactSearchHit"][];
|
|
4359
4359
|
}>;
|
|
4360
|
-
update: (
|
|
4360
|
+
update: (factId: string, body: UpdateFactRequest) => Promise<{
|
|
4361
4361
|
text: string;
|
|
4362
4362
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
4363
4363
|
external_id: string;
|
|
@@ -4369,15 +4369,15 @@ declare class Arbi {
|
|
|
4369
4369
|
date_end?: string | null;
|
|
4370
4370
|
timezone?: string | null;
|
|
4371
4371
|
reminder_task_ext_ids: string[];
|
|
4372
|
-
tags: components["schemas"]["
|
|
4372
|
+
tags: components["schemas"]["FactTagResponse"][];
|
|
4373
4373
|
created_by_ext_id: string;
|
|
4374
4374
|
created_at: string;
|
|
4375
4375
|
updated_at: string;
|
|
4376
4376
|
}>;
|
|
4377
|
-
delete: (
|
|
4377
|
+
delete: (factId: string) => Promise<void>;
|
|
4378
4378
|
/** One-off reminder on a dated note: an explicit `remindAt`, or
|
|
4379
4379
|
* `leadMinutes` before its date. */
|
|
4380
|
-
remind: (
|
|
4380
|
+
remind: (factId: string, options?: {
|
|
4381
4381
|
remindAt?: string;
|
|
4382
4382
|
leadMinutes?: number;
|
|
4383
4383
|
}) => Promise<{
|
|
@@ -4392,7 +4392,7 @@ declare class Arbi {
|
|
|
4392
4392
|
date_end?: string | null;
|
|
4393
4393
|
timezone?: string | null;
|
|
4394
4394
|
reminder_task_ext_ids: string[];
|
|
4395
|
-
tags: components["schemas"]["
|
|
4395
|
+
tags: components["schemas"]["FactTagResponse"][];
|
|
4396
4396
|
created_by_ext_id: string;
|
|
4397
4397
|
created_at: string;
|
|
4398
4398
|
updated_at: string;
|
|
@@ -5230,7 +5230,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5230
5230
|
VISION_ENABLED: boolean;
|
|
5231
5231
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
5232
5232
|
PERSONAL_AGENT: boolean;
|
|
5233
|
-
|
|
5233
|
+
FACTS_ENABLED: boolean;
|
|
5234
5234
|
PERSIST_LEARNINGS: boolean;
|
|
5235
5235
|
SKILLS_ENABLED: boolean;
|
|
5236
5236
|
SKILL_CREATION: boolean;
|
|
@@ -5464,7 +5464,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5464
5464
|
IMAGE_ENABLED: boolean;
|
|
5465
5465
|
VISION_ENABLED: boolean;
|
|
5466
5466
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
5467
|
-
|
|
5467
|
+
FACTS_ENABLED: boolean;
|
|
5468
5468
|
PERSIST_LEARNINGS: boolean;
|
|
5469
5469
|
SKILLS_ENABLED: boolean;
|
|
5470
5470
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -5834,4 +5834,4 @@ declare namespace projects {
|
|
|
5834
5834
|
export { type projects_ProjectInvoicesResponse as ProjectInvoicesResponse, type projects_ProjectUpdateRequest as ProjectUpdateRequest, type projects_ProjectUsageResponse as ProjectUsageResponse, type projects_UserDailyUsageResponse as UserDailyUsageResponse, projects_createProject as createProject, projects_deleteProject as deleteProject, projects_getProjectInvoices as getProjectInvoices, projects_getProjectUsage as getProjectUsage, projects_getUserUsageToday as getUserUsageToday, projects_listProjects as listProjects, projects_refreshProject as refreshProject, projects_renameProject as renameProject, projects_updateProject as updateProject };
|
|
5835
5835
|
}
|
|
5836
5836
|
|
|
5837
|
-
export { type ResponseOutputItemDoneEvent as $, type AgentControlStateEvent as A, type
|
|
5837
|
+
export { type ResponseOutputItemDoneEvent as $, type AgentControlStateEvent as A, type FactSearchRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type FactSearchResponse as E, type FactResponse as F, type FormattedWsMessage as G, type ListPaginatedOptions as H, type MessageMetadataPayload$1 as I, type MessageQueuedEvent as J, type ProbeAnswerEvent as K, type ListAllOptions as L, type MessageLevel as M, type ProjectInvoicesResponse as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type ProjectUsageResponse as Q, type QueryOptions as R, type ReconnectOptions as S, type ReconnectableWsConnection as T, type ResolvedCitation as U, type ResolvedRecipient as V, type ResponseCompletedEvent as W, type ResponseContentPartAddedEvent as X, type ResponseCreatedEvent as Y, type ResponseFailedEvent as Z, type ResponseOutputItemAddedEvent as _, type AgentStepDeltaEvent as a, parseSlashTokenInProgress as a$, type ResponseOutputTextDeltaEvent as a0, type ResponseOutputTextDoneEvent as a1, type ResponseUsage as a2, type SSEEvent as a3, type SSEStreamCallbacks as a4, type SSEStreamResult as a5, type SSEStreamStartData as a6, SUPPORTED_EXTENSIONS as a7, type SkillSummary as a8, type SkippedFile as a9, consumeSSEStream as aA, contacts as aB, conversations as aC, countCitations as aD, createAuthenticatedClient as aE, createDocumentWaiter as aF, dm as aG, doctags as aH, documents as aI, facts as aJ, files as aK, filterSkills as aL, formatAgentStepLabel as aM, formatFileSize as aN, formatItemLabel as aO, formatStreamSummary as aP, formatUserName as aQ, formatWorkspaceChoices as aR, formatWsMessage as aS, generateEncryptedWorkspaceKey as aT, generateNewWorkspaceKey as aU, getErrorCode as aV, getErrorMessage as aW, getRawWorkspaceKey as aX, health as aY, parseSSEEvents as aZ, parseSlashCommand as a_, type TaskResponse as aa, type TokenBudgetContext as ab, type UpdateFactRequest as ac, type UpdateTaskRequest as ad, type UploadBatchResult as ae, type UploadDirectOptions as af, type UploadDirectResult as ag, type UploadOptions as ah, type UploadResult as ai, type UserDailyUsageResponse as aj, type UserInfo as ak, type UserInputRequestEvent as al, type UserMessageEvent as am, WebSocketAuthError as an, type WorkspaceChronologyOut as ao, type WorkspaceContext as ap, type WsConnection as aq, agentconfig as ar, assistant as as, authenticatedFetch as at, buildDocNameMap as au, buildRetrievalChunkTool as av, buildRetrievalFullContextTool as aw, buildRetrievalTocTool as ax, connectWebSocket as ay, connectWithReconnect as az, type AgentStepEvent as b, performPasswordLogin as b0, performSigningKeyLogin as b1, performSsoDeviceFlowLogin as b2, projects as b3, requireData as b4, requireOk as b5, resolveAuth as b6, resolveCitations as b7, resolveWorkspace as b8, responses as b9, selectWorkspace as ba, selectWorkspaceById as bb, settings as bc, streamSSE as bd, stripCitationMarkdown as be, summarizeCitations as bf, tags as bg, tasks as bh, workspaces as bi, Arbi as c, ArbiApiError as d, ArbiError as e, type ArbiErrorEvent as f, type ArbiOptions as g, type ArtifactEvent as h, type AuthContext as i, type AuthHeaders as j, type AuthenticatedClient as k, type CitationSummary as l, type CliConfig as m, type CliCredentials as n, type CommandDescriptor as o, type ConfigStore as p, type ConnectOptions as q, type CreateFactRequest as r, type CreateTaskRequest as s, type DeferredInterjectionEvent as t, type DmCryptoContext as u, type DocNameMap as v, type DocumentListFields as w, type DocumentListOrder as x, type DocumentWaiter as y, type DocumentWaiterOptions as z };
|
package/dist/browser.cjs
CHANGED
|
@@ -5561,22 +5561,22 @@ async function runTask(arbi, taskId) {
|
|
|
5561
5561
|
);
|
|
5562
5562
|
}
|
|
5563
5563
|
|
|
5564
|
-
// src/operations/
|
|
5565
|
-
var
|
|
5566
|
-
__export(
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5564
|
+
// src/operations/facts.ts
|
|
5565
|
+
var facts_exports = {};
|
|
5566
|
+
__export(facts_exports, {
|
|
5567
|
+
createFact: () => createFact,
|
|
5568
|
+
deleteFact: () => deleteFact,
|
|
5569
|
+
listFacts: () => listFacts,
|
|
5570
|
+
remindFact: () => remindFact,
|
|
5571
|
+
searchFacts: () => searchFacts,
|
|
5572
|
+
updateFact: () => updateFact
|
|
5573
5573
|
});
|
|
5574
|
-
async function
|
|
5575
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
5574
|
+
async function createFact(arbi, body) {
|
|
5575
|
+
return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
|
|
5576
5576
|
}
|
|
5577
|
-
async function
|
|
5577
|
+
async function listFacts(arbi, options) {
|
|
5578
5578
|
return requireData(
|
|
5579
|
-
await arbi.fetch.GET("/v1/
|
|
5579
|
+
await arbi.fetch.GET("/v1/facts/list", {
|
|
5580
5580
|
params: {
|
|
5581
5581
|
query: {
|
|
5582
5582
|
pinned_only: options?.pinnedOnly ?? false,
|
|
@@ -5589,28 +5589,28 @@ async function listNotes(arbi, options) {
|
|
|
5589
5589
|
"Failed to list notes"
|
|
5590
5590
|
);
|
|
5591
5591
|
}
|
|
5592
|
-
async function
|
|
5593
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
5592
|
+
async function searchFacts(arbi, body) {
|
|
5593
|
+
return requireData(await arbi.fetch.POST("/v1/facts/search", { body }), "Failed to search notes");
|
|
5594
5594
|
}
|
|
5595
|
-
async function
|
|
5595
|
+
async function updateFact(arbi, factId, body) {
|
|
5596
5596
|
return requireData(
|
|
5597
|
-
await arbi.fetch.PATCH("/v1/
|
|
5598
|
-
params: { path: {
|
|
5597
|
+
await arbi.fetch.PATCH("/v1/facts/{fact_ext_id}", {
|
|
5598
|
+
params: { path: { fact_ext_id: factId } },
|
|
5599
5599
|
body
|
|
5600
5600
|
}),
|
|
5601
5601
|
"Failed to update note"
|
|
5602
5602
|
);
|
|
5603
5603
|
}
|
|
5604
|
-
async function
|
|
5605
|
-
const { error } = await arbi.fetch.DELETE("/v1/
|
|
5606
|
-
params: { path: {
|
|
5604
|
+
async function deleteFact(arbi, factId) {
|
|
5605
|
+
const { error } = await arbi.fetch.DELETE("/v1/facts/{fact_ext_id}", {
|
|
5606
|
+
params: { path: { fact_ext_id: factId } }
|
|
5607
5607
|
});
|
|
5608
5608
|
if (error) throw new Error("Failed to delete note");
|
|
5609
5609
|
}
|
|
5610
|
-
async function
|
|
5610
|
+
async function remindFact(arbi, factId, options = {}) {
|
|
5611
5611
|
return requireData(
|
|
5612
|
-
await arbi.fetch.POST("/v1/
|
|
5613
|
-
params: { path: {
|
|
5612
|
+
await arbi.fetch.POST("/v1/facts/{fact_ext_id}/remind", {
|
|
5613
|
+
params: { path: { fact_ext_id: factId } },
|
|
5614
5614
|
body: {
|
|
5615
5615
|
remind_at: options.remindAt ?? null,
|
|
5616
5616
|
lead_minutes: options.leadMinutes ?? null
|
|
@@ -6096,18 +6096,18 @@ var Arbi = class {
|
|
|
6096
6096
|
delete: (taskId) => deleteTask(this.requireClient(), taskId),
|
|
6097
6097
|
run: (taskId) => runTask(this.requireClient(), taskId)
|
|
6098
6098
|
};
|
|
6099
|
-
// ── Workspace
|
|
6100
|
-
|
|
6101
|
-
create: (body) =>
|
|
6099
|
+
// ── Workspace facts ─────────────────────────────────────────────────
|
|
6100
|
+
facts = {
|
|
6101
|
+
create: (body) => createFact(this.requireClient(), body),
|
|
6102
6102
|
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6103
6103
|
* ordered by when they happened. */
|
|
6104
|
-
list: (options) =>
|
|
6105
|
-
search: (body) =>
|
|
6106
|
-
update: (
|
|
6107
|
-
delete: (
|
|
6104
|
+
list: (options) => listFacts(this.requireClient(), options),
|
|
6105
|
+
search: (body) => searchFacts(this.requireClient(), body),
|
|
6106
|
+
update: (factId, body) => updateFact(this.requireClient(), factId, body),
|
|
6107
|
+
delete: (factId) => deleteFact(this.requireClient(), factId),
|
|
6108
6108
|
/** One-off reminder on a dated note: an explicit `remindAt`, or
|
|
6109
6109
|
* `leadMinutes` before its date. */
|
|
6110
|
-
remind: (
|
|
6110
|
+
remind: (factId, options = {}) => remindFact(this.requireClient(), factId, options)
|
|
6111
6111
|
};
|
|
6112
6112
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6113
6113
|
sessions = {
|
|
@@ -6217,6 +6217,7 @@ exports.createAuthenticatedClient = createAuthenticatedClient;
|
|
|
6217
6217
|
exports.dm = dm_exports;
|
|
6218
6218
|
exports.doctags = doctags_exports;
|
|
6219
6219
|
exports.documents = documents_exports;
|
|
6220
|
+
exports.facts = facts_exports;
|
|
6220
6221
|
exports.files = files_exports;
|
|
6221
6222
|
exports.filterSkills = filterSkills;
|
|
6222
6223
|
exports.formatAgentStepLabel = formatAgentStepLabel;
|
|
@@ -6227,7 +6228,6 @@ exports.formatWorkspaceChoices = formatWorkspaceChoices;
|
|
|
6227
6228
|
exports.getErrorMessage = getErrorMessage;
|
|
6228
6229
|
exports.getRawWorkspaceKey = getRawWorkspaceKey;
|
|
6229
6230
|
exports.health = health_exports;
|
|
6230
|
-
exports.notes = notes_exports;
|
|
6231
6231
|
exports.parseSSEEvents = parseSSEEvents;
|
|
6232
6232
|
exports.parseSlashCommand = parseSlashCommand;
|
|
6233
6233
|
exports.parseSlashTokenInProgress = parseSlashTokenInProgress;
|