@arbidocs/sdk 0.5.137 → 0.5.138
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-Do_-BxvU.d.ts → browser-C8VTBlM8.d.ts} +25 -1
- package/dist/{browser-CrLmQm-o.d.cts → browser-uV09Vdrg.d.cts} +25 -1
- package/dist/browser.cjs +19 -1
- 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 +19 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +48 -6
- 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 +48 -6
- package/dist/index.js.map +1 -1
- package/examples/human-review/package.json +1 -1
- package/examples/react-chat/package.json +2 -2
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a8 as ConfigStore, a5 as CliConfig, a6 as CliCredentials, a2 as ChatSession, cG as SkippedFile, dw as UploadResult, x as AuthHeaders, dq as UploadBatchResult, du as UploadOptions, dr as UploadDirectOptions, ds as UploadDirectResult, cu as SUPPORTED_EXTENSIONS, bo as MailAttachment, W as ChatCryptoContext } from './browser-
|
|
2
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AssistantArrival, s as AssistantBrief, t as AssistantBriefInput, v as AttendeeRead, w as AuthContext, y as AuthMode, z as AuthenticatedClient, B as BookingConfirmation, C as BookingPage, D as BookingPageWriteBody, E as BookingRequestBody, F as BridgeTokensOptions, G as CalDavConnectBody, H as CalDavProfile, I as CalendarAccount, J as CalendarAccountKind, K as CalendarCreateBody, L as CalendarEvent, M as CalendarKeys, N as CalendarRead, O as CalendarSettings, P as CalendarSettingsBody, Q as CalendarUpdate, R as CalendarWindow, S as CallApiError, T as Capabilities, U as ChatAttachmentFile, V as ChatAttachmentInput, X as ChatKeyRing, Y as ChatKind, Z as ChatMemberKey, _ as ChatMemberResponse, $ as ChatMessage, a0 as ChatMessageResponse, a1 as ChatResponse, a3 as CitationSummary, a4 as CitationToolSources, a7 as CommandDescriptor, a9 as Configuration, aa as ConfigurationPatch, ab as ConnectOptions, ac as ConnectionModel, ad as ConnectorCatalogEntry, ae as ConnectorFolder, af as ConnectorSyncProgress, ag as ConnectorSyncStatus, ah as ConnectorVendorKey, ai as ConnectorVisibilitySettings, aj as ContextUsage, ak as ConversationResponse, al as ConversationUsageResponse, ao as CreateWorkRequest, ap as CreateWorkflowRequest, aq as DEFAULT_AI_USD_PER_GBP, ar as DOC_TERMINAL_STATUSES, as as DRIVE_SYNC_VENDORS, at as Database, au as DatabaseAggregateRequest, av as DatabaseAggregateResult, aw as DatabaseColumn, ax as DatabaseColumnWrite, ay as DatabaseImportResult, az as DatabaseRow, aA as DatabaseRowPage, aB as DatabaseRowsQuery, aC as DateTimeSpec, aD as DecryptedChat, aE as DecryptedChatMessage, aF as DeploymentHouseTemplate, aG as DiagnoseOptions, aH as DirectModelUsage, aI as DocInfo, aJ as DocInfoMap, aK as DocNameMap, aL as DocumentAutomationAction, aM as DocumentListFields, aN as DocumentListOrder, aO as DocumentSelector, aP as DocumentWaiter, aQ as DocumentWaiterOptions, aR as DriveSyncProgress, aS as DriveSyncSummary, aT as DuplicateContactError, aU as ENTITY_KINDS, aV as EditScope, aW as EntityKind, aX as EventCreateBody, aY as EventPatchBody, aZ as FLAT_TAG_KINDS, b1 as FindTimeParams, b2 as FormattedWsMessage, b3 as FreeBusyEntry, b4 as FullContextSelection, b5 as GOOGLE_VENDORS, b6 as HolidayCountry, b7 as HouseTemplateCandidate, b8 as IMANAGE_VENDORS, b9 as IdentityErrorCode, ba as IdentityPurchase, bb as IdentityState, bc as IdentityStatus, bd as ImportResult, be as InvitationRead, bf as JsonSchemaOutputFormat, bg as LinkedRun, bh as ListAllOptions, bi as ListEventsParams, bk as ListPaginatedOptions, bl as MAILBOX_SYNC_VENDORS, bm as MAX_RETRIEVE_DOC_IDS, bn as MICROSOFT_VENDORS, bp as MessageLevel, bq as ModelConnection, br as OAuthAccountKind, bs as OutputItemDone, bt as OverlayItem, bu as OverlayLayerName, bv as PRESENCE_KINDS, bw as PROMPT_CONTEXT_CHARS, bx as ParsedResponse, by as ParsedSlashCommand, bz as ParsedStructuredResponse, bA as PendingAuthResponse, bB as PersonKey, bC as PersonalConnectionInput, bD as PlanStepsError, bE as PlanWorkRequest, bF as ProductResponse, bG as ProjectAddonKind, bH as ProjectAddonSettingsRequest, bI as ProjectBudget, bJ as ProjectCheckoutRequest, bK as ProjectConversationUsageResponse, bL as ProjectCreateOptions, bM as ProjectDetails, bN as ProjectEventKind, bO as ProjectEventResponse, bP as ProjectInvoicesResponse, bQ as ProjectNextPeriodAddonsRequest, bR as ProjectPlanChangeRequest, bS as ProjectQuoteRequest, bT as ProjectResponse, bU as ProjectUpdateRequest, bV as ProjectUsageResponse, bW as PublicBookingError, bX as PublicBookingPage, bY as QuotaExceeded, bZ as RaisedSignal, b_ as RawResponseEvent, b$ as ReconnectOptions, c0 as ReconnectableWsConnection, c1 as ResolvedCitation, c2 as ResolvedRecipient, c3 as RespondParams, c4 as RespondPartstat, c5 as Response, c6 as ResponseCreateRequest, c7 as ResponseCreateResult, c8 as ResponseHandle, c9 as ResponseSnapshot, ca as ResponseStart, cb as ResponseStartOptions, cc as ResponseStream, cd as ResponseStreamEvent, ce as ResponseTools, cf as RoomCreateBody, cg as RoomQuery, ch as RoomRead, ci as RunProgress, cj as RunStats, ck as RunStep, cl as RunWaitingOn, cm as SHAREPOINT_VENDORS, cn as SSEEvent, co as SSEStreamCallbacks, cp as SSEStreamOutcome, cq as SSEStreamResult, cr as STEP_FIELD_OPTION_TONES, cs as STOP_ID_WAIT_MS, ct as STOP_REPEAT_WINDOW_MS, cv as ScopedTarget, cw as SearchChunk, cx as SecureMailCompose, cy as SecureMailSend, cz as SecureMailSender, cA as SendBack, cB as SetupDiagnostic, cC as SetupReport, cD as ShareRead, cE as ShareRole, cF as SkillSummary, cH as SlackConnectionStatus, cI as StepActionRequest, cJ as StepActivityEvent, cK as StepAssignee, cL as StepDisplay, cM as StepField, cN as StepFieldOption, cO as StepFieldOptionTone, cP as StepKind, cQ as StepPhase, cR as StepSignal, cS as StepSignalWhen, cT as StepState, cU as StepStatus, cV as SubagentBranchRecord, cW as SubagentLaneInfo, cX as SubmitBackgroundQueryOptions, cY as SubscribeParams, cZ as SupportRating, c_ as SupportTicket, c$ as SupportTicketInput, d0 as SyncTriggerResult, d1 as TAG_KINDS, d2 as TAG_NESTING_MAX_DEPTH, d3 as TagChange, d4 as TagFieldDefinition, d5 as TagGroup, d6 as TagKind, d7 as TagKindField, d8 as TagKindSchema, d9 as TagLinks, da as TagListQuery, db as TagNode, dc as TagResponse, dd as TagScope, de as TagTreeRow, df as TaskPlan, dg as TaskPlanStep, dh as TaxQuoteResponse, di as Thread, dj as ThreadsResponse, dk as TimeSuggestion, dl as TurnRequest, dm as UpdateConversationRequest, dp as UpdateWorkflowRequest, dt as UploadDocumentsOptions, dv as UploadProgressListener, dx as UsageBreakdown, dy as UserConnectorEntry, dz as UserDailyUsageResponse, dA as UserInfo, dB as WebSocketAuthError, dC as WeeklyHoursSpec, dD as WorkStatus, dE as WorkflowAuthMode, dF as WorkflowResponse, dG as WorkflowRunHistoryResponse, dH as WorkflowRunResponse, dI as WorkspaceConflict, dJ as WorkspaceContext, dK as WorkspaceOpenResponse, dL as WorkspaceResponse, dM as WsConnection, dN as account, dO as agentconfig, dP as agents, dQ as appendTranscriptionHints, dR as assistant, dS as authenticatedFetch, dT as bookPublicSlot, dU as buildCitationChunkData, dV as buildDocNameMap, dW as buildDocumentTools, dX as buildFactsContextTool, dY as buildRetrievalChunkTool, dZ as buildRetrievalFullContextTool, d_ as buildRetrievalTocTool, d$ as buildTurnRequest, e0 as calendar, e1 as calls, e2 as canTagHaveParent, e3 as cancelPublicBooking, e4 as capabilities, e5 as chats, e6 as composeConfiguration, e7 as composeTools, e8 as computeRunStats, e9 as connectErrorMessage, ea as connectWebSocket, eb as connectWithReconnect, ec as connectors, ed as contacts, ee as continuityPrompt, ef as conversations, eg as countCitations, eh as createAuthenticatedClient, ei as createDocumentWaiter, ej as createIndexAssigner, ek as databases, el as defaultKindForFormat, em as diagnoseSetup, en as doctags, eo as documentTools, ep as documents, eq as estimateDraftTokens, er as extractDocumentIdsFromMessages, es as extractFactIdsFromMessages, et as extractSubagentLanes, eu as facts, ev as files, ew as filterDocumentTags, ex as filterSkills, ey as findLeafForTaskMessage, ez as findMainSiblingLeaf, eA as findReplyTarget, eB as findSubagentRunId, eC as flattenTagTree, eD as formatAgentStepLabel, eE as formatFileSize, eF as formatGbp, eG as formatGbpPerMillionTokens, eH as formatItemLabel, eI as formatStreamSummary, eJ as formatTokens, eK as formatUserName, eL as formatWorkspaceChoices, eM as formatWsMessage, eN as generateEncryptedWorkspaceKey, eO as generateNewWorkspaceKey, eP as getAgentStepLabel, eQ as getAttachableRunId, eR as getChildTags, eS as getContextRemainingPercent, eT as getContextUsedPercent, eU as getContextUsedTokens, eV as getCurrentStep, eW as getEligibleParentTags, eX as getErrorCode, eY as getErrorMessage, eZ as getPublicBookingPage, e_ as getRawWorkspaceKey, e$ as getRunToAttach, f0 as getRunToCancel, f1 as getStepDisplay, f2 as getStepTool, f3 as getSubagentBranchRecord, f4 as getTagDescendantIds, f5 as health, f6 as houseTemplates, f7 as hydrateAgentSteps, f9 as identityErrorCode, f8 as identityVerification, fa as instructions, fb as isAnnotationTag, fc as isConnectorVendorVisible, fd as isDriveSyncVendor, fe as isEntityTag, ff as isFlatKind, fg as isLabelTag, fh as isMailboxSyncVendor, fi as isNearAiUsageBudget, fj as isPresenceTag, fk as isSharePointVendor, fl as isSharedSkill, fm as isTraceItem, fn as mail, fo as mcpTools, fp as mergeAgentSteps, fq as modelConnections, fr as notifications, fs as parseSSEEvents, ft as parseSlashCommand, fu as parseSlashTokenInProgress, fv as parseStructuredResponse, fw as performPasswordLogin, fx as performSigningKeyLogin, fy as performSsoDeviceFlowLogin, fz as pickMainThread, fA as profile, fB as progressFetch, fC as projects, fD as quotaExceededFrom, fE as quotaFromStreamError, fF as reduceOutputItem, fG as refusalReason, fH as requireData, fI as requireOk, fJ as resolveAuth, fK as resolveCitations, fL as resolveSummary, fM as resolveWorkspace, fN as responses, fO as searchChunks, fP as secureMail, fQ as selectFullContextDocument, fR as selectWorkspace, fS as selectWorkspaceById, fT as sessions, fU as settings, fV as signatureRequests, fW as sliceToSubagentThread, fX as streamSSE, fY as stripCitationMarkdown, fZ as subagentJobLabel, f_ as summarizeCitations, f$ as support, g0 as tagUseCount, g1 as tags, g2 as tagsForScope, g3 as tagsOfGroup, g4 as topLevelAgentSteps, g5 as uploadSkill, g6 as usdToGbp, g7 as work, g8 as workflowSteps, g9 as workflows, ga as workspaceAssistant, gb as workspaceConflictOf, gc as workspaces, gd as wouldCreateTagCycle } from './browser-CrLmQm-o.cjs';
|
|
1
|
+
import { a8 as ConfigStore, a5 as CliConfig, a6 as CliCredentials, a2 as ChatSession, cG as SkippedFile, dw as UploadResult, x as AuthHeaders, dq as UploadBatchResult, du as UploadOptions, dr as UploadDirectOptions, ds as UploadDirectResult, cu as SUPPORTED_EXTENSIONS, bo as MailAttachment, W as ChatCryptoContext } from './browser-uV09Vdrg.cjs';
|
|
2
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AssistantArrival, s as AssistantBrief, t as AssistantBriefInput, v as AttendeeRead, w as AuthContext, y as AuthMode, z as AuthenticatedClient, B as BookingConfirmation, C as BookingPage, D as BookingPageWriteBody, E as BookingRequestBody, F as BridgeTokensOptions, G as CalDavConnectBody, H as CalDavProfile, I as CalendarAccount, J as CalendarAccountKind, K as CalendarCreateBody, L as CalendarEvent, M as CalendarKeys, N as CalendarRead, O as CalendarSettings, P as CalendarSettingsBody, Q as CalendarUpdate, R as CalendarWindow, S as CallApiError, T as Capabilities, U as ChatAttachmentFile, V as ChatAttachmentInput, X as ChatKeyRing, Y as ChatKind, Z as ChatMemberKey, _ as ChatMemberResponse, $ as ChatMessage, a0 as ChatMessageResponse, a1 as ChatResponse, a3 as CitationSummary, a4 as CitationToolSources, a7 as CommandDescriptor, a9 as Configuration, aa as ConfigurationPatch, ab as ConnectOptions, ac as ConnectionModel, ad as ConnectorCatalogEntry, ae as ConnectorFolder, af as ConnectorSyncProgress, ag as ConnectorSyncStatus, ah as ConnectorVendorKey, ai as ConnectorVisibilitySettings, aj as ContextUsage, ak as ConversationResponse, al as ConversationUsageResponse, ao as CreateWorkRequest, ap as CreateWorkflowRequest, aq as DEFAULT_AI_USD_PER_GBP, ar as DOC_TERMINAL_STATUSES, as as DRIVE_SYNC_VENDORS, at as Database, au as DatabaseAggregateRequest, av as DatabaseAggregateResult, aw as DatabaseColumn, ax as DatabaseColumnWrite, ay as DatabaseImportResult, az as DatabaseRow, aA as DatabaseRowPage, aB as DatabaseRowsQuery, aC as DateTimeSpec, aD as DecryptedChat, aE as DecryptedChatMessage, aF as DeploymentHouseTemplate, aG as DiagnoseOptions, aH as DirectModelUsage, aI as DocInfo, aJ as DocInfoMap, aK as DocNameMap, aL as DocumentAutomationAction, aM as DocumentListFields, aN as DocumentListOrder, aO as DocumentSelector, aP as DocumentWaiter, aQ as DocumentWaiterOptions, aR as DriveSyncProgress, aS as DriveSyncSummary, aT as DuplicateContactError, aU as ENTITY_KINDS, aV as EditScope, aW as EntityKind, aX as EventCreateBody, aY as EventPatchBody, aZ as FLAT_TAG_KINDS, b1 as FindTimeParams, b2 as FormattedWsMessage, b3 as FreeBusyEntry, b4 as FullContextSelection, b5 as GOOGLE_VENDORS, b6 as HolidayCountry, b7 as HouseTemplateCandidate, b8 as IMANAGE_VENDORS, b9 as IdentityErrorCode, ba as IdentityPurchase, bb as IdentityState, bc as IdentityStatus, bd as ImportResult, be as InvitationRead, bf as JsonSchemaOutputFormat, bg as LinkedRun, bh as ListAllOptions, bi as ListEventsParams, bk as ListPaginatedOptions, bl as MAILBOX_SYNC_VENDORS, bm as MAX_RETRIEVE_DOC_IDS, bn as MICROSOFT_VENDORS, bp as MessageLevel, bq as ModelConnection, br as OAuthAccountKind, bs as OutputItemDone, bt as OverlayItem, bu as OverlayLayerName, bv as PRESENCE_KINDS, bw as PROMPT_CONTEXT_CHARS, bx as ParsedResponse, by as ParsedSlashCommand, bz as ParsedStructuredResponse, bA as PendingAuthResponse, bB as PersonKey, bC as PersonalConnectionInput, bD as PlanStepsError, bE as PlanWorkRequest, bF as ProductResponse, bG as ProjectAddonKind, bH as ProjectAddonSettingsRequest, bI as ProjectBudget, bJ as ProjectCheckoutRequest, bK as ProjectConversationUsageResponse, bL as ProjectCreateOptions, bM as ProjectDetails, bN as ProjectEventKind, bO as ProjectEventResponse, bP as ProjectInvoicesResponse, bQ as ProjectNextPeriodAddonsRequest, bR as ProjectPlanChangeRequest, bS as ProjectQuoteRequest, bT as ProjectResponse, bU as ProjectUpdateRequest, bV as ProjectUsageResponse, bW as PublicBookingError, bX as PublicBookingPage, bY as QuotaExceeded, bZ as RaisedSignal, b_ as RawResponseEvent, b$ as ReconnectOptions, c0 as ReconnectableWsConnection, c1 as ResolvedCitation, c2 as ResolvedRecipient, c3 as RespondParams, c4 as RespondPartstat, c5 as Response, c6 as ResponseCreateRequest, c7 as ResponseCreateResult, c8 as ResponseHandle, c9 as ResponseSnapshot, ca as ResponseStart, cb as ResponseStartOptions, cc as ResponseStream, cd as ResponseStreamEvent, ce as ResponseTools, cf as RoomCreateBody, cg as RoomQuery, ch as RoomRead, ci as RunProgress, cj as RunStats, ck as RunStep, cl as RunWaitingOn, cm as SHAREPOINT_VENDORS, cn as SSEEvent, co as SSEStreamCallbacks, cp as SSEStreamOutcome, cq as SSEStreamResult, cr as STEP_FIELD_OPTION_TONES, cs as STOP_ID_WAIT_MS, ct as STOP_REPEAT_WINDOW_MS, cv as ScopedTarget, cw as SearchChunk, cx as SecureMailCompose, cy as SecureMailSend, cz as SecureMailSender, cA as SendBack, cB as SetupDiagnostic, cC as SetupReport, cD as ShareRead, cE as ShareRole, cF as SkillSummary, cH as SlackConnectionStatus, cI as StepActionRequest, cJ as StepActivityEvent, cK as StepAssignee, cL as StepDisplay, cM as StepField, cN as StepFieldOption, cO as StepFieldOptionTone, cP as StepKind, cQ as StepPhase, cR as StepSignal, cS as StepSignalWhen, cT as StepState, cU as StepStatus, cV as SubagentBranchRecord, cW as SubagentLaneInfo, cX as SubmitBackgroundQueryOptions, cY as SubscribeParams, cZ as SupportRating, c_ as SupportTicket, c$ as SupportTicketInput, d0 as SyncTriggerResult, d1 as TAG_KINDS, d2 as TAG_NESTING_MAX_DEPTH, d3 as TagChange, d4 as TagFieldDefinition, d5 as TagGroup, d6 as TagKind, d7 as TagKindField, d8 as TagKindSchema, d9 as TagLinks, da as TagListQuery, db as TagNode, dc as TagResponse, dd as TagScope, de as TagTreeRow, df as TaskPlan, dg as TaskPlanStep, dh as TaxQuoteResponse, di as Thread, dj as ThreadsResponse, dk as TimeSuggestion, dl as TurnRequest, dm as UpdateConversationRequest, dp as UpdateWorkflowRequest, dt as UploadDocumentsOptions, dv as UploadProgressListener, dx as UsageBreakdown, dy as UserConnectorEntry, dz as UserDailyUsageResponse, dA as UserInfo, dB as WebSocketAuthError, dC as WeeklyHoursSpec, dD as WorkStatus, dE as WorkflowAuthMode, dF as WorkflowResponse, dG as WorkflowRunHistoryResponse, dH as WorkflowRunResponse, dI as WorkspaceConflict, dJ as WorkspaceContext, dK as WorkspaceOpenResponse, dL as WorkspaceResponse, dM as WsConnection, dN as account, dO as agentconfig, dP as agents, dQ as appendTranscriptionHints, dR as assistant, dS as authenticatedFetch, dT as bookPublicSlot, dU as buildCitationChunkData, dV as buildDocNameMap, dW as buildDocumentTools, dX as buildFactsContextTool, dY as buildRetrievalChunkTool, dZ as buildRetrievalFullContextTool, d_ as buildRetrievalTocTool, d$ as buildTurnRequest, e0 as calendar, e1 as calls, e2 as canTagHaveParent, e3 as cancelPublicBooking, e4 as capabilities, e5 as chats, e6 as composeConfiguration, e7 as composeTools, e8 as computeRunStats, e9 as connectErrorMessage, ea as connectWebSocket, eb as connectWithReconnect, ec as connectors, ed as contacts, ee as continuityPrompt, ef as conversations, eg as countCitations, eh as createAuthenticatedClient, ei as createDocumentWaiter, ej as createIndexAssigner, ek as databases, el as defaultKindForFormat, em as diagnoseSetup, en as doctags, eo as documentTools, ep as documents, eq as estimateDraftTokens, er as extractDocumentIdsFromMessages, es as extractFactIdsFromMessages, et as extractSubagentLanes, eu as facts, ev as files, ew as filterDocumentTags, ex as filterSkills, ey as findLeafForTaskMessage, ez as findMainSiblingLeaf, eA as findReplyTarget, eB as findSubagentRunId, eC as flattenTagTree, eD as formatAgentStepLabel, eE as formatFileSize, eF as formatGbp, eG as formatGbpPerMillionTokens, eH as formatItemLabel, eI as formatStreamSummary, eJ as formatTokens, eK as formatUserName, eL as formatWorkspaceChoices, eM as formatWsMessage, eN as generateEncryptedWorkspaceKey, eO as generateNewWorkspaceKey, eP as getAgentStepLabel, eQ as getAttachableRunId, eR as getChildTags, eS as getContextRemainingPercent, eT as getContextUsedPercent, eU as getContextUsedTokens, eV as getCurrentStep, eW as getEligibleParentTags, eX as getErrorCode, eY as getErrorMessage, eZ as getPublicBookingPage, e_ as getRawWorkspaceKey, e$ as getRunToAttach, f0 as getRunToCancel, f1 as getStepDisplay, f2 as getStepTool, f3 as getSubagentBranchRecord, f4 as getTagDescendantIds, f5 as health, f6 as houseTemplates, f7 as hydrateAgentSteps, f9 as identityErrorCode, f8 as identityVerification, fa as instructions, fb as isAnnotationTag, fc as isConnectorVendorVisible, fd as isDriveSyncVendor, fe as isEntityTag, ff as isFlatKind, fg as isLabelTag, fh as isMailboxSyncVendor, fi as isNearAiUsageBudget, fj as isPresenceTag, fk as isSharePointVendor, fl as isSharedSkill, fm as isTraceItem, fn as mail, fo as mcpTools, fp as mergeAgentSteps, fq as modelConnections, fr as notifications, fs as parseSSEEvents, ft as parseSlashCommand, fu as parseSlashTokenInProgress, fv as parseStructuredResponse, fw as performPasswordLogin, fx as performSigningKeyLogin, fy as performSsoDeviceFlowLogin, fz as pickMainThread, fA as profile, fB as progressFetch, fC as projects, fD as quotaExceededFrom, fE as quotaFromStreamError, fF as reduceOutputItem, fG as refusalReason, fH as requireData, fI as requireOk, fJ as resolveAuth, fK as resolveCitations, fL as resolveSummary, fM as resolveWorkspace, fN as responses, fO as searchChunks, fP as secureMail, fQ as selectFullContextDocument, fR as selectWorkspace, fS as selectWorkspaceById, fT as sessions, fU as settings, fV as signatureRequests, fW as sliceToSubagentThread, fX as streamSSE, fY as stripCitationMarkdown, fZ as subagentJobLabel, f_ as summarizeCitations, f$ as support, g0 as tagUseCount, g1 as tags, g2 as tagsForScope, g3 as tagsOfGroup, g4 as topLevelAgentSteps, g5 as uploadSkill, g6 as usdToGbp, g7 as work, g8 as workflowSteps, g9 as workflows, ga as workspaceAssistant, gb as workspaceConflictOf, gc as workspaces, gd as wouldCreateTagCycle } from './browser-uV09Vdrg.cjs';
|
|
3
3
|
import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
|
|
5
5
|
export { b as AgentStepEvent, d as ArtifactEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, R as ResponseCompletedEvent, g as ResponseContentPartAddedEvent, h as ResponseCreatedEvent, i as ResponseFailedEvent, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, l as ResponseOutputTextDeltaEvent, m as ResponseOutputTextDoneEvent, n as ResponseUsage, S as SSEStreamStartData, T as TokenBudgetContext, U as UserInputRequestEvent, o as UserMessageEvent } from './sse-types-B5Lw0KTC.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a8 as ConfigStore, a5 as CliConfig, a6 as CliCredentials, a2 as ChatSession, cG as SkippedFile, dw as UploadResult, x as AuthHeaders, dq as UploadBatchResult, du as UploadOptions, dr as UploadDirectOptions, ds as UploadDirectResult, cu as SUPPORTED_EXTENSIONS, bo as MailAttachment, W as ChatCryptoContext } from './browser-
|
|
2
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AssistantArrival, s as AssistantBrief, t as AssistantBriefInput, v as AttendeeRead, w as AuthContext, y as AuthMode, z as AuthenticatedClient, B as BookingConfirmation, C as BookingPage, D as BookingPageWriteBody, E as BookingRequestBody, F as BridgeTokensOptions, G as CalDavConnectBody, H as CalDavProfile, I as CalendarAccount, J as CalendarAccountKind, K as CalendarCreateBody, L as CalendarEvent, M as CalendarKeys, N as CalendarRead, O as CalendarSettings, P as CalendarSettingsBody, Q as CalendarUpdate, R as CalendarWindow, S as CallApiError, T as Capabilities, U as ChatAttachmentFile, V as ChatAttachmentInput, X as ChatKeyRing, Y as ChatKind, Z as ChatMemberKey, _ as ChatMemberResponse, $ as ChatMessage, a0 as ChatMessageResponse, a1 as ChatResponse, a3 as CitationSummary, a4 as CitationToolSources, a7 as CommandDescriptor, a9 as Configuration, aa as ConfigurationPatch, ab as ConnectOptions, ac as ConnectionModel, ad as ConnectorCatalogEntry, ae as ConnectorFolder, af as ConnectorSyncProgress, ag as ConnectorSyncStatus, ah as ConnectorVendorKey, ai as ConnectorVisibilitySettings, aj as ContextUsage, ak as ConversationResponse, al as ConversationUsageResponse, ao as CreateWorkRequest, ap as CreateWorkflowRequest, aq as DEFAULT_AI_USD_PER_GBP, ar as DOC_TERMINAL_STATUSES, as as DRIVE_SYNC_VENDORS, at as Database, au as DatabaseAggregateRequest, av as DatabaseAggregateResult, aw as DatabaseColumn, ax as DatabaseColumnWrite, ay as DatabaseImportResult, az as DatabaseRow, aA as DatabaseRowPage, aB as DatabaseRowsQuery, aC as DateTimeSpec, aD as DecryptedChat, aE as DecryptedChatMessage, aF as DeploymentHouseTemplate, aG as DiagnoseOptions, aH as DirectModelUsage, aI as DocInfo, aJ as DocInfoMap, aK as DocNameMap, aL as DocumentAutomationAction, aM as DocumentListFields, aN as DocumentListOrder, aO as DocumentSelector, aP as DocumentWaiter, aQ as DocumentWaiterOptions, aR as DriveSyncProgress, aS as DriveSyncSummary, aT as DuplicateContactError, aU as ENTITY_KINDS, aV as EditScope, aW as EntityKind, aX as EventCreateBody, aY as EventPatchBody, aZ as FLAT_TAG_KINDS, b1 as FindTimeParams, b2 as FormattedWsMessage, b3 as FreeBusyEntry, b4 as FullContextSelection, b5 as GOOGLE_VENDORS, b6 as HolidayCountry, b7 as HouseTemplateCandidate, b8 as IMANAGE_VENDORS, b9 as IdentityErrorCode, ba as IdentityPurchase, bb as IdentityState, bc as IdentityStatus, bd as ImportResult, be as InvitationRead, bf as JsonSchemaOutputFormat, bg as LinkedRun, bh as ListAllOptions, bi as ListEventsParams, bk as ListPaginatedOptions, bl as MAILBOX_SYNC_VENDORS, bm as MAX_RETRIEVE_DOC_IDS, bn as MICROSOFT_VENDORS, bp as MessageLevel, bq as ModelConnection, br as OAuthAccountKind, bs as OutputItemDone, bt as OverlayItem, bu as OverlayLayerName, bv as PRESENCE_KINDS, bw as PROMPT_CONTEXT_CHARS, bx as ParsedResponse, by as ParsedSlashCommand, bz as ParsedStructuredResponse, bA as PendingAuthResponse, bB as PersonKey, bC as PersonalConnectionInput, bD as PlanStepsError, bE as PlanWorkRequest, bF as ProductResponse, bG as ProjectAddonKind, bH as ProjectAddonSettingsRequest, bI as ProjectBudget, bJ as ProjectCheckoutRequest, bK as ProjectConversationUsageResponse, bL as ProjectCreateOptions, bM as ProjectDetails, bN as ProjectEventKind, bO as ProjectEventResponse, bP as ProjectInvoicesResponse, bQ as ProjectNextPeriodAddonsRequest, bR as ProjectPlanChangeRequest, bS as ProjectQuoteRequest, bT as ProjectResponse, bU as ProjectUpdateRequest, bV as ProjectUsageResponse, bW as PublicBookingError, bX as PublicBookingPage, bY as QuotaExceeded, bZ as RaisedSignal, b_ as RawResponseEvent, b$ as ReconnectOptions, c0 as ReconnectableWsConnection, c1 as ResolvedCitation, c2 as ResolvedRecipient, c3 as RespondParams, c4 as RespondPartstat, c5 as Response, c6 as ResponseCreateRequest, c7 as ResponseCreateResult, c8 as ResponseHandle, c9 as ResponseSnapshot, ca as ResponseStart, cb as ResponseStartOptions, cc as ResponseStream, cd as ResponseStreamEvent, ce as ResponseTools, cf as RoomCreateBody, cg as RoomQuery, ch as RoomRead, ci as RunProgress, cj as RunStats, ck as RunStep, cl as RunWaitingOn, cm as SHAREPOINT_VENDORS, cn as SSEEvent, co as SSEStreamCallbacks, cp as SSEStreamOutcome, cq as SSEStreamResult, cr as STEP_FIELD_OPTION_TONES, cs as STOP_ID_WAIT_MS, ct as STOP_REPEAT_WINDOW_MS, cv as ScopedTarget, cw as SearchChunk, cx as SecureMailCompose, cy as SecureMailSend, cz as SecureMailSender, cA as SendBack, cB as SetupDiagnostic, cC as SetupReport, cD as ShareRead, cE as ShareRole, cF as SkillSummary, cH as SlackConnectionStatus, cI as StepActionRequest, cJ as StepActivityEvent, cK as StepAssignee, cL as StepDisplay, cM as StepField, cN as StepFieldOption, cO as StepFieldOptionTone, cP as StepKind, cQ as StepPhase, cR as StepSignal, cS as StepSignalWhen, cT as StepState, cU as StepStatus, cV as SubagentBranchRecord, cW as SubagentLaneInfo, cX as SubmitBackgroundQueryOptions, cY as SubscribeParams, cZ as SupportRating, c_ as SupportTicket, c$ as SupportTicketInput, d0 as SyncTriggerResult, d1 as TAG_KINDS, d2 as TAG_NESTING_MAX_DEPTH, d3 as TagChange, d4 as TagFieldDefinition, d5 as TagGroup, d6 as TagKind, d7 as TagKindField, d8 as TagKindSchema, d9 as TagLinks, da as TagListQuery, db as TagNode, dc as TagResponse, dd as TagScope, de as TagTreeRow, df as TaskPlan, dg as TaskPlanStep, dh as TaxQuoteResponse, di as Thread, dj as ThreadsResponse, dk as TimeSuggestion, dl as TurnRequest, dm as UpdateConversationRequest, dp as UpdateWorkflowRequest, dt as UploadDocumentsOptions, dv as UploadProgressListener, dx as UsageBreakdown, dy as UserConnectorEntry, dz as UserDailyUsageResponse, dA as UserInfo, dB as WebSocketAuthError, dC as WeeklyHoursSpec, dD as WorkStatus, dE as WorkflowAuthMode, dF as WorkflowResponse, dG as WorkflowRunHistoryResponse, dH as WorkflowRunResponse, dI as WorkspaceConflict, dJ as WorkspaceContext, dK as WorkspaceOpenResponse, dL as WorkspaceResponse, dM as WsConnection, dN as account, dO as agentconfig, dP as agents, dQ as appendTranscriptionHints, dR as assistant, dS as authenticatedFetch, dT as bookPublicSlot, dU as buildCitationChunkData, dV as buildDocNameMap, dW as buildDocumentTools, dX as buildFactsContextTool, dY as buildRetrievalChunkTool, dZ as buildRetrievalFullContextTool, d_ as buildRetrievalTocTool, d$ as buildTurnRequest, e0 as calendar, e1 as calls, e2 as canTagHaveParent, e3 as cancelPublicBooking, e4 as capabilities, e5 as chats, e6 as composeConfiguration, e7 as composeTools, e8 as computeRunStats, e9 as connectErrorMessage, ea as connectWebSocket, eb as connectWithReconnect, ec as connectors, ed as contacts, ee as continuityPrompt, ef as conversations, eg as countCitations, eh as createAuthenticatedClient, ei as createDocumentWaiter, ej as createIndexAssigner, ek as databases, el as defaultKindForFormat, em as diagnoseSetup, en as doctags, eo as documentTools, ep as documents, eq as estimateDraftTokens, er as extractDocumentIdsFromMessages, es as extractFactIdsFromMessages, et as extractSubagentLanes, eu as facts, ev as files, ew as filterDocumentTags, ex as filterSkills, ey as findLeafForTaskMessage, ez as findMainSiblingLeaf, eA as findReplyTarget, eB as findSubagentRunId, eC as flattenTagTree, eD as formatAgentStepLabel, eE as formatFileSize, eF as formatGbp, eG as formatGbpPerMillionTokens, eH as formatItemLabel, eI as formatStreamSummary, eJ as formatTokens, eK as formatUserName, eL as formatWorkspaceChoices, eM as formatWsMessage, eN as generateEncryptedWorkspaceKey, eO as generateNewWorkspaceKey, eP as getAgentStepLabel, eQ as getAttachableRunId, eR as getChildTags, eS as getContextRemainingPercent, eT as getContextUsedPercent, eU as getContextUsedTokens, eV as getCurrentStep, eW as getEligibleParentTags, eX as getErrorCode, eY as getErrorMessage, eZ as getPublicBookingPage, e_ as getRawWorkspaceKey, e$ as getRunToAttach, f0 as getRunToCancel, f1 as getStepDisplay, f2 as getStepTool, f3 as getSubagentBranchRecord, f4 as getTagDescendantIds, f5 as health, f6 as houseTemplates, f7 as hydrateAgentSteps, f9 as identityErrorCode, f8 as identityVerification, fa as instructions, fb as isAnnotationTag, fc as isConnectorVendorVisible, fd as isDriveSyncVendor, fe as isEntityTag, ff as isFlatKind, fg as isLabelTag, fh as isMailboxSyncVendor, fi as isNearAiUsageBudget, fj as isPresenceTag, fk as isSharePointVendor, fl as isSharedSkill, fm as isTraceItem, fn as mail, fo as mcpTools, fp as mergeAgentSteps, fq as modelConnections, fr as notifications, fs as parseSSEEvents, ft as parseSlashCommand, fu as parseSlashTokenInProgress, fv as parseStructuredResponse, fw as performPasswordLogin, fx as performSigningKeyLogin, fy as performSsoDeviceFlowLogin, fz as pickMainThread, fA as profile, fB as progressFetch, fC as projects, fD as quotaExceededFrom, fE as quotaFromStreamError, fF as reduceOutputItem, fG as refusalReason, fH as requireData, fI as requireOk, fJ as resolveAuth, fK as resolveCitations, fL as resolveSummary, fM as resolveWorkspace, fN as responses, fO as searchChunks, fP as secureMail, fQ as selectFullContextDocument, fR as selectWorkspace, fS as selectWorkspaceById, fT as sessions, fU as settings, fV as signatureRequests, fW as sliceToSubagentThread, fX as streamSSE, fY as stripCitationMarkdown, fZ as subagentJobLabel, f_ as summarizeCitations, f$ as support, g0 as tagUseCount, g1 as tags, g2 as tagsForScope, g3 as tagsOfGroup, g4 as topLevelAgentSteps, g5 as uploadSkill, g6 as usdToGbp, g7 as work, g8 as workflowSteps, g9 as workflows, ga as workspaceAssistant, gb as workspaceConflictOf, gc as workspaces, gd as wouldCreateTagCycle } from './browser-Do_-BxvU.js';
|
|
1
|
+
import { a8 as ConfigStore, a5 as CliConfig, a6 as CliCredentials, a2 as ChatSession, cG as SkippedFile, dw as UploadResult, x as AuthHeaders, dq as UploadBatchResult, du as UploadOptions, dr as UploadDirectOptions, ds as UploadDirectResult, cu as SUPPORTED_EXTENSIONS, bo as MailAttachment, W as ChatCryptoContext } from './browser-C8VTBlM8.js';
|
|
2
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, d as Arbi, e as ArbiApiError, f as ArbiError, g as ArbiErrorOptions, h as ArbiHostSession, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArbiStructuredOutputError, l as ArbiTransportError, m as ArbiWorkspaceChangedError, n as ArbiWorkspaceSupersededError, o as ArbiWorkspaceUnavailableError, p as AskHandlers, q as AskRequest, r as AssistantArrival, s as AssistantBrief, t as AssistantBriefInput, v as AttendeeRead, w as AuthContext, y as AuthMode, z as AuthenticatedClient, B as BookingConfirmation, C as BookingPage, D as BookingPageWriteBody, E as BookingRequestBody, F as BridgeTokensOptions, G as CalDavConnectBody, H as CalDavProfile, I as CalendarAccount, J as CalendarAccountKind, K as CalendarCreateBody, L as CalendarEvent, M as CalendarKeys, N as CalendarRead, O as CalendarSettings, P as CalendarSettingsBody, Q as CalendarUpdate, R as CalendarWindow, S as CallApiError, T as Capabilities, U as ChatAttachmentFile, V as ChatAttachmentInput, X as ChatKeyRing, Y as ChatKind, Z as ChatMemberKey, _ as ChatMemberResponse, $ as ChatMessage, a0 as ChatMessageResponse, a1 as ChatResponse, a3 as CitationSummary, a4 as CitationToolSources, a7 as CommandDescriptor, a9 as Configuration, aa as ConfigurationPatch, ab as ConnectOptions, ac as ConnectionModel, ad as ConnectorCatalogEntry, ae as ConnectorFolder, af as ConnectorSyncProgress, ag as ConnectorSyncStatus, ah as ConnectorVendorKey, ai as ConnectorVisibilitySettings, aj as ContextUsage, ak as ConversationResponse, al as ConversationUsageResponse, ao as CreateWorkRequest, ap as CreateWorkflowRequest, aq as DEFAULT_AI_USD_PER_GBP, ar as DOC_TERMINAL_STATUSES, as as DRIVE_SYNC_VENDORS, at as Database, au as DatabaseAggregateRequest, av as DatabaseAggregateResult, aw as DatabaseColumn, ax as DatabaseColumnWrite, ay as DatabaseImportResult, az as DatabaseRow, aA as DatabaseRowPage, aB as DatabaseRowsQuery, aC as DateTimeSpec, aD as DecryptedChat, aE as DecryptedChatMessage, aF as DeploymentHouseTemplate, aG as DiagnoseOptions, aH as DirectModelUsage, aI as DocInfo, aJ as DocInfoMap, aK as DocNameMap, aL as DocumentAutomationAction, aM as DocumentListFields, aN as DocumentListOrder, aO as DocumentSelector, aP as DocumentWaiter, aQ as DocumentWaiterOptions, aR as DriveSyncProgress, aS as DriveSyncSummary, aT as DuplicateContactError, aU as ENTITY_KINDS, aV as EditScope, aW as EntityKind, aX as EventCreateBody, aY as EventPatchBody, aZ as FLAT_TAG_KINDS, b1 as FindTimeParams, b2 as FormattedWsMessage, b3 as FreeBusyEntry, b4 as FullContextSelection, b5 as GOOGLE_VENDORS, b6 as HolidayCountry, b7 as HouseTemplateCandidate, b8 as IMANAGE_VENDORS, b9 as IdentityErrorCode, ba as IdentityPurchase, bb as IdentityState, bc as IdentityStatus, bd as ImportResult, be as InvitationRead, bf as JsonSchemaOutputFormat, bg as LinkedRun, bh as ListAllOptions, bi as ListEventsParams, bk as ListPaginatedOptions, bl as MAILBOX_SYNC_VENDORS, bm as MAX_RETRIEVE_DOC_IDS, bn as MICROSOFT_VENDORS, bp as MessageLevel, bq as ModelConnection, br as OAuthAccountKind, bs as OutputItemDone, bt as OverlayItem, bu as OverlayLayerName, bv as PRESENCE_KINDS, bw as PROMPT_CONTEXT_CHARS, bx as ParsedResponse, by as ParsedSlashCommand, bz as ParsedStructuredResponse, bA as PendingAuthResponse, bB as PersonKey, bC as PersonalConnectionInput, bD as PlanStepsError, bE as PlanWorkRequest, bF as ProductResponse, bG as ProjectAddonKind, bH as ProjectAddonSettingsRequest, bI as ProjectBudget, bJ as ProjectCheckoutRequest, bK as ProjectConversationUsageResponse, bL as ProjectCreateOptions, bM as ProjectDetails, bN as ProjectEventKind, bO as ProjectEventResponse, bP as ProjectInvoicesResponse, bQ as ProjectNextPeriodAddonsRequest, bR as ProjectPlanChangeRequest, bS as ProjectQuoteRequest, bT as ProjectResponse, bU as ProjectUpdateRequest, bV as ProjectUsageResponse, bW as PublicBookingError, bX as PublicBookingPage, bY as QuotaExceeded, bZ as RaisedSignal, b_ as RawResponseEvent, b$ as ReconnectOptions, c0 as ReconnectableWsConnection, c1 as ResolvedCitation, c2 as ResolvedRecipient, c3 as RespondParams, c4 as RespondPartstat, c5 as Response, c6 as ResponseCreateRequest, c7 as ResponseCreateResult, c8 as ResponseHandle, c9 as ResponseSnapshot, ca as ResponseStart, cb as ResponseStartOptions, cc as ResponseStream, cd as ResponseStreamEvent, ce as ResponseTools, cf as RoomCreateBody, cg as RoomQuery, ch as RoomRead, ci as RunProgress, cj as RunStats, ck as RunStep, cl as RunWaitingOn, cm as SHAREPOINT_VENDORS, cn as SSEEvent, co as SSEStreamCallbacks, cp as SSEStreamOutcome, cq as SSEStreamResult, cr as STEP_FIELD_OPTION_TONES, cs as STOP_ID_WAIT_MS, ct as STOP_REPEAT_WINDOW_MS, cv as ScopedTarget, cw as SearchChunk, cx as SecureMailCompose, cy as SecureMailSend, cz as SecureMailSender, cA as SendBack, cB as SetupDiagnostic, cC as SetupReport, cD as ShareRead, cE as ShareRole, cF as SkillSummary, cH as SlackConnectionStatus, cI as StepActionRequest, cJ as StepActivityEvent, cK as StepAssignee, cL as StepDisplay, cM as StepField, cN as StepFieldOption, cO as StepFieldOptionTone, cP as StepKind, cQ as StepPhase, cR as StepSignal, cS as StepSignalWhen, cT as StepState, cU as StepStatus, cV as SubagentBranchRecord, cW as SubagentLaneInfo, cX as SubmitBackgroundQueryOptions, cY as SubscribeParams, cZ as SupportRating, c_ as SupportTicket, c$ as SupportTicketInput, d0 as SyncTriggerResult, d1 as TAG_KINDS, d2 as TAG_NESTING_MAX_DEPTH, d3 as TagChange, d4 as TagFieldDefinition, d5 as TagGroup, d6 as TagKind, d7 as TagKindField, d8 as TagKindSchema, d9 as TagLinks, da as TagListQuery, db as TagNode, dc as TagResponse, dd as TagScope, de as TagTreeRow, df as TaskPlan, dg as TaskPlanStep, dh as TaxQuoteResponse, di as Thread, dj as ThreadsResponse, dk as TimeSuggestion, dl as TurnRequest, dm as UpdateConversationRequest, dp as UpdateWorkflowRequest, dt as UploadDocumentsOptions, dv as UploadProgressListener, dx as UsageBreakdown, dy as UserConnectorEntry, dz as UserDailyUsageResponse, dA as UserInfo, dB as WebSocketAuthError, dC as WeeklyHoursSpec, dD as WorkStatus, dE as WorkflowAuthMode, dF as WorkflowResponse, dG as WorkflowRunHistoryResponse, dH as WorkflowRunResponse, dI as WorkspaceConflict, dJ as WorkspaceContext, dK as WorkspaceOpenResponse, dL as WorkspaceResponse, dM as WsConnection, dN as account, dO as agentconfig, dP as agents, dQ as appendTranscriptionHints, dR as assistant, dS as authenticatedFetch, dT as bookPublicSlot, dU as buildCitationChunkData, dV as buildDocNameMap, dW as buildDocumentTools, dX as buildFactsContextTool, dY as buildRetrievalChunkTool, dZ as buildRetrievalFullContextTool, d_ as buildRetrievalTocTool, d$ as buildTurnRequest, e0 as calendar, e1 as calls, e2 as canTagHaveParent, e3 as cancelPublicBooking, e4 as capabilities, e5 as chats, e6 as composeConfiguration, e7 as composeTools, e8 as computeRunStats, e9 as connectErrorMessage, ea as connectWebSocket, eb as connectWithReconnect, ec as connectors, ed as contacts, ee as continuityPrompt, ef as conversations, eg as countCitations, eh as createAuthenticatedClient, ei as createDocumentWaiter, ej as createIndexAssigner, ek as databases, el as defaultKindForFormat, em as diagnoseSetup, en as doctags, eo as documentTools, ep as documents, eq as estimateDraftTokens, er as extractDocumentIdsFromMessages, es as extractFactIdsFromMessages, et as extractSubagentLanes, eu as facts, ev as files, ew as filterDocumentTags, ex as filterSkills, ey as findLeafForTaskMessage, ez as findMainSiblingLeaf, eA as findReplyTarget, eB as findSubagentRunId, eC as flattenTagTree, eD as formatAgentStepLabel, eE as formatFileSize, eF as formatGbp, eG as formatGbpPerMillionTokens, eH as formatItemLabel, eI as formatStreamSummary, eJ as formatTokens, eK as formatUserName, eL as formatWorkspaceChoices, eM as formatWsMessage, eN as generateEncryptedWorkspaceKey, eO as generateNewWorkspaceKey, eP as getAgentStepLabel, eQ as getAttachableRunId, eR as getChildTags, eS as getContextRemainingPercent, eT as getContextUsedPercent, eU as getContextUsedTokens, eV as getCurrentStep, eW as getEligibleParentTags, eX as getErrorCode, eY as getErrorMessage, eZ as getPublicBookingPage, e_ as getRawWorkspaceKey, e$ as getRunToAttach, f0 as getRunToCancel, f1 as getStepDisplay, f2 as getStepTool, f3 as getSubagentBranchRecord, f4 as getTagDescendantIds, f5 as health, f6 as houseTemplates, f7 as hydrateAgentSteps, f9 as identityErrorCode, f8 as identityVerification, fa as instructions, fb as isAnnotationTag, fc as isConnectorVendorVisible, fd as isDriveSyncVendor, fe as isEntityTag, ff as isFlatKind, fg as isLabelTag, fh as isMailboxSyncVendor, fi as isNearAiUsageBudget, fj as isPresenceTag, fk as isSharePointVendor, fl as isSharedSkill, fm as isTraceItem, fn as mail, fo as mcpTools, fp as mergeAgentSteps, fq as modelConnections, fr as notifications, fs as parseSSEEvents, ft as parseSlashCommand, fu as parseSlashTokenInProgress, fv as parseStructuredResponse, fw as performPasswordLogin, fx as performSigningKeyLogin, fy as performSsoDeviceFlowLogin, fz as pickMainThread, fA as profile, fB as progressFetch, fC as projects, fD as quotaExceededFrom, fE as quotaFromStreamError, fF as reduceOutputItem, fG as refusalReason, fH as requireData, fI as requireOk, fJ as resolveAuth, fK as resolveCitations, fL as resolveSummary, fM as resolveWorkspace, fN as responses, fO as searchChunks, fP as secureMail, fQ as selectFullContextDocument, fR as selectWorkspace, fS as selectWorkspaceById, fT as sessions, fU as settings, fV as signatureRequests, fW as sliceToSubagentThread, fX as streamSSE, fY as stripCitationMarkdown, fZ as subagentJobLabel, f_ as summarizeCitations, f$ as support, g0 as tagUseCount, g1 as tags, g2 as tagsForScope, g3 as tagsOfGroup, g4 as topLevelAgentSteps, g5 as uploadSkill, g6 as usdToGbp, g7 as work, g8 as workflowSteps, g9 as workflows, ga as workspaceAssistant, gb as workspaceConflictOf, gc as workspaces, gd as wouldCreateTagCycle } from './browser-C8VTBlM8.js';
|
|
3
3
|
import { SessionPersistence, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { CallPeer, HttpErrorInfo, HttpRequestInfo, HttpResponseInfo, HttpTransportOptions, LoginProfile, SessionPersistence } from '@arbidocs/client';
|
|
5
5
|
export { b as AgentStepEvent, d as ArtifactEvent, M as MailDraftSSEEvent, e as MessageMetadataPayload, f as MessageQueuedEvent, O as OutputTokensDetails, R as ResponseCompletedEvent, g as ResponseContentPartAddedEvent, h as ResponseCreatedEvent, i as ResponseFailedEvent, j as ResponseOutputItemAddedEvent, k as ResponseOutputItemDoneEvent, l as ResponseOutputTextDeltaEvent, m as ResponseOutputTextDoneEvent, n as ResponseUsage, S as SSEStreamStartData, T as TokenBudgetContext, U as UserInputRequestEvent, o as UserMessageEvent } from './sse-types-B5Lw0KTC.js';
|
package/dist/index.js
CHANGED
|
@@ -5069,6 +5069,15 @@ function createDocumentWaiter(options) {
|
|
|
5069
5069
|
function isNotification(msg) {
|
|
5070
5070
|
return "sender" in msg && "recipient" in msg;
|
|
5071
5071
|
}
|
|
5072
|
+
function uploadSetTotals(content) {
|
|
5073
|
+
let meta = {};
|
|
5074
|
+
try {
|
|
5075
|
+
meta = JSON.parse(content || "{}") ?? {};
|
|
5076
|
+
} catch {
|
|
5077
|
+
}
|
|
5078
|
+
const count = (key) => typeof meta[key] === "number" ? meta[key] : 0;
|
|
5079
|
+
return { total: count("total"), completed: count("completed"), failed: count("failed") };
|
|
5080
|
+
}
|
|
5072
5081
|
function formatWsMessage(msg) {
|
|
5073
5082
|
if (isMessageType(msg, "task_update")) {
|
|
5074
5083
|
const progress = msg.progress > 0 ? ` (${Math.round(msg.progress)}%)` : "";
|
|
@@ -5081,7 +5090,8 @@ function formatWsMessage(msg) {
|
|
|
5081
5090
|
const count = msg.doc_ext_ids.length;
|
|
5082
5091
|
return {
|
|
5083
5092
|
text: `Batch complete: ${msg.batch_type} \u2014 ${count} doc${count !== 1 ? "s" : ""}`,
|
|
5084
|
-
|
|
5093
|
+
// A batch of an upload set is progress: the set's one notification says when it is done.
|
|
5094
|
+
level: msg.upload_set_id ? "info" : "success"
|
|
5085
5095
|
};
|
|
5086
5096
|
}
|
|
5087
5097
|
if (isMessageType(msg, "error")) {
|
|
@@ -5100,6 +5110,11 @@ function formatWsMessage(msg) {
|
|
|
5100
5110
|
if (msg.type === "chat.message") {
|
|
5101
5111
|
return { text: `New message in ${msg.chat_ext_id}`, level: "info" };
|
|
5102
5112
|
}
|
|
5113
|
+
if (isNotification(msg) && msg.type === "upload_set_complete") {
|
|
5114
|
+
const totals = uploadSetTotals(msg.content);
|
|
5115
|
+
const text2 = totals.completed === totals.total ? `Upload done: ${totals.completed} doc${totals.completed !== 1 ? "s" : ""} indexed` : `Upload done: ${totals.completed} of ${totals.total} docs indexed` + (totals.failed ? `, ${totals.failed} failed` : "");
|
|
5116
|
+
return { text: text2, level: totals.failed || totals.completed < totals.total ? "warning" : "success" };
|
|
5117
|
+
}
|
|
5103
5118
|
if (isNotification(msg)) {
|
|
5104
5119
|
const sender = msg.sender?.email || "someone";
|
|
5105
5120
|
const content = msg.content ?? msg.type;
|
|
@@ -6355,6 +6370,7 @@ __export(documents_exports, {
|
|
|
6355
6370
|
listPaginated: () => listPaginated,
|
|
6356
6371
|
listVersions: () => listVersions,
|
|
6357
6372
|
mimeFromName: () => mimeFromName,
|
|
6373
|
+
newUploadSet: () => newUploadSet,
|
|
6358
6374
|
presignedPut: () => presignedPut,
|
|
6359
6375
|
restoreVersion: () => restoreVersion,
|
|
6360
6376
|
sanitizeFolderPath: () => sanitizeFolderPath,
|
|
@@ -6364,6 +6380,7 @@ __export(documents_exports, {
|
|
|
6364
6380
|
uploadDocumentsDirect: () => uploadDocumentsDirect,
|
|
6365
6381
|
uploadFile: () => uploadFile,
|
|
6366
6382
|
uploadFiles: () => uploadFiles,
|
|
6383
|
+
uploadSetQuery: () => uploadSetQuery,
|
|
6367
6384
|
uploadUrl: () => uploadUrl
|
|
6368
6385
|
});
|
|
6369
6386
|
var MAX_PAGES = 400;
|
|
@@ -6413,6 +6430,17 @@ var SUPPORTED_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
|
6413
6430
|
function sanitizeFolderPath(folderPath) {
|
|
6414
6431
|
return folderPath.replace(/[\x00-\x1f\x7f]/g, "").replace(/\\/g, "/").replace(/\/{2,}/g, "/").replace(/^\/|\/$/g, "").trim();
|
|
6415
6432
|
}
|
|
6433
|
+
function newUploadSet(size) {
|
|
6434
|
+
const crypto2 = globalThis.crypto;
|
|
6435
|
+
const id = typeof crypto2?.randomUUID === "function" ? crypto2.randomUUID() : Array.from(
|
|
6436
|
+
crypto2.getRandomValues(new Uint8Array(16)),
|
|
6437
|
+
(b2) => b2.toString(16).padStart(2, "0")
|
|
6438
|
+
).join("");
|
|
6439
|
+
return { id, size: Math.max(1, Math.floor(size)) };
|
|
6440
|
+
}
|
|
6441
|
+
function uploadSetQuery(set) {
|
|
6442
|
+
return set ? { upload_set_id: set.id, upload_set_size: set.size } : {};
|
|
6443
|
+
}
|
|
6416
6444
|
async function listDocuments(arbi, workspaceExtId) {
|
|
6417
6445
|
if (!workspaceExtId) {
|
|
6418
6446
|
return requireData(await arbi.fetch.GET("/v1/document/list"), "Failed to fetch documents");
|
|
@@ -6595,6 +6623,7 @@ async function uploadDocuments(arbi, files, options = {}) {
|
|
|
6595
6623
|
query2.derived_from = options.derivedFrom.docId;
|
|
6596
6624
|
query2.derived_role = options.derivedFrom.role;
|
|
6597
6625
|
}
|
|
6626
|
+
Object.assign(query2, uploadSetQuery(options.uploadSet));
|
|
6598
6627
|
const result = await arbi.fetch.POST("/v1/document/upload", {
|
|
6599
6628
|
params: { query: query2 },
|
|
6600
6629
|
...options.onProgress ? { fetch: progressFetch(options.onProgress, arbi.http) } : {},
|
|
@@ -6655,6 +6684,8 @@ async function uploadFile(auth, fileData, fileName, options) {
|
|
|
6655
6684
|
params.set("derived_from", options.derivedFrom.docId);
|
|
6656
6685
|
params.set("derived_role", options.derivedFrom.role);
|
|
6657
6686
|
}
|
|
6687
|
+
for (const [key, value] of Object.entries(uploadSetQuery(options?.uploadSet)))
|
|
6688
|
+
params.set(key, String(value));
|
|
6658
6689
|
const qs = params.toString();
|
|
6659
6690
|
const res = await authenticatedFetch({
|
|
6660
6691
|
...auth,
|
|
@@ -6677,6 +6708,8 @@ async function uploadFiles(auth, files, options) {
|
|
|
6677
6708
|
params.set("derived_from", options.derivedFrom.docId);
|
|
6678
6709
|
params.set("derived_role", options.derivedFrom.role);
|
|
6679
6710
|
}
|
|
6711
|
+
for (const [key, value] of Object.entries(uploadSetQuery(options?.uploadSet)))
|
|
6712
|
+
params.set(key, String(value));
|
|
6680
6713
|
const qs = params.toString();
|
|
6681
6714
|
const res = await authenticatedFetch({
|
|
6682
6715
|
...auth,
|
|
@@ -6788,7 +6821,7 @@ async function uploadDocumentsDirect(arbi, workspaceKey, files, options) {
|
|
|
6788
6821
|
folder: options.folder ? sanitizeFolderPath(options.folder) : null,
|
|
6789
6822
|
presign_expires_in: options.presignExpiresIn ?? 3600
|
|
6790
6823
|
};
|
|
6791
|
-
const query2 = { workspace_ext_id: options.workspaceExtId };
|
|
6824
|
+
const query2 = { workspace_ext_id: options.workspaceExtId, ...uploadSetQuery(options.uploadSet) };
|
|
6792
6825
|
const initResult = requireUploadData(
|
|
6793
6826
|
await arbi.fetch.POST("/v1/document/upload-init", { params: { query: query2 }, body: initBody }),
|
|
6794
6827
|
"Failed to initialize direct upload"
|
|
@@ -14777,6 +14810,7 @@ async function runGroupedDirectUpload(arbi, workspaceKey, groups, options) {
|
|
|
14777
14810
|
const folders = /* @__PURE__ */ new Map();
|
|
14778
14811
|
const totalFiles = groups.reduce((s2, g2) => s2 + g2.files.length, 0);
|
|
14779
14812
|
const totalBatches = groups.length;
|
|
14813
|
+
const uploadSet = newUploadSet(totalFiles);
|
|
14780
14814
|
let currentBatch = 0;
|
|
14781
14815
|
let filesUploaded = 0;
|
|
14782
14816
|
for (const group of groups) {
|
|
@@ -14793,7 +14827,8 @@ async function runGroupedDirectUpload(arbi, workspaceKey, groups, options) {
|
|
|
14793
14827
|
const result = await uploadDocumentsDirect(arbi, workspaceKey, group.files, {
|
|
14794
14828
|
folder: group.folder || void 0,
|
|
14795
14829
|
configExtId: options.configExtId,
|
|
14796
|
-
workspaceExtId: options.workspaceExtId
|
|
14830
|
+
workspaceExtId: options.workspaceExtId,
|
|
14831
|
+
uploadSet
|
|
14797
14832
|
});
|
|
14798
14833
|
const skipped = result.skipped ?? [];
|
|
14799
14834
|
allDocIds.push(...result.doc_ext_ids);
|
|
@@ -14941,6 +14976,9 @@ async function uploadDirectory(auth, dirPath, options) {
|
|
|
14941
14976
|
}
|
|
14942
14977
|
let currentBatch = 0;
|
|
14943
14978
|
let filesUploaded = 0;
|
|
14979
|
+
const uploadSet = newUploadSet(
|
|
14980
|
+
[...groups.values()].flat().filter((f2) => f2.size <= MAX_FILE_SIZE_BYTES).length
|
|
14981
|
+
);
|
|
14944
14982
|
for (const [folder, batches] of folderBatches) {
|
|
14945
14983
|
const folderDocIds = [];
|
|
14946
14984
|
const folderSkipped = [];
|
|
@@ -14980,7 +15018,8 @@ async function uploadDirectory(auth, dirPath, options) {
|
|
|
14980
15018
|
if (uploadable.length > 0) {
|
|
14981
15019
|
result = await uploadFiles(auth, uploadable, {
|
|
14982
15020
|
folder,
|
|
14983
|
-
configExtId: options?.configExtId
|
|
15021
|
+
configExtId: options?.configExtId,
|
|
15022
|
+
uploadSet
|
|
14984
15023
|
});
|
|
14985
15024
|
}
|
|
14986
15025
|
const skipped = [...batchSkipped, ...result.skipped ?? []];
|
|
@@ -15048,6 +15087,7 @@ async function uploadZip(auth, zipPath, options) {
|
|
|
15048
15087
|
}
|
|
15049
15088
|
let currentBatch = 0;
|
|
15050
15089
|
let filesUploaded = 0;
|
|
15090
|
+
const uploadSet = newUploadSet(entries.length);
|
|
15051
15091
|
for (const [folder, batches] of folderBatches) {
|
|
15052
15092
|
const folderDocIds = [];
|
|
15053
15093
|
const folderSkipped = [];
|
|
@@ -15070,7 +15110,8 @@ async function uploadZip(auth, zipPath, options) {
|
|
|
15070
15110
|
}));
|
|
15071
15111
|
const result = await uploadFiles(auth, blobs, {
|
|
15072
15112
|
folder,
|
|
15073
|
-
configExtId: options?.configExtId
|
|
15113
|
+
configExtId: options?.configExtId,
|
|
15114
|
+
uploadSet
|
|
15074
15115
|
});
|
|
15075
15116
|
const skipped = result.skipped ?? [];
|
|
15076
15117
|
folderDocIds.push(...result.doc_ext_ids ?? []);
|
|
@@ -15236,6 +15277,7 @@ async function uploadManifest(auth, paths, options) {
|
|
|
15236
15277
|
groups.get(pf.folder).push(pf);
|
|
15237
15278
|
}
|
|
15238
15279
|
const totalBytes = prepared.reduce((s2, p2) => s2 + p2.size, 0);
|
|
15280
|
+
const uploadSet = newUploadSet(prepared.length);
|
|
15239
15281
|
let done = outcomes.length;
|
|
15240
15282
|
let bytesDone = 0;
|
|
15241
15283
|
for (const [folder, files] of groups) {
|
|
@@ -15289,7 +15331,7 @@ async function uploadManifest(auth, paths, options) {
|
|
|
15289
15331
|
result = await uploadFiles(
|
|
15290
15332
|
auth,
|
|
15291
15333
|
readable.map((r2) => ({ data: r2.blob, name: r2.f.basename })),
|
|
15292
|
-
{ folder, configExtId: options?.configExtId }
|
|
15334
|
+
{ folder, configExtId: options?.configExtId, uploadSet }
|
|
15293
15335
|
);
|
|
15294
15336
|
lastErr = void 0;
|
|
15295
15337
|
break;
|