@arbidocs/sdk 0.5.68 → 0.5.70
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-D0iEy5W9.d.ts → browser-Bf6pRBuP.d.ts} +294 -195
- package/dist/{browser-BsuUurv5.d.cts → browser-CA2ecqVP.d.cts} +294 -195
- package/dist/browser.cjs +240 -65
- 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 +241 -67
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +242 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +243 -68
- package/dist/index.js.map +1 -1
- package/examples/react-chat/package.json +2 -2
- package/package.json +2 -2
|
@@ -1432,12 +1432,15 @@ declare function updateDocuments(arbi: ArbiClient, documents: DocUpdateRequest$1
|
|
|
1432
1432
|
title?: string | null | undefined;
|
|
1433
1433
|
} | null | undefined;
|
|
1434
1434
|
}[]>;
|
|
1435
|
-
/**
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1435
|
+
/** Where a URL ingestion goes and how. */
|
|
1436
|
+
interface UploadUrlOptions {
|
|
1437
|
+
/** The workspace the documents are made in (its key must be on the session). */
|
|
1438
|
+
workspaceExtId: string;
|
|
1439
|
+
shared?: boolean;
|
|
1440
|
+
configExtId?: string | null;
|
|
1441
|
+
}
|
|
1442
|
+
/** Kick off a URL-based document ingestion into `options.workspaceExtId`. */
|
|
1443
|
+
declare function uploadUrl(arbi: ArbiClient, urls: string[], options: UploadUrlOptions): Promise<{
|
|
1441
1444
|
doc_ext_ids?: string[] | undefined;
|
|
1442
1445
|
version?: number | null | undefined;
|
|
1443
1446
|
batch_id?: string | null | undefined;
|
|
@@ -1548,12 +1551,11 @@ interface UploadDirectOptions {
|
|
|
1548
1551
|
*/
|
|
1549
1552
|
onBytesProgress?: (progress: DirectUploadProgress) => void;
|
|
1550
1553
|
/**
|
|
1551
|
-
*
|
|
1552
|
-
*
|
|
1553
|
-
*
|
|
1554
|
-
* one open (`Arbi.documents.uploadDirect` does: `readInWorkspace`).
|
|
1554
|
+
* The workspace whose key the files are encrypted with: `upload-init` reserves the rows in it and
|
|
1555
|
+
* `upload-commit` commits them there (its key must be on the session), whatever workspace the
|
|
1556
|
+
* session has open meanwhile.
|
|
1555
1557
|
*/
|
|
1556
|
-
|
|
1558
|
+
workspaceExtId: string;
|
|
1557
1559
|
}
|
|
1558
1560
|
interface DirectUploadProgress {
|
|
1559
1561
|
fileIndex: number;
|
|
@@ -1624,7 +1626,7 @@ declare function presignedPut(url: string, body: Uint8Array, onProgress?: (loade
|
|
|
1624
1626
|
* callers that want to upload files from disk should use the wrapper in
|
|
1625
1627
|
* ``documents-node`` which reads ``fs`` into the ``data`` field.
|
|
1626
1628
|
*/
|
|
1627
|
-
declare function uploadDocumentsDirect(arbi: DirectUploadClient, workspaceKey: Uint8Array, files: DirectUploadFile[], options
|
|
1629
|
+
declare function uploadDocumentsDirect(arbi: DirectUploadClient, workspaceKey: Uint8Array, files: DirectUploadFile[], options: UploadDirectOptions): Promise<UploadDirectResult>;
|
|
1628
1630
|
|
|
1629
1631
|
type documents_DirectUploadClient = DirectUploadClient;
|
|
1630
1632
|
type documents_DirectUploadFile = DirectUploadFile;
|
|
@@ -1642,6 +1644,7 @@ type documents_UploadDirectResult = UploadDirectResult;
|
|
|
1642
1644
|
type documents_UploadDocumentsOptions = UploadDocumentsOptions;
|
|
1643
1645
|
type documents_UploadOptions = UploadOptions;
|
|
1644
1646
|
type documents_UploadResult = UploadResult;
|
|
1647
|
+
type documents_UploadUrlOptions = UploadUrlOptions;
|
|
1645
1648
|
declare const documents_deleteDocuments: typeof deleteDocuments;
|
|
1646
1649
|
declare const documents_downloadDocument: typeof downloadDocument;
|
|
1647
1650
|
declare const documents_finaliseTranslation: typeof finaliseTranslation;
|
|
@@ -1662,7 +1665,7 @@ declare const documents_uploadDocumentsDirect: typeof uploadDocumentsDirect;
|
|
|
1662
1665
|
declare const documents_uploadFiles: typeof uploadFiles;
|
|
1663
1666
|
declare const documents_uploadUrl: typeof uploadUrl;
|
|
1664
1667
|
declare namespace documents {
|
|
1665
|
-
export { type documents_DirectUploadClient as DirectUploadClient, type documents_DirectUploadFile as DirectUploadFile, type documents_DirectUploadProgress as DirectUploadProgress, type documents_DocumentListFields as DocumentListFields, type documents_DocumentListOrder as DocumentListOrder, type documents_ListAllOptions as ListAllOptions, type documents_ListPaginatedOptions as ListPaginatedOptions, documents_MAX_PAGES as MAX_PAGES, documents_SUPPORTED_EXTENSIONS as SUPPORTED_EXTENSIONS, type documents_SkippedFile as SkippedFile, type documents_UploadBatchResult as UploadBatchResult, type documents_UploadDirectOptions as UploadDirectOptions, type documents_UploadDirectResult as UploadDirectResult, type documents_UploadDocumentsOptions as UploadDocumentsOptions, type documents_UploadOptions as UploadOptions, type documents_UploadResult as UploadResult, documents_deleteDocuments as deleteDocuments, documents_downloadDocument as downloadDocument, documents_finaliseTranslation as finaliseTranslation, documents_getDocuments as getDocuments, documents_getParsedContent as getParsedContent, documents_getThumbnails as getThumbnails, documents_listAll as listAll, documents_listDocuments as listDocuments, documents_listPaginated as listPaginated, documents_listVersions as listVersions, documents_mimeFromName as mimeFromName, documents_presignedPut as presignedPut, documents_sanitizeFolderPath as sanitizeFolderPath, documents_similarDocuments as similarDocuments, documents_updateDocuments as updateDocuments, documents_uploadDocuments as uploadDocuments, documents_uploadDocumentsDirect as uploadDocumentsDirect, uploadFile$1 as uploadFile, documents_uploadFiles as uploadFiles, documents_uploadUrl as uploadUrl };
|
|
1668
|
+
export { type documents_DirectUploadClient as DirectUploadClient, type documents_DirectUploadFile as DirectUploadFile, type documents_DirectUploadProgress as DirectUploadProgress, type documents_DocumentListFields as DocumentListFields, type documents_DocumentListOrder as DocumentListOrder, type documents_ListAllOptions as ListAllOptions, type documents_ListPaginatedOptions as ListPaginatedOptions, documents_MAX_PAGES as MAX_PAGES, documents_SUPPORTED_EXTENSIONS as SUPPORTED_EXTENSIONS, type documents_SkippedFile as SkippedFile, type documents_UploadBatchResult as UploadBatchResult, type documents_UploadDirectOptions as UploadDirectOptions, type documents_UploadDirectResult as UploadDirectResult, type documents_UploadDocumentsOptions as UploadDocumentsOptions, type documents_UploadOptions as UploadOptions, type documents_UploadResult as UploadResult, type documents_UploadUrlOptions as UploadUrlOptions, documents_deleteDocuments as deleteDocuments, documents_downloadDocument as downloadDocument, documents_finaliseTranslation as finaliseTranslation, documents_getDocuments as getDocuments, documents_getParsedContent as getParsedContent, documents_getThumbnails as getThumbnails, documents_listAll as listAll, documents_listDocuments as listDocuments, documents_listPaginated as listPaginated, documents_listVersions as listVersions, documents_mimeFromName as mimeFromName, documents_presignedPut as presignedPut, documents_sanitizeFolderPath as sanitizeFolderPath, documents_similarDocuments as similarDocuments, documents_updateDocuments as updateDocuments, documents_uploadDocuments as uploadDocuments, documents_uploadDocumentsDirect as uploadDocumentsDirect, uploadFile$1 as uploadFile, documents_uploadFiles as uploadFiles, documents_uploadUrl as uploadUrl };
|
|
1666
1669
|
}
|
|
1667
1670
|
|
|
1668
1671
|
/**
|
|
@@ -2115,6 +2118,210 @@ declare namespace modelConnections {
|
|
|
2115
2118
|
export { type modelConnections_ConnectionModel as ConnectionModel, type modelConnections_DirectModelUsage as DirectModelUsage, type modelConnections_ModelConnection as ModelConnection, type modelConnections_ModelConnectionKeys as ModelConnectionKeys, type modelConnections_ModelConnectionWrite as ModelConnectionWrite, type modelConnections_PersonalConnectionInput as PersonalConnectionInput, modelConnections_directUsage as directUsage, modelConnections_listConnections as listConnections, modelConnections_removeConnection as removeConnection, modelConnections_savePersonalConnection as savePersonalConnection, modelConnections_sealPersonalApiKey as sealPersonalApiKey, modelConnections_unlockModelConnections as unlockModelConnections };
|
|
2116
2119
|
}
|
|
2117
2120
|
|
|
2121
|
+
/**
|
|
2122
|
+
* Mail operations over `/v1/mail`: the native ARBI inbox and any connected account.
|
|
2123
|
+
*
|
|
2124
|
+
* Every operation takes a {@link MailFetch}, so the same code runs in the browser (which already owns
|
|
2125
|
+
* token refresh) and in Node (`createMailFetch`). Types come from the generated schema.
|
|
2126
|
+
*
|
|
2127
|
+
* Native mail is sealed to the user. Reading it needs the keys unlocked in the current server session
|
|
2128
|
+
* first (`unlockNativeMail`); composing a draft does not, which is why an agent can draft for its
|
|
2129
|
+
* owner without ever holding the owner's keys.
|
|
2130
|
+
*/
|
|
2131
|
+
|
|
2132
|
+
type Schemas$2 = components['schemas'];
|
|
2133
|
+
type MailPolicy = Schemas$2['MailPolicyRead'];
|
|
2134
|
+
type MailAccount = Schemas$2['MailAccountRead'];
|
|
2135
|
+
type MailFolder = Required<Schemas$2['MailFolder']>;
|
|
2136
|
+
type MailAddress = Schemas$2['MailAddress'];
|
|
2137
|
+
type MailAddressInput = Pick<MailAddress, 'email'> & Partial<MailAddress>;
|
|
2138
|
+
type MailAttachment = Schemas$2['MailAttachment'];
|
|
2139
|
+
type MailMessage = Required<Schemas$2['MailMessage']>;
|
|
2140
|
+
type MailMessagePage = Omit<Required<Schemas$2['MailMessagePage']>, 'messages'> & {
|
|
2141
|
+
messages: MailMessage[];
|
|
2142
|
+
};
|
|
2143
|
+
type MailMessageUpdate = Schemas$2['MailMessageUpdate'];
|
|
2144
|
+
type MailCompose = Omit<Schemas$2['MailCompose'], 'to' | 'cc' | 'bcc'> & {
|
|
2145
|
+
to?: MailAddressInput[];
|
|
2146
|
+
cc?: MailAddressInput[];
|
|
2147
|
+
bcc?: MailAddressInput[];
|
|
2148
|
+
};
|
|
2149
|
+
type MailSend = MailCompose & {
|
|
2150
|
+
request_id: string;
|
|
2151
|
+
};
|
|
2152
|
+
type MailDraftSaved = Schemas$2['MailDraftSaved'];
|
|
2153
|
+
type MailSendResult = Schemas$2['MailSendResult'];
|
|
2154
|
+
/** The id of the user's own ARBI mailbox. For an agent it resolves to its owner's. */
|
|
2155
|
+
declare const NATIVE_ACCOUNT = "native";
|
|
2156
|
+
/** Fetch a path under `/v1/mail` with authentication; rejects on a non-2xx response. */
|
|
2157
|
+
type MailFetch = (path: string, init?: RequestInit) => Promise<Response>;
|
|
2158
|
+
/** A {@link MailFetch} for Node and scripts: bearer token, server errors surfaced as `ArbiApiError`. */
|
|
2159
|
+
declare function createMailFetch(auth: AuthHeaders): MailFetch;
|
|
2160
|
+
/** What this deployment allows: native mail, OAuth providers and approved mail servers. */
|
|
2161
|
+
declare function getMailPolicy(mail: MailFetch): Promise<MailPolicy>;
|
|
2162
|
+
declare function listMailAccounts(mail: MailFetch): Promise<MailAccount[]>;
|
|
2163
|
+
/** Claim `alias@<deployment domain>` as the user's native address. One per user. */
|
|
2164
|
+
declare function claimNativeAlias(mail: MailFetch, alias: string): Promise<string>;
|
|
2165
|
+
declare function listFolders(mail: MailFetch, accountId?: string): Promise<MailFolder[]>;
|
|
2166
|
+
interface ListMessagesOptions {
|
|
2167
|
+
accountId?: string;
|
|
2168
|
+
/** A folder `id` from {@link listFolders} (native: inbox, sent, drafts, archive, trash). */
|
|
2169
|
+
folderId: string;
|
|
2170
|
+
/** Free-text filter over subject, sender and recipients. */
|
|
2171
|
+
query?: string;
|
|
2172
|
+
/** The `next_cursor` of the previous page. */
|
|
2173
|
+
cursor?: string | null;
|
|
2174
|
+
limit?: number;
|
|
2175
|
+
}
|
|
2176
|
+
declare function listMessages(mail: MailFetch, options: ListMessagesOptions): Promise<MailMessagePage>;
|
|
2177
|
+
declare function getMessage$1(mail: MailFetch, messageId: string, accountId?: string): Promise<MailMessage>;
|
|
2178
|
+
/** The bytes of one attachment of a message. */
|
|
2179
|
+
declare function downloadAttachment(mail: MailFetch, messageId: string, attachmentId: string, accountId?: string): Promise<Uint8Array>;
|
|
2180
|
+
/** Mark read or unread, move to a folder, or send to Trash. */
|
|
2181
|
+
declare function updateMessage(mail: MailFetch, messageId: string, update: MailMessageUpdate, accountId?: string): Promise<void>;
|
|
2182
|
+
/**
|
|
2183
|
+
* Save a draft. In the native mailbox it lands in Drafts; an agent's draft lands in its owner's
|
|
2184
|
+
* Drafts, from the owner's address, labelled with the agent's name (`drafted_by`).
|
|
2185
|
+
*/
|
|
2186
|
+
declare function saveDraft(mail: MailFetch, compose: MailCompose, accountId?: string): Promise<MailDraftSaved>;
|
|
2187
|
+
/**
|
|
2188
|
+
* Send a message. `request_id` makes the send idempotent: retrying the same request never sends
|
|
2189
|
+
* twice, and reusing it for a different message is refused.
|
|
2190
|
+
*/
|
|
2191
|
+
declare function sendMessage(mail: MailFetch, message: Omit<MailSend, 'request_id'> & {
|
|
2192
|
+
request_id?: string;
|
|
2193
|
+
}, accountId?: string): Promise<MailSendResult>;
|
|
2194
|
+
interface NativeMailKeys {
|
|
2195
|
+
/** The user's Ed25519 secret key (64 bytes), from the login result. */
|
|
2196
|
+
signingPrivateKey: Uint8Array;
|
|
2197
|
+
/** The server session's public key, from the login result. */
|
|
2198
|
+
serverSessionKey: Uint8Array;
|
|
2199
|
+
}
|
|
2200
|
+
/**
|
|
2201
|
+
* Unlock the native inbox for this session: unwrap every message key with the user's private key and
|
|
2202
|
+
* re-seal it to the server session, which can then read mail on the user's behalf until it expires.
|
|
2203
|
+
* Call it again to unlock mail that arrived since.
|
|
2204
|
+
*/
|
|
2205
|
+
declare function unlockNativeMail(mail: MailFetch, keys: NativeMailKeys): Promise<void>;
|
|
2206
|
+
/** Build an attachment from bytes. */
|
|
2207
|
+
declare function attachmentFromBytes(name: string, contentType: string, bytes: Uint8Array): MailAttachment;
|
|
2208
|
+
|
|
2209
|
+
type mail_ListMessagesOptions = ListMessagesOptions;
|
|
2210
|
+
type mail_MailAccount = MailAccount;
|
|
2211
|
+
type mail_MailAddress = MailAddress;
|
|
2212
|
+
type mail_MailAddressInput = MailAddressInput;
|
|
2213
|
+
type mail_MailAttachment = MailAttachment;
|
|
2214
|
+
type mail_MailCompose = MailCompose;
|
|
2215
|
+
type mail_MailDraftSaved = MailDraftSaved;
|
|
2216
|
+
type mail_MailFetch = MailFetch;
|
|
2217
|
+
type mail_MailFolder = MailFolder;
|
|
2218
|
+
type mail_MailMessage = MailMessage;
|
|
2219
|
+
type mail_MailMessagePage = MailMessagePage;
|
|
2220
|
+
type mail_MailMessageUpdate = MailMessageUpdate;
|
|
2221
|
+
type mail_MailPolicy = MailPolicy;
|
|
2222
|
+
type mail_MailSend = MailSend;
|
|
2223
|
+
type mail_MailSendResult = MailSendResult;
|
|
2224
|
+
declare const mail_NATIVE_ACCOUNT: typeof NATIVE_ACCOUNT;
|
|
2225
|
+
type mail_NativeMailKeys = NativeMailKeys;
|
|
2226
|
+
declare const mail_attachmentFromBytes: typeof attachmentFromBytes;
|
|
2227
|
+
declare const mail_claimNativeAlias: typeof claimNativeAlias;
|
|
2228
|
+
declare const mail_createMailFetch: typeof createMailFetch;
|
|
2229
|
+
declare const mail_downloadAttachment: typeof downloadAttachment;
|
|
2230
|
+
declare const mail_getMailPolicy: typeof getMailPolicy;
|
|
2231
|
+
declare const mail_listFolders: typeof listFolders;
|
|
2232
|
+
declare const mail_listMailAccounts: typeof listMailAccounts;
|
|
2233
|
+
declare const mail_listMessages: typeof listMessages;
|
|
2234
|
+
declare const mail_saveDraft: typeof saveDraft;
|
|
2235
|
+
declare const mail_sendMessage: typeof sendMessage;
|
|
2236
|
+
declare const mail_unlockNativeMail: typeof unlockNativeMail;
|
|
2237
|
+
declare const mail_updateMessage: typeof updateMessage;
|
|
2238
|
+
declare namespace mail {
|
|
2239
|
+
export { type mail_ListMessagesOptions as ListMessagesOptions, type mail_MailAccount as MailAccount, type mail_MailAddress as MailAddress, type mail_MailAddressInput as MailAddressInput, type mail_MailAttachment as MailAttachment, type mail_MailCompose as MailCompose, type mail_MailDraftSaved as MailDraftSaved, type mail_MailFetch as MailFetch, type mail_MailFolder as MailFolder, type mail_MailMessage as MailMessage, type mail_MailMessagePage as MailMessagePage, type mail_MailMessageUpdate as MailMessageUpdate, type mail_MailPolicy as MailPolicy, type mail_MailSend as MailSend, type mail_MailSendResult as MailSendResult, mail_NATIVE_ACCOUNT as NATIVE_ACCOUNT, type mail_NativeMailKeys as NativeMailKeys, mail_attachmentFromBytes as attachmentFromBytes, mail_claimNativeAlias as claimNativeAlias, mail_createMailFetch as createMailFetch, mail_downloadAttachment as downloadAttachment, mail_getMailPolicy as getMailPolicy, getMessage$1 as getMessage, mail_listFolders as listFolders, mail_listMailAccounts as listMailAccounts, mail_listMessages as listMessages, mail_saveDraft as saveDraft, mail_sendMessage as sendMessage, mail_unlockNativeMail as unlockNativeMail, mail_updateMessage as updateMessage };
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* Secure mail delivery over `/v1/mail/secure`: a message for a recipient outside ARBI (or one who
|
|
2244
|
+
* may not have an account yet) is sealed in the sender's browser under a fresh message key that
|
|
2245
|
+
* travels only in the link's fragment (`/secure-mail/<id>#key=<fragmentKey>`).
|
|
2246
|
+
*
|
|
2247
|
+
* - {@link prepareSecureMail}: the `/secure/send` payload. The MIME message (with its attachments)
|
|
2248
|
+
* is built here ({@link secureMime}) so its content never reaches the send API as plaintext.
|
|
2249
|
+
* - {@link claimSecureMail}: the recipient, signed in, claims the message from its link into their
|
|
2250
|
+
* native inbox.
|
|
2251
|
+
*
|
|
2252
|
+
* Both take the user's X25519 public key (`encryptionKeypairFromSigningKey`); `arbi.secureMail`
|
|
2253
|
+
* passes the signed-in user's.
|
|
2254
|
+
*/
|
|
2255
|
+
|
|
2256
|
+
/** The `/secure/send` body. */
|
|
2257
|
+
type SecureMailSend = components['schemas']['SecureMailSend'];
|
|
2258
|
+
interface SecureMailAddress {
|
|
2259
|
+
email: string;
|
|
2260
|
+
name?: string | null;
|
|
2261
|
+
}
|
|
2262
|
+
/** A message to send securely (the composer's): recipients, subject, bodies and attachments. */
|
|
2263
|
+
interface SecureMailCompose {
|
|
2264
|
+
to: SecureMailAddress[];
|
|
2265
|
+
cc: SecureMailAddress[];
|
|
2266
|
+
bcc: SecureMailAddress[];
|
|
2267
|
+
subject: string;
|
|
2268
|
+
text: string;
|
|
2269
|
+
html?: string | null;
|
|
2270
|
+
attachments: Array<{
|
|
2271
|
+
name: string;
|
|
2272
|
+
content_type: string;
|
|
2273
|
+
size: number;
|
|
2274
|
+
content_base64?: string | null;
|
|
2275
|
+
}>;
|
|
2276
|
+
draft_id?: string | null;
|
|
2277
|
+
in_reply_to?: string | null;
|
|
2278
|
+
references?: string[] | null;
|
|
2279
|
+
}
|
|
2280
|
+
/** The sending mailbox: its address and the name shown with it. */
|
|
2281
|
+
interface SecureMailSender {
|
|
2282
|
+
email: string;
|
|
2283
|
+
display_name?: string | null;
|
|
2284
|
+
}
|
|
2285
|
+
interface PrepareSecureMailOptions {
|
|
2286
|
+
/** Makes the send idempotent (the outbox retries with the same one). */
|
|
2287
|
+
requestId: string;
|
|
2288
|
+
/** The sender's X25519 public key: the sender keeps a copy of the message key. */
|
|
2289
|
+
senderPublicKey: Uint8Array;
|
|
2290
|
+
/** The site the recipients' links open on (`window.location.origin`). */
|
|
2291
|
+
frontendOrigin: string;
|
|
2292
|
+
}
|
|
2293
|
+
/**
|
|
2294
|
+
* The raw MIME message, built in the sender's browser: message content and attachment bytes never
|
|
2295
|
+
* enter the send API as plaintext. No Bcc header enters the recipients' copies.
|
|
2296
|
+
*/
|
|
2297
|
+
declare function secureMime(compose: SecureMailCompose, sender: SecureMailSender): Uint8Array;
|
|
2298
|
+
/**
|
|
2299
|
+
* The `/secure/send` payload for `compose` from `sender`: the MIME message and its metadata
|
|
2300
|
+
* sealed under one message key, a link per recipient (every To, Cc and Bcc address once), and the
|
|
2301
|
+
* sender's copy of the key. The plaintext MIME bytes are wiped once sealed.
|
|
2302
|
+
*/
|
|
2303
|
+
declare function prepareSecureMail(compose: SecureMailCompose, sender: SecureMailSender, { requestId, senderPublicKey, frontendOrigin }: PrepareSecureMailOptions): Promise<SecureMailSend>;
|
|
2304
|
+
/**
|
|
2305
|
+
* Claim a secure message from its link (`/secure-mail/<id>#key=<fragmentKey>`) into the user's
|
|
2306
|
+
* native inbox. Both encrypted parts are authenticated under the link key before anything is
|
|
2307
|
+
* claimed; the claim then proves possession of the key and re-seals it to `recipientPublicKey`
|
|
2308
|
+
* (the user's X25519 public key).
|
|
2309
|
+
*/
|
|
2310
|
+
declare function claimSecureMail(mail: MailFetch, id: string, fragmentKey: string, recipientPublicKey: Uint8Array): Promise<{
|
|
2311
|
+
id: string;
|
|
2312
|
+
}>;
|
|
2313
|
+
|
|
2314
|
+
type secureMail_PrepareSecureMailOptions = PrepareSecureMailOptions;
|
|
2315
|
+
type secureMail_SecureMailCompose = SecureMailCompose;
|
|
2316
|
+
type secureMail_SecureMailSend = SecureMailSend;
|
|
2317
|
+
type secureMail_SecureMailSender = SecureMailSender;
|
|
2318
|
+
declare const secureMail_claimSecureMail: typeof claimSecureMail;
|
|
2319
|
+
declare const secureMail_prepareSecureMail: typeof prepareSecureMail;
|
|
2320
|
+
declare const secureMail_secureMime: typeof secureMime;
|
|
2321
|
+
declare namespace secureMail {
|
|
2322
|
+
export { type secureMail_PrepareSecureMailOptions as PrepareSecureMailOptions, type secureMail_SecureMailCompose as SecureMailCompose, type secureMail_SecureMailSend as SecureMailSend, type secureMail_SecureMailSender as SecureMailSender, secureMail_claimSecureMail as claimSecureMail, secureMail_prepareSecureMail as prepareSecureMail, secureMail_secureMime as secureMime };
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2118
2325
|
/**
|
|
2119
2326
|
* Workspace operations — list, create, delete, update, users, copy.
|
|
2120
2327
|
*/
|
|
@@ -3003,7 +3210,7 @@ declare function deleteConversation(arbi: ArbiClient, conversationId: string): P
|
|
|
3003
3210
|
}>;
|
|
3004
3211
|
/** Keyword + semantic search over the open workspace's past conversation messages, grouped. */
|
|
3005
3212
|
declare function searchConversations(arbi: ArbiClient, body: ConversationSearchRequest): Promise<ConversationSearchResponse>;
|
|
3006
|
-
declare function getMessage
|
|
3213
|
+
declare function getMessage(arbi: ArbiClient, messageId: string): Promise<{
|
|
3007
3214
|
role: "user" | "assistant" | "system";
|
|
3008
3215
|
content: string;
|
|
3009
3216
|
tools?: {
|
|
@@ -3423,13 +3630,14 @@ type conversations_PostMessageRequest = PostMessageRequest;
|
|
|
3423
3630
|
declare const conversations_deleteConversation: typeof deleteConversation;
|
|
3424
3631
|
declare const conversations_deleteMessage: typeof deleteMessage;
|
|
3425
3632
|
declare const conversations_getConversationThreads: typeof getConversationThreads;
|
|
3633
|
+
declare const conversations_getMessage: typeof getMessage;
|
|
3426
3634
|
declare const conversations_importConversations: typeof importConversations;
|
|
3427
3635
|
declare const conversations_listConversations: typeof listConversations;
|
|
3428
3636
|
declare const conversations_postConversationMessage: typeof postConversationMessage;
|
|
3429
3637
|
declare const conversations_searchConversations: typeof searchConversations;
|
|
3430
3638
|
declare const conversations_updateConversationAssistantMode: typeof updateConversationAssistantMode;
|
|
3431
3639
|
declare namespace conversations {
|
|
3432
|
-
export { type conversations_AssistantMode as AssistantMode, type conversations_ConversationImportResponse as ConversationImportResponse, type conversations_ConversationSearchRequest as ConversationSearchRequest, type conversations_ConversationSearchResponse as ConversationSearchResponse, type conversations_MessageMention as MessageMention, type conversations_PostMessageRequest as PostMessageRequest, conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads,
|
|
3640
|
+
export { type conversations_AssistantMode as AssistantMode, type conversations_ConversationImportResponse as ConversationImportResponse, type conversations_ConversationSearchRequest as ConversationSearchRequest, type conversations_ConversationSearchResponse as ConversationSearchResponse, type conversations_MessageMention as MessageMention, type conversations_PostMessageRequest as PostMessageRequest, conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads, conversations_getMessage as getMessage, conversations_importConversations as importConversations, conversations_listConversations as listConversations, conversations_postConversationMessage as postConversationMessage, conversations_searchConversations as searchConversations, conversations_updateConversationAssistantMode as updateConversationAssistantMode };
|
|
3433
3641
|
}
|
|
3434
3642
|
|
|
3435
3643
|
/**
|
|
@@ -7795,16 +8003,16 @@ declare function isQuotaError(err: unknown): boolean;
|
|
|
7795
8003
|
* holder not yet in the room). Question `body` / `answer` are client ciphertext under the call key.
|
|
7796
8004
|
*/
|
|
7797
8005
|
|
|
7798
|
-
type Schemas$
|
|
7799
|
-
type WebinarState = Schemas$
|
|
7800
|
-
type WebinarUpdate = Schemas$
|
|
8006
|
+
type Schemas$1 = components['schemas'];
|
|
8007
|
+
type WebinarState = Schemas$1['WebinarState'];
|
|
8008
|
+
type WebinarUpdate = Schemas$1['WebinarUpdate'];
|
|
7801
8009
|
type WebinarRole = WebinarState['my_role'];
|
|
7802
8010
|
type WebinarChat = WebinarState['chat'];
|
|
7803
|
-
type CallQuestion = Schemas$
|
|
8011
|
+
type CallQuestion = Schemas$1['CallQuestionResponse'];
|
|
7804
8012
|
type CallQuestionStatus = CallQuestion['status'];
|
|
7805
|
-
type CallQuestionUpdate = Schemas$
|
|
8013
|
+
type CallQuestionUpdate = Schemas$1['CallQuestionUpdate'];
|
|
7806
8014
|
/** WS `call.webinar`. */
|
|
7807
|
-
type CallWebinarMessage = Schemas$
|
|
8015
|
+
type CallWebinarMessage = Schemas$1['CallWebinarMessage'];
|
|
7808
8016
|
/** Who runs a webinar (go live, promote, settings). */
|
|
7809
8017
|
declare const WEBINAR_MODERATORS: ReadonlySet<WebinarRole>;
|
|
7810
8018
|
/** Who is on the webinar's team (answers questions). */
|
|
@@ -7848,45 +8056,45 @@ declare function deleteQuestion(arbi: ArbiClient, callExtId: string, questionExt
|
|
|
7848
8056
|
* `knock_required`, `host_only`, `storage_quota_exceeded`, …) and a sentence for the person.
|
|
7849
8057
|
*/
|
|
7850
8058
|
|
|
7851
|
-
type Schemas
|
|
8059
|
+
type Schemas = components['schemas'];
|
|
7852
8060
|
/** Make the fields the server defaults optional (the generator marks defaulted fields required). */
|
|
7853
8061
|
type WithDefaults<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
7854
|
-
type CallsConfig = Schemas
|
|
7855
|
-
type CallCreate = Schemas
|
|
7856
|
-
type CallUpdate = WithDefaults<Schemas
|
|
7857
|
-
type CallResponse = Schemas
|
|
7858
|
-
type CallTokenResponse = Schemas
|
|
7859
|
-
type CallKnockResponse = Schemas
|
|
8062
|
+
type CallsConfig = Schemas['CallsConfigResponse'];
|
|
8063
|
+
type CallCreate = Schemas['CallCreate'];
|
|
8064
|
+
type CallUpdate = WithDefaults<Schemas['CallUpdate'], 'reset_link'>;
|
|
8065
|
+
type CallResponse = Schemas['CallResponse'];
|
|
8066
|
+
type CallTokenResponse = Schemas['CallTokenResponse'];
|
|
8067
|
+
type CallKnockResponse = Schemas['CallKnockResponse'];
|
|
7860
8068
|
type CallJoinPolicy = CallResponse['join_policy'];
|
|
7861
|
-
type CallChatCreate = Schemas
|
|
7862
|
-
type CallChatResponse = Schemas
|
|
8069
|
+
type CallChatCreate = Schemas['CallChatCreate'];
|
|
8070
|
+
type CallChatResponse = Schemas['CallChatResponse'];
|
|
7863
8071
|
/** `link` is the full call link (`…/call/<id>#k=…&v=…`); the server wraps it in a registration link. */
|
|
7864
|
-
type CallInviteLinkCreate = Schemas
|
|
7865
|
-
type CallInviteLinkResponse = Schemas
|
|
7866
|
-
type CallRingingMessage = Schemas
|
|
7867
|
-
type CallDeclinedMessage = Schemas
|
|
7868
|
-
type CallStartedMessage = Schemas
|
|
7869
|
-
type CallEndedMessage = Schemas
|
|
7870
|
-
type CallKnockMessage = Schemas
|
|
7871
|
-
type CallKnockResolvedMessage = Schemas
|
|
8072
|
+
type CallInviteLinkCreate = Schemas['CallInviteLinkCreate'];
|
|
8073
|
+
type CallInviteLinkResponse = Schemas['CallInviteLinkResponse'];
|
|
8074
|
+
type CallRingingMessage = Schemas['CallRingingMessage'];
|
|
8075
|
+
type CallDeclinedMessage = Schemas['CallDeclinedMessage'];
|
|
8076
|
+
type CallStartedMessage = Schemas['CallStartedMessage'];
|
|
8077
|
+
type CallEndedMessage = Schemas['CallEndedMessage'];
|
|
8078
|
+
type CallKnockMessage = Schemas['CallKnockMessage'];
|
|
8079
|
+
type CallKnockResolvedMessage = Schemas['CallKnockResolvedMessage'];
|
|
7872
8080
|
/** WS `call.transcription`. */
|
|
7873
|
-
type CallTranscriptionMessage = Schemas
|
|
8081
|
+
type CallTranscriptionMessage = Schemas['CallTranscriptionMessage'];
|
|
7874
8082
|
/** `POST /v1/calls/{id}/transcribe` answer. */
|
|
7875
|
-
type CallTranscribeResponse = Schemas
|
|
8083
|
+
type CallTranscribeResponse = Schemas['CallTranscribeResponse'];
|
|
7876
8084
|
/** `transcript` on `POST /v1/conversation/message` (stored as a `transcript_segment` tool). */
|
|
7877
|
-
type TranscriptSegmentRef = Schemas
|
|
7878
|
-
type RecordingMode = Schemas
|
|
7879
|
-
type RecordingTrackKind = Schemas
|
|
8085
|
+
type TranscriptSegmentRef = Schemas['TranscriptSegmentRef'];
|
|
8086
|
+
type RecordingMode = Schemas['CallRecordingStart']['mode'];
|
|
8087
|
+
type RecordingTrackKind = Schemas['CallRecordingTrackCreate']['kind'];
|
|
7880
8088
|
/** The call's recording state (`CallResponse.recording`, WS `call.recording`, `arbi.recording`). */
|
|
7881
|
-
type CallRecordingState = Schemas
|
|
7882
|
-
type RecordingQuota = Schemas
|
|
7883
|
-
type RecordingPart = Schemas
|
|
7884
|
-
type RecordingTrack = Schemas
|
|
7885
|
-
type CallRecording = Schemas
|
|
7886
|
-
type CreateTrackBody = Schemas
|
|
7887
|
-
type PartBody = Schemas
|
|
7888
|
-
type PartUpload = Schemas
|
|
7889
|
-
type RecordingTranscribeResponse = Schemas
|
|
8089
|
+
type CallRecordingState = Schemas['CallRecordingState'];
|
|
8090
|
+
type RecordingQuota = Schemas['CallRecordingQuota'];
|
|
8091
|
+
type RecordingPart = Schemas['CallRecordingPartResponse'];
|
|
8092
|
+
type RecordingTrack = Schemas['CallRecordingTrackResponse'];
|
|
8093
|
+
type CallRecording = Schemas['CallRecordingResponse'];
|
|
8094
|
+
type CreateTrackBody = Schemas['CallRecordingTrackCreate'];
|
|
8095
|
+
type PartBody = Schemas['CallRecordingPartCreate'];
|
|
8096
|
+
type PartUpload = Schemas['CallRecordingPartUpload'];
|
|
8097
|
+
type RecordingTranscribeResponse = Schemas['CallRecordingTranscribeResponse'];
|
|
7890
8098
|
/** The role an invitee is given in a webinar (the host is whoever made it). */
|
|
7891
8099
|
type InviteeRole = NonNullable<NonNullable<CallCreate['invitees']>[number]['role']>;
|
|
7892
8100
|
declare function getCallsConfig(arbi: ArbiClient): Promise<CallsConfig>;
|
|
@@ -7968,7 +8176,7 @@ declare function postChatTranscriptLine(arbi: ArbiClient, chatExtId: string, bod
|
|
|
7968
8176
|
content: string;
|
|
7969
8177
|
key_version: number;
|
|
7970
8178
|
dedupe_key: string;
|
|
7971
|
-
}): Promise<Schemas
|
|
8179
|
+
}): Promise<Schemas['ChatMessageResponse']>;
|
|
7972
8180
|
/** Coerce a recording state (the call row, a WS event, the server's data message). */
|
|
7973
8181
|
declare function recordingStateFrom(value: unknown): CallRecordingState | null;
|
|
7974
8182
|
/** The recording state on a call row (`CallResponse.recording`, null = off). */
|
|
@@ -8345,6 +8553,8 @@ declare class Arbi {
|
|
|
8345
8553
|
* `undefined` only when no workspace is known here (the server's open one then applies, as before).
|
|
8346
8554
|
*/
|
|
8347
8555
|
private targetWorkspace;
|
|
8556
|
+
/** {@link targetWorkspace} for a call that cannot go without one: throws when none is known. */
|
|
8557
|
+
private requireTargetWorkspace;
|
|
8348
8558
|
/**
|
|
8349
8559
|
* Make a workspace the CURRENT one: decrypt its key, open it on the server (which makes it the
|
|
8350
8560
|
* session's active workspace) and record it in the session. This is navigation: only the host's
|
|
@@ -10901,7 +11111,9 @@ declare class Arbi {
|
|
|
10901
11111
|
title?: string | null | undefined;
|
|
10902
11112
|
} | null | undefined;
|
|
10903
11113
|
}[]>;
|
|
11114
|
+
/** Make documents from web addresses in the current workspace, or `options.workspaceId`. */
|
|
10904
11115
|
uploadUrl: (urls: string[], options?: {
|
|
11116
|
+
workspaceId?: string;
|
|
10905
11117
|
shared?: boolean;
|
|
10906
11118
|
configExtId?: string | null;
|
|
10907
11119
|
}) => Promise<{
|
|
@@ -10914,8 +11126,9 @@ declare class Arbi {
|
|
|
10914
11126
|
}[] | undefined;
|
|
10915
11127
|
}>;
|
|
10916
11128
|
/**
|
|
10917
|
-
* Upload files in one request
|
|
10918
|
-
* sharing, config, a new version of a document.
|
|
11129
|
+
* Upload files in one request into the current workspace, or `options.workspaceExtId`: folder,
|
|
11130
|
+
* tag, sharing, config, a new version of a document. The request names the workspace either
|
|
11131
|
+
* way, so a switch while it is in flight cannot move it.
|
|
10919
11132
|
*/
|
|
10920
11133
|
upload: (files: Array<Blob | File>, options?: UploadDocumentsOptions) => Promise<UploadResult>;
|
|
10921
11134
|
/** Near-duplicate pairs at or above `threshold` (or one document's, `docId`). */
|
|
@@ -10945,14 +11158,11 @@ declare class Arbi {
|
|
|
10945
11158
|
uploadFile: (fileData: Blob, fileName: string, options?: UploadOptions) => Promise<UploadResult>;
|
|
10946
11159
|
/**
|
|
10947
11160
|
* Upload files straight to storage, encrypted here with `workspaceKey` (`uploadDocumentsDirect`),
|
|
10948
|
-
* into `workspaceId`,
|
|
10949
|
-
*
|
|
10950
|
-
*
|
|
10951
|
-
* it is sent and still when it returns. A switch refuses the upload
|
|
10952
|
-
* (`ArbiWorkspaceChangedError`) instead of storing files encrypted with one workspace's key in
|
|
10953
|
-
* another. For any other workspace use `upload` with `workspaceExtId`, which names it.
|
|
11161
|
+
* into `workspaceId`, whose key it must be. `upload-init` and `upload-commit` name that
|
|
11162
|
+
* workspace (made usable for this session first, not switched to), so a switch while the
|
|
11163
|
+
* upload runs cannot move the files into another workspace.
|
|
10954
11164
|
*/
|
|
10955
|
-
uploadDirect: (workspaceId: string, workspaceKey: Uint8Array, files: DirectUploadFile[], options?: Omit<UploadDirectOptions, "
|
|
11165
|
+
uploadDirect: (workspaceId: string, workspaceKey: Uint8Array, files: DirectUploadFile[], options?: Omit<UploadDirectOptions, "workspaceExtId">) => Promise<UploadDirectResult>;
|
|
10956
11166
|
/** Download a document's original file — its current version, or `version`. */
|
|
10957
11167
|
download: (docId: string, version?: number) => Promise<Response>;
|
|
10958
11168
|
getParsedContent: (docId: string, stage: string, version?: number) => Promise<Record<string, unknown>>;
|
|
@@ -12218,6 +12428,27 @@ declare class Arbi {
|
|
|
12218
12428
|
/** Unlock the signed-in user's native inbox for this server session (see `unlockNativeMail`). */
|
|
12219
12429
|
unlockNative: () => Promise<void>;
|
|
12220
12430
|
};
|
|
12431
|
+
/**
|
|
12432
|
+
* Mail to anyone, sealed in this browser under a key that travels only in the link's fragment
|
|
12433
|
+
* (see `operations/secure-mail`). Both sides use the signed-in user's encryption key: the
|
|
12434
|
+
* login's, or (a new tab not signed in to the server yet) the one kept on this device.
|
|
12435
|
+
*/
|
|
12436
|
+
readonly secureMail: {
|
|
12437
|
+
/**
|
|
12438
|
+
* The `/secure/send` payload for `compose` from `account`, shown with the user's own name.
|
|
12439
|
+
* Links open on `frontendOrigin` (default: this page's origin).
|
|
12440
|
+
*/
|
|
12441
|
+
prepare: (compose: SecureMailCompose, account: SecureMailSender, requestId: string, frontendOrigin?: string) => Promise<SecureMailSend>;
|
|
12442
|
+
/**
|
|
12443
|
+
* Claim the secure message `id` with the key from its link into the user's native inbox, over
|
|
12444
|
+
* `mail` (default: this session's mail transport). Resolves to the message's id there.
|
|
12445
|
+
*/
|
|
12446
|
+
claim: (id: string, fragmentKey: string, mail?: MailFetch) => Promise<{
|
|
12447
|
+
id: string;
|
|
12448
|
+
}>;
|
|
12449
|
+
};
|
|
12450
|
+
/** The signed-in user's X25519 public key (from the identity key; its secret half is wiped). */
|
|
12451
|
+
private encryptionPublicKey;
|
|
12221
12452
|
private openResponseHandle;
|
|
12222
12453
|
/** Canonical Responses-shaped requests; existing assistant convenience helpers remain supported. */
|
|
12223
12454
|
readonly responses: {
|
|
@@ -16643,138 +16874,6 @@ declare namespace health {
|
|
|
16643
16874
|
export { health_getHealth as getHealth, health_getHealthModels as getHealthModels, health_getMcpTools as getMcpTools, health_getRemoteModels as getRemoteModels };
|
|
16644
16875
|
}
|
|
16645
16876
|
|
|
16646
|
-
/**
|
|
16647
|
-
* Mail operations over `/v1/mail`: the native ARBI inbox and any connected account.
|
|
16648
|
-
*
|
|
16649
|
-
* Every operation takes a {@link MailFetch}, so the same code runs in the browser (which already owns
|
|
16650
|
-
* token refresh) and in Node (`createMailFetch`). Types come from the generated schema.
|
|
16651
|
-
*
|
|
16652
|
-
* Native mail is sealed to the user. Reading it needs the keys unlocked in the current server session
|
|
16653
|
-
* first (`unlockNativeMail`); composing a draft does not, which is why an agent can draft for its
|
|
16654
|
-
* owner without ever holding the owner's keys.
|
|
16655
|
-
*/
|
|
16656
|
-
|
|
16657
|
-
type Schemas = components['schemas'];
|
|
16658
|
-
type MailPolicy = Schemas['MailPolicyRead'];
|
|
16659
|
-
type MailAccount = Schemas['MailAccountRead'];
|
|
16660
|
-
type MailFolder = Required<Schemas['MailFolder']>;
|
|
16661
|
-
type MailAddress = Schemas['MailAddress'];
|
|
16662
|
-
type MailAddressInput = Pick<MailAddress, 'email'> & Partial<MailAddress>;
|
|
16663
|
-
type MailAttachment = Schemas['MailAttachment'];
|
|
16664
|
-
type MailMessage = Required<Schemas['MailMessage']>;
|
|
16665
|
-
type MailMessagePage = Omit<Required<Schemas['MailMessagePage']>, 'messages'> & {
|
|
16666
|
-
messages: MailMessage[];
|
|
16667
|
-
};
|
|
16668
|
-
type MailMessageUpdate = Schemas['MailMessageUpdate'];
|
|
16669
|
-
type MailCompose = Omit<Schemas['MailCompose'], 'to' | 'cc' | 'bcc'> & {
|
|
16670
|
-
to?: MailAddressInput[];
|
|
16671
|
-
cc?: MailAddressInput[];
|
|
16672
|
-
bcc?: MailAddressInput[];
|
|
16673
|
-
};
|
|
16674
|
-
type MailSend = MailCompose & {
|
|
16675
|
-
request_id: string;
|
|
16676
|
-
};
|
|
16677
|
-
type MailDraftSaved = Schemas['MailDraftSaved'];
|
|
16678
|
-
type MailSendResult = Schemas['MailSendResult'];
|
|
16679
|
-
/** The id of the user's own ARBI mailbox. For an agent it resolves to its owner's. */
|
|
16680
|
-
declare const NATIVE_ACCOUNT = "native";
|
|
16681
|
-
/** Fetch a path under `/v1/mail` with authentication; rejects on a non-2xx response. */
|
|
16682
|
-
type MailFetch = (path: string, init?: RequestInit) => Promise<Response>;
|
|
16683
|
-
/** A {@link MailFetch} for Node and scripts: bearer token, server errors surfaced as `ArbiApiError`. */
|
|
16684
|
-
declare function createMailFetch(auth: AuthHeaders): MailFetch;
|
|
16685
|
-
/** What this deployment allows: native mail, OAuth providers and approved mail servers. */
|
|
16686
|
-
declare function getMailPolicy(mail: MailFetch): Promise<MailPolicy>;
|
|
16687
|
-
declare function listMailAccounts(mail: MailFetch): Promise<MailAccount[]>;
|
|
16688
|
-
/** Claim `alias@<deployment domain>` as the user's native address. One per user. */
|
|
16689
|
-
declare function claimNativeAlias(mail: MailFetch, alias: string): Promise<string>;
|
|
16690
|
-
declare function listFolders(mail: MailFetch, accountId?: string): Promise<MailFolder[]>;
|
|
16691
|
-
interface ListMessagesOptions {
|
|
16692
|
-
accountId?: string;
|
|
16693
|
-
/** A folder `id` from {@link listFolders} (native: inbox, sent, drafts, archive, trash). */
|
|
16694
|
-
folderId: string;
|
|
16695
|
-
/** Free-text filter over subject, sender and recipients. */
|
|
16696
|
-
query?: string;
|
|
16697
|
-
/** The `next_cursor` of the previous page. */
|
|
16698
|
-
cursor?: string | null;
|
|
16699
|
-
limit?: number;
|
|
16700
|
-
}
|
|
16701
|
-
declare function listMessages(mail: MailFetch, options: ListMessagesOptions): Promise<MailMessagePage>;
|
|
16702
|
-
declare function getMessage(mail: MailFetch, messageId: string, accountId?: string): Promise<MailMessage>;
|
|
16703
|
-
/** The bytes of one attachment of a message. */
|
|
16704
|
-
declare function downloadAttachment(mail: MailFetch, messageId: string, attachmentId: string, accountId?: string): Promise<Uint8Array>;
|
|
16705
|
-
/** Mark read or unread, move to a folder, or send to Trash. */
|
|
16706
|
-
declare function updateMessage(mail: MailFetch, messageId: string, update: MailMessageUpdate, accountId?: string): Promise<void>;
|
|
16707
|
-
/**
|
|
16708
|
-
* Save a draft. In the native mailbox it lands in Drafts; an agent's draft lands in its owner's
|
|
16709
|
-
* Drafts, from the owner's address, labelled with the agent's name (`drafted_by`).
|
|
16710
|
-
*/
|
|
16711
|
-
declare function saveDraft(mail: MailFetch, compose: MailCompose, accountId?: string): Promise<MailDraftSaved>;
|
|
16712
|
-
/**
|
|
16713
|
-
* Send a message. `request_id` makes the send idempotent: retrying the same request never sends
|
|
16714
|
-
* twice, and reusing it for a different message is refused.
|
|
16715
|
-
*/
|
|
16716
|
-
declare function sendMessage(mail: MailFetch, message: Omit<MailSend, 'request_id'> & {
|
|
16717
|
-
request_id?: string;
|
|
16718
|
-
}, accountId?: string): Promise<MailSendResult>;
|
|
16719
|
-
interface NativeMailKeys {
|
|
16720
|
-
/** The user's Ed25519 secret key (64 bytes), from the login result. */
|
|
16721
|
-
signingPrivateKey: Uint8Array;
|
|
16722
|
-
/** The server session's public key, from the login result. */
|
|
16723
|
-
serverSessionKey: Uint8Array;
|
|
16724
|
-
}
|
|
16725
|
-
/**
|
|
16726
|
-
* Unlock the native inbox for this session: unwrap every message key with the user's private key and
|
|
16727
|
-
* re-seal it to the server session, which can then read mail on the user's behalf until it expires.
|
|
16728
|
-
* Call it again to unlock mail that arrived since.
|
|
16729
|
-
*/
|
|
16730
|
-
declare function unlockNativeMail(mail: MailFetch, keys: NativeMailKeys): Promise<void>;
|
|
16731
|
-
/**
|
|
16732
|
-
* Claim a secure message from its link (`/secure-mail/<id>#key=<fragmentKey>`) into the user's
|
|
16733
|
-
* native inbox. Both encrypted parts are authenticated under the link key before anything is
|
|
16734
|
-
* claimed; the claim then proves possession of the key and re-seals it to `recipientPublicKey`
|
|
16735
|
-
* (the user's X25519 public key).
|
|
16736
|
-
*/
|
|
16737
|
-
declare function claimSecureMail(mail: MailFetch, id: string, fragmentKey: string, recipientPublicKey: Uint8Array): Promise<{
|
|
16738
|
-
id: string;
|
|
16739
|
-
}>;
|
|
16740
|
-
/** Build an attachment from bytes. */
|
|
16741
|
-
declare function attachmentFromBytes(name: string, contentType: string, bytes: Uint8Array): MailAttachment;
|
|
16742
|
-
|
|
16743
|
-
type mail_ListMessagesOptions = ListMessagesOptions;
|
|
16744
|
-
type mail_MailAccount = MailAccount;
|
|
16745
|
-
type mail_MailAddress = MailAddress;
|
|
16746
|
-
type mail_MailAddressInput = MailAddressInput;
|
|
16747
|
-
type mail_MailAttachment = MailAttachment;
|
|
16748
|
-
type mail_MailCompose = MailCompose;
|
|
16749
|
-
type mail_MailDraftSaved = MailDraftSaved;
|
|
16750
|
-
type mail_MailFetch = MailFetch;
|
|
16751
|
-
type mail_MailFolder = MailFolder;
|
|
16752
|
-
type mail_MailMessage = MailMessage;
|
|
16753
|
-
type mail_MailMessagePage = MailMessagePage;
|
|
16754
|
-
type mail_MailMessageUpdate = MailMessageUpdate;
|
|
16755
|
-
type mail_MailPolicy = MailPolicy;
|
|
16756
|
-
type mail_MailSend = MailSend;
|
|
16757
|
-
type mail_MailSendResult = MailSendResult;
|
|
16758
|
-
declare const mail_NATIVE_ACCOUNT: typeof NATIVE_ACCOUNT;
|
|
16759
|
-
type mail_NativeMailKeys = NativeMailKeys;
|
|
16760
|
-
declare const mail_attachmentFromBytes: typeof attachmentFromBytes;
|
|
16761
|
-
declare const mail_claimNativeAlias: typeof claimNativeAlias;
|
|
16762
|
-
declare const mail_claimSecureMail: typeof claimSecureMail;
|
|
16763
|
-
declare const mail_createMailFetch: typeof createMailFetch;
|
|
16764
|
-
declare const mail_downloadAttachment: typeof downloadAttachment;
|
|
16765
|
-
declare const mail_getMailPolicy: typeof getMailPolicy;
|
|
16766
|
-
declare const mail_getMessage: typeof getMessage;
|
|
16767
|
-
declare const mail_listFolders: typeof listFolders;
|
|
16768
|
-
declare const mail_listMailAccounts: typeof listMailAccounts;
|
|
16769
|
-
declare const mail_listMessages: typeof listMessages;
|
|
16770
|
-
declare const mail_saveDraft: typeof saveDraft;
|
|
16771
|
-
declare const mail_sendMessage: typeof sendMessage;
|
|
16772
|
-
declare const mail_unlockNativeMail: typeof unlockNativeMail;
|
|
16773
|
-
declare const mail_updateMessage: typeof updateMessage;
|
|
16774
|
-
declare namespace mail {
|
|
16775
|
-
export { type mail_ListMessagesOptions as ListMessagesOptions, type mail_MailAccount as MailAccount, type mail_MailAddress as MailAddress, type mail_MailAddressInput as MailAddressInput, type mail_MailAttachment as MailAttachment, type mail_MailCompose as MailCompose, type mail_MailDraftSaved as MailDraftSaved, type mail_MailFetch as MailFetch, type mail_MailFolder as MailFolder, type mail_MailMessage as MailMessage, type mail_MailMessagePage as MailMessagePage, type mail_MailMessageUpdate as MailMessageUpdate, type mail_MailPolicy as MailPolicy, type mail_MailSend as MailSend, type mail_MailSendResult as MailSendResult, mail_NATIVE_ACCOUNT as NATIVE_ACCOUNT, type mail_NativeMailKeys as NativeMailKeys, mail_attachmentFromBytes as attachmentFromBytes, mail_claimNativeAlias as claimNativeAlias, mail_claimSecureMail as claimSecureMail, mail_createMailFetch as createMailFetch, mail_downloadAttachment as downloadAttachment, mail_getMailPolicy as getMailPolicy, mail_getMessage as getMessage, mail_listFolders as listFolders, mail_listMailAccounts as listMailAccounts, mail_listMessages as listMessages, mail_saveDraft as saveDraft, mail_sendMessage as sendMessage, mail_unlockNativeMail as unlockNativeMail, mail_updateMessage as updateMessage };
|
|
16776
|
-
}
|
|
16777
|
-
|
|
16778
16877
|
/**
|
|
16779
16878
|
* The optional hints every transcription route takes (`/v1/assistant/transcribe`, a call's live
|
|
16780
16879
|
* `/transcribe`, a recording's `/transcribe`): `language` (ISO-639-1) and `prompt` (≤ 500 chars, a
|
|
@@ -17532,4 +17631,4 @@ declare function documentTools(options: {
|
|
|
17532
17631
|
/** Add replaces matching tool names; replace discards all previous tools. No mutation of inputs. */
|
|
17533
17632
|
declare function composeTools(base: ResponseTools, next: ResponseTools, mode: 'add' | 'replace'): ResponseTools;
|
|
17534
17633
|
|
|
17535
|
-
export { type CitationSummary as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalDavProfile as D, type CalendarAccount as E, type CalendarAccountKind as F, type CalendarCreateBody as G, type CalendarEvent as H, type CalendarKeys as I, type CalendarRead as J, type CalendarSettings as K, type CalendarSettingsBody as L, type CalendarUpdate as M, type CalendarWindow as N, CallApiError as O, type Capabilities as P, type ChatAttachmentFile as Q, type ChatAttachmentInput as R, type ChatCryptoContext as S, type ChatKeyRing as T, type ChatKind as U, type ChatMemberKey as V, type ChatMemberResponse as W, type ChatMessage as X, type ChatMessageResponse as Y, type ChatResponse as Z, type ChatSession as _, type AccountSyncResult as a, type FullContextSelection as a$, type CitationToolSources as a0, type CliConfig as a1, type CliCredentials as a2, type CommandDescriptor as a3, type ConfigStore as a4, type Configuration as a5, type ConfigurationPatch as a6, type ConnectOptions as a7, type ConnectionModel as a8, type ConnectorCatalogEntry as a9, type DecryptedChatMessage as aA, type DeploymentHouseTemplate as aB, type DirectModelUsage as aC, type DocInfo as aD, type DocInfoMap as aE, type DocNameMap as aF, type DocumentAutomationAction as aG, type DocumentListFields as aH, type DocumentListOrder as aI, type DocumentSelector as aJ, type DocumentWaiter as aK, type DocumentWaiterOptions as aL, type DriveSyncProgress as aM, type DriveSyncSummary as aN, DuplicateContactError as aO, ENTITY_KINDS as aP, type EditScope as aQ, type EntityKind as aR, type EventCreateBody as aS, type EventPatchBody as aT, FLAT_TAG_KINDS as aU, type FactResponse as aV, type FactSearchRequest as aW, type FactSearchResponse as aX, type FindTimeParams as aY, type FormattedWsMessage as aZ, type FreeBusyEntry as a_, type ConnectorFolder as aa, type ConnectorSyncProgress as ab, type ConnectorSyncStatus as ac, type ConnectorVendorKey as ad, type ConnectorVisibilitySettings as ae, type ContextUsage as af, type ConversationResponse as ag, type ConversationUsageResponse as ah, type CreateFactRequest as ai, type CreateFactsRequest as aj, type CreateWorkRequest as ak, type CreateWorkflowRequest as al, DEFAULT_AI_USD_PER_GBP as am, DOC_TERMINAL_STATUSES as an, DRIVE_SYNC_VENDORS as ao, type Database as ap, type DatabaseAggregateRequest as aq, type DatabaseAggregateResult as ar, type DatabaseColumn as as, type DatabaseColumnWrite as at, type DatabaseImportResult as au, type DatabaseRow as av, type DatabaseRowPage as aw, type DatabaseRowsQuery as ax, type DateTimeSpec as ay, type DecryptedChat as az, type ActivityKind as b, type RespondPartstat as b$, GOOGLE_VENDORS as b0, type HolidayCountry as b1, type HouseTemplateCandidate as b2, IMANAGE_VENDORS as b3, type IdentityErrorCode as b4, type IdentityPurchase as b5, type IdentityState as b6, type IdentityStatus as b7, type ImportResult as b8, type InvitationRead as b9, type ProductResponse as bA, type ProjectAddonKind as bB, type ProjectAddonSettingsRequest as bC, type ProjectBudget as bD, type ProjectCheckoutRequest as bE, type ProjectConversationUsageResponse as bF, type ProjectCreateOptions as bG, type ProjectDetails as bH, type ProjectEventKind as bI, type ProjectEventResponse as bJ, type ProjectInvoicesResponse as bK, type ProjectNextPeriodAddonsRequest as bL, type ProjectPlanChangeRequest as bM, type ProjectQuoteRequest as bN, type ProjectResponse as bO, type ProjectUpdateRequest as bP, type ProjectUsageResponse as bQ, PublicBookingError as bR, type PublicBookingPage as bS, type QuotaExceeded as bT, type RaisedSignal as bU, type RawResponseEvent as bV, type ReconnectOptions as bW, type ReconnectableWsConnection as bX, type ResolvedCitation as bY, type ResolvedRecipient as bZ, type RespondParams as b_, type JsonSchemaOutputFormat as ba, type LinkedRun as bb, type ListAllOptions as bc, type ListEventsParams as bd, type ListFactsOptions as be, type ListPaginatedOptions as bf, MAILBOX_SYNC_VENDORS as bg, MAX_RETRIEVE_DOC_IDS as bh, MICROSOFT_VENDORS as bi, type MailAttachment as bj, type MessageLevel as bk, type ModelConnection as bl, type OAuthAccountKind as bm, type OutputItemDone as bn, type OverlayItem as bo, type OverlayLayerName as bp, PRESENCE_KINDS as bq, PROMPT_CONTEXT_CHARS as br, type ParsedResponse as bs, type ParsedSlashCommand as bt, type ParsedStructuredResponse as bu, type PendingAuthResponse as bv, type PersonKey as bw, type PersonalConnectionInput as bx, PlanStepsError as by, type PlanWorkRequest as bz, type ActivityResponse as c, type TagResponse as c$, type Response$1 as c0, type ResponseCreateRequest as c1, type ResponseCreateResult as c2, type ResponseHandle as c3, type ResponseSnapshot as c4, type ResponseStart as c5, type ResponseStartOptions as c6, ResponseStream as c7, type ResponseStreamEvent as c8, type ResponseTools as c9, type StepAssignee as cA, type StepDisplay as cB, type StepField as cC, type StepFieldOption as cD, type StepFieldOptionTone as cE, type StepKind as cF, type StepPhase as cG, type StepSignal as cH, type StepSignalWhen as cI, type StepState as cJ, type StepStatus as cK, type SubagentBranchRecord as cL, type SubagentLaneInfo as cM, type SubmitBackgroundQueryOptions as cN, type SubscribeParams as cO, type SyncTriggerResult as cP, TAG_KINDS as cQ, TAG_NESTING_MAX_DEPTH as cR, type TagChange as cS, type TagFieldDefinition as cT, type TagGroup as cU, type TagKind as cV, type TagKindField as cW, type TagKindSchema as cX, type TagLinks as cY, type TagListQuery as cZ, type TagNode as c_, type RoomCreateBody as ca, type RoomQuery as cb, type RoomRead as cc, type RunProgress as cd, type RunStats as ce, type RunStep as cf, type RunWaitingOn as cg, SHAREPOINT_VENDORS as ch, type SSEEvent as ci, type SSEStreamCallbacks as cj, type SSEStreamOutcome as ck, type SSEStreamResult as cl, STEP_FIELD_OPTION_TONES as cm, STOP_ID_WAIT_MS as cn, STOP_REPEAT_WINDOW_MS as co, SUPPORTED_EXTENSIONS as cp, type ScopedTarget as cq, type SearchChunk as cr, type SendBack as cs, type ShareRead as ct, type ShareRole as cu, type SkillSummary as cv, type SkippedFile as cw, type SlackConnectionStatus as cx, type StepActionRequest as cy, type StepActivityEvent as cz, Arbi as d, connectors as d$, type TagScope as d0, type TagTreeRow as d1, type TaskPlan as d2, type TaskPlanStep as d3, type TaxQuoteResponse as d4, type Thread as d5, type ThreadsResponse as d6, type TimeSuggestion as d7, type TurnRequest as d8, type UpdateConversationRequest as d9, account as dA, agentconfig as dB, agents as dC, appendTranscriptionHints as dD, assistant as dE, authenticatedFetch as dF, bookPublicSlot as dG, buildCitationChunkData as dH, buildDocNameMap as dI, buildDocumentTools as dJ, buildFactsContextTool as dK, buildRetrievalChunkTool as dL, buildRetrievalFullContextTool as dM, buildRetrievalTocTool as dN, buildTurnRequest as dO, calendar as dP, calls as dQ, canTagHaveParent as dR, cancelPublicBooking as dS, capabilities as dT, chats as dU, composeConfiguration as dV, composeTools as dW, computeRunStats as dX, connectErrorMessage as dY, connectWebSocket as dZ, connectWithReconnect as d_, type UpdateFactRequest as da, type UpdateWorkflowRequest as db, type UploadBatchResult as dc, type UploadDirectOptions as dd, type UploadDirectResult as de, type UploadDocumentsOptions as df, type UploadOptions as dg, type UploadProgressListener as dh, type UploadResult as di, type UsageBreakdown as dj, type UserConnectorEntry as dk, type UserDailyUsageResponse as dl, type UserInfo as dm, WebSocketAuthError as dn, type WeeklyHoursSpec as dp, type WorkStatus as dq, type WorkflowAuthMode as dr, type WorkflowResponse as ds, type WorkflowRunHistoryResponse as dt, type WorkflowRunResponse as du, type WorkspaceConflict as dv, type WorkspaceContext as dw, type WorkspaceOpenResponse as dx, type WorkspaceResponse as dy, type WsConnection as dz, ArbiApiError as e, isDriveSyncVendor as e$, contacts as e0, continuityPrompt as e1, conversations as e2, countCitations as e3, createAuthenticatedClient as e4, createDocumentWaiter as e5, createIndexAssigner as e6, databases as e7, defaultKindForFormat as e8, doctags as e9, generateNewWorkspaceKey as eA, getAgentStepLabel as eB, getAttachableRunId as eC, getChildTags as eD, getContextRemainingPercent as eE, getContextUsedPercent as eF, getContextUsedTokens as eG, getCurrentStep as eH, getEligibleParentTags as eI, getErrorCode as eJ, getErrorMessage as eK, getPublicBookingPage as eL, getRawWorkspaceKey as eM, getRunToAttach as eN, getRunToCancel as eO, getStepDisplay as eP, getStepTool as eQ, getSubagentBranchRecord as eR, getTagDescendantIds as eS, health as eT, houseTemplate as eU, hydrateAgentSteps as eV, identity as eW, identityErrorCode as eX, instructions as eY, isAnnotationTag as eZ, isConnectorVendorVisible as e_, documentTools as ea, documents as eb, estimateDraftTokens as ec, extractDocumentIdsFromMessages as ed, extractFactIdsFromMessages as ee, extractSubagentLanes as ef, facts as eg, files as eh, filterDocumentTags as ei, filterSkills as ej, findLeafForTaskMessage as ek, findMainSiblingLeaf as el, findReplyTarget as em, findSubagentRunId as en, flattenTagTree as eo, formatAgentStepLabel as ep, formatFileSize as eq, formatGbp as er, formatGbpPerMillionTokens as es, formatItemLabel as et, formatStreamSummary as eu, formatTokens as ev, formatUserName as ew, formatWorkspaceChoices as ex, formatWsMessage as ey, generateEncryptedWorkspaceKey as ez, ArbiError as f, isEntityTag as f0, isFlatKind as f1, isLabelTag as f2, isMailboxSyncVendor as f3, isNearAiUsageBudget as f4, isPresenceTag as f5, isSharePointVendor as f6, isSharedSkill as f7, isTraceItem as f8, mail as f9, searchChunks as fA, selectFullContextDocument as fB, selectWorkspace as fC, selectWorkspaceById as fD, sessions as fE, settings as fF, signatureRequests as fG, sliceToSubagentThread as fH, streamSSE as fI, stripCitationMarkdown as fJ, subagentJobLabel as fK, summarizeCitations as fL, tagUseCount as fM, tags as fN, tagsForScope as fO, tagsOfGroup as fP, topLevelAgentSteps as fQ, uploadSkill as fR, usdToGbp as fS, work as fT, workflowSteps as fU, workflows as fV, workspaceConflictOf as fW, workspaces as fX, wouldCreateTagCycle as fY, mcpTools as fa, mergeAgentSteps as fb, modelConnections as fc, notifications as fd, parseSSEEvents as fe, parseSlashCommand as ff, parseSlashTokenInProgress as fg, parseStructuredResponse as fh, performPasswordLogin as fi, performSigningKeyLogin as fj, performSsoDeviceFlowLogin as fk, pickMainThread as fl, profile as fm, progressFetch as fn, projects as fo, quotaExceededFrom as fp, quotaFromStreamError as fq, reduceOutputItem as fr, refusalReason as fs, requireData as ft, requireOk as fu, resolveAuth as fv, resolveCitations as fw, resolveSummary as fx, resolveWorkspace as fy, responses as fz, type ArbiErrorOptions as g, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiStructuredOutputError as k, ArbiTransportError as l, ArbiWorkspaceChangedError as m, ArbiWorkspaceSupersededError as n, ArbiWorkspaceUnavailableError as o, type AskHandlers as p, type AskRequest 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 BridgeTokensOptions as z };
|
|
17634
|
+
export { type CitationSummary as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalDavProfile as D, type CalendarAccount as E, type CalendarAccountKind as F, type CalendarCreateBody as G, type CalendarEvent as H, type CalendarKeys as I, type CalendarRead as J, type CalendarSettings as K, type CalendarSettingsBody as L, type CalendarUpdate as M, type CalendarWindow as N, CallApiError as O, type Capabilities as P, type ChatAttachmentFile as Q, type ChatAttachmentInput as R, type ChatCryptoContext as S, type ChatKeyRing as T, type ChatKind as U, type ChatMemberKey as V, type ChatMemberResponse as W, type ChatMessage as X, type ChatMessageResponse as Y, type ChatResponse as Z, type ChatSession as _, type AccountSyncResult as a, type FullContextSelection as a$, type CitationToolSources as a0, type CliConfig as a1, type CliCredentials as a2, type CommandDescriptor as a3, type ConfigStore as a4, type Configuration as a5, type ConfigurationPatch as a6, type ConnectOptions as a7, type ConnectionModel as a8, type ConnectorCatalogEntry as a9, type DecryptedChatMessage as aA, type DeploymentHouseTemplate as aB, type DirectModelUsage as aC, type DocInfo as aD, type DocInfoMap as aE, type DocNameMap as aF, type DocumentAutomationAction as aG, type DocumentListFields as aH, type DocumentListOrder as aI, type DocumentSelector as aJ, type DocumentWaiter as aK, type DocumentWaiterOptions as aL, type DriveSyncProgress as aM, type DriveSyncSummary as aN, DuplicateContactError as aO, ENTITY_KINDS as aP, type EditScope as aQ, type EntityKind as aR, type EventCreateBody as aS, type EventPatchBody as aT, FLAT_TAG_KINDS as aU, type FactResponse as aV, type FactSearchRequest as aW, type FactSearchResponse as aX, type FindTimeParams as aY, type FormattedWsMessage as aZ, type FreeBusyEntry as a_, type ConnectorFolder as aa, type ConnectorSyncProgress as ab, type ConnectorSyncStatus as ac, type ConnectorVendorKey as ad, type ConnectorVisibilitySettings as ae, type ContextUsage as af, type ConversationResponse as ag, type ConversationUsageResponse as ah, type CreateFactRequest as ai, type CreateFactsRequest as aj, type CreateWorkRequest as ak, type CreateWorkflowRequest as al, DEFAULT_AI_USD_PER_GBP as am, DOC_TERMINAL_STATUSES as an, DRIVE_SYNC_VENDORS as ao, type Database as ap, type DatabaseAggregateRequest as aq, type DatabaseAggregateResult as ar, type DatabaseColumn as as, type DatabaseColumnWrite as at, type DatabaseImportResult as au, type DatabaseRow as av, type DatabaseRowPage as aw, type DatabaseRowsQuery as ax, type DateTimeSpec as ay, type DecryptedChat as az, type ActivityKind as b, type RespondPartstat as b$, GOOGLE_VENDORS as b0, type HolidayCountry as b1, type HouseTemplateCandidate as b2, IMANAGE_VENDORS as b3, type IdentityErrorCode as b4, type IdentityPurchase as b5, type IdentityState as b6, type IdentityStatus as b7, type ImportResult as b8, type InvitationRead as b9, type ProductResponse as bA, type ProjectAddonKind as bB, type ProjectAddonSettingsRequest as bC, type ProjectBudget as bD, type ProjectCheckoutRequest as bE, type ProjectConversationUsageResponse as bF, type ProjectCreateOptions as bG, type ProjectDetails as bH, type ProjectEventKind as bI, type ProjectEventResponse as bJ, type ProjectInvoicesResponse as bK, type ProjectNextPeriodAddonsRequest as bL, type ProjectPlanChangeRequest as bM, type ProjectQuoteRequest as bN, type ProjectResponse as bO, type ProjectUpdateRequest as bP, type ProjectUsageResponse as bQ, PublicBookingError as bR, type PublicBookingPage as bS, type QuotaExceeded as bT, type RaisedSignal as bU, type RawResponseEvent as bV, type ReconnectOptions as bW, type ReconnectableWsConnection as bX, type ResolvedCitation as bY, type ResolvedRecipient as bZ, type RespondParams as b_, type JsonSchemaOutputFormat as ba, type LinkedRun as bb, type ListAllOptions as bc, type ListEventsParams as bd, type ListFactsOptions as be, type ListPaginatedOptions as bf, MAILBOX_SYNC_VENDORS as bg, MAX_RETRIEVE_DOC_IDS as bh, MICROSOFT_VENDORS as bi, type MailAttachment as bj, type MessageLevel as bk, type ModelConnection as bl, type OAuthAccountKind as bm, type OutputItemDone as bn, type OverlayItem as bo, type OverlayLayerName as bp, PRESENCE_KINDS as bq, PROMPT_CONTEXT_CHARS as br, type ParsedResponse as bs, type ParsedSlashCommand as bt, type ParsedStructuredResponse as bu, type PendingAuthResponse as bv, type PersonKey as bw, type PersonalConnectionInput as bx, PlanStepsError as by, type PlanWorkRequest as bz, type ActivityResponse as c, type TagLinks as c$, type Response$1 as c0, type ResponseCreateRequest as c1, type ResponseCreateResult as c2, type ResponseHandle as c3, type ResponseSnapshot as c4, type ResponseStart as c5, type ResponseStartOptions as c6, ResponseStream as c7, type ResponseStreamEvent as c8, type ResponseTools as c9, type SlackConnectionStatus as cA, type StepActionRequest as cB, type StepActivityEvent as cC, type StepAssignee as cD, type StepDisplay as cE, type StepField as cF, type StepFieldOption as cG, type StepFieldOptionTone as cH, type StepKind as cI, type StepPhase as cJ, type StepSignal as cK, type StepSignalWhen as cL, type StepState as cM, type StepStatus as cN, type SubagentBranchRecord as cO, type SubagentLaneInfo as cP, type SubmitBackgroundQueryOptions as cQ, type SubscribeParams as cR, type SyncTriggerResult as cS, TAG_KINDS as cT, TAG_NESTING_MAX_DEPTH as cU, type TagChange as cV, type TagFieldDefinition as cW, type TagGroup as cX, type TagKind as cY, type TagKindField as cZ, type TagKindSchema as c_, type RoomCreateBody as ca, type RoomQuery as cb, type RoomRead as cc, type RunProgress as cd, type RunStats as ce, type RunStep as cf, type RunWaitingOn as cg, SHAREPOINT_VENDORS as ch, type SSEEvent as ci, type SSEStreamCallbacks as cj, type SSEStreamOutcome as ck, type SSEStreamResult as cl, STEP_FIELD_OPTION_TONES as cm, STOP_ID_WAIT_MS as cn, STOP_REPEAT_WINDOW_MS as co, SUPPORTED_EXTENSIONS as cp, type ScopedTarget as cq, type SearchChunk as cr, type SecureMailCompose as cs, type SecureMailSend as ct, type SecureMailSender as cu, type SendBack as cv, type ShareRead as cw, type ShareRole as cx, type SkillSummary as cy, type SkippedFile as cz, Arbi as d, connectErrorMessage as d$, type TagListQuery as d0, type TagNode as d1, type TagResponse as d2, type TagScope as d3, type TagTreeRow as d4, type TaskPlan as d5, type TaskPlanStep as d6, type TaxQuoteResponse as d7, type Thread as d8, type ThreadsResponse as d9, type WorkspaceOpenResponse as dA, type WorkspaceResponse as dB, type WsConnection as dC, account as dD, agentconfig as dE, agents as dF, appendTranscriptionHints as dG, assistant as dH, authenticatedFetch as dI, bookPublicSlot as dJ, buildCitationChunkData as dK, buildDocNameMap as dL, buildDocumentTools as dM, buildFactsContextTool as dN, buildRetrievalChunkTool as dO, buildRetrievalFullContextTool as dP, buildRetrievalTocTool as dQ, buildTurnRequest as dR, calendar as dS, calls as dT, canTagHaveParent as dU, cancelPublicBooking as dV, capabilities as dW, chats as dX, composeConfiguration as dY, composeTools as dZ, computeRunStats as d_, type TimeSuggestion as da, type TurnRequest as db, type UpdateConversationRequest as dc, type UpdateFactRequest as dd, type UpdateWorkflowRequest as de, type UploadBatchResult as df, type UploadDirectOptions as dg, type UploadDirectResult as dh, type UploadDocumentsOptions as di, type UploadOptions as dj, type UploadProgressListener as dk, type UploadResult as dl, type UsageBreakdown as dm, type UserConnectorEntry as dn, type UserDailyUsageResponse as dp, type UserInfo as dq, WebSocketAuthError as dr, type WeeklyHoursSpec as ds, type WorkStatus as dt, type WorkflowAuthMode as du, type WorkflowResponse as dv, type WorkflowRunHistoryResponse as dw, type WorkflowRunResponse as dx, type WorkspaceConflict as dy, type WorkspaceContext as dz, ArbiApiError as e, instructions as e$, connectWebSocket as e0, connectWithReconnect as e1, connectors as e2, contacts as e3, continuityPrompt as e4, conversations as e5, countCitations as e6, createAuthenticatedClient as e7, createDocumentWaiter as e8, createIndexAssigner as e9, formatWorkspaceChoices as eA, formatWsMessage as eB, generateEncryptedWorkspaceKey as eC, generateNewWorkspaceKey as eD, getAgentStepLabel as eE, getAttachableRunId as eF, getChildTags as eG, getContextRemainingPercent as eH, getContextUsedPercent as eI, getContextUsedTokens as eJ, getCurrentStep as eK, getEligibleParentTags as eL, getErrorCode as eM, getErrorMessage as eN, getPublicBookingPage as eO, getRawWorkspaceKey as eP, getRunToAttach as eQ, getRunToCancel as eR, getStepDisplay as eS, getStepTool as eT, getSubagentBranchRecord as eU, getTagDescendantIds as eV, health as eW, houseTemplate as eX, hydrateAgentSteps as eY, identity as eZ, identityErrorCode as e_, databases as ea, defaultKindForFormat as eb, doctags as ec, documentTools as ed, documents as ee, estimateDraftTokens as ef, extractDocumentIdsFromMessages as eg, extractFactIdsFromMessages as eh, extractSubagentLanes as ei, facts as ej, files as ek, filterDocumentTags as el, filterSkills as em, findLeafForTaskMessage as en, findMainSiblingLeaf as eo, findReplyTarget as ep, findSubagentRunId as eq, flattenTagTree as er, formatAgentStepLabel as es, formatFileSize as et, formatGbp as eu, formatGbpPerMillionTokens as ev, formatItemLabel as ew, formatStreamSummary as ex, formatTokens as ey, formatUserName as ez, ArbiError as f, workspaces as f$, isAnnotationTag as f0, isConnectorVendorVisible as f1, isDriveSyncVendor as f2, isEntityTag as f3, isFlatKind as f4, isLabelTag as f5, isMailboxSyncVendor as f6, isNearAiUsageBudget as f7, isPresenceTag as f8, isSharePointVendor as f9, resolveSummary as fA, resolveWorkspace as fB, responses as fC, searchChunks as fD, secureMail as fE, selectFullContextDocument as fF, selectWorkspace as fG, selectWorkspaceById as fH, sessions as fI, settings as fJ, signatureRequests as fK, sliceToSubagentThread as fL, streamSSE as fM, stripCitationMarkdown as fN, subagentJobLabel as fO, summarizeCitations as fP, tagUseCount as fQ, tags as fR, tagsForScope as fS, tagsOfGroup as fT, topLevelAgentSteps as fU, uploadSkill as fV, usdToGbp as fW, work as fX, workflowSteps as fY, workflows as fZ, workspaceConflictOf as f_, isSharedSkill as fa, isTraceItem as fb, mail as fc, mcpTools as fd, mergeAgentSteps as fe, modelConnections as ff, notifications as fg, parseSSEEvents as fh, parseSlashCommand as fi, parseSlashTokenInProgress as fj, parseStructuredResponse as fk, performPasswordLogin as fl, performSigningKeyLogin as fm, performSsoDeviceFlowLogin as fn, pickMainThread as fo, profile as fp, progressFetch as fq, projects as fr, quotaExceededFrom as fs, quotaFromStreamError as ft, reduceOutputItem as fu, refusalReason as fv, requireData as fw, requireOk as fx, resolveAuth as fy, resolveCitations as fz, type ArbiErrorOptions as g, wouldCreateTagCycle as g0, type ArbiHostSession as h, type ArbiOptions as i, ArbiSessionExpiredError as j, ArbiStructuredOutputError as k, ArbiTransportError as l, ArbiWorkspaceChangedError as m, ArbiWorkspaceSupersededError as n, ArbiWorkspaceUnavailableError as o, type AskHandlers as p, type AskRequest 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 BridgeTokensOptions as z };
|