@arbidocs/sdk 0.5.101 → 0.5.103
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-cpW45ipJ.d.ts → browser-BzLWSu_d.d.ts} +111 -11
- package/dist/{browser-DxQ_g7eh.d.cts → browser-CchVT5yc.d.cts} +111 -11
- package/dist/browser.cjs +1890 -1790
- 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 +1890 -1790
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +1908 -1808
- 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 +1908 -1808
- package/dist/index.js.map +1 -1
- package/examples/human-review/package.json +1 -1
- package/examples/react-chat/package.json +2 -2
- package/package.json +2 -2
|
@@ -958,7 +958,6 @@ declare class ResponseStream implements AsyncIterable<ResponseStreamEvent> {
|
|
|
958
958
|
[Symbol.asyncIterator](): AsyncIterator<ResponseStreamEvent>;
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
-
/** Read-only setup checks. Uses raw GETs so diagnosis never logs in or opens a workspace. */
|
|
962
961
|
interface SetupDiagnostic {
|
|
963
962
|
check: 'connection' | 'deployment' | 'authentication' | 'workspace' | 'permissions';
|
|
964
963
|
status: 'ok' | 'warning' | 'error' | 'skipped';
|
|
@@ -2214,6 +2213,11 @@ type MailThread = Omit<Schemas$2['MailThread'], 'messages'> & {
|
|
|
2214
2213
|
};
|
|
2215
2214
|
/** Thread keys computed by the owner's client for an older native message (see `threadKeys`). */
|
|
2216
2215
|
type NativeThreadKey = Schemas$2['NativeThreadKey'];
|
|
2216
|
+
/** A message added to a workspace, and the private document it became. */
|
|
2217
|
+
type MailFiled = Schemas$2['MailFiledRead'];
|
|
2218
|
+
/** A conversation whose future replies are added to a workspace. */
|
|
2219
|
+
type MailFilingRule = Schemas$2['MailFilingRuleRead'];
|
|
2220
|
+
type MailFilingState = Schemas$2['MailFilingState'];
|
|
2217
2221
|
type MailCompose = Omit<Schemas$2['MailCompose'], 'to' | 'cc' | 'bcc'> & {
|
|
2218
2222
|
to?: MailAddressInput[];
|
|
2219
2223
|
cc?: MailAddressInput[];
|
|
@@ -2267,6 +2271,55 @@ declare function getNativeThreadSecret(mail: MailFetch): Promise<Uint8Array>;
|
|
|
2267
2271
|
* cannot key itself: their Message-IDs are encrypted. Messages already keyed keep their keys.
|
|
2268
2272
|
*/
|
|
2269
2273
|
declare function submitNativeThreadKeys(mail: MailFetch, keys: Record<string, NativeThreadKey>): Promise<number>;
|
|
2274
|
+
/**
|
|
2275
|
+
* Add a message to a workspace, as a document only the user can see. Adding it again returns the
|
|
2276
|
+
* same document. The workspace's key must be on the session (`arbi.workspaces.open`).
|
|
2277
|
+
*/
|
|
2278
|
+
declare function fileMessage(mail: MailFetch, messageId: string, workspaceExtId: string, accountId?: string): Promise<MailFiled>;
|
|
2279
|
+
/**
|
|
2280
|
+
* Add a whole conversation to a workspace: `messageIds` now, and its future replies until the rule
|
|
2281
|
+
* is stopped (native mail as it arrives; a connected account's as the user's app syncs).
|
|
2282
|
+
*/
|
|
2283
|
+
declare function fileConversation(mail: MailFetch, input: {
|
|
2284
|
+
threadId: string;
|
|
2285
|
+
messageIds: string[];
|
|
2286
|
+
workspaceExtId: string;
|
|
2287
|
+
accountId?: string;
|
|
2288
|
+
}): Promise<{
|
|
2289
|
+
rule: MailFilingRule;
|
|
2290
|
+
filed: MailFiled[];
|
|
2291
|
+
}>;
|
|
2292
|
+
/**
|
|
2293
|
+
* Stop adding a conversation's replies to its workspace (`rule.id` is the mailbox's filing row for
|
|
2294
|
+
* that workspace); what was added stays.
|
|
2295
|
+
*/
|
|
2296
|
+
declare function stopFilingConversation(mail: MailFetch, ruleId: string, threadId: string): Promise<void>;
|
|
2297
|
+
/** Where the ARBI mailbox files mail: per workspace, its folders filed ongoing and conversations. */
|
|
2298
|
+
type NativeFiling = Schemas$2['NativeFilingRead'];
|
|
2299
|
+
declare function listNativeFiling(mail: MailFetch): Promise<NativeFiling[]>;
|
|
2300
|
+
/**
|
|
2301
|
+
* File the ARBI mailbox's folders into a workspace, ongoing, as a connected mailbox syncs. Mail
|
|
2302
|
+
* already there (the backfill window) and what arrives later waits until the user next opens the
|
|
2303
|
+
* workspace, and is filed then with their session's keys (`fileWaitingNativeMail`).
|
|
2304
|
+
*/
|
|
2305
|
+
declare function setNativeFiling(mail: MailFetch, input: {
|
|
2306
|
+
workspaceExtId: string;
|
|
2307
|
+
folders: ('inbox' | 'sent' | 'archive')[];
|
|
2308
|
+
backfillWindow?: number;
|
|
2309
|
+
}): Promise<NativeFiling>;
|
|
2310
|
+
/**
|
|
2311
|
+
* File the ARBI mail waiting for a workspace (it arrived while the user was away): its messages'
|
|
2312
|
+
* keys are bridged to this session, then the server files them with the workspace's key, which
|
|
2313
|
+
* must be on the session (`arbi.workspaces.open`). Resolves with how many were filed, still wait, and
|
|
2314
|
+
* failed (tried too often: parked).
|
|
2315
|
+
*/
|
|
2316
|
+
declare function fileWaitingNativeMail(mail: MailFetch, keys: NativeMailKeys, workspaceExtId: string): Promise<Schemas$2['NativeFilingRunResult']>;
|
|
2317
|
+
/** Which of `messageIds` are in a workspace, and which of `threadIds` add their replies to one. */
|
|
2318
|
+
declare function getFilingState(mail: MailFetch, input: {
|
|
2319
|
+
messageIds?: string[];
|
|
2320
|
+
threadIds?: string[];
|
|
2321
|
+
accountId?: string;
|
|
2322
|
+
}): Promise<MailFilingState>;
|
|
2270
2323
|
declare function getMessage$1(mail: MailFetch, messageId: string, accountId?: string): Promise<MailMessage>;
|
|
2271
2324
|
/** The bytes of one attachment of a message. */
|
|
2272
2325
|
declare function downloadAttachment(mail: MailFetch, messageId: string, attachmentId: string, accountId?: string): Promise<Uint8Array>;
|
|
@@ -2332,6 +2385,9 @@ type mail_MailDraftEditorOpen = MailDraftEditorOpen;
|
|
|
2332
2385
|
type mail_MailDraftEditorSession = MailDraftEditorSession;
|
|
2333
2386
|
type mail_MailDraftSaved = MailDraftSaved;
|
|
2334
2387
|
type mail_MailFetch = MailFetch;
|
|
2388
|
+
type mail_MailFiled = MailFiled;
|
|
2389
|
+
type mail_MailFilingRule = MailFilingRule;
|
|
2390
|
+
type mail_MailFilingState = MailFilingState;
|
|
2335
2391
|
type mail_MailFolder = MailFolder;
|
|
2336
2392
|
type mail_MailMessage = MailMessage;
|
|
2337
2393
|
type mail_MailMessagePage = MailMessagePage;
|
|
@@ -2341,27 +2397,35 @@ type mail_MailSend = MailSend;
|
|
|
2341
2397
|
type mail_MailSendResult = MailSendResult;
|
|
2342
2398
|
type mail_MailThread = MailThread;
|
|
2343
2399
|
declare const mail_NATIVE_ACCOUNT: typeof NATIVE_ACCOUNT;
|
|
2400
|
+
type mail_NativeFiling = NativeFiling;
|
|
2344
2401
|
type mail_NativeMailKeys = NativeMailKeys;
|
|
2345
2402
|
type mail_NativeThreadKey = NativeThreadKey;
|
|
2346
2403
|
declare const mail_attachmentFromBytes: typeof attachmentFromBytes;
|
|
2347
2404
|
declare const mail_claimNativeAlias: typeof claimNativeAlias;
|
|
2348
2405
|
declare const mail_createMailFetch: typeof createMailFetch;
|
|
2349
2406
|
declare const mail_downloadAttachment: typeof downloadAttachment;
|
|
2407
|
+
declare const mail_fileConversation: typeof fileConversation;
|
|
2408
|
+
declare const mail_fileMessage: typeof fileMessage;
|
|
2409
|
+
declare const mail_fileWaitingNativeMail: typeof fileWaitingNativeMail;
|
|
2410
|
+
declare const mail_getFilingState: typeof getFilingState;
|
|
2350
2411
|
declare const mail_getMailPolicy: typeof getMailPolicy;
|
|
2351
2412
|
declare const mail_getNativeThreadSecret: typeof getNativeThreadSecret;
|
|
2352
2413
|
declare const mail_getThread: typeof getThread;
|
|
2353
2414
|
declare const mail_listFolders: typeof listFolders;
|
|
2354
2415
|
declare const mail_listMailAccounts: typeof listMailAccounts;
|
|
2355
2416
|
declare const mail_listMessages: typeof listMessages;
|
|
2417
|
+
declare const mail_listNativeFiling: typeof listNativeFiling;
|
|
2356
2418
|
declare const mail_openDraftEditor: typeof openDraftEditor;
|
|
2357
2419
|
declare const mail_saveDraft: typeof saveDraft;
|
|
2358
2420
|
declare const mail_sendMessage: typeof sendMessage;
|
|
2421
|
+
declare const mail_setNativeFiling: typeof setNativeFiling;
|
|
2422
|
+
declare const mail_stopFilingConversation: typeof stopFilingConversation;
|
|
2359
2423
|
declare const mail_submitNativeThreadKeys: typeof submitNativeThreadKeys;
|
|
2360
2424
|
declare const mail_unlockMailCredentials: typeof unlockMailCredentials;
|
|
2361
2425
|
declare const mail_unlockNativeMail: typeof unlockNativeMail;
|
|
2362
2426
|
declare const mail_updateMessage: typeof updateMessage;
|
|
2363
2427
|
declare namespace mail {
|
|
2364
|
-
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_MailConversation as MailConversation, type mail_MailConversationPage as MailConversationPage, type mail_MailDraftEditorOpen as MailDraftEditorOpen, type mail_MailDraftEditorSession as MailDraftEditorSession, 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, type mail_MailThread as MailThread, mail_NATIVE_ACCOUNT as NATIVE_ACCOUNT, type mail_NativeMailKeys as NativeMailKeys, type mail_NativeThreadKey as NativeThreadKey, 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_getNativeThreadSecret as getNativeThreadSecret, mail_getThread as getThread, listConversations$1 as listConversations, mail_listFolders as listFolders, mail_listMailAccounts as listMailAccounts, mail_listMessages as listMessages, mail_openDraftEditor as openDraftEditor, mail_saveDraft as saveDraft, mail_sendMessage as sendMessage, mail_submitNativeThreadKeys as submitNativeThreadKeys, mail_unlockMailCredentials as unlockMailCredentials, mail_unlockNativeMail as unlockNativeMail, mail_updateMessage as updateMessage };
|
|
2428
|
+
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_MailConversation as MailConversation, type mail_MailConversationPage as MailConversationPage, type mail_MailDraftEditorOpen as MailDraftEditorOpen, type mail_MailDraftEditorSession as MailDraftEditorSession, type mail_MailDraftSaved as MailDraftSaved, type mail_MailFetch as MailFetch, type mail_MailFiled as MailFiled, type mail_MailFilingRule as MailFilingRule, type mail_MailFilingState as MailFilingState, 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, type mail_MailThread as MailThread, mail_NATIVE_ACCOUNT as NATIVE_ACCOUNT, type mail_NativeFiling as NativeFiling, type mail_NativeMailKeys as NativeMailKeys, type mail_NativeThreadKey as NativeThreadKey, mail_attachmentFromBytes as attachmentFromBytes, mail_claimNativeAlias as claimNativeAlias, mail_createMailFetch as createMailFetch, mail_downloadAttachment as downloadAttachment, mail_fileConversation as fileConversation, mail_fileMessage as fileMessage, mail_fileWaitingNativeMail as fileWaitingNativeMail, mail_getFilingState as getFilingState, mail_getMailPolicy as getMailPolicy, getMessage$1 as getMessage, mail_getNativeThreadSecret as getNativeThreadSecret, mail_getThread as getThread, listConversations$1 as listConversations, mail_listFolders as listFolders, mail_listMailAccounts as listMailAccounts, mail_listMessages as listMessages, mail_listNativeFiling as listNativeFiling, mail_openDraftEditor as openDraftEditor, mail_saveDraft as saveDraft, mail_sendMessage as sendMessage, mail_setNativeFiling as setNativeFiling, mail_stopFilingConversation as stopFilingConversation, mail_submitNativeThreadKeys as submitNativeThreadKeys, mail_unlockMailCredentials as unlockMailCredentials, mail_unlockNativeMail as unlockNativeMail, mail_updateMessage as updateMessage };
|
|
2365
2429
|
}
|
|
2366
2430
|
|
|
2367
2431
|
/**
|
|
@@ -2454,6 +2518,20 @@ declare namespace secureMail {
|
|
|
2454
2518
|
type WorkspaceUpdateRequest$1 = components['schemas']['WorkspaceUpdateRequest'];
|
|
2455
2519
|
/** A workspace as the API lists it (`/v1/user/workspaces`), with its stats and members. */
|
|
2456
2520
|
type WorkspaceResponse = components['schemas']['WorkspaceResponse'];
|
|
2521
|
+
/**
|
|
2522
|
+
* A member's role in a workspace, as the API names it. `guest` is a read-only member (people see
|
|
2523
|
+
* it as "Read only"); it is not an external, temporary-access account, which is a kind of user.
|
|
2524
|
+
*/
|
|
2525
|
+
type WorkspaceRoleName = 'owner' | 'collaborator' | 'guest';
|
|
2526
|
+
/** What people see for each role: the one label map for the SDK, the CLI and the kits. */
|
|
2527
|
+
declare const WORKSPACE_ROLE_LABELS: Record<WorkspaceRoleName, string>;
|
|
2528
|
+
/** "Owner", "Collaborator", "Read only" (`guest`). An unknown role is capitalised as it comes. */
|
|
2529
|
+
declare function workspaceRoleLabel(role: string): string;
|
|
2530
|
+
/**
|
|
2531
|
+
* A role typed by a person (a CLI flag): the API value, any case, or the "Read only" label
|
|
2532
|
+
* (`read-only`, `read_only`, `readonly`, `read only`) for `guest`. Null when it names no role.
|
|
2533
|
+
*/
|
|
2534
|
+
declare function parseWorkspaceRole(input: string): WorkspaceRoleName | null;
|
|
2457
2535
|
declare function listWorkspaces(arbi: ArbiClient): Promise<{
|
|
2458
2536
|
external_id: string;
|
|
2459
2537
|
name: string;
|
|
@@ -2702,7 +2780,7 @@ declare function addWorkspaceMembers(arbi: ArbiClient, request: AddWorkspaceMemb
|
|
|
2702
2780
|
is_temporary: boolean;
|
|
2703
2781
|
access_expires_at?: string | null | undefined;
|
|
2704
2782
|
}[]>;
|
|
2705
|
-
declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?:
|
|
2783
|
+
declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?: WorkspaceRoleName,
|
|
2706
2784
|
/** Share a workspace other than the open one: its id and its key sealed to the caller's session. */
|
|
2707
2785
|
target?: {
|
|
2708
2786
|
workspaceExtId: string;
|
|
@@ -2745,7 +2823,7 @@ declare function grantTemporaryWorkspaceAccess(arbi: ArbiClient, params: {
|
|
|
2745
2823
|
workspaceExtId: string;
|
|
2746
2824
|
workspaceKey: string;
|
|
2747
2825
|
sessionPubkeyB64: string;
|
|
2748
|
-
role?:
|
|
2826
|
+
role?: WorkspaceRoleName;
|
|
2749
2827
|
}): Promise<{
|
|
2750
2828
|
user: {
|
|
2751
2829
|
external_id: string;
|
|
@@ -2770,7 +2848,7 @@ declare function grantTemporaryWorkspaceAccess(arbi: ArbiClient, params: {
|
|
|
2770
2848
|
}[]>;
|
|
2771
2849
|
/** Remove users from the open workspace, or from `workspaceExtId` (its key on the session). */
|
|
2772
2850
|
declare function removeWorkspaceUsers(arbi: ArbiClient, userIds: string[], workspaceExtId?: string | null): Promise<void>;
|
|
2773
|
-
declare function setUserRole(arbi: ArbiClient, userIds: string[], role:
|
|
2851
|
+
declare function setUserRole(arbi: ArbiClient, userIds: string[], role: WorkspaceRoleName): Promise<{
|
|
2774
2852
|
user: {
|
|
2775
2853
|
external_id: string;
|
|
2776
2854
|
parent_ext_id?: string | null | undefined;
|
|
@@ -2926,10 +3004,12 @@ type workspaces_TransferMode = TransferMode;
|
|
|
2926
3004
|
type workspaces_TransferPlan = TransferPlan;
|
|
2927
3005
|
type workspaces_TransferScope = TransferScope;
|
|
2928
3006
|
type workspaces_TransferStatus = TransferStatus;
|
|
3007
|
+
declare const workspaces_WORKSPACE_ROLE_LABELS: typeof WORKSPACE_ROLE_LABELS;
|
|
2929
3008
|
type workspaces_WorkspaceActivityOptions = WorkspaceActivityOptions;
|
|
2930
3009
|
type workspaces_WorkspaceArchive = WorkspaceArchive;
|
|
2931
3010
|
type workspaces_WorkspaceExport = WorkspaceExport;
|
|
2932
3011
|
type workspaces_WorkspaceResponse = WorkspaceResponse;
|
|
3012
|
+
type workspaces_WorkspaceRoleName = WorkspaceRoleName;
|
|
2933
3013
|
declare const workspaces_addWorkspaceMembers: typeof addWorkspaceMembers;
|
|
2934
3014
|
declare const workspaces_addWorkspaceMembersBody: typeof addWorkspaceMembersBody;
|
|
2935
3015
|
declare const workspaces_addWorkspaceUsers: typeof addWorkspaceUsers;
|
|
@@ -2948,6 +3028,7 @@ declare const workspaces_listWorkspaceTransfers: typeof listWorkspaceTransfers;
|
|
|
2948
3028
|
declare const workspaces_listWorkspaceUsers: typeof listWorkspaceUsers;
|
|
2949
3029
|
declare const workspaces_listWorkspaces: typeof listWorkspaces;
|
|
2950
3030
|
declare const workspaces_moveWorkspaceToProject: typeof moveWorkspaceToProject;
|
|
3031
|
+
declare const workspaces_parseWorkspaceRole: typeof parseWorkspaceRole;
|
|
2951
3032
|
declare const workspaces_planWorkspaceTransfer: typeof planWorkspaceTransfer;
|
|
2952
3033
|
declare const workspaces_primeWorkspaceKey: typeof primeWorkspaceKey;
|
|
2953
3034
|
declare const workspaces_removeWorkspaceUsers: typeof removeWorkspaceUsers;
|
|
@@ -2956,8 +3037,9 @@ declare const workspaces_setUserRole: typeof setUserRole;
|
|
|
2956
3037
|
declare const workspaces_startWorkspaceTransfer: typeof startWorkspaceTransfer;
|
|
2957
3038
|
declare const workspaces_unarchiveWorkspace: typeof unarchiveWorkspace;
|
|
2958
3039
|
declare const workspaces_updateWorkspace: typeof updateWorkspace;
|
|
3040
|
+
declare const workspaces_workspaceRoleLabel: typeof workspaceRoleLabel;
|
|
2959
3041
|
declare namespace workspaces {
|
|
2960
|
-
export { type workspaces_AddWorkspaceMembersRequest as AddWorkspaceMembersRequest, workspaces_EXTERNAL_ACCESS_SECONDS as EXTERNAL_ACCESS_SECONDS, type workspaces_TransferConflictPolicy as TransferConflictPolicy, type workspaces_TransferKind as TransferKind, type workspaces_TransferMode as TransferMode, type workspaces_TransferPlan as TransferPlan, type workspaces_TransferScope as TransferScope, type workspaces_TransferStatus as TransferStatus, type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, type workspaces_WorkspaceArchive as WorkspaceArchive, type workspaces_WorkspaceExport as WorkspaceExport, type workspaces_WorkspaceResponse as WorkspaceResponse, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceMembersBody as addWorkspaceMembersBody, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_archiveWorkspace as archiveWorkspace, workspaces_cancelWorkspaceTransfer as cancelWorkspaceTransfer, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_exportWorkspaceData as exportWorkspaceData, workspaces_getWorkspaceAccessStatus as getWorkspaceAccessStatus, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_getWorkspaceArchive as getWorkspaceArchive, workspaces_getWorkspaceTransfer as getWorkspaceTransfer, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceTransfers as listWorkspaceTransfers, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_moveWorkspaceToProject as moveWorkspaceToProject, workspaces_planWorkspaceTransfer as planWorkspaceTransfer, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_resumeWorkspaceTransfer as resumeWorkspaceTransfer, workspaces_setUserRole as setUserRole, workspaces_startWorkspaceTransfer as startWorkspaceTransfer, workspaces_unarchiveWorkspace as unarchiveWorkspace, workspaces_updateWorkspace as updateWorkspace };
|
|
3042
|
+
export { type workspaces_AddWorkspaceMembersRequest as AddWorkspaceMembersRequest, workspaces_EXTERNAL_ACCESS_SECONDS as EXTERNAL_ACCESS_SECONDS, type workspaces_TransferConflictPolicy as TransferConflictPolicy, type workspaces_TransferKind as TransferKind, type workspaces_TransferMode as TransferMode, type workspaces_TransferPlan as TransferPlan, type workspaces_TransferScope as TransferScope, type workspaces_TransferStatus as TransferStatus, workspaces_WORKSPACE_ROLE_LABELS as WORKSPACE_ROLE_LABELS, type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, type workspaces_WorkspaceArchive as WorkspaceArchive, type workspaces_WorkspaceExport as WorkspaceExport, type workspaces_WorkspaceResponse as WorkspaceResponse, type workspaces_WorkspaceRoleName as WorkspaceRoleName, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceMembersBody as addWorkspaceMembersBody, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_archiveWorkspace as archiveWorkspace, workspaces_cancelWorkspaceTransfer as cancelWorkspaceTransfer, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_exportWorkspaceData as exportWorkspaceData, workspaces_getWorkspaceAccessStatus as getWorkspaceAccessStatus, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_getWorkspaceArchive as getWorkspaceArchive, workspaces_getWorkspaceTransfer as getWorkspaceTransfer, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceTransfers as listWorkspaceTransfers, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_moveWorkspaceToProject as moveWorkspaceToProject, workspaces_parseWorkspaceRole as parseWorkspaceRole, workspaces_planWorkspaceTransfer as planWorkspaceTransfer, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_resumeWorkspaceTransfer as resumeWorkspaceTransfer, workspaces_setUserRole as setUserRole, workspaces_startWorkspaceTransfer as startWorkspaceTransfer, workspaces_unarchiveWorkspace as unarchiveWorkspace, workspaces_updateWorkspace as updateWorkspace, workspaces_workspaceRoleLabel as workspaceRoleLabel };
|
|
2961
3043
|
}
|
|
2962
3044
|
|
|
2963
3045
|
/**
|
|
@@ -5031,6 +5113,7 @@ declare function listMine(arbi: ArbiClient): Promise<{
|
|
|
5031
5113
|
shared: boolean;
|
|
5032
5114
|
auto_sync: boolean;
|
|
5033
5115
|
synced_count: number;
|
|
5116
|
+
threads: number;
|
|
5034
5117
|
}[];
|
|
5035
5118
|
sync_status?: string | null | undefined;
|
|
5036
5119
|
last_sync_at?: string | null | undefined;
|
|
@@ -5083,6 +5166,7 @@ declare function enableMailboxSync(arbi: ArbiClient, vendor: string, body: Enabl
|
|
|
5083
5166
|
auto_rename: boolean;
|
|
5084
5167
|
shared: boolean;
|
|
5085
5168
|
auto_sync: boolean;
|
|
5169
|
+
threads: string[];
|
|
5086
5170
|
last_sync_at?: string | null | undefined;
|
|
5087
5171
|
}>;
|
|
5088
5172
|
/** Sync now; `workspaceExtId` picks which of the vendor's syncs runs. */
|
|
@@ -10556,8 +10640,11 @@ declare class Arbi {
|
|
|
10556
10640
|
}[];
|
|
10557
10641
|
next_cursor?: string | null | undefined;
|
|
10558
10642
|
}>;
|
|
10559
|
-
/**
|
|
10560
|
-
|
|
10643
|
+
/**
|
|
10644
|
+
* Add users to the open workspace; `confirmInvite` also invites emails not on ARBI yet. `role`
|
|
10645
|
+
* defaults to `collaborator`; `guest` makes a read-only member (shown as "Read only").
|
|
10646
|
+
*/
|
|
10647
|
+
addUsers: (emails: string[], role?: WorkspaceRoleName, options?: {
|
|
10561
10648
|
confirmInvite?: boolean;
|
|
10562
10649
|
}) => Promise<{
|
|
10563
10650
|
user: {
|
|
@@ -10617,7 +10704,7 @@ declare class Arbi {
|
|
|
10617
10704
|
workspaceId: string;
|
|
10618
10705
|
emails: string[];
|
|
10619
10706
|
sessionPubkeyB64: string;
|
|
10620
|
-
role?:
|
|
10707
|
+
role?: WorkspaceRoleName;
|
|
10621
10708
|
}) => Promise<{
|
|
10622
10709
|
user: {
|
|
10623
10710
|
external_id: string;
|
|
@@ -10647,7 +10734,7 @@ declare class Arbi {
|
|
|
10647
10734
|
grantAccess: (params: {
|
|
10648
10735
|
workspaceId: string;
|
|
10649
10736
|
emails: string[];
|
|
10650
|
-
role?:
|
|
10737
|
+
role?: WorkspaceRoleName;
|
|
10651
10738
|
}) => Promise<{
|
|
10652
10739
|
user: {
|
|
10653
10740
|
external_id: string;
|
|
@@ -10674,7 +10761,8 @@ declare class Arbi {
|
|
|
10674
10761
|
removeUsers: (userIds: string[], options?: {
|
|
10675
10762
|
workspaceId?: string;
|
|
10676
10763
|
}) => Promise<void>;
|
|
10677
|
-
|
|
10764
|
+
/** Change members' role; `guest` is read-only (shown as "Read only"). */
|
|
10765
|
+
setUserRole: (userIds: string[], role: WorkspaceRoleName) => Promise<{
|
|
10678
10766
|
user: {
|
|
10679
10767
|
external_id: string;
|
|
10680
10768
|
parent_ext_id?: string | null | undefined;
|
|
@@ -12605,6 +12693,16 @@ declare class Arbi {
|
|
|
12605
12693
|
id: string;
|
|
12606
12694
|
provider: string;
|
|
12607
12695
|
}) => Promise<void>;
|
|
12696
|
+
/**
|
|
12697
|
+
* File the ARBI mail waiting for a workspace (it arrived while the user was away) with this
|
|
12698
|
+
* session: the waiting messages' keys are bridged, then the server files them with the
|
|
12699
|
+
* workspace's key, deposited first without switching to it (see `fileWaitingNativeMail`).
|
|
12700
|
+
*/
|
|
12701
|
+
fileWaiting: (workspaceExtId: string) => Promise<{
|
|
12702
|
+
filed: number;
|
|
12703
|
+
waiting: number;
|
|
12704
|
+
failed: number;
|
|
12705
|
+
}>;
|
|
12608
12706
|
/**
|
|
12609
12707
|
* Open a native draft's body in the Word editor, unlocking its room for this session with the
|
|
12610
12708
|
* user's key when the server asks (see `openDraftEditor`).
|
|
@@ -14741,6 +14839,7 @@ declare class Arbi {
|
|
|
14741
14839
|
shared: boolean;
|
|
14742
14840
|
auto_sync: boolean;
|
|
14743
14841
|
synced_count: number;
|
|
14842
|
+
threads: number;
|
|
14744
14843
|
}[];
|
|
14745
14844
|
sync_status?: string | null | undefined;
|
|
14746
14845
|
last_sync_at?: string | null | undefined;
|
|
@@ -14790,6 +14889,7 @@ declare class Arbi {
|
|
|
14790
14889
|
auto_rename: boolean;
|
|
14791
14890
|
shared: boolean;
|
|
14792
14891
|
auto_sync: boolean;
|
|
14892
|
+
threads: string[];
|
|
14793
14893
|
last_sync_at?: string | null | undefined;
|
|
14794
14894
|
}>;
|
|
14795
14895
|
syncMailbox: (vendor: string, workspaceExtId?: string | null) => Promise<{
|
|
@@ -958,7 +958,6 @@ declare class ResponseStream implements AsyncIterable<ResponseStreamEvent> {
|
|
|
958
958
|
[Symbol.asyncIterator](): AsyncIterator<ResponseStreamEvent>;
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
-
/** Read-only setup checks. Uses raw GETs so diagnosis never logs in or opens a workspace. */
|
|
962
961
|
interface SetupDiagnostic {
|
|
963
962
|
check: 'connection' | 'deployment' | 'authentication' | 'workspace' | 'permissions';
|
|
964
963
|
status: 'ok' | 'warning' | 'error' | 'skipped';
|
|
@@ -2214,6 +2213,11 @@ type MailThread = Omit<Schemas$2['MailThread'], 'messages'> & {
|
|
|
2214
2213
|
};
|
|
2215
2214
|
/** Thread keys computed by the owner's client for an older native message (see `threadKeys`). */
|
|
2216
2215
|
type NativeThreadKey = Schemas$2['NativeThreadKey'];
|
|
2216
|
+
/** A message added to a workspace, and the private document it became. */
|
|
2217
|
+
type MailFiled = Schemas$2['MailFiledRead'];
|
|
2218
|
+
/** A conversation whose future replies are added to a workspace. */
|
|
2219
|
+
type MailFilingRule = Schemas$2['MailFilingRuleRead'];
|
|
2220
|
+
type MailFilingState = Schemas$2['MailFilingState'];
|
|
2217
2221
|
type MailCompose = Omit<Schemas$2['MailCompose'], 'to' | 'cc' | 'bcc'> & {
|
|
2218
2222
|
to?: MailAddressInput[];
|
|
2219
2223
|
cc?: MailAddressInput[];
|
|
@@ -2267,6 +2271,55 @@ declare function getNativeThreadSecret(mail: MailFetch): Promise<Uint8Array>;
|
|
|
2267
2271
|
* cannot key itself: their Message-IDs are encrypted. Messages already keyed keep their keys.
|
|
2268
2272
|
*/
|
|
2269
2273
|
declare function submitNativeThreadKeys(mail: MailFetch, keys: Record<string, NativeThreadKey>): Promise<number>;
|
|
2274
|
+
/**
|
|
2275
|
+
* Add a message to a workspace, as a document only the user can see. Adding it again returns the
|
|
2276
|
+
* same document. The workspace's key must be on the session (`arbi.workspaces.open`).
|
|
2277
|
+
*/
|
|
2278
|
+
declare function fileMessage(mail: MailFetch, messageId: string, workspaceExtId: string, accountId?: string): Promise<MailFiled>;
|
|
2279
|
+
/**
|
|
2280
|
+
* Add a whole conversation to a workspace: `messageIds` now, and its future replies until the rule
|
|
2281
|
+
* is stopped (native mail as it arrives; a connected account's as the user's app syncs).
|
|
2282
|
+
*/
|
|
2283
|
+
declare function fileConversation(mail: MailFetch, input: {
|
|
2284
|
+
threadId: string;
|
|
2285
|
+
messageIds: string[];
|
|
2286
|
+
workspaceExtId: string;
|
|
2287
|
+
accountId?: string;
|
|
2288
|
+
}): Promise<{
|
|
2289
|
+
rule: MailFilingRule;
|
|
2290
|
+
filed: MailFiled[];
|
|
2291
|
+
}>;
|
|
2292
|
+
/**
|
|
2293
|
+
* Stop adding a conversation's replies to its workspace (`rule.id` is the mailbox's filing row for
|
|
2294
|
+
* that workspace); what was added stays.
|
|
2295
|
+
*/
|
|
2296
|
+
declare function stopFilingConversation(mail: MailFetch, ruleId: string, threadId: string): Promise<void>;
|
|
2297
|
+
/** Where the ARBI mailbox files mail: per workspace, its folders filed ongoing and conversations. */
|
|
2298
|
+
type NativeFiling = Schemas$2['NativeFilingRead'];
|
|
2299
|
+
declare function listNativeFiling(mail: MailFetch): Promise<NativeFiling[]>;
|
|
2300
|
+
/**
|
|
2301
|
+
* File the ARBI mailbox's folders into a workspace, ongoing, as a connected mailbox syncs. Mail
|
|
2302
|
+
* already there (the backfill window) and what arrives later waits until the user next opens the
|
|
2303
|
+
* workspace, and is filed then with their session's keys (`fileWaitingNativeMail`).
|
|
2304
|
+
*/
|
|
2305
|
+
declare function setNativeFiling(mail: MailFetch, input: {
|
|
2306
|
+
workspaceExtId: string;
|
|
2307
|
+
folders: ('inbox' | 'sent' | 'archive')[];
|
|
2308
|
+
backfillWindow?: number;
|
|
2309
|
+
}): Promise<NativeFiling>;
|
|
2310
|
+
/**
|
|
2311
|
+
* File the ARBI mail waiting for a workspace (it arrived while the user was away): its messages'
|
|
2312
|
+
* keys are bridged to this session, then the server files them with the workspace's key, which
|
|
2313
|
+
* must be on the session (`arbi.workspaces.open`). Resolves with how many were filed, still wait, and
|
|
2314
|
+
* failed (tried too often: parked).
|
|
2315
|
+
*/
|
|
2316
|
+
declare function fileWaitingNativeMail(mail: MailFetch, keys: NativeMailKeys, workspaceExtId: string): Promise<Schemas$2['NativeFilingRunResult']>;
|
|
2317
|
+
/** Which of `messageIds` are in a workspace, and which of `threadIds` add their replies to one. */
|
|
2318
|
+
declare function getFilingState(mail: MailFetch, input: {
|
|
2319
|
+
messageIds?: string[];
|
|
2320
|
+
threadIds?: string[];
|
|
2321
|
+
accountId?: string;
|
|
2322
|
+
}): Promise<MailFilingState>;
|
|
2270
2323
|
declare function getMessage$1(mail: MailFetch, messageId: string, accountId?: string): Promise<MailMessage>;
|
|
2271
2324
|
/** The bytes of one attachment of a message. */
|
|
2272
2325
|
declare function downloadAttachment(mail: MailFetch, messageId: string, attachmentId: string, accountId?: string): Promise<Uint8Array>;
|
|
@@ -2332,6 +2385,9 @@ type mail_MailDraftEditorOpen = MailDraftEditorOpen;
|
|
|
2332
2385
|
type mail_MailDraftEditorSession = MailDraftEditorSession;
|
|
2333
2386
|
type mail_MailDraftSaved = MailDraftSaved;
|
|
2334
2387
|
type mail_MailFetch = MailFetch;
|
|
2388
|
+
type mail_MailFiled = MailFiled;
|
|
2389
|
+
type mail_MailFilingRule = MailFilingRule;
|
|
2390
|
+
type mail_MailFilingState = MailFilingState;
|
|
2335
2391
|
type mail_MailFolder = MailFolder;
|
|
2336
2392
|
type mail_MailMessage = MailMessage;
|
|
2337
2393
|
type mail_MailMessagePage = MailMessagePage;
|
|
@@ -2341,27 +2397,35 @@ type mail_MailSend = MailSend;
|
|
|
2341
2397
|
type mail_MailSendResult = MailSendResult;
|
|
2342
2398
|
type mail_MailThread = MailThread;
|
|
2343
2399
|
declare const mail_NATIVE_ACCOUNT: typeof NATIVE_ACCOUNT;
|
|
2400
|
+
type mail_NativeFiling = NativeFiling;
|
|
2344
2401
|
type mail_NativeMailKeys = NativeMailKeys;
|
|
2345
2402
|
type mail_NativeThreadKey = NativeThreadKey;
|
|
2346
2403
|
declare const mail_attachmentFromBytes: typeof attachmentFromBytes;
|
|
2347
2404
|
declare const mail_claimNativeAlias: typeof claimNativeAlias;
|
|
2348
2405
|
declare const mail_createMailFetch: typeof createMailFetch;
|
|
2349
2406
|
declare const mail_downloadAttachment: typeof downloadAttachment;
|
|
2407
|
+
declare const mail_fileConversation: typeof fileConversation;
|
|
2408
|
+
declare const mail_fileMessage: typeof fileMessage;
|
|
2409
|
+
declare const mail_fileWaitingNativeMail: typeof fileWaitingNativeMail;
|
|
2410
|
+
declare const mail_getFilingState: typeof getFilingState;
|
|
2350
2411
|
declare const mail_getMailPolicy: typeof getMailPolicy;
|
|
2351
2412
|
declare const mail_getNativeThreadSecret: typeof getNativeThreadSecret;
|
|
2352
2413
|
declare const mail_getThread: typeof getThread;
|
|
2353
2414
|
declare const mail_listFolders: typeof listFolders;
|
|
2354
2415
|
declare const mail_listMailAccounts: typeof listMailAccounts;
|
|
2355
2416
|
declare const mail_listMessages: typeof listMessages;
|
|
2417
|
+
declare const mail_listNativeFiling: typeof listNativeFiling;
|
|
2356
2418
|
declare const mail_openDraftEditor: typeof openDraftEditor;
|
|
2357
2419
|
declare const mail_saveDraft: typeof saveDraft;
|
|
2358
2420
|
declare const mail_sendMessage: typeof sendMessage;
|
|
2421
|
+
declare const mail_setNativeFiling: typeof setNativeFiling;
|
|
2422
|
+
declare const mail_stopFilingConversation: typeof stopFilingConversation;
|
|
2359
2423
|
declare const mail_submitNativeThreadKeys: typeof submitNativeThreadKeys;
|
|
2360
2424
|
declare const mail_unlockMailCredentials: typeof unlockMailCredentials;
|
|
2361
2425
|
declare const mail_unlockNativeMail: typeof unlockNativeMail;
|
|
2362
2426
|
declare const mail_updateMessage: typeof updateMessage;
|
|
2363
2427
|
declare namespace mail {
|
|
2364
|
-
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_MailConversation as MailConversation, type mail_MailConversationPage as MailConversationPage, type mail_MailDraftEditorOpen as MailDraftEditorOpen, type mail_MailDraftEditorSession as MailDraftEditorSession, 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, type mail_MailThread as MailThread, mail_NATIVE_ACCOUNT as NATIVE_ACCOUNT, type mail_NativeMailKeys as NativeMailKeys, type mail_NativeThreadKey as NativeThreadKey, 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_getNativeThreadSecret as getNativeThreadSecret, mail_getThread as getThread, listConversations$1 as listConversations, mail_listFolders as listFolders, mail_listMailAccounts as listMailAccounts, mail_listMessages as listMessages, mail_openDraftEditor as openDraftEditor, mail_saveDraft as saveDraft, mail_sendMessage as sendMessage, mail_submitNativeThreadKeys as submitNativeThreadKeys, mail_unlockMailCredentials as unlockMailCredentials, mail_unlockNativeMail as unlockNativeMail, mail_updateMessage as updateMessage };
|
|
2428
|
+
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_MailConversation as MailConversation, type mail_MailConversationPage as MailConversationPage, type mail_MailDraftEditorOpen as MailDraftEditorOpen, type mail_MailDraftEditorSession as MailDraftEditorSession, type mail_MailDraftSaved as MailDraftSaved, type mail_MailFetch as MailFetch, type mail_MailFiled as MailFiled, type mail_MailFilingRule as MailFilingRule, type mail_MailFilingState as MailFilingState, 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, type mail_MailThread as MailThread, mail_NATIVE_ACCOUNT as NATIVE_ACCOUNT, type mail_NativeFiling as NativeFiling, type mail_NativeMailKeys as NativeMailKeys, type mail_NativeThreadKey as NativeThreadKey, mail_attachmentFromBytes as attachmentFromBytes, mail_claimNativeAlias as claimNativeAlias, mail_createMailFetch as createMailFetch, mail_downloadAttachment as downloadAttachment, mail_fileConversation as fileConversation, mail_fileMessage as fileMessage, mail_fileWaitingNativeMail as fileWaitingNativeMail, mail_getFilingState as getFilingState, mail_getMailPolicy as getMailPolicy, getMessage$1 as getMessage, mail_getNativeThreadSecret as getNativeThreadSecret, mail_getThread as getThread, listConversations$1 as listConversations, mail_listFolders as listFolders, mail_listMailAccounts as listMailAccounts, mail_listMessages as listMessages, mail_listNativeFiling as listNativeFiling, mail_openDraftEditor as openDraftEditor, mail_saveDraft as saveDraft, mail_sendMessage as sendMessage, mail_setNativeFiling as setNativeFiling, mail_stopFilingConversation as stopFilingConversation, mail_submitNativeThreadKeys as submitNativeThreadKeys, mail_unlockMailCredentials as unlockMailCredentials, mail_unlockNativeMail as unlockNativeMail, mail_updateMessage as updateMessage };
|
|
2365
2429
|
}
|
|
2366
2430
|
|
|
2367
2431
|
/**
|
|
@@ -2454,6 +2518,20 @@ declare namespace secureMail {
|
|
|
2454
2518
|
type WorkspaceUpdateRequest$1 = components['schemas']['WorkspaceUpdateRequest'];
|
|
2455
2519
|
/** A workspace as the API lists it (`/v1/user/workspaces`), with its stats and members. */
|
|
2456
2520
|
type WorkspaceResponse = components['schemas']['WorkspaceResponse'];
|
|
2521
|
+
/**
|
|
2522
|
+
* A member's role in a workspace, as the API names it. `guest` is a read-only member (people see
|
|
2523
|
+
* it as "Read only"); it is not an external, temporary-access account, which is a kind of user.
|
|
2524
|
+
*/
|
|
2525
|
+
type WorkspaceRoleName = 'owner' | 'collaborator' | 'guest';
|
|
2526
|
+
/** What people see for each role: the one label map for the SDK, the CLI and the kits. */
|
|
2527
|
+
declare const WORKSPACE_ROLE_LABELS: Record<WorkspaceRoleName, string>;
|
|
2528
|
+
/** "Owner", "Collaborator", "Read only" (`guest`). An unknown role is capitalised as it comes. */
|
|
2529
|
+
declare function workspaceRoleLabel(role: string): string;
|
|
2530
|
+
/**
|
|
2531
|
+
* A role typed by a person (a CLI flag): the API value, any case, or the "Read only" label
|
|
2532
|
+
* (`read-only`, `read_only`, `readonly`, `read only`) for `guest`. Null when it names no role.
|
|
2533
|
+
*/
|
|
2534
|
+
declare function parseWorkspaceRole(input: string): WorkspaceRoleName | null;
|
|
2457
2535
|
declare function listWorkspaces(arbi: ArbiClient): Promise<{
|
|
2458
2536
|
external_id: string;
|
|
2459
2537
|
name: string;
|
|
@@ -2702,7 +2780,7 @@ declare function addWorkspaceMembers(arbi: ArbiClient, request: AddWorkspaceMemb
|
|
|
2702
2780
|
is_temporary: boolean;
|
|
2703
2781
|
access_expires_at?: string | null | undefined;
|
|
2704
2782
|
}[]>;
|
|
2705
|
-
declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?:
|
|
2783
|
+
declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?: WorkspaceRoleName,
|
|
2706
2784
|
/** Share a workspace other than the open one: its id and its key sealed to the caller's session. */
|
|
2707
2785
|
target?: {
|
|
2708
2786
|
workspaceExtId: string;
|
|
@@ -2745,7 +2823,7 @@ declare function grantTemporaryWorkspaceAccess(arbi: ArbiClient, params: {
|
|
|
2745
2823
|
workspaceExtId: string;
|
|
2746
2824
|
workspaceKey: string;
|
|
2747
2825
|
sessionPubkeyB64: string;
|
|
2748
|
-
role?:
|
|
2826
|
+
role?: WorkspaceRoleName;
|
|
2749
2827
|
}): Promise<{
|
|
2750
2828
|
user: {
|
|
2751
2829
|
external_id: string;
|
|
@@ -2770,7 +2848,7 @@ declare function grantTemporaryWorkspaceAccess(arbi: ArbiClient, params: {
|
|
|
2770
2848
|
}[]>;
|
|
2771
2849
|
/** Remove users from the open workspace, or from `workspaceExtId` (its key on the session). */
|
|
2772
2850
|
declare function removeWorkspaceUsers(arbi: ArbiClient, userIds: string[], workspaceExtId?: string | null): Promise<void>;
|
|
2773
|
-
declare function setUserRole(arbi: ArbiClient, userIds: string[], role:
|
|
2851
|
+
declare function setUserRole(arbi: ArbiClient, userIds: string[], role: WorkspaceRoleName): Promise<{
|
|
2774
2852
|
user: {
|
|
2775
2853
|
external_id: string;
|
|
2776
2854
|
parent_ext_id?: string | null | undefined;
|
|
@@ -2926,10 +3004,12 @@ type workspaces_TransferMode = TransferMode;
|
|
|
2926
3004
|
type workspaces_TransferPlan = TransferPlan;
|
|
2927
3005
|
type workspaces_TransferScope = TransferScope;
|
|
2928
3006
|
type workspaces_TransferStatus = TransferStatus;
|
|
3007
|
+
declare const workspaces_WORKSPACE_ROLE_LABELS: typeof WORKSPACE_ROLE_LABELS;
|
|
2929
3008
|
type workspaces_WorkspaceActivityOptions = WorkspaceActivityOptions;
|
|
2930
3009
|
type workspaces_WorkspaceArchive = WorkspaceArchive;
|
|
2931
3010
|
type workspaces_WorkspaceExport = WorkspaceExport;
|
|
2932
3011
|
type workspaces_WorkspaceResponse = WorkspaceResponse;
|
|
3012
|
+
type workspaces_WorkspaceRoleName = WorkspaceRoleName;
|
|
2933
3013
|
declare const workspaces_addWorkspaceMembers: typeof addWorkspaceMembers;
|
|
2934
3014
|
declare const workspaces_addWorkspaceMembersBody: typeof addWorkspaceMembersBody;
|
|
2935
3015
|
declare const workspaces_addWorkspaceUsers: typeof addWorkspaceUsers;
|
|
@@ -2948,6 +3028,7 @@ declare const workspaces_listWorkspaceTransfers: typeof listWorkspaceTransfers;
|
|
|
2948
3028
|
declare const workspaces_listWorkspaceUsers: typeof listWorkspaceUsers;
|
|
2949
3029
|
declare const workspaces_listWorkspaces: typeof listWorkspaces;
|
|
2950
3030
|
declare const workspaces_moveWorkspaceToProject: typeof moveWorkspaceToProject;
|
|
3031
|
+
declare const workspaces_parseWorkspaceRole: typeof parseWorkspaceRole;
|
|
2951
3032
|
declare const workspaces_planWorkspaceTransfer: typeof planWorkspaceTransfer;
|
|
2952
3033
|
declare const workspaces_primeWorkspaceKey: typeof primeWorkspaceKey;
|
|
2953
3034
|
declare const workspaces_removeWorkspaceUsers: typeof removeWorkspaceUsers;
|
|
@@ -2956,8 +3037,9 @@ declare const workspaces_setUserRole: typeof setUserRole;
|
|
|
2956
3037
|
declare const workspaces_startWorkspaceTransfer: typeof startWorkspaceTransfer;
|
|
2957
3038
|
declare const workspaces_unarchiveWorkspace: typeof unarchiveWorkspace;
|
|
2958
3039
|
declare const workspaces_updateWorkspace: typeof updateWorkspace;
|
|
3040
|
+
declare const workspaces_workspaceRoleLabel: typeof workspaceRoleLabel;
|
|
2959
3041
|
declare namespace workspaces {
|
|
2960
|
-
export { type workspaces_AddWorkspaceMembersRequest as AddWorkspaceMembersRequest, workspaces_EXTERNAL_ACCESS_SECONDS as EXTERNAL_ACCESS_SECONDS, type workspaces_TransferConflictPolicy as TransferConflictPolicy, type workspaces_TransferKind as TransferKind, type workspaces_TransferMode as TransferMode, type workspaces_TransferPlan as TransferPlan, type workspaces_TransferScope as TransferScope, type workspaces_TransferStatus as TransferStatus, type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, type workspaces_WorkspaceArchive as WorkspaceArchive, type workspaces_WorkspaceExport as WorkspaceExport, type workspaces_WorkspaceResponse as WorkspaceResponse, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceMembersBody as addWorkspaceMembersBody, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_archiveWorkspace as archiveWorkspace, workspaces_cancelWorkspaceTransfer as cancelWorkspaceTransfer, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_exportWorkspaceData as exportWorkspaceData, workspaces_getWorkspaceAccessStatus as getWorkspaceAccessStatus, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_getWorkspaceArchive as getWorkspaceArchive, workspaces_getWorkspaceTransfer as getWorkspaceTransfer, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceTransfers as listWorkspaceTransfers, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_moveWorkspaceToProject as moveWorkspaceToProject, workspaces_planWorkspaceTransfer as planWorkspaceTransfer, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_resumeWorkspaceTransfer as resumeWorkspaceTransfer, workspaces_setUserRole as setUserRole, workspaces_startWorkspaceTransfer as startWorkspaceTransfer, workspaces_unarchiveWorkspace as unarchiveWorkspace, workspaces_updateWorkspace as updateWorkspace };
|
|
3042
|
+
export { type workspaces_AddWorkspaceMembersRequest as AddWorkspaceMembersRequest, workspaces_EXTERNAL_ACCESS_SECONDS as EXTERNAL_ACCESS_SECONDS, type workspaces_TransferConflictPolicy as TransferConflictPolicy, type workspaces_TransferKind as TransferKind, type workspaces_TransferMode as TransferMode, type workspaces_TransferPlan as TransferPlan, type workspaces_TransferScope as TransferScope, type workspaces_TransferStatus as TransferStatus, workspaces_WORKSPACE_ROLE_LABELS as WORKSPACE_ROLE_LABELS, type workspaces_WorkspaceActivityOptions as WorkspaceActivityOptions, type workspaces_WorkspaceArchive as WorkspaceArchive, type workspaces_WorkspaceExport as WorkspaceExport, type workspaces_WorkspaceResponse as WorkspaceResponse, type workspaces_WorkspaceRoleName as WorkspaceRoleName, workspaces_addWorkspaceMembers as addWorkspaceMembers, workspaces_addWorkspaceMembersBody as addWorkspaceMembersBody, workspaces_addWorkspaceUsers as addWorkspaceUsers, workspaces_archiveWorkspace as archiveWorkspace, workspaces_cancelWorkspaceTransfer as cancelWorkspaceTransfer, workspaces_copyDocuments as copyDocuments, workspaces_createWorkspace as createWorkspace, workspaces_deleteWorkspaces as deleteWorkspaces, workspaces_exportWorkspaceData as exportWorkspaceData, workspaces_getWorkspaceAccessStatus as getWorkspaceAccessStatus, workspaces_getWorkspaceActivity as getWorkspaceActivity, workspaces_getWorkspaceArchive as getWorkspaceArchive, workspaces_getWorkspaceTransfer as getWorkspaceTransfer, workspaces_grantTemporaryWorkspaceAccess as grantTemporaryWorkspaceAccess, workspaces_listWorkspaceTransfers as listWorkspaceTransfers, workspaces_listWorkspaceUsers as listWorkspaceUsers, workspaces_listWorkspaces as listWorkspaces, workspaces_moveWorkspaceToProject as moveWorkspaceToProject, workspaces_parseWorkspaceRole as parseWorkspaceRole, workspaces_planWorkspaceTransfer as planWorkspaceTransfer, workspaces_primeWorkspaceKey as primeWorkspaceKey, workspaces_removeWorkspaceUsers as removeWorkspaceUsers, workspaces_resumeWorkspaceTransfer as resumeWorkspaceTransfer, workspaces_setUserRole as setUserRole, workspaces_startWorkspaceTransfer as startWorkspaceTransfer, workspaces_unarchiveWorkspace as unarchiveWorkspace, workspaces_updateWorkspace as updateWorkspace, workspaces_workspaceRoleLabel as workspaceRoleLabel };
|
|
2961
3043
|
}
|
|
2962
3044
|
|
|
2963
3045
|
/**
|
|
@@ -5031,6 +5113,7 @@ declare function listMine(arbi: ArbiClient): Promise<{
|
|
|
5031
5113
|
shared: boolean;
|
|
5032
5114
|
auto_sync: boolean;
|
|
5033
5115
|
synced_count: number;
|
|
5116
|
+
threads: number;
|
|
5034
5117
|
}[];
|
|
5035
5118
|
sync_status?: string | null | undefined;
|
|
5036
5119
|
last_sync_at?: string | null | undefined;
|
|
@@ -5083,6 +5166,7 @@ declare function enableMailboxSync(arbi: ArbiClient, vendor: string, body: Enabl
|
|
|
5083
5166
|
auto_rename: boolean;
|
|
5084
5167
|
shared: boolean;
|
|
5085
5168
|
auto_sync: boolean;
|
|
5169
|
+
threads: string[];
|
|
5086
5170
|
last_sync_at?: string | null | undefined;
|
|
5087
5171
|
}>;
|
|
5088
5172
|
/** Sync now; `workspaceExtId` picks which of the vendor's syncs runs. */
|
|
@@ -10556,8 +10640,11 @@ declare class Arbi {
|
|
|
10556
10640
|
}[];
|
|
10557
10641
|
next_cursor?: string | null | undefined;
|
|
10558
10642
|
}>;
|
|
10559
|
-
/**
|
|
10560
|
-
|
|
10643
|
+
/**
|
|
10644
|
+
* Add users to the open workspace; `confirmInvite` also invites emails not on ARBI yet. `role`
|
|
10645
|
+
* defaults to `collaborator`; `guest` makes a read-only member (shown as "Read only").
|
|
10646
|
+
*/
|
|
10647
|
+
addUsers: (emails: string[], role?: WorkspaceRoleName, options?: {
|
|
10561
10648
|
confirmInvite?: boolean;
|
|
10562
10649
|
}) => Promise<{
|
|
10563
10650
|
user: {
|
|
@@ -10617,7 +10704,7 @@ declare class Arbi {
|
|
|
10617
10704
|
workspaceId: string;
|
|
10618
10705
|
emails: string[];
|
|
10619
10706
|
sessionPubkeyB64: string;
|
|
10620
|
-
role?:
|
|
10707
|
+
role?: WorkspaceRoleName;
|
|
10621
10708
|
}) => Promise<{
|
|
10622
10709
|
user: {
|
|
10623
10710
|
external_id: string;
|
|
@@ -10647,7 +10734,7 @@ declare class Arbi {
|
|
|
10647
10734
|
grantAccess: (params: {
|
|
10648
10735
|
workspaceId: string;
|
|
10649
10736
|
emails: string[];
|
|
10650
|
-
role?:
|
|
10737
|
+
role?: WorkspaceRoleName;
|
|
10651
10738
|
}) => Promise<{
|
|
10652
10739
|
user: {
|
|
10653
10740
|
external_id: string;
|
|
@@ -10674,7 +10761,8 @@ declare class Arbi {
|
|
|
10674
10761
|
removeUsers: (userIds: string[], options?: {
|
|
10675
10762
|
workspaceId?: string;
|
|
10676
10763
|
}) => Promise<void>;
|
|
10677
|
-
|
|
10764
|
+
/** Change members' role; `guest` is read-only (shown as "Read only"). */
|
|
10765
|
+
setUserRole: (userIds: string[], role: WorkspaceRoleName) => Promise<{
|
|
10678
10766
|
user: {
|
|
10679
10767
|
external_id: string;
|
|
10680
10768
|
parent_ext_id?: string | null | undefined;
|
|
@@ -12605,6 +12693,16 @@ declare class Arbi {
|
|
|
12605
12693
|
id: string;
|
|
12606
12694
|
provider: string;
|
|
12607
12695
|
}) => Promise<void>;
|
|
12696
|
+
/**
|
|
12697
|
+
* File the ARBI mail waiting for a workspace (it arrived while the user was away) with this
|
|
12698
|
+
* session: the waiting messages' keys are bridged, then the server files them with the
|
|
12699
|
+
* workspace's key, deposited first without switching to it (see `fileWaitingNativeMail`).
|
|
12700
|
+
*/
|
|
12701
|
+
fileWaiting: (workspaceExtId: string) => Promise<{
|
|
12702
|
+
filed: number;
|
|
12703
|
+
waiting: number;
|
|
12704
|
+
failed: number;
|
|
12705
|
+
}>;
|
|
12608
12706
|
/**
|
|
12609
12707
|
* Open a native draft's body in the Word editor, unlocking its room for this session with the
|
|
12610
12708
|
* user's key when the server asks (see `openDraftEditor`).
|
|
@@ -14741,6 +14839,7 @@ declare class Arbi {
|
|
|
14741
14839
|
shared: boolean;
|
|
14742
14840
|
auto_sync: boolean;
|
|
14743
14841
|
synced_count: number;
|
|
14842
|
+
threads: number;
|
|
14744
14843
|
}[];
|
|
14745
14844
|
sync_status?: string | null | undefined;
|
|
14746
14845
|
last_sync_at?: string | null | undefined;
|
|
@@ -14790,6 +14889,7 @@ declare class Arbi {
|
|
|
14790
14889
|
auto_rename: boolean;
|
|
14791
14890
|
shared: boolean;
|
|
14792
14891
|
auto_sync: boolean;
|
|
14892
|
+
threads: string[];
|
|
14793
14893
|
last_sync_at?: string | null | undefined;
|
|
14794
14894
|
}>;
|
|
14795
14895
|
syncMailbox: (vendor: string, workspaceExtId?: string | null) => Promise<{
|