@arbidocs/sdk 0.4.105 → 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.
- package/dist/{browser-CxWTmtEq.d.cts → browser-yXZhW9gn.d.cts} +48 -1
- package/dist/{browser-CxWTmtEq.d.ts → browser-yXZhW9gn.d.ts} +48 -1
- package/dist/browser.cjs +5 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +5 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession,
|
|
2
|
-
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, w as ConversationUsageResponse, z as CreateWorkRequest, B as CreateWorkflowRequest, D as DEFAULT_AI_USD_PER_GBP, E as DOC_TERMINAL_STATUSES, F as DecryptedDmNotification, H as DmAttachmentFile, I as DmAttachmentInput, K as DocNameMap, L as DocumentAutomationAction, M as DocumentListFields, N as DocumentListOrder, O as DocumentSelector, P as DocumentWaiter, Q as DocumentWaiterOptions, U as FormattedWsMessage, V as IdentityErrorCode, W as IdentityPurchase, X as IdentityState, Y as IdentityStatus, Z as LinkedRun, _ as ListAllOptions, a0 as ListPaginatedOptions, a2 as
|
|
1
|
+
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, aL as SkippedFile, bf as UploadResult, m as AuthHeaders, bb as UploadBatchResult, be as UploadOptions, bc as UploadDirectOptions, bd as UploadDirectResult, aI as SUPPORTED_EXTENSIONS, a1 as MailAttachment, J as DmCryptoContext } from './browser-yXZhW9gn.cjs';
|
|
2
|
+
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, w as ConversationUsageResponse, z as CreateWorkRequest, B as CreateWorkflowRequest, D as DEFAULT_AI_USD_PER_GBP, E as DOC_TERMINAL_STATUSES, F as DecryptedDmNotification, H as DmAttachmentFile, I as DmAttachmentInput, K as DocNameMap, L as DocumentAutomationAction, M as DocumentListFields, N as DocumentListOrder, O as DocumentSelector, P as DocumentWaiter, Q as DocumentWaiterOptions, U as FormattedWsMessage, V as IdentityErrorCode, W as IdentityPurchase, X as IdentityState, Y as IdentityStatus, Z as LinkedRun, _ as ListAllOptions, a0 as ListPaginatedOptions, a2 as MailDraftSSEEvent, a3 as MessageLevel, a4 as MessageMetadataPayload, a5 as MessageQueuedEvent, a6 as OutputTokensDetails, a7 as ParsedSlashCommand, a8 as PendingAuthResponse, a9 as PlanStepsError, aa as PlanWorkRequest, ac as ProjectBudget, ad as ProjectConversationUsageResponse, ae as ProjectDetails, af as ProjectEventKind, ag as ProjectEventResponse, ah as ProjectInvoicesResponse, ai as ProjectResponse, aj as ProjectUpdateRequest, ak as ProjectUsageResponse, al as QueryOptions, am as RaisedSignal, an as ReconnectOptions, ao as ReconnectableWsConnection, ap as ResolvedCitation, aq as ResolvedRecipient, ar as ResponseCompletedEvent, as as ResponseContentPartAddedEvent, at as ResponseCreatedEvent, au as ResponseFailedEvent, av as ResponseOutputItemAddedEvent, aw as ResponseOutputItemDoneEvent, ax as ResponseOutputTextDeltaEvent, ay as ResponseOutputTextDoneEvent, az as ResponseUsage, aA as RunProgress, aB as RunStep, aC as RunWaitingOn, aD as SSEEvent, aE as SSEStreamCallbacks, aF as SSEStreamResult, aG as SSEStreamStartData, aH as STEP_FIELD_OPTION_TONES, aJ as SendBack, aK as SkillSummary, aM as StepActionRequest, aN as StepActivityEvent, aO as StepAssignee, aP as StepField, aQ as StepFieldOption, aR as StepFieldOptionTone, aS as StepKind, aT as StepPhase, aU as StepSignal, aV as StepSignalWhen, aW as StepState, aX as StepStatus, aY as SubmitBackgroundQueryOptions, aZ as TagChange, a_ as TagFieldDefinition, a$ as TagKind, b0 as TagKindField, b1 as TagKindSchema, b2 as TagLinks, b3 as TagListQuery, b4 as TagResponse, b5 as TaskPlan, b6 as TaskPlanStep, b7 as TokenBudgetContext, b8 as UpdateConversationRequest, ba as UpdateWorkflowRequest, bg as UsageBreakdown, bh as UserDailyUsageResponse, bi as UserInfo, bj as UserInputRequestEvent, bk as UserMessageEvent, bl as WebSocketAuthError, bm as WorkStatus, bn as WorkflowAuthMode, bo as WorkflowResponse, bp as WorkflowRunHistoryResponse, bq as WorkflowRunResponse, br as WorkspaceContext, bs as WsConnection, bt as account, bu as agentconfig, bv as agents, bw as assistant, bx as authenticatedFetch, by as buildDocNameMap, bz as buildFactsContextTool, bA as buildRetrievalChunkTool, bB as buildRetrievalFullContextTool, bC as buildRetrievalTocTool, bD as connectWebSocket, bE as connectWithReconnect, bF as consumeSSEStream, bG as contacts, bH as conversations, bI as countCitations, bJ as createAuthenticatedClient, bK as createDocumentWaiter, bL as dm, bM as doctags, bN as documents, bO as facts, bP as files, bQ as filterSkills, bR as formatAgentStepLabel, bS as formatFileSize, bT as formatGbp, bU as formatGbpPerMillionTokens, bV as formatItemLabel, bW as formatStreamSummary, bX as formatUserName, bY as formatWorkspaceChoices, bZ as formatWsMessage, b_ as generateEncryptedWorkspaceKey, b$ as generateNewWorkspaceKey, c0 as getErrorCode, c1 as getErrorMessage, c2 as getRawWorkspaceKey, c3 as health, c5 as identityErrorCode, c4 as identityVerification, c6 as mail, c7 as parseSSEEvents, c8 as parseSlashCommand, c9 as parseSlashTokenInProgress, ca as performPasswordLogin, cb as performSigningKeyLogin, cc as performSsoDeviceFlowLogin, cd as profile, ce as projects, cf as requireData, cg as requireOk, ch as resolveAuth, ci as resolveCitations, cj as resolveWorkspace, ck as responses, cl as selectWorkspace, cm as selectWorkspaceById, cn as sessions, co as settings, cp as signatureRequests, cq as streamSSE, cr as stripCitationMarkdown, cs as summarizeCitations, ct as tags, cu as usdToGbp, cv as work, cw as workflowSteps, cx as workflows, cy as workspaces } from './browser-yXZhW9gn.cjs';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession,
|
|
2
|
-
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, w as ConversationUsageResponse, z as CreateWorkRequest, B as CreateWorkflowRequest, D as DEFAULT_AI_USD_PER_GBP, E as DOC_TERMINAL_STATUSES, F as DecryptedDmNotification, H as DmAttachmentFile, I as DmAttachmentInput, K as DocNameMap, L as DocumentAutomationAction, M as DocumentListFields, N as DocumentListOrder, O as DocumentSelector, P as DocumentWaiter, Q as DocumentWaiterOptions, U as FormattedWsMessage, V as IdentityErrorCode, W as IdentityPurchase, X as IdentityState, Y as IdentityStatus, Z as LinkedRun, _ as ListAllOptions, a0 as ListPaginatedOptions, a2 as
|
|
1
|
+
import { t as ConfigStore, q as CliConfig, r as CliCredentials, C as ChatSession, aL as SkippedFile, bf as UploadResult, m as AuthHeaders, bb as UploadBatchResult, be as UploadOptions, bc as UploadDirectOptions, bd as UploadDirectResult, aI as SUPPORTED_EXTENSIONS, a1 as MailAttachment, J as DmCryptoContext } from './browser-yXZhW9gn.js';
|
|
2
|
+
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, p as CitationSummary, s as CommandDescriptor, u as ConnectOptions, v as ConversationResponse, w as ConversationUsageResponse, z as CreateWorkRequest, B as CreateWorkflowRequest, D as DEFAULT_AI_USD_PER_GBP, E as DOC_TERMINAL_STATUSES, F as DecryptedDmNotification, H as DmAttachmentFile, I as DmAttachmentInput, K as DocNameMap, L as DocumentAutomationAction, M as DocumentListFields, N as DocumentListOrder, O as DocumentSelector, P as DocumentWaiter, Q as DocumentWaiterOptions, U as FormattedWsMessage, V as IdentityErrorCode, W as IdentityPurchase, X as IdentityState, Y as IdentityStatus, Z as LinkedRun, _ as ListAllOptions, a0 as ListPaginatedOptions, a2 as MailDraftSSEEvent, a3 as MessageLevel, a4 as MessageMetadataPayload, a5 as MessageQueuedEvent, a6 as OutputTokensDetails, a7 as ParsedSlashCommand, a8 as PendingAuthResponse, a9 as PlanStepsError, aa as PlanWorkRequest, ac as ProjectBudget, ad as ProjectConversationUsageResponse, ae as ProjectDetails, af as ProjectEventKind, ag as ProjectEventResponse, ah as ProjectInvoicesResponse, ai as ProjectResponse, aj as ProjectUpdateRequest, ak as ProjectUsageResponse, al as QueryOptions, am as RaisedSignal, an as ReconnectOptions, ao as ReconnectableWsConnection, ap as ResolvedCitation, aq as ResolvedRecipient, ar as ResponseCompletedEvent, as as ResponseContentPartAddedEvent, at as ResponseCreatedEvent, au as ResponseFailedEvent, av as ResponseOutputItemAddedEvent, aw as ResponseOutputItemDoneEvent, ax as ResponseOutputTextDeltaEvent, ay as ResponseOutputTextDoneEvent, az as ResponseUsage, aA as RunProgress, aB as RunStep, aC as RunWaitingOn, aD as SSEEvent, aE as SSEStreamCallbacks, aF as SSEStreamResult, aG as SSEStreamStartData, aH as STEP_FIELD_OPTION_TONES, aJ as SendBack, aK as SkillSummary, aM as StepActionRequest, aN as StepActivityEvent, aO as StepAssignee, aP as StepField, aQ as StepFieldOption, aR as StepFieldOptionTone, aS as StepKind, aT as StepPhase, aU as StepSignal, aV as StepSignalWhen, aW as StepState, aX as StepStatus, aY as SubmitBackgroundQueryOptions, aZ as TagChange, a_ as TagFieldDefinition, a$ as TagKind, b0 as TagKindField, b1 as TagKindSchema, b2 as TagLinks, b3 as TagListQuery, b4 as TagResponse, b5 as TaskPlan, b6 as TaskPlanStep, b7 as TokenBudgetContext, b8 as UpdateConversationRequest, ba as UpdateWorkflowRequest, bg as UsageBreakdown, bh as UserDailyUsageResponse, bi as UserInfo, bj as UserInputRequestEvent, bk as UserMessageEvent, bl as WebSocketAuthError, bm as WorkStatus, bn as WorkflowAuthMode, bo as WorkflowResponse, bp as WorkflowRunHistoryResponse, bq as WorkflowRunResponse, br as WorkspaceContext, bs as WsConnection, bt as account, bu as agentconfig, bv as agents, bw as assistant, bx as authenticatedFetch, by as buildDocNameMap, bz as buildFactsContextTool, bA as buildRetrievalChunkTool, bB as buildRetrievalFullContextTool, bC as buildRetrievalTocTool, bD as connectWebSocket, bE as connectWithReconnect, bF as consumeSSEStream, bG as contacts, bH as conversations, bI as countCitations, bJ as createAuthenticatedClient, bK as createDocumentWaiter, bL as dm, bM as doctags, bN as documents, bO as facts, bP as files, bQ as filterSkills, bR as formatAgentStepLabel, bS as formatFileSize, bT as formatGbp, bU as formatGbpPerMillionTokens, bV as formatItemLabel, bW as formatStreamSummary, bX as formatUserName, bY as formatWorkspaceChoices, bZ as formatWsMessage, b_ as generateEncryptedWorkspaceKey, b$ as generateNewWorkspaceKey, c0 as getErrorCode, c1 as getErrorMessage, c2 as getRawWorkspaceKey, c3 as health, c5 as identityErrorCode, c4 as identityVerification, c6 as mail, c7 as parseSSEEvents, c8 as parseSlashCommand, c9 as parseSlashTokenInProgress, ca as performPasswordLogin, cb as performSigningKeyLogin, cc as performSsoDeviceFlowLogin, cd as profile, ce as projects, cf as requireData, cg as requireOk, ch as resolveAuth, ci as resolveCitations, cj as resolveWorkspace, ck as responses, cl as selectWorkspace, cm as selectWorkspaceById, cn as sessions, co as settings, cp as signatureRequests, cq as streamSSE, cr as stripCitationMarkdown, cs as summarizeCitations, ct as tags, cu as usdToGbp, cv as work, cw as workflowSteps, cx as workflows, cy as workspaces } from './browser-yXZhW9gn.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -4483,6 +4483,10 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
4483
4483
|
artifacts.push(data);
|
|
4484
4484
|
callbacks.onArtifact?.(data);
|
|
4485
4485
|
},
|
|
4486
|
+
"arbi.mail_draft": (raw) => {
|
|
4487
|
+
const data = JSON.parse(raw);
|
|
4488
|
+
callbacks.onMailDraft?.(data);
|
|
4489
|
+
},
|
|
4486
4490
|
"arbi.error": (raw) => {
|
|
4487
4491
|
const data = JSON.parse(raw);
|
|
4488
4492
|
const message = typeof data?.message === "string" && data.message.length > 0 ? data.message : data.code;
|
|
@@ -8696,6 +8700,7 @@ var Arbi = class {
|
|
|
8696
8700
|
onMetadata: options.onMetadata,
|
|
8697
8701
|
onUserInputRequest: options.onUserInputRequest,
|
|
8698
8702
|
onArtifact: options.onArtifact,
|
|
8703
|
+
onMailDraft: options.onMailDraft,
|
|
8699
8704
|
onElapsedTime: options.onElapsedTime,
|
|
8700
8705
|
onComplete: options.onComplete
|
|
8701
8706
|
};
|