@arbidocs/sdk 0.4.139 → 0.4.141
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-D3wxXCKl.d.cts → browser-DmkCooa-.d.cts} +39 -3
- package/dist/{browser-D3wxXCKl.d.ts → browser-DmkCooa-.d.ts} +39 -3
- package/dist/browser.cjs +29 -2
- 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 +29 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +31 -2
- 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 +30 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2949,6 +2949,19 @@ type SkillSummary = components['schemas']['SkillSummaryResponse'];
|
|
|
2949
2949
|
declare function listSkills(arbi: ArbiClient, options?: {
|
|
2950
2950
|
includeHidden?: boolean;
|
|
2951
2951
|
}): Promise<SkillSummary[]>;
|
|
2952
|
+
/**
|
|
2953
|
+
* Whether a skill is the caller's own and shared with everyone (``global``), so saving it again
|
|
2954
|
+
* keeps it shared. Any other skill (private, someone else's, a built-in) is saved private.
|
|
2955
|
+
*/
|
|
2956
|
+
declare function isSharedSkill(skill: Pick<SkillSummary, 'visibility' | 'is_owner'>): boolean;
|
|
2957
|
+
/**
|
|
2958
|
+
* Save a SKILL.md as the caller's skill ``slug`` (``skills/<slug>/SKILL.md``, ``wp_type=skill``).
|
|
2959
|
+
* Private (the uploader's own) unless ``shared``: saving a skill never publishes it to everyone
|
|
2960
|
+
* by itself. Pass ``shared: isSharedSkill(skill)`` when changing an existing skill.
|
|
2961
|
+
*/
|
|
2962
|
+
declare function uploadSkill(auth: AuthHeaders, slug: string, markdown: string, options?: {
|
|
2963
|
+
shared?: boolean;
|
|
2964
|
+
}): Promise<UploadResult>;
|
|
2952
2965
|
/** A built-in slash command as exposed by ``GET /v1/assistant/commands``.
|
|
2953
2966
|
* These are shipped commands (``/image``, ``/compact``, …) from the backend
|
|
2954
2967
|
* command registry — distinct from dynamic user-authored skills. */
|
|
@@ -3031,6 +3044,7 @@ declare const assistant_buildRetrievalFullContextTool: typeof buildRetrievalFull
|
|
|
3031
3044
|
declare const assistant_buildRetrievalTocTool: typeof buildRetrievalTocTool;
|
|
3032
3045
|
declare const assistant_cancelAssistantRun: typeof cancelAssistantRun;
|
|
3033
3046
|
declare const assistant_filterSkills: typeof filterSkills;
|
|
3047
|
+
declare const assistant_isSharedSkill: typeof isSharedSkill;
|
|
3034
3048
|
declare const assistant_listCommands: typeof listCommands;
|
|
3035
3049
|
declare const assistant_listSkills: typeof listSkills;
|
|
3036
3050
|
declare const assistant_parseSlashCommand: typeof parseSlashCommand;
|
|
@@ -3038,8 +3052,9 @@ declare const assistant_parseSlashTokenInProgress: typeof parseSlashTokenInProgr
|
|
|
3038
3052
|
declare const assistant_queryAssistant: typeof queryAssistant;
|
|
3039
3053
|
declare const assistant_respondToAgent: typeof respondToAgent;
|
|
3040
3054
|
declare const assistant_retrieve: typeof retrieve;
|
|
3055
|
+
declare const assistant_uploadSkill: typeof uploadSkill;
|
|
3041
3056
|
declare namespace assistant {
|
|
3042
|
-
export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildFactsContextTool as buildFactsContextTool, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_cancelAssistantRun as cancelAssistantRun, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
|
|
3057
|
+
export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildFactsContextTool as buildFactsContextTool, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_cancelAssistantRun as cancelAssistantRun, assistant_filterSkills as filterSkills, assistant_isSharedSkill as isSharedSkill, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve, assistant_uploadSkill as uploadSkill };
|
|
3043
3058
|
}
|
|
3044
3059
|
|
|
3045
3060
|
/**
|
|
@@ -3289,6 +3304,18 @@ declare function updateTag(arbi: ArbiClient, tagId: string, change: TagChange):
|
|
|
3289
3304
|
created_at: string;
|
|
3290
3305
|
updated_at: string;
|
|
3291
3306
|
}>;
|
|
3307
|
+
/**
|
|
3308
|
+
* Find the people and organisations these documents name and link each to its entity tag
|
|
3309
|
+
* (existing entities are reused by name; only ever adds). Accepted at once: a `batch_complete`
|
|
3310
|
+
* (`entity_extract`) WebSocket message follows when every document is done.
|
|
3311
|
+
*/
|
|
3312
|
+
declare function extractEntities(arbi: ArbiClient, docIds: string[], options?: {
|
|
3313
|
+
kinds?: ('person' | 'organisation')[];
|
|
3314
|
+
overwrite?: boolean;
|
|
3315
|
+
}): Promise<{
|
|
3316
|
+
doc_ext_ids: string[];
|
|
3317
|
+
kinds: string[];
|
|
3318
|
+
}>;
|
|
3292
3319
|
/** Merge-patch a tag's values for its kind's fields (keyed by field id or name; `null` clears). */
|
|
3293
3320
|
declare function setTagValues(arbi: ArbiClient, tagId: string, values: Record<string, unknown>): Promise<TagResponse>;
|
|
3294
3321
|
/** Every kind's fields in the open workspace (built-in ones where it has not set its own). */
|
|
@@ -3325,6 +3352,7 @@ type tags_TagResponse = TagResponse;
|
|
|
3325
3352
|
type tags_UpdateTagRequest = UpdateTagRequest;
|
|
3326
3353
|
declare const tags_createTag: typeof createTag;
|
|
3327
3354
|
declare const tags_deleteTag: typeof deleteTag;
|
|
3355
|
+
declare const tags_extractEntities: typeof extractEntities;
|
|
3328
3356
|
declare const tags_getTagKind: typeof getTagKind;
|
|
3329
3357
|
declare const tags_kindFieldWrites: typeof kindFieldWrites;
|
|
3330
3358
|
declare const tags_listTagKinds: typeof listTagKinds;
|
|
@@ -3334,7 +3362,7 @@ declare const tags_setTagValues: typeof setTagValues;
|
|
|
3334
3362
|
declare const tags_updateTag: typeof updateTag;
|
|
3335
3363
|
declare const tags_updateTagKind: typeof updateTagKind;
|
|
3336
3364
|
declare namespace tags {
|
|
3337
|
-
export { tags_FLAT_TAG_KINDS as FLAT_TAG_KINDS, tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, tags_TAG_KINDS as TAG_KINDS, type tags_TagChange as TagChange, type tags_TagFieldDefinition as TagFieldDefinition, type tags_TagKind as TagKind, type tags_TagKindField as TagKindField, type tags_TagKindSchema as TagKindSchema, type tags_TagLinks as TagLinks, type tags_TagListQuery as TagListQuery, type tags_TagResponse as TagResponse, type tags_UpdateTagRequest as UpdateTagRequest, tags_createTag as createTag, tags_deleteTag as deleteTag, tags_getTagKind as getTagKind, tags_kindFieldWrites as kindFieldWrites, tags_listTagKinds as listTagKinds, tags_listTags as listTags, tags_mergeKindFieldDefinitions as mergeKindFieldDefinitions, tags_setTagValues as setTagValues, tags_updateTag as updateTag, tags_updateTagKind as updateTagKind };
|
|
3365
|
+
export { tags_FLAT_TAG_KINDS as FLAT_TAG_KINDS, tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, tags_TAG_KINDS as TAG_KINDS, type tags_TagChange as TagChange, type tags_TagFieldDefinition as TagFieldDefinition, type tags_TagKind as TagKind, type tags_TagKindField as TagKindField, type tags_TagKindSchema as TagKindSchema, type tags_TagLinks as TagLinks, type tags_TagListQuery as TagListQuery, type tags_TagResponse as TagResponse, type tags_UpdateTagRequest as UpdateTagRequest, tags_createTag as createTag, tags_deleteTag as deleteTag, tags_extractEntities as extractEntities, tags_getTagKind as getTagKind, tags_kindFieldWrites as kindFieldWrites, tags_listTagKinds as listTagKinds, tags_listTags as listTags, tags_mergeKindFieldDefinitions as mergeKindFieldDefinitions, tags_setTagValues as setTagValues, tags_updateTag as updateTag, tags_updateTagKind as updateTagKind };
|
|
3338
3366
|
}
|
|
3339
3367
|
|
|
3340
3368
|
/**
|
|
@@ -8961,6 +8989,14 @@ declare class Arbi {
|
|
|
8961
8989
|
created_at: string;
|
|
8962
8990
|
updated_at: string;
|
|
8963
8991
|
}>;
|
|
8992
|
+
/** Link the people and organisations these documents name (runs in the background). */
|
|
8993
|
+
extractEntities: (docIds: string[], options?: {
|
|
8994
|
+
kinds?: ("person" | "organisation")[];
|
|
8995
|
+
overwrite?: boolean;
|
|
8996
|
+
}) => Promise<{
|
|
8997
|
+
doc_ext_ids: string[];
|
|
8998
|
+
kinds: string[];
|
|
8999
|
+
}>;
|
|
8964
9000
|
};
|
|
8965
9001
|
readonly tagKinds: {
|
|
8966
9002
|
/** Every kind's fields (the built-in ones where the workspace has not set its own). */
|
|
@@ -12297,4 +12333,4 @@ declare namespace identity {
|
|
|
12297
12333
|
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 };
|
|
12298
12334
|
}
|
|
12299
12335
|
|
|
12300
|
-
export { type CommandDescriptor as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarAccount as D, type CalendarAccountKind as E, type CalendarCreateBody as F, type CalendarEvent as G, type CalendarKeys as H, type CalendarRead as I, type CalendarSettings as J, type CalendarSettingsBody as K, type CalendarUpdate as L, type CalendarWindow as M, type ChatAttachmentFile as N, type ChatAttachmentInput as O, type ChatCryptoContext as P, type ChatKeyRing as Q, type ChatKind as R, type ChatMemberKey as S, type ChatMemberResponse as T, type ChatMessageResponse as U, type ChatResponse as V, type ChatSession as W, type CitationSummary as X, type CitationToolSources as Y, type CliConfig as Z, type CliCredentials as _, type AccountSyncResult as a, type ProjectEventKind as a$, type ConfigStore as a0, type ConnectOptions as a1, type ConversationResponse as a2, type ConversationUsageResponse as a3, type CreateFactRequest as a4, type CreateFactsRequest as a5, type CreateWorkRequest as a6, type CreateWorkflowRequest as a7, DEFAULT_AI_USD_PER_GBP as a8, DOC_TERMINAL_STATUSES as a9, type IdentityState as aA, type IdentityStatus as aB, type ImportResult as aC, type InvitationRead as aD, type LinkedRun as aE, type ListAllOptions as aF, type ListEventsParams as aG, type ListFactsOptions as aH, type ListPaginatedOptions as aI, type MailAttachment as aJ, type MailDraftSSEEvent as aK, type MessageLevel as aL, type MessageMetadataPayload$1 as aM, type MessageQueuedEvent as aN, type OAuthAccountKind as aO, type OutputTokensDetails as aP, type OverlayItem as aQ, type OverlayLayerName as aR, type ParsedSlashCommand as aS, type PendingAuthResponse as aT, type PersonKey as aU, PlanStepsError as aV, type PlanWorkRequest as aW, type ProbeAnswerEvent as aX, type ProjectBudget as aY, type ProjectConversationUsageResponse as aZ, type ProjectDetails as a_, type DateTimeSpec as aa, type DecryptedChat as ab, type DecryptedChatMessage as ac, type DeferredInterjectionEvent as ad, type DocNameMap as ae, type DocumentAutomationAction as af, type DocumentListFields as ag, type DocumentListOrder as ah, type DocumentSelector as ai, type DocumentWaiter as aj, type DocumentWaiterOptions as ak, type EditScope as al, type EventCreateBody as am, type EventPatchBody as an, FLAT_TAG_KINDS as ao, type FactResponse as ap, type FactSearchRequest as aq, type FactSearchResponse as ar, type FeedCreateBody as as, type FeedLevel as at, type FindTimeParams as au, type FormattedWsMessage as av, type FreeBusyEntry as aw, type HolidayCountry as ax, type IdentityErrorCode as ay, type IdentityPurchase as az, type ActivityKind as b, type TagListQuery as b$, type ProjectEventResponse as b0, type ProjectInvoicesResponse as b1, type ProjectResponse as b2, type ProjectUpdateRequest as b3, type ProjectUsageResponse as b4, PublicBookingError as b5, type PublicBookingPage as b6, type QueryOptions as b7, type RaisedSignal as b8, type ReconnectOptions as b9, type ScopedTarget as bA, type SendBack as bB, type ShareRead as bC, type ShareRole as bD, type SkillSummary as bE, type SkippedFile as bF, type StepActionRequest as bG, type StepActivityEvent as bH, type StepAssignee as bI, type StepField as bJ, type StepFieldOption as bK, type StepFieldOptionTone as bL, type StepKind as bM, type StepPhase as bN, type StepSignal as bO, type StepSignalWhen as bP, type StepState as bQ, type StepStatus as bR, type SubmitBackgroundQueryOptions as bS, type SubscribeParams as bT, TAG_KINDS as bU, type TagChange as bV, type TagFieldDefinition as bW, type TagKind as bX, type TagKindField as bY, type TagKindSchema as bZ, type TagLinks as b_, type ReconnectableWsConnection as ba, type ResolvedCitation as bb, type ResolvedRecipient as bc, type RespondParams as bd, type RespondPartstat as be, type ResponseCompletedEvent as bf, type ResponseContentPartAddedEvent as bg, type ResponseCreatedEvent as bh, type ResponseFailedEvent as bi, type ResponseOutputItemAddedEvent as bj, type ResponseOutputItemDoneEvent as bk, type ResponseOutputTextDeltaEvent as bl, type ResponseOutputTextDoneEvent as bm, type ResponseUsage as bn, type RoomCreateBody as bo, type RoomQuery as bp, type RoomRead as bq, type RunProgress as br, type RunStep as bs, type RunWaitingOn as bt, type SSEEvent as bu, type SSEStreamCallbacks as bv, type SSEStreamResult as bw, type SSEStreamStartData as bx, STEP_FIELD_OPTION_TONES as by, SUPPORTED_EXTENSIONS as bz, type ActivityResponse as c, formatWsMessage as c$, type TagResponse as c0, type TaskPlan as c1, type TaskPlanStep as c2, type TimeSuggestion as c3, type TokenBudgetContext as c4, type UpdateConversationRequest as c5, type UpdateFactRequest as c6, type UpdateWorkflowRequest as c7, type UploadBatchResult as c8, type UploadDirectOptions as c9, buildRetrievalChunkTool as cA, buildRetrievalFullContextTool as cB, buildRetrievalTocTool as cC, calendar as cD, cancelPublicBooking as cE, chats as cF, connectWebSocket as cG, connectWithReconnect as cH, consumeSSEStream as cI, contacts as cJ, conversations as cK, countCitations as cL, createAuthenticatedClient as cM, createDocumentWaiter as cN, doctags as cO, documents as cP, facts as cQ, files as cR, filterSkills as cS, formatAgentStepLabel as cT, formatFileSize as cU, formatGbp as cV, formatGbpPerMillionTokens as cW, formatItemLabel as cX, formatStreamSummary as cY, formatUserName as cZ, formatWorkspaceChoices as c_, type UploadDirectResult as ca, type UploadOptions as cb, type UploadResult as cc, type UsageBreakdown as cd, type UserDailyUsageResponse as ce, type UserInfo as cf, type UserInputRequestEvent as cg, type UserMessageEvent as ch, WebSocketAuthError as ci, type WeeklyHoursSpec as cj, type WorkStatus as ck, type WorkflowAuthMode as cl, type WorkflowResponse as cm, type WorkflowRunHistoryResponse as cn, type WorkflowRunResponse as co, type WorkspaceContext as cp, type WsConnection as cq, account as cr, agentconfig as cs, agents as ct, assistant as cu, authenticatedFetch as cv, bookPublicSlot as cw, buildCitationChunkData as cx, buildDocNameMap as cy, buildFactsContextTool as cz, type AgentControlStateEvent as d, generateEncryptedWorkspaceKey as d0, generateNewWorkspaceKey as d1, getErrorCode as d2, getErrorMessage as d3, getPublicBookingPage as d4, getRawWorkspaceKey as d5, health as d6, identity as d7, identityErrorCode as d8,
|
|
12336
|
+
export { type CommandDescriptor as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarAccount as D, type CalendarAccountKind as E, type CalendarCreateBody as F, type CalendarEvent as G, type CalendarKeys as H, type CalendarRead as I, type CalendarSettings as J, type CalendarSettingsBody as K, type CalendarUpdate as L, type CalendarWindow as M, type ChatAttachmentFile as N, type ChatAttachmentInput as O, type ChatCryptoContext as P, type ChatKeyRing as Q, type ChatKind as R, type ChatMemberKey as S, type ChatMemberResponse as T, type ChatMessageResponse as U, type ChatResponse as V, type ChatSession as W, type CitationSummary as X, type CitationToolSources as Y, type CliConfig as Z, type CliCredentials as _, type AccountSyncResult as a, type ProjectEventKind as a$, type ConfigStore as a0, type ConnectOptions as a1, type ConversationResponse as a2, type ConversationUsageResponse as a3, type CreateFactRequest as a4, type CreateFactsRequest as a5, type CreateWorkRequest as a6, type CreateWorkflowRequest as a7, DEFAULT_AI_USD_PER_GBP as a8, DOC_TERMINAL_STATUSES as a9, type IdentityState as aA, type IdentityStatus as aB, type ImportResult as aC, type InvitationRead as aD, type LinkedRun as aE, type ListAllOptions as aF, type ListEventsParams as aG, type ListFactsOptions as aH, type ListPaginatedOptions as aI, type MailAttachment as aJ, type MailDraftSSEEvent as aK, type MessageLevel as aL, type MessageMetadataPayload$1 as aM, type MessageQueuedEvent as aN, type OAuthAccountKind as aO, type OutputTokensDetails as aP, type OverlayItem as aQ, type OverlayLayerName as aR, type ParsedSlashCommand as aS, type PendingAuthResponse as aT, type PersonKey as aU, PlanStepsError as aV, type PlanWorkRequest as aW, type ProbeAnswerEvent as aX, type ProjectBudget as aY, type ProjectConversationUsageResponse as aZ, type ProjectDetails as a_, type DateTimeSpec as aa, type DecryptedChat as ab, type DecryptedChatMessage as ac, type DeferredInterjectionEvent as ad, type DocNameMap as ae, type DocumentAutomationAction as af, type DocumentListFields as ag, type DocumentListOrder as ah, type DocumentSelector as ai, type DocumentWaiter as aj, type DocumentWaiterOptions as ak, type EditScope as al, type EventCreateBody as am, type EventPatchBody as an, FLAT_TAG_KINDS as ao, type FactResponse as ap, type FactSearchRequest as aq, type FactSearchResponse as ar, type FeedCreateBody as as, type FeedLevel as at, type FindTimeParams as au, type FormattedWsMessage as av, type FreeBusyEntry as aw, type HolidayCountry as ax, type IdentityErrorCode as ay, type IdentityPurchase as az, type ActivityKind as b, type TagListQuery as b$, type ProjectEventResponse as b0, type ProjectInvoicesResponse as b1, type ProjectResponse as b2, type ProjectUpdateRequest as b3, type ProjectUsageResponse as b4, PublicBookingError as b5, type PublicBookingPage as b6, type QueryOptions as b7, type RaisedSignal as b8, type ReconnectOptions as b9, type ScopedTarget as bA, type SendBack as bB, type ShareRead as bC, type ShareRole as bD, type SkillSummary as bE, type SkippedFile as bF, type StepActionRequest as bG, type StepActivityEvent as bH, type StepAssignee as bI, type StepField as bJ, type StepFieldOption as bK, type StepFieldOptionTone as bL, type StepKind as bM, type StepPhase as bN, type StepSignal as bO, type StepSignalWhen as bP, type StepState as bQ, type StepStatus as bR, type SubmitBackgroundQueryOptions as bS, type SubscribeParams as bT, TAG_KINDS as bU, type TagChange as bV, type TagFieldDefinition as bW, type TagKind as bX, type TagKindField as bY, type TagKindSchema as bZ, type TagLinks as b_, type ReconnectableWsConnection as ba, type ResolvedCitation as bb, type ResolvedRecipient as bc, type RespondParams as bd, type RespondPartstat as be, type ResponseCompletedEvent as bf, type ResponseContentPartAddedEvent as bg, type ResponseCreatedEvent as bh, type ResponseFailedEvent as bi, type ResponseOutputItemAddedEvent as bj, type ResponseOutputItemDoneEvent as bk, type ResponseOutputTextDeltaEvent as bl, type ResponseOutputTextDoneEvent as bm, type ResponseUsage as bn, type RoomCreateBody as bo, type RoomQuery as bp, type RoomRead as bq, type RunProgress as br, type RunStep as bs, type RunWaitingOn as bt, type SSEEvent as bu, type SSEStreamCallbacks as bv, type SSEStreamResult as bw, type SSEStreamStartData as bx, STEP_FIELD_OPTION_TONES as by, SUPPORTED_EXTENSIONS as bz, type ActivityResponse as c, formatWsMessage as c$, type TagResponse as c0, type TaskPlan as c1, type TaskPlanStep as c2, type TimeSuggestion as c3, type TokenBudgetContext as c4, type UpdateConversationRequest as c5, type UpdateFactRequest as c6, type UpdateWorkflowRequest as c7, type UploadBatchResult as c8, type UploadDirectOptions as c9, buildRetrievalChunkTool as cA, buildRetrievalFullContextTool as cB, buildRetrievalTocTool as cC, calendar as cD, cancelPublicBooking as cE, chats as cF, connectWebSocket as cG, connectWithReconnect as cH, consumeSSEStream as cI, contacts as cJ, conversations as cK, countCitations as cL, createAuthenticatedClient as cM, createDocumentWaiter as cN, doctags as cO, documents as cP, facts as cQ, files as cR, filterSkills as cS, formatAgentStepLabel as cT, formatFileSize as cU, formatGbp as cV, formatGbpPerMillionTokens as cW, formatItemLabel as cX, formatStreamSummary as cY, formatUserName as cZ, formatWorkspaceChoices as c_, type UploadDirectResult as ca, type UploadOptions as cb, type UploadResult as cc, type UsageBreakdown as cd, type UserDailyUsageResponse as ce, type UserInfo as cf, type UserInputRequestEvent as cg, type UserMessageEvent as ch, WebSocketAuthError as ci, type WeeklyHoursSpec as cj, type WorkStatus as ck, type WorkflowAuthMode as cl, type WorkflowResponse as cm, type WorkflowRunHistoryResponse as cn, type WorkflowRunResponse as co, type WorkspaceContext as cp, type WsConnection as cq, account as cr, agentconfig as cs, agents as ct, assistant as cu, authenticatedFetch as cv, bookPublicSlot as cw, buildCitationChunkData as cx, buildDocNameMap as cy, buildFactsContextTool as cz, type AgentControlStateEvent as d, generateEncryptedWorkspaceKey as d0, generateNewWorkspaceKey as d1, getErrorCode as d2, getErrorMessage as d3, getPublicBookingPage as d4, getRawWorkspaceKey as d5, health as d6, identity as d7, identityErrorCode as d8, isSharedSkill as d9, tags as dA, uploadSkill as dB, usdToGbp as dC, work as dD, workflowSteps as dE, workflows as dF, workspaces as dG, mail as da, notifications as db, parseSSEEvents as dc, parseSlashCommand as dd, parseSlashTokenInProgress as de, performPasswordLogin as df, performSigningKeyLogin as dg, performSsoDeviceFlowLogin as dh, profile as di, projects as dj, requireData as dk, requireOk as dl, resolveAuth as dm, resolveCitations as dn, resolveWorkspace as dp, responses as dq, selectWorkspace as dr, selectWorkspaceById as ds, sessions as dt, settings as du, signatureRequests as dv, splitAppPasswords as dw, streamSSE as dx, stripCitationMarkdown as dy, summarizeCitations as dz, type AgentStepDeltaEvent as e, type AgentStepEvent as f, type AppPassword as g, type AppPasswordCreateBody as h, type AppPasswordCreated as i, Arbi as j, ArbiApiError as k, ArbiError as l, type ArbiErrorEvent as m, type ArbiHostSession as n, type ArbiOptions as o, ArbiSessionExpiredError as p, type ArtifactEvent as q, type AttendeeRead as r, type AuthContext as s, type AuthHeaders as t, type AuthMode as u, type AuthenticatedClient as v, type BookingPage as w, type BookingPageWriteBody as x, type BookingRequestBody as y, type CalDavProfile as z };
|
|
@@ -2949,6 +2949,19 @@ type SkillSummary = components['schemas']['SkillSummaryResponse'];
|
|
|
2949
2949
|
declare function listSkills(arbi: ArbiClient, options?: {
|
|
2950
2950
|
includeHidden?: boolean;
|
|
2951
2951
|
}): Promise<SkillSummary[]>;
|
|
2952
|
+
/**
|
|
2953
|
+
* Whether a skill is the caller's own and shared with everyone (``global``), so saving it again
|
|
2954
|
+
* keeps it shared. Any other skill (private, someone else's, a built-in) is saved private.
|
|
2955
|
+
*/
|
|
2956
|
+
declare function isSharedSkill(skill: Pick<SkillSummary, 'visibility' | 'is_owner'>): boolean;
|
|
2957
|
+
/**
|
|
2958
|
+
* Save a SKILL.md as the caller's skill ``slug`` (``skills/<slug>/SKILL.md``, ``wp_type=skill``).
|
|
2959
|
+
* Private (the uploader's own) unless ``shared``: saving a skill never publishes it to everyone
|
|
2960
|
+
* by itself. Pass ``shared: isSharedSkill(skill)`` when changing an existing skill.
|
|
2961
|
+
*/
|
|
2962
|
+
declare function uploadSkill(auth: AuthHeaders, slug: string, markdown: string, options?: {
|
|
2963
|
+
shared?: boolean;
|
|
2964
|
+
}): Promise<UploadResult>;
|
|
2952
2965
|
/** A built-in slash command as exposed by ``GET /v1/assistant/commands``.
|
|
2953
2966
|
* These are shipped commands (``/image``, ``/compact``, …) from the backend
|
|
2954
2967
|
* command registry — distinct from dynamic user-authored skills. */
|
|
@@ -3031,6 +3044,7 @@ declare const assistant_buildRetrievalFullContextTool: typeof buildRetrievalFull
|
|
|
3031
3044
|
declare const assistant_buildRetrievalTocTool: typeof buildRetrievalTocTool;
|
|
3032
3045
|
declare const assistant_cancelAssistantRun: typeof cancelAssistantRun;
|
|
3033
3046
|
declare const assistant_filterSkills: typeof filterSkills;
|
|
3047
|
+
declare const assistant_isSharedSkill: typeof isSharedSkill;
|
|
3034
3048
|
declare const assistant_listCommands: typeof listCommands;
|
|
3035
3049
|
declare const assistant_listSkills: typeof listSkills;
|
|
3036
3050
|
declare const assistant_parseSlashCommand: typeof parseSlashCommand;
|
|
@@ -3038,8 +3052,9 @@ declare const assistant_parseSlashTokenInProgress: typeof parseSlashTokenInProgr
|
|
|
3038
3052
|
declare const assistant_queryAssistant: typeof queryAssistant;
|
|
3039
3053
|
declare const assistant_respondToAgent: typeof respondToAgent;
|
|
3040
3054
|
declare const assistant_retrieve: typeof retrieve;
|
|
3055
|
+
declare const assistant_uploadSkill: typeof uploadSkill;
|
|
3041
3056
|
declare namespace assistant {
|
|
3042
|
-
export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildFactsContextTool as buildFactsContextTool, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_cancelAssistantRun as cancelAssistantRun, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
|
|
3057
|
+
export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildFactsContextTool as buildFactsContextTool, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_cancelAssistantRun as cancelAssistantRun, assistant_filterSkills as filterSkills, assistant_isSharedSkill as isSharedSkill, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve, assistant_uploadSkill as uploadSkill };
|
|
3043
3058
|
}
|
|
3044
3059
|
|
|
3045
3060
|
/**
|
|
@@ -3289,6 +3304,18 @@ declare function updateTag(arbi: ArbiClient, tagId: string, change: TagChange):
|
|
|
3289
3304
|
created_at: string;
|
|
3290
3305
|
updated_at: string;
|
|
3291
3306
|
}>;
|
|
3307
|
+
/**
|
|
3308
|
+
* Find the people and organisations these documents name and link each to its entity tag
|
|
3309
|
+
* (existing entities are reused by name; only ever adds). Accepted at once: a `batch_complete`
|
|
3310
|
+
* (`entity_extract`) WebSocket message follows when every document is done.
|
|
3311
|
+
*/
|
|
3312
|
+
declare function extractEntities(arbi: ArbiClient, docIds: string[], options?: {
|
|
3313
|
+
kinds?: ('person' | 'organisation')[];
|
|
3314
|
+
overwrite?: boolean;
|
|
3315
|
+
}): Promise<{
|
|
3316
|
+
doc_ext_ids: string[];
|
|
3317
|
+
kinds: string[];
|
|
3318
|
+
}>;
|
|
3292
3319
|
/** Merge-patch a tag's values for its kind's fields (keyed by field id or name; `null` clears). */
|
|
3293
3320
|
declare function setTagValues(arbi: ArbiClient, tagId: string, values: Record<string, unknown>): Promise<TagResponse>;
|
|
3294
3321
|
/** Every kind's fields in the open workspace (built-in ones where it has not set its own). */
|
|
@@ -3325,6 +3352,7 @@ type tags_TagResponse = TagResponse;
|
|
|
3325
3352
|
type tags_UpdateTagRequest = UpdateTagRequest;
|
|
3326
3353
|
declare const tags_createTag: typeof createTag;
|
|
3327
3354
|
declare const tags_deleteTag: typeof deleteTag;
|
|
3355
|
+
declare const tags_extractEntities: typeof extractEntities;
|
|
3328
3356
|
declare const tags_getTagKind: typeof getTagKind;
|
|
3329
3357
|
declare const tags_kindFieldWrites: typeof kindFieldWrites;
|
|
3330
3358
|
declare const tags_listTagKinds: typeof listTagKinds;
|
|
@@ -3334,7 +3362,7 @@ declare const tags_setTagValues: typeof setTagValues;
|
|
|
3334
3362
|
declare const tags_updateTag: typeof updateTag;
|
|
3335
3363
|
declare const tags_updateTagKind: typeof updateTagKind;
|
|
3336
3364
|
declare namespace tags {
|
|
3337
|
-
export { tags_FLAT_TAG_KINDS as FLAT_TAG_KINDS, tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, tags_TAG_KINDS as TAG_KINDS, type tags_TagChange as TagChange, type tags_TagFieldDefinition as TagFieldDefinition, type tags_TagKind as TagKind, type tags_TagKindField as TagKindField, type tags_TagKindSchema as TagKindSchema, type tags_TagLinks as TagLinks, type tags_TagListQuery as TagListQuery, type tags_TagResponse as TagResponse, type tags_UpdateTagRequest as UpdateTagRequest, tags_createTag as createTag, tags_deleteTag as deleteTag, tags_getTagKind as getTagKind, tags_kindFieldWrites as kindFieldWrites, tags_listTagKinds as listTagKinds, tags_listTags as listTags, tags_mergeKindFieldDefinitions as mergeKindFieldDefinitions, tags_setTagValues as setTagValues, tags_updateTag as updateTag, tags_updateTagKind as updateTagKind };
|
|
3365
|
+
export { tags_FLAT_TAG_KINDS as FLAT_TAG_KINDS, tags_TAG_FIELD_TYPES as TAG_FIELD_TYPES, tags_TAG_KINDS as TAG_KINDS, type tags_TagChange as TagChange, type tags_TagFieldDefinition as TagFieldDefinition, type tags_TagKind as TagKind, type tags_TagKindField as TagKindField, type tags_TagKindSchema as TagKindSchema, type tags_TagLinks as TagLinks, type tags_TagListQuery as TagListQuery, type tags_TagResponse as TagResponse, type tags_UpdateTagRequest as UpdateTagRequest, tags_createTag as createTag, tags_deleteTag as deleteTag, tags_extractEntities as extractEntities, tags_getTagKind as getTagKind, tags_kindFieldWrites as kindFieldWrites, tags_listTagKinds as listTagKinds, tags_listTags as listTags, tags_mergeKindFieldDefinitions as mergeKindFieldDefinitions, tags_setTagValues as setTagValues, tags_updateTag as updateTag, tags_updateTagKind as updateTagKind };
|
|
3338
3366
|
}
|
|
3339
3367
|
|
|
3340
3368
|
/**
|
|
@@ -8961,6 +8989,14 @@ declare class Arbi {
|
|
|
8961
8989
|
created_at: string;
|
|
8962
8990
|
updated_at: string;
|
|
8963
8991
|
}>;
|
|
8992
|
+
/** Link the people and organisations these documents name (runs in the background). */
|
|
8993
|
+
extractEntities: (docIds: string[], options?: {
|
|
8994
|
+
kinds?: ("person" | "organisation")[];
|
|
8995
|
+
overwrite?: boolean;
|
|
8996
|
+
}) => Promise<{
|
|
8997
|
+
doc_ext_ids: string[];
|
|
8998
|
+
kinds: string[];
|
|
8999
|
+
}>;
|
|
8964
9000
|
};
|
|
8965
9001
|
readonly tagKinds: {
|
|
8966
9002
|
/** Every kind's fields (the built-in ones where the workspace has not set its own). */
|
|
@@ -12297,4 +12333,4 @@ declare namespace identity {
|
|
|
12297
12333
|
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 };
|
|
12298
12334
|
}
|
|
12299
12335
|
|
|
12300
|
-
export { type CommandDescriptor as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarAccount as D, type CalendarAccountKind as E, type CalendarCreateBody as F, type CalendarEvent as G, type CalendarKeys as H, type CalendarRead as I, type CalendarSettings as J, type CalendarSettingsBody as K, type CalendarUpdate as L, type CalendarWindow as M, type ChatAttachmentFile as N, type ChatAttachmentInput as O, type ChatCryptoContext as P, type ChatKeyRing as Q, type ChatKind as R, type ChatMemberKey as S, type ChatMemberResponse as T, type ChatMessageResponse as U, type ChatResponse as V, type ChatSession as W, type CitationSummary as X, type CitationToolSources as Y, type CliConfig as Z, type CliCredentials as _, type AccountSyncResult as a, type ProjectEventKind as a$, type ConfigStore as a0, type ConnectOptions as a1, type ConversationResponse as a2, type ConversationUsageResponse as a3, type CreateFactRequest as a4, type CreateFactsRequest as a5, type CreateWorkRequest as a6, type CreateWorkflowRequest as a7, DEFAULT_AI_USD_PER_GBP as a8, DOC_TERMINAL_STATUSES as a9, type IdentityState as aA, type IdentityStatus as aB, type ImportResult as aC, type InvitationRead as aD, type LinkedRun as aE, type ListAllOptions as aF, type ListEventsParams as aG, type ListFactsOptions as aH, type ListPaginatedOptions as aI, type MailAttachment as aJ, type MailDraftSSEEvent as aK, type MessageLevel as aL, type MessageMetadataPayload$1 as aM, type MessageQueuedEvent as aN, type OAuthAccountKind as aO, type OutputTokensDetails as aP, type OverlayItem as aQ, type OverlayLayerName as aR, type ParsedSlashCommand as aS, type PendingAuthResponse as aT, type PersonKey as aU, PlanStepsError as aV, type PlanWorkRequest as aW, type ProbeAnswerEvent as aX, type ProjectBudget as aY, type ProjectConversationUsageResponse as aZ, type ProjectDetails as a_, type DateTimeSpec as aa, type DecryptedChat as ab, type DecryptedChatMessage as ac, type DeferredInterjectionEvent as ad, type DocNameMap as ae, type DocumentAutomationAction as af, type DocumentListFields as ag, type DocumentListOrder as ah, type DocumentSelector as ai, type DocumentWaiter as aj, type DocumentWaiterOptions as ak, type EditScope as al, type EventCreateBody as am, type EventPatchBody as an, FLAT_TAG_KINDS as ao, type FactResponse as ap, type FactSearchRequest as aq, type FactSearchResponse as ar, type FeedCreateBody as as, type FeedLevel as at, type FindTimeParams as au, type FormattedWsMessage as av, type FreeBusyEntry as aw, type HolidayCountry as ax, type IdentityErrorCode as ay, type IdentityPurchase as az, type ActivityKind as b, type TagListQuery as b$, type ProjectEventResponse as b0, type ProjectInvoicesResponse as b1, type ProjectResponse as b2, type ProjectUpdateRequest as b3, type ProjectUsageResponse as b4, PublicBookingError as b5, type PublicBookingPage as b6, type QueryOptions as b7, type RaisedSignal as b8, type ReconnectOptions as b9, type ScopedTarget as bA, type SendBack as bB, type ShareRead as bC, type ShareRole as bD, type SkillSummary as bE, type SkippedFile as bF, type StepActionRequest as bG, type StepActivityEvent as bH, type StepAssignee as bI, type StepField as bJ, type StepFieldOption as bK, type StepFieldOptionTone as bL, type StepKind as bM, type StepPhase as bN, type StepSignal as bO, type StepSignalWhen as bP, type StepState as bQ, type StepStatus as bR, type SubmitBackgroundQueryOptions as bS, type SubscribeParams as bT, TAG_KINDS as bU, type TagChange as bV, type TagFieldDefinition as bW, type TagKind as bX, type TagKindField as bY, type TagKindSchema as bZ, type TagLinks as b_, type ReconnectableWsConnection as ba, type ResolvedCitation as bb, type ResolvedRecipient as bc, type RespondParams as bd, type RespondPartstat as be, type ResponseCompletedEvent as bf, type ResponseContentPartAddedEvent as bg, type ResponseCreatedEvent as bh, type ResponseFailedEvent as bi, type ResponseOutputItemAddedEvent as bj, type ResponseOutputItemDoneEvent as bk, type ResponseOutputTextDeltaEvent as bl, type ResponseOutputTextDoneEvent as bm, type ResponseUsage as bn, type RoomCreateBody as bo, type RoomQuery as bp, type RoomRead as bq, type RunProgress as br, type RunStep as bs, type RunWaitingOn as bt, type SSEEvent as bu, type SSEStreamCallbacks as bv, type SSEStreamResult as bw, type SSEStreamStartData as bx, STEP_FIELD_OPTION_TONES as by, SUPPORTED_EXTENSIONS as bz, type ActivityResponse as c, formatWsMessage as c$, type TagResponse as c0, type TaskPlan as c1, type TaskPlanStep as c2, type TimeSuggestion as c3, type TokenBudgetContext as c4, type UpdateConversationRequest as c5, type UpdateFactRequest as c6, type UpdateWorkflowRequest as c7, type UploadBatchResult as c8, type UploadDirectOptions as c9, buildRetrievalChunkTool as cA, buildRetrievalFullContextTool as cB, buildRetrievalTocTool as cC, calendar as cD, cancelPublicBooking as cE, chats as cF, connectWebSocket as cG, connectWithReconnect as cH, consumeSSEStream as cI, contacts as cJ, conversations as cK, countCitations as cL, createAuthenticatedClient as cM, createDocumentWaiter as cN, doctags as cO, documents as cP, facts as cQ, files as cR, filterSkills as cS, formatAgentStepLabel as cT, formatFileSize as cU, formatGbp as cV, formatGbpPerMillionTokens as cW, formatItemLabel as cX, formatStreamSummary as cY, formatUserName as cZ, formatWorkspaceChoices as c_, type UploadDirectResult as ca, type UploadOptions as cb, type UploadResult as cc, type UsageBreakdown as cd, type UserDailyUsageResponse as ce, type UserInfo as cf, type UserInputRequestEvent as cg, type UserMessageEvent as ch, WebSocketAuthError as ci, type WeeklyHoursSpec as cj, type WorkStatus as ck, type WorkflowAuthMode as cl, type WorkflowResponse as cm, type WorkflowRunHistoryResponse as cn, type WorkflowRunResponse as co, type WorkspaceContext as cp, type WsConnection as cq, account as cr, agentconfig as cs, agents as ct, assistant as cu, authenticatedFetch as cv, bookPublicSlot as cw, buildCitationChunkData as cx, buildDocNameMap as cy, buildFactsContextTool as cz, type AgentControlStateEvent as d, generateEncryptedWorkspaceKey as d0, generateNewWorkspaceKey as d1, getErrorCode as d2, getErrorMessage as d3, getPublicBookingPage as d4, getRawWorkspaceKey as d5, health as d6, identity as d7, identityErrorCode as d8,
|
|
12336
|
+
export { type CommandDescriptor as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarAccount as D, type CalendarAccountKind as E, type CalendarCreateBody as F, type CalendarEvent as G, type CalendarKeys as H, type CalendarRead as I, type CalendarSettings as J, type CalendarSettingsBody as K, type CalendarUpdate as L, type CalendarWindow as M, type ChatAttachmentFile as N, type ChatAttachmentInput as O, type ChatCryptoContext as P, type ChatKeyRing as Q, type ChatKind as R, type ChatMemberKey as S, type ChatMemberResponse as T, type ChatMessageResponse as U, type ChatResponse as V, type ChatSession as W, type CitationSummary as X, type CitationToolSources as Y, type CliConfig as Z, type CliCredentials as _, type AccountSyncResult as a, type ProjectEventKind as a$, type ConfigStore as a0, type ConnectOptions as a1, type ConversationResponse as a2, type ConversationUsageResponse as a3, type CreateFactRequest as a4, type CreateFactsRequest as a5, type CreateWorkRequest as a6, type CreateWorkflowRequest as a7, DEFAULT_AI_USD_PER_GBP as a8, DOC_TERMINAL_STATUSES as a9, type IdentityState as aA, type IdentityStatus as aB, type ImportResult as aC, type InvitationRead as aD, type LinkedRun as aE, type ListAllOptions as aF, type ListEventsParams as aG, type ListFactsOptions as aH, type ListPaginatedOptions as aI, type MailAttachment as aJ, type MailDraftSSEEvent as aK, type MessageLevel as aL, type MessageMetadataPayload$1 as aM, type MessageQueuedEvent as aN, type OAuthAccountKind as aO, type OutputTokensDetails as aP, type OverlayItem as aQ, type OverlayLayerName as aR, type ParsedSlashCommand as aS, type PendingAuthResponse as aT, type PersonKey as aU, PlanStepsError as aV, type PlanWorkRequest as aW, type ProbeAnswerEvent as aX, type ProjectBudget as aY, type ProjectConversationUsageResponse as aZ, type ProjectDetails as a_, type DateTimeSpec as aa, type DecryptedChat as ab, type DecryptedChatMessage as ac, type DeferredInterjectionEvent as ad, type DocNameMap as ae, type DocumentAutomationAction as af, type DocumentListFields as ag, type DocumentListOrder as ah, type DocumentSelector as ai, type DocumentWaiter as aj, type DocumentWaiterOptions as ak, type EditScope as al, type EventCreateBody as am, type EventPatchBody as an, FLAT_TAG_KINDS as ao, type FactResponse as ap, type FactSearchRequest as aq, type FactSearchResponse as ar, type FeedCreateBody as as, type FeedLevel as at, type FindTimeParams as au, type FormattedWsMessage as av, type FreeBusyEntry as aw, type HolidayCountry as ax, type IdentityErrorCode as ay, type IdentityPurchase as az, type ActivityKind as b, type TagListQuery as b$, type ProjectEventResponse as b0, type ProjectInvoicesResponse as b1, type ProjectResponse as b2, type ProjectUpdateRequest as b3, type ProjectUsageResponse as b4, PublicBookingError as b5, type PublicBookingPage as b6, type QueryOptions as b7, type RaisedSignal as b8, type ReconnectOptions as b9, type ScopedTarget as bA, type SendBack as bB, type ShareRead as bC, type ShareRole as bD, type SkillSummary as bE, type SkippedFile as bF, type StepActionRequest as bG, type StepActivityEvent as bH, type StepAssignee as bI, type StepField as bJ, type StepFieldOption as bK, type StepFieldOptionTone as bL, type StepKind as bM, type StepPhase as bN, type StepSignal as bO, type StepSignalWhen as bP, type StepState as bQ, type StepStatus as bR, type SubmitBackgroundQueryOptions as bS, type SubscribeParams as bT, TAG_KINDS as bU, type TagChange as bV, type TagFieldDefinition as bW, type TagKind as bX, type TagKindField as bY, type TagKindSchema as bZ, type TagLinks as b_, type ReconnectableWsConnection as ba, type ResolvedCitation as bb, type ResolvedRecipient as bc, type RespondParams as bd, type RespondPartstat as be, type ResponseCompletedEvent as bf, type ResponseContentPartAddedEvent as bg, type ResponseCreatedEvent as bh, type ResponseFailedEvent as bi, type ResponseOutputItemAddedEvent as bj, type ResponseOutputItemDoneEvent as bk, type ResponseOutputTextDeltaEvent as bl, type ResponseOutputTextDoneEvent as bm, type ResponseUsage as bn, type RoomCreateBody as bo, type RoomQuery as bp, type RoomRead as bq, type RunProgress as br, type RunStep as bs, type RunWaitingOn as bt, type SSEEvent as bu, type SSEStreamCallbacks as bv, type SSEStreamResult as bw, type SSEStreamStartData as bx, STEP_FIELD_OPTION_TONES as by, SUPPORTED_EXTENSIONS as bz, type ActivityResponse as c, formatWsMessage as c$, type TagResponse as c0, type TaskPlan as c1, type TaskPlanStep as c2, type TimeSuggestion as c3, type TokenBudgetContext as c4, type UpdateConversationRequest as c5, type UpdateFactRequest as c6, type UpdateWorkflowRequest as c7, type UploadBatchResult as c8, type UploadDirectOptions as c9, buildRetrievalChunkTool as cA, buildRetrievalFullContextTool as cB, buildRetrievalTocTool as cC, calendar as cD, cancelPublicBooking as cE, chats as cF, connectWebSocket as cG, connectWithReconnect as cH, consumeSSEStream as cI, contacts as cJ, conversations as cK, countCitations as cL, createAuthenticatedClient as cM, createDocumentWaiter as cN, doctags as cO, documents as cP, facts as cQ, files as cR, filterSkills as cS, formatAgentStepLabel as cT, formatFileSize as cU, formatGbp as cV, formatGbpPerMillionTokens as cW, formatItemLabel as cX, formatStreamSummary as cY, formatUserName as cZ, formatWorkspaceChoices as c_, type UploadDirectResult as ca, type UploadOptions as cb, type UploadResult as cc, type UsageBreakdown as cd, type UserDailyUsageResponse as ce, type UserInfo as cf, type UserInputRequestEvent as cg, type UserMessageEvent as ch, WebSocketAuthError as ci, type WeeklyHoursSpec as cj, type WorkStatus as ck, type WorkflowAuthMode as cl, type WorkflowResponse as cm, type WorkflowRunHistoryResponse as cn, type WorkflowRunResponse as co, type WorkspaceContext as cp, type WsConnection as cq, account as cr, agentconfig as cs, agents as ct, assistant as cu, authenticatedFetch as cv, bookPublicSlot as cw, buildCitationChunkData as cx, buildDocNameMap as cy, buildFactsContextTool as cz, type AgentControlStateEvent as d, generateEncryptedWorkspaceKey as d0, generateNewWorkspaceKey as d1, getErrorCode as d2, getErrorMessage as d3, getPublicBookingPage as d4, getRawWorkspaceKey as d5, health as d6, identity as d7, identityErrorCode as d8, isSharedSkill as d9, tags as dA, uploadSkill as dB, usdToGbp as dC, work as dD, workflowSteps as dE, workflows as dF, workspaces as dG, mail as da, notifications as db, parseSSEEvents as dc, parseSlashCommand as dd, parseSlashTokenInProgress as de, performPasswordLogin as df, performSigningKeyLogin as dg, performSsoDeviceFlowLogin as dh, profile as di, projects as dj, requireData as dk, requireOk as dl, resolveAuth as dm, resolveCitations as dn, resolveWorkspace as dp, responses as dq, selectWorkspace as dr, selectWorkspaceById as ds, sessions as dt, settings as du, signatureRequests as dv, splitAppPasswords as dw, streamSSE as dx, stripCitationMarkdown as dy, summarizeCitations as dz, type AgentStepDeltaEvent as e, type AgentStepEvent as f, type AppPassword as g, type AppPasswordCreateBody as h, type AppPasswordCreated as i, Arbi as j, ArbiApiError as k, ArbiError as l, type ArbiErrorEvent as m, type ArbiHostSession as n, type ArbiOptions as o, ArbiSessionExpiredError as p, type ArtifactEvent as q, type AttendeeRead as r, type AuthContext as s, type AuthHeaders as t, type AuthMode as u, type AuthenticatedClient as v, type BookingPage as w, type BookingPageWriteBody as x, type BookingRequestBody as y, type CalDavProfile as z };
|
package/dist/browser.cjs
CHANGED
|
@@ -5050,13 +5050,15 @@ __export(assistant_exports, {
|
|
|
5050
5050
|
buildRetrievalTocTool: () => buildRetrievalTocTool,
|
|
5051
5051
|
cancelAssistantRun: () => cancelAssistantRun,
|
|
5052
5052
|
filterSkills: () => filterSkills,
|
|
5053
|
+
isSharedSkill: () => isSharedSkill,
|
|
5053
5054
|
listCommands: () => listCommands,
|
|
5054
5055
|
listSkills: () => listSkills,
|
|
5055
5056
|
parseSlashCommand: () => parseSlashCommand,
|
|
5056
5057
|
parseSlashTokenInProgress: () => parseSlashTokenInProgress,
|
|
5057
5058
|
queryAssistant: () => queryAssistant,
|
|
5058
5059
|
respondToAgent: () => respondToAgent,
|
|
5059
|
-
retrieve: () => retrieve
|
|
5060
|
+
retrieve: () => retrieve,
|
|
5061
|
+
uploadSkill: () => uploadSkill
|
|
5060
5062
|
});
|
|
5061
5063
|
function buildRetrievalChunkTool(docIds, searchMode) {
|
|
5062
5064
|
return {
|
|
@@ -5184,6 +5186,16 @@ async function listSkills(arbi, options) {
|
|
|
5184
5186
|
);
|
|
5185
5187
|
return result.skills;
|
|
5186
5188
|
}
|
|
5189
|
+
function isSharedSkill(skill) {
|
|
5190
|
+
return skill.is_owner !== false && skill.visibility === "global";
|
|
5191
|
+
}
|
|
5192
|
+
function uploadSkill(auth, slug, markdown, options) {
|
|
5193
|
+
return uploadFile(auth, new Blob([markdown], { type: "text/markdown" }), "SKILL.md", {
|
|
5194
|
+
folder: `skills/${slug}`,
|
|
5195
|
+
wpType: "skill",
|
|
5196
|
+
shared: options?.shared ?? false
|
|
5197
|
+
});
|
|
5198
|
+
}
|
|
5187
5199
|
async function listCommands(arbi) {
|
|
5188
5200
|
const result = requireData(
|
|
5189
5201
|
await arbi.fetch.GET("/v1/assistant/commands", {}),
|
|
@@ -5310,6 +5322,7 @@ __export(tags_exports, {
|
|
|
5310
5322
|
TAG_KINDS: () => TAG_KINDS,
|
|
5311
5323
|
createTag: () => createTag,
|
|
5312
5324
|
deleteTag: () => deleteTag,
|
|
5325
|
+
extractEntities: () => extractEntities,
|
|
5313
5326
|
getTagKind: () => getTagKind,
|
|
5314
5327
|
kindFieldWrites: () => kindFieldWrites,
|
|
5315
5328
|
listTagKinds: () => listTagKinds,
|
|
@@ -5388,6 +5401,18 @@ async function updateTag(arbi, tagId, change) {
|
|
|
5388
5401
|
"Failed to update tag"
|
|
5389
5402
|
);
|
|
5390
5403
|
}
|
|
5404
|
+
async function extractEntities(arbi, docIds, options = {}) {
|
|
5405
|
+
return requireData(
|
|
5406
|
+
await arbi.fetch.POST("/v1/tag/entities/extract", {
|
|
5407
|
+
body: {
|
|
5408
|
+
doc_ext_ids: docIds,
|
|
5409
|
+
overwrite: options.overwrite ?? false,
|
|
5410
|
+
...options.kinds ? { kinds: options.kinds } : {}
|
|
5411
|
+
}
|
|
5412
|
+
}),
|
|
5413
|
+
"Failed to extract people and organisations"
|
|
5414
|
+
);
|
|
5415
|
+
}
|
|
5391
5416
|
async function setTagValues(arbi, tagId, values) {
|
|
5392
5417
|
return updateTag(arbi, tagId, { field_values: values });
|
|
5393
5418
|
}
|
|
@@ -9057,7 +9082,9 @@ var Arbi = class {
|
|
|
9057
9082
|
delete: (tagId) => deleteTag(this.requireClient(), tagId),
|
|
9058
9083
|
update: (tagId, change) => updateTag(this.requireClient(), tagId, change),
|
|
9059
9084
|
/** Merge-patch a tag's values for its kind's fields (`null` clears one). */
|
|
9060
|
-
setValues: (tagId, values) => setTagValues(this.requireClient(), tagId, values)
|
|
9085
|
+
setValues: (tagId, values) => setTagValues(this.requireClient(), tagId, values),
|
|
9086
|
+
/** Link the people and organisations these documents name (runs in the background). */
|
|
9087
|
+
extractEntities: (docIds, options) => extractEntities(this.requireClient(), docIds, options)
|
|
9061
9088
|
};
|
|
9062
9089
|
// ── Tag kinds: the workspace's fields per kind (a table's columns) ─────
|
|
9063
9090
|
tagKinds = {
|