@arbidocs/sdk 0.4.81 → 0.4.83

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.
@@ -2390,7 +2390,9 @@ declare namespace responses {
2390
2390
  */
2391
2391
 
2392
2392
  type TagResponse = components['schemas']['TagResponse'];
2393
- type UpdateTagRequest$1 = components['schemas']['UpdateTagRequest'];
2393
+ type UpdateTagRequest = components['schemas']['UpdateTagRequest'];
2394
+ /** A change to a tag: only what is given changes (`kind_to_children` defaults to false). */
2395
+ type TagChange = Omit<UpdateTagRequest, 'kind_to_children'> & Partial<Pick<UpdateTagRequest, 'kind_to_children'>>;
2394
2396
  /** A field definition to write (`id` keeps an existing field, so renaming keeps its values). */
2395
2397
  type TagFieldDefinition = components['schemas']['FieldDefinitionWrite'];
2396
2398
  /** A field as a tag carries it (with the tag that defines it: its own, or a parent's). */
@@ -2408,10 +2410,12 @@ declare function listTags(arbi: ArbiClient): Promise<{
2408
2410
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
2409
2411
  options: string[];
2410
2412
  };
2413
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
2411
2414
  shared: boolean;
2412
2415
  parent_ext_id?: string | null | undefined;
2413
2416
  doctag_count: number;
2414
2417
  facttag_count: number;
2418
+ convotag_count: number;
2415
2419
  fields?: {
2416
2420
  id: string;
2417
2421
  name: string;
@@ -2448,10 +2452,12 @@ declare function createTag(arbi: ArbiClient, options: {
2448
2452
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
2449
2453
  options: string[];
2450
2454
  };
2455
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
2451
2456
  shared: boolean;
2452
2457
  parent_ext_id?: string | null | undefined;
2453
2458
  doctag_count: number;
2454
2459
  facttag_count: number;
2460
+ convotag_count: number;
2455
2461
  fields?: {
2456
2462
  id: string;
2457
2463
  name: string;
@@ -2470,7 +2476,7 @@ declare function createTag(arbi: ArbiClient, options: {
2470
2476
  declare function deleteTag(arbi: ArbiClient, tagId: string): Promise<{
2471
2477
  detail: string;
2472
2478
  }>;
2473
- declare function updateTag(arbi: ArbiClient, tagId: string, body: UpdateTagRequest$1): Promise<{
2479
+ declare function updateTag(arbi: ArbiClient, tagId: string, change: TagChange): Promise<{
2474
2480
  external_id: string;
2475
2481
  workspace_ext_id: string;
2476
2482
  name: string;
@@ -2479,10 +2485,12 @@ declare function updateTag(arbi: ArbiClient, tagId: string, body: UpdateTagReque
2479
2485
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
2480
2486
  options: string[];
2481
2487
  };
2488
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
2482
2489
  shared: boolean;
2483
2490
  parent_ext_id?: string | null | undefined;
2484
2491
  doctag_count: number;
2485
2492
  facttag_count: number;
2493
+ convotag_count: number;
2486
2494
  fields?: {
2487
2495
  id: string;
2488
2496
  name: string;
@@ -2536,12 +2544,14 @@ declare function mergeTagFieldDefinitions(tag: Pick<TagResponse, 'external_id' |
2536
2544
  }): TagFieldDefinition[];
2537
2545
 
2538
2546
  declare const tags_TAG_FIELD_TYPES: typeof TAG_FIELD_TYPES;
2547
+ type tags_TagChange = TagChange;
2539
2548
  type tags_TagField = TagField;
2540
2549
  type tags_TagFieldDefinition = TagFieldDefinition;
2541
2550
  type tags_TagMatrixResponse = TagMatrixResponse;
2542
2551
  type tags_TagMatrixRow = TagMatrixRow;
2543
2552
  type tags_TagMatrixSelection = TagMatrixSelection;
2544
2553
  type tags_TagResponse = TagResponse;
2554
+ type tags_UpdateTagRequest = UpdateTagRequest;
2545
2555
  declare const tags_createTag: typeof createTag;
2546
2556
  declare const tags_deleteTag: typeof deleteTag;
2547
2557
  declare const tags_getTagMatrix: typeof getTagMatrix;
@@ -2552,7 +2562,7 @@ declare const tags_tagMatrixColumns: typeof tagMatrixColumns;
2552
2562
  declare const tags_updateTag: typeof updateTag;
2553
2563
  declare const tags_updateTagFields: typeof updateTagFields;
2554
2564
  declare namespace tags {
2555
- export { tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, type tags_TagField as TagField, type tags_TagFieldDefinition as TagFieldDefinition, type tags_TagMatrixResponse as TagMatrixResponse, type tags_TagMatrixRow as TagMatrixRow, type tags_TagMatrixSelection as TagMatrixSelection, type tags_TagResponse as TagResponse, type UpdateTagRequest$1 as UpdateTagRequest, tags_createTag as createTag, tags_deleteTag as deleteTag, tags_getTagMatrix as getTagMatrix, tags_listTags as listTags, tags_mergeTagFieldDefinitions as mergeTagFieldDefinitions, tags_ownTagFields as ownTagFields, tags_tagMatrixColumns as tagMatrixColumns, tags_updateTag as updateTag, tags_updateTagFields as updateTagFields };
2565
+ export { tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, type tags_TagChange as TagChange, type tags_TagField as TagField, type tags_TagFieldDefinition as TagFieldDefinition, type tags_TagMatrixResponse as TagMatrixResponse, type tags_TagMatrixRow as TagMatrixRow, type tags_TagMatrixSelection as TagMatrixSelection, type tags_TagResponse as TagResponse, type tags_UpdateTagRequest as UpdateTagRequest, tags_createTag as createTag, tags_deleteTag as deleteTag, tags_getTagMatrix as getTagMatrix, tags_listTags as listTags, tags_mergeTagFieldDefinitions as mergeTagFieldDefinitions, tags_ownTagFields as ownTagFields, tags_tagMatrixColumns as tagMatrixColumns, tags_updateTag as updateTag, tags_updateTagFields as updateTagFields };
2556
2566
  }
2557
2567
 
2558
2568
  /**
@@ -3162,6 +3172,8 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
3162
3172
  AGENT_API_TYPE: "local" | "remote";
3163
3173
  LLM_AGENT_TEMPERATURE: number;
3164
3174
  AGENT_MAX_TOKENS: number;
3175
+ AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
3176
+ AGENT_STREAM_DEGENERATE_CHARS: number;
3165
3177
  ENABLE_THINKING: boolean;
3166
3178
  AGENT_STRICT_TOOL_CALLS: boolean;
3167
3179
  AGENT_MAX_ITERATIONS: number;
@@ -4654,7 +4666,6 @@ declare namespace facts {
4654
4666
 
4655
4667
  type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
4656
4668
  type WorkspaceUpdateRequest$1 = components['schemas']['WorkspaceUpdateRequest'];
4657
- type UpdateTagRequest = components['schemas']['UpdateTagRequest'];
4658
4669
  type TagFormat = components['schemas']['TagFormat'];
4659
4670
  type CitationSources$1 = components['schemas']['CitationSources'];
4660
4671
  type UserSettingsUpdate$1 = components['schemas']['UserSettingsUpdate'];
@@ -4716,6 +4727,8 @@ declare class Arbi {
4716
4727
  private userProfile;
4717
4728
  private readonly profileListeners;
4718
4729
  private currentWorkspaceId;
4730
+ /** Wrapped workspace keys seen in the last list/create, so selecting needs no re-fetch. */
4731
+ private readonly wrappedKeys;
4719
4732
  private dmCryptoContext;
4720
4733
  private readonly sessionExpiredListeners;
4721
4734
  private readonly options;
@@ -4755,11 +4768,24 @@ declare class Arbi {
4755
4768
  loginWithKey(email: string, signingPrivateKeyBase64: string): Promise<void>;
4756
4769
  /** Recover browser authentication using the encrypted signing key already in IndexedDB. */
4757
4770
  restoreSession(email: string): Promise<boolean>;
4771
+ /** Remember the wrapped keys of workspaces the server just returned. */
4772
+ private rememberWorkspaces;
4773
+ /**
4774
+ * A workspace's wrapped key: from the cache when a list or create already returned it, else from
4775
+ * a fresh workspace list (a workspace created or shared since the last list).
4776
+ */
4777
+ private wrappedKeyFor;
4778
+ /**
4779
+ * Run `withKey` with the workspace's wrapped key. A cached key that no longer works (access was
4780
+ * re-granted with a new key) is dropped and the call retried once with a fresh list.
4781
+ */
4782
+ private withWrappedKey;
4758
4783
  /** A workspace's key, sealed to the caller's own session (what `/open` and `POST /workspace/users` take). */
4759
4784
  private sealWorkspaceKey;
4760
4785
  /**
4761
- * Select a workspace by ID. Fetches the workspace list, finds the matching
4762
- * workspace, decrypts the wrapped key, and sets up auth headers.
4786
+ * Select a workspace by ID. Uses the wrapped key from the last workspace list or create (the
4787
+ * list is fetched only when the workspace is not known yet), decrypts it, and opens the
4788
+ * workspace on the server.
4763
4789
  */
4764
4790
  selectWorkspace(workspaceId: string): Promise<void>;
4765
4791
  /**
@@ -7357,10 +7383,12 @@ declare class Arbi {
7357
7383
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
7358
7384
  options: string[];
7359
7385
  };
7386
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
7360
7387
  shared: boolean;
7361
7388
  parent_ext_id?: string | null | undefined;
7362
7389
  doctag_count: number;
7363
7390
  facttag_count: number;
7391
+ convotag_count: number;
7364
7392
  fields?: {
7365
7393
  id: string;
7366
7394
  name: string;
@@ -7394,10 +7422,12 @@ declare class Arbi {
7394
7422
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
7395
7423
  options: string[];
7396
7424
  };
7425
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
7397
7426
  shared: boolean;
7398
7427
  parent_ext_id?: string | null | undefined;
7399
7428
  doctag_count: number;
7400
7429
  facttag_count: number;
7430
+ convotag_count: number;
7401
7431
  fields?: {
7402
7432
  id: string;
7403
7433
  name: string;
@@ -7416,7 +7446,7 @@ declare class Arbi {
7416
7446
  delete: (tagId: string) => Promise<{
7417
7447
  detail: string;
7418
7448
  }>;
7419
- update: (tagId: string, body: UpdateTagRequest) => Promise<{
7449
+ update: (tagId: string, change: TagChange) => Promise<{
7420
7450
  external_id: string;
7421
7451
  workspace_ext_id: string;
7422
7452
  name: string;
@@ -7425,10 +7455,12 @@ declare class Arbi {
7425
7455
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
7426
7456
  options: string[];
7427
7457
  };
7458
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
7428
7459
  shared: boolean;
7429
7460
  parent_ext_id?: string | null | undefined;
7430
7461
  doctag_count: number;
7431
7462
  facttag_count: number;
7463
+ convotag_count: number;
7432
7464
  fields?: {
7433
7465
  id: string;
7434
7466
  name: string;
@@ -7454,10 +7486,12 @@ declare class Arbi {
7454
7486
  name: string;
7455
7487
  instruction?: string | null;
7456
7488
  tag_type: components["schemas"]["TagFormat"];
7489
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
7457
7490
  shared: boolean;
7458
7491
  parent_ext_id?: string | null;
7459
7492
  doctag_count: number;
7460
7493
  facttag_count: number;
7494
+ convotag_count: number;
7461
7495
  fields?: components["schemas"]["TagField"][];
7462
7496
  field_values?: {
7463
7497
  [key: string]: unknown;
@@ -7779,6 +7813,8 @@ declare class Arbi {
7779
7813
  AGENT_API_TYPE: "local" | "remote";
7780
7814
  LLM_AGENT_TEMPERATURE: number;
7781
7815
  AGENT_MAX_TOKENS: number;
7816
+ AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
7817
+ AGENT_STREAM_DEGENERATE_CHARS: number;
7782
7818
  ENABLE_THINKING: boolean;
7783
7819
  AGENT_STRICT_TOOL_CALLS: boolean;
7784
7820
  AGENT_MAX_ITERATIONS: number;
@@ -8240,6 +8276,8 @@ declare class Arbi {
8240
8276
  AGENT_API_TYPE: "local" | "remote";
8241
8277
  LLM_AGENT_TEMPERATURE: number;
8242
8278
  AGENT_MAX_TOKENS: number;
8279
+ AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
8280
+ AGENT_STREAM_DEGENERATE_CHARS: number;
8243
8281
  ENABLE_THINKING: boolean;
8244
8282
  AGENT_STRICT_TOOL_CALLS: boolean;
8245
8283
  AGENT_MAX_ITERATIONS: number;
@@ -9207,6 +9245,8 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
9207
9245
  AGENT_API_TYPE: "local" | "remote";
9208
9246
  LLM_AGENT_TEMPERATURE: number;
9209
9247
  AGENT_MAX_TOKENS: number;
9248
+ AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
9249
+ AGENT_STREAM_DEGENERATE_CHARS: number;
9210
9250
  ENABLE_THINKING: boolean;
9211
9251
  AGENT_STRICT_TOOL_CALLS: boolean;
9212
9252
  AGENT_MAX_ITERATIONS: number;
@@ -9790,4 +9830,4 @@ declare namespace identity {
9790
9830
  export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
9791
9831
  }
9792
9832
 
9793
- export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type TaskPlanStep as a$, type MailAttachment as a0, type MessageLevel as a1, type MessageMetadataPayload$1 as a2, type MessageQueuedEvent as a3, type OutputTokensDetails as a4, type ParsedSlashCommand as a5, type PendingAuthResponse as a6, PlanStepsError as a7, type PlanWorkRequest as a8, type ProbeAnswerEvent as a9, type RunWaitingOn as aA, type SSEEvent as aB, type SSEStreamCallbacks as aC, type SSEStreamResult as aD, type SSEStreamStartData as aE, SUPPORTED_EXTENSIONS as aF, type SendBack as aG, type SkillSummary as aH, type SkippedFile as aI, type StepActionRequest as aJ, type StepActivityEvent as aK, type StepAssignee as aL, type StepField as aM, type StepKind as aN, type StepPhase as aO, type StepSignal as aP, type StepSignalWhen as aQ, type StepState as aR, type StepStatus as aS, type SubmitBackgroundQueryOptions as aT, type TagField as aU, type TagFieldDefinition as aV, type TagMatrixResponse as aW, type TagMatrixRow as aX, type TagMatrixSelection as aY, type TagResponse as aZ, type TaskPlan as a_, type ProjectBudget as aa, type ProjectConversationUsageResponse as ab, type ProjectDetails as ac, type ProjectEventKind as ad, type ProjectEventResponse as ae, type ProjectInvoicesResponse as af, type ProjectResponse as ag, type ProjectUpdateRequest as ah, type ProjectUsageResponse as ai, type QueryOptions as aj, type RaisedSignal as ak, type ReconnectOptions as al, type ReconnectableWsConnection as am, type ResolvedCitation as an, type ResolvedRecipient as ao, type ResponseCompletedEvent as ap, type ResponseContentPartAddedEvent as aq, type ResponseCreatedEvent as ar, type ResponseFailedEvent as as, type ResponseOutputItemAddedEvent as at, type ResponseOutputItemDoneEvent as au, type ResponseOutputTextDeltaEvent as av, type ResponseOutputTextDoneEvent as aw, type ResponseUsage as ax, type RunProgress as ay, type RunStep as az, type AgentControlStateEvent as b, parseSlashCommand as b$, type TokenBudgetContext as b0, type UpdateConversationRequest as b1, type UpdateFactRequest as b2, type UpdateWorkflowRequest as b3, type UploadBatchResult as b4, type UploadDirectOptions as b5, type UploadDirectResult as b6, type UploadOptions as b7, type UploadResult as b8, type UsageBreakdown as b9, conversations as bA, countCitations as bB, createAuthenticatedClient as bC, createDocumentWaiter as bD, dm as bE, doctags as bF, documents as bG, facts as bH, files as bI, filterSkills as bJ, formatAgentStepLabel as bK, formatFileSize as bL, formatItemLabel as bM, formatStreamSummary as bN, formatUserName as bO, formatWorkspaceChoices as bP, formatWsMessage as bQ, generateEncryptedWorkspaceKey as bR, generateNewWorkspaceKey as bS, getErrorCode as bT, getErrorMessage as bU, getRawWorkspaceKey as bV, health as bW, identity as bX, identityErrorCode as bY, mail as bZ, parseSSEEvents as b_, type UserDailyUsageResponse as ba, type UserInfo as bb, type UserInputRequestEvent as bc, type UserMessageEvent as bd, WebSocketAuthError as be, type WorkStatus as bf, type WorkflowAuthMode as bg, type WorkflowResponse as bh, type WorkflowRunHistoryResponse as bi, type WorkflowRunResponse as bj, type WorkspaceContext as bk, type WsConnection as bl, account as bm, agentconfig as bn, agents as bo, assistant as bp, authenticatedFetch as bq, buildDocNameMap as br, buildFactsContextTool as bs, buildRetrievalChunkTool as bt, buildRetrievalFullContextTool as bu, buildRetrievalTocTool as bv, connectWebSocket as bw, connectWithReconnect as bx, consumeSSEStream as by, contacts as bz, type AgentStepDeltaEvent as c, parseSlashTokenInProgress as c0, performPasswordLogin as c1, performSigningKeyLogin as c2, performSsoDeviceFlowLogin as c3, profile as c4, projects as c5, requireData as c6, requireOk as c7, resolveAuth as c8, resolveCitations as c9, resolveWorkspace as ca, responses as cb, selectWorkspace as cc, selectWorkspaceById as cd, sessions as ce, settings as cf, streamSSE as cg, stripCitationMarkdown as ch, summarizeCitations as ci, tags as cj, work as ck, workflowSteps as cl, workflows as cm, workspaces as cn, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
9833
+ export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type TaskPlan as a$, type MailAttachment as a0, type MessageLevel as a1, type MessageMetadataPayload$1 as a2, type MessageQueuedEvent as a3, type OutputTokensDetails as a4, type ParsedSlashCommand as a5, type PendingAuthResponse as a6, PlanStepsError as a7, type PlanWorkRequest as a8, type ProbeAnswerEvent as a9, type RunWaitingOn as aA, type SSEEvent as aB, type SSEStreamCallbacks as aC, type SSEStreamResult as aD, type SSEStreamStartData as aE, SUPPORTED_EXTENSIONS as aF, type SendBack as aG, type SkillSummary as aH, type SkippedFile as aI, type StepActionRequest as aJ, type StepActivityEvent as aK, type StepAssignee as aL, type StepField as aM, type StepKind as aN, type StepPhase as aO, type StepSignal as aP, type StepSignalWhen as aQ, type StepState as aR, type StepStatus as aS, type SubmitBackgroundQueryOptions as aT, type TagChange as aU, type TagField as aV, type TagFieldDefinition as aW, type TagMatrixResponse as aX, type TagMatrixRow as aY, type TagMatrixSelection as aZ, type TagResponse as a_, type ProjectBudget as aa, type ProjectConversationUsageResponse as ab, type ProjectDetails as ac, type ProjectEventKind as ad, type ProjectEventResponse as ae, type ProjectInvoicesResponse as af, type ProjectResponse as ag, type ProjectUpdateRequest as ah, type ProjectUsageResponse as ai, type QueryOptions as aj, type RaisedSignal as ak, type ReconnectOptions as al, type ReconnectableWsConnection as am, type ResolvedCitation as an, type ResolvedRecipient as ao, type ResponseCompletedEvent as ap, type ResponseContentPartAddedEvent as aq, type ResponseCreatedEvent as ar, type ResponseFailedEvent as as, type ResponseOutputItemAddedEvent as at, type ResponseOutputItemDoneEvent as au, type ResponseOutputTextDeltaEvent as av, type ResponseOutputTextDoneEvent as aw, type ResponseUsage as ax, type RunProgress as ay, type RunStep as az, type AgentControlStateEvent as b, parseSSEEvents as b$, type TaskPlanStep as b0, type TokenBudgetContext as b1, type UpdateConversationRequest as b2, type UpdateFactRequest as b3, type UpdateWorkflowRequest as b4, type UploadBatchResult as b5, type UploadDirectOptions as b6, type UploadDirectResult as b7, type UploadOptions as b8, type UploadResult as b9, contacts as bA, conversations as bB, countCitations as bC, createAuthenticatedClient as bD, createDocumentWaiter as bE, dm as bF, doctags as bG, documents as bH, facts as bI, files as bJ, filterSkills as bK, formatAgentStepLabel as bL, formatFileSize as bM, formatItemLabel as bN, formatStreamSummary as bO, formatUserName as bP, formatWorkspaceChoices as bQ, formatWsMessage as bR, generateEncryptedWorkspaceKey as bS, generateNewWorkspaceKey as bT, getErrorCode as bU, getErrorMessage as bV, getRawWorkspaceKey as bW, health as bX, identity as bY, identityErrorCode as bZ, mail as b_, type UsageBreakdown as ba, type UserDailyUsageResponse as bb, type UserInfo as bc, type UserInputRequestEvent as bd, type UserMessageEvent as be, WebSocketAuthError as bf, type WorkStatus as bg, type WorkflowAuthMode as bh, type WorkflowResponse as bi, type WorkflowRunHistoryResponse as bj, type WorkflowRunResponse as bk, type WorkspaceContext as bl, type WsConnection as bm, account as bn, agentconfig as bo, agents as bp, assistant as bq, authenticatedFetch as br, buildDocNameMap as bs, buildFactsContextTool as bt, buildRetrievalChunkTool as bu, buildRetrievalFullContextTool as bv, buildRetrievalTocTool as bw, connectWebSocket as bx, connectWithReconnect as by, consumeSSEStream as bz, type AgentStepDeltaEvent as c, parseSlashCommand as c0, parseSlashTokenInProgress as c1, performPasswordLogin as c2, performSigningKeyLogin as c3, performSsoDeviceFlowLogin as c4, profile as c5, projects as c6, requireData as c7, requireOk as c8, resolveAuth as c9, resolveCitations as ca, resolveWorkspace as cb, responses as cc, selectWorkspace as cd, selectWorkspaceById as ce, sessions as cf, settings as cg, streamSSE as ch, stripCitationMarkdown as ci, summarizeCitations as cj, tags as ck, work as cl, workflowSteps as cm, workflows as cn, workspaces as co, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
@@ -2390,7 +2390,9 @@ declare namespace responses {
2390
2390
  */
2391
2391
 
2392
2392
  type TagResponse = components['schemas']['TagResponse'];
2393
- type UpdateTagRequest$1 = components['schemas']['UpdateTagRequest'];
2393
+ type UpdateTagRequest = components['schemas']['UpdateTagRequest'];
2394
+ /** A change to a tag: only what is given changes (`kind_to_children` defaults to false). */
2395
+ type TagChange = Omit<UpdateTagRequest, 'kind_to_children'> & Partial<Pick<UpdateTagRequest, 'kind_to_children'>>;
2394
2396
  /** A field definition to write (`id` keeps an existing field, so renaming keeps its values). */
2395
2397
  type TagFieldDefinition = components['schemas']['FieldDefinitionWrite'];
2396
2398
  /** A field as a tag carries it (with the tag that defines it: its own, or a parent's). */
@@ -2408,10 +2410,12 @@ declare function listTags(arbi: ArbiClient): Promise<{
2408
2410
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
2409
2411
  options: string[];
2410
2412
  };
2413
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
2411
2414
  shared: boolean;
2412
2415
  parent_ext_id?: string | null | undefined;
2413
2416
  doctag_count: number;
2414
2417
  facttag_count: number;
2418
+ convotag_count: number;
2415
2419
  fields?: {
2416
2420
  id: string;
2417
2421
  name: string;
@@ -2448,10 +2452,12 @@ declare function createTag(arbi: ArbiClient, options: {
2448
2452
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
2449
2453
  options: string[];
2450
2454
  };
2455
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
2451
2456
  shared: boolean;
2452
2457
  parent_ext_id?: string | null | undefined;
2453
2458
  doctag_count: number;
2454
2459
  facttag_count: number;
2460
+ convotag_count: number;
2455
2461
  fields?: {
2456
2462
  id: string;
2457
2463
  name: string;
@@ -2470,7 +2476,7 @@ declare function createTag(arbi: ArbiClient, options: {
2470
2476
  declare function deleteTag(arbi: ArbiClient, tagId: string): Promise<{
2471
2477
  detail: string;
2472
2478
  }>;
2473
- declare function updateTag(arbi: ArbiClient, tagId: string, body: UpdateTagRequest$1): Promise<{
2479
+ declare function updateTag(arbi: ArbiClient, tagId: string, change: TagChange): Promise<{
2474
2480
  external_id: string;
2475
2481
  workspace_ext_id: string;
2476
2482
  name: string;
@@ -2479,10 +2485,12 @@ declare function updateTag(arbi: ArbiClient, tagId: string, body: UpdateTagReque
2479
2485
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
2480
2486
  options: string[];
2481
2487
  };
2488
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
2482
2489
  shared: boolean;
2483
2490
  parent_ext_id?: string | null | undefined;
2484
2491
  doctag_count: number;
2485
2492
  facttag_count: number;
2493
+ convotag_count: number;
2486
2494
  fields?: {
2487
2495
  id: string;
2488
2496
  name: string;
@@ -2536,12 +2544,14 @@ declare function mergeTagFieldDefinitions(tag: Pick<TagResponse, 'external_id' |
2536
2544
  }): TagFieldDefinition[];
2537
2545
 
2538
2546
  declare const tags_TAG_FIELD_TYPES: typeof TAG_FIELD_TYPES;
2547
+ type tags_TagChange = TagChange;
2539
2548
  type tags_TagField = TagField;
2540
2549
  type tags_TagFieldDefinition = TagFieldDefinition;
2541
2550
  type tags_TagMatrixResponse = TagMatrixResponse;
2542
2551
  type tags_TagMatrixRow = TagMatrixRow;
2543
2552
  type tags_TagMatrixSelection = TagMatrixSelection;
2544
2553
  type tags_TagResponse = TagResponse;
2554
+ type tags_UpdateTagRequest = UpdateTagRequest;
2545
2555
  declare const tags_createTag: typeof createTag;
2546
2556
  declare const tags_deleteTag: typeof deleteTag;
2547
2557
  declare const tags_getTagMatrix: typeof getTagMatrix;
@@ -2552,7 +2562,7 @@ declare const tags_tagMatrixColumns: typeof tagMatrixColumns;
2552
2562
  declare const tags_updateTag: typeof updateTag;
2553
2563
  declare const tags_updateTagFields: typeof updateTagFields;
2554
2564
  declare namespace tags {
2555
- export { tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, type tags_TagField as TagField, type tags_TagFieldDefinition as TagFieldDefinition, type tags_TagMatrixResponse as TagMatrixResponse, type tags_TagMatrixRow as TagMatrixRow, type tags_TagMatrixSelection as TagMatrixSelection, type tags_TagResponse as TagResponse, type UpdateTagRequest$1 as UpdateTagRequest, tags_createTag as createTag, tags_deleteTag as deleteTag, tags_getTagMatrix as getTagMatrix, tags_listTags as listTags, tags_mergeTagFieldDefinitions as mergeTagFieldDefinitions, tags_ownTagFields as ownTagFields, tags_tagMatrixColumns as tagMatrixColumns, tags_updateTag as updateTag, tags_updateTagFields as updateTagFields };
2565
+ export { tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, type tags_TagChange as TagChange, type tags_TagField as TagField, type tags_TagFieldDefinition as TagFieldDefinition, type tags_TagMatrixResponse as TagMatrixResponse, type tags_TagMatrixRow as TagMatrixRow, type tags_TagMatrixSelection as TagMatrixSelection, type tags_TagResponse as TagResponse, type tags_UpdateTagRequest as UpdateTagRequest, tags_createTag as createTag, tags_deleteTag as deleteTag, tags_getTagMatrix as getTagMatrix, tags_listTags as listTags, tags_mergeTagFieldDefinitions as mergeTagFieldDefinitions, tags_ownTagFields as ownTagFields, tags_tagMatrixColumns as tagMatrixColumns, tags_updateTag as updateTag, tags_updateTagFields as updateTagFields };
2556
2566
  }
2557
2567
 
2558
2568
  /**
@@ -3162,6 +3172,8 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
3162
3172
  AGENT_API_TYPE: "local" | "remote";
3163
3173
  LLM_AGENT_TEMPERATURE: number;
3164
3174
  AGENT_MAX_TOKENS: number;
3175
+ AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
3176
+ AGENT_STREAM_DEGENERATE_CHARS: number;
3165
3177
  ENABLE_THINKING: boolean;
3166
3178
  AGENT_STRICT_TOOL_CALLS: boolean;
3167
3179
  AGENT_MAX_ITERATIONS: number;
@@ -4654,7 +4666,6 @@ declare namespace facts {
4654
4666
 
4655
4667
  type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
4656
4668
  type WorkspaceUpdateRequest$1 = components['schemas']['WorkspaceUpdateRequest'];
4657
- type UpdateTagRequest = components['schemas']['UpdateTagRequest'];
4658
4669
  type TagFormat = components['schemas']['TagFormat'];
4659
4670
  type CitationSources$1 = components['schemas']['CitationSources'];
4660
4671
  type UserSettingsUpdate$1 = components['schemas']['UserSettingsUpdate'];
@@ -4716,6 +4727,8 @@ declare class Arbi {
4716
4727
  private userProfile;
4717
4728
  private readonly profileListeners;
4718
4729
  private currentWorkspaceId;
4730
+ /** Wrapped workspace keys seen in the last list/create, so selecting needs no re-fetch. */
4731
+ private readonly wrappedKeys;
4719
4732
  private dmCryptoContext;
4720
4733
  private readonly sessionExpiredListeners;
4721
4734
  private readonly options;
@@ -4755,11 +4768,24 @@ declare class Arbi {
4755
4768
  loginWithKey(email: string, signingPrivateKeyBase64: string): Promise<void>;
4756
4769
  /** Recover browser authentication using the encrypted signing key already in IndexedDB. */
4757
4770
  restoreSession(email: string): Promise<boolean>;
4771
+ /** Remember the wrapped keys of workspaces the server just returned. */
4772
+ private rememberWorkspaces;
4773
+ /**
4774
+ * A workspace's wrapped key: from the cache when a list or create already returned it, else from
4775
+ * a fresh workspace list (a workspace created or shared since the last list).
4776
+ */
4777
+ private wrappedKeyFor;
4778
+ /**
4779
+ * Run `withKey` with the workspace's wrapped key. A cached key that no longer works (access was
4780
+ * re-granted with a new key) is dropped and the call retried once with a fresh list.
4781
+ */
4782
+ private withWrappedKey;
4758
4783
  /** A workspace's key, sealed to the caller's own session (what `/open` and `POST /workspace/users` take). */
4759
4784
  private sealWorkspaceKey;
4760
4785
  /**
4761
- * Select a workspace by ID. Fetches the workspace list, finds the matching
4762
- * workspace, decrypts the wrapped key, and sets up auth headers.
4786
+ * Select a workspace by ID. Uses the wrapped key from the last workspace list or create (the
4787
+ * list is fetched only when the workspace is not known yet), decrypts it, and opens the
4788
+ * workspace on the server.
4763
4789
  */
4764
4790
  selectWorkspace(workspaceId: string): Promise<void>;
4765
4791
  /**
@@ -7357,10 +7383,12 @@ declare class Arbi {
7357
7383
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
7358
7384
  options: string[];
7359
7385
  };
7386
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
7360
7387
  shared: boolean;
7361
7388
  parent_ext_id?: string | null | undefined;
7362
7389
  doctag_count: number;
7363
7390
  facttag_count: number;
7391
+ convotag_count: number;
7364
7392
  fields?: {
7365
7393
  id: string;
7366
7394
  name: string;
@@ -7394,10 +7422,12 @@ declare class Arbi {
7394
7422
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
7395
7423
  options: string[];
7396
7424
  };
7425
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
7397
7426
  shared: boolean;
7398
7427
  parent_ext_id?: string | null | undefined;
7399
7428
  doctag_count: number;
7400
7429
  facttag_count: number;
7430
+ convotag_count: number;
7401
7431
  fields?: {
7402
7432
  id: string;
7403
7433
  name: string;
@@ -7416,7 +7446,7 @@ declare class Arbi {
7416
7446
  delete: (tagId: string) => Promise<{
7417
7447
  detail: string;
7418
7448
  }>;
7419
- update: (tagId: string, body: UpdateTagRequest) => Promise<{
7449
+ update: (tagId: string, change: TagChange) => Promise<{
7420
7450
  external_id: string;
7421
7451
  workspace_ext_id: string;
7422
7452
  name: string;
@@ -7425,10 +7455,12 @@ declare class Arbi {
7425
7455
  type: "checkbox" | "text" | "number" | "select" | "search" | "date";
7426
7456
  options: string[];
7427
7457
  };
7458
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
7428
7459
  shared: boolean;
7429
7460
  parent_ext_id?: string | null | undefined;
7430
7461
  doctag_count: number;
7431
7462
  facttag_count: number;
7463
+ convotag_count: number;
7432
7464
  fields?: {
7433
7465
  id: string;
7434
7466
  name: string;
@@ -7454,10 +7486,12 @@ declare class Arbi {
7454
7486
  name: string;
7455
7487
  instruction?: string | null;
7456
7488
  tag_type: components["schemas"]["TagFormat"];
7489
+ kind: "label" | "annotation" | "search" | "issue" | "person" | "organisation";
7457
7490
  shared: boolean;
7458
7491
  parent_ext_id?: string | null;
7459
7492
  doctag_count: number;
7460
7493
  facttag_count: number;
7494
+ convotag_count: number;
7461
7495
  fields?: components["schemas"]["TagField"][];
7462
7496
  field_values?: {
7463
7497
  [key: string]: unknown;
@@ -7779,6 +7813,8 @@ declare class Arbi {
7779
7813
  AGENT_API_TYPE: "local" | "remote";
7780
7814
  LLM_AGENT_TEMPERATURE: number;
7781
7815
  AGENT_MAX_TOKENS: number;
7816
+ AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
7817
+ AGENT_STREAM_DEGENERATE_CHARS: number;
7782
7818
  ENABLE_THINKING: boolean;
7783
7819
  AGENT_STRICT_TOOL_CALLS: boolean;
7784
7820
  AGENT_MAX_ITERATIONS: number;
@@ -8240,6 +8276,8 @@ declare class Arbi {
8240
8276
  AGENT_API_TYPE: "local" | "remote";
8241
8277
  LLM_AGENT_TEMPERATURE: number;
8242
8278
  AGENT_MAX_TOKENS: number;
8279
+ AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
8280
+ AGENT_STREAM_DEGENERATE_CHARS: number;
8243
8281
  ENABLE_THINKING: boolean;
8244
8282
  AGENT_STRICT_TOOL_CALLS: boolean;
8245
8283
  AGENT_MAX_ITERATIONS: number;
@@ -9207,6 +9245,8 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
9207
9245
  AGENT_API_TYPE: "local" | "remote";
9208
9246
  LLM_AGENT_TEMPERATURE: number;
9209
9247
  AGENT_MAX_TOKENS: number;
9248
+ AGENT_STREAM_OUTPUT_CEILING_TOKENS: number;
9249
+ AGENT_STREAM_DEGENERATE_CHARS: number;
9210
9250
  ENABLE_THINKING: boolean;
9211
9251
  AGENT_STRICT_TOOL_CALLS: boolean;
9212
9252
  AGENT_MAX_ITERATIONS: number;
@@ -9790,4 +9830,4 @@ declare namespace identity {
9790
9830
  export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
9791
9831
  }
9792
9832
 
9793
- export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type TaskPlanStep as a$, type MailAttachment as a0, type MessageLevel as a1, type MessageMetadataPayload$1 as a2, type MessageQueuedEvent as a3, type OutputTokensDetails as a4, type ParsedSlashCommand as a5, type PendingAuthResponse as a6, PlanStepsError as a7, type PlanWorkRequest as a8, type ProbeAnswerEvent as a9, type RunWaitingOn as aA, type SSEEvent as aB, type SSEStreamCallbacks as aC, type SSEStreamResult as aD, type SSEStreamStartData as aE, SUPPORTED_EXTENSIONS as aF, type SendBack as aG, type SkillSummary as aH, type SkippedFile as aI, type StepActionRequest as aJ, type StepActivityEvent as aK, type StepAssignee as aL, type StepField as aM, type StepKind as aN, type StepPhase as aO, type StepSignal as aP, type StepSignalWhen as aQ, type StepState as aR, type StepStatus as aS, type SubmitBackgroundQueryOptions as aT, type TagField as aU, type TagFieldDefinition as aV, type TagMatrixResponse as aW, type TagMatrixRow as aX, type TagMatrixSelection as aY, type TagResponse as aZ, type TaskPlan as a_, type ProjectBudget as aa, type ProjectConversationUsageResponse as ab, type ProjectDetails as ac, type ProjectEventKind as ad, type ProjectEventResponse as ae, type ProjectInvoicesResponse as af, type ProjectResponse as ag, type ProjectUpdateRequest as ah, type ProjectUsageResponse as ai, type QueryOptions as aj, type RaisedSignal as ak, type ReconnectOptions as al, type ReconnectableWsConnection as am, type ResolvedCitation as an, type ResolvedRecipient as ao, type ResponseCompletedEvent as ap, type ResponseContentPartAddedEvent as aq, type ResponseCreatedEvent as ar, type ResponseFailedEvent as as, type ResponseOutputItemAddedEvent as at, type ResponseOutputItemDoneEvent as au, type ResponseOutputTextDeltaEvent as av, type ResponseOutputTextDoneEvent as aw, type ResponseUsage as ax, type RunProgress as ay, type RunStep as az, type AgentControlStateEvent as b, parseSlashCommand as b$, type TokenBudgetContext as b0, type UpdateConversationRequest as b1, type UpdateFactRequest as b2, type UpdateWorkflowRequest as b3, type UploadBatchResult as b4, type UploadDirectOptions as b5, type UploadDirectResult as b6, type UploadOptions as b7, type UploadResult as b8, type UsageBreakdown as b9, conversations as bA, countCitations as bB, createAuthenticatedClient as bC, createDocumentWaiter as bD, dm as bE, doctags as bF, documents as bG, facts as bH, files as bI, filterSkills as bJ, formatAgentStepLabel as bK, formatFileSize as bL, formatItemLabel as bM, formatStreamSummary as bN, formatUserName as bO, formatWorkspaceChoices as bP, formatWsMessage as bQ, generateEncryptedWorkspaceKey as bR, generateNewWorkspaceKey as bS, getErrorCode as bT, getErrorMessage as bU, getRawWorkspaceKey as bV, health as bW, identity as bX, identityErrorCode as bY, mail as bZ, parseSSEEvents as b_, type UserDailyUsageResponse as ba, type UserInfo as bb, type UserInputRequestEvent as bc, type UserMessageEvent as bd, WebSocketAuthError as be, type WorkStatus as bf, type WorkflowAuthMode as bg, type WorkflowResponse as bh, type WorkflowRunHistoryResponse as bi, type WorkflowRunResponse as bj, type WorkspaceContext as bk, type WsConnection as bl, account as bm, agentconfig as bn, agents as bo, assistant as bp, authenticatedFetch as bq, buildDocNameMap as br, buildFactsContextTool as bs, buildRetrievalChunkTool as bt, buildRetrievalFullContextTool as bu, buildRetrievalTocTool as bv, connectWebSocket as bw, connectWithReconnect as bx, consumeSSEStream as by, contacts as bz, type AgentStepDeltaEvent as c, parseSlashTokenInProgress as c0, performPasswordLogin as c1, performSigningKeyLogin as c2, performSsoDeviceFlowLogin as c3, profile as c4, projects as c5, requireData as c6, requireOk as c7, resolveAuth as c8, resolveCitations as c9, resolveWorkspace as ca, responses as cb, selectWorkspace as cc, selectWorkspaceById as cd, sessions as ce, settings as cf, streamSSE as cg, stripCitationMarkdown as ch, summarizeCitations as ci, tags as cj, work as ck, workflowSteps as cl, workflows as cm, workspaces as cn, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
9833
+ export { type ListPaginatedOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DecryptedDmNotification as E, type DeferredInterjectionEvent as F, type DmAttachmentFile as G, type DmAttachmentInput as H, type DmCryptoContext as I, type DocNameMap as J, type DocumentAutomationAction as K, type DocumentListFields as L, type DocumentListOrder as M, type DocumentSelector as N, type DocumentWaiter as O, type DocumentWaiterOptions as P, type FactResponse as Q, type FactSearchRequest as R, type FactSearchResponse as S, type FormattedWsMessage as T, type IdentityErrorCode as U, type IdentityPurchase as V, type IdentityState as W, type IdentityStatus as X, type LinkedRun as Y, type ListAllOptions as Z, type ListFactsOptions as _, type ActivityResponse as a, type TaskPlan as a$, type MailAttachment as a0, type MessageLevel as a1, type MessageMetadataPayload$1 as a2, type MessageQueuedEvent as a3, type OutputTokensDetails as a4, type ParsedSlashCommand as a5, type PendingAuthResponse as a6, PlanStepsError as a7, type PlanWorkRequest as a8, type ProbeAnswerEvent as a9, type RunWaitingOn as aA, type SSEEvent as aB, type SSEStreamCallbacks as aC, type SSEStreamResult as aD, type SSEStreamStartData as aE, SUPPORTED_EXTENSIONS as aF, type SendBack as aG, type SkillSummary as aH, type SkippedFile as aI, type StepActionRequest as aJ, type StepActivityEvent as aK, type StepAssignee as aL, type StepField as aM, type StepKind as aN, type StepPhase as aO, type StepSignal as aP, type StepSignalWhen as aQ, type StepState as aR, type StepStatus as aS, type SubmitBackgroundQueryOptions as aT, type TagChange as aU, type TagField as aV, type TagFieldDefinition as aW, type TagMatrixResponse as aX, type TagMatrixRow as aY, type TagMatrixSelection as aZ, type TagResponse as a_, type ProjectBudget as aa, type ProjectConversationUsageResponse as ab, type ProjectDetails as ac, type ProjectEventKind as ad, type ProjectEventResponse as ae, type ProjectInvoicesResponse as af, type ProjectResponse as ag, type ProjectUpdateRequest as ah, type ProjectUsageResponse as ai, type QueryOptions as aj, type RaisedSignal as ak, type ReconnectOptions as al, type ReconnectableWsConnection as am, type ResolvedCitation as an, type ResolvedRecipient as ao, type ResponseCompletedEvent as ap, type ResponseContentPartAddedEvent as aq, type ResponseCreatedEvent as ar, type ResponseFailedEvent as as, type ResponseOutputItemAddedEvent as at, type ResponseOutputItemDoneEvent as au, type ResponseOutputTextDeltaEvent as av, type ResponseOutputTextDoneEvent as aw, type ResponseUsage as ax, type RunProgress as ay, type RunStep as az, type AgentControlStateEvent as b, parseSSEEvents as b$, type TaskPlanStep as b0, type TokenBudgetContext as b1, type UpdateConversationRequest as b2, type UpdateFactRequest as b3, type UpdateWorkflowRequest as b4, type UploadBatchResult as b5, type UploadDirectOptions as b6, type UploadDirectResult as b7, type UploadOptions as b8, type UploadResult as b9, contacts as bA, conversations as bB, countCitations as bC, createAuthenticatedClient as bD, createDocumentWaiter as bE, dm as bF, doctags as bG, documents as bH, facts as bI, files as bJ, filterSkills as bK, formatAgentStepLabel as bL, formatFileSize as bM, formatItemLabel as bN, formatStreamSummary as bO, formatUserName as bP, formatWorkspaceChoices as bQ, formatWsMessage as bR, generateEncryptedWorkspaceKey as bS, generateNewWorkspaceKey as bT, getErrorCode as bU, getErrorMessage as bV, getRawWorkspaceKey as bW, health as bX, identity as bY, identityErrorCode as bZ, mail as b_, type UsageBreakdown as ba, type UserDailyUsageResponse as bb, type UserInfo as bc, type UserInputRequestEvent as bd, type UserMessageEvent as be, WebSocketAuthError as bf, type WorkStatus as bg, type WorkflowAuthMode as bh, type WorkflowResponse as bi, type WorkflowRunHistoryResponse as bj, type WorkflowRunResponse as bk, type WorkspaceContext as bl, type WsConnection as bm, account as bn, agentconfig as bo, agents as bp, assistant as bq, authenticatedFetch as br, buildDocNameMap as bs, buildFactsContextTool as bt, buildRetrievalChunkTool as bu, buildRetrievalFullContextTool as bv, buildRetrievalTocTool as bw, connectWebSocket as bx, connectWithReconnect as by, consumeSSEStream as bz, type AgentStepDeltaEvent as c, parseSlashCommand as c0, parseSlashTokenInProgress as c1, performPasswordLogin as c2, performSigningKeyLogin as c3, performSsoDeviceFlowLogin as c4, profile as c5, projects as c6, requireData as c7, requireOk as c8, resolveAuth as c9, resolveCitations as ca, resolveWorkspace as cb, responses as cc, selectWorkspace as cd, selectWorkspaceById as ce, sessions as cf, settings as cg, streamSSE as ch, stripCitationMarkdown as ci, summarizeCitations as cj, tags as ck, work as cl, workflowSteps as cm, workflows as cn, workspaces as co, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };