@arbidocs/sdk 0.4.148 → 0.4.151

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.
@@ -21,6 +21,12 @@ declare class ArbiApiError extends ArbiError {
21
21
  readonly detail?: string;
22
22
  constructor(message: string, apiError?: unknown, status?: number);
23
23
  }
24
+ /**
25
+ * Why a write was refused, for the person who made it: the server's own reason (an
26
+ * {@link ArbiApiError}'s `detail`, or a raw error body's `detail`), else `fallback` — never a
27
+ * generic client message.
28
+ */
29
+ declare function refusalReason(err: unknown, fallback: string): string;
24
30
  /**
25
31
  * Check API response and throw on error. Returns narrowed non-null data.
26
32
  */
@@ -1993,6 +1999,33 @@ declare function listWorkspaceUsers(arbi: ArbiClient): Promise<{
1993
1999
  agent_ext_id?: string | null | undefined;
1994
2000
  is_temporary: boolean;
1995
2001
  }[]>;
2002
+ /**
2003
+ * `POST /v1/workspace/users` with the whole request: members of the open workspace (or of
2004
+ * `workspace_ext_id` with its key sealed to the caller's session), a temporary session-scoped grant
2005
+ * (`session_pubkey_b64`), an invitation to people not on the platform yet (`confirm_invite`), or a
2006
+ * share of one resource (`resource_type`, `resource_ext_id`, `confirm_share`). Resolves with the
2007
+ * memberships added.
2008
+ */
2009
+ declare function addWorkspaceMembers(arbi: ArbiClient, request: components['schemas']['AddWorkspaceUsersRequest']): Promise<{
2010
+ user: {
2011
+ external_id: string;
2012
+ parent_ext_id?: string | null | undefined;
2013
+ email: string;
2014
+ given_name: string;
2015
+ family_name?: string | null | undefined;
2016
+ picture?: string | null | undefined;
2017
+ encryption_public_key: string;
2018
+ is_sso: boolean;
2019
+ is_identity_verified: boolean;
2020
+ };
2021
+ role: components["schemas"]["WorkspaceRole"];
2022
+ joined_at: string;
2023
+ conversation_count: number;
2024
+ document_count: number;
2025
+ files_mb: number;
2026
+ agent_ext_id?: string | null | undefined;
2027
+ is_temporary: boolean;
2028
+ }[]>;
1996
2029
  declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?: 'owner' | 'collaborator' | 'guest',
1997
2030
  /** Share a workspace other than the open one: its id and its key sealed to the caller's session. */
1998
2031
  target?: {
@@ -2133,6 +2166,7 @@ declare function getWorkspaceActivity(arbi: ArbiClient, workspaceExtId: string,
2133
2166
  declare function primeWorkspaceKey(arbi: ArbiClient, workspaceExtId: string, sessionSealedKey: string): Promise<void>;
2134
2167
 
2135
2168
  type workspaces_WorkspaceActivityOptions = WorkspaceActivityOptions;
2169
+ declare const workspaces_addWorkspaceMembers: typeof addWorkspaceMembers;
2136
2170
  declare const workspaces_addWorkspaceUsers: typeof addWorkspaceUsers;
2137
2171
  declare const workspaces_copyDocuments: typeof copyDocuments;
2138
2172
  declare const workspaces_createWorkspace: typeof createWorkspace;
@@ -2146,7 +2180,7 @@ declare const workspaces_removeWorkspaceUsers: typeof removeWorkspaceUsers;
2146
2180
  declare const workspaces_setUserRole: typeof setUserRole;
2147
2181
  declare const workspaces_updateWorkspace: typeof updateWorkspace;
2148
2182
  declare namespace workspaces {
2149
- export { type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_setUserRole as setUserRole, workspaces_updateWorkspace as updateWorkspace };
2183
+ export { type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_setUserRole as setUserRole, workspaces_updateWorkspace as updateWorkspace };
2150
2184
  }
2151
2185
 
2152
2186
  /**
@@ -7003,7 +7037,7 @@ declare namespace calendar {
7003
7037
 
7004
7038
  type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
7005
7039
  type WorkspaceUpdateRequest = components['schemas']['WorkspaceUpdateRequest'];
7006
- type TagFormat = components['schemas']['TagFormat'];
7040
+ type TagFormat$1 = components['schemas']['TagFormat'];
7007
7041
  type CitationSources$1 = components['schemas']['CitationSources'];
7008
7042
  type UserSettingsUpdate = components['schemas']['UserSettingsUpdate'];
7009
7043
  type ConfigUpdateData$1 = components['schemas']['ConfigUpdateData'];
@@ -8864,6 +8898,30 @@ declare class Arbi {
8864
8898
  agent_ext_id?: string | null | undefined;
8865
8899
  is_temporary: boolean;
8866
8900
  }[]>;
8901
+ /**
8902
+ * `POST /v1/workspace/users` with the whole request (another workspace with its sealed key, a
8903
+ * session-scoped grant, an invitation, a resource share): see `addWorkspaceMembers`.
8904
+ */
8905
+ addMembers: (request: Parameters<typeof addWorkspaceMembers>[1]) => Promise<{
8906
+ user: {
8907
+ external_id: string;
8908
+ parent_ext_id?: string | null | undefined;
8909
+ email: string;
8910
+ given_name: string;
8911
+ family_name?: string | null | undefined;
8912
+ picture?: string | null | undefined;
8913
+ encryption_public_key: string;
8914
+ is_sso: boolean;
8915
+ is_identity_verified: boolean;
8916
+ };
8917
+ role: components["schemas"]["WorkspaceRole"];
8918
+ joined_at: string;
8919
+ conversation_count: number;
8920
+ document_count: number;
8921
+ files_mb: number;
8922
+ agent_ext_id?: string | null | undefined;
8923
+ is_temporary: boolean;
8924
+ }[]>;
8867
8925
  /**
8868
8926
  * Grant users a temporary key scoped to ONE session (identified by its public key), for
8869
8927
  * example an agent's run session minted by `agents.authorize()`. Nothing standing is created:
@@ -10760,7 +10818,7 @@ declare class Arbi {
10760
10818
  create: (options: {
10761
10819
  name: string;
10762
10820
  workspaceId?: string;
10763
- tagType?: TagFormat;
10821
+ tagType?: TagFormat$1;
10764
10822
  instruction?: string | null;
10765
10823
  shared?: boolean;
10766
10824
  /** What the tag is (`'issue'`: an issue; flat, no parent). Absent: from the format. */
@@ -14257,6 +14315,126 @@ declare namespace mail {
14257
14315
  export { type mail_ListMessagesOptions as ListMessagesOptions, type mail_MailAccount as MailAccount, type mail_MailAddress as MailAddress, type mail_MailAddressInput as MailAddressInput, type mail_MailAttachment as MailAttachment, type mail_MailCompose as MailCompose, type mail_MailDraftSaved as MailDraftSaved, type mail_MailFetch as MailFetch, type mail_MailFolder as MailFolder, type mail_MailMessage as MailMessage, type mail_MailMessagePage as MailMessagePage, type mail_MailMessageUpdate as MailMessageUpdate, type mail_MailPolicy as MailPolicy, type mail_MailSend as MailSend, type mail_MailSendResult as MailSendResult, mail_NATIVE_ACCOUNT as NATIVE_ACCOUNT, type mail_NativeMailKeys as NativeMailKeys, mail_attachmentFromBytes as attachmentFromBytes, mail_claimNativeAlias as claimNativeAlias, mail_claimSecureMail as claimSecureMail, mail_createMailFetch as createMailFetch, mail_downloadAttachment as downloadAttachment, mail_getMailPolicy as getMailPolicy, mail_getMessage as getMessage, mail_listFolders as listFolders, mail_listMailAccounts as listMailAccounts, mail_listMessages as listMessages, mail_saveDraft as saveDraft, mail_sendMessage as sendMessage, mail_unlockNativeMail as unlockNativeMail, mail_updateMessage as updateMessage };
14258
14316
  }
14259
14317
 
14318
+ /**
14319
+ * Tag helpers: what kind of tag a tag is, how much carries it, which side of the workspace it is
14320
+ * used on, and its hierarchy (labels and annotations nest one level; issues, people and
14321
+ * organisations are flat). Pure functions over the tag list (`TagResponse`), for any client.
14322
+ */
14323
+
14324
+ type TagFormat = components['schemas']['TagFormat'];
14325
+ /** What the hierarchy helpers read of a tag. */
14326
+ type TagNode = Pick<TagResponse, 'external_id' | 'parent_ext_id' | 'kind'>;
14327
+ /**
14328
+ * What a tag is — the backend stores it explicitly (`TagResponse.kind`); never infer it from the
14329
+ * format (`tag_type`), which only says what kind of value an annotation carries:
14330
+ * - **label** — a short name that files a document or a fact. Carries no value.
14331
+ * - **annotation** — a per-document value (text, number, choice, date): document metadata,
14332
+ * optionally AI-filled.
14333
+ * - **search** — a saved search, not a document tag.
14334
+ * - **issue** — a point in dispute; on a document or fact it means "evidence for this issue".
14335
+ * - **person** / **organisation** — an entity; on a document it means "mentioned here" (the
14336
+ * doctag note says how; its role is its own Role field).
14337
+ * Each kind's fields (an issue's status, a person's position …) are the workspace's for that kind
14338
+ * (`GET /v1/tag/kinds/{kind}`); a tag holds its values. Issues and entities are flat.
14339
+ */
14340
+ /** The entity kinds: the people and organisations documents name. */
14341
+ type EntityKind = Extract<TagKind, 'person' | 'organisation'>;
14342
+ declare const ENTITY_KINDS: readonly EntityKind[];
14343
+ /**
14344
+ * Kinds whose value on a document is just being there: a doctag is added or removed, no note. All
14345
+ * carry the checkbox format, so a tag can be changed between them.
14346
+ */
14347
+ declare const PRESENCE_KINDS: readonly TagKind[];
14348
+ /** The kind the server gives a new tag of this format when none is sent. */
14349
+ declare function defaultKindForFormat(format: TagFormat['type']): TagKind;
14350
+ /** How many documents, facts and threads carry a tag. */
14351
+ declare function tagUseCount(tag: Partial<Pick<TagResponse, 'doctag_count' | 'facttag_count' | 'convotag_count'>>): number;
14352
+ /** Filter out non-document tags (saved searches) from a list of tags. */
14353
+ declare function filterDocumentTags<T extends Pick<TagResponse, 'kind'>>(tags: T[]): T[];
14354
+ /** A tag added to or removed from a document as a whole (label, issue, person, organisation). */
14355
+ declare function isPresenceTag(tag: Pick<TagResponse, 'kind'>): boolean;
14356
+ /**
14357
+ * A plain label: what a label picker offers. Issues, people and organisations share the checkbox
14358
+ * format but are not labels — they are managed on the Tags page.
14359
+ */
14360
+ declare function isLabelTag(tag: Pick<TagResponse, 'kind'>): boolean;
14361
+ declare function isAnnotationTag(tag: Pick<TagResponse, 'kind'>): boolean;
14362
+ declare function isEntityTag(tag: Pick<TagResponse, 'kind'>): boolean;
14363
+ /** The two groups the Fields panel manages: labels and annotations (every kind: the Tags page). */
14364
+ type TagGroup = 'label' | 'annotation';
14365
+ declare function tagsOfGroup<T extends Pick<TagResponse, 'kind'>>(tags: T[], group: TagGroup): T[];
14366
+ /**
14367
+ * Which side of the app a label belongs to.
14368
+ *
14369
+ * Labels are ONE shared set of tag rows — the backend has a single `tags`
14370
+ * table, joined to documents through doctags and to facts through facttags —
14371
+ * but to a reader a label used on documents and one used on facts are separate
14372
+ * vocabularies, and mixing them lists things that cannot apply to what you are
14373
+ * looking at. Side is therefore derived from use, via the two counts the API
14374
+ * reports, rather than stored on the tag.
14375
+ *
14376
+ * A tag used nowhere yet belongs to NEITHER side, so it is offered on both:
14377
+ * otherwise a label would vanish from the very panel that just created it,
14378
+ * before it has been applied to anything.
14379
+ */
14380
+ type TagScope = 'document' | 'fact';
14381
+ declare function tagsForScope<T extends Partial<Pick<TagResponse, 'doctag_count' | 'facttag_count'>>>(tags: T[], scope: TagScope): T[];
14382
+ /**
14383
+ * How many levels the tag tree may have: a root plus one nested level.
14384
+ *
14385
+ * A field row is already dense (checkbox, name, type, share toggle, usage
14386
+ * count, expander), so each extra indent level costs width the row cannot
14387
+ * spare and a deep checkbox list stops being scannable. Two levels also
14388
+ * matches the only hierarchy the app already reads — `DocumentTable` hides a
14389
+ * tag whose parent is a `select` tag.
14390
+ */
14391
+ declare const TAG_NESTING_MAX_DEPTH = 2;
14392
+ /** One row of the flattened tree, in render order. */
14393
+ interface TagTreeRow<T extends TagNode = TagNode> {
14394
+ tag: T;
14395
+ /** 0 for a top-level tag, 1 for its child, and so on. */
14396
+ depth: number;
14397
+ /** Direct children of this tag that are present in the same list. */
14398
+ childCount: number;
14399
+ }
14400
+ /** Direct children of `tagId` that are present in `tags`. */
14401
+ declare function getChildTags<T extends TagNode>(tags: T[], tagId: string): T[];
14402
+ /**
14403
+ * Every tag beneath `tagId`, at any depth. Terminates on a pre-existing cycle
14404
+ * because an id is only expanded the first time it is seen.
14405
+ */
14406
+ declare function getTagDescendantIds<T extends TagNode>(tags: T[], tagId: string): Set<string>;
14407
+ /**
14408
+ * Flatten the tags into render order: every tag immediately followed by its
14409
+ * children, with the caller's ordering preserved among siblings.
14410
+ *
14411
+ * This is what keeps a child next to its parent no matter how the list was
14412
+ * sorted upstream — sorting the flat array would scatter them.
14413
+ */
14414
+ declare function flattenTagTree<T extends TagNode>(tags: T[]): TagTreeRow<T>[];
14415
+ /**
14416
+ * Tags that may be chosen as `tagId`'s parent (omit `tagId` when creating).
14417
+ *
14418
+ * Excludes the tag itself and all of its descendants — that is the cycle
14419
+ * guard — and any tag that is already nested, which is the
14420
+ * `TAG_NESTING_MAX_DEPTH` cap seen from the parent's side.
14421
+ */
14422
+ /** Issues, people and organisations are flat: no parent, no children. */
14423
+ declare const isFlatKind: (kind: TagKind) => boolean;
14424
+ declare function getEligibleParentTags<T extends TagNode>(tags: T[], tagId?: string): T[];
14425
+ /**
14426
+ * Whether nesting `tagId` under `parentId` would make the tag its own
14427
+ * ancestor. `getEligibleParentTags` already withholds those options; this is
14428
+ * the assertion for callers that did not come through the picker.
14429
+ */
14430
+ declare function wouldCreateTagCycle<T extends TagNode>(tags: T[], tagId: string, parentId: string | null | undefined): boolean;
14431
+ /**
14432
+ * Whether `tagId` may be nested at all. A tag that already has children cannot
14433
+ * be, since that would make a three-level tree — `TAG_NESTING_MAX_DEPTH` seen
14434
+ * from the child's side.
14435
+ */
14436
+ declare function canTagHaveParent<T extends TagNode>(tags: T[], tagId: string): boolean;
14437
+
14260
14438
  /**
14261
14439
  * Session operations — list, end one, sign out of all.
14262
14440
  */
@@ -14359,4 +14537,4 @@ declare namespace identity {
14359
14537
  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 };
14360
14538
  }
14361
14539
 
14362
- export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type OutputTokensDetails as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FindTimeParams as aA, type FormattedWsMessage as aB, type FreeBusyEntry as aC, GOOGLE_VENDORS as aD, type HolidayCountry as aE, type HouseTemplateCandidate as aF, IMANAGE_VENDORS as aG, type IdentityErrorCode as aH, type IdentityPurchase as aI, type IdentityState as aJ, type IdentityStatus as aK, type ImportResult as aL, type InvitationRead as aM, type LinkedRun as aN, type ListAllOptions as aO, type ListEventsParams as aP, type ListFactsOptions as aQ, type ListPaginatedOptions as aR, MAILBOX_SYNC_VENDORS as aS, MAX_RETRIEVE_DOC_IDS as aT, MICROSOFT_VENDORS as aU, type MailAttachment as aV, type MailDraftSSEEvent as aW, type MessageLevel as aX, type MessageMetadataPayload$1 as aY, type MessageQueuedEvent as aZ, type OAuthAccountKind as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, type EditScope as at, type EventCreateBody as au, type EventPatchBody as av, FLAT_TAG_KINDS as aw, type FactResponse as ax, type FactSearchRequest as ay, type FactSearchResponse as az, type ActivityKind as b, type SkippedFile as b$, type OverlayItem as b0, type OverlayLayerName as b1, type ParsedSlashCommand as b2, type PendingAuthResponse as b3, type PersonKey as b4, PlanStepsError as b5, type PlanWorkRequest as b6, type ProbeAnswerEvent as b7, type ProductResponse as b8, type ProjectAddonKind as b9, type ResponseContentPartAddedEvent as bA, type ResponseCreatedEvent as bB, type ResponseFailedEvent as bC, type ResponseOutputItemAddedEvent as bD, type ResponseOutputItemDoneEvent as bE, type ResponseOutputTextDeltaEvent as bF, type ResponseOutputTextDoneEvent as bG, type ResponseUsage as bH, type RoomCreateBody as bI, type RoomQuery as bJ, type RoomRead as bK, type RunProgress as bL, type RunStep as bM, type RunWaitingOn as bN, SHAREPOINT_VENDORS as bO, type SSEEvent as bP, type SSEStreamCallbacks as bQ, type SSEStreamResult as bR, type SSEStreamStartData as bS, STEP_FIELD_OPTION_TONES as bT, SUPPORTED_EXTENSIONS as bU, type ScopedTarget as bV, type SearchChunk as bW, type SendBack as bX, type ShareRead as bY, type ShareRole as bZ, type SkillSummary as b_, type ProjectAddonSettingsRequest as ba, type ProjectBudget as bb, type ProjectCheckoutRequest as bc, type ProjectConversationUsageResponse as bd, type ProjectCreateOptions as be, type ProjectDetails as bf, type ProjectEventKind as bg, type ProjectEventResponse as bh, type ProjectInvoicesResponse as bi, type ProjectNextPeriodAddonsRequest as bj, type ProjectPlanChangeRequest as bk, type ProjectQuoteRequest as bl, type ProjectResponse as bm, type ProjectUpdateRequest as bn, type ProjectUsageResponse as bo, PublicBookingError as bp, type PublicBookingPage as bq, type QueryOptions as br, type RaisedSignal as bs, type ReconnectOptions as bt, type ReconnectableWsConnection as bu, type ResolvedCitation as bv, type ResolvedRecipient as bw, type RespondParams as bx, type RespondPartstat as by, type ResponseCompletedEvent as bz, type ActivityResponse as c, buildRetrievalChunkTool as c$, type SlackConnectionStatus as c0, type StepActionRequest as c1, type StepActivityEvent as c2, type StepAssignee as c3, type StepField as c4, type StepFieldOption as c5, type StepFieldOptionTone as c6, type StepKind as c7, type StepPhase as c8, type StepSignal as c9, type UploadDocumentsOptions as cA, type UploadOptions as cB, type UploadResult as cC, type UsageBreakdown as cD, type UserConnectorEntry as cE, type UserDailyUsageResponse as cF, type UserInfo as cG, type UserInputRequestEvent as cH, type UserMessageEvent as cI, WebSocketAuthError as cJ, type WeeklyHoursSpec as cK, type WorkStatus as cL, type WorkflowAuthMode as cM, type WorkflowResponse as cN, type WorkflowRunHistoryResponse as cO, type WorkflowRunResponse as cP, type WorkspaceContext as cQ, type WsConnection as cR, account as cS, agentconfig as cT, agents as cU, assistant as cV, authenticatedFetch as cW, bookPublicSlot as cX, buildCitationChunkData as cY, buildDocNameMap as cZ, buildFactsContextTool as c_, type StepSignalWhen as ca, type StepState as cb, type StepStatus as cc, type SubmitBackgroundQueryOptions as cd, type SubscribeParams as ce, type SyncTriggerResult as cf, TAG_KINDS as cg, type TagChange as ch, type TagFieldDefinition as ci, type TagKind as cj, type TagKindField as ck, type TagKindSchema as cl, type TagLinks as cm, type TagListQuery as cn, type TagResponse as co, type TaskPlan as cp, type TaskPlanStep as cq, type TaxQuoteResponse as cr, type TimeSuggestion as cs, type TokenBudgetContext as ct, type UpdateConversationRequest as cu, type UpdateFactRequest as cv, type UpdateWorkflowRequest as cw, type UploadBatchResult as cx, type UploadDirectOptions as cy, type UploadDirectResult as cz, type AgentControlStateEvent as d, selectWorkspaceById as d$, buildRetrievalFullContextTool as d0, buildRetrievalTocTool as d1, calendar as d2, cancelPublicBooking as d3, chats as d4, connectErrorMessage as d5, connectWebSocket as d6, connectWithReconnect as d7, connectors as d8, consumeSSEStream as d9, health as dA, houseTemplate as dB, identity as dC, identityErrorCode as dD, isConnectorVendorVisible as dE, isDriveSyncVendor as dF, isMailboxSyncVendor as dG, isSharePointVendor as dH, isSharedSkill as dI, mail as dJ, notifications as dK, parseSSEEvents as dL, parseSlashCommand as dM, parseSlashTokenInProgress as dN, performPasswordLogin as dO, performSigningKeyLogin as dP, performSsoDeviceFlowLogin as dQ, profile as dR, projects as dS, requireData as dT, requireOk as dU, resolveAuth as dV, resolveCitations as dW, resolveWorkspace as dX, responses as dY, searchChunks as dZ, selectWorkspace as d_, contacts as da, conversations as db, countCitations as dc, createAuthenticatedClient as dd, createDocumentWaiter as de, doctags as df, documents as dg, facts as dh, files as di, filterSkills as dj, formatAgentStepLabel as dk, formatFileSize as dl, formatGbp as dm, formatGbpPerMillionTokens as dn, formatItemLabel as dp, formatStreamSummary as dq, formatUserName as dr, formatWorkspaceChoices as ds, formatWsMessage as dt, generateEncryptedWorkspaceKey as du, generateNewWorkspaceKey as dv, getErrorCode as dw, getErrorMessage as dx, getPublicBookingPage as dy, getRawWorkspaceKey as dz, type AgentStepDeltaEvent as e, sessions as e0, settings as e1, signatureRequests as e2, streamSSE as e3, stripCitationMarkdown as e4, summarizeCitations as e5, tags as e6, uploadSkill as e7, usdToGbp as e8, work as e9, workflowSteps as ea, workflows as eb, workspaces as ec, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiErrorEvent as j, type ArbiHostSession as k, type ArbiOptions as l, ArbiSessionExpiredError as m, type ArtifactEvent as n, type AttendeeRead as o, type AuthContext as p, type AuthHeaders as q, type AuthMode as r, type AuthenticatedClient as s, type BookingPage as t, type BookingPageWriteBody as u, type BookingRequestBody as v, type BridgeTokensOptions as w, type CalDavProfile as x, type CalendarAccount as y, type CalendarAccountKind as z };
14540
+ export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type MessageQueuedEvent as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FactSearchRequest as aA, type FactSearchResponse as aB, type FindTimeParams as aC, type FormattedWsMessage as aD, type FreeBusyEntry as aE, GOOGLE_VENDORS as aF, type HolidayCountry as aG, type HouseTemplateCandidate as aH, IMANAGE_VENDORS as aI, type IdentityErrorCode as aJ, type IdentityPurchase as aK, type IdentityState as aL, type IdentityStatus as aM, type ImportResult as aN, type InvitationRead as aO, type LinkedRun as aP, type ListAllOptions as aQ, type ListEventsParams as aR, type ListFactsOptions as aS, type ListPaginatedOptions as aT, MAILBOX_SYNC_VENDORS as aU, MAX_RETRIEVE_DOC_IDS as aV, MICROSOFT_VENDORS as aW, type MailAttachment as aX, type MailDraftSSEEvent as aY, type MessageLevel as aZ, type MessageMetadataPayload$1 as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, ENTITY_KINDS as at, type EditScope as au, type EntityKind as av, type EventCreateBody as aw, type EventPatchBody as ax, FLAT_TAG_KINDS as ay, type FactResponse as az, type ActivityKind as b, type ShareRead as b$, type OAuthAccountKind as b0, type OutputTokensDetails as b1, type OverlayItem as b2, type OverlayLayerName as b3, PRESENCE_KINDS as b4, type ParsedSlashCommand as b5, type PendingAuthResponse as b6, type PersonKey as b7, PlanStepsError as b8, type PlanWorkRequest as b9, type RespondParams as bA, type RespondPartstat as bB, type ResponseCompletedEvent as bC, type ResponseContentPartAddedEvent as bD, type ResponseCreatedEvent as bE, type ResponseFailedEvent as bF, type ResponseOutputItemAddedEvent as bG, type ResponseOutputItemDoneEvent as bH, type ResponseOutputTextDeltaEvent as bI, type ResponseOutputTextDoneEvent as bJ, type ResponseUsage as bK, type RoomCreateBody as bL, type RoomQuery as bM, type RoomRead as bN, type RunProgress as bO, type RunStep as bP, type RunWaitingOn as bQ, SHAREPOINT_VENDORS as bR, type SSEEvent as bS, type SSEStreamCallbacks as bT, type SSEStreamResult as bU, type SSEStreamStartData as bV, STEP_FIELD_OPTION_TONES as bW, SUPPORTED_EXTENSIONS as bX, type ScopedTarget as bY, type SearchChunk as bZ, type SendBack as b_, type ProbeAnswerEvent as ba, type ProductResponse as bb, type ProjectAddonKind as bc, type ProjectAddonSettingsRequest as bd, type ProjectBudget as be, type ProjectCheckoutRequest as bf, type ProjectConversationUsageResponse as bg, type ProjectCreateOptions as bh, type ProjectDetails as bi, type ProjectEventKind as bj, type ProjectEventResponse as bk, type ProjectInvoicesResponse as bl, type ProjectNextPeriodAddonsRequest as bm, type ProjectPlanChangeRequest as bn, type ProjectQuoteRequest as bo, type ProjectResponse as bp, type ProjectUpdateRequest as bq, type ProjectUsageResponse as br, PublicBookingError as bs, type PublicBookingPage as bt, type QueryOptions as bu, type RaisedSignal as bv, type ReconnectOptions as bw, type ReconnectableWsConnection as bx, type ResolvedCitation as by, type ResolvedRecipient as bz, type ActivityResponse as c, agentconfig as c$, type ShareRole as c0, type SkillSummary as c1, type SkippedFile as c2, type SlackConnectionStatus as c3, type StepActionRequest as c4, type StepActivityEvent as c5, type StepAssignee as c6, type StepField as c7, type StepFieldOption as c8, type StepFieldOptionTone as c9, type TimeSuggestion as cA, type TokenBudgetContext as cB, type UpdateConversationRequest as cC, type UpdateFactRequest as cD, type UpdateWorkflowRequest as cE, type UploadBatchResult as cF, type UploadDirectOptions as cG, type UploadDirectResult as cH, type UploadDocumentsOptions as cI, type UploadOptions as cJ, type UploadResult as cK, type UsageBreakdown as cL, type UserConnectorEntry as cM, type UserDailyUsageResponse as cN, type UserInfo as cO, type UserInputRequestEvent as cP, type UserMessageEvent as cQ, WebSocketAuthError as cR, type WeeklyHoursSpec as cS, type WorkStatus as cT, type WorkflowAuthMode as cU, type WorkflowResponse as cV, type WorkflowRunHistoryResponse as cW, type WorkflowRunResponse as cX, type WorkspaceContext as cY, type WsConnection as cZ, account as c_, type StepKind as ca, type StepPhase as cb, type StepSignal as cc, type StepSignalWhen as cd, type StepState as ce, type StepStatus as cf, type SubmitBackgroundQueryOptions as cg, type SubscribeParams as ch, type SyncTriggerResult as ci, TAG_KINDS as cj, TAG_NESTING_MAX_DEPTH as ck, type TagChange as cl, type TagFieldDefinition as cm, type TagGroup as cn, type TagKind as co, type TagKindField as cp, type TagKindSchema as cq, type TagLinks as cr, type TagListQuery as cs, type TagNode as ct, type TagResponse as cu, type TagScope as cv, type TagTreeRow as cw, type TaskPlan as cx, type TaskPlanStep as cy, type TaxQuoteResponse as cz, type AgentControlStateEvent as d, isSharePointVendor as d$, agents as d0, assistant as d1, authenticatedFetch as d2, bookPublicSlot as d3, buildCitationChunkData as d4, buildDocNameMap as d5, buildFactsContextTool as d6, buildRetrievalChunkTool as d7, buildRetrievalFullContextTool as d8, buildRetrievalTocTool as d9, formatGbpPerMillionTokens as dA, formatItemLabel as dB, formatStreamSummary as dC, formatUserName as dD, formatWorkspaceChoices as dE, formatWsMessage as dF, generateEncryptedWorkspaceKey as dG, generateNewWorkspaceKey as dH, getChildTags as dI, getEligibleParentTags as dJ, getErrorCode as dK, getErrorMessage as dL, getPublicBookingPage as dM, getRawWorkspaceKey as dN, getTagDescendantIds as dO, health as dP, houseTemplate as dQ, identity as dR, identityErrorCode as dS, isAnnotationTag as dT, isConnectorVendorVisible as dU, isDriveSyncVendor as dV, isEntityTag as dW, isFlatKind as dX, isLabelTag as dY, isMailboxSyncVendor as dZ, isPresenceTag as d_, calendar as da, canTagHaveParent as db, cancelPublicBooking as dc, chats as dd, connectErrorMessage as de, connectWebSocket as df, connectWithReconnect as dg, connectors as dh, consumeSSEStream as di, contacts as dj, conversations as dk, countCitations as dl, createAuthenticatedClient as dm, createDocumentWaiter as dn, defaultKindForFormat as dp, doctags as dq, documents as dr, facts as ds, files as dt, filterDocumentTags as du, filterSkills as dv, flattenTagTree as dw, formatAgentStepLabel as dx, formatFileSize as dy, formatGbp as dz, type AgentStepDeltaEvent as e, isSharedSkill as e0, mail as e1, notifications as e2, parseSSEEvents as e3, parseSlashCommand as e4, parseSlashTokenInProgress as e5, performPasswordLogin as e6, performSigningKeyLogin as e7, performSsoDeviceFlowLogin as e8, profile as e9, workspaces as eA, wouldCreateTagCycle as eB, projects as ea, refusalReason as eb, requireData as ec, requireOk as ed, resolveAuth as ee, resolveCitations as ef, resolveWorkspace as eg, responses as eh, searchChunks as ei, selectWorkspace as ej, selectWorkspaceById as ek, sessions as el, settings as em, signatureRequests as en, streamSSE as eo, stripCitationMarkdown as ep, summarizeCitations as eq, tagUseCount as er, tags as es, tagsForScope as et, tagsOfGroup as eu, uploadSkill as ev, usdToGbp as ew, work as ex, workflowSteps as ey, workflows as ez, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiErrorEvent as j, type ArbiHostSession as k, type ArbiOptions as l, ArbiSessionExpiredError as m, type ArtifactEvent as n, type AttendeeRead as o, type AuthContext as p, type AuthHeaders as q, type AuthMode as r, type AuthenticatedClient as s, type BookingPage as t, type BookingPageWriteBody as u, type BookingRequestBody as v, type BridgeTokensOptions as w, type CalDavProfile as x, type CalendarAccount as y, type CalendarAccountKind as z };
@@ -21,6 +21,12 @@ declare class ArbiApiError extends ArbiError {
21
21
  readonly detail?: string;
22
22
  constructor(message: string, apiError?: unknown, status?: number);
23
23
  }
24
+ /**
25
+ * Why a write was refused, for the person who made it: the server's own reason (an
26
+ * {@link ArbiApiError}'s `detail`, or a raw error body's `detail`), else `fallback` — never a
27
+ * generic client message.
28
+ */
29
+ declare function refusalReason(err: unknown, fallback: string): string;
24
30
  /**
25
31
  * Check API response and throw on error. Returns narrowed non-null data.
26
32
  */
@@ -1993,6 +1999,33 @@ declare function listWorkspaceUsers(arbi: ArbiClient): Promise<{
1993
1999
  agent_ext_id?: string | null | undefined;
1994
2000
  is_temporary: boolean;
1995
2001
  }[]>;
2002
+ /**
2003
+ * `POST /v1/workspace/users` with the whole request: members of the open workspace (or of
2004
+ * `workspace_ext_id` with its key sealed to the caller's session), a temporary session-scoped grant
2005
+ * (`session_pubkey_b64`), an invitation to people not on the platform yet (`confirm_invite`), or a
2006
+ * share of one resource (`resource_type`, `resource_ext_id`, `confirm_share`). Resolves with the
2007
+ * memberships added.
2008
+ */
2009
+ declare function addWorkspaceMembers(arbi: ArbiClient, request: components['schemas']['AddWorkspaceUsersRequest']): Promise<{
2010
+ user: {
2011
+ external_id: string;
2012
+ parent_ext_id?: string | null | undefined;
2013
+ email: string;
2014
+ given_name: string;
2015
+ family_name?: string | null | undefined;
2016
+ picture?: string | null | undefined;
2017
+ encryption_public_key: string;
2018
+ is_sso: boolean;
2019
+ is_identity_verified: boolean;
2020
+ };
2021
+ role: components["schemas"]["WorkspaceRole"];
2022
+ joined_at: string;
2023
+ conversation_count: number;
2024
+ document_count: number;
2025
+ files_mb: number;
2026
+ agent_ext_id?: string | null | undefined;
2027
+ is_temporary: boolean;
2028
+ }[]>;
1996
2029
  declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?: 'owner' | 'collaborator' | 'guest',
1997
2030
  /** Share a workspace other than the open one: its id and its key sealed to the caller's session. */
1998
2031
  target?: {
@@ -2133,6 +2166,7 @@ declare function getWorkspaceActivity(arbi: ArbiClient, workspaceExtId: string,
2133
2166
  declare function primeWorkspaceKey(arbi: ArbiClient, workspaceExtId: string, sessionSealedKey: string): Promise<void>;
2134
2167
 
2135
2168
  type workspaces_WorkspaceActivityOptions = WorkspaceActivityOptions;
2169
+ declare const workspaces_addWorkspaceMembers: typeof addWorkspaceMembers;
2136
2170
  declare const workspaces_addWorkspaceUsers: typeof addWorkspaceUsers;
2137
2171
  declare const workspaces_copyDocuments: typeof copyDocuments;
2138
2172
  declare const workspaces_createWorkspace: typeof createWorkspace;
@@ -2146,7 +2180,7 @@ declare const workspaces_removeWorkspaceUsers: typeof removeWorkspaceUsers;
2146
2180
  declare const workspaces_setUserRole: typeof setUserRole;
2147
2181
  declare const workspaces_updateWorkspace: typeof updateWorkspace;
2148
2182
  declare namespace workspaces {
2149
- export { type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_setUserRole as setUserRole, workspaces_updateWorkspace as updateWorkspace };
2183
+ export { type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_setUserRole as setUserRole, workspaces_updateWorkspace as updateWorkspace };
2150
2184
  }
2151
2185
 
2152
2186
  /**
@@ -7003,7 +7037,7 @@ declare namespace calendar {
7003
7037
 
7004
7038
  type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
7005
7039
  type WorkspaceUpdateRequest = components['schemas']['WorkspaceUpdateRequest'];
7006
- type TagFormat = components['schemas']['TagFormat'];
7040
+ type TagFormat$1 = components['schemas']['TagFormat'];
7007
7041
  type CitationSources$1 = components['schemas']['CitationSources'];
7008
7042
  type UserSettingsUpdate = components['schemas']['UserSettingsUpdate'];
7009
7043
  type ConfigUpdateData$1 = components['schemas']['ConfigUpdateData'];
@@ -8864,6 +8898,30 @@ declare class Arbi {
8864
8898
  agent_ext_id?: string | null | undefined;
8865
8899
  is_temporary: boolean;
8866
8900
  }[]>;
8901
+ /**
8902
+ * `POST /v1/workspace/users` with the whole request (another workspace with its sealed key, a
8903
+ * session-scoped grant, an invitation, a resource share): see `addWorkspaceMembers`.
8904
+ */
8905
+ addMembers: (request: Parameters<typeof addWorkspaceMembers>[1]) => Promise<{
8906
+ user: {
8907
+ external_id: string;
8908
+ parent_ext_id?: string | null | undefined;
8909
+ email: string;
8910
+ given_name: string;
8911
+ family_name?: string | null | undefined;
8912
+ picture?: string | null | undefined;
8913
+ encryption_public_key: string;
8914
+ is_sso: boolean;
8915
+ is_identity_verified: boolean;
8916
+ };
8917
+ role: components["schemas"]["WorkspaceRole"];
8918
+ joined_at: string;
8919
+ conversation_count: number;
8920
+ document_count: number;
8921
+ files_mb: number;
8922
+ agent_ext_id?: string | null | undefined;
8923
+ is_temporary: boolean;
8924
+ }[]>;
8867
8925
  /**
8868
8926
  * Grant users a temporary key scoped to ONE session (identified by its public key), for
8869
8927
  * example an agent's run session minted by `agents.authorize()`. Nothing standing is created:
@@ -10760,7 +10818,7 @@ declare class Arbi {
10760
10818
  create: (options: {
10761
10819
  name: string;
10762
10820
  workspaceId?: string;
10763
- tagType?: TagFormat;
10821
+ tagType?: TagFormat$1;
10764
10822
  instruction?: string | null;
10765
10823
  shared?: boolean;
10766
10824
  /** What the tag is (`'issue'`: an issue; flat, no parent). Absent: from the format. */
@@ -14257,6 +14315,126 @@ declare namespace mail {
14257
14315
  export { type mail_ListMessagesOptions as ListMessagesOptions, type mail_MailAccount as MailAccount, type mail_MailAddress as MailAddress, type mail_MailAddressInput as MailAddressInput, type mail_MailAttachment as MailAttachment, type mail_MailCompose as MailCompose, type mail_MailDraftSaved as MailDraftSaved, type mail_MailFetch as MailFetch, type mail_MailFolder as MailFolder, type mail_MailMessage as MailMessage, type mail_MailMessagePage as MailMessagePage, type mail_MailMessageUpdate as MailMessageUpdate, type mail_MailPolicy as MailPolicy, type mail_MailSend as MailSend, type mail_MailSendResult as MailSendResult, mail_NATIVE_ACCOUNT as NATIVE_ACCOUNT, type mail_NativeMailKeys as NativeMailKeys, mail_attachmentFromBytes as attachmentFromBytes, mail_claimNativeAlias as claimNativeAlias, mail_claimSecureMail as claimSecureMail, mail_createMailFetch as createMailFetch, mail_downloadAttachment as downloadAttachment, mail_getMailPolicy as getMailPolicy, mail_getMessage as getMessage, mail_listFolders as listFolders, mail_listMailAccounts as listMailAccounts, mail_listMessages as listMessages, mail_saveDraft as saveDraft, mail_sendMessage as sendMessage, mail_unlockNativeMail as unlockNativeMail, mail_updateMessage as updateMessage };
14258
14316
  }
14259
14317
 
14318
+ /**
14319
+ * Tag helpers: what kind of tag a tag is, how much carries it, which side of the workspace it is
14320
+ * used on, and its hierarchy (labels and annotations nest one level; issues, people and
14321
+ * organisations are flat). Pure functions over the tag list (`TagResponse`), for any client.
14322
+ */
14323
+
14324
+ type TagFormat = components['schemas']['TagFormat'];
14325
+ /** What the hierarchy helpers read of a tag. */
14326
+ type TagNode = Pick<TagResponse, 'external_id' | 'parent_ext_id' | 'kind'>;
14327
+ /**
14328
+ * What a tag is — the backend stores it explicitly (`TagResponse.kind`); never infer it from the
14329
+ * format (`tag_type`), which only says what kind of value an annotation carries:
14330
+ * - **label** — a short name that files a document or a fact. Carries no value.
14331
+ * - **annotation** — a per-document value (text, number, choice, date): document metadata,
14332
+ * optionally AI-filled.
14333
+ * - **search** — a saved search, not a document tag.
14334
+ * - **issue** — a point in dispute; on a document or fact it means "evidence for this issue".
14335
+ * - **person** / **organisation** — an entity; on a document it means "mentioned here" (the
14336
+ * doctag note says how; its role is its own Role field).
14337
+ * Each kind's fields (an issue's status, a person's position …) are the workspace's for that kind
14338
+ * (`GET /v1/tag/kinds/{kind}`); a tag holds its values. Issues and entities are flat.
14339
+ */
14340
+ /** The entity kinds: the people and organisations documents name. */
14341
+ type EntityKind = Extract<TagKind, 'person' | 'organisation'>;
14342
+ declare const ENTITY_KINDS: readonly EntityKind[];
14343
+ /**
14344
+ * Kinds whose value on a document is just being there: a doctag is added or removed, no note. All
14345
+ * carry the checkbox format, so a tag can be changed between them.
14346
+ */
14347
+ declare const PRESENCE_KINDS: readonly TagKind[];
14348
+ /** The kind the server gives a new tag of this format when none is sent. */
14349
+ declare function defaultKindForFormat(format: TagFormat['type']): TagKind;
14350
+ /** How many documents, facts and threads carry a tag. */
14351
+ declare function tagUseCount(tag: Partial<Pick<TagResponse, 'doctag_count' | 'facttag_count' | 'convotag_count'>>): number;
14352
+ /** Filter out non-document tags (saved searches) from a list of tags. */
14353
+ declare function filterDocumentTags<T extends Pick<TagResponse, 'kind'>>(tags: T[]): T[];
14354
+ /** A tag added to or removed from a document as a whole (label, issue, person, organisation). */
14355
+ declare function isPresenceTag(tag: Pick<TagResponse, 'kind'>): boolean;
14356
+ /**
14357
+ * A plain label: what a label picker offers. Issues, people and organisations share the checkbox
14358
+ * format but are not labels — they are managed on the Tags page.
14359
+ */
14360
+ declare function isLabelTag(tag: Pick<TagResponse, 'kind'>): boolean;
14361
+ declare function isAnnotationTag(tag: Pick<TagResponse, 'kind'>): boolean;
14362
+ declare function isEntityTag(tag: Pick<TagResponse, 'kind'>): boolean;
14363
+ /** The two groups the Fields panel manages: labels and annotations (every kind: the Tags page). */
14364
+ type TagGroup = 'label' | 'annotation';
14365
+ declare function tagsOfGroup<T extends Pick<TagResponse, 'kind'>>(tags: T[], group: TagGroup): T[];
14366
+ /**
14367
+ * Which side of the app a label belongs to.
14368
+ *
14369
+ * Labels are ONE shared set of tag rows — the backend has a single `tags`
14370
+ * table, joined to documents through doctags and to facts through facttags —
14371
+ * but to a reader a label used on documents and one used on facts are separate
14372
+ * vocabularies, and mixing them lists things that cannot apply to what you are
14373
+ * looking at. Side is therefore derived from use, via the two counts the API
14374
+ * reports, rather than stored on the tag.
14375
+ *
14376
+ * A tag used nowhere yet belongs to NEITHER side, so it is offered on both:
14377
+ * otherwise a label would vanish from the very panel that just created it,
14378
+ * before it has been applied to anything.
14379
+ */
14380
+ type TagScope = 'document' | 'fact';
14381
+ declare function tagsForScope<T extends Partial<Pick<TagResponse, 'doctag_count' | 'facttag_count'>>>(tags: T[], scope: TagScope): T[];
14382
+ /**
14383
+ * How many levels the tag tree may have: a root plus one nested level.
14384
+ *
14385
+ * A field row is already dense (checkbox, name, type, share toggle, usage
14386
+ * count, expander), so each extra indent level costs width the row cannot
14387
+ * spare and a deep checkbox list stops being scannable. Two levels also
14388
+ * matches the only hierarchy the app already reads — `DocumentTable` hides a
14389
+ * tag whose parent is a `select` tag.
14390
+ */
14391
+ declare const TAG_NESTING_MAX_DEPTH = 2;
14392
+ /** One row of the flattened tree, in render order. */
14393
+ interface TagTreeRow<T extends TagNode = TagNode> {
14394
+ tag: T;
14395
+ /** 0 for a top-level tag, 1 for its child, and so on. */
14396
+ depth: number;
14397
+ /** Direct children of this tag that are present in the same list. */
14398
+ childCount: number;
14399
+ }
14400
+ /** Direct children of `tagId` that are present in `tags`. */
14401
+ declare function getChildTags<T extends TagNode>(tags: T[], tagId: string): T[];
14402
+ /**
14403
+ * Every tag beneath `tagId`, at any depth. Terminates on a pre-existing cycle
14404
+ * because an id is only expanded the first time it is seen.
14405
+ */
14406
+ declare function getTagDescendantIds<T extends TagNode>(tags: T[], tagId: string): Set<string>;
14407
+ /**
14408
+ * Flatten the tags into render order: every tag immediately followed by its
14409
+ * children, with the caller's ordering preserved among siblings.
14410
+ *
14411
+ * This is what keeps a child next to its parent no matter how the list was
14412
+ * sorted upstream — sorting the flat array would scatter them.
14413
+ */
14414
+ declare function flattenTagTree<T extends TagNode>(tags: T[]): TagTreeRow<T>[];
14415
+ /**
14416
+ * Tags that may be chosen as `tagId`'s parent (omit `tagId` when creating).
14417
+ *
14418
+ * Excludes the tag itself and all of its descendants — that is the cycle
14419
+ * guard — and any tag that is already nested, which is the
14420
+ * `TAG_NESTING_MAX_DEPTH` cap seen from the parent's side.
14421
+ */
14422
+ /** Issues, people and organisations are flat: no parent, no children. */
14423
+ declare const isFlatKind: (kind: TagKind) => boolean;
14424
+ declare function getEligibleParentTags<T extends TagNode>(tags: T[], tagId?: string): T[];
14425
+ /**
14426
+ * Whether nesting `tagId` under `parentId` would make the tag its own
14427
+ * ancestor. `getEligibleParentTags` already withholds those options; this is
14428
+ * the assertion for callers that did not come through the picker.
14429
+ */
14430
+ declare function wouldCreateTagCycle<T extends TagNode>(tags: T[], tagId: string, parentId: string | null | undefined): boolean;
14431
+ /**
14432
+ * Whether `tagId` may be nested at all. A tag that already has children cannot
14433
+ * be, since that would make a three-level tree — `TAG_NESTING_MAX_DEPTH` seen
14434
+ * from the child's side.
14435
+ */
14436
+ declare function canTagHaveParent<T extends TagNode>(tags: T[], tagId: string): boolean;
14437
+
14260
14438
  /**
14261
14439
  * Session operations — list, end one, sign out of all.
14262
14440
  */
@@ -14359,4 +14537,4 @@ declare namespace identity {
14359
14537
  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 };
14360
14538
  }
14361
14539
 
14362
- export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type OutputTokensDetails as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FindTimeParams as aA, type FormattedWsMessage as aB, type FreeBusyEntry as aC, GOOGLE_VENDORS as aD, type HolidayCountry as aE, type HouseTemplateCandidate as aF, IMANAGE_VENDORS as aG, type IdentityErrorCode as aH, type IdentityPurchase as aI, type IdentityState as aJ, type IdentityStatus as aK, type ImportResult as aL, type InvitationRead as aM, type LinkedRun as aN, type ListAllOptions as aO, type ListEventsParams as aP, type ListFactsOptions as aQ, type ListPaginatedOptions as aR, MAILBOX_SYNC_VENDORS as aS, MAX_RETRIEVE_DOC_IDS as aT, MICROSOFT_VENDORS as aU, type MailAttachment as aV, type MailDraftSSEEvent as aW, type MessageLevel as aX, type MessageMetadataPayload$1 as aY, type MessageQueuedEvent as aZ, type OAuthAccountKind as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, type EditScope as at, type EventCreateBody as au, type EventPatchBody as av, FLAT_TAG_KINDS as aw, type FactResponse as ax, type FactSearchRequest as ay, type FactSearchResponse as az, type ActivityKind as b, type SkippedFile as b$, type OverlayItem as b0, type OverlayLayerName as b1, type ParsedSlashCommand as b2, type PendingAuthResponse as b3, type PersonKey as b4, PlanStepsError as b5, type PlanWorkRequest as b6, type ProbeAnswerEvent as b7, type ProductResponse as b8, type ProjectAddonKind as b9, type ResponseContentPartAddedEvent as bA, type ResponseCreatedEvent as bB, type ResponseFailedEvent as bC, type ResponseOutputItemAddedEvent as bD, type ResponseOutputItemDoneEvent as bE, type ResponseOutputTextDeltaEvent as bF, type ResponseOutputTextDoneEvent as bG, type ResponseUsage as bH, type RoomCreateBody as bI, type RoomQuery as bJ, type RoomRead as bK, type RunProgress as bL, type RunStep as bM, type RunWaitingOn as bN, SHAREPOINT_VENDORS as bO, type SSEEvent as bP, type SSEStreamCallbacks as bQ, type SSEStreamResult as bR, type SSEStreamStartData as bS, STEP_FIELD_OPTION_TONES as bT, SUPPORTED_EXTENSIONS as bU, type ScopedTarget as bV, type SearchChunk as bW, type SendBack as bX, type ShareRead as bY, type ShareRole as bZ, type SkillSummary as b_, type ProjectAddonSettingsRequest as ba, type ProjectBudget as bb, type ProjectCheckoutRequest as bc, type ProjectConversationUsageResponse as bd, type ProjectCreateOptions as be, type ProjectDetails as bf, type ProjectEventKind as bg, type ProjectEventResponse as bh, type ProjectInvoicesResponse as bi, type ProjectNextPeriodAddonsRequest as bj, type ProjectPlanChangeRequest as bk, type ProjectQuoteRequest as bl, type ProjectResponse as bm, type ProjectUpdateRequest as bn, type ProjectUsageResponse as bo, PublicBookingError as bp, type PublicBookingPage as bq, type QueryOptions as br, type RaisedSignal as bs, type ReconnectOptions as bt, type ReconnectableWsConnection as bu, type ResolvedCitation as bv, type ResolvedRecipient as bw, type RespondParams as bx, type RespondPartstat as by, type ResponseCompletedEvent as bz, type ActivityResponse as c, buildRetrievalChunkTool as c$, type SlackConnectionStatus as c0, type StepActionRequest as c1, type StepActivityEvent as c2, type StepAssignee as c3, type StepField as c4, type StepFieldOption as c5, type StepFieldOptionTone as c6, type StepKind as c7, type StepPhase as c8, type StepSignal as c9, type UploadDocumentsOptions as cA, type UploadOptions as cB, type UploadResult as cC, type UsageBreakdown as cD, type UserConnectorEntry as cE, type UserDailyUsageResponse as cF, type UserInfo as cG, type UserInputRequestEvent as cH, type UserMessageEvent as cI, WebSocketAuthError as cJ, type WeeklyHoursSpec as cK, type WorkStatus as cL, type WorkflowAuthMode as cM, type WorkflowResponse as cN, type WorkflowRunHistoryResponse as cO, type WorkflowRunResponse as cP, type WorkspaceContext as cQ, type WsConnection as cR, account as cS, agentconfig as cT, agents as cU, assistant as cV, authenticatedFetch as cW, bookPublicSlot as cX, buildCitationChunkData as cY, buildDocNameMap as cZ, buildFactsContextTool as c_, type StepSignalWhen as ca, type StepState as cb, type StepStatus as cc, type SubmitBackgroundQueryOptions as cd, type SubscribeParams as ce, type SyncTriggerResult as cf, TAG_KINDS as cg, type TagChange as ch, type TagFieldDefinition as ci, type TagKind as cj, type TagKindField as ck, type TagKindSchema as cl, type TagLinks as cm, type TagListQuery as cn, type TagResponse as co, type TaskPlan as cp, type TaskPlanStep as cq, type TaxQuoteResponse as cr, type TimeSuggestion as cs, type TokenBudgetContext as ct, type UpdateConversationRequest as cu, type UpdateFactRequest as cv, type UpdateWorkflowRequest as cw, type UploadBatchResult as cx, type UploadDirectOptions as cy, type UploadDirectResult as cz, type AgentControlStateEvent as d, selectWorkspaceById as d$, buildRetrievalFullContextTool as d0, buildRetrievalTocTool as d1, calendar as d2, cancelPublicBooking as d3, chats as d4, connectErrorMessage as d5, connectWebSocket as d6, connectWithReconnect as d7, connectors as d8, consumeSSEStream as d9, health as dA, houseTemplate as dB, identity as dC, identityErrorCode as dD, isConnectorVendorVisible as dE, isDriveSyncVendor as dF, isMailboxSyncVendor as dG, isSharePointVendor as dH, isSharedSkill as dI, mail as dJ, notifications as dK, parseSSEEvents as dL, parseSlashCommand as dM, parseSlashTokenInProgress as dN, performPasswordLogin as dO, performSigningKeyLogin as dP, performSsoDeviceFlowLogin as dQ, profile as dR, projects as dS, requireData as dT, requireOk as dU, resolveAuth as dV, resolveCitations as dW, resolveWorkspace as dX, responses as dY, searchChunks as dZ, selectWorkspace as d_, contacts as da, conversations as db, countCitations as dc, createAuthenticatedClient as dd, createDocumentWaiter as de, doctags as df, documents as dg, facts as dh, files as di, filterSkills as dj, formatAgentStepLabel as dk, formatFileSize as dl, formatGbp as dm, formatGbpPerMillionTokens as dn, formatItemLabel as dp, formatStreamSummary as dq, formatUserName as dr, formatWorkspaceChoices as ds, formatWsMessage as dt, generateEncryptedWorkspaceKey as du, generateNewWorkspaceKey as dv, getErrorCode as dw, getErrorMessage as dx, getPublicBookingPage as dy, getRawWorkspaceKey as dz, type AgentStepDeltaEvent as e, sessions as e0, settings as e1, signatureRequests as e2, streamSSE as e3, stripCitationMarkdown as e4, summarizeCitations as e5, tags as e6, uploadSkill as e7, usdToGbp as e8, work as e9, workflowSteps as ea, workflows as eb, workspaces as ec, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiErrorEvent as j, type ArbiHostSession as k, type ArbiOptions as l, ArbiSessionExpiredError as m, type ArtifactEvent as n, type AttendeeRead as o, type AuthContext as p, type AuthHeaders as q, type AuthMode as r, type AuthenticatedClient as s, type BookingPage as t, type BookingPageWriteBody as u, type BookingRequestBody as v, type BridgeTokensOptions as w, type CalDavProfile as x, type CalendarAccount as y, type CalendarAccountKind as z };
14540
+ export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type MessageQueuedEvent as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FactSearchRequest as aA, type FactSearchResponse as aB, type FindTimeParams as aC, type FormattedWsMessage as aD, type FreeBusyEntry as aE, GOOGLE_VENDORS as aF, type HolidayCountry as aG, type HouseTemplateCandidate as aH, IMANAGE_VENDORS as aI, type IdentityErrorCode as aJ, type IdentityPurchase as aK, type IdentityState as aL, type IdentityStatus as aM, type ImportResult as aN, type InvitationRead as aO, type LinkedRun as aP, type ListAllOptions as aQ, type ListEventsParams as aR, type ListFactsOptions as aS, type ListPaginatedOptions as aT, MAILBOX_SYNC_VENDORS as aU, MAX_RETRIEVE_DOC_IDS as aV, MICROSOFT_VENDORS as aW, type MailAttachment as aX, type MailDraftSSEEvent as aY, type MessageLevel as aZ, type MessageMetadataPayload$1 as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, ENTITY_KINDS as at, type EditScope as au, type EntityKind as av, type EventCreateBody as aw, type EventPatchBody as ax, FLAT_TAG_KINDS as ay, type FactResponse as az, type ActivityKind as b, type ShareRead as b$, type OAuthAccountKind as b0, type OutputTokensDetails as b1, type OverlayItem as b2, type OverlayLayerName as b3, PRESENCE_KINDS as b4, type ParsedSlashCommand as b5, type PendingAuthResponse as b6, type PersonKey as b7, PlanStepsError as b8, type PlanWorkRequest as b9, type RespondParams as bA, type RespondPartstat as bB, type ResponseCompletedEvent as bC, type ResponseContentPartAddedEvent as bD, type ResponseCreatedEvent as bE, type ResponseFailedEvent as bF, type ResponseOutputItemAddedEvent as bG, type ResponseOutputItemDoneEvent as bH, type ResponseOutputTextDeltaEvent as bI, type ResponseOutputTextDoneEvent as bJ, type ResponseUsage as bK, type RoomCreateBody as bL, type RoomQuery as bM, type RoomRead as bN, type RunProgress as bO, type RunStep as bP, type RunWaitingOn as bQ, SHAREPOINT_VENDORS as bR, type SSEEvent as bS, type SSEStreamCallbacks as bT, type SSEStreamResult as bU, type SSEStreamStartData as bV, STEP_FIELD_OPTION_TONES as bW, SUPPORTED_EXTENSIONS as bX, type ScopedTarget as bY, type SearchChunk as bZ, type SendBack as b_, type ProbeAnswerEvent as ba, type ProductResponse as bb, type ProjectAddonKind as bc, type ProjectAddonSettingsRequest as bd, type ProjectBudget as be, type ProjectCheckoutRequest as bf, type ProjectConversationUsageResponse as bg, type ProjectCreateOptions as bh, type ProjectDetails as bi, type ProjectEventKind as bj, type ProjectEventResponse as bk, type ProjectInvoicesResponse as bl, type ProjectNextPeriodAddonsRequest as bm, type ProjectPlanChangeRequest as bn, type ProjectQuoteRequest as bo, type ProjectResponse as bp, type ProjectUpdateRequest as bq, type ProjectUsageResponse as br, PublicBookingError as bs, type PublicBookingPage as bt, type QueryOptions as bu, type RaisedSignal as bv, type ReconnectOptions as bw, type ReconnectableWsConnection as bx, type ResolvedCitation as by, type ResolvedRecipient as bz, type ActivityResponse as c, agentconfig as c$, type ShareRole as c0, type SkillSummary as c1, type SkippedFile as c2, type SlackConnectionStatus as c3, type StepActionRequest as c4, type StepActivityEvent as c5, type StepAssignee as c6, type StepField as c7, type StepFieldOption as c8, type StepFieldOptionTone as c9, type TimeSuggestion as cA, type TokenBudgetContext as cB, type UpdateConversationRequest as cC, type UpdateFactRequest as cD, type UpdateWorkflowRequest as cE, type UploadBatchResult as cF, type UploadDirectOptions as cG, type UploadDirectResult as cH, type UploadDocumentsOptions as cI, type UploadOptions as cJ, type UploadResult as cK, type UsageBreakdown as cL, type UserConnectorEntry as cM, type UserDailyUsageResponse as cN, type UserInfo as cO, type UserInputRequestEvent as cP, type UserMessageEvent as cQ, WebSocketAuthError as cR, type WeeklyHoursSpec as cS, type WorkStatus as cT, type WorkflowAuthMode as cU, type WorkflowResponse as cV, type WorkflowRunHistoryResponse as cW, type WorkflowRunResponse as cX, type WorkspaceContext as cY, type WsConnection as cZ, account as c_, type StepKind as ca, type StepPhase as cb, type StepSignal as cc, type StepSignalWhen as cd, type StepState as ce, type StepStatus as cf, type SubmitBackgroundQueryOptions as cg, type SubscribeParams as ch, type SyncTriggerResult as ci, TAG_KINDS as cj, TAG_NESTING_MAX_DEPTH as ck, type TagChange as cl, type TagFieldDefinition as cm, type TagGroup as cn, type TagKind as co, type TagKindField as cp, type TagKindSchema as cq, type TagLinks as cr, type TagListQuery as cs, type TagNode as ct, type TagResponse as cu, type TagScope as cv, type TagTreeRow as cw, type TaskPlan as cx, type TaskPlanStep as cy, type TaxQuoteResponse as cz, type AgentControlStateEvent as d, isSharePointVendor as d$, agents as d0, assistant as d1, authenticatedFetch as d2, bookPublicSlot as d3, buildCitationChunkData as d4, buildDocNameMap as d5, buildFactsContextTool as d6, buildRetrievalChunkTool as d7, buildRetrievalFullContextTool as d8, buildRetrievalTocTool as d9, formatGbpPerMillionTokens as dA, formatItemLabel as dB, formatStreamSummary as dC, formatUserName as dD, formatWorkspaceChoices as dE, formatWsMessage as dF, generateEncryptedWorkspaceKey as dG, generateNewWorkspaceKey as dH, getChildTags as dI, getEligibleParentTags as dJ, getErrorCode as dK, getErrorMessage as dL, getPublicBookingPage as dM, getRawWorkspaceKey as dN, getTagDescendantIds as dO, health as dP, houseTemplate as dQ, identity as dR, identityErrorCode as dS, isAnnotationTag as dT, isConnectorVendorVisible as dU, isDriveSyncVendor as dV, isEntityTag as dW, isFlatKind as dX, isLabelTag as dY, isMailboxSyncVendor as dZ, isPresenceTag as d_, calendar as da, canTagHaveParent as db, cancelPublicBooking as dc, chats as dd, connectErrorMessage as de, connectWebSocket as df, connectWithReconnect as dg, connectors as dh, consumeSSEStream as di, contacts as dj, conversations as dk, countCitations as dl, createAuthenticatedClient as dm, createDocumentWaiter as dn, defaultKindForFormat as dp, doctags as dq, documents as dr, facts as ds, files as dt, filterDocumentTags as du, filterSkills as dv, flattenTagTree as dw, formatAgentStepLabel as dx, formatFileSize as dy, formatGbp as dz, type AgentStepDeltaEvent as e, isSharedSkill as e0, mail as e1, notifications as e2, parseSSEEvents as e3, parseSlashCommand as e4, parseSlashTokenInProgress as e5, performPasswordLogin as e6, performSigningKeyLogin as e7, performSsoDeviceFlowLogin as e8, profile as e9, workspaces as eA, wouldCreateTagCycle as eB, projects as ea, refusalReason as eb, requireData as ec, requireOk as ed, resolveAuth as ee, resolveCitations as ef, resolveWorkspace as eg, responses as eh, searchChunks as ei, selectWorkspace as ej, selectWorkspaceById as ek, sessions as el, settings as em, signatureRequests as en, streamSSE as eo, stripCitationMarkdown as ep, summarizeCitations as eq, tagUseCount as er, tags as es, tagsForScope as et, tagsOfGroup as eu, uploadSkill as ev, usdToGbp as ew, work as ex, workflowSteps as ey, workflows as ez, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiErrorEvent as j, type ArbiHostSession as k, type ArbiOptions as l, ArbiSessionExpiredError as m, type ArtifactEvent as n, type AttendeeRead as o, type AuthContext as p, type AuthHeaders as q, type AuthMode as r, type AuthenticatedClient as s, type BookingPage as t, type BookingPageWriteBody as u, type BookingRequestBody as v, type BridgeTokensOptions as w, type CalDavProfile as x, type CalendarAccount as y, type CalendarAccountKind as z };