@arbidocs/sdk 0.5.110 → 0.5.111
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-B6lX8DjB.d.cts → browser-DfOuJp9A.d.cts} +24 -0
- package/dist/{browser-CBr3cEes.d.ts → browser-DsLJbT3r.d.ts} +24 -0
- package/dist/browser.cjs +58 -4
- 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 +58 -4
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +58 -4
- 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 +58 -4
- 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 { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cC as SkippedFile, ds as UploadResult, t as AuthHeaders, dl as UploadBatchResult, dq as UploadOptions, dm as UploadDirectOptions, dn as UploadDirectResult, cq as SUPPORTED_EXTENSIONS, bk as MailAttachment, S 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 AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aG as DocNameMap, aH as DocumentAutomationAction, aI as DocumentListFields, aJ as DocumentListOrder, aK as DocumentSelector, aL as DocumentWaiter, aM as DocumentWaiterOptions, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aZ as FindTimeParams, a_ as FormattedWsMessage, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, bd as ListAllOptions, be as ListEventsParams, bg as ListPaginatedOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bl as MessageLevel, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b_ as ResolvedRecipient, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, cn as STEP_FIELD_OPTION_TONES, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cJ as StepFieldOption, cK as StepFieldOptionTone, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dr as UploadProgressListener, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dL as agents, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dR as buildDocNameMap, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ee as createDocumentWaiter, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eE as formatStreamSummary, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eI as formatWsMessage, eJ as generateEncryptedWorkspaceKey, eK as generateNewWorkspaceKey, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, ft as performSigningKeyLogin, fu as performSsoDeviceFlowLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fR as signatureRequests, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g1 as uploadSkill, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-
|
|
1
|
+
import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cC as SkippedFile, ds as UploadResult, t as AuthHeaders, dl as UploadBatchResult, dq as UploadOptions, dm as UploadDirectOptions, dn as UploadDirectResult, cq as SUPPORTED_EXTENSIONS, bk as MailAttachment, S as ChatCryptoContext } from './browser-DfOuJp9A.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 AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aG as DocNameMap, aH as DocumentAutomationAction, aI as DocumentListFields, aJ as DocumentListOrder, aK as DocumentSelector, aL as DocumentWaiter, aM as DocumentWaiterOptions, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aZ as FindTimeParams, a_ as FormattedWsMessage, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, bd as ListAllOptions, be as ListEventsParams, bg as ListPaginatedOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bl as MessageLevel, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b_ as ResolvedRecipient, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, cn as STEP_FIELD_OPTION_TONES, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cJ as StepFieldOption, cK as StepFieldOptionTone, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dr as UploadProgressListener, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dL as agents, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dR as buildDocNameMap, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ee as createDocumentWaiter, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eE as formatStreamSummary, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eI as formatWsMessage, eJ as generateEncryptedWorkspaceKey, eK as generateNewWorkspaceKey, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, ft as performSigningKeyLogin, fu as performSsoDeviceFlowLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fR as signatureRequests, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g1 as uploadSkill, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-DfOuJp9A.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 { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cC as SkippedFile, ds as UploadResult, t as AuthHeaders, dl as UploadBatchResult, dq as UploadOptions, dm as UploadDirectOptions, dn as UploadDirectResult, cq as SUPPORTED_EXTENSIONS, bk as MailAttachment, S 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 AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aG as DocNameMap, aH as DocumentAutomationAction, aI as DocumentListFields, aJ as DocumentListOrder, aK as DocumentSelector, aL as DocumentWaiter, aM as DocumentWaiterOptions, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aZ as FindTimeParams, a_ as FormattedWsMessage, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, bd as ListAllOptions, be as ListEventsParams, bg as ListPaginatedOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bl as MessageLevel, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b_ as ResolvedRecipient, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, cn as STEP_FIELD_OPTION_TONES, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cJ as StepFieldOption, cK as StepFieldOptionTone, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dr as UploadProgressListener, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dL as agents, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dR as buildDocNameMap, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ee as createDocumentWaiter, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eE as formatStreamSummary, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eI as formatWsMessage, eJ as generateEncryptedWorkspaceKey, eK as generateNewWorkspaceKey, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, ft as performSigningKeyLogin, fu as performSsoDeviceFlowLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fR as signatureRequests, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g1 as uploadSkill, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-
|
|
1
|
+
import { a4 as ConfigStore, a1 as CliConfig, a2 as CliCredentials, _ as ChatSession, cC as SkippedFile, ds as UploadResult, t as AuthHeaders, dl as UploadBatchResult, dq as UploadOptions, dm as UploadDirectOptions, dn as UploadDirectResult, cq as SUPPORTED_EXTENSIONS, bk as MailAttachment, S as ChatCryptoContext } from './browser-DsLJbT3r.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 AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, z as BridgeTokensOptions, C as CalDavConnectBody, D as CalDavProfile, E as CalendarAccount, F as CalendarAccountKind, G as CalendarCreateBody, H as CalendarEvent, I as CalendarKeys, J as CalendarRead, K as CalendarSettings, L as CalendarSettingsBody, M as CalendarUpdate, N as CalendarWindow, O as CallApiError, P as Capabilities, Q as ChatAttachmentFile, R as ChatAttachmentInput, T as ChatKeyRing, U as ChatKind, V as ChatMemberKey, W as ChatMemberResponse, X as ChatMessage, Y as ChatMessageResponse, Z as ChatResponse, $ as CitationSummary, a0 as CitationToolSources, a3 as CommandDescriptor, a5 as Configuration, a6 as ConfigurationPatch, a7 as ConnectOptions, a8 as ConnectionModel, a9 as ConnectorCatalogEntry, aa as ConnectorFolder, ab as ConnectorSyncProgress, ac as ConnectorSyncStatus, ad as ConnectorVendorKey, ae as ConnectorVisibilitySettings, af as ContextUsage, ag as ConversationResponse, ah as ConversationUsageResponse, ak as CreateWorkRequest, al as CreateWorkflowRequest, am as DEFAULT_AI_USD_PER_GBP, an as DOC_TERMINAL_STATUSES, ao as DRIVE_SYNC_VENDORS, ap as Database, aq as DatabaseAggregateRequest, ar as DatabaseAggregateResult, as as DatabaseColumn, at as DatabaseColumnWrite, au as DatabaseImportResult, av as DatabaseRow, aw as DatabaseRowPage, ax as DatabaseRowsQuery, ay as DateTimeSpec, az as DecryptedChat, aA as DecryptedChatMessage, aB as DeploymentHouseTemplate, aC as DiagnoseOptions, aD as DirectModelUsage, aE as DocInfo, aF as DocInfoMap, aG as DocNameMap, aH as DocumentAutomationAction, aI as DocumentListFields, aJ as DocumentListOrder, aK as DocumentSelector, aL as DocumentWaiter, aM as DocumentWaiterOptions, aN as DriveSyncProgress, aO as DriveSyncSummary, aP as DuplicateContactError, aQ as ENTITY_KINDS, aR as EditScope, aS as EntityKind, aT as EventCreateBody, aU as EventPatchBody, aV as FLAT_TAG_KINDS, aZ as FindTimeParams, a_ as FormattedWsMessage, a$ as FreeBusyEntry, b0 as FullContextSelection, b1 as GOOGLE_VENDORS, b2 as HolidayCountry, b3 as HouseTemplateCandidate, b4 as IMANAGE_VENDORS, b5 as IdentityErrorCode, b6 as IdentityPurchase, b7 as IdentityState, b8 as IdentityStatus, b9 as ImportResult, ba as InvitationRead, bb as JsonSchemaOutputFormat, bc as LinkedRun, bd as ListAllOptions, be as ListEventsParams, bg as ListPaginatedOptions, bh as MAILBOX_SYNC_VENDORS, bi as MAX_RETRIEVE_DOC_IDS, bj as MICROSOFT_VENDORS, bl as MessageLevel, bm as ModelConnection, bn as OAuthAccountKind, bo as OutputItemDone, bp as OverlayItem, bq as OverlayLayerName, br as PRESENCE_KINDS, bs as PROMPT_CONTEXT_CHARS, bt as ParsedResponse, bu as ParsedSlashCommand, bv as ParsedStructuredResponse, bw as PendingAuthResponse, bx as PersonKey, by as PersonalConnectionInput, bz as PlanStepsError, bA as PlanWorkRequest, bB as ProductResponse, bC as ProjectAddonKind, bD as ProjectAddonSettingsRequest, bE as ProjectBudget, bF as ProjectCheckoutRequest, bG as ProjectConversationUsageResponse, bH as ProjectCreateOptions, bI as ProjectDetails, bJ as ProjectEventKind, bK as ProjectEventResponse, bL as ProjectInvoicesResponse, bM as ProjectNextPeriodAddonsRequest, bN as ProjectPlanChangeRequest, bO as ProjectQuoteRequest, bP as ProjectResponse, bQ as ProjectUpdateRequest, bR as ProjectUsageResponse, bS as PublicBookingError, bT as PublicBookingPage, bU as QuotaExceeded, bV as RaisedSignal, bW as RawResponseEvent, bX as ReconnectOptions, bY as ReconnectableWsConnection, bZ as ResolvedCitation, b_ as ResolvedRecipient, b$ as RespondParams, c0 as RespondPartstat, c1 as Response, c2 as ResponseCreateRequest, c3 as ResponseCreateResult, c4 as ResponseHandle, c5 as ResponseSnapshot, c6 as ResponseStart, c7 as ResponseStartOptions, c8 as ResponseStream, c9 as ResponseStreamEvent, ca as ResponseTools, cb as RoomCreateBody, cc as RoomQuery, cd as RoomRead, ce as RunProgress, cf as RunStats, cg as RunStep, ch as RunWaitingOn, ci as SHAREPOINT_VENDORS, cj as SSEEvent, ck as SSEStreamCallbacks, cl as SSEStreamOutcome, cm as SSEStreamResult, cn as STEP_FIELD_OPTION_TONES, co as STOP_ID_WAIT_MS, cp as STOP_REPEAT_WINDOW_MS, cr as ScopedTarget, cs as SearchChunk, ct as SecureMailCompose, cu as SecureMailSend, cv as SecureMailSender, cw as SendBack, cx as SetupDiagnostic, cy as SetupReport, cz as ShareRead, cA as ShareRole, cB as SkillSummary, cD as SlackConnectionStatus, cE as StepActionRequest, cF as StepActivityEvent, cG as StepAssignee, cH as StepDisplay, cI as StepField, cJ as StepFieldOption, cK as StepFieldOptionTone, cL as StepKind, cM as StepPhase, cN as StepSignal, cO as StepSignalWhen, cP as StepState, cQ as StepStatus, cR as SubagentBranchRecord, cS as SubagentLaneInfo, cT as SubmitBackgroundQueryOptions, cU as SubscribeParams, cV as SupportRating, cW as SupportTicket, cX as SupportTicketInput, cY as SyncTriggerResult, cZ as TAG_KINDS, c_ as TAG_NESTING_MAX_DEPTH, c$ as TagChange, d0 as TagFieldDefinition, d1 as TagGroup, d2 as TagKind, d3 as TagKindField, d4 as TagKindSchema, d5 as TagLinks, d6 as TagListQuery, d7 as TagNode, d8 as TagResponse, d9 as TagScope, da as TagTreeRow, db as TaskPlan, dc as TaskPlanStep, dd as TaxQuoteResponse, de as Thread, df as ThreadsResponse, dg as TimeSuggestion, dh as TurnRequest, di as UpdateConversationRequest, dk as UpdateWorkflowRequest, dp as UploadDocumentsOptions, dr as UploadProgressListener, dt as UsageBreakdown, du as UserConnectorEntry, dv as UserDailyUsageResponse, dw as UserInfo, dx as WebSocketAuthError, dy as WeeklyHoursSpec, dz as WorkStatus, dA as WorkflowAuthMode, dB as WorkflowResponse, dC as WorkflowRunHistoryResponse, dD as WorkflowRunResponse, dE as WorkspaceConflict, dF as WorkspaceContext, dG as WorkspaceOpenResponse, dH as WorkspaceResponse, dI as WsConnection, dJ as account, dK as agentconfig, dL as agents, dM as appendTranscriptionHints, dN as assistant, dO as authenticatedFetch, dP as bookPublicSlot, dQ as buildCitationChunkData, dR as buildDocNameMap, dS as buildDocumentTools, dT as buildFactsContextTool, dU as buildRetrievalChunkTool, dV as buildRetrievalFullContextTool, dW as buildRetrievalTocTool, dX as buildTurnRequest, dY as calendar, dZ as calls, d_ as canTagHaveParent, d$ as cancelPublicBooking, e0 as capabilities, e1 as chats, e2 as composeConfiguration, e3 as composeTools, e4 as computeRunStats, e5 as connectErrorMessage, e6 as connectWebSocket, e7 as connectWithReconnect, e8 as connectors, e9 as contacts, ea as continuityPrompt, eb as conversations, ec as countCitations, ed as createAuthenticatedClient, ee as createDocumentWaiter, ef as createIndexAssigner, eg as databases, eh as defaultKindForFormat, ei as diagnoseSetup, ej as doctags, ek as documentTools, el as documents, em as estimateDraftTokens, en as extractDocumentIdsFromMessages, eo as extractFactIdsFromMessages, ep as extractSubagentLanes, eq as facts, er as files, es as filterDocumentTags, et as filterSkills, eu as findLeafForTaskMessage, ev as findMainSiblingLeaf, ew as findReplyTarget, ex as findSubagentRunId, ey as flattenTagTree, ez as formatAgentStepLabel, eA as formatFileSize, eB as formatGbp, eC as formatGbpPerMillionTokens, eD as formatItemLabel, eE as formatStreamSummary, eF as formatTokens, eG as formatUserName, eH as formatWorkspaceChoices, eI as formatWsMessage, eJ as generateEncryptedWorkspaceKey, eK as generateNewWorkspaceKey, eL as getAgentStepLabel, eM as getAttachableRunId, eN as getChildTags, eO as getContextRemainingPercent, eP as getContextUsedPercent, eQ as getContextUsedTokens, eR as getCurrentStep, eS as getEligibleParentTags, eT as getErrorCode, eU as getErrorMessage, eV as getPublicBookingPage, eW as getRawWorkspaceKey, eX as getRunToAttach, eY as getRunToCancel, eZ as getStepDisplay, e_ as getStepTool, e$ as getSubagentBranchRecord, f0 as getTagDescendantIds, f1 as health, f2 as houseTemplates, f3 as hydrateAgentSteps, f5 as identityErrorCode, f4 as identityVerification, f6 as instructions, f7 as isAnnotationTag, f8 as isConnectorVendorVisible, f9 as isDriveSyncVendor, fa as isEntityTag, fb as isFlatKind, fc as isLabelTag, fd as isMailboxSyncVendor, fe as isNearAiUsageBudget, ff as isPresenceTag, fg as isSharePointVendor, fh as isSharedSkill, fi as isTraceItem, fj as mail, fk as mcpTools, fl as mergeAgentSteps, fm as modelConnections, fn as notifications, fo as parseSSEEvents, fp as parseSlashCommand, fq as parseSlashTokenInProgress, fr as parseStructuredResponse, fs as performPasswordLogin, ft as performSigningKeyLogin, fu as performSsoDeviceFlowLogin, fv as pickMainThread, fw as profile, fx as progressFetch, fy as projects, fz as quotaExceededFrom, fA as quotaFromStreamError, fB as reduceOutputItem, fC as refusalReason, fD as requireData, fE as requireOk, fF as resolveAuth, fG as resolveCitations, fH as resolveSummary, fI as resolveWorkspace, fJ as responses, fK as searchChunks, fL as secureMail, fM as selectFullContextDocument, fN as selectWorkspace, fO as selectWorkspaceById, fP as sessions, fQ as settings, fR as signatureRequests, fS as sliceToSubagentThread, fT as streamSSE, fU as stripCitationMarkdown, fV as subagentJobLabel, fW as summarizeCitations, fX as support, fY as tagUseCount, fZ as tags, f_ as tagsForScope, f$ as tagsOfGroup, g0 as topLevelAgentSteps, g1 as uploadSkill, g2 as usdToGbp, g3 as work, g4 as workflowSteps, g5 as workflows, g6 as workspaceConflictOf, g7 as workspaces, g8 as wouldCreateTagCycle } from './browser-DsLJbT3r.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
|
@@ -4538,7 +4538,7 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
4538
4538
|
});
|
|
4539
4539
|
}
|
|
4540
4540
|
const reader = response.body.getReader();
|
|
4541
|
-
const
|
|
4541
|
+
const decoder2 = new TextDecoder("utf-8");
|
|
4542
4542
|
let sseBuffer = "";
|
|
4543
4543
|
let text2 = "";
|
|
4544
4544
|
let assistantMessageExtId = null;
|
|
@@ -4765,7 +4765,7 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
4765
4765
|
const { done, value } = chunk2;
|
|
4766
4766
|
if (done) break;
|
|
4767
4767
|
const { events, remaining } = parseSSEEvents(
|
|
4768
|
-
|
|
4768
|
+
decoder2.decode(value, { stream: true }),
|
|
4769
4769
|
sseBuffer
|
|
4770
4770
|
);
|
|
4771
4771
|
sseBuffer = remaining;
|
|
@@ -6281,12 +6281,12 @@ function consumeResponse(response, controller, cancel, options = {}) {
|
|
|
6281
6281
|
if (controller.signal.aborted) abort();
|
|
6282
6282
|
else if (options.id) bind(options.id);
|
|
6283
6283
|
void (async () => {
|
|
6284
|
-
const
|
|
6284
|
+
const decoder2 = new TextDecoder();
|
|
6285
6285
|
const frames = new ResponseEventDecoder();
|
|
6286
6286
|
try {
|
|
6287
6287
|
while (!finished) {
|
|
6288
6288
|
const { value, done } = await reader.read();
|
|
6289
|
-
for (const frame of frames.push(
|
|
6289
|
+
for (const frame of frames.push(decoder2.decode(value, { stream: !done }), done)) {
|
|
6290
6290
|
process2(frame);
|
|
6291
6291
|
if (options.bufferEvents && bound && !finished && !iteratorClosed && queue.length >= 256)
|
|
6292
6292
|
await new Promise((resolve2) => {
|
|
@@ -9565,6 +9565,45 @@ async function cancelSubscription(arbi, projectExtId) {
|
|
|
9565
9565
|
"Failed to cancel the subscription"
|
|
9566
9566
|
);
|
|
9567
9567
|
}
|
|
9568
|
+
var encoder = new TextEncoder();
|
|
9569
|
+
var decoder = new TextDecoder();
|
|
9570
|
+
var seal = (json2, keypair) => sealedBoxEncrypt(Uint8Array.from(encoder.encode(json2)), keypair.publicKey);
|
|
9571
|
+
async function listUserDashboards(arbi, keypair) {
|
|
9572
|
+
const rows = requireData(
|
|
9573
|
+
await arbi.fetch.GET("/v1/user/dashboards"),
|
|
9574
|
+
"Failed to load your dashboards"
|
|
9575
|
+
);
|
|
9576
|
+
return rows.map((row) => {
|
|
9577
|
+
let json2 = null;
|
|
9578
|
+
try {
|
|
9579
|
+
json2 = decoder.decode(sealedBoxDecrypt(row.ciphertext, keypair.secretKey));
|
|
9580
|
+
} catch {
|
|
9581
|
+
}
|
|
9582
|
+
return { id: row.external_id, json: json2, updatedAt: row.updated_at };
|
|
9583
|
+
});
|
|
9584
|
+
}
|
|
9585
|
+
async function saveUserDashboard(arbi, keypair, dashboard) {
|
|
9586
|
+
const body = { ciphertext: seal(dashboard.json, keypair) };
|
|
9587
|
+
const row = dashboard.id ? requireData(
|
|
9588
|
+
await arbi.fetch.PUT("/v1/user/dashboards/{dashboard_ext_id}", {
|
|
9589
|
+
params: { path: { dashboard_ext_id: dashboard.id } },
|
|
9590
|
+
body
|
|
9591
|
+
}),
|
|
9592
|
+
"Failed to save the dashboard"
|
|
9593
|
+
) : requireData(
|
|
9594
|
+
await arbi.fetch.POST("/v1/user/dashboards", { body }),
|
|
9595
|
+
"Failed to save the dashboard"
|
|
9596
|
+
);
|
|
9597
|
+
return { id: row.external_id, json: dashboard.json, updatedAt: row.updated_at };
|
|
9598
|
+
}
|
|
9599
|
+
async function deleteUserDashboard(arbi, id) {
|
|
9600
|
+
requireOk(
|
|
9601
|
+
await arbi.fetch.DELETE("/v1/user/dashboards/{dashboard_ext_id}", {
|
|
9602
|
+
params: { path: { dashboard_ext_id: id } }
|
|
9603
|
+
}),
|
|
9604
|
+
"Failed to delete the dashboard"
|
|
9605
|
+
);
|
|
9606
|
+
}
|
|
9568
9607
|
|
|
9569
9608
|
// src/operations/work.ts
|
|
9570
9609
|
var work_exports = {};
|
|
@@ -12689,6 +12728,21 @@ var Arbi = class {
|
|
|
12689
12728
|
*/
|
|
12690
12729
|
me: () => getCurrentUser(this.requireClient())
|
|
12691
12730
|
};
|
|
12731
|
+
// ── Saved Analytics dashboards (the person's own, sealed to their key) ──
|
|
12732
|
+
dashboards = {
|
|
12733
|
+
/** The user's saved dashboards (each spec's JSON), oldest first. */
|
|
12734
|
+
list: async () => listUserDashboards(
|
|
12735
|
+
this.requireClient(),
|
|
12736
|
+
(await this.requireChatCrypto()).encryptionKeypair
|
|
12737
|
+
),
|
|
12738
|
+
/** Save a dashboard's spec JSON (new without `id`, else replaced). */
|
|
12739
|
+
save: async (dashboard) => saveUserDashboard(
|
|
12740
|
+
this.requireClient(),
|
|
12741
|
+
(await this.requireChatCrypto()).encryptionKeypair,
|
|
12742
|
+
dashboard
|
|
12743
|
+
),
|
|
12744
|
+
remove: (id) => deleteUserDashboard(this.requireClient(), id)
|
|
12745
|
+
};
|
|
12692
12746
|
// ── Firm ──────────────────────────────────────────────────────────────
|
|
12693
12747
|
firm = {
|
|
12694
12748
|
/** The firm's pooled monthly £ of AI usage (`has_pool` false where there is none). */
|