@arbidocs/sdk 0.4.148 → 0.4.150
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-DtMlqla7.d.cts → browser-CYDtwz9K.d.cts} +182 -4
- package/dist/{browser-DtMlqla7.d.ts → browser-CYDtwz9K.d.ts} +182 -4
- package/dist/browser.cjs +146 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +127 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +146 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +127 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as ConfigStore, X as CliConfig, Y as CliCredentials, U as ChatSession,
|
|
2
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, k as ArbiHostSession, l as ArbiOptions, m as ArbiSessionExpiredError, n as ArtifactEvent, o as AttendeeRead, p as AuthContext, r as AuthMode, s as AuthenticatedClient, B as BookingConfirmation, t as BookingPage, u as BookingPageWriteBody, v as BookingRequestBody, w as BridgeTokensOptions, C as CalDavConnectBody, x as CalDavProfile, y as CalendarAccount, z as CalendarAccountKind, D as CalendarCreateBody, E as CalendarEvent, F as CalendarKeys, G as CalendarRead, H as CalendarSettings, I as CalendarSettingsBody, J as CalendarUpdate, K as CalendarWindow, L as ChatAttachmentFile, M as ChatAttachmentInput, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessageResponse, T as ChatResponse, V as CitationSummary, W as CitationToolSources, Z as CommandDescriptor, $ as ConnectOptions, a0 as ConnectorCatalogEntry, a1 as ConnectorFolder, a2 as ConnectorSyncProgress, a3 as ConnectorSyncStatus, a4 as ConnectorVendorKey, a5 as ConnectorVisibilitySettings, a6 as ConversationResponse, a7 as ConversationUsageResponse, aa as CreateWorkRequest, ab as CreateWorkflowRequest, ac as DEFAULT_AI_USD_PER_GBP, ad as DOC_TERMINAL_STATUSES, ae as DRIVE_SYNC_VENDORS, af as DateTimeSpec, ag as DecryptedChat, ah as DecryptedChatMessage, aj as DeploymentHouseTemplate, 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
|
|
1
|
+
import { _ as ConfigStore, X as CliConfig, Y as CliCredentials, U as ChatSession, c2 as SkippedFile, cK as UploadResult, q as AuthHeaders, cF as UploadBatchResult, cJ as UploadOptions, cG as UploadDirectOptions, cH as UploadDirectResult, bX as SUPPORTED_EXTENSIONS, aX as MailAttachment, N as ChatCryptoContext } from './browser-CYDtwz9K.cjs';
|
|
2
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, k as ArbiHostSession, l as ArbiOptions, m as ArbiSessionExpiredError, n as ArtifactEvent, o as AttendeeRead, p as AuthContext, r as AuthMode, s as AuthenticatedClient, B as BookingConfirmation, t as BookingPage, u as BookingPageWriteBody, v as BookingRequestBody, w as BridgeTokensOptions, C as CalDavConnectBody, x as CalDavProfile, y as CalendarAccount, z as CalendarAccountKind, D as CalendarCreateBody, E as CalendarEvent, F as CalendarKeys, G as CalendarRead, H as CalendarSettings, I as CalendarSettingsBody, J as CalendarUpdate, K as CalendarWindow, L as ChatAttachmentFile, M as ChatAttachmentInput, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessageResponse, T as ChatResponse, V as CitationSummary, W as CitationToolSources, Z as CommandDescriptor, $ as ConnectOptions, a0 as ConnectorCatalogEntry, a1 as ConnectorFolder, a2 as ConnectorSyncProgress, a3 as ConnectorSyncStatus, a4 as ConnectorVendorKey, a5 as ConnectorVisibilitySettings, a6 as ConversationResponse, a7 as ConversationUsageResponse, aa as CreateWorkRequest, ab as CreateWorkflowRequest, ac as DEFAULT_AI_USD_PER_GBP, ad as DOC_TERMINAL_STATUSES, ae as DRIVE_SYNC_VENDORS, af as DateTimeSpec, ag as DecryptedChat, ah as DecryptedChatMessage, aj as DeploymentHouseTemplate, 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 ENTITY_KINDS, au as EditScope, av as EntityKind, aw as EventCreateBody, ax as EventPatchBody, ay as FLAT_TAG_KINDS, aC as FindTimeParams, aD as FormattedWsMessage, aE as FreeBusyEntry, aF as GOOGLE_VENDORS, aG as HolidayCountry, aH as HouseTemplateCandidate, aI as IMANAGE_VENDORS, aJ as IdentityErrorCode, aK as IdentityPurchase, aL as IdentityState, aM as IdentityStatus, aN as ImportResult, aO as InvitationRead, aP as LinkedRun, aQ as ListAllOptions, aR as ListEventsParams, aT as ListPaginatedOptions, aU as MAILBOX_SYNC_VENDORS, aV as MAX_RETRIEVE_DOC_IDS, aW as MICROSOFT_VENDORS, aY as MailDraftSSEEvent, aZ as MessageLevel, a_ as MessageMetadataPayload, a$ as MessageQueuedEvent, b0 as OAuthAccountKind, b1 as OutputTokensDetails, b2 as OverlayItem, b3 as OverlayLayerName, b4 as PRESENCE_KINDS, b5 as ParsedSlashCommand, b6 as PendingAuthResponse, b7 as PersonKey, b8 as PlanStepsError, b9 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 QueryOptions, bv as RaisedSignal, bw as ReconnectOptions, bx as ReconnectableWsConnection, by as ResolvedCitation, bz as ResolvedRecipient, bA as RespondParams, bB as RespondPartstat, bC as ResponseCompletedEvent, bD as ResponseContentPartAddedEvent, bE as ResponseCreatedEvent, bF as ResponseFailedEvent, bG as ResponseOutputItemAddedEvent, bH as ResponseOutputItemDoneEvent, bI as ResponseOutputTextDeltaEvent, bJ as ResponseOutputTextDoneEvent, bK as ResponseUsage, bL as RoomCreateBody, bM as RoomQuery, bN as RoomRead, bO as RunProgress, bP as RunStep, bQ as RunWaitingOn, bR as SHAREPOINT_VENDORS, bS as SSEEvent, bT as SSEStreamCallbacks, bU as SSEStreamResult, bV as SSEStreamStartData, bW as STEP_FIELD_OPTION_TONES, bY as ScopedTarget, bZ as SearchChunk, b_ as SendBack, b$ as ShareRead, c0 as ShareRole, c1 as SkillSummary, c3 as SlackConnectionStatus, c4 as StepActionRequest, c5 as StepActivityEvent, c6 as StepAssignee, c7 as StepField, c8 as StepFieldOption, c9 as StepFieldOptionTone, ca as StepKind, cb as StepPhase, cc as StepSignal, cd as StepSignalWhen, ce as StepState, cf as StepStatus, cg as SubmitBackgroundQueryOptions, ch as SubscribeParams, ci as SyncTriggerResult, cj as TAG_KINDS, ck as TAG_NESTING_MAX_DEPTH, cl as TagChange, cm as TagFieldDefinition, cn as TagGroup, co as TagKind, cp as TagKindField, cq as TagKindSchema, cr as TagLinks, cs as TagListQuery, ct as TagNode, cu as TagResponse, cv as TagScope, cw as TagTreeRow, cx as TaskPlan, cy as TaskPlanStep, cz as TaxQuoteResponse, cA as TimeSuggestion, cB as TokenBudgetContext, cC as UpdateConversationRequest, cE as UpdateWorkflowRequest, cI as UploadDocumentsOptions, cL as UsageBreakdown, cM as UserConnectorEntry, cN as UserDailyUsageResponse, cO as UserInfo, cP as UserInputRequestEvent, cQ as UserMessageEvent, cR as WebSocketAuthError, cS as WeeklyHoursSpec, cT as WorkStatus, cU as WorkflowAuthMode, cV as WorkflowResponse, cW as WorkflowRunHistoryResponse, cX as WorkflowRunResponse, cY as WorkspaceContext, cZ as WsConnection, c_ as account, c$ as agentconfig, d0 as agents, d1 as assistant, d2 as authenticatedFetch, d3 as bookPublicSlot, d4 as buildCitationChunkData, d5 as buildDocNameMap, d6 as buildFactsContextTool, d7 as buildRetrievalChunkTool, d8 as buildRetrievalFullContextTool, d9 as buildRetrievalTocTool, da as calendar, db as canTagHaveParent, dc as cancelPublicBooking, dd as chats, de as connectErrorMessage, df as connectWebSocket, dg as connectWithReconnect, dh as connectors, di as consumeSSEStream, dj as contacts, dk as conversations, dl as countCitations, dm as createAuthenticatedClient, dn as createDocumentWaiter, dp as defaultKindForFormat, dq as doctags, dr as documents, ds as facts, dt as files, du as filterDocumentTags, dv as filterSkills, dw as flattenTagTree, dx as formatAgentStepLabel, dy as formatFileSize, dz as formatGbp, dA as formatGbpPerMillionTokens, dB as formatItemLabel, dC as formatStreamSummary, dD as formatUserName, dE as formatWorkspaceChoices, dF as formatWsMessage, dG as generateEncryptedWorkspaceKey, dH as generateNewWorkspaceKey, dI as getChildTags, dJ as getEligibleParentTags, dK as getErrorCode, dL as getErrorMessage, dM as getPublicBookingPage, dN as getRawWorkspaceKey, dO as getTagDescendantIds, dP as health, dQ as houseTemplates, dS as identityErrorCode, dR as identityVerification, dT as isAnnotationTag, dU as isConnectorVendorVisible, dV as isDriveSyncVendor, dW as isEntityTag, dX as isFlatKind, dY as isLabelTag, dZ as isMailboxSyncVendor, d_ as isPresenceTag, d$ as isSharePointVendor, e0 as isSharedSkill, e1 as mail, e2 as notifications, e3 as parseSSEEvents, e4 as parseSlashCommand, e5 as parseSlashTokenInProgress, e6 as performPasswordLogin, e7 as performSigningKeyLogin, e8 as performSsoDeviceFlowLogin, e9 as profile, ea as projects, eb as refusalReason, ec as requireData, ed as requireOk, ee as resolveAuth, ef as resolveCitations, eg as resolveWorkspace, eh as responses, ei as searchChunks, ej as selectWorkspace, ek as selectWorkspaceById, el as sessions, em as settings, en as signatureRequests, eo as streamSSE, ep as stripCitationMarkdown, eq as summarizeCitations, er as tagUseCount, es as tags, et as tagsForScope, eu as tagsOfGroup, ev as uploadSkill, ew as usdToGbp, ex as work, ey as workflowSteps, ez as workflows, eA as workspaces, eB as wouldCreateTagCycle } from './browser-CYDtwz9K.cjs';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as ConfigStore, X as CliConfig, Y as CliCredentials, U as ChatSession,
|
|
2
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, k as ArbiHostSession, l as ArbiOptions, m as ArbiSessionExpiredError, n as ArtifactEvent, o as AttendeeRead, p as AuthContext, r as AuthMode, s as AuthenticatedClient, B as BookingConfirmation, t as BookingPage, u as BookingPageWriteBody, v as BookingRequestBody, w as BridgeTokensOptions, C as CalDavConnectBody, x as CalDavProfile, y as CalendarAccount, z as CalendarAccountKind, D as CalendarCreateBody, E as CalendarEvent, F as CalendarKeys, G as CalendarRead, H as CalendarSettings, I as CalendarSettingsBody, J as CalendarUpdate, K as CalendarWindow, L as ChatAttachmentFile, M as ChatAttachmentInput, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessageResponse, T as ChatResponse, V as CitationSummary, W as CitationToolSources, Z as CommandDescriptor, $ as ConnectOptions, a0 as ConnectorCatalogEntry, a1 as ConnectorFolder, a2 as ConnectorSyncProgress, a3 as ConnectorSyncStatus, a4 as ConnectorVendorKey, a5 as ConnectorVisibilitySettings, a6 as ConversationResponse, a7 as ConversationUsageResponse, aa as CreateWorkRequest, ab as CreateWorkflowRequest, ac as DEFAULT_AI_USD_PER_GBP, ad as DOC_TERMINAL_STATUSES, ae as DRIVE_SYNC_VENDORS, af as DateTimeSpec, ag as DecryptedChat, ah as DecryptedChatMessage, aj as DeploymentHouseTemplate, 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
|
|
1
|
+
import { _ as ConfigStore, X as CliConfig, Y as CliCredentials, U as ChatSession, c2 as SkippedFile, cK as UploadResult, q as AuthHeaders, cF as UploadBatchResult, cJ as UploadOptions, cG as UploadDirectOptions, cH as UploadDirectResult, bX as SUPPORTED_EXTENSIONS, aX as MailAttachment, N as ChatCryptoContext } from './browser-CYDtwz9K.js';
|
|
2
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, k as ArbiHostSession, l as ArbiOptions, m as ArbiSessionExpiredError, n as ArtifactEvent, o as AttendeeRead, p as AuthContext, r as AuthMode, s as AuthenticatedClient, B as BookingConfirmation, t as BookingPage, u as BookingPageWriteBody, v as BookingRequestBody, w as BridgeTokensOptions, C as CalDavConnectBody, x as CalDavProfile, y as CalendarAccount, z as CalendarAccountKind, D as CalendarCreateBody, E as CalendarEvent, F as CalendarKeys, G as CalendarRead, H as CalendarSettings, I as CalendarSettingsBody, J as CalendarUpdate, K as CalendarWindow, L as ChatAttachmentFile, M as ChatAttachmentInput, O as ChatKeyRing, P as ChatKind, Q as ChatMemberKey, R as ChatMemberResponse, S as ChatMessageResponse, T as ChatResponse, V as CitationSummary, W as CitationToolSources, Z as CommandDescriptor, $ as ConnectOptions, a0 as ConnectorCatalogEntry, a1 as ConnectorFolder, a2 as ConnectorSyncProgress, a3 as ConnectorSyncStatus, a4 as ConnectorVendorKey, a5 as ConnectorVisibilitySettings, a6 as ConversationResponse, a7 as ConversationUsageResponse, aa as CreateWorkRequest, ab as CreateWorkflowRequest, ac as DEFAULT_AI_USD_PER_GBP, ad as DOC_TERMINAL_STATUSES, ae as DRIVE_SYNC_VENDORS, af as DateTimeSpec, ag as DecryptedChat, ah as DecryptedChatMessage, aj as DeploymentHouseTemplate, 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 ENTITY_KINDS, au as EditScope, av as EntityKind, aw as EventCreateBody, ax as EventPatchBody, ay as FLAT_TAG_KINDS, aC as FindTimeParams, aD as FormattedWsMessage, aE as FreeBusyEntry, aF as GOOGLE_VENDORS, aG as HolidayCountry, aH as HouseTemplateCandidate, aI as IMANAGE_VENDORS, aJ as IdentityErrorCode, aK as IdentityPurchase, aL as IdentityState, aM as IdentityStatus, aN as ImportResult, aO as InvitationRead, aP as LinkedRun, aQ as ListAllOptions, aR as ListEventsParams, aT as ListPaginatedOptions, aU as MAILBOX_SYNC_VENDORS, aV as MAX_RETRIEVE_DOC_IDS, aW as MICROSOFT_VENDORS, aY as MailDraftSSEEvent, aZ as MessageLevel, a_ as MessageMetadataPayload, a$ as MessageQueuedEvent, b0 as OAuthAccountKind, b1 as OutputTokensDetails, b2 as OverlayItem, b3 as OverlayLayerName, b4 as PRESENCE_KINDS, b5 as ParsedSlashCommand, b6 as PendingAuthResponse, b7 as PersonKey, b8 as PlanStepsError, b9 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 QueryOptions, bv as RaisedSignal, bw as ReconnectOptions, bx as ReconnectableWsConnection, by as ResolvedCitation, bz as ResolvedRecipient, bA as RespondParams, bB as RespondPartstat, bC as ResponseCompletedEvent, bD as ResponseContentPartAddedEvent, bE as ResponseCreatedEvent, bF as ResponseFailedEvent, bG as ResponseOutputItemAddedEvent, bH as ResponseOutputItemDoneEvent, bI as ResponseOutputTextDeltaEvent, bJ as ResponseOutputTextDoneEvent, bK as ResponseUsage, bL as RoomCreateBody, bM as RoomQuery, bN as RoomRead, bO as RunProgress, bP as RunStep, bQ as RunWaitingOn, bR as SHAREPOINT_VENDORS, bS as SSEEvent, bT as SSEStreamCallbacks, bU as SSEStreamResult, bV as SSEStreamStartData, bW as STEP_FIELD_OPTION_TONES, bY as ScopedTarget, bZ as SearchChunk, b_ as SendBack, b$ as ShareRead, c0 as ShareRole, c1 as SkillSummary, c3 as SlackConnectionStatus, c4 as StepActionRequest, c5 as StepActivityEvent, c6 as StepAssignee, c7 as StepField, c8 as StepFieldOption, c9 as StepFieldOptionTone, ca as StepKind, cb as StepPhase, cc as StepSignal, cd as StepSignalWhen, ce as StepState, cf as StepStatus, cg as SubmitBackgroundQueryOptions, ch as SubscribeParams, ci as SyncTriggerResult, cj as TAG_KINDS, ck as TAG_NESTING_MAX_DEPTH, cl as TagChange, cm as TagFieldDefinition, cn as TagGroup, co as TagKind, cp as TagKindField, cq as TagKindSchema, cr as TagLinks, cs as TagListQuery, ct as TagNode, cu as TagResponse, cv as TagScope, cw as TagTreeRow, cx as TaskPlan, cy as TaskPlanStep, cz as TaxQuoteResponse, cA as TimeSuggestion, cB as TokenBudgetContext, cC as UpdateConversationRequest, cE as UpdateWorkflowRequest, cI as UploadDocumentsOptions, cL as UsageBreakdown, cM as UserConnectorEntry, cN as UserDailyUsageResponse, cO as UserInfo, cP as UserInputRequestEvent, cQ as UserMessageEvent, cR as WebSocketAuthError, cS as WeeklyHoursSpec, cT as WorkStatus, cU as WorkflowAuthMode, cV as WorkflowResponse, cW as WorkflowRunHistoryResponse, cX as WorkflowRunResponse, cY as WorkspaceContext, cZ as WsConnection, c_ as account, c$ as agentconfig, d0 as agents, d1 as assistant, d2 as authenticatedFetch, d3 as bookPublicSlot, d4 as buildCitationChunkData, d5 as buildDocNameMap, d6 as buildFactsContextTool, d7 as buildRetrievalChunkTool, d8 as buildRetrievalFullContextTool, d9 as buildRetrievalTocTool, da as calendar, db as canTagHaveParent, dc as cancelPublicBooking, dd as chats, de as connectErrorMessage, df as connectWebSocket, dg as connectWithReconnect, dh as connectors, di as consumeSSEStream, dj as contacts, dk as conversations, dl as countCitations, dm as createAuthenticatedClient, dn as createDocumentWaiter, dp as defaultKindForFormat, dq as doctags, dr as documents, ds as facts, dt as files, du as filterDocumentTags, dv as filterSkills, dw as flattenTagTree, dx as formatAgentStepLabel, dy as formatFileSize, dz as formatGbp, dA as formatGbpPerMillionTokens, dB as formatItemLabel, dC as formatStreamSummary, dD as formatUserName, dE as formatWorkspaceChoices, dF as formatWsMessage, dG as generateEncryptedWorkspaceKey, dH as generateNewWorkspaceKey, dI as getChildTags, dJ as getEligibleParentTags, dK as getErrorCode, dL as getErrorMessage, dM as getPublicBookingPage, dN as getRawWorkspaceKey, dO as getTagDescendantIds, dP as health, dQ as houseTemplates, dS as identityErrorCode, dR as identityVerification, dT as isAnnotationTag, dU as isConnectorVendorVisible, dV as isDriveSyncVendor, dW as isEntityTag, dX as isFlatKind, dY as isLabelTag, dZ as isMailboxSyncVendor, d_ as isPresenceTag, d$ as isSharePointVendor, e0 as isSharedSkill, e1 as mail, e2 as notifications, e3 as parseSSEEvents, e4 as parseSlashCommand, e5 as parseSlashTokenInProgress, e6 as performPasswordLogin, e7 as performSigningKeyLogin, e8 as performSsoDeviceFlowLogin, e9 as profile, ea as projects, eb as refusalReason, ec as requireData, ed as requireOk, ee as resolveAuth, ef as resolveCitations, eg as resolveWorkspace, eh as responses, ei as searchChunks, ej as selectWorkspace, ek as selectWorkspaceById, el as sessions, em as settings, en as signatureRequests, eo as streamSSE, ep as stripCitationMarkdown, eq as summarizeCitations, er as tagUseCount, es as tags, et as tagsForScope, eu as tagsOfGroup, ev as uploadSkill, ew as usdToGbp, ex as work, ey as workflowSteps, ez as workflows, eA as workspaces, eB as wouldCreateTagCycle } from './browser-CYDtwz9K.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -3524,6 +3524,10 @@ var ArbiApiError = class extends ArbiError {
|
|
|
3524
3524
|
this.detail = apiErrorDetail(apiError);
|
|
3525
3525
|
}
|
|
3526
3526
|
};
|
|
3527
|
+
function refusalReason(err, fallback) {
|
|
3528
|
+
if (err instanceof ArbiApiError) return err.detail || fallback;
|
|
3529
|
+
return apiErrorDetail(err) || fallback;
|
|
3530
|
+
}
|
|
3527
3531
|
function requireData(result, message) {
|
|
3528
3532
|
if (result.error || !result.data) {
|
|
3529
3533
|
throw new ArbiApiError(message, result.error, result.response?.status);
|
|
@@ -5530,6 +5534,7 @@ async function listHouseTemplateCandidates(arbi) {
|
|
|
5530
5534
|
// src/operations/workspaces.ts
|
|
5531
5535
|
var workspaces_exports = {};
|
|
5532
5536
|
__export(workspaces_exports, {
|
|
5537
|
+
addWorkspaceMembers: () => addWorkspaceMembers,
|
|
5533
5538
|
addWorkspaceUsers: () => addWorkspaceUsers,
|
|
5534
5539
|
copyDocuments: () => copyDocuments,
|
|
5535
5540
|
createWorkspace: () => createWorkspace,
|
|
@@ -5577,6 +5582,12 @@ async function updateWorkspace(arbi, body) {
|
|
|
5577
5582
|
async function listWorkspaceUsers(arbi) {
|
|
5578
5583
|
return requireData(await arbi.fetch.GET("/v1/workspace/users"), "Failed to fetch workspace users");
|
|
5579
5584
|
}
|
|
5585
|
+
async function addWorkspaceMembers(arbi, request) {
|
|
5586
|
+
return requireData(
|
|
5587
|
+
await arbi.fetch.POST("/v1/workspace/users", { body: request }),
|
|
5588
|
+
"Failed to add users"
|
|
5589
|
+
);
|
|
5590
|
+
}
|
|
5580
5591
|
async function addWorkspaceUsers(arbi, emails, role = "collaborator", target, confirmInvite = false) {
|
|
5581
5592
|
const invite = confirmInvite ? { confirm_invite: true } : {};
|
|
5582
5593
|
return requireData(
|
|
@@ -9863,6 +9874,11 @@ var Arbi = class {
|
|
|
9863
9874
|
void 0,
|
|
9864
9875
|
options?.confirmInvite
|
|
9865
9876
|
),
|
|
9877
|
+
/**
|
|
9878
|
+
* `POST /v1/workspace/users` with the whole request (another workspace with its sealed key, a
|
|
9879
|
+
* session-scoped grant, an invitation, a resource share): see `addWorkspaceMembers`.
|
|
9880
|
+
*/
|
|
9881
|
+
addMembers: (request) => addWorkspaceMembers(this.requireClient(), request),
|
|
9866
9882
|
/**
|
|
9867
9883
|
* Grant users a temporary key scoped to ONE session (identified by its public key), for
|
|
9868
9884
|
* example an agent's run session minted by `agents.authorize()`. Nothing standing is created:
|
|
@@ -11376,6 +11392,116 @@ function attachmentFromFile(filePath) {
|
|
|
11376
11392
|
);
|
|
11377
11393
|
}
|
|
11378
11394
|
|
|
11395
|
+
// src/tag-helpers.ts
|
|
11396
|
+
var ENTITY_KINDS = ["person", "organisation"];
|
|
11397
|
+
var PRESENCE_KINDS = ["label", "issue", "person", "organisation"];
|
|
11398
|
+
function defaultKindForFormat(format) {
|
|
11399
|
+
if (format === "checkbox") return "label";
|
|
11400
|
+
if (format === "search") return "search";
|
|
11401
|
+
return "annotation";
|
|
11402
|
+
}
|
|
11403
|
+
function tagUseCount(tag) {
|
|
11404
|
+
return (tag.doctag_count ?? 0) + (tag.facttag_count ?? 0) + (tag.convotag_count ?? 0);
|
|
11405
|
+
}
|
|
11406
|
+
function filterDocumentTags(tags) {
|
|
11407
|
+
return tags.filter((tag) => tag.kind !== "search");
|
|
11408
|
+
}
|
|
11409
|
+
function isPresenceTag(tag) {
|
|
11410
|
+
return PRESENCE_KINDS.includes(tag.kind);
|
|
11411
|
+
}
|
|
11412
|
+
function isLabelTag(tag) {
|
|
11413
|
+
return tag.kind === "label";
|
|
11414
|
+
}
|
|
11415
|
+
function isAnnotationTag(tag) {
|
|
11416
|
+
return tag.kind === "annotation";
|
|
11417
|
+
}
|
|
11418
|
+
function isEntityTag(tag) {
|
|
11419
|
+
return ENTITY_KINDS.includes(tag.kind);
|
|
11420
|
+
}
|
|
11421
|
+
function tagsOfGroup(tags, group) {
|
|
11422
|
+
return tags.filter(group === "label" ? isLabelTag : isAnnotationTag);
|
|
11423
|
+
}
|
|
11424
|
+
function tagsForScope(tags, scope) {
|
|
11425
|
+
return tags.filter((tag) => {
|
|
11426
|
+
const onDocs = (tag.doctag_count ?? 0) > 0;
|
|
11427
|
+
const onFacts = (tag.facttag_count ?? 0) > 0;
|
|
11428
|
+
if (!onDocs && !onFacts) return true;
|
|
11429
|
+
return scope === "document" ? onDocs : onFacts;
|
|
11430
|
+
});
|
|
11431
|
+
}
|
|
11432
|
+
var TAG_NESTING_MAX_DEPTH = 2;
|
|
11433
|
+
function indexByExternalId(tags) {
|
|
11434
|
+
return new Map(tags.map((tag) => [tag.external_id, tag]));
|
|
11435
|
+
}
|
|
11436
|
+
function resolveParentId(tag, byId3) {
|
|
11437
|
+
const parentId = tag.parent_ext_id;
|
|
11438
|
+
if (!parentId || parentId === tag.external_id) return null;
|
|
11439
|
+
return byId3.has(parentId) ? parentId : null;
|
|
11440
|
+
}
|
|
11441
|
+
function buildChildIndex(tags) {
|
|
11442
|
+
const byId3 = indexByExternalId(tags);
|
|
11443
|
+
const childrenOf = /* @__PURE__ */ new Map();
|
|
11444
|
+
for (const tag of tags) {
|
|
11445
|
+
const parentId = resolveParentId(tag, byId3);
|
|
11446
|
+
if (!parentId) continue;
|
|
11447
|
+
const siblings = childrenOf.get(parentId);
|
|
11448
|
+
if (siblings) siblings.push(tag);
|
|
11449
|
+
else childrenOf.set(parentId, [tag]);
|
|
11450
|
+
}
|
|
11451
|
+
return childrenOf;
|
|
11452
|
+
}
|
|
11453
|
+
function getChildTags(tags, tagId) {
|
|
11454
|
+
return buildChildIndex(tags).get(tagId) ?? [];
|
|
11455
|
+
}
|
|
11456
|
+
function getTagDescendantIds(tags, tagId) {
|
|
11457
|
+
const childrenOf = buildChildIndex(tags);
|
|
11458
|
+
const found = /* @__PURE__ */ new Set();
|
|
11459
|
+
const queue = [...childrenOf.get(tagId) ?? []];
|
|
11460
|
+
while (queue.length > 0) {
|
|
11461
|
+
const tag = queue.shift();
|
|
11462
|
+
if (tag.external_id === tagId || found.has(tag.external_id)) continue;
|
|
11463
|
+
found.add(tag.external_id);
|
|
11464
|
+
queue.push(...childrenOf.get(tag.external_id) ?? []);
|
|
11465
|
+
}
|
|
11466
|
+
return found;
|
|
11467
|
+
}
|
|
11468
|
+
function flattenTagTree(tags) {
|
|
11469
|
+
const byId3 = indexByExternalId(tags);
|
|
11470
|
+
const childrenOf = buildChildIndex(tags);
|
|
11471
|
+
const rows = [];
|
|
11472
|
+
const emitted = /* @__PURE__ */ new Set();
|
|
11473
|
+
const visit = (tag, depth) => {
|
|
11474
|
+
if (emitted.has(tag.external_id)) return;
|
|
11475
|
+
emitted.add(tag.external_id);
|
|
11476
|
+
const children = childrenOf.get(tag.external_id) ?? [];
|
|
11477
|
+
rows.push({ tag, depth, childCount: children.length });
|
|
11478
|
+
for (const child of children) visit(child, depth + 1);
|
|
11479
|
+
};
|
|
11480
|
+
for (const tag of tags) {
|
|
11481
|
+
if (resolveParentId(tag, byId3) === null) visit(tag, 0);
|
|
11482
|
+
}
|
|
11483
|
+
for (const tag of tags) visit(tag, 0);
|
|
11484
|
+
return rows;
|
|
11485
|
+
}
|
|
11486
|
+
var isFlatKind = (kind) => FLAT_TAG_KINDS.includes(kind);
|
|
11487
|
+
function getEligibleParentTags(tags, tagId) {
|
|
11488
|
+
const byId3 = indexByExternalId(tags);
|
|
11489
|
+
const blocked = tagId ? getTagDescendantIds(tags, tagId) : /* @__PURE__ */ new Set();
|
|
11490
|
+
if (tagId) blocked.add(tagId);
|
|
11491
|
+
return tags.filter(
|
|
11492
|
+
(tag) => !blocked.has(tag.external_id) && resolveParentId(tag, byId3) === null && // Issues, people and organisations are flat: never a parent (the API refuses it).
|
|
11493
|
+
!isFlatKind(tag.kind)
|
|
11494
|
+
);
|
|
11495
|
+
}
|
|
11496
|
+
function wouldCreateTagCycle(tags, tagId, parentId) {
|
|
11497
|
+
if (!parentId) return false;
|
|
11498
|
+
if (parentId === tagId) return true;
|
|
11499
|
+
return getTagDescendantIds(tags, tagId).has(parentId);
|
|
11500
|
+
}
|
|
11501
|
+
function canTagHaveParent(tags, tagId) {
|
|
11502
|
+
return getChildTags(tags, tagId).length === 0;
|
|
11503
|
+
}
|
|
11504
|
+
|
|
11379
11505
|
// src/listen/index.ts
|
|
11380
11506
|
var listen_exports = {};
|
|
11381
11507
|
__export(listen_exports, {
|
|
@@ -11689,6 +11815,6 @@ async function startDmListener(options) {
|
|
|
11689
11815
|
};
|
|
11690
11816
|
}
|
|
11691
11817
|
|
|
11692
|
-
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, DRIVE_SYNC_VENDORS, FLAT_TAG_KINDS, FileConfigStore, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, OpenClawOrchestrator, PlanStepsError, PublicBookingError, SHAREPOINT_VENDORS, STEP_FIELD_OPTION_TONES, TAG_KINDS, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocNameMap, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, calendar_exports as calendar, cancelPublicBooking, chats_exports as chats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, device_flow_exports as deviceFlow, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, facts_exports as facts, files_exports as files, filterSkills, firm_exports as firm, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, health_exports as health, house_template_exports as houseTemplates, identityErrorCode, identity_exports as identityVerification, isConnectorVendorVisible, isDriveSyncVendor, isMailboxSyncVendor, isSharePointVendor, isSharedSkill, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, searchChunks, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, startDmListener, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, uploadSkill, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces };
|
|
11818
|
+
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, DRIVE_SYNC_VENDORS, ENTITY_KINDS, FLAT_TAG_KINDS, FileConfigStore, GOOGLE_VENDORS, IMANAGE_VENDORS, MAILBOX_SYNC_VENDORS, MAX_RETRIEVE_DOC_IDS, MICROSOFT_VENDORS, OpenClawOrchestrator, PRESENCE_KINDS, PlanStepsError, PublicBookingError, SHAREPOINT_VENDORS, STEP_FIELD_OPTION_TONES, TAG_KINDS, TAG_NESTING_MAX_DEPTH, WebSocketAuthError, account_exports as account, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, bookPublicSlot, buildCitationChunkData, buildDocNameMap, buildFactsContextTool, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, calendar_exports as calendar, canTagHaveParent, cancelPublicBooking, chats_exports as chats, connectErrorMessage, connectWebSocket, connectWithReconnect, connectors_exports as connectors, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, defaultKindForFormat, device_flow_exports as deviceFlow, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, facts_exports as facts, files_exports as files, filterDocumentTags, filterSkills, firm_exports as firm, flattenTagTree, formatAgentStepLabel, formatFileSize, formatGbp, formatGbpPerMillionTokens, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getChildTags, getEligibleParentTags, getErrorCode, getErrorMessage, getPublicBookingPage, getRawWorkspaceKey, getTagDescendantIds, health_exports as health, house_template_exports as houseTemplates, identityErrorCode, identity_exports as identityVerification, isAnnotationTag, isConnectorVendorVisible, isDriveSyncVendor, isEntityTag, isFlatKind, isLabelTag, isMailboxSyncVendor, isPresenceTag, isSharePointVendor, isSharedSkill, listen_exports as listen, mail_exports as mail, mail_node_exports as mailNode, notifications_exports as notifications, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, profile_exports as profile, projects_exports as projects, refusalReason, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, searchChunks, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, startDmListener, streamSSE, stripCitationMarkdown, summarizeCitations, tagUseCount, tags_exports as tags, tagsForScope, tagsOfGroup, uploadSkill, usdToGbp, work_exports as work, workflow_steps_exports as workflowSteps, workflows_exports as workflows, workspaces_exports as workspaces, wouldCreateTagCycle };
|
|
11693
11819
|
//# sourceMappingURL=index.js.map
|
|
11694
11820
|
//# sourceMappingURL=index.js.map
|