@arbidocs/sdk 0.4.156 → 0.4.158
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-CYDtwz9K.d.cts → browser-Dnc05Tkf.d.cts} +12 -1
- package/dist/{browser-CYDtwz9K.d.ts → browser-Dnc05Tkf.d.ts} +12 -1
- package/dist/browser.cjs +48 -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 +48 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +48 -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 +48 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -87,6 +87,15 @@ interface AuthFetchOptions extends AuthHeaders {
|
|
|
87
87
|
*/
|
|
88
88
|
declare function authenticatedFetch(options: AuthFetchOptions): Promise<Response>;
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* A fetch that sends through XMLHttpRequest, so a large request body reports how much of it went
|
|
92
|
+
* up. openapi-fetch takes it per request (`fetch:`), so the client's middleware (its token,
|
|
93
|
+
* re-login and payment handling) still applies. Without XMLHttpRequest (Node) it is plain fetch
|
|
94
|
+
* and reports once, when the body is sent.
|
|
95
|
+
*/
|
|
96
|
+
type UploadProgressListener = (loaded: number, total: number) => void;
|
|
97
|
+
declare function progressFetch(onProgress: UploadProgressListener): (request: Request) => Promise<Response>;
|
|
98
|
+
|
|
90
99
|
/**
|
|
91
100
|
* Configuration types — shared between browser and Node.js environments.
|
|
92
101
|
*
|
|
@@ -1275,6 +1284,8 @@ interface UploadDocumentsOptions extends UploadOptions {
|
|
|
1275
1284
|
tagExtId?: string | null;
|
|
1276
1285
|
/** Save into this workspace instead of the open one (its key must be on the session). */
|
|
1277
1286
|
workspaceExtId?: string | null;
|
|
1287
|
+
/** How many bytes of the request went up (sent through XMLHttpRequest in the browser). */
|
|
1288
|
+
onProgress?: UploadProgressListener;
|
|
1278
1289
|
}
|
|
1279
1290
|
/**
|
|
1280
1291
|
* Upload files in one multipart request over the client's own fetch (its auth, re-login and
|
|
@@ -14537,4 +14548,4 @@ declare namespace identity {
|
|
|
14537
14548
|
export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
|
|
14538
14549
|
}
|
|
14539
14550
|
|
|
14540
|
-
export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type MessageQueuedEvent as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FactSearchRequest as aA, type FactSearchResponse as aB, type FindTimeParams as aC, type FormattedWsMessage as aD, type FreeBusyEntry as aE, GOOGLE_VENDORS as aF, type HolidayCountry as aG, type HouseTemplateCandidate as aH, IMANAGE_VENDORS as aI, type IdentityErrorCode as aJ, type IdentityPurchase as aK, type IdentityState as aL, type IdentityStatus as aM, type ImportResult as aN, type InvitationRead as aO, type LinkedRun as aP, type ListAllOptions as aQ, type ListEventsParams as aR, type ListFactsOptions as aS, type ListPaginatedOptions as aT, MAILBOX_SYNC_VENDORS as aU, MAX_RETRIEVE_DOC_IDS as aV, MICROSOFT_VENDORS as aW, type MailAttachment as aX, type MailDraftSSEEvent as aY, type MessageLevel as aZ, type MessageMetadataPayload$1 as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, ENTITY_KINDS as at, type EditScope as au, type EntityKind as av, type EventCreateBody as aw, type EventPatchBody as ax, FLAT_TAG_KINDS as ay, type FactResponse as az, type ActivityKind as b, type ShareRead as b$, type OAuthAccountKind as b0, type OutputTokensDetails as b1, type OverlayItem as b2, type OverlayLayerName as b3, PRESENCE_KINDS as b4, type ParsedSlashCommand as b5, type PendingAuthResponse as b6, type PersonKey as b7, PlanStepsError as b8, type PlanWorkRequest as b9, type RespondParams as bA, type RespondPartstat as bB, type ResponseCompletedEvent as bC, type ResponseContentPartAddedEvent as bD, type ResponseCreatedEvent as bE, type ResponseFailedEvent as bF, type ResponseOutputItemAddedEvent as bG, type ResponseOutputItemDoneEvent as bH, type ResponseOutputTextDeltaEvent as bI, type ResponseOutputTextDoneEvent as bJ, type ResponseUsage as bK, type RoomCreateBody as bL, type RoomQuery as bM, type RoomRead as bN, type RunProgress as bO, type RunStep as bP, type RunWaitingOn as bQ, SHAREPOINT_VENDORS as bR, type SSEEvent as bS, type SSEStreamCallbacks as bT, type SSEStreamResult as bU, type SSEStreamStartData as bV, STEP_FIELD_OPTION_TONES as bW, SUPPORTED_EXTENSIONS as bX, type ScopedTarget as bY, type SearchChunk as bZ, type SendBack as b_, type ProbeAnswerEvent as ba, type ProductResponse as bb, type ProjectAddonKind as bc, type ProjectAddonSettingsRequest as bd, type ProjectBudget as be, type ProjectCheckoutRequest as bf, type ProjectConversationUsageResponse as bg, type ProjectCreateOptions as bh, type ProjectDetails as bi, type ProjectEventKind as bj, type ProjectEventResponse as bk, type ProjectInvoicesResponse as bl, type ProjectNextPeriodAddonsRequest as bm, type ProjectPlanChangeRequest as bn, type ProjectQuoteRequest as bo, type ProjectResponse as bp, type ProjectUpdateRequest as bq, type ProjectUsageResponse as br, PublicBookingError as bs, type PublicBookingPage as bt, type QueryOptions as bu, type RaisedSignal as bv, type ReconnectOptions as bw, type ReconnectableWsConnection as bx, type ResolvedCitation as by, type ResolvedRecipient as bz, type ActivityResponse as c,
|
|
14551
|
+
export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type MessageQueuedEvent as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FactSearchRequest as aA, type FactSearchResponse as aB, type FindTimeParams as aC, type FormattedWsMessage as aD, type FreeBusyEntry as aE, GOOGLE_VENDORS as aF, type HolidayCountry as aG, type HouseTemplateCandidate as aH, IMANAGE_VENDORS as aI, type IdentityErrorCode as aJ, type IdentityPurchase as aK, type IdentityState as aL, type IdentityStatus as aM, type ImportResult as aN, type InvitationRead as aO, type LinkedRun as aP, type ListAllOptions as aQ, type ListEventsParams as aR, type ListFactsOptions as aS, type ListPaginatedOptions as aT, MAILBOX_SYNC_VENDORS as aU, MAX_RETRIEVE_DOC_IDS as aV, MICROSOFT_VENDORS as aW, type MailAttachment as aX, type MailDraftSSEEvent as aY, type MessageLevel as aZ, type MessageMetadataPayload$1 as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, ENTITY_KINDS as at, type EditScope as au, type EntityKind as av, type EventCreateBody as aw, type EventPatchBody as ax, FLAT_TAG_KINDS as ay, type FactResponse as az, type ActivityKind as b, type ShareRead as b$, type OAuthAccountKind as b0, type OutputTokensDetails as b1, type OverlayItem as b2, type OverlayLayerName as b3, PRESENCE_KINDS as b4, type ParsedSlashCommand as b5, type PendingAuthResponse as b6, type PersonKey as b7, PlanStepsError as b8, type PlanWorkRequest as b9, type RespondParams as bA, type RespondPartstat as bB, type ResponseCompletedEvent as bC, type ResponseContentPartAddedEvent as bD, type ResponseCreatedEvent as bE, type ResponseFailedEvent as bF, type ResponseOutputItemAddedEvent as bG, type ResponseOutputItemDoneEvent as bH, type ResponseOutputTextDeltaEvent as bI, type ResponseOutputTextDoneEvent as bJ, type ResponseUsage as bK, type RoomCreateBody as bL, type RoomQuery as bM, type RoomRead as bN, type RunProgress as bO, type RunStep as bP, type RunWaitingOn as bQ, SHAREPOINT_VENDORS as bR, type SSEEvent as bS, type SSEStreamCallbacks as bT, type SSEStreamResult as bU, type SSEStreamStartData as bV, STEP_FIELD_OPTION_TONES as bW, SUPPORTED_EXTENSIONS as bX, type ScopedTarget as bY, type SearchChunk as bZ, type SendBack as b_, type ProbeAnswerEvent as ba, type ProductResponse as bb, type ProjectAddonKind as bc, type ProjectAddonSettingsRequest as bd, type ProjectBudget as be, type ProjectCheckoutRequest as bf, type ProjectConversationUsageResponse as bg, type ProjectCreateOptions as bh, type ProjectDetails as bi, type ProjectEventKind as bj, type ProjectEventResponse as bk, type ProjectInvoicesResponse as bl, type ProjectNextPeriodAddonsRequest as bm, type ProjectPlanChangeRequest as bn, type ProjectQuoteRequest as bo, type ProjectResponse as bp, type ProjectUpdateRequest as bq, type ProjectUsageResponse as br, PublicBookingError as bs, type PublicBookingPage as bt, type QueryOptions as bu, type RaisedSignal as bv, type ReconnectOptions as bw, type ReconnectableWsConnection as bx, type ResolvedCitation as by, type ResolvedRecipient as bz, type ActivityResponse as c, account as c$, type ShareRole as c0, type SkillSummary as c1, type SkippedFile as c2, type SlackConnectionStatus as c3, type StepActionRequest as c4, type StepActivityEvent as c5, type StepAssignee as c6, type StepField as c7, type StepFieldOption as c8, type StepFieldOptionTone as c9, type TimeSuggestion as cA, type TokenBudgetContext as cB, type UpdateConversationRequest as cC, type UpdateFactRequest as cD, type UpdateWorkflowRequest as cE, type UploadBatchResult as cF, type UploadDirectOptions as cG, type UploadDirectResult as cH, type UploadDocumentsOptions as cI, type UploadOptions as cJ, type UploadProgressListener as cK, type UploadResult as cL, type UsageBreakdown as cM, type UserConnectorEntry as cN, type UserDailyUsageResponse as cO, type UserInfo as cP, type UserInputRequestEvent as cQ, type UserMessageEvent as cR, WebSocketAuthError as cS, type WeeklyHoursSpec as cT, type WorkStatus as cU, type WorkflowAuthMode as cV, type WorkflowResponse as cW, type WorkflowRunHistoryResponse as cX, type WorkflowRunResponse as cY, type WorkspaceContext as cZ, type WsConnection as c_, type StepKind as ca, type StepPhase as cb, type StepSignal as cc, type StepSignalWhen as cd, type StepState as ce, type StepStatus as cf, type SubmitBackgroundQueryOptions as cg, type SubscribeParams as ch, type SyncTriggerResult as ci, TAG_KINDS as cj, TAG_NESTING_MAX_DEPTH as ck, type TagChange as cl, type TagFieldDefinition as cm, type TagGroup as cn, type TagKind as co, type TagKindField as cp, type TagKindSchema as cq, type TagLinks as cr, type TagListQuery as cs, type TagNode as ct, type TagResponse as cu, type TagScope as cv, type TagTreeRow as cw, type TaskPlan as cx, type TaskPlanStep as cy, type TaxQuoteResponse as cz, type AgentControlStateEvent as d, isPresenceTag as d$, agentconfig as d0, agents as d1, assistant as d2, authenticatedFetch as d3, bookPublicSlot as d4, buildCitationChunkData as d5, buildDocNameMap as d6, buildFactsContextTool as d7, buildRetrievalChunkTool as d8, buildRetrievalFullContextTool as d9, formatGbp as dA, formatGbpPerMillionTokens as dB, formatItemLabel as dC, formatStreamSummary as dD, formatUserName as dE, formatWorkspaceChoices as dF, formatWsMessage as dG, generateEncryptedWorkspaceKey as dH, generateNewWorkspaceKey as dI, getChildTags as dJ, getEligibleParentTags as dK, getErrorCode as dL, getErrorMessage as dM, getPublicBookingPage as dN, getRawWorkspaceKey as dO, getTagDescendantIds as dP, health as dQ, houseTemplate as dR, identity as dS, identityErrorCode as dT, isAnnotationTag as dU, isConnectorVendorVisible as dV, isDriveSyncVendor as dW, isEntityTag as dX, isFlatKind as dY, isLabelTag as dZ, isMailboxSyncVendor as d_, buildRetrievalTocTool as da, calendar as db, canTagHaveParent as dc, cancelPublicBooking as dd, chats as de, connectErrorMessage as df, connectWebSocket as dg, connectWithReconnect as dh, connectors as di, consumeSSEStream as dj, contacts as dk, conversations as dl, countCitations as dm, createAuthenticatedClient as dn, createDocumentWaiter as dp, defaultKindForFormat as dq, doctags as dr, documents as ds, facts as dt, files as du, filterDocumentTags as dv, filterSkills as dw, flattenTagTree as dx, formatAgentStepLabel as dy, formatFileSize as dz, type AgentStepDeltaEvent as e, isSharePointVendor as e0, isSharedSkill as e1, mail as e2, notifications as e3, parseSSEEvents as e4, parseSlashCommand as e5, parseSlashTokenInProgress as e6, performPasswordLogin as e7, performSigningKeyLogin as e8, performSsoDeviceFlowLogin as e9, workflowSteps as eA, workflows as eB, workspaces as eC, wouldCreateTagCycle as eD, profile as ea, progressFetch as eb, projects as ec, refusalReason as ed, requireData as ee, requireOk as ef, resolveAuth as eg, resolveCitations as eh, resolveWorkspace as ei, responses as ej, searchChunks as ek, selectWorkspace as el, selectWorkspaceById as em, sessions as en, settings as eo, signatureRequests as ep, streamSSE as eq, stripCitationMarkdown as er, summarizeCitations as es, tagUseCount as et, tags as eu, tagsForScope as ev, tagsOfGroup as ew, uploadSkill as ex, usdToGbp as ey, work as ez, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiErrorEvent as j, type ArbiHostSession as k, type ArbiOptions as l, ArbiSessionExpiredError as m, type ArtifactEvent as n, type AttendeeRead as o, type AuthContext as p, type AuthHeaders as q, type AuthMode as r, type AuthenticatedClient as s, type BookingPage as t, type BookingPageWriteBody as u, type BookingRequestBody as v, type BridgeTokensOptions as w, type CalDavProfile as x, type CalendarAccount as y, type CalendarAccountKind as z };
|
|
@@ -87,6 +87,15 @@ interface AuthFetchOptions extends AuthHeaders {
|
|
|
87
87
|
*/
|
|
88
88
|
declare function authenticatedFetch(options: AuthFetchOptions): Promise<Response>;
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* A fetch that sends through XMLHttpRequest, so a large request body reports how much of it went
|
|
92
|
+
* up. openapi-fetch takes it per request (`fetch:`), so the client's middleware (its token,
|
|
93
|
+
* re-login and payment handling) still applies. Without XMLHttpRequest (Node) it is plain fetch
|
|
94
|
+
* and reports once, when the body is sent.
|
|
95
|
+
*/
|
|
96
|
+
type UploadProgressListener = (loaded: number, total: number) => void;
|
|
97
|
+
declare function progressFetch(onProgress: UploadProgressListener): (request: Request) => Promise<Response>;
|
|
98
|
+
|
|
90
99
|
/**
|
|
91
100
|
* Configuration types — shared between browser and Node.js environments.
|
|
92
101
|
*
|
|
@@ -1275,6 +1284,8 @@ interface UploadDocumentsOptions extends UploadOptions {
|
|
|
1275
1284
|
tagExtId?: string | null;
|
|
1276
1285
|
/** Save into this workspace instead of the open one (its key must be on the session). */
|
|
1277
1286
|
workspaceExtId?: string | null;
|
|
1287
|
+
/** How many bytes of the request went up (sent through XMLHttpRequest in the browser). */
|
|
1288
|
+
onProgress?: UploadProgressListener;
|
|
1278
1289
|
}
|
|
1279
1290
|
/**
|
|
1280
1291
|
* Upload files in one multipart request over the client's own fetch (its auth, re-login and
|
|
@@ -14537,4 +14548,4 @@ declare namespace identity {
|
|
|
14537
14548
|
export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
|
|
14538
14549
|
}
|
|
14539
14550
|
|
|
14540
|
-
export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type MessageQueuedEvent as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FactSearchRequest as aA, type FactSearchResponse as aB, type FindTimeParams as aC, type FormattedWsMessage as aD, type FreeBusyEntry as aE, GOOGLE_VENDORS as aF, type HolidayCountry as aG, type HouseTemplateCandidate as aH, IMANAGE_VENDORS as aI, type IdentityErrorCode as aJ, type IdentityPurchase as aK, type IdentityState as aL, type IdentityStatus as aM, type ImportResult as aN, type InvitationRead as aO, type LinkedRun as aP, type ListAllOptions as aQ, type ListEventsParams as aR, type ListFactsOptions as aS, type ListPaginatedOptions as aT, MAILBOX_SYNC_VENDORS as aU, MAX_RETRIEVE_DOC_IDS as aV, MICROSOFT_VENDORS as aW, type MailAttachment as aX, type MailDraftSSEEvent as aY, type MessageLevel as aZ, type MessageMetadataPayload$1 as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, ENTITY_KINDS as at, type EditScope as au, type EntityKind as av, type EventCreateBody as aw, type EventPatchBody as ax, FLAT_TAG_KINDS as ay, type FactResponse as az, type ActivityKind as b, type ShareRead as b$, type OAuthAccountKind as b0, type OutputTokensDetails as b1, type OverlayItem as b2, type OverlayLayerName as b3, PRESENCE_KINDS as b4, type ParsedSlashCommand as b5, type PendingAuthResponse as b6, type PersonKey as b7, PlanStepsError as b8, type PlanWorkRequest as b9, type RespondParams as bA, type RespondPartstat as bB, type ResponseCompletedEvent as bC, type ResponseContentPartAddedEvent as bD, type ResponseCreatedEvent as bE, type ResponseFailedEvent as bF, type ResponseOutputItemAddedEvent as bG, type ResponseOutputItemDoneEvent as bH, type ResponseOutputTextDeltaEvent as bI, type ResponseOutputTextDoneEvent as bJ, type ResponseUsage as bK, type RoomCreateBody as bL, type RoomQuery as bM, type RoomRead as bN, type RunProgress as bO, type RunStep as bP, type RunWaitingOn as bQ, SHAREPOINT_VENDORS as bR, type SSEEvent as bS, type SSEStreamCallbacks as bT, type SSEStreamResult as bU, type SSEStreamStartData as bV, STEP_FIELD_OPTION_TONES as bW, SUPPORTED_EXTENSIONS as bX, type ScopedTarget as bY, type SearchChunk as bZ, type SendBack as b_, type ProbeAnswerEvent as ba, type ProductResponse as bb, type ProjectAddonKind as bc, type ProjectAddonSettingsRequest as bd, type ProjectBudget as be, type ProjectCheckoutRequest as bf, type ProjectConversationUsageResponse as bg, type ProjectCreateOptions as bh, type ProjectDetails as bi, type ProjectEventKind as bj, type ProjectEventResponse as bk, type ProjectInvoicesResponse as bl, type ProjectNextPeriodAddonsRequest as bm, type ProjectPlanChangeRequest as bn, type ProjectQuoteRequest as bo, type ProjectResponse as bp, type ProjectUpdateRequest as bq, type ProjectUsageResponse as br, PublicBookingError as bs, type PublicBookingPage as bt, type QueryOptions as bu, type RaisedSignal as bv, type ReconnectOptions as bw, type ReconnectableWsConnection as bx, type ResolvedCitation as by, type ResolvedRecipient as bz, type ActivityResponse as c,
|
|
14551
|
+
export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type MessageQueuedEvent as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FactSearchRequest as aA, type FactSearchResponse as aB, type FindTimeParams as aC, type FormattedWsMessage as aD, type FreeBusyEntry as aE, GOOGLE_VENDORS as aF, type HolidayCountry as aG, type HouseTemplateCandidate as aH, IMANAGE_VENDORS as aI, type IdentityErrorCode as aJ, type IdentityPurchase as aK, type IdentityState as aL, type IdentityStatus as aM, type ImportResult as aN, type InvitationRead as aO, type LinkedRun as aP, type ListAllOptions as aQ, type ListEventsParams as aR, type ListFactsOptions as aS, type ListPaginatedOptions as aT, MAILBOX_SYNC_VENDORS as aU, MAX_RETRIEVE_DOC_IDS as aV, MICROSOFT_VENDORS as aW, type MailAttachment as aX, type MailDraftSSEEvent as aY, type MessageLevel as aZ, type MessageMetadataPayload$1 as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, ENTITY_KINDS as at, type EditScope as au, type EntityKind as av, type EventCreateBody as aw, type EventPatchBody as ax, FLAT_TAG_KINDS as ay, type FactResponse as az, type ActivityKind as b, type ShareRead as b$, type OAuthAccountKind as b0, type OutputTokensDetails as b1, type OverlayItem as b2, type OverlayLayerName as b3, PRESENCE_KINDS as b4, type ParsedSlashCommand as b5, type PendingAuthResponse as b6, type PersonKey as b7, PlanStepsError as b8, type PlanWorkRequest as b9, type RespondParams as bA, type RespondPartstat as bB, type ResponseCompletedEvent as bC, type ResponseContentPartAddedEvent as bD, type ResponseCreatedEvent as bE, type ResponseFailedEvent as bF, type ResponseOutputItemAddedEvent as bG, type ResponseOutputItemDoneEvent as bH, type ResponseOutputTextDeltaEvent as bI, type ResponseOutputTextDoneEvent as bJ, type ResponseUsage as bK, type RoomCreateBody as bL, type RoomQuery as bM, type RoomRead as bN, type RunProgress as bO, type RunStep as bP, type RunWaitingOn as bQ, SHAREPOINT_VENDORS as bR, type SSEEvent as bS, type SSEStreamCallbacks as bT, type SSEStreamResult as bU, type SSEStreamStartData as bV, STEP_FIELD_OPTION_TONES as bW, SUPPORTED_EXTENSIONS as bX, type ScopedTarget as bY, type SearchChunk as bZ, type SendBack as b_, type ProbeAnswerEvent as ba, type ProductResponse as bb, type ProjectAddonKind as bc, type ProjectAddonSettingsRequest as bd, type ProjectBudget as be, type ProjectCheckoutRequest as bf, type ProjectConversationUsageResponse as bg, type ProjectCreateOptions as bh, type ProjectDetails as bi, type ProjectEventKind as bj, type ProjectEventResponse as bk, type ProjectInvoicesResponse as bl, type ProjectNextPeriodAddonsRequest as bm, type ProjectPlanChangeRequest as bn, type ProjectQuoteRequest as bo, type ProjectResponse as bp, type ProjectUpdateRequest as bq, type ProjectUsageResponse as br, PublicBookingError as bs, type PublicBookingPage as bt, type QueryOptions as bu, type RaisedSignal as bv, type ReconnectOptions as bw, type ReconnectableWsConnection as bx, type ResolvedCitation as by, type ResolvedRecipient as bz, type ActivityResponse as c, account as c$, type ShareRole as c0, type SkillSummary as c1, type SkippedFile as c2, type SlackConnectionStatus as c3, type StepActionRequest as c4, type StepActivityEvent as c5, type StepAssignee as c6, type StepField as c7, type StepFieldOption as c8, type StepFieldOptionTone as c9, type TimeSuggestion as cA, type TokenBudgetContext as cB, type UpdateConversationRequest as cC, type UpdateFactRequest as cD, type UpdateWorkflowRequest as cE, type UploadBatchResult as cF, type UploadDirectOptions as cG, type UploadDirectResult as cH, type UploadDocumentsOptions as cI, type UploadOptions as cJ, type UploadProgressListener as cK, type UploadResult as cL, type UsageBreakdown as cM, type UserConnectorEntry as cN, type UserDailyUsageResponse as cO, type UserInfo as cP, type UserInputRequestEvent as cQ, type UserMessageEvent as cR, WebSocketAuthError as cS, type WeeklyHoursSpec as cT, type WorkStatus as cU, type WorkflowAuthMode as cV, type WorkflowResponse as cW, type WorkflowRunHistoryResponse as cX, type WorkflowRunResponse as cY, type WorkspaceContext as cZ, type WsConnection as c_, type StepKind as ca, type StepPhase as cb, type StepSignal as cc, type StepSignalWhen as cd, type StepState as ce, type StepStatus as cf, type SubmitBackgroundQueryOptions as cg, type SubscribeParams as ch, type SyncTriggerResult as ci, TAG_KINDS as cj, TAG_NESTING_MAX_DEPTH as ck, type TagChange as cl, type TagFieldDefinition as cm, type TagGroup as cn, type TagKind as co, type TagKindField as cp, type TagKindSchema as cq, type TagLinks as cr, type TagListQuery as cs, type TagNode as ct, type TagResponse as cu, type TagScope as cv, type TagTreeRow as cw, type TaskPlan as cx, type TaskPlanStep as cy, type TaxQuoteResponse as cz, type AgentControlStateEvent as d, isPresenceTag as d$, agentconfig as d0, agents as d1, assistant as d2, authenticatedFetch as d3, bookPublicSlot as d4, buildCitationChunkData as d5, buildDocNameMap as d6, buildFactsContextTool as d7, buildRetrievalChunkTool as d8, buildRetrievalFullContextTool as d9, formatGbp as dA, formatGbpPerMillionTokens as dB, formatItemLabel as dC, formatStreamSummary as dD, formatUserName as dE, formatWorkspaceChoices as dF, formatWsMessage as dG, generateEncryptedWorkspaceKey as dH, generateNewWorkspaceKey as dI, getChildTags as dJ, getEligibleParentTags as dK, getErrorCode as dL, getErrorMessage as dM, getPublicBookingPage as dN, getRawWorkspaceKey as dO, getTagDescendantIds as dP, health as dQ, houseTemplate as dR, identity as dS, identityErrorCode as dT, isAnnotationTag as dU, isConnectorVendorVisible as dV, isDriveSyncVendor as dW, isEntityTag as dX, isFlatKind as dY, isLabelTag as dZ, isMailboxSyncVendor as d_, buildRetrievalTocTool as da, calendar as db, canTagHaveParent as dc, cancelPublicBooking as dd, chats as de, connectErrorMessage as df, connectWebSocket as dg, connectWithReconnect as dh, connectors as di, consumeSSEStream as dj, contacts as dk, conversations as dl, countCitations as dm, createAuthenticatedClient as dn, createDocumentWaiter as dp, defaultKindForFormat as dq, doctags as dr, documents as ds, facts as dt, files as du, filterDocumentTags as dv, filterSkills as dw, flattenTagTree as dx, formatAgentStepLabel as dy, formatFileSize as dz, type AgentStepDeltaEvent as e, isSharePointVendor as e0, isSharedSkill as e1, mail as e2, notifications as e3, parseSSEEvents as e4, parseSlashCommand as e5, parseSlashTokenInProgress as e6, performPasswordLogin as e7, performSigningKeyLogin as e8, performSsoDeviceFlowLogin as e9, workflowSteps as eA, workflows as eB, workspaces as eC, wouldCreateTagCycle as eD, profile as ea, progressFetch as eb, projects as ec, refusalReason as ed, requireData as ee, requireOk as ef, resolveAuth as eg, resolveCitations as eh, resolveWorkspace as ei, responses as ej, searchChunks as ek, selectWorkspace as el, selectWorkspaceById as em, sessions as en, settings as eo, signatureRequests as ep, streamSSE as eq, stripCitationMarkdown as er, summarizeCitations as es, tagUseCount as et, tags as eu, tagsForScope as ev, tagsOfGroup as ew, uploadSkill as ex, usdToGbp as ey, work as ez, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiErrorEvent as j, type ArbiHostSession as k, type ArbiOptions as l, ArbiSessionExpiredError as m, type ArtifactEvent as n, type AttendeeRead as o, type AuthContext as p, type AuthHeaders as q, type AuthMode as r, type AuthenticatedClient as s, type BookingPage as t, type BookingPageWriteBody as u, type BookingRequestBody as v, type BridgeTokensOptions as w, type CalDavProfile as x, type CalendarAccount as y, type CalendarAccountKind as z };
|
package/dist/browser.cjs
CHANGED
|
@@ -3600,6 +3600,52 @@ async function authenticatedFetch(options) {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
return res;
|
|
3602
3602
|
}
|
|
3603
|
+
|
|
3604
|
+
// src/progress-fetch.ts
|
|
3605
|
+
var NULL_BODY_STATUSES = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
3606
|
+
function parseHeaders(raw) {
|
|
3607
|
+
const headers = new Headers();
|
|
3608
|
+
for (const line of raw.trim().split(/[\r\n]+/)) {
|
|
3609
|
+
const at2 = line.indexOf(":");
|
|
3610
|
+
if (at2 > 0) headers.append(line.slice(0, at2).trim(), line.slice(at2 + 1).trim());
|
|
3611
|
+
}
|
|
3612
|
+
return headers;
|
|
3613
|
+
}
|
|
3614
|
+
function progressFetch(onProgress) {
|
|
3615
|
+
const Xhr = globalThis.XMLHttpRequest;
|
|
3616
|
+
return async (request) => {
|
|
3617
|
+
if (!Xhr) {
|
|
3618
|
+
const response = await fetch(request);
|
|
3619
|
+
const size = Number(request.headers.get("content-length") ?? 0);
|
|
3620
|
+
onProgress(size, size);
|
|
3621
|
+
return response;
|
|
3622
|
+
}
|
|
3623
|
+
const body = await request.blob();
|
|
3624
|
+
return new Promise((resolve, reject) => {
|
|
3625
|
+
const xhr = new Xhr();
|
|
3626
|
+
xhr.open(request.method, request.url);
|
|
3627
|
+
request.headers.forEach((value, name) => xhr.setRequestHeader(name, value));
|
|
3628
|
+
xhr.withCredentials = request.credentials === "include";
|
|
3629
|
+
xhr.upload.onprogress = (event) => {
|
|
3630
|
+
if (event.lengthComputable) onProgress(event.loaded, event.total);
|
|
3631
|
+
};
|
|
3632
|
+
xhr.onload = () => {
|
|
3633
|
+
onProgress(body.size, body.size);
|
|
3634
|
+
resolve(
|
|
3635
|
+
new Response(NULL_BODY_STATUSES.has(xhr.status) ? null : xhr.responseText, {
|
|
3636
|
+
status: xhr.status,
|
|
3637
|
+
statusText: xhr.statusText,
|
|
3638
|
+
headers: parseHeaders(xhr.getAllResponseHeaders())
|
|
3639
|
+
})
|
|
3640
|
+
);
|
|
3641
|
+
};
|
|
3642
|
+
xhr.onerror = () => reject(new TypeError("Network error during upload"));
|
|
3643
|
+
xhr.onabort = () => reject(new DOMException("Upload aborted", "AbortError"));
|
|
3644
|
+
request.signal?.addEventListener("abort", () => xhr.abort(), { once: true });
|
|
3645
|
+
xhr.send(body);
|
|
3646
|
+
});
|
|
3647
|
+
};
|
|
3648
|
+
}
|
|
3603
3649
|
var TOKEN_MAX_AGE_MS = 50 * 60 * 1e3;
|
|
3604
3650
|
function formatWorkspaceChoices(wsList) {
|
|
3605
3651
|
return wsList.map((ws) => {
|
|
@@ -4567,6 +4613,7 @@ async function uploadDocuments(arbi, files, options = {}) {
|
|
|
4567
4613
|
}
|
|
4568
4614
|
const result = await arbi.fetch.POST("/v1/document/upload", {
|
|
4569
4615
|
params: { query },
|
|
4616
|
+
...options.onProgress ? { fetch: progressFetch(options.onProgress) } : {},
|
|
4570
4617
|
// The schema types the files as strings; they go as multipart parts.
|
|
4571
4618
|
body: { files },
|
|
4572
4619
|
bodySerializer: () => {
|
|
@@ -10239,6 +10286,7 @@ exports.parseSlashCommand = parseSlashCommand;
|
|
|
10239
10286
|
exports.parseSlashTokenInProgress = parseSlashTokenInProgress;
|
|
10240
10287
|
exports.performPasswordLogin = performPasswordLogin;
|
|
10241
10288
|
exports.profile = profile_exports;
|
|
10289
|
+
exports.progressFetch = progressFetch;
|
|
10242
10290
|
exports.projects = projects_exports;
|
|
10243
10291
|
exports.refusalReason = refusalReason;
|
|
10244
10292
|
exports.requireData = requireData;
|