@arbidocs/sdk 0.4.49 → 0.4.50

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.
@@ -2195,6 +2195,75 @@ declare namespace contacts {
2195
2195
  export { contacts_addContacts as addContacts, contacts_groupContactsByStatus as groupContactsByStatus, contacts_listContacts as listContacts, contacts_removeContacts as removeContacts };
2196
2196
  }
2197
2197
 
2198
+ /**
2199
+ * End-to-end encrypted DM attachments.
2200
+ *
2201
+ * Each file is sealed with its own random 32-byte key (SecretBox, 24-byte nonce prepended — the
2202
+ * same wire format as workspace files) and uploaded as opaque ciphertext. The keys travel in a
2203
+ * small manifest, `{"v":1,"files":[{id,name,type,size,key}]}`, which is encrypted per recipient
2204
+ * exactly like the DM's `content` (the sender↔recipient pair key). The server stores ciphertext
2205
+ * and ids only: it never sees a file's bytes, name, type or key.
2206
+ */
2207
+
2208
+ type NotificationResponse$1 = components['schemas']['NotificationResponse'];
2209
+ /** Largest file a DM can carry, in plaintext bytes (the server caps the ciphertext at this + 40). */
2210
+ declare const DM_ATTACHMENT_MAX_BYTES: number;
2211
+ /** Most files one DM can carry. */
2212
+ declare const DM_ATTACHMENT_MAX_FILES = 10;
2213
+ /** One attached file as the manifest describes it. `key` is the base64 per-file SecretBox key. */
2214
+ interface DmAttachmentFile {
2215
+ id: string;
2216
+ name: string;
2217
+ type: string;
2218
+ size: number;
2219
+ key: string;
2220
+ }
2221
+ /** A file to attach: its name, MIME type and plaintext bytes. */
2222
+ interface DmAttachmentInput {
2223
+ name: string;
2224
+ type?: string;
2225
+ bytes: Uint8Array;
2226
+ }
2227
+ /** A DM row after decryption: `content` is plaintext and the manifest's files are listed. */
2228
+ type DecryptedDmNotification = NotificationResponse$1 & {
2229
+ /** The files this message carries (empty when it has none or the manifest could not be read). */
2230
+ attachmentFiles?: DmAttachmentFile[];
2231
+ /** Set when the message has attachments but its manifest could not be decrypted. */
2232
+ attachmentsError?: string;
2233
+ };
2234
+ /**
2235
+ * Throw a readable error when a set of files breaks the DM limits: more than
2236
+ * {@link DM_ATTACHMENT_MAX_FILES} files, or any one over {@link DM_ATTACHMENT_MAX_BYTES}.
2237
+ */
2238
+ declare function checkDmAttachmentLimits(files: ReadonlyArray<{
2239
+ name: string;
2240
+ size: number;
2241
+ }>): void;
2242
+ /**
2243
+ * Encrypt one file with a fresh key and upload the ciphertext. Returns the manifest entry the
2244
+ * recipients need to fetch and open it. Upload just before sending: an upload no DM links is
2245
+ * removed after 24 hours.
2246
+ */
2247
+ declare function uploadDmAttachment(arbi: ArbiClient, input: DmAttachmentInput): Promise<DmAttachmentFile>;
2248
+ /** Check the limits for the whole set first, then upload each file. Nothing is uploaded if any file is refused. */
2249
+ declare function uploadDmAttachments(arbi: ArbiClient, inputs: DmAttachmentInput[]): Promise<DmAttachmentFile[]>;
2250
+ /** The manifest's plaintext JSON. */
2251
+ declare function serializeDmAttachmentManifest(files: DmAttachmentFile[]): string;
2252
+ /** Parse and validate a decrypted manifest. Throws on an unknown version or a malformed entry. */
2253
+ declare function parseDmAttachmentManifest(json: string): DmAttachmentFile[];
2254
+ /** Encrypt a manifest for one recipient with the pair key — the same scheme as DM `content`. */
2255
+ declare function encryptDmAttachmentManifest(arbi: ArbiClient, files: DmAttachmentFile[], recipientEncryptionPubKeyBase64: string, senderEncryptionSecretKey: Uint8Array): Promise<string>;
2256
+ /**
2257
+ * Decrypt a notification's attachment manifest. Returns `[]` when it has none; throws when the
2258
+ * manifest cannot be opened or is malformed.
2259
+ */
2260
+ declare function decryptDmAttachments(arbi: ArbiClient, notification: NotificationResponse$1, crypto: DmCryptoContext): Promise<DmAttachmentFile[]>;
2261
+ /**
2262
+ * Fetch an attachment's ciphertext, decrypt it with the manifest key and check its size.
2263
+ * Throws when it is gone, has been altered, or does not match the manifest.
2264
+ */
2265
+ declare function downloadDmAttachment(arbi: ArbiClient, file: DmAttachmentFile): Promise<Uint8Array>;
2266
+
2198
2267
  /**
2199
2268
  * Direct message / notification operations — list, send, mark read, delete.
2200
2269
  *
@@ -2250,12 +2319,14 @@ declare function encryptDmContent(arbi: ArbiClient, plaintext: string, recipient
2250
2319
  */
2251
2320
  declare function decryptDmContent(arbi: ArbiClient, notification: NotificationResponse, crypto: DmCryptoContext): Promise<string | null>;
2252
2321
  /**
2253
- * Decrypt a batch of notifications, replacing content in-place.
2254
- * Failed decryptions get content set to '[Decryption failed]'.
2322
+ * Decrypt a batch of notifications, replacing content in-place and listing each message's
2323
+ * attachments in `attachmentFiles`.
2324
+ * Failed decryptions get content set to '[Decryption failed]'; a manifest that cannot be opened
2325
+ * leaves `attachmentFiles` empty and sets `attachmentsError`.
2255
2326
  *
2256
2327
  * @returns New array with decrypted content
2257
2328
  */
2258
- declare function decryptDmBatch(arbi: ArbiClient, notifications: NotificationResponse[], crypto: DmCryptoContext): Promise<NotificationResponse[]>;
2329
+ declare function decryptDmBatch(arbi: ArbiClient, notifications: NotificationResponse[], crypto: DmCryptoContext): Promise<DecryptedDmNotification[]>;
2259
2330
  /**
2260
2331
  * List DMs (raw — content is encrypted ciphertext).
2261
2332
  */
@@ -2285,6 +2356,7 @@ declare function listDMs(arbi: ArbiClient): Promise<{
2285
2356
  workspace_ext_id?: string | null | undefined;
2286
2357
  dm_context_only: boolean;
2287
2358
  content?: string | null | undefined;
2359
+ attachments?: string | null | undefined;
2288
2360
  conversation_ext_id?: string | null | undefined;
2289
2361
  message_ext_id?: string | null | undefined;
2290
2362
  read: boolean;
@@ -2294,20 +2366,7 @@ declare function listDMs(arbi: ArbiClient): Promise<{
2294
2366
  /**
2295
2367
  * List and decrypt DMs in one call.
2296
2368
  */
2297
- declare function listDecryptedDMs(arbi: ArbiClient, crypto: DmCryptoContext): Promise<{
2298
- type: components["schemas"]["NotificationType"];
2299
- external_id: string;
2300
- sender: components["schemas"]["UserResponse"];
2301
- recipient: components["schemas"]["UserResponse"];
2302
- workspace_ext_id?: string | null;
2303
- dm_context_only: boolean;
2304
- content?: string | null;
2305
- conversation_ext_id?: string | null;
2306
- message_ext_id?: string | null;
2307
- read: boolean;
2308
- created_at: string;
2309
- updated_at: string;
2310
- }[]>;
2369
+ declare function listDecryptedDMs(arbi: ArbiClient, crypto: DmCryptoContext): Promise<DecryptedDmNotification[]>;
2311
2370
  /**
2312
2371
  * List the current user's durable activity feed, newest first.
2313
2372
  *
@@ -2345,6 +2404,7 @@ declare function listActivity(arbi: ArbiClient, options?: {
2345
2404
  workspace_ext_id?: string | null | undefined;
2346
2405
  dm_context_only: boolean;
2347
2406
  content?: string | null | undefined;
2407
+ attachments?: string | null | undefined;
2348
2408
  conversation_ext_id?: string | null | undefined;
2349
2409
  message_ext_id?: string | null | undefined;
2350
2410
  read: boolean;
@@ -2368,6 +2428,11 @@ declare function resolveRecipient(arbi: ArbiClient, ref: string): Promise<Resolv
2368
2428
  * Encrypts plaintext content for each recipient using their public key.
2369
2429
  * Requires recipient public keys — fetch via contacts or user lookup first.
2370
2430
  *
2431
+ * Attachments are uploaded first with `uploadDmAttachments`; pass the returned files as
2432
+ * `options.attachments`. Their manifest (which carries the per-file keys) is encrypted for each
2433
+ * recipient with the same pair key as the content, and the server links the uploads to every
2434
+ * notification created.
2435
+ *
2371
2436
  * Returns the created notifications with their content as **plaintext**, not
2372
2437
  * ciphertext — matching what `listDecryptedDMs` returns. The sender supplied the
2373
2438
  * text, so it is handed straight back: a caller must never have to re-fetch and
@@ -2381,7 +2446,9 @@ declare function sendEncryptedDM(arbi: ArbiClient, messages: Array<{
2381
2446
  recipient_ext_id: string;
2382
2447
  content: string;
2383
2448
  recipient_encryption_public_key: string;
2384
- }>, crypto: DmCryptoContext): Promise<NotificationResponse[]>;
2449
+ }>, crypto: DmCryptoContext, options?: {
2450
+ attachments?: DmAttachmentFile[];
2451
+ }): Promise<DecryptedDmNotification[]>;
2385
2452
  /**
2386
2453
  * Ask another user to grant you workspace access.
2387
2454
  *
@@ -2427,6 +2494,7 @@ declare function requestWorkspaceAccess(arbi: ArbiClient, params: {
2427
2494
  workspace_ext_id?: string | null | undefined;
2428
2495
  dm_context_only: boolean;
2429
2496
  content?: string | null | undefined;
2497
+ attachments?: string | null | undefined;
2430
2498
  conversation_ext_id?: string | null | undefined;
2431
2499
  message_ext_id?: string | null | undefined;
2432
2500
  read: boolean;
@@ -2466,6 +2534,7 @@ declare function sendDM(arbi: ArbiClient, messages: Array<{
2466
2534
  workspace_ext_id?: string | null | undefined;
2467
2535
  dm_context_only: boolean;
2468
2536
  content?: string | null | undefined;
2537
+ attachments?: string | null | undefined;
2469
2538
  conversation_ext_id?: string | null | undefined;
2470
2539
  message_ext_id?: string | null | undefined;
2471
2540
  read: boolean;
@@ -2498,6 +2567,7 @@ declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
2498
2567
  workspace_ext_id?: string | null | undefined;
2499
2568
  dm_context_only: boolean;
2500
2569
  content?: string | null | undefined;
2570
+ attachments?: string | null | undefined;
2501
2571
  conversation_ext_id?: string | null | undefined;
2502
2572
  message_ext_id?: string | null | undefined;
2503
2573
  read: boolean;
@@ -2506,23 +2576,36 @@ declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
2506
2576
  }[]>;
2507
2577
  declare function deleteDMs(arbi: ArbiClient, messageIds: string[]): Promise<void>;
2508
2578
 
2579
+ declare const dm_DM_ATTACHMENT_MAX_BYTES: typeof DM_ATTACHMENT_MAX_BYTES;
2580
+ declare const dm_DM_ATTACHMENT_MAX_FILES: typeof DM_ATTACHMENT_MAX_FILES;
2581
+ type dm_DecryptedDmNotification = DecryptedDmNotification;
2582
+ type dm_DmAttachmentFile = DmAttachmentFile;
2583
+ type dm_DmAttachmentInput = DmAttachmentInput;
2509
2584
  type dm_DmCryptoContext = DmCryptoContext;
2510
2585
  type dm_ResolvedRecipient = ResolvedRecipient;
2586
+ declare const dm_checkDmAttachmentLimits: typeof checkDmAttachmentLimits;
2511
2587
  declare const dm_createDmCryptoContext: typeof createDmCryptoContext;
2588
+ declare const dm_decryptDmAttachments: typeof decryptDmAttachments;
2512
2589
  declare const dm_decryptDmBatch: typeof decryptDmBatch;
2513
2590
  declare const dm_decryptDmContent: typeof decryptDmContent;
2514
2591
  declare const dm_deleteDMs: typeof deleteDMs;
2592
+ declare const dm_downloadDmAttachment: typeof downloadDmAttachment;
2593
+ declare const dm_encryptDmAttachmentManifest: typeof encryptDmAttachmentManifest;
2515
2594
  declare const dm_encryptDmContent: typeof encryptDmContent;
2516
2595
  declare const dm_listActivity: typeof listActivity;
2517
2596
  declare const dm_listDMs: typeof listDMs;
2518
2597
  declare const dm_listDecryptedDMs: typeof listDecryptedDMs;
2519
2598
  declare const dm_markRead: typeof markRead;
2599
+ declare const dm_parseDmAttachmentManifest: typeof parseDmAttachmentManifest;
2520
2600
  declare const dm_requestWorkspaceAccess: typeof requestWorkspaceAccess;
2521
2601
  declare const dm_resolveRecipient: typeof resolveRecipient;
2522
2602
  declare const dm_sendDM: typeof sendDM;
2523
2603
  declare const dm_sendEncryptedDM: typeof sendEncryptedDM;
2604
+ declare const dm_serializeDmAttachmentManifest: typeof serializeDmAttachmentManifest;
2605
+ declare const dm_uploadDmAttachment: typeof uploadDmAttachment;
2606
+ declare const dm_uploadDmAttachments: typeof uploadDmAttachments;
2524
2607
  declare namespace dm {
2525
- export { type dm_DmCryptoContext as DmCryptoContext, type dm_ResolvedRecipient as ResolvedRecipient, dm_createDmCryptoContext as createDmCryptoContext, dm_decryptDmBatch as decryptDmBatch, dm_decryptDmContent as decryptDmContent, dm_deleteDMs as deleteDMs, dm_encryptDmContent as encryptDmContent, dm_listActivity as listActivity, dm_listDMs as listDMs, dm_listDecryptedDMs as listDecryptedDMs, dm_markRead as markRead, dm_requestWorkspaceAccess as requestWorkspaceAccess, dm_resolveRecipient as resolveRecipient, dm_sendDM as sendDM, dm_sendEncryptedDM as sendEncryptedDM };
2608
+ export { dm_DM_ATTACHMENT_MAX_BYTES as DM_ATTACHMENT_MAX_BYTES, dm_DM_ATTACHMENT_MAX_FILES as DM_ATTACHMENT_MAX_FILES, type dm_DecryptedDmNotification as DecryptedDmNotification, type dm_DmAttachmentFile as DmAttachmentFile, type dm_DmAttachmentInput as DmAttachmentInput, type dm_DmCryptoContext as DmCryptoContext, type dm_ResolvedRecipient as ResolvedRecipient, dm_checkDmAttachmentLimits as checkDmAttachmentLimits, dm_createDmCryptoContext as createDmCryptoContext, dm_decryptDmAttachments as decryptDmAttachments, dm_decryptDmBatch as decryptDmBatch, dm_decryptDmContent as decryptDmContent, dm_deleteDMs as deleteDMs, dm_downloadDmAttachment as downloadDmAttachment, dm_encryptDmAttachmentManifest as encryptDmAttachmentManifest, dm_encryptDmContent as encryptDmContent, dm_listActivity as listActivity, dm_listDMs as listDMs, dm_listDecryptedDMs as listDecryptedDMs, dm_markRead as markRead, dm_parseDmAttachmentManifest as parseDmAttachmentManifest, dm_requestWorkspaceAccess as requestWorkspaceAccess, dm_resolveRecipient as resolveRecipient, dm_sendDM as sendDM, dm_sendEncryptedDM as sendEncryptedDM, dm_serializeDmAttachmentManifest as serializeDmAttachmentManifest, dm_uploadDmAttachment as uploadDmAttachment, dm_uploadDmAttachments as uploadDmAttachments };
2526
2609
  }
2527
2610
 
2528
2611
  /**
@@ -3780,6 +3863,7 @@ declare class Arbi {
3780
3863
  workspace_ext_id?: string | null | undefined;
3781
3864
  dm_context_only: boolean;
3782
3865
  content?: string | null | undefined;
3866
+ attachments?: string | null | undefined;
3783
3867
  conversation_ext_id?: string | null | undefined;
3784
3868
  message_ext_id?: string | null | undefined;
3785
3869
  read: boolean;
@@ -4958,6 +5042,7 @@ declare class Arbi {
4958
5042
  workspace_ext_id?: string | null | undefined;
4959
5043
  dm_context_only: boolean;
4960
5044
  content?: string | null | undefined;
5045
+ attachments?: string | null | undefined;
4961
5046
  conversation_ext_id?: string | null | undefined;
4962
5047
  message_ext_id?: string | null | undefined;
4963
5048
  read: boolean;
@@ -5214,57 +5299,18 @@ declare class Arbi {
5214
5299
  * List direct messages, newest first, with content already **decrypted**.
5215
5300
  * (A message that can't be decrypted comes back as `[Decryption failed]`.)
5216
5301
  */
5217
- list: () => Promise<{
5218
- type: components["schemas"]["NotificationType"];
5219
- external_id: string;
5220
- sender: components["schemas"]["UserResponse"];
5221
- recipient: components["schemas"]["UserResponse"];
5222
- workspace_ext_id?: string | null;
5223
- dm_context_only: boolean;
5224
- content?: string | null;
5225
- conversation_ext_id?: string | null;
5226
- message_ext_id?: string | null;
5227
- read: boolean;
5228
- created_at: string;
5229
- updated_at: string;
5230
- }[]>;
5302
+ list: () => Promise<DecryptedDmNotification[]>;
5231
5303
  /**
5232
5304
  * Send an E2E-encrypted DM to a recipient (email or `usr-`/`agt-` id).
5233
5305
  * Resolves the recipient's public key and encrypts internally — the caller
5234
5306
  * passes plaintext and never handles keys or ciphertext.
5235
5307
  */
5236
- send: (recipient: string, text: string) => Promise<{
5237
- type: components["schemas"]["NotificationType"];
5238
- external_id: string;
5239
- sender: components["schemas"]["UserResponse"];
5240
- recipient: components["schemas"]["UserResponse"];
5241
- workspace_ext_id?: string | null;
5242
- dm_context_only: boolean;
5243
- content?: string | null;
5244
- conversation_ext_id?: string | null;
5245
- message_ext_id?: string | null;
5246
- read: boolean;
5247
- created_at: string;
5248
- updated_at: string;
5249
- }[]>;
5308
+ send: (recipient: string, text: string) => Promise<DecryptedDmNotification[]>;
5250
5309
  /**
5251
5310
  * Send to a recipient whose external_id + public key are already known
5252
5311
  * (e.g. from a message's `sender`), skipping directory resolution.
5253
5312
  */
5254
- sendTo: (recipientExtId: string, recipientPublicKey: string, text: string) => Promise<{
5255
- type: components["schemas"]["NotificationType"];
5256
- external_id: string;
5257
- sender: components["schemas"]["UserResponse"];
5258
- recipient: components["schemas"]["UserResponse"];
5259
- workspace_ext_id?: string | null;
5260
- dm_context_only: boolean;
5261
- content?: string | null;
5262
- conversation_ext_id?: string | null;
5263
- message_ext_id?: string | null;
5264
- read: boolean;
5265
- created_at: string;
5266
- updated_at: string;
5267
- }[]>;
5313
+ sendTo: (recipientExtId: string, recipientPublicKey: string, text: string) => Promise<DecryptedDmNotification[]>;
5268
5314
  /** Resolve a recipient reference to `{ extId, pubKey }` (contacts → agents → workspace). */
5269
5315
  resolveRecipient: (recipient: string) => Promise<ResolvedRecipient | null>;
5270
5316
  markRead: (messageIds: string[]) => Promise<{
@@ -5293,6 +5339,7 @@ declare class Arbi {
5293
5339
  workspace_ext_id?: string | null | undefined;
5294
5340
  dm_context_only: boolean;
5295
5341
  content?: string | null | undefined;
5342
+ attachments?: string | null | undefined;
5296
5343
  conversation_ext_id?: string | null | undefined;
5297
5344
  message_ext_id?: string | null | undefined;
5298
5345
  read: boolean;
@@ -5330,6 +5377,7 @@ declare class Arbi {
5330
5377
  workspace_ext_id?: string | null | undefined;
5331
5378
  dm_context_only: boolean;
5332
5379
  content?: string | null | undefined;
5380
+ attachments?: string | null | undefined;
5333
5381
  conversation_ext_id?: string | null | undefined;
5334
5382
  message_ext_id?: string | null | undefined;
5335
5383
  read: boolean;
@@ -7678,4 +7726,4 @@ declare namespace account {
7678
7726
  export { account_confirmEmailChange as confirmEmailChange, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
7679
7727
  }
7680
7728
 
7681
- export { type ProbeAnswerEvent as $, type ActivityKind as A, type DeferredInterjectionEvent as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DmCryptoContext as E, type DocNameMap as F, type DocumentAutomationAction as G, type DocumentListFields as H, type DocumentListOrder as I, type DocumentSelector as J, type DocumentWaiter as K, type DocumentWaiterOptions as L, type FactResponse as M, type FactSearchRequest as N, type FactSearchResponse as O, type FormattedWsMessage as P, type ListAllOptions as Q, type ListFactsOptions as R, type ListPaginatedOptions as S, type MailAttachment as T, type MessageLevel as U, type MessageMetadataPayload$1 as V, type MessageQueuedEvent as W, type OutputTokensDetails as X, type ParsedSlashCommand as Y, type PendingAuthResponse as Z, type PlanWorkRequest as _, type ActivityResponse as a, createAuthenticatedClient as a$, type ProjectInvoicesResponse as a0, type ProjectUsageResponse as a1, type QueryOptions as a2, type ReconnectOptions as a3, type ReconnectableWsConnection as a4, type RequestApprovalRequest as a5, type ResolvedCitation as a6, type ResolvedRecipient as a7, type ResponseCompletedEvent as a8, type ResponseContentPartAddedEvent as a9, type UserDailyUsageResponse as aA, type UserInfo as aB, type UserInputRequestEvent as aC, type UserMessageEvent as aD, WebSocketAuthError as aE, type WorkStatus as aF, type WorkflowAuthMode as aG, type WorkflowResponse as aH, type WorkflowRunHistoryResponse as aI, type WorkflowRunResponse as aJ, type WorkspaceContext as aK, type WsConnection as aL, account as aM, agentconfig as aN, agents as aO, assistant as aP, authenticatedFetch as aQ, buildDocNameMap as aR, buildRetrievalChunkTool as aS, buildRetrievalFullContextTool as aT, buildRetrievalTocTool as aU, connectWebSocket as aV, connectWithReconnect as aW, consumeSSEStream as aX, contacts as aY, conversations as aZ, countCitations as a_, type ResponseCreatedEvent as aa, type ResponseFailedEvent as ab, type ResponseOutputItemAddedEvent as ac, type ResponseOutputItemDoneEvent as ad, type ResponseOutputTextDeltaEvent as ae, type ResponseOutputTextDoneEvent as af, type ResponseUsage as ag, type ReviewWorkRequest as ah, type SSEEvent as ai, type SSEStreamCallbacks as aj, type SSEStreamResult as ak, type SSEStreamStartData as al, SUPPORTED_EXTENSIONS as am, type SkillSummary as an, type SkippedFile as ao, type SubmitBackgroundQueryOptions as ap, type TaskPlan as aq, type TokenBudgetContext as ar, type UpdateConversationRequest as as, type UpdateFactRequest as at, type UpdateWorkflowRequest as au, type UploadBatchResult as av, type UploadDirectOptions as aw, type UploadDirectResult as ax, type UploadOptions as ay, type UploadResult as az, type AgentControlStateEvent as b, createDocumentWaiter as b0, dm as b1, doctags as b2, documents as b3, facts as b4, files as b5, filterSkills as b6, formatAgentStepLabel as b7, formatFileSize as b8, formatItemLabel as b9, selectWorkspaceById as bA, sessions as bB, settings as bC, streamSSE as bD, stripCitationMarkdown as bE, summarizeCitations as bF, tags as bG, work as bH, workflows as bI, workspaces as bJ, formatStreamSummary as ba, formatUserName as bb, formatWorkspaceChoices as bc, formatWsMessage as bd, generateEncryptedWorkspaceKey as be, generateNewWorkspaceKey as bf, getErrorCode as bg, getErrorMessage as bh, getRawWorkspaceKey as bi, health as bj, mail as bk, parseSSEEvents as bl, parseSlashCommand as bm, parseSlashTokenInProgress as bn, performPasswordLogin as bo, performSigningKeyLogin as bp, performSsoDeviceFlowLogin as bq, profile as br, projects as bs, requireData as bt, requireOk as bu, resolveAuth as bv, resolveCitations as bw, resolveWorkspace as bx, responses as by, selectWorkspace as bz, type AgentStepDeltaEvent as c, 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 CreateFactRequest as w, type CreateFactsRequest as x, type CreateWorkRequest as y, type CreateWorkflowRequest as z };
7729
+ export { type ParsedSlashCommand as $, type ActivityKind as A, type DecryptedDmNotification as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DeferredInterjectionEvent as E, type DmAttachmentFile as F, type DmAttachmentInput as G, type DmCryptoContext as H, type DocNameMap as I, type DocumentAutomationAction as J, type DocumentListFields as K, type DocumentListOrder as L, type DocumentSelector as M, type DocumentWaiter as N, type DocumentWaiterOptions as O, type FactResponse as P, type FactSearchRequest as Q, type FactSearchResponse as R, type FormattedWsMessage as S, type ListAllOptions as T, type ListFactsOptions as U, type ListPaginatedOptions as V, type MailAttachment as W, type MessageLevel as X, type MessageMetadataPayload$1 as Y, type MessageQueuedEvent as Z, type OutputTokensDetails as _, type ActivityResponse as a, contacts as a$, type PendingAuthResponse as a0, type PlanWorkRequest as a1, type ProbeAnswerEvent as a2, type ProjectInvoicesResponse as a3, type ProjectUsageResponse as a4, type QueryOptions as a5, type ReconnectOptions as a6, type ReconnectableWsConnection as a7, type RequestApprovalRequest as a8, type ResolvedCitation as a9, type UploadDirectResult as aA, type UploadOptions as aB, type UploadResult as aC, type UserDailyUsageResponse as aD, type UserInfo as aE, type UserInputRequestEvent as aF, type UserMessageEvent as aG, WebSocketAuthError as aH, type WorkStatus as aI, type WorkflowAuthMode as aJ, type WorkflowResponse as aK, type WorkflowRunHistoryResponse as aL, type WorkflowRunResponse as aM, type WorkspaceContext as aN, type WsConnection as aO, account as aP, agentconfig as aQ, agents as aR, assistant as aS, authenticatedFetch as aT, buildDocNameMap as aU, buildRetrievalChunkTool as aV, buildRetrievalFullContextTool as aW, buildRetrievalTocTool as aX, connectWebSocket as aY, connectWithReconnect as aZ, consumeSSEStream as a_, type ResolvedRecipient as aa, type ResponseCompletedEvent as ab, type ResponseContentPartAddedEvent as ac, type ResponseCreatedEvent as ad, type ResponseFailedEvent as ae, type ResponseOutputItemAddedEvent as af, type ResponseOutputItemDoneEvent as ag, type ResponseOutputTextDeltaEvent as ah, type ResponseOutputTextDoneEvent as ai, type ResponseUsage as aj, type ReviewWorkRequest as ak, type SSEEvent as al, type SSEStreamCallbacks as am, type SSEStreamResult as an, type SSEStreamStartData as ao, SUPPORTED_EXTENSIONS as ap, type SkillSummary as aq, type SkippedFile as ar, type SubmitBackgroundQueryOptions as as, type TaskPlan as at, type TokenBudgetContext as au, type UpdateConversationRequest as av, type UpdateFactRequest as aw, type UpdateWorkflowRequest as ax, type UploadBatchResult as ay, type UploadDirectOptions as az, type AgentControlStateEvent as b, conversations as b0, countCitations as b1, createAuthenticatedClient as b2, createDocumentWaiter as b3, dm as b4, doctags as b5, documents as b6, facts as b7, files as b8, filterSkills as b9, resolveWorkspace as bA, responses as bB, selectWorkspace as bC, selectWorkspaceById as bD, sessions as bE, settings as bF, streamSSE as bG, stripCitationMarkdown as bH, summarizeCitations as bI, tags as bJ, work as bK, workflows as bL, workspaces as bM, formatAgentStepLabel as ba, formatFileSize as bb, formatItemLabel as bc, formatStreamSummary as bd, formatUserName as be, formatWorkspaceChoices as bf, formatWsMessage as bg, generateEncryptedWorkspaceKey as bh, generateNewWorkspaceKey as bi, getErrorCode as bj, getErrorMessage as bk, getRawWorkspaceKey as bl, health as bm, mail as bn, parseSSEEvents as bo, parseSlashCommand as bp, parseSlashTokenInProgress as bq, performPasswordLogin as br, performSigningKeyLogin as bs, performSsoDeviceFlowLogin as bt, profile as bu, projects as bv, requireData as bw, requireOk as bx, resolveAuth as by, resolveCitations as bz, type AgentStepDeltaEvent as c, 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 CreateFactRequest as w, type CreateFactsRequest as x, type CreateWorkRequest as y, type CreateWorkflowRequest as z };