@arbidocs/sdk 0.4.159 → 0.4.161
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-5rJLwOd9.d.cts → browser-coa0VhYO.d.cts} +232 -33
- package/dist/{browser-5rJLwOd9.d.ts → browser-coa0VhYO.d.ts} +232 -33
- package/dist/browser.cjs +292 -55
- 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 +292 -57
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +291 -55
- 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 +292 -57
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -21,6 +21,15 @@ declare class ArbiApiError extends ArbiError {
|
|
|
21
21
|
readonly detail?: string;
|
|
22
22
|
constructor(message: string, apiError?: unknown, status?: number);
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* A contact write refused because one of its addresses already belongs to another contact (one
|
|
26
|
+
* person = one row: a 409 with `contact_id`). `contactId` is that contact, or null when it is in an
|
|
27
|
+
* address book you cannot see.
|
|
28
|
+
*/
|
|
29
|
+
declare class DuplicateContactError extends ArbiApiError {
|
|
30
|
+
readonly contactId: string | null;
|
|
31
|
+
constructor(message: string, contactId: string | null, apiError?: unknown);
|
|
32
|
+
}
|
|
24
33
|
/**
|
|
25
34
|
* Why a write was refused, for the person who made it: the server's own reason (an
|
|
26
35
|
* {@link ArbiApiError}'s `detail`, or a raw error body's `detail`), else `fallback` — never a
|
|
@@ -942,7 +951,12 @@ interface UploadBatchResult {
|
|
|
942
951
|
skipped: SkippedFile[];
|
|
943
952
|
}>;
|
|
944
953
|
}
|
|
945
|
-
|
|
954
|
+
/**
|
|
955
|
+
* The documents of the open workspace, or of `workspaceExtId` (its key must be on the session:
|
|
956
|
+
* `arbi.workspaces.open`). Every document returned for a named workspace is checked to belong to
|
|
957
|
+
* it, so a server that ignores the parameter cannot hand back the open workspace's documents.
|
|
958
|
+
*/
|
|
959
|
+
declare function listDocuments(arbi: ArbiClient, workspaceExtId?: string | null): Promise<{
|
|
946
960
|
external_id: string;
|
|
947
961
|
workspace_ext_id: string;
|
|
948
962
|
file_name?: string | null | undefined;
|
|
@@ -2127,7 +2141,8 @@ declare function grantTemporaryWorkspaceAccess(arbi: ArbiClient, params: {
|
|
|
2127
2141
|
agent_ext_id?: string | null | undefined;
|
|
2128
2142
|
is_temporary: boolean;
|
|
2129
2143
|
}[]>;
|
|
2130
|
-
|
|
2144
|
+
/** Remove users from the open workspace, or from `workspaceExtId` (its key on the session). */
|
|
2145
|
+
declare function removeWorkspaceUsers(arbi: ArbiClient, userIds: string[], workspaceExtId?: string | null): Promise<void>;
|
|
2131
2146
|
declare function setUserRole(arbi: ArbiClient, userIds: string[], role: 'owner' | 'collaborator' | 'guest'): Promise<{
|
|
2132
2147
|
user: {
|
|
2133
2148
|
external_id: string;
|
|
@@ -3172,7 +3187,11 @@ declare function listSkills(arbi: ArbiClient, options?: {
|
|
|
3172
3187
|
* Whether a skill is the caller's own and shared with everyone (``global``), so saving it again
|
|
3173
3188
|
* keeps it shared. Any other skill (private, someone else's, a built-in) is saved private.
|
|
3174
3189
|
*/
|
|
3175
|
-
declare function isSharedSkill(skill:
|
|
3190
|
+
declare function isSharedSkill(skill: {
|
|
3191
|
+
visibility?: SkillSummary['visibility'] | null;
|
|
3192
|
+
/** Absent (an older server): the caller's own, as the server defaults it. */
|
|
3193
|
+
is_owner?: SkillSummary['is_owner'] | null;
|
|
3194
|
+
}): boolean;
|
|
3176
3195
|
/**
|
|
3177
3196
|
* Save a SKILL.md as the caller's skill ``slug`` (``skills/<slug>/SKILL.md``, ``wp_type=skill``).
|
|
3178
3197
|
* Private (the uploader's own) unless ``shared``: saving a skill never publishes it to everyone
|
|
@@ -3590,21 +3609,38 @@ declare namespace tags {
|
|
|
3590
3609
|
/**
|
|
3591
3610
|
* Contact operations (`/v1/contacts`) — one address book: registered people, pending invitations and plain
|
|
3592
3611
|
* cards. A card's details are encrypted under its address book's key; a session without that key bridged
|
|
3593
|
-
* (
|
|
3612
|
+
* (`Arbi.contacts` bridges it first, through the calendar keys) gets `card: null` for stored cards and
|
|
3613
|
+
* cannot write them (423).
|
|
3594
3614
|
*/
|
|
3595
3615
|
|
|
3596
|
-
type
|
|
3597
|
-
type
|
|
3598
|
-
type
|
|
3599
|
-
type
|
|
3616
|
+
type S$1 = components['schemas'];
|
|
3617
|
+
type Contact = S$1['ContactResponse'];
|
|
3618
|
+
type ContactStatus = Contact['status'];
|
|
3619
|
+
type ContactCard = S$1['ContactCard'];
|
|
3620
|
+
type ContactCardWrite = S$1['ContactCardWrite'];
|
|
3621
|
+
type ContactCreate = S$1['ContactCreate'];
|
|
3622
|
+
type ContactImportResult = S$1['ContactImportResult'];
|
|
3623
|
+
type PersonSuggestion = S$1['PersonSuggestion'];
|
|
3600
3624
|
declare function listContacts(arbi: ArbiClient): Promise<Contact[]>;
|
|
3601
3625
|
/** Invite or link people by e-mail (max 100); one row per address with its `outcome`. */
|
|
3602
3626
|
declare function inviteContacts(arbi: ArbiClient, emails: string[]): Promise<Contact[]>;
|
|
3603
3627
|
/** Create a card, optionally linking `email` and inviting it (`invite: true`). */
|
|
3604
3628
|
declare function createContact(arbi: ArbiClient, body: ContactCreate): Promise<Contact>;
|
|
3629
|
+
/** Replace a contact's card details. */
|
|
3605
3630
|
declare function updateContact(arbi: ArbiClient, contactId: string, card: ContactCardWrite): Promise<Contact>;
|
|
3631
|
+
/**
|
|
3632
|
+
* Link a card-only contact to an ARBI account in place: `email` becomes its linked address (registered →
|
|
3633
|
+
* linked at once, otherwise the platform invitation is sent); the row keeps its id and card. Rejects with
|
|
3634
|
+
* {@link DuplicateContactError} when `email` already belongs to another of your contacts.
|
|
3635
|
+
*/
|
|
3636
|
+
declare function linkContact(arbi: ArbiClient, contactId: string, email: string, card: ContactCardWrite): Promise<Contact>;
|
|
3606
3637
|
/** Delete a contact (or withdraw its invitation). */
|
|
3607
3638
|
declare function deleteContact(arbi: ArbiClient, contactId: string): Promise<void>;
|
|
3639
|
+
/**
|
|
3640
|
+
* Import a .vcf file (Pro only: 403 `pro_required` otherwise). New people become cards, people already in
|
|
3641
|
+
* your contacts are matched, the rest come back in `skipped` with a reason. Never invites.
|
|
3642
|
+
*/
|
|
3643
|
+
declare function importContacts(arbi: ArbiClient, file: Blob): Promise<ContactImportResult>;
|
|
3608
3644
|
/** People matching `q`: your contacts and registered people who share a workspace with you. */
|
|
3609
3645
|
declare function searchContacts(arbi: ArbiClient, q: string): Promise<PersonSuggestion[]>;
|
|
3610
3646
|
/**
|
|
@@ -3619,18 +3655,23 @@ declare function groupContactsByStatus<T extends {
|
|
|
3619
3655
|
};
|
|
3620
3656
|
|
|
3621
3657
|
type contacts_Contact = Contact;
|
|
3658
|
+
type contacts_ContactCard = ContactCard;
|
|
3622
3659
|
type contacts_ContactCardWrite = ContactCardWrite;
|
|
3623
3660
|
type contacts_ContactCreate = ContactCreate;
|
|
3661
|
+
type contacts_ContactImportResult = ContactImportResult;
|
|
3662
|
+
type contacts_ContactStatus = ContactStatus;
|
|
3624
3663
|
type contacts_PersonSuggestion = PersonSuggestion;
|
|
3625
3664
|
declare const contacts_createContact: typeof createContact;
|
|
3626
3665
|
declare const contacts_deleteContact: typeof deleteContact;
|
|
3627
3666
|
declare const contacts_groupContactsByStatus: typeof groupContactsByStatus;
|
|
3667
|
+
declare const contacts_importContacts: typeof importContacts;
|
|
3628
3668
|
declare const contacts_inviteContacts: typeof inviteContacts;
|
|
3669
|
+
declare const contacts_linkContact: typeof linkContact;
|
|
3629
3670
|
declare const contacts_listContacts: typeof listContacts;
|
|
3630
3671
|
declare const contacts_searchContacts: typeof searchContacts;
|
|
3631
3672
|
declare const contacts_updateContact: typeof updateContact;
|
|
3632
3673
|
declare namespace contacts {
|
|
3633
|
-
export { type contacts_Contact as Contact, type contacts_ContactCardWrite as ContactCardWrite, type contacts_ContactCreate as ContactCreate, type contacts_PersonSuggestion as PersonSuggestion, contacts_createContact as createContact, contacts_deleteContact as deleteContact, contacts_groupContactsByStatus as groupContactsByStatus, contacts_inviteContacts as inviteContacts, contacts_listContacts as listContacts, contacts_searchContacts as searchContacts, contacts_updateContact as updateContact };
|
|
3674
|
+
export { type contacts_Contact as Contact, type contacts_ContactCard as ContactCard, type contacts_ContactCardWrite as ContactCardWrite, type contacts_ContactCreate as ContactCreate, type contacts_ContactImportResult as ContactImportResult, type contacts_ContactStatus as ContactStatus, type contacts_PersonSuggestion as PersonSuggestion, contacts_createContact as createContact, contacts_deleteContact as deleteContact, contacts_groupContactsByStatus as groupContactsByStatus, contacts_importContacts as importContacts, contacts_inviteContacts as inviteContacts, contacts_linkContact as linkContact, contacts_listContacts as listContacts, contacts_searchContacts as searchContacts, contacts_updateContact as updateContact };
|
|
3634
3675
|
}
|
|
3635
3676
|
|
|
3636
3677
|
/**
|
|
@@ -3757,6 +3798,26 @@ type DecryptedChatMessage = ChatMessageResponse & {
|
|
|
3757
3798
|
* Nothing to decrypt — render it as a "Message deleted" tombstone.
|
|
3758
3799
|
*/
|
|
3759
3800
|
declare function chatMessageTombstone<T extends ChatMessageResponse>(message: T): T;
|
|
3801
|
+
/** What a stored call-transcript chat message holds (encrypted under the chat key). */
|
|
3802
|
+
interface TranscriptContent {
|
|
3803
|
+
text: string;
|
|
3804
|
+
speaker_identity: string;
|
|
3805
|
+
speaker_name: string;
|
|
3806
|
+
started_at: string | null;
|
|
3807
|
+
}
|
|
3808
|
+
/** A chat message of kind `transcript` (the generated schema does not list the kind yet). */
|
|
3809
|
+
declare function isTranscriptMessage(message: {
|
|
3810
|
+
kind?: string | null;
|
|
3811
|
+
}): boolean;
|
|
3812
|
+
/** The decrypted content of a transcript chat message, or null when it is not one. */
|
|
3813
|
+
declare function parseTranscriptContent(content: string | null | undefined): TranscriptContent | null;
|
|
3814
|
+
/** Shown for a message (or title) that does not open, in a one-line preview. */
|
|
3815
|
+
declare const ENCRYPTED_PREVIEW = "[Encrypted]";
|
|
3816
|
+
/**
|
|
3817
|
+
* A decrypted message as one line (a chat list's preview): the text, what kind of thing it is
|
|
3818
|
+
* (a call, a recording, a transcript line) or the files it carries. Null for a tombstone.
|
|
3819
|
+
*/
|
|
3820
|
+
declare function chatMessagePreview(message: DecryptedChatMessage): string | null;
|
|
3760
3821
|
/** Decrypt one message with the key of its own epoch. Never throws. A tombstone is not decrypted. */
|
|
3761
3822
|
declare function decryptChatMessage(ring: ChatKeyRing, message: ChatMessageResponse): Promise<DecryptedChatMessage>;
|
|
3762
3823
|
declare function decryptChatMessages(ring: ChatKeyRing, messages: ChatMessageResponse[]): Promise<DecryptedChatMessage[]>;
|
|
@@ -3783,10 +3844,14 @@ declare function createGroupChat(arbi: ArbiClient, crypto: ChatCryptoContext, pa
|
|
|
3783
3844
|
/** Set (or clear) a group's title, encrypted under the current epoch. */
|
|
3784
3845
|
declare function renameChat(arbi: ArbiClient, ring: ChatKeyRing, title: string | null): Promise<ChatResponse>;
|
|
3785
3846
|
/**
|
|
3786
|
-
* Add people to a group: the current epoch is sealed to each, so they read this
|
|
3847
|
+
* Add people to a group or meeting chat: the current epoch is sealed to each, so they read this
|
|
3848
|
+
* epoch's history. A meeting chat's new members also get its call key K sealed to them
|
|
3849
|
+
* (`call_sealed_key`), so every member can always join its call: pass `callKey` for one.
|
|
3787
3850
|
* A direct chat never grows (the server answers 409) — create a new group instead.
|
|
3788
3851
|
*/
|
|
3789
|
-
declare function addChatMembers(arbi: ArbiClient, ring: ChatKeyRing, members: ChatMemberKey[]
|
|
3852
|
+
declare function addChatMembers(arbi: ArbiClient, ring: ChatKeyRing, members: ChatMemberKey[], options?: {
|
|
3853
|
+
callKey?: Uint8Array | null;
|
|
3854
|
+
}): Promise<ChatResponse>;
|
|
3790
3855
|
/** Remove a member (owners) or leave (my own id). The chat then needs a new epoch. */
|
|
3791
3856
|
declare function removeChatMember(arbi: ArbiClient, chatExtId: string, userExtId: string): Promise<void>;
|
|
3792
3857
|
/**
|
|
@@ -3799,6 +3864,8 @@ declare function rotateChatKey(arbi: ArbiClient, chat: ChatResponse, ring: ChatK
|
|
|
3799
3864
|
* next epoch. Another member may win the race (409); then the fresh chat is fetched instead.
|
|
3800
3865
|
*/
|
|
3801
3866
|
declare function ensureChatKeyCurrent(arbi: ArbiClient, chat: ChatResponse, crypto: ChatCryptoContext): Promise<ChatResponse>;
|
|
3867
|
+
/** Messages per page of a thread. */
|
|
3868
|
+
declare const CHAT_PAGE_SIZE = 50;
|
|
3802
3869
|
/** One page of messages, newest first. Page backwards with `before` = the oldest id you have. */
|
|
3803
3870
|
declare function listChatMessages(arbi: ArbiClient, chatExtId: string, options?: {
|
|
3804
3871
|
before?: string;
|
|
@@ -3822,6 +3889,8 @@ declare function deleteChatMessage(arbi: ArbiClient, chatExtId: string, messageE
|
|
|
3822
3889
|
declare function markChatRead(arbi: ArbiClient, chatExtId: string, messageExtId?: string): Promise<components['schemas']['ChatReadResponse']>;
|
|
3823
3890
|
/** True when `member` has read `message` (by their watermark). */
|
|
3824
3891
|
declare function hasRead(member: Pick<ChatMemberResponse, 'last_read_at'> | undefined, message: Pick<ChatMessageResponse, 'created_at'>): boolean;
|
|
3892
|
+
/** True when every member but me has read `message` (a group's or a direct chat's receipt). */
|
|
3893
|
+
declare function readByOthers(chat: Pick<ChatResponse, 'members'>, myExtId: string | null, message: Pick<ChatMessageResponse, 'created_at'>): boolean;
|
|
3825
3894
|
/**
|
|
3826
3895
|
* Resolve a peer reference (email OR `usr-`/`agt-` external_id) to `{ extId, pubKey }`. Walks
|
|
3827
3896
|
* contacts, my agents, then current-workspace members; null when nothing matches.
|
|
@@ -3843,6 +3912,7 @@ declare function loadDecryptedChat(arbi: ArbiClient, crypto: ChatCryptoContext,
|
|
|
3843
3912
|
|
|
3844
3913
|
declare const chats_CHAT_ATTACHMENT_MAX_BYTES: typeof CHAT_ATTACHMENT_MAX_BYTES;
|
|
3845
3914
|
declare const chats_CHAT_ATTACHMENT_MAX_FILES: typeof CHAT_ATTACHMENT_MAX_FILES;
|
|
3915
|
+
declare const chats_CHAT_PAGE_SIZE: typeof CHAT_PAGE_SIZE;
|
|
3846
3916
|
type chats_ChatAttachmentFile = ChatAttachmentFile;
|
|
3847
3917
|
type chats_ChatAttachmentInput = ChatAttachmentInput;
|
|
3848
3918
|
type chats_ChatCryptoContext = ChatCryptoContext;
|
|
@@ -3855,9 +3925,12 @@ type chats_ChatResponse = ChatResponse;
|
|
|
3855
3925
|
declare const chats_DECRYPTION_FAILED: typeof DECRYPTION_FAILED;
|
|
3856
3926
|
type chats_DecryptedChat = DecryptedChat;
|
|
3857
3927
|
type chats_DecryptedChatMessage = DecryptedChatMessage;
|
|
3928
|
+
declare const chats_ENCRYPTED_PREVIEW: typeof ENCRYPTED_PREVIEW;
|
|
3858
3929
|
type chats_ResolvedRecipient = ResolvedRecipient;
|
|
3859
3930
|
type chats_SendChatMessageOptions = SendChatMessageOptions;
|
|
3931
|
+
type chats_TranscriptContent = TranscriptContent;
|
|
3860
3932
|
declare const chats_addChatMembers: typeof addChatMembers;
|
|
3933
|
+
declare const chats_chatMessagePreview: typeof chatMessagePreview;
|
|
3861
3934
|
declare const chats_chatMessageTombstone: typeof chatMessageTombstone;
|
|
3862
3935
|
declare const chats_checkChatAttachmentLimits: typeof checkChatAttachmentLimits;
|
|
3863
3936
|
declare const chats_createChatCryptoContext: typeof createChatCryptoContext;
|
|
@@ -3874,6 +3947,7 @@ declare const chats_ensureChatKeyCurrent: typeof ensureChatKeyCurrent;
|
|
|
3874
3947
|
declare const chats_getChat: typeof getChat;
|
|
3875
3948
|
declare const chats_hasRead: typeof hasRead;
|
|
3876
3949
|
declare const chats_isAgentExtId: typeof isAgentExtId;
|
|
3950
|
+
declare const chats_isTranscriptMessage: typeof isTranscriptMessage;
|
|
3877
3951
|
declare const chats_listChatMessages: typeof listChatMessages;
|
|
3878
3952
|
declare const chats_listChats: typeof listChats;
|
|
3879
3953
|
declare const chats_loadDecryptedChat: typeof loadDecryptedChat;
|
|
@@ -3881,6 +3955,8 @@ declare const chats_markChatRead: typeof markChatRead;
|
|
|
3881
3955
|
declare const chats_openChatKeyRing: typeof openChatKeyRing;
|
|
3882
3956
|
declare const chats_openDirectChat: typeof openDirectChat;
|
|
3883
3957
|
declare const chats_parseChatAttachmentManifest: typeof parseChatAttachmentManifest;
|
|
3958
|
+
declare const chats_parseTranscriptContent: typeof parseTranscriptContent;
|
|
3959
|
+
declare const chats_readByOthers: typeof readByOthers;
|
|
3884
3960
|
declare const chats_removeChatMember: typeof removeChatMember;
|
|
3885
3961
|
declare const chats_renameChat: typeof renameChat;
|
|
3886
3962
|
declare const chats_resolveRecipient: typeof resolveRecipient;
|
|
@@ -3891,7 +3967,7 @@ declare const chats_serializeChatAttachmentManifest: typeof serializeChatAttachm
|
|
|
3891
3967
|
declare const chats_uploadChatAttachment: typeof uploadChatAttachment;
|
|
3892
3968
|
declare const chats_uploadChatAttachments: typeof uploadChatAttachments;
|
|
3893
3969
|
declare namespace chats {
|
|
3894
|
-
export { chats_CHAT_ATTACHMENT_MAX_BYTES as CHAT_ATTACHMENT_MAX_BYTES, chats_CHAT_ATTACHMENT_MAX_FILES as CHAT_ATTACHMENT_MAX_FILES, type chats_ChatAttachmentFile as ChatAttachmentFile, type chats_ChatAttachmentInput as ChatAttachmentInput, type chats_ChatCryptoContext as ChatCryptoContext, type chats_ChatKeyRing as ChatKeyRing, type chats_ChatKind as ChatKind, type chats_ChatMemberKey as ChatMemberKey, type chats_ChatMemberResponse as ChatMemberResponse, type chats_ChatMessageResponse as ChatMessageResponse, type chats_ChatResponse as ChatResponse, chats_DECRYPTION_FAILED as DECRYPTION_FAILED, type chats_DecryptedChat as DecryptedChat, type chats_DecryptedChatMessage as DecryptedChatMessage, type chats_ResolvedRecipient as ResolvedRecipient, type chats_SendChatMessageOptions as SendChatMessageOptions, chats_addChatMembers as addChatMembers, chats_chatMessageTombstone as chatMessageTombstone, chats_checkChatAttachmentLimits as checkChatAttachmentLimits, chats_createChatCryptoContext as createChatCryptoContext, chats_createGroupChat as createGroupChat, chats_decryptChatAttachmentManifest as decryptChatAttachmentManifest, chats_decryptChatMessage as decryptChatMessage, chats_decryptChatMessages as decryptChatMessages, chats_decryptChatTitle as decryptChatTitle, chats_deleteChatMessage as deleteChatMessage, chats_directPeer as directPeer, chats_downloadChatAttachment as downloadChatAttachment, chats_encryptChatAttachmentManifest as encryptChatAttachmentManifest, chats_ensureChatKeyCurrent as ensureChatKeyCurrent, chats_getChat as getChat, chats_hasRead as hasRead, chats_isAgentExtId as isAgentExtId, chats_listChatMessages as listChatMessages, chats_listChats as listChats, chats_loadDecryptedChat as loadDecryptedChat, chats_markChatRead as markChatRead, chats_openChatKeyRing as openChatKeyRing, chats_openDirectChat as openDirectChat, chats_parseChatAttachmentManifest as parseChatAttachmentManifest, chats_removeChatMember as removeChatMember, chats_renameChat as renameChat, chats_resolveRecipient as resolveRecipient, chats_rotateChatKey as rotateChatKey, chats_sendChatMessage as sendChatMessage, chats_sendDirectMessage as sendDirectMessage, chats_serializeChatAttachmentManifest as serializeChatAttachmentManifest, chats_uploadChatAttachment as uploadChatAttachment, chats_uploadChatAttachments as uploadChatAttachments };
|
|
3970
|
+
export { chats_CHAT_ATTACHMENT_MAX_BYTES as CHAT_ATTACHMENT_MAX_BYTES, chats_CHAT_ATTACHMENT_MAX_FILES as CHAT_ATTACHMENT_MAX_FILES, chats_CHAT_PAGE_SIZE as CHAT_PAGE_SIZE, type chats_ChatAttachmentFile as ChatAttachmentFile, type chats_ChatAttachmentInput as ChatAttachmentInput, type chats_ChatCryptoContext as ChatCryptoContext, type chats_ChatKeyRing as ChatKeyRing, type chats_ChatKind as ChatKind, type chats_ChatMemberKey as ChatMemberKey, type chats_ChatMemberResponse as ChatMemberResponse, type chats_ChatMessageResponse as ChatMessageResponse, type chats_ChatResponse as ChatResponse, chats_DECRYPTION_FAILED as DECRYPTION_FAILED, type chats_DecryptedChat as DecryptedChat, type chats_DecryptedChatMessage as DecryptedChatMessage, chats_ENCRYPTED_PREVIEW as ENCRYPTED_PREVIEW, type chats_ResolvedRecipient as ResolvedRecipient, type chats_SendChatMessageOptions as SendChatMessageOptions, type chats_TranscriptContent as TranscriptContent, chats_addChatMembers as addChatMembers, chats_chatMessagePreview as chatMessagePreview, chats_chatMessageTombstone as chatMessageTombstone, chats_checkChatAttachmentLimits as checkChatAttachmentLimits, chats_createChatCryptoContext as createChatCryptoContext, chats_createGroupChat as createGroupChat, chats_decryptChatAttachmentManifest as decryptChatAttachmentManifest, chats_decryptChatMessage as decryptChatMessage, chats_decryptChatMessages as decryptChatMessages, chats_decryptChatTitle as decryptChatTitle, chats_deleteChatMessage as deleteChatMessage, chats_directPeer as directPeer, chats_downloadChatAttachment as downloadChatAttachment, chats_encryptChatAttachmentManifest as encryptChatAttachmentManifest, chats_ensureChatKeyCurrent as ensureChatKeyCurrent, chats_getChat as getChat, chats_hasRead as hasRead, chats_isAgentExtId as isAgentExtId, chats_isTranscriptMessage as isTranscriptMessage, chats_listChatMessages as listChatMessages, chats_listChats as listChats, chats_loadDecryptedChat as loadDecryptedChat, chats_markChatRead as markChatRead, chats_openChatKeyRing as openChatKeyRing, chats_openDirectChat as openDirectChat, chats_parseChatAttachmentManifest as parseChatAttachmentManifest, chats_parseTranscriptContent as parseTranscriptContent, chats_readByOthers as readByOthers, chats_removeChatMember as removeChatMember, chats_renameChat as renameChat, chats_resolveRecipient as resolveRecipient, chats_rotateChatKey as rotateChatKey, chats_sendChatMessage as sendChatMessage, chats_sendDirectMessage as sendDirectMessage, chats_serializeChatAttachmentManifest as serializeChatAttachmentManifest, chats_uploadChatAttachment as uploadChatAttachment, chats_uploadChatAttachments as uploadChatAttachments };
|
|
3895
3971
|
}
|
|
3896
3972
|
|
|
3897
3973
|
/**
|
|
@@ -7156,7 +7232,12 @@ declare class Arbi {
|
|
|
7156
7232
|
private currentWorkspaceId;
|
|
7157
7233
|
/** Wrapped workspace keys seen in the last list/create, so selecting needs no re-fetch. */
|
|
7158
7234
|
private readonly wrappedKeys;
|
|
7235
|
+
/** Workspaces whose key this server session holds (`workspaces.open`), keyed per session key. */
|
|
7236
|
+
private readonly openedWorkspaces;
|
|
7237
|
+
private openedForSessionKey;
|
|
7159
7238
|
private chatCryptoContext;
|
|
7239
|
+
/** The chat keys I hold, opened once per set of epochs (`chatRingSignature`). */
|
|
7240
|
+
private chatRings;
|
|
7160
7241
|
private readonly sessionExpiredListeners;
|
|
7161
7242
|
private readonly options;
|
|
7162
7243
|
constructor(options: ArbiOptions);
|
|
@@ -7210,9 +7291,19 @@ declare class Arbi {
|
|
|
7210
7291
|
/** A workspace's key, sealed to the caller's own session (what `/open` and `POST /workspace/users` take). */
|
|
7211
7292
|
private sealWorkspaceKey;
|
|
7212
7293
|
/**
|
|
7213
|
-
*
|
|
7214
|
-
*
|
|
7215
|
-
*
|
|
7294
|
+
* Make a workspace usable for requests that name it, WITHOUT changing the current workspace (on
|
|
7295
|
+
* the server or here): its key, sealed to this server session, is deposited with `/prime-key`.
|
|
7296
|
+
* Idempotent: cached per server session (a re-login rotates it), concurrent calls share one
|
|
7297
|
+
* request, and the current workspace is already open.
|
|
7298
|
+
*/
|
|
7299
|
+
private openWorkspace;
|
|
7300
|
+
/** The workspace a call names, opened for this session; `undefined` for the current one. */
|
|
7301
|
+
private targetWorkspace;
|
|
7302
|
+
/**
|
|
7303
|
+
* Make a workspace the CURRENT one: decrypt its key, open it on the server (which makes it the
|
|
7304
|
+
* session's active workspace) and record it in the session. This is navigation: only the host's
|
|
7305
|
+
* workspace switch calls it. Package code that needs another workspace calls
|
|
7306
|
+
* `workspaces.open(id)` and passes the workspace to the request instead.
|
|
7216
7307
|
*/
|
|
7217
7308
|
selectWorkspace(workspaceId: string): Promise<void>;
|
|
7218
7309
|
/**
|
|
@@ -8625,6 +8716,13 @@ declare class Arbi {
|
|
|
8625
8716
|
}>;
|
|
8626
8717
|
};
|
|
8627
8718
|
readonly account: {
|
|
8719
|
+
/** Which paid features (native mail, the calendar, hosting calls) this person may use, and why not. */
|
|
8720
|
+
entitlements: () => Promise<{
|
|
8721
|
+
mail: boolean;
|
|
8722
|
+
calendar: boolean;
|
|
8723
|
+
host_calls: boolean;
|
|
8724
|
+
reason?: ("pro_required" | "external_user" | "not_entitled") | null;
|
|
8725
|
+
}>;
|
|
8628
8726
|
/** Send a verification code to the new address (not for SSO accounts). */
|
|
8629
8727
|
requestEmailChange: (newEmail: string) => Promise<void>;
|
|
8630
8728
|
/** Confirm the email change with the emailed code; the session and profile follow. */
|
|
@@ -8721,6 +8819,13 @@ declare class Arbi {
|
|
|
8721
8819
|
};
|
|
8722
8820
|
private syncIdentity;
|
|
8723
8821
|
readonly workspaces: {
|
|
8822
|
+
/**
|
|
8823
|
+
* Make a workspace usable for requests that name it, WITHOUT changing the current workspace
|
|
8824
|
+
* (on the server or in the host). `removeUsers` and `documents.list` open the workspace they
|
|
8825
|
+
* are given themselves; `documents.upload` with `workspaceExtId` needs it opened first.
|
|
8826
|
+
* Idempotent and cached per server session. Navigation uses `selectWorkspace`.
|
|
8827
|
+
*/
|
|
8828
|
+
open: (workspaceId: string) => Promise<void>;
|
|
8724
8829
|
/** Hand this server session a workspace's key (sealed to the session) without opening it. */
|
|
8725
8830
|
primeKey: (workspaceExtId: string, sessionSealedKey: string) => Promise<void>;
|
|
8726
8831
|
list: () => Promise<{
|
|
@@ -9020,7 +9125,10 @@ declare class Arbi {
|
|
|
9020
9125
|
agent_ext_id?: string | null | undefined;
|
|
9021
9126
|
is_temporary: boolean;
|
|
9022
9127
|
}[]>;
|
|
9023
|
-
|
|
9128
|
+
/** Remove users (or agents) from the current workspace, or from `options.workspaceId`. */
|
|
9129
|
+
removeUsers: (userIds: string[], options?: {
|
|
9130
|
+
workspaceId?: string;
|
|
9131
|
+
}) => Promise<void>;
|
|
9024
9132
|
setUserRole: (userIds: string[], role: "owner" | "collaborator" | "guest") => Promise<{
|
|
9025
9133
|
user: {
|
|
9026
9134
|
external_id: string;
|
|
@@ -9104,7 +9212,10 @@ declare class Arbi {
|
|
|
9104
9212
|
}>;
|
|
9105
9213
|
};
|
|
9106
9214
|
readonly documents: {
|
|
9107
|
-
|
|
9215
|
+
/** The current workspace's documents, or `options.workspaceId`'s (opened, not switched to). */
|
|
9216
|
+
list: (options?: {
|
|
9217
|
+
workspaceId?: string;
|
|
9218
|
+
}) => Promise<{
|
|
9108
9219
|
external_id: string;
|
|
9109
9220
|
workspace_ext_id: string;
|
|
9110
9221
|
file_name?: string | null | undefined;
|
|
@@ -10789,6 +10900,13 @@ declare class Arbi {
|
|
|
10789
10900
|
is_owner: boolean;
|
|
10790
10901
|
content?: string | null;
|
|
10791
10902
|
}[]>;
|
|
10903
|
+
/**
|
|
10904
|
+
* Save a SKILL.md as the caller's skill ``slug``: private unless ``shared`` (pass
|
|
10905
|
+
* ``shared: isSharedSkill(skill)`` when changing an existing skill, so a shared one stays shared).
|
|
10906
|
+
*/
|
|
10907
|
+
uploadSkill: (slug: string, markdown: string, options?: {
|
|
10908
|
+
shared?: boolean;
|
|
10909
|
+
}) => Promise<UploadResult>;
|
|
10792
10910
|
/**
|
|
10793
10911
|
* Search documents without LLM generation (retrieval only). No `docIds` searches the whole
|
|
10794
10912
|
* workspace; `searchChunks(result)` ranks the passages found.
|
|
@@ -11098,7 +11216,27 @@ declare class Arbi {
|
|
|
11098
11216
|
outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
|
|
11099
11217
|
outcome_detail?: string | null;
|
|
11100
11218
|
}>;
|
|
11219
|
+
/** Link a card-only contact to `email` (invites it, or links the account at once). */
|
|
11220
|
+
link: (contactId: string, email: string, card: ContactCardWrite) => Promise<{
|
|
11221
|
+
external_id?: string | null;
|
|
11222
|
+
email?: string | null;
|
|
11223
|
+
user?: components["schemas"]["UserResponse"] | null;
|
|
11224
|
+
status: ("registered" | "invited" | "expired" | "card") | "failed";
|
|
11225
|
+
card?: components["schemas"]["ContactCard"] | null;
|
|
11226
|
+
address_book_ext_id?: string | null;
|
|
11227
|
+
created_at: string;
|
|
11228
|
+
shared_workspace_ext_id?: string | null;
|
|
11229
|
+
outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
|
|
11230
|
+
outcome_detail?: string | null;
|
|
11231
|
+
}>;
|
|
11101
11232
|
delete: (contactId: string) => Promise<void>;
|
|
11233
|
+
/** Import one .vcf file (Pro). */
|
|
11234
|
+
import: (file: Blob) => Promise<{
|
|
11235
|
+
added: number;
|
|
11236
|
+
matched: number;
|
|
11237
|
+
skipped: components["schemas"]["ContactImportSkipped"][];
|
|
11238
|
+
total: number;
|
|
11239
|
+
}>;
|
|
11102
11240
|
search: (q: string) => Promise<{
|
|
11103
11241
|
email: string;
|
|
11104
11242
|
name?: string | null;
|
|
@@ -11869,6 +12007,17 @@ declare class Arbi {
|
|
|
11869
12007
|
private requireChatCrypto;
|
|
11870
12008
|
/** Fetch a chat, sealing a new epoch first when it is `rotation_required`. */
|
|
11871
12009
|
private readyChat;
|
|
12010
|
+
/**
|
|
12011
|
+
* The keys of `chat` I hold, opened once per set of epochs: a direct chat's pair key depends on
|
|
12012
|
+
* the members' public keys, a group's on the epochs sealed to me.
|
|
12013
|
+
*/
|
|
12014
|
+
private chatRing;
|
|
12015
|
+
/**
|
|
12016
|
+
* Chats: direct (a person, myself, or my own agent), group and meeting. Every message, title and
|
|
12017
|
+
* attachment is end-to-end encrypted under the chat key in this process; a caller passes and
|
|
12018
|
+
* gets plaintext and never handles keys. Operations on an open chat take the `ChatResponse`
|
|
12019
|
+
* (no refetch); the by-id forms fetch it first.
|
|
12020
|
+
*/
|
|
11872
12021
|
readonly chats: {
|
|
11873
12022
|
/** My chats, most recently active first (raw: titles/last messages are ciphertext). */
|
|
11874
12023
|
list: (kind?: ChatKind) => Promise<{
|
|
@@ -11932,13 +12081,47 @@ declare class Arbi {
|
|
|
11932
12081
|
last_message?: components["schemas"]["ChatMessageResponse"] | null;
|
|
11933
12082
|
call_ext_id?: string | null;
|
|
11934
12083
|
}>;
|
|
12084
|
+
/** Who I am in chats: my external id and the X25519 public key chat keys are sealed to. */
|
|
12085
|
+
identity: () => Promise<{
|
|
12086
|
+
externalId: string;
|
|
12087
|
+
publicKey: string;
|
|
12088
|
+
}>;
|
|
12089
|
+
/** The keys of a chat I hold (cached per set of epochs). */
|
|
12090
|
+
ring: (chat: ChatResponse) => Promise<ChatKeyRing>;
|
|
12091
|
+
/** Make a chat postable: seal the next epoch when it is `rotation_required`. */
|
|
12092
|
+
ready: (chat: ChatResponse) => Promise<{
|
|
12093
|
+
external_id: string;
|
|
12094
|
+
kind: "direct" | "group" | "meeting";
|
|
12095
|
+
title?: string | null;
|
|
12096
|
+
key_version: number;
|
|
12097
|
+
rotation_required: boolean;
|
|
12098
|
+
last_message_at?: string | null;
|
|
12099
|
+
created_at: string;
|
|
12100
|
+
members: components["schemas"]["ChatMemberResponse"][];
|
|
12101
|
+
my_keys?: components["schemas"]["ChatKeyResponse"][];
|
|
12102
|
+
unread_count: number;
|
|
12103
|
+
last_message?: components["schemas"]["ChatMessageResponse"] | null;
|
|
12104
|
+
call_ext_id?: string | null;
|
|
12105
|
+
}>;
|
|
12106
|
+
/** One page of messages decrypted, oldest first; page back with `before` (the oldest id). */
|
|
12107
|
+
page: (chat: ChatResponse, options?: {
|
|
12108
|
+
before?: string;
|
|
12109
|
+
limit?: number;
|
|
12110
|
+
}) => Promise<{
|
|
12111
|
+
messages: DecryptedChatMessage[];
|
|
12112
|
+
hasMore: boolean;
|
|
12113
|
+
}>;
|
|
12114
|
+
/** Decrypt one message of `chat` (never throws: a failure is marked on the row). */
|
|
12115
|
+
decrypt: (chat: ChatResponse, message: ChatMessageResponse) => Promise<DecryptedChatMessage>;
|
|
12116
|
+
/** A group's title in plaintext; null when it has none or it does not open. */
|
|
12117
|
+
title: (chat: ChatResponse) => Promise<string | null>;
|
|
11935
12118
|
/** A chat with its keys opened, title and newest messages decrypted (oldest first). */
|
|
11936
12119
|
load: (chatExtId: string, options?: {
|
|
11937
12120
|
limit?: number;
|
|
11938
12121
|
}) => Promise<DecryptedChat>;
|
|
11939
|
-
/** Post plaintext to a chat (encrypted under its current epoch). */
|
|
11940
|
-
send: (
|
|
11941
|
-
rename: (
|
|
12122
|
+
/** Post plaintext to a chat (encrypted under its current epoch). Returns it decrypted. */
|
|
12123
|
+
send: (chat: ChatResponse | string, text: string, options?: SendChatMessageOptions) => Promise<DecryptedChatMessage>;
|
|
12124
|
+
rename: (chat: ChatResponse | string, title: string | null) => Promise<{
|
|
11942
12125
|
external_id: string;
|
|
11943
12126
|
kind: "direct" | "group" | "meeting";
|
|
11944
12127
|
title?: string | null;
|
|
@@ -11952,7 +12135,10 @@ declare class Arbi {
|
|
|
11952
12135
|
last_message?: components["schemas"]["ChatMessageResponse"] | null;
|
|
11953
12136
|
call_ext_id?: string | null;
|
|
11954
12137
|
}>;
|
|
11955
|
-
|
|
12138
|
+
/** Add people; a meeting chat also needs its call key, sealed to each (`callKey`). */
|
|
12139
|
+
addMembers: (chat: ChatResponse | string, members: ChatMemberKey[], options?: {
|
|
12140
|
+
callKey?: Uint8Array | null;
|
|
12141
|
+
}) => Promise<{
|
|
11956
12142
|
external_id: string;
|
|
11957
12143
|
kind: "direct" | "group" | "meeting";
|
|
11958
12144
|
title?: string | null;
|
|
@@ -11966,13 +12152,20 @@ declare class Arbi {
|
|
|
11966
12152
|
last_message?: components["schemas"]["ChatMessageResponse"] | null;
|
|
11967
12153
|
call_ext_id?: string | null;
|
|
11968
12154
|
}>;
|
|
11969
|
-
/**
|
|
11970
|
-
|
|
12155
|
+
/**
|
|
12156
|
+
* Remove a member (owner) or leave (own id). Removing someone seals the next epoch to the rest
|
|
12157
|
+
* straight away; when that fails, the next member to open the chat does it.
|
|
12158
|
+
*/
|
|
12159
|
+
removeMember: (chat: ChatResponse | string, userExtId: string) => Promise<void>;
|
|
11971
12160
|
markRead: (chatExtId: string, messageExtId?: string) => Promise<{
|
|
11972
12161
|
chat_ext_id: string;
|
|
11973
12162
|
last_read_at?: string | null;
|
|
11974
12163
|
}>;
|
|
11975
12164
|
deleteMessage: (chatExtId: string, messageExtId: string) => Promise<void>;
|
|
12165
|
+
/** Encrypt each file with its own key and upload the ciphertext (limits checked first). */
|
|
12166
|
+
uploadAttachments: (files: ChatAttachmentInput[]) => Promise<ChatAttachmentFile[]>;
|
|
12167
|
+
/** Fetch, decrypt and size-check one attachment. */
|
|
12168
|
+
downloadAttachment: (file: ChatAttachmentFile) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
11976
12169
|
};
|
|
11977
12170
|
/** Direct-chat conveniences addressed by peer (email or `usr-`/`agt-` id). */
|
|
11978
12171
|
readonly dm: {
|
|
@@ -14516,25 +14709,27 @@ declare function listSessions(arbi: ArbiClient): Promise<SessionInfoResponse[]>;
|
|
|
14516
14709
|
declare function terminateSession(arbi: ArbiClient, sessionId: string): Promise<void>;
|
|
14517
14710
|
/** Sign the user out of every device (all sessions, this one included) on the server. */
|
|
14518
14711
|
declare function logoutAllSessions(arbi: ArbiClient): Promise<void>;
|
|
14519
|
-
/**
|
|
14520
|
-
* The short id (first 12 characters of the token's `sk` claim) this session is listed under in
|
|
14521
|
-
* `GET /v1/user/sessions`, so a session list can mark "this device". Unverified decode: used to
|
|
14522
|
-
* recognise our own row, never for authorization. `null` for a missing or unreadable token.
|
|
14523
|
-
*/
|
|
14524
|
-
declare function currentSessionId(accessToken: string | null | undefined): string | null;
|
|
14525
14712
|
|
|
14526
|
-
declare const sessions_currentSessionId: typeof currentSessionId;
|
|
14527
14713
|
declare const sessions_listSessions: typeof listSessions;
|
|
14528
14714
|
declare const sessions_logoutAllSessions: typeof logoutAllSessions;
|
|
14529
14715
|
declare const sessions_terminateSession: typeof terminateSession;
|
|
14530
14716
|
declare namespace sessions {
|
|
14531
|
-
export {
|
|
14717
|
+
export { sessions_listSessions as listSessions, sessions_logoutAllSessions as logoutAllSessions, sessions_terminateSession as terminateSession };
|
|
14532
14718
|
}
|
|
14533
14719
|
|
|
14534
14720
|
/**
|
|
14535
14721
|
* Account operations — change the sign-in email, close the account.
|
|
14536
14722
|
*/
|
|
14537
14723
|
|
|
14724
|
+
type FeatureEntitlements = components['schemas']['FeatureEntitlements'];
|
|
14725
|
+
type EntitledFeature = 'mail' | 'calendar' | 'host_calls';
|
|
14726
|
+
type FeatureRefusal = NonNullable<FeatureEntitlements['reason']>;
|
|
14727
|
+
/**
|
|
14728
|
+
* The paid features this person may use: native mail, the calendar and hosting calls. Hosted service:
|
|
14729
|
+
* owning a Pro project (else `reason: 'pro_required'`); a Box: internal users only (`external_user`).
|
|
14730
|
+
* The API refuses gated routes with 403 and the same `reason`.
|
|
14731
|
+
*/
|
|
14732
|
+
declare function getEntitlements(arbi: ArbiClient): Promise<FeatureEntitlements>;
|
|
14538
14733
|
/** Send a verification code to `newEmail`. SSO accounts are refused (their email lives at the IdP). */
|
|
14539
14734
|
declare function requestEmailChange(arbi: ArbiClient, newEmail: string): Promise<void>;
|
|
14540
14735
|
/** Confirm the change with the 3-word code from the email. Resolves with the new email. */
|
|
@@ -14551,11 +14746,15 @@ declare function requestDeletion(arbi: ArbiClient): Promise<{
|
|
|
14551
14746
|
detail: string;
|
|
14552
14747
|
}>;
|
|
14553
14748
|
|
|
14749
|
+
type account_EntitledFeature = EntitledFeature;
|
|
14750
|
+
type account_FeatureEntitlements = FeatureEntitlements;
|
|
14751
|
+
type account_FeatureRefusal = FeatureRefusal;
|
|
14554
14752
|
declare const account_confirmEmailChange: typeof confirmEmailChange;
|
|
14753
|
+
declare const account_getEntitlements: typeof getEntitlements;
|
|
14555
14754
|
declare const account_requestDeletion: typeof requestDeletion;
|
|
14556
14755
|
declare const account_requestEmailChange: typeof requestEmailChange;
|
|
14557
14756
|
declare namespace account {
|
|
14558
|
-
export { account_confirmEmailChange as confirmEmailChange, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
|
|
14757
|
+
export { type account_EntitledFeature as EntitledFeature, type account_FeatureEntitlements as FeatureEntitlements, type account_FeatureRefusal as FeatureRefusal, account_confirmEmailChange as confirmEmailChange, account_getEntitlements as getEntitlements, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
|
|
14559
14758
|
}
|
|
14560
14759
|
|
|
14561
14760
|
/**
|
|
@@ -14601,4 +14800,4 @@ declare namespace identity {
|
|
|
14601
14800
|
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 };
|
|
14602
14801
|
}
|
|
14603
14802
|
|
|
14604
|
-
export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type
|
|
14803
|
+
export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type MessageMetadataPayload$1 as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FactResponse as aA, type FactSearchRequest as aB, type FactSearchResponse as aC, type FindTimeParams as aD, type FormattedWsMessage as aE, type FreeBusyEntry as aF, GOOGLE_VENDORS as aG, type HolidayCountry as aH, type HouseTemplateCandidate as aI, IMANAGE_VENDORS as aJ, type IdentityErrorCode as aK, type IdentityPurchase as aL, type IdentityState as aM, type IdentityStatus as aN, type ImportResult as aO, type InvitationRead as aP, type LinkedRun as aQ, type ListAllOptions as aR, type ListEventsParams as aS, type ListFactsOptions as aT, type ListPaginatedOptions as aU, MAILBOX_SYNC_VENDORS as aV, MAX_RETRIEVE_DOC_IDS as aW, MICROSOFT_VENDORS as aX, type MailAttachment as aY, type MailDraftSSEEvent as aZ, type MessageLevel as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, DuplicateContactError as at, ENTITY_KINDS as au, type EditScope as av, type EntityKind as aw, type EventCreateBody as ax, type EventPatchBody as ay, FLAT_TAG_KINDS as az, type ActivityKind as b, type SendBack as b$, type MessageQueuedEvent as b0, type OAuthAccountKind as b1, type OutputTokensDetails as b2, type OverlayItem as b3, type OverlayLayerName as b4, PRESENCE_KINDS as b5, type ParsedSlashCommand as b6, type PendingAuthResponse as b7, type PersonKey as b8, PlanStepsError as b9, type ResolvedRecipient as bA, type RespondParams as bB, type RespondPartstat as bC, type ResponseCompletedEvent as bD, type ResponseContentPartAddedEvent as bE, type ResponseCreatedEvent as bF, type ResponseFailedEvent as bG, type ResponseOutputItemAddedEvent as bH, type ResponseOutputItemDoneEvent as bI, type ResponseOutputTextDeltaEvent as bJ, type ResponseOutputTextDoneEvent as bK, type ResponseUsage as bL, type RoomCreateBody as bM, type RoomQuery as bN, type RoomRead as bO, type RunProgress as bP, type RunStep as bQ, type RunWaitingOn as bR, SHAREPOINT_VENDORS as bS, type SSEEvent as bT, type SSEStreamCallbacks as bU, type SSEStreamResult as bV, type SSEStreamStartData as bW, STEP_FIELD_OPTION_TONES as bX, SUPPORTED_EXTENSIONS as bY, type ScopedTarget as bZ, type SearchChunk as b_, type PlanWorkRequest as ba, type ProbeAnswerEvent as bb, type ProductResponse as bc, type ProjectAddonKind as bd, type ProjectAddonSettingsRequest as be, type ProjectBudget as bf, type ProjectCheckoutRequest as bg, type ProjectConversationUsageResponse as bh, type ProjectCreateOptions as bi, type ProjectDetails as bj, type ProjectEventKind as bk, type ProjectEventResponse as bl, type ProjectInvoicesResponse as bm, type ProjectNextPeriodAddonsRequest as bn, type ProjectPlanChangeRequest as bo, type ProjectQuoteRequest as bp, type ProjectResponse as bq, type ProjectUpdateRequest as br, type ProjectUsageResponse as bs, PublicBookingError as bt, type PublicBookingPage as bu, type QueryOptions as bv, type RaisedSignal as bw, type ReconnectOptions as bx, type ReconnectableWsConnection as by, type ResolvedCitation as bz, type ActivityResponse as c, type WsConnection as c$, type ShareRead as c0, type ShareRole as c1, type SkillSummary as c2, type SkippedFile as c3, type SlackConnectionStatus as c4, type StepActionRequest as c5, type StepActivityEvent as c6, type StepAssignee as c7, type StepField as c8, type StepFieldOption as c9, type TaxQuoteResponse as cA, type TimeSuggestion as cB, type TokenBudgetContext as cC, type UpdateConversationRequest as cD, type UpdateFactRequest as cE, type UpdateWorkflowRequest as cF, type UploadBatchResult as cG, type UploadDirectOptions as cH, type UploadDirectResult as cI, type UploadDocumentsOptions as cJ, type UploadOptions as cK, type UploadProgressListener as cL, type UploadResult as cM, type UsageBreakdown as cN, type UserConnectorEntry as cO, type UserDailyUsageResponse as cP, type UserInfo as cQ, type UserInputRequestEvent as cR, type UserMessageEvent as cS, WebSocketAuthError as cT, type WeeklyHoursSpec as cU, type WorkStatus as cV, type WorkflowAuthMode as cW, type WorkflowResponse as cX, type WorkflowRunHistoryResponse as cY, type WorkflowRunResponse as cZ, type WorkspaceContext as c_, type StepFieldOptionTone as ca, type StepKind as cb, type StepPhase as cc, type StepSignal as cd, type StepSignalWhen as ce, type StepState as cf, type StepStatus as cg, type SubmitBackgroundQueryOptions as ch, type SubscribeParams as ci, type SyncTriggerResult as cj, TAG_KINDS as ck, TAG_NESTING_MAX_DEPTH as cl, type TagChange as cm, type TagFieldDefinition as cn, type TagGroup as co, type TagKind as cp, type TagKindField as cq, type TagKindSchema as cr, type TagLinks as cs, type TagListQuery as ct, type TagNode as cu, type TagResponse as cv, type TagScope as cw, type TagTreeRow as cx, type TaskPlan as cy, type TaskPlanStep as cz, type AgentControlStateEvent as d, isMailboxSyncVendor as d$, account as d0, agentconfig as d1, agents as d2, assistant as d3, authenticatedFetch as d4, bookPublicSlot as d5, buildCitationChunkData as d6, buildDocNameMap as d7, buildFactsContextTool as d8, buildRetrievalChunkTool as d9, formatFileSize as dA, formatGbp as dB, formatGbpPerMillionTokens as dC, formatItemLabel as dD, formatStreamSummary as dE, formatUserName as dF, formatWorkspaceChoices as dG, formatWsMessage as dH, generateEncryptedWorkspaceKey as dI, generateNewWorkspaceKey as dJ, getChildTags as dK, getEligibleParentTags as dL, getErrorCode as dM, getErrorMessage as dN, getPublicBookingPage as dO, getRawWorkspaceKey as dP, getTagDescendantIds as dQ, health as dR, houseTemplate as dS, identity as dT, identityErrorCode as dU, isAnnotationTag as dV, isConnectorVendorVisible as dW, isDriveSyncVendor as dX, isEntityTag as dY, isFlatKind as dZ, isLabelTag as d_, buildRetrievalFullContextTool as da, buildRetrievalTocTool as db, calendar as dc, canTagHaveParent as dd, cancelPublicBooking as de, chats as df, connectErrorMessage as dg, connectWebSocket as dh, connectWithReconnect as di, connectors as dj, consumeSSEStream as dk, contacts as dl, conversations as dm, countCitations as dn, createAuthenticatedClient as dp, createDocumentWaiter as dq, defaultKindForFormat as dr, doctags as ds, documents as dt, facts as du, files as dv, filterDocumentTags as dw, filterSkills as dx, flattenTagTree as dy, formatAgentStepLabel as dz, type AgentStepDeltaEvent as e, isPresenceTag as e0, isSharePointVendor as e1, isSharedSkill as e2, mail as e3, notifications as e4, parseSSEEvents as e5, parseSlashCommand as e6, parseSlashTokenInProgress as e7, performPasswordLogin as e8, performSigningKeyLogin as e9, work as eA, workflowSteps as eB, workflows as eC, workspaces as eD, wouldCreateTagCycle as eE, performSsoDeviceFlowLogin as ea, profile as eb, progressFetch as ec, projects as ed, refusalReason as ee, requireData as ef, requireOk as eg, resolveAuth as eh, resolveCitations as ei, resolveWorkspace as ej, responses as ek, searchChunks as el, selectWorkspace as em, selectWorkspaceById as en, sessions as eo, settings as ep, signatureRequests as eq, streamSSE as er, stripCitationMarkdown as es, summarizeCitations as et, tagUseCount as eu, tags as ev, tagsForScope as ew, tagsOfGroup as ex, uploadSkill as ey, usdToGbp as ez, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiErrorEvent as j, type ArbiHostSession as k, type ArbiOptions as l, ArbiSessionExpiredError as m, type ArtifactEvent as n, type AttendeeRead as o, type AuthContext as p, type AuthHeaders as q, type AuthMode as r, type AuthenticatedClient as s, type BookingPage as t, type BookingPageWriteBody as u, type BookingRequestBody as v, type BridgeTokensOptions as w, type CalDavProfile as x, type CalendarAccount as y, type CalendarAccountKind as z };
|