@arbidocs/sdk 0.4.106 → 0.4.107

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.
@@ -326,6 +326,7 @@ type ProbeAnswerEvent = components['schemas']['ProbeAnswerEvent'];
326
326
  type DeferredInterjectionEvent = components['schemas']['DeferredInterjectionEvent'];
327
327
  type AgentControlStateEvent = components['schemas']['AgentControlStateEvent'];
328
328
  type ArtifactEvent = components['schemas']['ArtifactEvent'];
329
+ type MailDraftSSEEvent = components['schemas']['MailDraftSSEEvent'];
329
330
  type UserMessageEvent = components['schemas']['UserMessageEvent'];
330
331
  type MessageQueuedEvent = components['schemas']['MessageQueuedEvent'];
331
332
  type MessageMetadataPayload$1 = components['schemas']['MessageMetadataPayload'];
@@ -458,6 +459,8 @@ interface SSEStreamCallbacks {
458
459
  /** Server-confirmed run-control state (paused / running). */
459
460
  onAgentControlState?: (data: AgentControlStateEvent) => void;
460
461
  onArtifact?: (data: ArtifactEvent) => void;
462
+ /** The agent saved an email draft in the person's mailbox: open it beside the chat. */
463
+ onMailDraft?: (data: MailDraftSSEEvent) => void;
461
464
  onElapsedTime?: (t: number) => void;
462
465
  onUsage?: (usage: ResponseUsage) => void;
463
466
  /** Final per-turn token/£ budget snapshot from response.completed. */
@@ -2314,6 +2317,13 @@ declare function getConversationThreads(arbi: ArbiClient, conversationId: string
2314
2317
  name: "workflow_step";
2315
2318
  description: string;
2316
2319
  workflow_step: string;
2320
+ } | {
2321
+ name: "mail_context";
2322
+ description: string;
2323
+ tool_args: {
2324
+ mail_ext_id: string;
2325
+ reply: boolean;
2326
+ };
2317
2327
  };
2318
2328
  } | undefined;
2319
2329
  config_ext_id?: string | null | undefined;
@@ -2503,6 +2513,13 @@ declare function getMessage$1(arbi: ArbiClient, messageId: string): Promise<{
2503
2513
  name: "workflow_step";
2504
2514
  description: string;
2505
2515
  workflow_step: string;
2516
+ } | {
2517
+ name: "mail_context";
2518
+ description: string;
2519
+ tool_args: {
2520
+ mail_ext_id: string;
2521
+ reply: boolean;
2522
+ };
2506
2523
  };
2507
2524
  } | undefined;
2508
2525
  config_ext_id?: string | null | undefined;
@@ -2699,6 +2716,13 @@ declare function postConversationMessage(arbi: ArbiClient, body: PostMessageRequ
2699
2716
  name: "workflow_step";
2700
2717
  description: string;
2701
2718
  workflow_step: string;
2719
+ } | {
2720
+ name: "mail_context";
2721
+ description: string;
2722
+ tool_args: {
2723
+ mail_ext_id: string;
2724
+ reply: boolean;
2725
+ };
2702
2726
  };
2703
2727
  } | undefined;
2704
2728
  config_ext_id?: string | null | undefined;
@@ -5560,6 +5584,8 @@ interface QueryOptions {
5560
5584
  onUserInputRequest?: (data: UserInputRequestEvent) => void;
5561
5585
  /** Called when an artifact event is received */
5562
5586
  onArtifact?: (data: ArtifactEvent) => void;
5587
+ /** Called when the agent saved an email draft in the person's mailbox */
5588
+ onMailDraft?: (data: MailDraftSSEEvent) => void;
5563
5589
  /** Called when backend elapsed time is received */
5564
5590
  onElapsedTime?: (t: number) => void;
5565
5591
  /** Called when stream completes */
@@ -7356,6 +7382,13 @@ declare class Arbi {
7356
7382
  name: "workflow_step";
7357
7383
  description: string;
7358
7384
  workflow_step: string;
7385
+ } | {
7386
+ name: "mail_context";
7387
+ description: string;
7388
+ tool_args: {
7389
+ mail_ext_id: string;
7390
+ reply: boolean;
7391
+ };
7359
7392
  };
7360
7393
  } | undefined;
7361
7394
  config_ext_id?: string | null | undefined;
@@ -7954,6 +7987,13 @@ declare class Arbi {
7954
7987
  name: "workflow_step";
7955
7988
  description: string;
7956
7989
  workflow_step: string;
7990
+ } | {
7991
+ name: "mail_context";
7992
+ description: string;
7993
+ tool_args: {
7994
+ mail_ext_id: string;
7995
+ reply: boolean;
7996
+ };
7957
7997
  };
7958
7998
  } | undefined;
7959
7999
  config_ext_id?: string | null | undefined;
@@ -8141,6 +8181,13 @@ declare class Arbi {
8141
8181
  name: "workflow_step";
8142
8182
  description: string;
8143
8183
  workflow_step: string;
8184
+ } | {
8185
+ name: "mail_context";
8186
+ description: string;
8187
+ tool_args: {
8188
+ mail_ext_id: string;
8189
+ reply: boolean;
8190
+ };
8144
8191
  };
8145
8192
  } | undefined;
8146
8193
  config_ext_id?: string | null | undefined;
@@ -10714,4 +10761,4 @@ declare namespace identity {
10714
10761
  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 };
10715
10762
  }
10716
10763
 
10717
- export { type ListFactsOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DEFAULT_AI_USD_PER_GBP as D, DOC_TERMINAL_STATUSES as E, type DecryptedDmNotification as F, type DeferredInterjectionEvent as G, type DmAttachmentFile as H, type DmAttachmentInput as I, type DmCryptoContext as J, type DocNameMap as K, type DocumentAutomationAction as L, type DocumentListFields as M, type DocumentListOrder as N, type DocumentSelector as O, type DocumentWaiter as P, type DocumentWaiterOptions as Q, type FactResponse as R, type FactSearchRequest as S, type FactSearchResponse as T, type FormattedWsMessage as U, type IdentityErrorCode as V, type IdentityPurchase as W, type IdentityState as X, type IdentityStatus as Y, type LinkedRun as Z, type ListAllOptions as _, type ActivityResponse as a, type TagKindField as a$, type ListPaginatedOptions as a0, type MailAttachment as a1, type MessageLevel as a2, type MessageMetadataPayload$1 as a3, type MessageQueuedEvent as a4, type OutputTokensDetails as a5, type ParsedSlashCommand as a6, type PendingAuthResponse as a7, PlanStepsError as a8, type PlanWorkRequest as a9, type RunStep as aA, type RunWaitingOn as aB, type SSEEvent as aC, type SSEStreamCallbacks as aD, type SSEStreamResult as aE, type SSEStreamStartData as aF, STEP_FIELD_OPTION_TONES as aG, SUPPORTED_EXTENSIONS as aH, type SendBack as aI, type SkillSummary as aJ, type SkippedFile as aK, type StepActionRequest as aL, type StepActivityEvent as aM, type StepAssignee as aN, type StepField as aO, type StepFieldOption as aP, type StepFieldOptionTone as aQ, type StepKind as aR, type StepPhase as aS, type StepSignal as aT, type StepSignalWhen as aU, type StepState as aV, type StepStatus as aW, type SubmitBackgroundQueryOptions as aX, type TagChange as aY, type TagFieldDefinition as aZ, type TagKind as a_, type ProbeAnswerEvent as aa, type ProjectBudget as ab, type ProjectConversationUsageResponse as ac, type ProjectDetails as ad, type ProjectEventKind as ae, type ProjectEventResponse as af, type ProjectInvoicesResponse as ag, type ProjectResponse as ah, type ProjectUpdateRequest as ai, type ProjectUsageResponse as aj, type QueryOptions as ak, type RaisedSignal as al, type ReconnectOptions as am, type ReconnectableWsConnection as an, type ResolvedCitation as ao, type ResolvedRecipient as ap, type ResponseCompletedEvent as aq, type ResponseContentPartAddedEvent as ar, type ResponseCreatedEvent as as, type ResponseFailedEvent as at, type ResponseOutputItemAddedEvent as au, type ResponseOutputItemDoneEvent as av, type ResponseOutputTextDeltaEvent as aw, type ResponseOutputTextDoneEvent as ax, type ResponseUsage as ay, type RunProgress as az, type AgentControlStateEvent as b, getErrorCode as b$, type TagKindSchema as b0, type TagLinks as b1, type TagListQuery as b2, type TagResponse as b3, type TaskPlan as b4, type TaskPlanStep as b5, type TokenBudgetContext as b6, type UpdateConversationRequest as b7, type UpdateFactRequest as b8, type UpdateWorkflowRequest as b9, buildRetrievalFullContextTool as bA, buildRetrievalTocTool as bB, connectWebSocket as bC, connectWithReconnect as bD, consumeSSEStream as bE, contacts as bF, conversations as bG, countCitations as bH, createAuthenticatedClient as bI, createDocumentWaiter as bJ, dm as bK, doctags as bL, documents as bM, facts as bN, files as bO, filterSkills as bP, formatAgentStepLabel as bQ, formatFileSize as bR, formatGbp as bS, formatGbpPerMillionTokens as bT, formatItemLabel as bU, formatStreamSummary as bV, formatUserName as bW, formatWorkspaceChoices as bX, formatWsMessage as bY, generateEncryptedWorkspaceKey as bZ, generateNewWorkspaceKey as b_, type UploadBatchResult as ba, type UploadDirectOptions as bb, type UploadDirectResult as bc, type UploadOptions as bd, type UploadResult as be, type UsageBreakdown as bf, type UserDailyUsageResponse as bg, type UserInfo as bh, type UserInputRequestEvent as bi, type UserMessageEvent as bj, WebSocketAuthError as bk, type WorkStatus as bl, type WorkflowAuthMode as bm, type WorkflowResponse as bn, type WorkflowRunHistoryResponse as bo, type WorkflowRunResponse as bp, type WorkspaceContext as bq, type WsConnection as br, account as bs, agentconfig as bt, agents as bu, assistant as bv, authenticatedFetch as bw, buildDocNameMap as bx, buildFactsContextTool as by, buildRetrievalChunkTool as bz, type AgentStepDeltaEvent as c, getErrorMessage as c0, getRawWorkspaceKey as c1, health as c2, identity as c3, identityErrorCode as c4, mail as c5, parseSSEEvents as c6, parseSlashCommand as c7, parseSlashTokenInProgress as c8, performPasswordLogin as c9, performSigningKeyLogin as ca, performSsoDeviceFlowLogin as cb, profile as cc, projects as cd, requireData as ce, requireOk as cf, resolveAuth as cg, resolveCitations as ch, resolveWorkspace as ci, responses as cj, selectWorkspace as ck, selectWorkspaceById as cl, sessions as cm, settings as cn, signatureRequests as co, streamSSE as cp, stripCitationMarkdown as cq, summarizeCitations as cr, tags as cs, usdToGbp as ct, work as cu, workflowSteps as cv, workflows as cw, workspaces as cx, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
10764
+ export { type ListFactsOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DEFAULT_AI_USD_PER_GBP as D, DOC_TERMINAL_STATUSES as E, type DecryptedDmNotification as F, type DeferredInterjectionEvent as G, type DmAttachmentFile as H, type DmAttachmentInput as I, type DmCryptoContext as J, type DocNameMap as K, type DocumentAutomationAction as L, type DocumentListFields as M, type DocumentListOrder as N, type DocumentSelector as O, type DocumentWaiter as P, type DocumentWaiterOptions as Q, type FactResponse as R, type FactSearchRequest as S, type FactSearchResponse as T, type FormattedWsMessage as U, type IdentityErrorCode as V, type IdentityPurchase as W, type IdentityState as X, type IdentityStatus as Y, type LinkedRun as Z, type ListAllOptions as _, type ActivityResponse as a, type TagKind as a$, type ListPaginatedOptions as a0, type MailAttachment as a1, type MailDraftSSEEvent as a2, type MessageLevel as a3, type MessageMetadataPayload$1 as a4, type MessageQueuedEvent as a5, type OutputTokensDetails as a6, type ParsedSlashCommand as a7, type PendingAuthResponse as a8, PlanStepsError as a9, type RunProgress as aA, type RunStep as aB, type RunWaitingOn as aC, type SSEEvent as aD, type SSEStreamCallbacks as aE, type SSEStreamResult as aF, type SSEStreamStartData as aG, STEP_FIELD_OPTION_TONES as aH, SUPPORTED_EXTENSIONS as aI, type SendBack as aJ, type SkillSummary as aK, type SkippedFile as aL, type StepActionRequest as aM, type StepActivityEvent as aN, type StepAssignee as aO, type StepField as aP, type StepFieldOption as aQ, type StepFieldOptionTone as aR, type StepKind as aS, type StepPhase as aT, type StepSignal as aU, type StepSignalWhen as aV, type StepState as aW, type StepStatus as aX, type SubmitBackgroundQueryOptions as aY, type TagChange as aZ, type TagFieldDefinition as a_, type PlanWorkRequest as aa, type ProbeAnswerEvent as ab, type ProjectBudget as ac, type ProjectConversationUsageResponse as ad, type ProjectDetails as ae, type ProjectEventKind as af, type ProjectEventResponse as ag, type ProjectInvoicesResponse as ah, type ProjectResponse as ai, type ProjectUpdateRequest as aj, type ProjectUsageResponse as ak, type QueryOptions as al, type RaisedSignal as am, type ReconnectOptions as an, type ReconnectableWsConnection as ao, type ResolvedCitation as ap, type ResolvedRecipient as aq, type ResponseCompletedEvent as ar, type ResponseContentPartAddedEvent as as, type ResponseCreatedEvent as at, type ResponseFailedEvent as au, type ResponseOutputItemAddedEvent as av, type ResponseOutputItemDoneEvent as aw, type ResponseOutputTextDeltaEvent as ax, type ResponseOutputTextDoneEvent as ay, type ResponseUsage as az, type AgentControlStateEvent as b, generateNewWorkspaceKey as b$, type TagKindField as b0, type TagKindSchema as b1, type TagLinks as b2, type TagListQuery as b3, type TagResponse as b4, type TaskPlan as b5, type TaskPlanStep as b6, type TokenBudgetContext as b7, type UpdateConversationRequest as b8, type UpdateFactRequest as b9, buildRetrievalChunkTool as bA, buildRetrievalFullContextTool as bB, buildRetrievalTocTool as bC, connectWebSocket as bD, connectWithReconnect as bE, consumeSSEStream as bF, contacts as bG, conversations as bH, countCitations as bI, createAuthenticatedClient as bJ, createDocumentWaiter as bK, dm as bL, doctags as bM, documents as bN, facts as bO, files as bP, filterSkills as bQ, formatAgentStepLabel as bR, formatFileSize as bS, formatGbp as bT, formatGbpPerMillionTokens as bU, formatItemLabel as bV, formatStreamSummary as bW, formatUserName as bX, formatWorkspaceChoices as bY, formatWsMessage as bZ, generateEncryptedWorkspaceKey as b_, type UpdateWorkflowRequest as ba, type UploadBatchResult as bb, type UploadDirectOptions as bc, type UploadDirectResult as bd, type UploadOptions as be, type UploadResult as bf, type UsageBreakdown as bg, type UserDailyUsageResponse as bh, type UserInfo as bi, type UserInputRequestEvent as bj, type UserMessageEvent as bk, WebSocketAuthError as bl, type WorkStatus as bm, type WorkflowAuthMode as bn, type WorkflowResponse as bo, type WorkflowRunHistoryResponse as bp, type WorkflowRunResponse as bq, type WorkspaceContext as br, type WsConnection as bs, account as bt, agentconfig as bu, agents as bv, assistant as bw, authenticatedFetch as bx, buildDocNameMap as by, buildFactsContextTool as bz, type AgentStepDeltaEvent as c, getErrorCode as c0, getErrorMessage as c1, getRawWorkspaceKey as c2, health as c3, identity as c4, identityErrorCode as c5, mail as c6, parseSSEEvents as c7, parseSlashCommand as c8, parseSlashTokenInProgress as c9, performPasswordLogin as ca, performSigningKeyLogin as cb, performSsoDeviceFlowLogin as cc, profile as cd, projects as ce, requireData as cf, requireOk as cg, resolveAuth as ch, resolveCitations as ci, resolveWorkspace as cj, responses as ck, selectWorkspace as cl, selectWorkspaceById as cm, sessions as cn, settings as co, signatureRequests as cp, streamSSE as cq, stripCitationMarkdown as cr, summarizeCitations as cs, tags as ct, usdToGbp as cu, work as cv, workflowSteps as cw, workflows as cx, workspaces as cy, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
@@ -326,6 +326,7 @@ type ProbeAnswerEvent = components['schemas']['ProbeAnswerEvent'];
326
326
  type DeferredInterjectionEvent = components['schemas']['DeferredInterjectionEvent'];
327
327
  type AgentControlStateEvent = components['schemas']['AgentControlStateEvent'];
328
328
  type ArtifactEvent = components['schemas']['ArtifactEvent'];
329
+ type MailDraftSSEEvent = components['schemas']['MailDraftSSEEvent'];
329
330
  type UserMessageEvent = components['schemas']['UserMessageEvent'];
330
331
  type MessageQueuedEvent = components['schemas']['MessageQueuedEvent'];
331
332
  type MessageMetadataPayload$1 = components['schemas']['MessageMetadataPayload'];
@@ -458,6 +459,8 @@ interface SSEStreamCallbacks {
458
459
  /** Server-confirmed run-control state (paused / running). */
459
460
  onAgentControlState?: (data: AgentControlStateEvent) => void;
460
461
  onArtifact?: (data: ArtifactEvent) => void;
462
+ /** The agent saved an email draft in the person's mailbox: open it beside the chat. */
463
+ onMailDraft?: (data: MailDraftSSEEvent) => void;
461
464
  onElapsedTime?: (t: number) => void;
462
465
  onUsage?: (usage: ResponseUsage) => void;
463
466
  /** Final per-turn token/£ budget snapshot from response.completed. */
@@ -2314,6 +2317,13 @@ declare function getConversationThreads(arbi: ArbiClient, conversationId: string
2314
2317
  name: "workflow_step";
2315
2318
  description: string;
2316
2319
  workflow_step: string;
2320
+ } | {
2321
+ name: "mail_context";
2322
+ description: string;
2323
+ tool_args: {
2324
+ mail_ext_id: string;
2325
+ reply: boolean;
2326
+ };
2317
2327
  };
2318
2328
  } | undefined;
2319
2329
  config_ext_id?: string | null | undefined;
@@ -2503,6 +2513,13 @@ declare function getMessage$1(arbi: ArbiClient, messageId: string): Promise<{
2503
2513
  name: "workflow_step";
2504
2514
  description: string;
2505
2515
  workflow_step: string;
2516
+ } | {
2517
+ name: "mail_context";
2518
+ description: string;
2519
+ tool_args: {
2520
+ mail_ext_id: string;
2521
+ reply: boolean;
2522
+ };
2506
2523
  };
2507
2524
  } | undefined;
2508
2525
  config_ext_id?: string | null | undefined;
@@ -2699,6 +2716,13 @@ declare function postConversationMessage(arbi: ArbiClient, body: PostMessageRequ
2699
2716
  name: "workflow_step";
2700
2717
  description: string;
2701
2718
  workflow_step: string;
2719
+ } | {
2720
+ name: "mail_context";
2721
+ description: string;
2722
+ tool_args: {
2723
+ mail_ext_id: string;
2724
+ reply: boolean;
2725
+ };
2702
2726
  };
2703
2727
  } | undefined;
2704
2728
  config_ext_id?: string | null | undefined;
@@ -5560,6 +5584,8 @@ interface QueryOptions {
5560
5584
  onUserInputRequest?: (data: UserInputRequestEvent) => void;
5561
5585
  /** Called when an artifact event is received */
5562
5586
  onArtifact?: (data: ArtifactEvent) => void;
5587
+ /** Called when the agent saved an email draft in the person's mailbox */
5588
+ onMailDraft?: (data: MailDraftSSEEvent) => void;
5563
5589
  /** Called when backend elapsed time is received */
5564
5590
  onElapsedTime?: (t: number) => void;
5565
5591
  /** Called when stream completes */
@@ -7356,6 +7382,13 @@ declare class Arbi {
7356
7382
  name: "workflow_step";
7357
7383
  description: string;
7358
7384
  workflow_step: string;
7385
+ } | {
7386
+ name: "mail_context";
7387
+ description: string;
7388
+ tool_args: {
7389
+ mail_ext_id: string;
7390
+ reply: boolean;
7391
+ };
7359
7392
  };
7360
7393
  } | undefined;
7361
7394
  config_ext_id?: string | null | undefined;
@@ -7954,6 +7987,13 @@ declare class Arbi {
7954
7987
  name: "workflow_step";
7955
7988
  description: string;
7956
7989
  workflow_step: string;
7990
+ } | {
7991
+ name: "mail_context";
7992
+ description: string;
7993
+ tool_args: {
7994
+ mail_ext_id: string;
7995
+ reply: boolean;
7996
+ };
7957
7997
  };
7958
7998
  } | undefined;
7959
7999
  config_ext_id?: string | null | undefined;
@@ -8141,6 +8181,13 @@ declare class Arbi {
8141
8181
  name: "workflow_step";
8142
8182
  description: string;
8143
8183
  workflow_step: string;
8184
+ } | {
8185
+ name: "mail_context";
8186
+ description: string;
8187
+ tool_args: {
8188
+ mail_ext_id: string;
8189
+ reply: boolean;
8190
+ };
8144
8191
  };
8145
8192
  } | undefined;
8146
8193
  config_ext_id?: string | null | undefined;
@@ -10714,4 +10761,4 @@ declare namespace identity {
10714
10761
  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 };
10715
10762
  }
10716
10763
 
10717
- export { type ListFactsOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DEFAULT_AI_USD_PER_GBP as D, DOC_TERMINAL_STATUSES as E, type DecryptedDmNotification as F, type DeferredInterjectionEvent as G, type DmAttachmentFile as H, type DmAttachmentInput as I, type DmCryptoContext as J, type DocNameMap as K, type DocumentAutomationAction as L, type DocumentListFields as M, type DocumentListOrder as N, type DocumentSelector as O, type DocumentWaiter as P, type DocumentWaiterOptions as Q, type FactResponse as R, type FactSearchRequest as S, type FactSearchResponse as T, type FormattedWsMessage as U, type IdentityErrorCode as V, type IdentityPurchase as W, type IdentityState as X, type IdentityStatus as Y, type LinkedRun as Z, type ListAllOptions as _, type ActivityResponse as a, type TagKindField as a$, type ListPaginatedOptions as a0, type MailAttachment as a1, type MessageLevel as a2, type MessageMetadataPayload$1 as a3, type MessageQueuedEvent as a4, type OutputTokensDetails as a5, type ParsedSlashCommand as a6, type PendingAuthResponse as a7, PlanStepsError as a8, type PlanWorkRequest as a9, type RunStep as aA, type RunWaitingOn as aB, type SSEEvent as aC, type SSEStreamCallbacks as aD, type SSEStreamResult as aE, type SSEStreamStartData as aF, STEP_FIELD_OPTION_TONES as aG, SUPPORTED_EXTENSIONS as aH, type SendBack as aI, type SkillSummary as aJ, type SkippedFile as aK, type StepActionRequest as aL, type StepActivityEvent as aM, type StepAssignee as aN, type StepField as aO, type StepFieldOption as aP, type StepFieldOptionTone as aQ, type StepKind as aR, type StepPhase as aS, type StepSignal as aT, type StepSignalWhen as aU, type StepState as aV, type StepStatus as aW, type SubmitBackgroundQueryOptions as aX, type TagChange as aY, type TagFieldDefinition as aZ, type TagKind as a_, type ProbeAnswerEvent as aa, type ProjectBudget as ab, type ProjectConversationUsageResponse as ac, type ProjectDetails as ad, type ProjectEventKind as ae, type ProjectEventResponse as af, type ProjectInvoicesResponse as ag, type ProjectResponse as ah, type ProjectUpdateRequest as ai, type ProjectUsageResponse as aj, type QueryOptions as ak, type RaisedSignal as al, type ReconnectOptions as am, type ReconnectableWsConnection as an, type ResolvedCitation as ao, type ResolvedRecipient as ap, type ResponseCompletedEvent as aq, type ResponseContentPartAddedEvent as ar, type ResponseCreatedEvent as as, type ResponseFailedEvent as at, type ResponseOutputItemAddedEvent as au, type ResponseOutputItemDoneEvent as av, type ResponseOutputTextDeltaEvent as aw, type ResponseOutputTextDoneEvent as ax, type ResponseUsage as ay, type RunProgress as az, type AgentControlStateEvent as b, getErrorCode as b$, type TagKindSchema as b0, type TagLinks as b1, type TagListQuery as b2, type TagResponse as b3, type TaskPlan as b4, type TaskPlanStep as b5, type TokenBudgetContext as b6, type UpdateConversationRequest as b7, type UpdateFactRequest as b8, type UpdateWorkflowRequest as b9, buildRetrievalFullContextTool as bA, buildRetrievalTocTool as bB, connectWebSocket as bC, connectWithReconnect as bD, consumeSSEStream as bE, contacts as bF, conversations as bG, countCitations as bH, createAuthenticatedClient as bI, createDocumentWaiter as bJ, dm as bK, doctags as bL, documents as bM, facts as bN, files as bO, filterSkills as bP, formatAgentStepLabel as bQ, formatFileSize as bR, formatGbp as bS, formatGbpPerMillionTokens as bT, formatItemLabel as bU, formatStreamSummary as bV, formatUserName as bW, formatWorkspaceChoices as bX, formatWsMessage as bY, generateEncryptedWorkspaceKey as bZ, generateNewWorkspaceKey as b_, type UploadBatchResult as ba, type UploadDirectOptions as bb, type UploadDirectResult as bc, type UploadOptions as bd, type UploadResult as be, type UsageBreakdown as bf, type UserDailyUsageResponse as bg, type UserInfo as bh, type UserInputRequestEvent as bi, type UserMessageEvent as bj, WebSocketAuthError as bk, type WorkStatus as bl, type WorkflowAuthMode as bm, type WorkflowResponse as bn, type WorkflowRunHistoryResponse as bo, type WorkflowRunResponse as bp, type WorkspaceContext as bq, type WsConnection as br, account as bs, agentconfig as bt, agents as bu, assistant as bv, authenticatedFetch as bw, buildDocNameMap as bx, buildFactsContextTool as by, buildRetrievalChunkTool as bz, type AgentStepDeltaEvent as c, getErrorMessage as c0, getRawWorkspaceKey as c1, health as c2, identity as c3, identityErrorCode as c4, mail as c5, parseSSEEvents as c6, parseSlashCommand as c7, parseSlashTokenInProgress as c8, performPasswordLogin as c9, performSigningKeyLogin as ca, performSsoDeviceFlowLogin as cb, profile as cc, projects as cd, requireData as ce, requireOk as cf, resolveAuth as cg, resolveCitations as ch, resolveWorkspace as ci, responses as cj, selectWorkspace as ck, selectWorkspaceById as cl, sessions as cm, settings as cn, signatureRequests as co, streamSSE as cp, stripCitationMarkdown as cq, summarizeCitations as cr, tags as cs, usdToGbp as ct, work as cu, workflowSteps as cv, workflows as cw, workspaces as cx, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
10764
+ export { type ListFactsOptions as $, type ActivityKind as A, type CreateWorkflowRequest as B, type ChatSession as C, DEFAULT_AI_USD_PER_GBP as D, DOC_TERMINAL_STATUSES as E, type DecryptedDmNotification as F, type DeferredInterjectionEvent as G, type DmAttachmentFile as H, type DmAttachmentInput as I, type DmCryptoContext as J, type DocNameMap as K, type DocumentAutomationAction as L, type DocumentListFields as M, type DocumentListOrder as N, type DocumentSelector as O, type DocumentWaiter as P, type DocumentWaiterOptions as Q, type FactResponse as R, type FactSearchRequest as S, type FactSearchResponse as T, type FormattedWsMessage as U, type IdentityErrorCode as V, type IdentityPurchase as W, type IdentityState as X, type IdentityStatus as Y, type LinkedRun as Z, type ListAllOptions as _, type ActivityResponse as a, type TagKind as a$, type ListPaginatedOptions as a0, type MailAttachment as a1, type MailDraftSSEEvent as a2, type MessageLevel as a3, type MessageMetadataPayload$1 as a4, type MessageQueuedEvent as a5, type OutputTokensDetails as a6, type ParsedSlashCommand as a7, type PendingAuthResponse as a8, PlanStepsError as a9, type RunProgress as aA, type RunStep as aB, type RunWaitingOn as aC, type SSEEvent as aD, type SSEStreamCallbacks as aE, type SSEStreamResult as aF, type SSEStreamStartData as aG, STEP_FIELD_OPTION_TONES as aH, SUPPORTED_EXTENSIONS as aI, type SendBack as aJ, type SkillSummary as aK, type SkippedFile as aL, type StepActionRequest as aM, type StepActivityEvent as aN, type StepAssignee as aO, type StepField as aP, type StepFieldOption as aQ, type StepFieldOptionTone as aR, type StepKind as aS, type StepPhase as aT, type StepSignal as aU, type StepSignalWhen as aV, type StepState as aW, type StepStatus as aX, type SubmitBackgroundQueryOptions as aY, type TagChange as aZ, type TagFieldDefinition as a_, type PlanWorkRequest as aa, type ProbeAnswerEvent as ab, type ProjectBudget as ac, type ProjectConversationUsageResponse as ad, type ProjectDetails as ae, type ProjectEventKind as af, type ProjectEventResponse as ag, type ProjectInvoicesResponse as ah, type ProjectResponse as ai, type ProjectUpdateRequest as aj, type ProjectUsageResponse as ak, type QueryOptions as al, type RaisedSignal as am, type ReconnectOptions as an, type ReconnectableWsConnection as ao, type ResolvedCitation as ap, type ResolvedRecipient as aq, type ResponseCompletedEvent as ar, type ResponseContentPartAddedEvent as as, type ResponseCreatedEvent as at, type ResponseFailedEvent as au, type ResponseOutputItemAddedEvent as av, type ResponseOutputItemDoneEvent as aw, type ResponseOutputTextDeltaEvent as ax, type ResponseOutputTextDoneEvent as ay, type ResponseUsage as az, type AgentControlStateEvent as b, generateNewWorkspaceKey as b$, type TagKindField as b0, type TagKindSchema as b1, type TagLinks as b2, type TagListQuery as b3, type TagResponse as b4, type TaskPlan as b5, type TaskPlanStep as b6, type TokenBudgetContext as b7, type UpdateConversationRequest as b8, type UpdateFactRequest as b9, buildRetrievalChunkTool as bA, buildRetrievalFullContextTool as bB, buildRetrievalTocTool as bC, connectWebSocket as bD, connectWithReconnect as bE, consumeSSEStream as bF, contacts as bG, conversations as bH, countCitations as bI, createAuthenticatedClient as bJ, createDocumentWaiter as bK, dm as bL, doctags as bM, documents as bN, facts as bO, files as bP, filterSkills as bQ, formatAgentStepLabel as bR, formatFileSize as bS, formatGbp as bT, formatGbpPerMillionTokens as bU, formatItemLabel as bV, formatStreamSummary as bW, formatUserName as bX, formatWorkspaceChoices as bY, formatWsMessage as bZ, generateEncryptedWorkspaceKey as b_, type UpdateWorkflowRequest as ba, type UploadBatchResult as bb, type UploadDirectOptions as bc, type UploadDirectResult as bd, type UploadOptions as be, type UploadResult as bf, type UsageBreakdown as bg, type UserDailyUsageResponse as bh, type UserInfo as bi, type UserInputRequestEvent as bj, type UserMessageEvent as bk, WebSocketAuthError as bl, type WorkStatus as bm, type WorkflowAuthMode as bn, type WorkflowResponse as bo, type WorkflowRunHistoryResponse as bp, type WorkflowRunResponse as bq, type WorkspaceContext as br, type WsConnection as bs, account as bt, agentconfig as bu, agents as bv, assistant as bw, authenticatedFetch as bx, buildDocNameMap as by, buildFactsContextTool as bz, type AgentStepDeltaEvent as c, getErrorCode as c0, getErrorMessage as c1, getRawWorkspaceKey as c2, health as c3, identity as c4, identityErrorCode as c5, mail as c6, parseSSEEvents as c7, parseSlashCommand as c8, parseSlashTokenInProgress as c9, performPasswordLogin as ca, performSigningKeyLogin as cb, performSsoDeviceFlowLogin as cc, profile as cd, projects as ce, requireData as cf, requireOk as cg, resolveAuth as ch, resolveCitations as ci, resolveWorkspace as cj, responses as ck, selectWorkspace as cl, selectWorkspaceById as cm, sessions as cn, settings as co, signatureRequests as cp, streamSSE as cq, stripCitationMarkdown as cr, summarizeCitations as cs, tags as ct, usdToGbp as cu, work as cv, workflowSteps as cw, workflows as cx, workspaces as cy, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type ConversationUsageResponse as w, type CreateFactRequest as x, type CreateFactsRequest as y, type CreateWorkRequest as z };
package/dist/browser.cjs CHANGED
@@ -4090,6 +4090,10 @@ async function streamSSE(response, callbacks = {}) {
4090
4090
  artifacts.push(data);
4091
4091
  callbacks.onArtifact?.(data);
4092
4092
  },
4093
+ "arbi.mail_draft": (raw) => {
4094
+ const data = JSON.parse(raw);
4095
+ callbacks.onMailDraft?.(data);
4096
+ },
4093
4097
  "arbi.error": (raw) => {
4094
4098
  const data = JSON.parse(raw);
4095
4099
  const message = typeof data?.message === "string" && data.message.length > 0 ? data.message : data.code;
@@ -8118,6 +8122,7 @@ var Arbi = class {
8118
8122
  onMetadata: options.onMetadata,
8119
8123
  onUserInputRequest: options.onUserInputRequest,
8120
8124
  onArtifact: options.onArtifact,
8125
+ onMailDraft: options.onMailDraft,
8121
8126
  onElapsedTime: options.onElapsedTime,
8122
8127
  onComplete: options.onComplete
8123
8128
  };