@arbidocs/sdk 0.4.142 → 0.4.143
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-DmkCooa-.d.cts → browser-C48W4Ivd.d.cts} +70 -1
- package/dist/{browser-DmkCooa-.d.ts → browser-C48W4Ivd.d.ts} +70 -1
- package/dist/browser.cjs +86 -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 +86 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +86 -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 +86 -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 { a0 as ConfigStore, Z as CliConfig, _ as CliCredentials, W as ChatSession,
|
|
2
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, n as ArbiHostSession, o as ArbiOptions, p as ArbiSessionExpiredError, q as ArtifactEvent, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, X as CitationSummary, Y as CitationToolSources, $ as CommandDescriptor, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, a9 as DOC_TERMINAL_STATUSES, aa as DateTimeSpec, ab as DecryptedChat, ac as DecryptedChatMessage, ae as
|
|
1
|
+
import { a0 as ConfigStore, Z as CliConfig, _ as CliCredentials, W as ChatSession, bH as SkippedFile, ce as UploadResult, t as AuthHeaders, ca as UploadBatchResult, cd as UploadOptions, cb as UploadDirectOptions, cc as UploadDirectResult, bB as SUPPORTED_EXTENSIONS, aL as MailAttachment, P as ChatCryptoContext } from './browser-C48W4Ivd.cjs';
|
|
2
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, n as ArbiHostSession, o as ArbiOptions, p as ArbiSessionExpiredError, q as ArtifactEvent, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, X as CitationSummary, Y as CitationToolSources, $ as CommandDescriptor, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, a9 as DOC_TERMINAL_STATUSES, aa as DateTimeSpec, ab as DecryptedChat, ac as DecryptedChatMessage, ae as DeploymentHouseTemplate, af as DocNameMap, ag as DocumentAutomationAction, ah as DocumentListFields, ai as DocumentListOrder, aj as DocumentSelector, ak as DocumentWaiter, al as DocumentWaiterOptions, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, aw as FormattedWsMessage, ax as FreeBusyEntry, ay as HolidayCountry, az as HouseTemplateCandidate, aA as IdentityErrorCode, aB as IdentityPurchase, aC as IdentityState, aD as IdentityStatus, aE as ImportResult, aF as InvitationRead, aG as LinkedRun, aH as ListAllOptions, aI as ListEventsParams, aK as ListPaginatedOptions, aM as MailDraftSSEEvent, aN as MessageLevel, aO as MessageMetadataPayload, aP as MessageQueuedEvent, aQ as OAuthAccountKind, aR as OutputTokensDetails, aS as OverlayItem, aT as OverlayLayerName, aU as ParsedSlashCommand, aV as PendingAuthResponse, aW as PersonKey, aX as PlanStepsError, aY as PlanWorkRequest, a_ as ProjectBudget, a$ as ProjectConversationUsageResponse, b0 as ProjectDetails, b1 as ProjectEventKind, b2 as ProjectEventResponse, b3 as ProjectInvoicesResponse, b4 as ProjectResponse, b5 as ProjectUpdateRequest, b6 as ProjectUsageResponse, b7 as PublicBookingError, b8 as PublicBookingPage, b9 as QueryOptions, ba as RaisedSignal, bb as ReconnectOptions, bc as ReconnectableWsConnection, bd as ResolvedCitation, be as ResolvedRecipient, bf as RespondParams, bg as RespondPartstat, bh as ResponseCompletedEvent, bi as ResponseContentPartAddedEvent, bj as ResponseCreatedEvent, bk as ResponseFailedEvent, bl as ResponseOutputItemAddedEvent, bm as ResponseOutputItemDoneEvent, bn as ResponseOutputTextDeltaEvent, bo as ResponseOutputTextDoneEvent, bp as ResponseUsage, bq as RoomCreateBody, br as RoomQuery, bs as RoomRead, bt as RunProgress, bu as RunStep, bv as RunWaitingOn, bw as SSEEvent, bx as SSEStreamCallbacks, by as SSEStreamResult, bz as SSEStreamStartData, bA as STEP_FIELD_OPTION_TONES, bC as ScopedTarget, bD as SendBack, bE as ShareRead, bF as ShareRole, bG as SkillSummary, bI as StepActionRequest, bJ as StepActivityEvent, bK as StepAssignee, bL as StepField, bM as StepFieldOption, bN as StepFieldOptionTone, bO as StepKind, bP as StepPhase, bQ as StepSignal, bR as StepSignalWhen, bS as StepState, bT as StepStatus, bU as SubmitBackgroundQueryOptions, bV as SubscribeParams, bW as TAG_KINDS, bX as TagChange, bY as TagFieldDefinition, bZ as TagKind, b_ as TagKindField, b$ as TagKindSchema, c0 as TagLinks, c1 as TagListQuery, c2 as TagResponse, c3 as TaskPlan, c4 as TaskPlanStep, c5 as TimeSuggestion, c6 as TokenBudgetContext, c7 as UpdateConversationRequest, c9 as UpdateWorkflowRequest, cf as UsageBreakdown, cg as UserDailyUsageResponse, ch as UserInfo, ci as UserInputRequestEvent, cj as UserMessageEvent, ck as WebSocketAuthError, cl as WeeklyHoursSpec, cm as WorkStatus, cn as WorkflowAuthMode, co as WorkflowResponse, cp as WorkflowRunHistoryResponse, cq as WorkflowRunResponse, cr as WorkspaceContext, cs as WsConnection, ct as account, cu as agentconfig, cv as agents, cw as assistant, cx as authenticatedFetch, cy as bookPublicSlot, cz as buildCitationChunkData, cA as buildDocNameMap, cB as buildFactsContextTool, cC as buildRetrievalChunkTool, cD as buildRetrievalFullContextTool, cE as buildRetrievalTocTool, cF as calendar, cG as cancelPublicBooking, cH as chats, cI as connectWebSocket, cJ as connectWithReconnect, cK as consumeSSEStream, cL as contacts, cM as conversations, cN as countCitations, cO as createAuthenticatedClient, cP as createDocumentWaiter, cQ as doctags, cR as documents, cS as facts, cT as files, cU as filterSkills, cV as formatAgentStepLabel, cW as formatFileSize, cX as formatGbp, cY as formatGbpPerMillionTokens, cZ as formatItemLabel, c_ as formatStreamSummary, c$ as formatUserName, d0 as formatWorkspaceChoices, d1 as formatWsMessage, d2 as generateEncryptedWorkspaceKey, d3 as generateNewWorkspaceKey, d4 as getErrorCode, d5 as getErrorMessage, d6 as getPublicBookingPage, d7 as getRawWorkspaceKey, d8 as health, d9 as houseTemplates, db as identityErrorCode, da as identityVerification, dc as isSharedSkill, dd as mail, de as notifications, df as parseSSEEvents, dg as parseSlashCommand, dh as parseSlashTokenInProgress, di as performPasswordLogin, dj as performSigningKeyLogin, dk as performSsoDeviceFlowLogin, dl as profile, dm as projects, dn as requireData, dp as requireOk, dq as resolveAuth, dr as resolveCitations, ds as resolveWorkspace, dt as responses, du as selectWorkspace, dv as selectWorkspaceById, dw as sessions, dx as settings, dy as signatureRequests, dz as splitAppPasswords, dA as streamSSE, dB as stripCitationMarkdown, dC as summarizeCitations, dD as tags, dE as uploadSkill, dF as usdToGbp, dG as work, dH as workflowSteps, dI as workflows, dJ as workspaces } from './browser-C48W4Ivd.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 { a0 as ConfigStore, Z as CliConfig, _ as CliCredentials, W as ChatSession,
|
|
2
|
-
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, n as ArbiHostSession, o as ArbiOptions, p as ArbiSessionExpiredError, q as ArtifactEvent, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, X as CitationSummary, Y as CitationToolSources, $ as CommandDescriptor, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, a9 as DOC_TERMINAL_STATUSES, aa as DateTimeSpec, ab as DecryptedChat, ac as DecryptedChatMessage, ae as
|
|
1
|
+
import { a0 as ConfigStore, Z as CliConfig, _ as CliCredentials, W as ChatSession, bH as SkippedFile, ce as UploadResult, t as AuthHeaders, ca as UploadBatchResult, cd as UploadOptions, cb as UploadDirectOptions, cc as UploadDirectResult, bB as SUPPORTED_EXTENSIONS, aL as MailAttachment, P as ChatCryptoContext } from './browser-C48W4Ivd.js';
|
|
2
|
+
export { A as ACCOUNT_VENDOR, a as AccountSyncResult, b as ActivityKind, c as ActivityResponse, f as AgentStepEvent, g as AppPassword, h as AppPasswordCreateBody, i as AppPasswordCreated, j as Arbi, k as ArbiApiError, l as ArbiError, n as ArbiHostSession, o as ArbiOptions, p as ArbiSessionExpiredError, q as ArtifactEvent, r as AttendeeRead, s as AuthContext, u as AuthMode, v as AuthenticatedClient, B as BookingConfirmation, w as BookingPage, x as BookingPageWriteBody, y as BookingRequestBody, C as CalDavConnectBody, z as CalDavProfile, D as CalendarAccount, E as CalendarAccountKind, F as CalendarCreateBody, G as CalendarEvent, H as CalendarKeys, I as CalendarRead, J as CalendarSettings, K as CalendarSettingsBody, L as CalendarUpdate, M as CalendarWindow, N as ChatAttachmentFile, O as ChatAttachmentInput, Q as ChatKeyRing, R as ChatKind, S as ChatMemberKey, T as ChatMemberResponse, U as ChatMessageResponse, V as ChatResponse, X as CitationSummary, Y as CitationToolSources, $ as CommandDescriptor, a1 as ConnectOptions, a2 as ConversationResponse, a3 as ConversationUsageResponse, a6 as CreateWorkRequest, a7 as CreateWorkflowRequest, a8 as DEFAULT_AI_USD_PER_GBP, a9 as DOC_TERMINAL_STATUSES, aa as DateTimeSpec, ab as DecryptedChat, ac as DecryptedChatMessage, ae as DeploymentHouseTemplate, af as DocNameMap, ag as DocumentAutomationAction, ah as DocumentListFields, ai as DocumentListOrder, aj as DocumentSelector, ak as DocumentWaiter, al as DocumentWaiterOptions, am as EditScope, an as EventCreateBody, ao as EventPatchBody, ap as FLAT_TAG_KINDS, at as FeedCreateBody, au as FeedLevel, av as FindTimeParams, aw as FormattedWsMessage, ax as FreeBusyEntry, ay as HolidayCountry, az as HouseTemplateCandidate, aA as IdentityErrorCode, aB as IdentityPurchase, aC as IdentityState, aD as IdentityStatus, aE as ImportResult, aF as InvitationRead, aG as LinkedRun, aH as ListAllOptions, aI as ListEventsParams, aK as ListPaginatedOptions, aM as MailDraftSSEEvent, aN as MessageLevel, aO as MessageMetadataPayload, aP as MessageQueuedEvent, aQ as OAuthAccountKind, aR as OutputTokensDetails, aS as OverlayItem, aT as OverlayLayerName, aU as ParsedSlashCommand, aV as PendingAuthResponse, aW as PersonKey, aX as PlanStepsError, aY as PlanWorkRequest, a_ as ProjectBudget, a$ as ProjectConversationUsageResponse, b0 as ProjectDetails, b1 as ProjectEventKind, b2 as ProjectEventResponse, b3 as ProjectInvoicesResponse, b4 as ProjectResponse, b5 as ProjectUpdateRequest, b6 as ProjectUsageResponse, b7 as PublicBookingError, b8 as PublicBookingPage, b9 as QueryOptions, ba as RaisedSignal, bb as ReconnectOptions, bc as ReconnectableWsConnection, bd as ResolvedCitation, be as ResolvedRecipient, bf as RespondParams, bg as RespondPartstat, bh as ResponseCompletedEvent, bi as ResponseContentPartAddedEvent, bj as ResponseCreatedEvent, bk as ResponseFailedEvent, bl as ResponseOutputItemAddedEvent, bm as ResponseOutputItemDoneEvent, bn as ResponseOutputTextDeltaEvent, bo as ResponseOutputTextDoneEvent, bp as ResponseUsage, bq as RoomCreateBody, br as RoomQuery, bs as RoomRead, bt as RunProgress, bu as RunStep, bv as RunWaitingOn, bw as SSEEvent, bx as SSEStreamCallbacks, by as SSEStreamResult, bz as SSEStreamStartData, bA as STEP_FIELD_OPTION_TONES, bC as ScopedTarget, bD as SendBack, bE as ShareRead, bF as ShareRole, bG as SkillSummary, bI as StepActionRequest, bJ as StepActivityEvent, bK as StepAssignee, bL as StepField, bM as StepFieldOption, bN as StepFieldOptionTone, bO as StepKind, bP as StepPhase, bQ as StepSignal, bR as StepSignalWhen, bS as StepState, bT as StepStatus, bU as SubmitBackgroundQueryOptions, bV as SubscribeParams, bW as TAG_KINDS, bX as TagChange, bY as TagFieldDefinition, bZ as TagKind, b_ as TagKindField, b$ as TagKindSchema, c0 as TagLinks, c1 as TagListQuery, c2 as TagResponse, c3 as TaskPlan, c4 as TaskPlanStep, c5 as TimeSuggestion, c6 as TokenBudgetContext, c7 as UpdateConversationRequest, c9 as UpdateWorkflowRequest, cf as UsageBreakdown, cg as UserDailyUsageResponse, ch as UserInfo, ci as UserInputRequestEvent, cj as UserMessageEvent, ck as WebSocketAuthError, cl as WeeklyHoursSpec, cm as WorkStatus, cn as WorkflowAuthMode, co as WorkflowResponse, cp as WorkflowRunHistoryResponse, cq as WorkflowRunResponse, cr as WorkspaceContext, cs as WsConnection, ct as account, cu as agentconfig, cv as agents, cw as assistant, cx as authenticatedFetch, cy as bookPublicSlot, cz as buildCitationChunkData, cA as buildDocNameMap, cB as buildFactsContextTool, cC as buildRetrievalChunkTool, cD as buildRetrievalFullContextTool, cE as buildRetrievalTocTool, cF as calendar, cG as cancelPublicBooking, cH as chats, cI as connectWebSocket, cJ as connectWithReconnect, cK as consumeSSEStream, cL as contacts, cM as conversations, cN as countCitations, cO as createAuthenticatedClient, cP as createDocumentWaiter, cQ as doctags, cR as documents, cS as facts, cT as files, cU as filterSkills, cV as formatAgentStepLabel, cW as formatFileSize, cX as formatGbp, cY as formatGbpPerMillionTokens, cZ as formatItemLabel, c_ as formatStreamSummary, c$ as formatUserName, d0 as formatWorkspaceChoices, d1 as formatWsMessage, d2 as generateEncryptedWorkspaceKey, d3 as generateNewWorkspaceKey, d4 as getErrorCode, d5 as getErrorMessage, d6 as getPublicBookingPage, d7 as getRawWorkspaceKey, d8 as health, d9 as houseTemplates, db as identityErrorCode, da as identityVerification, dc as isSharedSkill, dd as mail, de as notifications, df as parseSSEEvents, dg as parseSlashCommand, dh as parseSlashTokenInProgress, di as performPasswordLogin, dj as performSigningKeyLogin, dk as performSsoDeviceFlowLogin, dl as profile, dm as projects, dn as requireData, dp as requireOk, dq as resolveAuth, dr as resolveCitations, ds as resolveWorkspace, dt as responses, du as selectWorkspace, dv as selectWorkspaceById, dw as sessions, dx as settings, dy as signatureRequests, dz as splitAppPasswords, dA as streamSSE, dB as stripCitationMarkdown, dC as summarizeCitations, dD as tags, dE as uploadSkill, dF as usdToGbp, dG as work, dH as workflowSteps, dI as workflows, dJ as workspaces } from './browser-C48W4Ivd.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
export { LoginProfile } from '@arbidocs/client';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -5417,6 +5417,76 @@ async function declineSignatureRequest(arbi, requestId, reason) {
|
|
|
5417
5417
|
);
|
|
5418
5418
|
}
|
|
5419
5419
|
|
|
5420
|
+
// src/operations/house-template.ts
|
|
5421
|
+
var house_template_exports = {};
|
|
5422
|
+
__export(house_template_exports, {
|
|
5423
|
+
getDeploymentHouseTemplate: () => getDeploymentHouseTemplate,
|
|
5424
|
+
isDeploymentAdmin: () => isDeploymentAdmin,
|
|
5425
|
+
listHouseTemplateCandidates: () => listHouseTemplateCandidates,
|
|
5426
|
+
setDeploymentHouseTemplate: () => setDeploymentHouseTemplate,
|
|
5427
|
+
setWorkspaceHouseTemplate: () => setWorkspaceHouseTemplate,
|
|
5428
|
+
supportsHouseTemplates: () => supportsHouseTemplates,
|
|
5429
|
+
workspaceHouseTemplateId: () => workspaceHouseTemplateId
|
|
5430
|
+
});
|
|
5431
|
+
function supportsHouseTemplates(workspace) {
|
|
5432
|
+
return !!workspace && "house_template_ext_id" in workspace;
|
|
5433
|
+
}
|
|
5434
|
+
function workspaceHouseTemplateId(workspace) {
|
|
5435
|
+
return workspace?.house_template_ext_id ?? null;
|
|
5436
|
+
}
|
|
5437
|
+
function isDeploymentAdmin(user) {
|
|
5438
|
+
return user?.is_deployment_admin === true;
|
|
5439
|
+
}
|
|
5440
|
+
function filenameOf(response) {
|
|
5441
|
+
const header = response.headers.get("Content-Disposition") ?? "";
|
|
5442
|
+
const star = /filename\*=UTF-8''([^;]+)/i.exec(header);
|
|
5443
|
+
if (star) return decodeURIComponent(star[1]);
|
|
5444
|
+
return /filename="?([^";]+)"?/i.exec(header)?.[1];
|
|
5445
|
+
}
|
|
5446
|
+
async function getDeploymentHouseTemplate(arbi) {
|
|
5447
|
+
const { data, error, response } = await arbi.fetch.GET("/v1/deployment/house-template", {
|
|
5448
|
+
parseAs: "arrayBuffer"
|
|
5449
|
+
});
|
|
5450
|
+
if (response.status === 404) return null;
|
|
5451
|
+
if (error || !data)
|
|
5452
|
+
throw new ArbiApiError("Could not read the deployment house template", error, response.status);
|
|
5453
|
+
return {
|
|
5454
|
+
bytes: new Uint8Array(data),
|
|
5455
|
+
name: filenameOf(response) ?? "House template.dotx"
|
|
5456
|
+
};
|
|
5457
|
+
}
|
|
5458
|
+
async function setDeploymentHouseTemplate(arbi, file) {
|
|
5459
|
+
if (!file) {
|
|
5460
|
+
requireOk(
|
|
5461
|
+
await arbi.fetch.DELETE("/v1/deployment/house-template"),
|
|
5462
|
+
"Could not clear the deployment house template"
|
|
5463
|
+
);
|
|
5464
|
+
return;
|
|
5465
|
+
}
|
|
5466
|
+
const form = new FormData();
|
|
5467
|
+
form.append("file", file);
|
|
5468
|
+
requireOk(
|
|
5469
|
+
await arbi.fetch.PUT("/v1/deployment/house-template", {
|
|
5470
|
+
// The schema types the multipart file as a string; the FormData is sent as is.
|
|
5471
|
+
body: form,
|
|
5472
|
+
bodySerializer: () => form
|
|
5473
|
+
}),
|
|
5474
|
+
"Could not set the deployment house template"
|
|
5475
|
+
);
|
|
5476
|
+
}
|
|
5477
|
+
async function setWorkspaceHouseTemplate(arbi, documentId) {
|
|
5478
|
+
requireData(
|
|
5479
|
+
await arbi.fetch.PATCH("/v1/workspace/", { body: { house_template_ext_id: documentId } }),
|
|
5480
|
+
"Could not set the house template"
|
|
5481
|
+
);
|
|
5482
|
+
}
|
|
5483
|
+
async function listHouseTemplateCandidates(arbi) {
|
|
5484
|
+
return requireData(
|
|
5485
|
+
await arbi.fetch.GET("/v1/workspace/house-template/candidates"),
|
|
5486
|
+
"Could not list the documents that can be the house template"
|
|
5487
|
+
);
|
|
5488
|
+
}
|
|
5489
|
+
|
|
5420
5490
|
// src/operations/workspaces.ts
|
|
5421
5491
|
var workspaces_exports = {};
|
|
5422
5492
|
__export(workspaces_exports, {
|
|
@@ -9982,6 +10052,21 @@ var Arbi = class {
|
|
|
9982
10052
|
void: (requestId) => voidSignatureRequest(this.requireClient(), requestId),
|
|
9983
10053
|
decline: (requestId, reason) => declineSignatureRequest(this.requireClient(), requestId, reason)
|
|
9984
10054
|
};
|
|
10055
|
+
// ── House templates ─────────────────────────────────────────────────
|
|
10056
|
+
/**
|
|
10057
|
+
* The Word house template: a workspace's own (one of its documents), else the deployment's
|
|
10058
|
+
* default. Only on servers that store them (`supportsHouseTemplates(workspace)`).
|
|
10059
|
+
*/
|
|
10060
|
+
houseTemplates = {
|
|
10061
|
+
/** The deployment default, or null when none is set. */
|
|
10062
|
+
deployment: () => getDeploymentHouseTemplate(this.requireClient()),
|
|
10063
|
+
/** Set the deployment default (`null` clears it). Deployment admins only. */
|
|
10064
|
+
setDeployment: (file) => setDeploymentHouseTemplate(this.requireClient(), file),
|
|
10065
|
+
/** Make a document of the open workspace its house template (`null` clears it). Owners only. */
|
|
10066
|
+
setWorkspace: (documentId) => setWorkspaceHouseTemplate(this.requireClient(), documentId),
|
|
10067
|
+
/** The documents the open workspace may use as its house template. */
|
|
10068
|
+
candidates: () => listHouseTemplateCandidates(this.requireClient())
|
|
10069
|
+
};
|
|
9985
10070
|
// ── Workspace facts ─────────────────────────────────────────────────
|
|
9986
10071
|
facts = {
|
|
9987
10072
|
create: (body) => createFact(this.requireClient(), body),
|
|
@@ -11105,6 +11190,6 @@ async function startDmListener(options) {
|
|
|
11105
11190
|
};
|
|
11106
11191
|
}
|
|
11107
11192
|
|
|
11108
|
-
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, FLAT_TAG_KINDS, FileConfigStore, OpenClawOrchestrator, PlanStepsError, PublicBookingError, 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, connectWebSocket, connectWithReconnect, 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, identityErrorCode, identity_exports as identityVerification, 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, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, splitAppPasswords, 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 };
|
|
11193
|
+
export { ACCOUNT_VENDOR, Arbi, ArbiApiError, ArbiError, ArbiSessionExpiredError, ClaudeOrchestrator, DEFAULT_AI_USD_PER_GBP, DOC_TERMINAL_STATUSES, FLAT_TAG_KINDS, FileConfigStore, OpenClawOrchestrator, PlanStepsError, PublicBookingError, 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, connectWebSocket, connectWithReconnect, 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, 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, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, signature_requests_exports as signatureRequests, splitAppPasswords, 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 };
|
|
11109
11194
|
//# sourceMappingURL=index.js.map
|
|
11110
11195
|
//# sourceMappingURL=index.js.map
|