@arbidocs/sdk 0.4.124 → 0.4.126
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-B_tpz4Ta.d.cts → browser-Ds-drrLp.d.cts} +97 -7
- package/dist/{browser-B_tpz4Ta.d.ts → browser-Ds-drrLp.d.ts} +97 -7
- package/dist/browser.cjs +74 -5
- 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 +74 -5
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +74 -5
- 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 +74 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as ConfigStore, z as CliConfig, B as CliCredentials, x as ChatSession, aS as SkippedFile, bm as UploadResult, m as AuthHeaders, bi as UploadBatchResult, bl as UploadOptions, bj as UploadDirectOptions, bk as UploadDirectResult, aP as SUPPORTED_EXTENSIONS, a8 as MailAttachment, q as ChatCryptoContext } from './browser-
|
|
2
|
-
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary, D as CommandDescriptor, F as ConnectOptions, G as ConversationResponse, H as ConversationUsageResponse, K as CreateWorkRequest, L as CreateWorkflowRequest, M as DEFAULT_AI_USD_PER_GBP, N as DOC_TERMINAL_STATUSES, O as DecryptedChat, P as DecryptedChatMessage, R as DocNameMap, S as DocumentAutomationAction, T as DocumentListFields, U as DocumentListOrder, V as DocumentSelector, W as DocumentWaiter, X as DocumentWaiterOptions, $ as FormattedWsMessage, a0 as IdentityErrorCode, a1 as IdentityPurchase, a2 as IdentityState, a3 as IdentityStatus, a4 as LinkedRun, a5 as ListAllOptions, a7 as ListPaginatedOptions, a9 as MailDraftSSEEvent, aa as MessageLevel, ab as MessageMetadataPayload, ac as MessageQueuedEvent, ad as OutputTokensDetails, ae as ParsedSlashCommand, af as PendingAuthResponse, ag as PlanStepsError, ah as PlanWorkRequest, aj as ProjectBudget, ak as ProjectConversationUsageResponse, al as ProjectDetails, am as ProjectEventKind, an as ProjectEventResponse, ao as ProjectInvoicesResponse, ap as ProjectResponse, aq as ProjectUpdateRequest, ar as ProjectUsageResponse, as as QueryOptions, at as RaisedSignal, au as ReconnectOptions, av as ReconnectableWsConnection, aw as ResolvedCitation, ax as ResolvedRecipient, ay as ResponseCompletedEvent, az as ResponseContentPartAddedEvent, aA as ResponseCreatedEvent, aB as ResponseFailedEvent, aC as ResponseOutputItemAddedEvent, aD as ResponseOutputItemDoneEvent, aE as ResponseOutputTextDeltaEvent, aF as ResponseOutputTextDoneEvent, aG as ResponseUsage, aH as RunProgress, aI as RunStep, aJ as RunWaitingOn, aK as SSEEvent, aL as SSEStreamCallbacks, aM as SSEStreamResult, aN as SSEStreamStartData, aO as STEP_FIELD_OPTION_TONES, aQ as SendBack, aR as SkillSummary, aT as StepActionRequest, aU as StepActivityEvent, aV as StepAssignee, aW as StepField, aX as StepFieldOption, aY as StepFieldOptionTone, aZ as StepKind, a_ as StepPhase, a$ as StepSignal, b0 as StepSignalWhen, b1 as StepState, b2 as StepStatus, b3 as SubmitBackgroundQueryOptions, b4 as TagChange, b5 as TagFieldDefinition, b6 as TagKind, b7 as TagKindField, b8 as TagKindSchema, b9 as TagLinks, ba as TagListQuery, bb as TagResponse, bc as TaskPlan, bd as TaskPlanStep, be as TokenBudgetContext, bf as UpdateConversationRequest, bh as UpdateWorkflowRequest, bn as UsageBreakdown, bo as UserDailyUsageResponse, bp as UserInfo, bq as UserInputRequestEvent, br as UserMessageEvent, bs as WebSocketAuthError, bt as WorkStatus, bu as WorkflowAuthMode, bv as WorkflowResponse, bw as WorkflowRunHistoryResponse, bx as WorkflowRunResponse, by as WorkspaceContext, bz as WsConnection, bA as account, bB as agentconfig, bC as agents, bD as assistant, bE as authenticatedFetch, bF as buildDocNameMap, bG as buildFactsContextTool, bH as buildRetrievalChunkTool, bI as buildRetrievalFullContextTool, bJ as buildRetrievalTocTool, bK as chats, bL as connectWebSocket, bM as connectWithReconnect, bN as consumeSSEStream, bO as contacts, bP as conversations, bQ as countCitations, bR as createAuthenticatedClient, bS as createDocumentWaiter, bT as doctags, bU as documents, bV as facts, bW as files, bX as filterSkills, bY as formatAgentStepLabel, bZ as formatFileSize, b_ as formatGbp, b$ as formatGbpPerMillionTokens, c0 as formatItemLabel, c1 as formatStreamSummary, c2 as formatUserName, c3 as formatWorkspaceChoices, c4 as formatWsMessage, c5 as generateEncryptedWorkspaceKey, c6 as generateNewWorkspaceKey, c7 as getErrorCode, c8 as getErrorMessage, c9 as getRawWorkspaceKey, ca as health, cc as identityErrorCode, cb as identityVerification, cd as mail, ce as notifications, cf as parseSSEEvents, cg as parseSlashCommand, ch as parseSlashTokenInProgress, ci as performPasswordLogin, cj as performSigningKeyLogin, ck as performSsoDeviceFlowLogin, cl as profile, cm as projects, cn as requireData, co as requireOk, cp as resolveAuth, cq as resolveCitations, cr as resolveWorkspace, cs as responses, ct as selectWorkspace, cu as selectWorkspaceById, cv as sessions, cw as settings, cx as signatureRequests, cy as streamSSE, cz as stripCitationMarkdown, cA as summarizeCitations, cB as tags, cC as usdToGbp, cD as work, cE as workflowSteps, cF as workflows, cG as workspaces } from './browser-
|
|
1
|
+
import { E as ConfigStore, z as CliConfig, B as CliCredentials, x as ChatSession, aS as SkippedFile, bm as UploadResult, m as AuthHeaders, bi as UploadBatchResult, bl as UploadOptions, bj as UploadDirectOptions, bk as UploadDirectResult, aP as SUPPORTED_EXTENSIONS, a8 as MailAttachment, q as ChatCryptoContext } from './browser-Ds-drrLp.cjs';
|
|
2
|
+
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary, D as CommandDescriptor, F as ConnectOptions, G as ConversationResponse, H as ConversationUsageResponse, K as CreateWorkRequest, L as CreateWorkflowRequest, M as DEFAULT_AI_USD_PER_GBP, N as DOC_TERMINAL_STATUSES, O as DecryptedChat, P as DecryptedChatMessage, R as DocNameMap, S as DocumentAutomationAction, T as DocumentListFields, U as DocumentListOrder, V as DocumentSelector, W as DocumentWaiter, X as DocumentWaiterOptions, $ as FormattedWsMessage, a0 as IdentityErrorCode, a1 as IdentityPurchase, a2 as IdentityState, a3 as IdentityStatus, a4 as LinkedRun, a5 as ListAllOptions, a7 as ListPaginatedOptions, a9 as MailDraftSSEEvent, aa as MessageLevel, ab as MessageMetadataPayload, ac as MessageQueuedEvent, ad as OutputTokensDetails, ae as ParsedSlashCommand, af as PendingAuthResponse, ag as PlanStepsError, ah as PlanWorkRequest, aj as ProjectBudget, ak as ProjectConversationUsageResponse, al as ProjectDetails, am as ProjectEventKind, an as ProjectEventResponse, ao as ProjectInvoicesResponse, ap as ProjectResponse, aq as ProjectUpdateRequest, ar as ProjectUsageResponse, as as QueryOptions, at as RaisedSignal, au as ReconnectOptions, av as ReconnectableWsConnection, aw as ResolvedCitation, ax as ResolvedRecipient, ay as ResponseCompletedEvent, az as ResponseContentPartAddedEvent, aA as ResponseCreatedEvent, aB as ResponseFailedEvent, aC as ResponseOutputItemAddedEvent, aD as ResponseOutputItemDoneEvent, aE as ResponseOutputTextDeltaEvent, aF as ResponseOutputTextDoneEvent, aG as ResponseUsage, aH as RunProgress, aI as RunStep, aJ as RunWaitingOn, aK as SSEEvent, aL as SSEStreamCallbacks, aM as SSEStreamResult, aN as SSEStreamStartData, aO as STEP_FIELD_OPTION_TONES, aQ as SendBack, aR as SkillSummary, aT as StepActionRequest, aU as StepActivityEvent, aV as StepAssignee, aW as StepField, aX as StepFieldOption, aY as StepFieldOptionTone, aZ as StepKind, a_ as StepPhase, a$ as StepSignal, b0 as StepSignalWhen, b1 as StepState, b2 as StepStatus, b3 as SubmitBackgroundQueryOptions, b4 as TagChange, b5 as TagFieldDefinition, b6 as TagKind, b7 as TagKindField, b8 as TagKindSchema, b9 as TagLinks, ba as TagListQuery, bb as TagResponse, bc as TaskPlan, bd as TaskPlanStep, be as TokenBudgetContext, bf as UpdateConversationRequest, bh as UpdateWorkflowRequest, bn as UsageBreakdown, bo as UserDailyUsageResponse, bp as UserInfo, bq as UserInputRequestEvent, br as UserMessageEvent, bs as WebSocketAuthError, bt as WorkStatus, bu as WorkflowAuthMode, bv as WorkflowResponse, bw as WorkflowRunHistoryResponse, bx as WorkflowRunResponse, by as WorkspaceContext, bz as WsConnection, bA as account, bB as agentconfig, bC as agents, bD as assistant, bE as authenticatedFetch, bF as buildDocNameMap, bG as buildFactsContextTool, bH as buildRetrievalChunkTool, bI as buildRetrievalFullContextTool, bJ as buildRetrievalTocTool, bK as chats, bL as connectWebSocket, bM as connectWithReconnect, bN as consumeSSEStream, bO as contacts, bP as conversations, bQ as countCitations, bR as createAuthenticatedClient, bS as createDocumentWaiter, bT as doctags, bU as documents, bV as facts, bW as files, bX as filterSkills, bY as formatAgentStepLabel, bZ as formatFileSize, b_ as formatGbp, b$ as formatGbpPerMillionTokens, c0 as formatItemLabel, c1 as formatStreamSummary, c2 as formatUserName, c3 as formatWorkspaceChoices, c4 as formatWsMessage, c5 as generateEncryptedWorkspaceKey, c6 as generateNewWorkspaceKey, c7 as getErrorCode, c8 as getErrorMessage, c9 as getRawWorkspaceKey, ca as health, cc as identityErrorCode, cb as identityVerification, cd as mail, ce as notifications, cf as parseSSEEvents, cg as parseSlashCommand, ch as parseSlashTokenInProgress, ci as performPasswordLogin, cj as performSigningKeyLogin, ck as performSsoDeviceFlowLogin, cl as profile, cm as projects, cn as requireData, co as requireOk, cp as resolveAuth, cq as resolveCitations, cr as resolveWorkspace, cs as responses, ct as selectWorkspace, cu as selectWorkspaceById, cv as sessions, cw as settings, cx as signatureRequests, cy as streamSSE, cz as stripCitationMarkdown, cA as summarizeCitations, cB as tags, cC as usdToGbp, cD as work, cE as workflowSteps, cF as workflows, cG as workspaces } from './browser-Ds-drrLp.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 { E as ConfigStore, z as CliConfig, B as CliCredentials, x as ChatSession, aS as SkippedFile, bm as UploadResult, m as AuthHeaders, bi as UploadBatchResult, bl as UploadOptions, bj as UploadDirectOptions, bk as UploadDirectResult, aP as SUPPORTED_EXTENSIONS, a8 as MailAttachment, q as ChatCryptoContext } from './browser-
|
|
2
|
-
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary, D as CommandDescriptor, F as ConnectOptions, G as ConversationResponse, H as ConversationUsageResponse, K as CreateWorkRequest, L as CreateWorkflowRequest, M as DEFAULT_AI_USD_PER_GBP, N as DOC_TERMINAL_STATUSES, O as DecryptedChat, P as DecryptedChatMessage, R as DocNameMap, S as DocumentAutomationAction, T as DocumentListFields, U as DocumentListOrder, V as DocumentSelector, W as DocumentWaiter, X as DocumentWaiterOptions, $ as FormattedWsMessage, a0 as IdentityErrorCode, a1 as IdentityPurchase, a2 as IdentityState, a3 as IdentityStatus, a4 as LinkedRun, a5 as ListAllOptions, a7 as ListPaginatedOptions, a9 as MailDraftSSEEvent, aa as MessageLevel, ab as MessageMetadataPayload, ac as MessageQueuedEvent, ad as OutputTokensDetails, ae as ParsedSlashCommand, af as PendingAuthResponse, ag as PlanStepsError, ah as PlanWorkRequest, aj as ProjectBudget, ak as ProjectConversationUsageResponse, al as ProjectDetails, am as ProjectEventKind, an as ProjectEventResponse, ao as ProjectInvoicesResponse, ap as ProjectResponse, aq as ProjectUpdateRequest, ar as ProjectUsageResponse, as as QueryOptions, at as RaisedSignal, au as ReconnectOptions, av as ReconnectableWsConnection, aw as ResolvedCitation, ax as ResolvedRecipient, ay as ResponseCompletedEvent, az as ResponseContentPartAddedEvent, aA as ResponseCreatedEvent, aB as ResponseFailedEvent, aC as ResponseOutputItemAddedEvent, aD as ResponseOutputItemDoneEvent, aE as ResponseOutputTextDeltaEvent, aF as ResponseOutputTextDoneEvent, aG as ResponseUsage, aH as RunProgress, aI as RunStep, aJ as RunWaitingOn, aK as SSEEvent, aL as SSEStreamCallbacks, aM as SSEStreamResult, aN as SSEStreamStartData, aO as STEP_FIELD_OPTION_TONES, aQ as SendBack, aR as SkillSummary, aT as StepActionRequest, aU as StepActivityEvent, aV as StepAssignee, aW as StepField, aX as StepFieldOption, aY as StepFieldOptionTone, aZ as StepKind, a_ as StepPhase, a$ as StepSignal, b0 as StepSignalWhen, b1 as StepState, b2 as StepStatus, b3 as SubmitBackgroundQueryOptions, b4 as TagChange, b5 as TagFieldDefinition, b6 as TagKind, b7 as TagKindField, b8 as TagKindSchema, b9 as TagLinks, ba as TagListQuery, bb as TagResponse, bc as TaskPlan, bd as TaskPlanStep, be as TokenBudgetContext, bf as UpdateConversationRequest, bh as UpdateWorkflowRequest, bn as UsageBreakdown, bo as UserDailyUsageResponse, bp as UserInfo, bq as UserInputRequestEvent, br as UserMessageEvent, bs as WebSocketAuthError, bt as WorkStatus, bu as WorkflowAuthMode, bv as WorkflowResponse, bw as WorkflowRunHistoryResponse, bx as WorkflowRunResponse, by as WorkspaceContext, bz as WsConnection, bA as account, bB as agentconfig, bC as agents, bD as assistant, bE as authenticatedFetch, bF as buildDocNameMap, bG as buildFactsContextTool, bH as buildRetrievalChunkTool, bI as buildRetrievalFullContextTool, bJ as buildRetrievalTocTool, bK as chats, bL as connectWebSocket, bM as connectWithReconnect, bN as consumeSSEStream, bO as contacts, bP as conversations, bQ as countCitations, bR as createAuthenticatedClient, bS as createDocumentWaiter, bT as doctags, bU as documents, bV as facts, bW as files, bX as filterSkills, bY as formatAgentStepLabel, bZ as formatFileSize, b_ as formatGbp, b$ as formatGbpPerMillionTokens, c0 as formatItemLabel, c1 as formatStreamSummary, c2 as formatUserName, c3 as formatWorkspaceChoices, c4 as formatWsMessage, c5 as generateEncryptedWorkspaceKey, c6 as generateNewWorkspaceKey, c7 as getErrorCode, c8 as getErrorMessage, c9 as getRawWorkspaceKey, ca as health, cc as identityErrorCode, cb as identityVerification, cd as mail, ce as notifications, cf as parseSSEEvents, cg as parseSlashCommand, ch as parseSlashTokenInProgress, ci as performPasswordLogin, cj as performSigningKeyLogin, ck as performSsoDeviceFlowLogin, cl as profile, cm as projects, cn as requireData, co as requireOk, cp as resolveAuth, cq as resolveCitations, cr as resolveWorkspace, cs as responses, ct as selectWorkspace, cu as selectWorkspaceById, cv as sessions, cw as settings, cx as signatureRequests, cy as streamSSE, cz as stripCitationMarkdown, cA as summarizeCitations, cB as tags, cC as usdToGbp, cD as work, cE as workflowSteps, cF as workflows, cG as workspaces } from './browser-
|
|
1
|
+
import { E as ConfigStore, z as CliConfig, B as CliCredentials, x as ChatSession, aS as SkippedFile, bm as UploadResult, m as AuthHeaders, bi as UploadBatchResult, bl as UploadOptions, bj as UploadDirectOptions, bk as UploadDirectResult, aP as SUPPORTED_EXTENSIONS, a8 as MailAttachment, q as ChatCryptoContext } from './browser-Ds-drrLp.js';
|
|
2
|
+
export { A as ActivityKind, a as ActivityResponse, d as AgentStepEvent, e as Arbi, f as ArbiApiError, g as ArbiError, i as ArbiOptions, j as ArbiSessionExpiredError, k as ArtifactEvent, l as AuthContext, n as AuthMode, o as AuthenticatedClient, C as ChatAttachmentFile, p as ChatAttachmentInput, r as ChatKeyRing, s as ChatKind, t as ChatMemberKey, u as ChatMemberResponse, v as ChatMessageResponse, w as ChatResponse, y as CitationSummary, D as CommandDescriptor, F as ConnectOptions, G as ConversationResponse, H as ConversationUsageResponse, K as CreateWorkRequest, L as CreateWorkflowRequest, M as DEFAULT_AI_USD_PER_GBP, N as DOC_TERMINAL_STATUSES, O as DecryptedChat, P as DecryptedChatMessage, R as DocNameMap, S as DocumentAutomationAction, T as DocumentListFields, U as DocumentListOrder, V as DocumentSelector, W as DocumentWaiter, X as DocumentWaiterOptions, $ as FormattedWsMessage, a0 as IdentityErrorCode, a1 as IdentityPurchase, a2 as IdentityState, a3 as IdentityStatus, a4 as LinkedRun, a5 as ListAllOptions, a7 as ListPaginatedOptions, a9 as MailDraftSSEEvent, aa as MessageLevel, ab as MessageMetadataPayload, ac as MessageQueuedEvent, ad as OutputTokensDetails, ae as ParsedSlashCommand, af as PendingAuthResponse, ag as PlanStepsError, ah as PlanWorkRequest, aj as ProjectBudget, ak as ProjectConversationUsageResponse, al as ProjectDetails, am as ProjectEventKind, an as ProjectEventResponse, ao as ProjectInvoicesResponse, ap as ProjectResponse, aq as ProjectUpdateRequest, ar as ProjectUsageResponse, as as QueryOptions, at as RaisedSignal, au as ReconnectOptions, av as ReconnectableWsConnection, aw as ResolvedCitation, ax as ResolvedRecipient, ay as ResponseCompletedEvent, az as ResponseContentPartAddedEvent, aA as ResponseCreatedEvent, aB as ResponseFailedEvent, aC as ResponseOutputItemAddedEvent, aD as ResponseOutputItemDoneEvent, aE as ResponseOutputTextDeltaEvent, aF as ResponseOutputTextDoneEvent, aG as ResponseUsage, aH as RunProgress, aI as RunStep, aJ as RunWaitingOn, aK as SSEEvent, aL as SSEStreamCallbacks, aM as SSEStreamResult, aN as SSEStreamStartData, aO as STEP_FIELD_OPTION_TONES, aQ as SendBack, aR as SkillSummary, aT as StepActionRequest, aU as StepActivityEvent, aV as StepAssignee, aW as StepField, aX as StepFieldOption, aY as StepFieldOptionTone, aZ as StepKind, a_ as StepPhase, a$ as StepSignal, b0 as StepSignalWhen, b1 as StepState, b2 as StepStatus, b3 as SubmitBackgroundQueryOptions, b4 as TagChange, b5 as TagFieldDefinition, b6 as TagKind, b7 as TagKindField, b8 as TagKindSchema, b9 as TagLinks, ba as TagListQuery, bb as TagResponse, bc as TaskPlan, bd as TaskPlanStep, be as TokenBudgetContext, bf as UpdateConversationRequest, bh as UpdateWorkflowRequest, bn as UsageBreakdown, bo as UserDailyUsageResponse, bp as UserInfo, bq as UserInputRequestEvent, br as UserMessageEvent, bs as WebSocketAuthError, bt as WorkStatus, bu as WorkflowAuthMode, bv as WorkflowResponse, bw as WorkflowRunHistoryResponse, bx as WorkflowRunResponse, by as WorkspaceContext, bz as WsConnection, bA as account, bB as agentconfig, bC as agents, bD as assistant, bE as authenticatedFetch, bF as buildDocNameMap, bG as buildFactsContextTool, bH as buildRetrievalChunkTool, bI as buildRetrievalFullContextTool, bJ as buildRetrievalTocTool, bK as chats, bL as connectWebSocket, bM as connectWithReconnect, bN as consumeSSEStream, bO as contacts, bP as conversations, bQ as countCitations, bR as createAuthenticatedClient, bS as createDocumentWaiter, bT as doctags, bU as documents, bV as facts, bW as files, bX as filterSkills, bY as formatAgentStepLabel, bZ as formatFileSize, b_ as formatGbp, b$ as formatGbpPerMillionTokens, c0 as formatItemLabel, c1 as formatStreamSummary, c2 as formatUserName, c3 as formatWorkspaceChoices, c4 as formatWsMessage, c5 as generateEncryptedWorkspaceKey, c6 as generateNewWorkspaceKey, c7 as getErrorCode, c8 as getErrorMessage, c9 as getRawWorkspaceKey, ca as health, cc as identityErrorCode, cb as identityVerification, cd as mail, ce as notifications, cf as parseSSEEvents, cg as parseSlashCommand, ch as parseSlashTokenInProgress, ci as performPasswordLogin, cj as performSigningKeyLogin, ck as performSsoDeviceFlowLogin, cl as profile, cm as projects, cn as requireData, co as requireOk, cp as resolveAuth, cq as resolveCitations, cr as resolveWorkspace, cs as responses, ct as selectWorkspace, cu as selectWorkspaceById, cv as sessions, cw as settings, cx as signatureRequests, cy as streamSSE, cz as stripCitationMarkdown, cA as summarizeCitations, cB as tags, cC as usdToGbp, cD as work, cE as workflowSteps, cF as workflows, cG as workspaces } from './browser-Ds-drrLp.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -4898,6 +4898,7 @@ __export(documents_exports, {
|
|
|
4898
4898
|
SUPPORTED_EXTENSIONS: () => SUPPORTED_EXTENSIONS,
|
|
4899
4899
|
deleteDocuments: () => deleteDocuments,
|
|
4900
4900
|
downloadDocument: () => downloadDocument,
|
|
4901
|
+
finaliseTranslation: () => finaliseTranslation,
|
|
4901
4902
|
getDocuments: () => getDocuments,
|
|
4902
4903
|
getParsedContent: () => getParsedContent,
|
|
4903
4904
|
getThumbnails: () => getThumbnails,
|
|
@@ -5056,6 +5057,14 @@ async function listVersions(arbi, docId) {
|
|
|
5056
5057
|
"Failed to fetch document versions"
|
|
5057
5058
|
);
|
|
5058
5059
|
}
|
|
5060
|
+
async function finaliseTranslation(arbi, docId) {
|
|
5061
|
+
return requireData(
|
|
5062
|
+
await arbi.fetch.POST("/v1/document/{document_ext_id}/finalise-translation", {
|
|
5063
|
+
params: { path: { document_ext_id: docId } }
|
|
5064
|
+
}),
|
|
5065
|
+
"Failed to finalise the translation"
|
|
5066
|
+
);
|
|
5067
|
+
}
|
|
5059
5068
|
async function deleteDocuments(arbi, externalIds) {
|
|
5060
5069
|
requireOk(
|
|
5061
5070
|
await arbi.fetch.DELETE("/v1/document/", { body: { external_ids: externalIds } }),
|
|
@@ -7225,6 +7234,7 @@ __export(workflow_steps_exports, {
|
|
|
7225
7234
|
PERSON_STEP_KINDS: () => PERSON_STEP_KINDS,
|
|
7226
7235
|
PlanStepsError: () => PlanStepsError,
|
|
7227
7236
|
SIGNAL_NAME_PATTERN: () => SIGNAL_NAME_PATTERN,
|
|
7237
|
+
STEP_ACTION_TYPES: () => STEP_ACTION_TYPES,
|
|
7228
7238
|
STEP_FIELD_OPTION_TONES: () => STEP_FIELD_OPTION_TONES,
|
|
7229
7239
|
STEP_FIELD_TYPES: () => STEP_FIELD_TYPES,
|
|
7230
7240
|
STEP_ID_PATTERN: () => STEP_ID_PATTERN,
|
|
@@ -7249,7 +7259,8 @@ __export(workflow_steps_exports, {
|
|
|
7249
7259
|
stepsPlan: () => stepsPlan,
|
|
7250
7260
|
waitingForDocumentsText: () => waitingForDocumentsText
|
|
7251
7261
|
});
|
|
7252
|
-
var STEP_KINDS = ["form", "upload", "agent", "review"];
|
|
7262
|
+
var STEP_KINDS = ["form", "upload", "agent", "review", "action"];
|
|
7263
|
+
var STEP_ACTION_TYPES = ["sign", "email_draft", "tabular_review"];
|
|
7253
7264
|
var PERSON_STEP_KINDS = ["form", "upload", "review"];
|
|
7254
7265
|
var STEP_ID_PATTERN = /^[a-z][a-z0-9_-]{0,63}$/;
|
|
7255
7266
|
var STEP_EVENTS = {
|
|
@@ -7265,7 +7276,9 @@ var EMPTY_STATE = {
|
|
|
7265
7276
|
sentBack: false,
|
|
7266
7277
|
hasNote: false,
|
|
7267
7278
|
announcedTo: null,
|
|
7268
|
-
waitingDocuments: []
|
|
7279
|
+
waitingDocuments: [],
|
|
7280
|
+
waitingAction: null,
|
|
7281
|
+
waitingDocument: null
|
|
7269
7282
|
};
|
|
7270
7283
|
var str = (v2) => typeof v2 === "string" ? v2 : null;
|
|
7271
7284
|
var isFinished = (state) => state?.status === "done" || state?.status === "skipped";
|
|
@@ -7327,6 +7340,14 @@ function stepStatesFromActivity(events) {
|
|
|
7327
7340
|
const documents = waitingDocumentsOf(detail);
|
|
7328
7341
|
if (documents)
|
|
7329
7342
|
states[step] = { ...states[step] ?? EMPTY_STATE, waitingDocuments: documents };
|
|
7343
|
+
const action = str(detail.action);
|
|
7344
|
+
const waiting = detail.waiting;
|
|
7345
|
+
if (action && waiting && typeof waiting === "object" && !documents)
|
|
7346
|
+
states[step] = {
|
|
7347
|
+
...states[step] ?? EMPTY_STATE,
|
|
7348
|
+
waitingAction: action,
|
|
7349
|
+
waitingDocument: str(waiting.doc_ext_id)
|
|
7350
|
+
};
|
|
7330
7351
|
continue;
|
|
7331
7352
|
}
|
|
7332
7353
|
const status = STEP_EVENTS[e.kind];
|
|
@@ -7380,6 +7401,7 @@ function sendBacks(events) {
|
|
|
7380
7401
|
}
|
|
7381
7402
|
function stepPhase(steps, states, id) {
|
|
7382
7403
|
const state = states[id];
|
|
7404
|
+
if (state?.status === "running" && state.waitingAction) return "waiting";
|
|
7383
7405
|
if (state && state.status !== "pending") return state.status;
|
|
7384
7406
|
return stepDependencies(steps, id).every((d2) => isFinished(states[d2])) ? "ready" : "pending";
|
|
7385
7407
|
}
|
|
@@ -7405,7 +7427,9 @@ function runSteps(steps, events) {
|
|
|
7405
7427
|
timesSentBack: backs.filter((b2) => b2.to === s2.id).length,
|
|
7406
7428
|
signals: [...new Set(signals.filter((x2) => x2.step === s2.id).map((x2) => x2.signal))],
|
|
7407
7429
|
linkedRuns: links.filter((l2) => l2.step === s2.id),
|
|
7408
|
-
waitingDocuments: state.waitingDocuments
|
|
7430
|
+
waitingDocuments: state.waitingDocuments,
|
|
7431
|
+
waitingAction: state.waitingAction,
|
|
7432
|
+
waitingDocument: state.waitingDocument
|
|
7409
7433
|
};
|
|
7410
7434
|
});
|
|
7411
7435
|
}
|
|
@@ -7565,8 +7589,22 @@ var STEP_KEYS = /* @__PURE__ */ new Set([
|
|
|
7565
7589
|
"signals",
|
|
7566
7590
|
"assignee",
|
|
7567
7591
|
"remind_after_hours",
|
|
7568
|
-
"fields"
|
|
7592
|
+
"fields",
|
|
7593
|
+
"action",
|
|
7594
|
+
"edit_document"
|
|
7569
7595
|
]);
|
|
7596
|
+
var isDocumentRef = (v2) => typeof v2 === "string" && /^doc-[a-zA-Z0-9]{8}(?:@v[0-9]+)?$/.test(v2) || isRecord(v2) && Object.keys(v2).length === 1 && (typeof v2.step === "string" && STEP_ID_PATTERN.test(v2.step) || typeof v2.input === "string");
|
|
7597
|
+
var DOCUMENT_REF_HINT = "a doc- id, {step: <step id>} or {input: <field>}";
|
|
7598
|
+
function checkAction(action, at2, problems) {
|
|
7599
|
+
if (!isRecord(action) || !STEP_ACTION_TYPES.includes(action.type)) {
|
|
7600
|
+
problems.push(`${at2}.type: must be one of ${STEP_ACTION_TYPES.join(", ")}`);
|
|
7601
|
+
return;
|
|
7602
|
+
}
|
|
7603
|
+
if (action.type === "sign" && !isDocumentRef(action.document))
|
|
7604
|
+
problems.push(`${at2}.document: the document to sign, ${DOCUMENT_REF_HINT}`);
|
|
7605
|
+
if (isSet(action.attachments) && (!Array.isArray(action.attachments) || !action.attachments.every(isDocumentRef)))
|
|
7606
|
+
problems.push(`${at2}.attachments: a list of documents, each ${DOCUMENT_REF_HINT}`);
|
|
7607
|
+
}
|
|
7570
7608
|
var SIGNAL_NAME_PATTERN = /^[a-z0-9][a-z0-9_.-]{0,63}$/;
|
|
7571
7609
|
var FIELD_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9_]{0,63}$/;
|
|
7572
7610
|
var WHEN_KEYS = ["field", "equals", "contains", "matches", "approved"];
|
|
@@ -7715,6 +7753,20 @@ function checkStep(raw, at2, problems) {
|
|
|
7715
7753
|
if (!STEP_KEYS.has(key))
|
|
7716
7754
|
problems.push(`${at2}.${key}: unknown field (allowed: ${[...STEP_KEYS].join(", ")})`);
|
|
7717
7755
|
const { id, title, kind, after, skill, prompt, inputs, branch, ui } = raw;
|
|
7756
|
+
const { action, edit_document: editDocument } = raw;
|
|
7757
|
+
if (kind === "action") {
|
|
7758
|
+
if (!isSet(action))
|
|
7759
|
+
problems.push(
|
|
7760
|
+
`${at2}.action: an action step needs an action (${STEP_ACTION_TYPES.join(", ")})`
|
|
7761
|
+
);
|
|
7762
|
+
else checkAction(action, `${at2}.action`, problems);
|
|
7763
|
+
} else if (isSet(action)) problems.push(`${at2}.action: only an action step has an action`);
|
|
7764
|
+
if (isSet(editDocument)) {
|
|
7765
|
+
if (kind !== "agent" || branch)
|
|
7766
|
+
problems.push(`${at2}.edit_document: belongs to an agent step on the main line`);
|
|
7767
|
+
else if (!isDocumentRef(editDocument))
|
|
7768
|
+
problems.push(`${at2}.edit_document: ${DOCUMENT_REF_HINT}`);
|
|
7769
|
+
}
|
|
7718
7770
|
if (typeof id !== "string" || !STEP_ID_PATTERN.test(id))
|
|
7719
7771
|
problems.push(
|
|
7720
7772
|
`${at2}.id: must be lowercase letters, digits, "_" or "-", starting with a letter (got ${JSON.stringify(id)})`
|
|
@@ -7801,7 +7853,9 @@ function checkStep(raw, at2, problems) {
|
|
|
7801
7853
|
...isSet(signals) ? { signals } : {},
|
|
7802
7854
|
...isSet(assignee) ? { assignee } : {},
|
|
7803
7855
|
...isSet(remind) ? { remind_after_hours: remind } : {},
|
|
7804
|
-
...isSet(stepFieldsRaw) ? { fields: normalFields(stepFieldsRaw) } : {}
|
|
7856
|
+
...isSet(stepFieldsRaw) ? { fields: normalFields(stepFieldsRaw) } : {},
|
|
7857
|
+
...isSet(action) ? { action } : {},
|
|
7858
|
+
...isSet(editDocument) ? { edit_document: editDocument } : {}
|
|
7805
7859
|
};
|
|
7806
7860
|
}
|
|
7807
7861
|
function parsePlanSteps(value) {
|
|
@@ -7969,9 +8023,11 @@ __export(workflows_exports, {
|
|
|
7969
8023
|
createWorkflow: () => createWorkflow,
|
|
7970
8024
|
deleteWorkflow: () => deleteWorkflow,
|
|
7971
8025
|
getWorkflow: () => getWorkflow,
|
|
8026
|
+
grantWorkflowAgentAccess: () => grantWorkflowAgentAccess,
|
|
7972
8027
|
listWorkflowRuns: () => listWorkflowRuns,
|
|
7973
8028
|
listWorkflows: () => listWorkflows,
|
|
7974
8029
|
runWorkflow: () => runWorkflow,
|
|
8030
|
+
runsUnattended: () => runsUnattended,
|
|
7975
8031
|
updateWorkflow: () => updateWorkflow
|
|
7976
8032
|
});
|
|
7977
8033
|
var byId2 = (workflowId) => ({ params: { path: { workflow_id: workflowId } } });
|
|
@@ -8011,6 +8067,19 @@ async function listWorkflowRuns(arbi, workflowId) {
|
|
|
8011
8067
|
"Failed to list automation executions"
|
|
8012
8068
|
);
|
|
8013
8069
|
}
|
|
8070
|
+
var runsUnattended = (w2) => !w2.on_demand;
|
|
8071
|
+
async function grantWorkflowAgentAccess(agents, workflow, grant) {
|
|
8072
|
+
if (workflow.auth_mode !== "scheduled_permanent" || !runsUnattended(workflow) || !workflow.agent_ext_id)
|
|
8073
|
+
return null;
|
|
8074
|
+
const email = agents.find((a2) => a2.external_id === workflow.agent_ext_id)?.email;
|
|
8075
|
+
if (!email) return null;
|
|
8076
|
+
try {
|
|
8077
|
+
await grant(email);
|
|
8078
|
+
} catch (err) {
|
|
8079
|
+
if (!/already|no users found to add/i.test(String(err?.message ?? err))) throw err;
|
|
8080
|
+
}
|
|
8081
|
+
return email;
|
|
8082
|
+
}
|
|
8014
8083
|
|
|
8015
8084
|
// src/operations/facts.ts
|
|
8016
8085
|
var facts_exports = {};
|