@arbidocs/sdk 0.3.182 → 0.3.184

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.
@@ -1910,11 +1910,35 @@ declare namespace tasks {
1910
1910
 
1911
1911
  type FactResponse = components['schemas']['FactResponse'];
1912
1912
  type CreateFactRequest = components['schemas']['CreateFactRequest'];
1913
+ type CreateFactsRequest = components['schemas']['CreateFactsRequest'];
1913
1914
  type UpdateFactRequest = components['schemas']['UpdateFactRequest'];
1914
1915
  type FactSearchRequest = components['schemas']['FactSearchRequest'];
1915
1916
  type FactSearchResponse = components['schemas']['FactSearchResponse'];
1917
+ /** Filters and paging for {@link listFacts}. */
1918
+ interface ListFactsOptions {
1919
+ pinnedOnly?: boolean;
1920
+ /** Timeline range start, at any precision (`'2019'`, `'2019-10'`). */
1921
+ from?: string;
1922
+ /** Timeline range end, at any precision. */
1923
+ to?: string;
1924
+ datedOnly?: boolean;
1925
+ /** Only notes carrying ALL of these tags. */
1926
+ tagExtIds?: string[];
1927
+ /** Only notes whose sources include this document. */
1928
+ docExtId?: string;
1929
+ /** Page size (1-1000); omit for every matching note. */
1930
+ limit?: number;
1931
+ /** Notes to skip, for paging with `limit`. */
1932
+ offset?: number;
1933
+ }
1916
1934
  /** Create a note. `content` is required; `shared` makes it workspace-wide. */
1917
1935
  declare function createFact(arbi: ArbiClient, body: CreateFactRequest): Promise<FactResponse>;
1936
+ /**
1937
+ * Create several notes in one all-or-nothing request (max 200). Prefer this to a loop of
1938
+ * {@link createFact} for an import: tags are resolved once and the notes are indexed in batches.
1939
+ * Results come back in request order.
1940
+ */
1941
+ declare function createFactsBatch(arbi: ArbiClient, body: CreateFactsRequest): Promise<FactResponse[]>;
1918
1942
  /** List the open workspace's notes (newest first). */
1919
1943
  /**
1920
1944
  * List notes. Passing a date range — or `datedOnly` — turns this into the
@@ -1924,13 +1948,10 @@ declare function createFact(arbi: ArbiClient, body: CreateFactRequest): Promise<
1924
1948
  *
1925
1949
  * The range selects by overlap, so a note spanning all of 2019 shows up in a
1926
1950
  * one-month window it covers.
1951
+ *
1952
+ * Narrow with `tagExtIds` / `docExtId` and page with `limit` / `offset`.
1927
1953
  */
1928
- declare function listFacts(arbi: ArbiClient, options?: {
1929
- pinnedOnly?: boolean;
1930
- from?: string;
1931
- to?: string;
1932
- datedOnly?: boolean;
1933
- }): Promise<FactResponse[]>;
1954
+ declare function listFacts(arbi: ArbiClient, options?: ListFactsOptions): Promise<FactResponse[]>;
1934
1955
  /** Semantic/keyword/hybrid search across the workspace's notes. */
1935
1956
  declare function searchFacts(arbi: ArbiClient, body: FactSearchRequest): Promise<FactSearchResponse>;
1936
1957
  declare function updateFact(arbi: ArbiClient, factId: string, body: UpdateFactRequest): Promise<FactResponse>;
@@ -1947,18 +1968,21 @@ declare function remindFact(arbi: ArbiClient, factId: string, options?: {
1947
1968
  }): Promise<FactResponse>;
1948
1969
 
1949
1970
  type facts_CreateFactRequest = CreateFactRequest;
1971
+ type facts_CreateFactsRequest = CreateFactsRequest;
1950
1972
  type facts_FactResponse = FactResponse;
1951
1973
  type facts_FactSearchRequest = FactSearchRequest;
1952
1974
  type facts_FactSearchResponse = FactSearchResponse;
1975
+ type facts_ListFactsOptions = ListFactsOptions;
1953
1976
  type facts_UpdateFactRequest = UpdateFactRequest;
1954
1977
  declare const facts_createFact: typeof createFact;
1978
+ declare const facts_createFactsBatch: typeof createFactsBatch;
1955
1979
  declare const facts_deleteFact: typeof deleteFact;
1956
1980
  declare const facts_listFacts: typeof listFacts;
1957
1981
  declare const facts_remindFact: typeof remindFact;
1958
1982
  declare const facts_searchFacts: typeof searchFacts;
1959
1983
  declare const facts_updateFact: typeof updateFact;
1960
1984
  declare namespace facts {
1961
- 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 };
1985
+ export { type facts_CreateFactRequest as CreateFactRequest, type facts_CreateFactsRequest as CreateFactsRequest, type facts_FactResponse as FactResponse, type facts_FactSearchRequest as FactSearchRequest, type facts_FactSearchResponse as FactSearchResponse, type facts_ListFactsOptions as ListFactsOptions, type facts_UpdateFactRequest as UpdateFactRequest, facts_createFact as createFact, facts_createFactsBatch as createFactsBatch, facts_deleteFact as deleteFact, facts_listFacts as listFacts, facts_remindFact as remindFact, facts_searchFacts as searchFacts, facts_updateFact as updateFact };
1962
1986
  }
1963
1987
 
1964
1988
  type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
@@ -4385,14 +4409,28 @@ declare class Arbi {
4385
4409
  created_at: string;
4386
4410
  updated_at: string;
4387
4411
  }>;
4412
+ /** Create up to 200 notes in one all-or-nothing request. */
4413
+ createBatch: (body: CreateFactsRequest) => Promise<{
4414
+ text: string;
4415
+ citations?: components["schemas"]["CitationSources"] | null;
4416
+ external_id: string;
4417
+ workspace_ext_id: string;
4418
+ pinned: boolean;
4419
+ shared: boolean;
4420
+ confirmed: boolean;
4421
+ date_start?: string | null;
4422
+ date_end?: string | null;
4423
+ timezone?: string | null;
4424
+ reminder_task_ext_ids: string[];
4425
+ tags: components["schemas"]["FactTagResponse"][];
4426
+ created_by_ext_id: string;
4427
+ created_at: string;
4428
+ updated_at: string;
4429
+ }[]>;
4388
4430
  /** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
4389
- * ordered by when they happened. */
4390
- list: (options?: {
4391
- pinnedOnly?: boolean;
4392
- from?: string;
4393
- to?: string;
4394
- datedOnly?: boolean;
4395
- }) => Promise<{
4431
+ * ordered by when they happened. `tagExtIds` / `docExtId` narrow the list;
4432
+ * `limit` / `offset` page it. */
4433
+ list: (options?: ListFactsOptions) => Promise<{
4396
4434
  text: string;
4397
4435
  citations?: components["schemas"]["CitationSources"] | null;
4398
4436
  external_id: string;
@@ -5934,4 +5972,4 @@ declare namespace projects {
5934
5972
  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 };
5935
5973
  }
5936
5974
 
5937
- 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, performPasswordLogin 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, contacts as aA, conversations as aB, countCitations as aC, createAuthenticatedClient as aD, createDocumentWaiter as aE, dm as aF, doctags as aG, documents as aH, facts as aI, files as aJ, filterSkills as aK, formatAgentStepLabel as aL, formatFileSize as aM, formatItemLabel as aN, formatStreamSummary as aO, formatUserName as aP, formatWorkspaceChoices as aQ, formatWsMessage as aR, generateEncryptedWorkspaceKey as aS, generateNewWorkspaceKey as aT, getErrorCode as aU, getErrorMessage as aV, getRawWorkspaceKey as aW, health as aX, parseSSEEvents as aY, parseSlashCommand as aZ, parseSlashTokenInProgress 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 WorkspaceContext as ao, type WsConnection as ap, agentconfig as aq, assistant as ar, authenticatedFetch as as, buildDocNameMap as at, buildRetrievalChunkTool as au, buildRetrievalFullContextTool as av, buildRetrievalTocTool as aw, connectWebSocket as ax, connectWithReconnect as ay, consumeSSEStream as az, type AgentStepEvent as b, performSigningKeyLogin as b0, performSsoDeviceFlowLogin as b1, projects as b2, requireData as b3, requireOk as b4, resolveAuth as b5, resolveCitations as b6, resolveWorkspace as b7, responses as b8, selectWorkspace as b9, selectWorkspaceById as ba, settings as bb, streamSSE as bc, stripCitationMarkdown as bd, summarizeCitations as be, tags as bf, tasks as bg, workspaces as bh, 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 };
5975
+ export { type ResponseFailedEvent as $, type AgentControlStateEvent as A, type DocumentWaiterOptions as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type FactSearchRequest as E, type FactResponse as F, type FactSearchResponse as G, type FormattedWsMessage as H, type ListFactsOptions as I, type ListPaginatedOptions as J, type MessageMetadataPayload$1 as K, type ListAllOptions as L, type MessageLevel as M, type MessageQueuedEvent as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type ProbeAnswerEvent as Q, type ProjectInvoicesResponse as R, type ProjectUsageResponse as S, type QueryOptions as T, type ReconnectOptions as U, type ReconnectableWsConnection as V, type ResolvedCitation as W, type ResolvedRecipient as X, type ResponseCompletedEvent as Y, type ResponseContentPartAddedEvent as Z, type ResponseCreatedEvent as _, type AgentStepDeltaEvent as a, parseSlashCommand as a$, type ResponseOutputItemAddedEvent as a0, type ResponseOutputItemDoneEvent as a1, type ResponseOutputTextDeltaEvent as a2, type ResponseOutputTextDoneEvent as a3, type ResponseUsage as a4, type SSEEvent as a5, type SSEStreamCallbacks as a6, type SSEStreamResult as a7, type SSEStreamStartData as a8, SUPPORTED_EXTENSIONS as a9, connectWithReconnect as aA, consumeSSEStream as aB, contacts as aC, conversations as aD, countCitations as aE, createAuthenticatedClient as aF, createDocumentWaiter as aG, dm as aH, doctags as aI, documents as aJ, facts as aK, files as aL, filterSkills as aM, formatAgentStepLabel as aN, formatFileSize as aO, formatItemLabel as aP, formatStreamSummary as aQ, formatUserName as aR, formatWorkspaceChoices as aS, formatWsMessage as aT, generateEncryptedWorkspaceKey as aU, generateNewWorkspaceKey as aV, getErrorCode as aW, getErrorMessage as aX, getRawWorkspaceKey as aY, health as aZ, parseSSEEvents as a_, type SkillSummary as aa, type SkippedFile as ab, type TaskResponse as ac, type TokenBudgetContext as ad, type UpdateFactRequest as ae, type UpdateTaskRequest as af, type UploadBatchResult as ag, type UploadDirectOptions as ah, type UploadDirectResult as ai, type UploadOptions as aj, type UploadResult as ak, type UserDailyUsageResponse as al, type UserInfo as am, type UserInputRequestEvent as an, type UserMessageEvent as ao, WebSocketAuthError as ap, type WorkspaceContext as aq, type WsConnection as ar, agentconfig as as, assistant as at, authenticatedFetch as au, buildDocNameMap as av, buildRetrievalChunkTool as aw, buildRetrievalFullContextTool as ax, buildRetrievalTocTool as ay, connectWebSocket as az, type AgentStepEvent as b, parseSlashTokenInProgress as b0, performPasswordLogin as b1, performSigningKeyLogin as b2, performSsoDeviceFlowLogin as b3, projects as b4, requireData as b5, requireOk as b6, resolveAuth as b7, resolveCitations as b8, resolveWorkspace as b9, responses as ba, selectWorkspace as bb, selectWorkspaceById as bc, settings as bd, streamSSE as be, stripCitationMarkdown as bf, summarizeCitations as bg, tags as bh, tasks as bi, workspaces as bj, 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 CreateFactsRequest as s, type CreateTaskRequest as t, type DeferredInterjectionEvent as u, type DmCryptoContext as v, type DocNameMap as w, type DocumentListFields as x, type DocumentListOrder as y, type DocumentWaiter as z };
@@ -1910,11 +1910,35 @@ declare namespace tasks {
1910
1910
 
1911
1911
  type FactResponse = components['schemas']['FactResponse'];
1912
1912
  type CreateFactRequest = components['schemas']['CreateFactRequest'];
1913
+ type CreateFactsRequest = components['schemas']['CreateFactsRequest'];
1913
1914
  type UpdateFactRequest = components['schemas']['UpdateFactRequest'];
1914
1915
  type FactSearchRequest = components['schemas']['FactSearchRequest'];
1915
1916
  type FactSearchResponse = components['schemas']['FactSearchResponse'];
1917
+ /** Filters and paging for {@link listFacts}. */
1918
+ interface ListFactsOptions {
1919
+ pinnedOnly?: boolean;
1920
+ /** Timeline range start, at any precision (`'2019'`, `'2019-10'`). */
1921
+ from?: string;
1922
+ /** Timeline range end, at any precision. */
1923
+ to?: string;
1924
+ datedOnly?: boolean;
1925
+ /** Only notes carrying ALL of these tags. */
1926
+ tagExtIds?: string[];
1927
+ /** Only notes whose sources include this document. */
1928
+ docExtId?: string;
1929
+ /** Page size (1-1000); omit for every matching note. */
1930
+ limit?: number;
1931
+ /** Notes to skip, for paging with `limit`. */
1932
+ offset?: number;
1933
+ }
1916
1934
  /** Create a note. `content` is required; `shared` makes it workspace-wide. */
1917
1935
  declare function createFact(arbi: ArbiClient, body: CreateFactRequest): Promise<FactResponse>;
1936
+ /**
1937
+ * Create several notes in one all-or-nothing request (max 200). Prefer this to a loop of
1938
+ * {@link createFact} for an import: tags are resolved once and the notes are indexed in batches.
1939
+ * Results come back in request order.
1940
+ */
1941
+ declare function createFactsBatch(arbi: ArbiClient, body: CreateFactsRequest): Promise<FactResponse[]>;
1918
1942
  /** List the open workspace's notes (newest first). */
1919
1943
  /**
1920
1944
  * List notes. Passing a date range — or `datedOnly` — turns this into the
@@ -1924,13 +1948,10 @@ declare function createFact(arbi: ArbiClient, body: CreateFactRequest): Promise<
1924
1948
  *
1925
1949
  * The range selects by overlap, so a note spanning all of 2019 shows up in a
1926
1950
  * one-month window it covers.
1951
+ *
1952
+ * Narrow with `tagExtIds` / `docExtId` and page with `limit` / `offset`.
1927
1953
  */
1928
- declare function listFacts(arbi: ArbiClient, options?: {
1929
- pinnedOnly?: boolean;
1930
- from?: string;
1931
- to?: string;
1932
- datedOnly?: boolean;
1933
- }): Promise<FactResponse[]>;
1954
+ declare function listFacts(arbi: ArbiClient, options?: ListFactsOptions): Promise<FactResponse[]>;
1934
1955
  /** Semantic/keyword/hybrid search across the workspace's notes. */
1935
1956
  declare function searchFacts(arbi: ArbiClient, body: FactSearchRequest): Promise<FactSearchResponse>;
1936
1957
  declare function updateFact(arbi: ArbiClient, factId: string, body: UpdateFactRequest): Promise<FactResponse>;
@@ -1947,18 +1968,21 @@ declare function remindFact(arbi: ArbiClient, factId: string, options?: {
1947
1968
  }): Promise<FactResponse>;
1948
1969
 
1949
1970
  type facts_CreateFactRequest = CreateFactRequest;
1971
+ type facts_CreateFactsRequest = CreateFactsRequest;
1950
1972
  type facts_FactResponse = FactResponse;
1951
1973
  type facts_FactSearchRequest = FactSearchRequest;
1952
1974
  type facts_FactSearchResponse = FactSearchResponse;
1975
+ type facts_ListFactsOptions = ListFactsOptions;
1953
1976
  type facts_UpdateFactRequest = UpdateFactRequest;
1954
1977
  declare const facts_createFact: typeof createFact;
1978
+ declare const facts_createFactsBatch: typeof createFactsBatch;
1955
1979
  declare const facts_deleteFact: typeof deleteFact;
1956
1980
  declare const facts_listFacts: typeof listFacts;
1957
1981
  declare const facts_remindFact: typeof remindFact;
1958
1982
  declare const facts_searchFacts: typeof searchFacts;
1959
1983
  declare const facts_updateFact: typeof updateFact;
1960
1984
  declare namespace facts {
1961
- 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 };
1985
+ export { type facts_CreateFactRequest as CreateFactRequest, type facts_CreateFactsRequest as CreateFactsRequest, type facts_FactResponse as FactResponse, type facts_FactSearchRequest as FactSearchRequest, type facts_FactSearchResponse as FactSearchResponse, type facts_ListFactsOptions as ListFactsOptions, type facts_UpdateFactRequest as UpdateFactRequest, facts_createFact as createFact, facts_createFactsBatch as createFactsBatch, facts_deleteFact as deleteFact, facts_listFacts as listFacts, facts_remindFact as remindFact, facts_searchFacts as searchFacts, facts_updateFact as updateFact };
1962
1986
  }
1963
1987
 
1964
1988
  type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
@@ -4385,14 +4409,28 @@ declare class Arbi {
4385
4409
  created_at: string;
4386
4410
  updated_at: string;
4387
4411
  }>;
4412
+ /** Create up to 200 notes in one all-or-nothing request. */
4413
+ createBatch: (body: CreateFactsRequest) => Promise<{
4414
+ text: string;
4415
+ citations?: components["schemas"]["CitationSources"] | null;
4416
+ external_id: string;
4417
+ workspace_ext_id: string;
4418
+ pinned: boolean;
4419
+ shared: boolean;
4420
+ confirmed: boolean;
4421
+ date_start?: string | null;
4422
+ date_end?: string | null;
4423
+ timezone?: string | null;
4424
+ reminder_task_ext_ids: string[];
4425
+ tags: components["schemas"]["FactTagResponse"][];
4426
+ created_by_ext_id: string;
4427
+ created_at: string;
4428
+ updated_at: string;
4429
+ }[]>;
4388
4430
  /** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
4389
- * ordered by when they happened. */
4390
- list: (options?: {
4391
- pinnedOnly?: boolean;
4392
- from?: string;
4393
- to?: string;
4394
- datedOnly?: boolean;
4395
- }) => Promise<{
4431
+ * ordered by when they happened. `tagExtIds` / `docExtId` narrow the list;
4432
+ * `limit` / `offset` page it. */
4433
+ list: (options?: ListFactsOptions) => Promise<{
4396
4434
  text: string;
4397
4435
  citations?: components["schemas"]["CitationSources"] | null;
4398
4436
  external_id: string;
@@ -5934,4 +5972,4 @@ declare namespace projects {
5934
5972
  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 };
5935
5973
  }
5936
5974
 
5937
- 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, performPasswordLogin 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, contacts as aA, conversations as aB, countCitations as aC, createAuthenticatedClient as aD, createDocumentWaiter as aE, dm as aF, doctags as aG, documents as aH, facts as aI, files as aJ, filterSkills as aK, formatAgentStepLabel as aL, formatFileSize as aM, formatItemLabel as aN, formatStreamSummary as aO, formatUserName as aP, formatWorkspaceChoices as aQ, formatWsMessage as aR, generateEncryptedWorkspaceKey as aS, generateNewWorkspaceKey as aT, getErrorCode as aU, getErrorMessage as aV, getRawWorkspaceKey as aW, health as aX, parseSSEEvents as aY, parseSlashCommand as aZ, parseSlashTokenInProgress 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 WorkspaceContext as ao, type WsConnection as ap, agentconfig as aq, assistant as ar, authenticatedFetch as as, buildDocNameMap as at, buildRetrievalChunkTool as au, buildRetrievalFullContextTool as av, buildRetrievalTocTool as aw, connectWebSocket as ax, connectWithReconnect as ay, consumeSSEStream as az, type AgentStepEvent as b, performSigningKeyLogin as b0, performSsoDeviceFlowLogin as b1, projects as b2, requireData as b3, requireOk as b4, resolveAuth as b5, resolveCitations as b6, resolveWorkspace as b7, responses as b8, selectWorkspace as b9, selectWorkspaceById as ba, settings as bb, streamSSE as bc, stripCitationMarkdown as bd, summarizeCitations as be, tags as bf, tasks as bg, workspaces as bh, 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 };
5975
+ export { type ResponseFailedEvent as $, type AgentControlStateEvent as A, type DocumentWaiterOptions as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type FactSearchRequest as E, type FactResponse as F, type FactSearchResponse as G, type FormattedWsMessage as H, type ListFactsOptions as I, type ListPaginatedOptions as J, type MessageMetadataPayload$1 as K, type ListAllOptions as L, type MessageLevel as M, type MessageQueuedEvent as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type ProbeAnswerEvent as Q, type ProjectInvoicesResponse as R, type ProjectUsageResponse as S, type QueryOptions as T, type ReconnectOptions as U, type ReconnectableWsConnection as V, type ResolvedCitation as W, type ResolvedRecipient as X, type ResponseCompletedEvent as Y, type ResponseContentPartAddedEvent as Z, type ResponseCreatedEvent as _, type AgentStepDeltaEvent as a, parseSlashCommand as a$, type ResponseOutputItemAddedEvent as a0, type ResponseOutputItemDoneEvent as a1, type ResponseOutputTextDeltaEvent as a2, type ResponseOutputTextDoneEvent as a3, type ResponseUsage as a4, type SSEEvent as a5, type SSEStreamCallbacks as a6, type SSEStreamResult as a7, type SSEStreamStartData as a8, SUPPORTED_EXTENSIONS as a9, connectWithReconnect as aA, consumeSSEStream as aB, contacts as aC, conversations as aD, countCitations as aE, createAuthenticatedClient as aF, createDocumentWaiter as aG, dm as aH, doctags as aI, documents as aJ, facts as aK, files as aL, filterSkills as aM, formatAgentStepLabel as aN, formatFileSize as aO, formatItemLabel as aP, formatStreamSummary as aQ, formatUserName as aR, formatWorkspaceChoices as aS, formatWsMessage as aT, generateEncryptedWorkspaceKey as aU, generateNewWorkspaceKey as aV, getErrorCode as aW, getErrorMessage as aX, getRawWorkspaceKey as aY, health as aZ, parseSSEEvents as a_, type SkillSummary as aa, type SkippedFile as ab, type TaskResponse as ac, type TokenBudgetContext as ad, type UpdateFactRequest as ae, type UpdateTaskRequest as af, type UploadBatchResult as ag, type UploadDirectOptions as ah, type UploadDirectResult as ai, type UploadOptions as aj, type UploadResult as ak, type UserDailyUsageResponse as al, type UserInfo as am, type UserInputRequestEvent as an, type UserMessageEvent as ao, WebSocketAuthError as ap, type WorkspaceContext as aq, type WsConnection as ar, agentconfig as as, assistant as at, authenticatedFetch as au, buildDocNameMap as av, buildRetrievalChunkTool as aw, buildRetrievalFullContextTool as ax, buildRetrievalTocTool as ay, connectWebSocket as az, type AgentStepEvent as b, parseSlashTokenInProgress as b0, performPasswordLogin as b1, performSigningKeyLogin as b2, performSsoDeviceFlowLogin as b3, projects as b4, requireData as b5, requireOk as b6, resolveAuth as b7, resolveCitations as b8, resolveWorkspace as b9, responses as ba, selectWorkspace as bb, selectWorkspaceById as bc, settings as bd, streamSSE as be, stripCitationMarkdown as bf, summarizeCitations as bg, tags as bh, tasks as bi, workspaces as bj, 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 CreateFactsRequest as s, type CreateTaskRequest as t, type DeferredInterjectionEvent as u, type DmCryptoContext as v, type DocNameMap as w, type DocumentListFields as x, type DocumentListOrder as y, type DocumentWaiter as z };
package/dist/browser.cjs CHANGED
@@ -5558,6 +5558,7 @@ async function runTask(arbi, taskId) {
5558
5558
  var facts_exports = {};
5559
5559
  __export(facts_exports, {
5560
5560
  createFact: () => createFact,
5561
+ createFactsBatch: () => createFactsBatch,
5561
5562
  deleteFact: () => deleteFact,
5562
5563
  listFacts: () => listFacts,
5563
5564
  remindFact: () => remindFact,
@@ -5567,6 +5568,9 @@ __export(facts_exports, {
5567
5568
  async function createFact(arbi, body) {
5568
5569
  return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
5569
5570
  }
5571
+ async function createFactsBatch(arbi, body) {
5572
+ return requireData(await arbi.fetch.POST("/v1/facts/batch", { body }), "Failed to create notes");
5573
+ }
5570
5574
  async function listFacts(arbi, options) {
5571
5575
  return requireData(
5572
5576
  await arbi.fetch.GET("/v1/facts/list", {
@@ -5575,7 +5579,11 @@ async function listFacts(arbi, options) {
5575
5579
  pinned_only: options?.pinnedOnly ?? false,
5576
5580
  date_from: options?.from,
5577
5581
  date_to: options?.to,
5578
- dated_only: options?.datedOnly
5582
+ dated_only: options?.datedOnly,
5583
+ tag_ext_id: options?.tagExtIds,
5584
+ doc_ext_id: options?.docExtId,
5585
+ limit: options?.limit,
5586
+ offset: options?.offset
5579
5587
  }
5580
5588
  }
5581
5589
  }),
@@ -6084,8 +6092,11 @@ var Arbi = class {
6084
6092
  // ── Workspace facts ─────────────────────────────────────────────────
6085
6093
  facts = {
6086
6094
  create: (body) => createFact(this.requireClient(), body),
6095
+ /** Create up to 200 notes in one all-or-nothing request. */
6096
+ createBatch: (body) => createFactsBatch(this.requireClient(), body),
6087
6097
  /** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
6088
- * ordered by when they happened. */
6098
+ * ordered by when they happened. `tagExtIds` / `docExtId` narrow the list;
6099
+ * `limit` / `offset` page it. */
6089
6100
  list: (options) => listFacts(this.requireClient(), options),
6090
6101
  search: (body) => searchFacts(this.requireClient(), body),
6091
6102
  update: (factId, body) => updateFact(this.requireClient(), factId, body),