@arbidocs/sdk 0.4.158 → 0.4.160

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.
@@ -21,6 +21,15 @@ declare class ArbiApiError extends ArbiError {
21
21
  readonly detail?: string;
22
22
  constructor(message: string, apiError?: unknown, status?: number);
23
23
  }
24
+ /**
25
+ * A contact write refused because one of its addresses already belongs to another contact (one
26
+ * person = one row: a 409 with `contact_id`). `contactId` is that contact, or null when it is in an
27
+ * address book you cannot see.
28
+ */
29
+ declare class DuplicateContactError extends ArbiApiError {
30
+ readonly contactId: string | null;
31
+ constructor(message: string, contactId: string | null, apiError?: unknown);
32
+ }
24
33
  /**
25
34
  * Why a write was refused, for the person who made it: the server's own reason (an
26
35
  * {@link ArbiApiError}'s `detail`, or a raw error body's `detail`), else `fallback` — never a
@@ -942,7 +951,12 @@ interface UploadBatchResult {
942
951
  skipped: SkippedFile[];
943
952
  }>;
944
953
  }
945
- declare function listDocuments(arbi: ArbiClient): Promise<{
954
+ /**
955
+ * The documents of the open workspace, or of `workspaceExtId` (its key must be on the session:
956
+ * `arbi.workspaces.open`). Every document returned for a named workspace is checked to belong to
957
+ * it, so a server that ignores the parameter cannot hand back the open workspace's documents.
958
+ */
959
+ declare function listDocuments(arbi: ArbiClient, workspaceExtId?: string | null): Promise<{
946
960
  external_id: string;
947
961
  workspace_ext_id: string;
948
962
  file_name?: string | null | undefined;
@@ -1490,7 +1504,8 @@ declare namespace documents {
1490
1504
  * Signature requests — browser-safe functions.
1491
1505
  *
1492
1506
  * An author places fields (signature, initials, date, name) on the PDF of one document version and
1493
- * assigns each to a workspace member; `send` notifies every signer. Signers sign in the app (or with
1507
+ * assigns each to a workspace member or anyone by email (invited, who signs once they join); `send`
1508
+ * notifies every signer who is a member. Signers sign in the app (or with
1494
1509
  * `@arbidocs/react/document-tools`'s `signSignatureRequest`): signing re-derives their key from
1495
1510
  * their password. The last signature saves the signed copy as the document's next version.
1496
1511
  */
@@ -1518,10 +1533,13 @@ declare function listSignatureRequests(arbi: ArbiClient, awaitingMe?: boolean):
1518
1533
  required: boolean;
1519
1534
  }[];
1520
1535
  signers: {
1521
- user_ext_id: string;
1536
+ external_id: string;
1537
+ user_ext_id?: string | null | undefined;
1522
1538
  name: string;
1523
1539
  email?: string | null | undefined;
1524
1540
  status: components["schemas"]["SignerStatus"];
1541
+ progress: components["schemas"]["SignerProgress"];
1542
+ viewed_at?: string | null | undefined;
1525
1543
  signed_at?: string | null | undefined;
1526
1544
  reference?: string | null | undefined;
1527
1545
  fields: number;
@@ -1553,10 +1571,13 @@ declare function listDocumentSignatureRequests(arbi: ArbiClient, docId: string):
1553
1571
  required: boolean;
1554
1572
  }[];
1555
1573
  signers: {
1556
- user_ext_id: string;
1574
+ external_id: string;
1575
+ user_ext_id?: string | null | undefined;
1557
1576
  name: string;
1558
1577
  email?: string | null | undefined;
1559
1578
  status: components["schemas"]["SignerStatus"];
1579
+ progress: components["schemas"]["SignerProgress"];
1580
+ viewed_at?: string | null | undefined;
1560
1581
  signed_at?: string | null | undefined;
1561
1582
  reference?: string | null | undefined;
1562
1583
  fields: number;
@@ -1587,10 +1608,13 @@ declare function getSignatureRequest(arbi: ArbiClient, requestId: string): Promi
1587
1608
  required: boolean;
1588
1609
  }[];
1589
1610
  signers: {
1590
- user_ext_id: string;
1611
+ external_id: string;
1612
+ user_ext_id?: string | null | undefined;
1591
1613
  name: string;
1592
1614
  email?: string | null | undefined;
1593
1615
  status: components["schemas"]["SignerStatus"];
1616
+ progress: components["schemas"]["SignerProgress"];
1617
+ viewed_at?: string | null | undefined;
1594
1618
  signed_at?: string | null | undefined;
1595
1619
  reference?: string | null | undefined;
1596
1620
  fields: number;
@@ -1613,10 +1637,16 @@ declare function suggestSignatureFields(arbi: ArbiClient, docId: string, version
1613
1637
  group: number;
1614
1638
  role?: string | null | undefined;
1615
1639
  anchor: string;
1640
+ source: "anchor" | "layout";
1641
+ signer_email?: string | null | undefined;
1642
+ signer_name?: string | null | undefined;
1643
+ required: boolean;
1616
1644
  }[]>;
1617
1645
  /**
1618
- * Assign suggested blocks to signers in order: block n goes to `signers[n]` (`group` numbering).
1619
- * Blocks beyond the list are left out.
1646
+ * Fields from suggestions. A field placed in the Word document that names its signer goes to them
1647
+ * (by email: the server resolves a member's email to them, and invites anyone else's). The other
1648
+ * blocks go to `signers` in order: block n of them to `signers[n]` (`group` numbering); blocks
1649
+ * beyond the list are left out.
1620
1650
  */
1621
1651
  declare function assignSuggestions(suggestions: SuggestedSignatureField[], signers: string[]): SignatureField[];
1622
1652
  interface CreateSignatureRequestOptions {
@@ -1645,10 +1675,13 @@ declare function createSignatureRequest(arbi: ArbiClient, docId: string, { field
1645
1675
  required: boolean;
1646
1676
  }[];
1647
1677
  signers: {
1648
- user_ext_id: string;
1678
+ external_id: string;
1679
+ user_ext_id?: string | null | undefined;
1649
1680
  name: string;
1650
1681
  email?: string | null | undefined;
1651
1682
  status: components["schemas"]["SignerStatus"];
1683
+ progress: components["schemas"]["SignerProgress"];
1684
+ viewed_at?: string | null | undefined;
1652
1685
  signed_at?: string | null | undefined;
1653
1686
  reference?: string | null | undefined;
1654
1687
  fields: number;
@@ -1679,10 +1712,13 @@ declare function sendSignatureRequest(arbi: ArbiClient, requestId: string): Prom
1679
1712
  required: boolean;
1680
1713
  }[];
1681
1714
  signers: {
1682
- user_ext_id: string;
1715
+ external_id: string;
1716
+ user_ext_id?: string | null | undefined;
1683
1717
  name: string;
1684
1718
  email?: string | null | undefined;
1685
1719
  status: components["schemas"]["SignerStatus"];
1720
+ progress: components["schemas"]["SignerProgress"];
1721
+ viewed_at?: string | null | undefined;
1686
1722
  signed_at?: string | null | undefined;
1687
1723
  reference?: string | null | undefined;
1688
1724
  fields: number;
@@ -1713,10 +1749,13 @@ declare function voidSignatureRequest(arbi: ArbiClient, requestId: string): Prom
1713
1749
  required: boolean;
1714
1750
  }[];
1715
1751
  signers: {
1716
- user_ext_id: string;
1752
+ external_id: string;
1753
+ user_ext_id?: string | null | undefined;
1717
1754
  name: string;
1718
1755
  email?: string | null | undefined;
1719
1756
  status: components["schemas"]["SignerStatus"];
1757
+ progress: components["schemas"]["SignerProgress"];
1758
+ viewed_at?: string | null | undefined;
1720
1759
  signed_at?: string | null | undefined;
1721
1760
  reference?: string | null | undefined;
1722
1761
  fields: number;
@@ -1747,10 +1786,13 @@ declare function declineSignatureRequest(arbi: ArbiClient, requestId: string, re
1747
1786
  required: boolean;
1748
1787
  }[];
1749
1788
  signers: {
1750
- user_ext_id: string;
1789
+ external_id: string;
1790
+ user_ext_id?: string | null | undefined;
1751
1791
  name: string;
1752
1792
  email?: string | null | undefined;
1753
1793
  status: components["schemas"]["SignerStatus"];
1794
+ progress: components["schemas"]["SignerProgress"];
1795
+ viewed_at?: string | null | undefined;
1754
1796
  signed_at?: string | null | undefined;
1755
1797
  reference?: string | null | undefined;
1756
1798
  fields: number;
@@ -2099,7 +2141,8 @@ declare function grantTemporaryWorkspaceAccess(arbi: ArbiClient, params: {
2099
2141
  agent_ext_id?: string | null | undefined;
2100
2142
  is_temporary: boolean;
2101
2143
  }[]>;
2102
- declare function removeWorkspaceUsers(arbi: ArbiClient, userIds: string[]): Promise<void>;
2144
+ /** Remove users from the open workspace, or from `workspaceExtId` (its key on the session). */
2145
+ declare function removeWorkspaceUsers(arbi: ArbiClient, userIds: string[], workspaceExtId?: string | null): Promise<void>;
2103
2146
  declare function setUserRole(arbi: ArbiClient, userIds: string[], role: 'owner' | 'collaborator' | 'guest'): Promise<{
2104
2147
  user: {
2105
2148
  external_id: string;
@@ -3144,7 +3187,11 @@ declare function listSkills(arbi: ArbiClient, options?: {
3144
3187
  * Whether a skill is the caller's own and shared with everyone (``global``), so saving it again
3145
3188
  * keeps it shared. Any other skill (private, someone else's, a built-in) is saved private.
3146
3189
  */
3147
- declare function isSharedSkill(skill: Pick<SkillSummary, 'visibility' | 'is_owner'>): boolean;
3190
+ declare function isSharedSkill(skill: {
3191
+ visibility?: SkillSummary['visibility'] | null;
3192
+ /** Absent (an older server): the caller's own, as the server defaults it. */
3193
+ is_owner?: SkillSummary['is_owner'] | null;
3194
+ }): boolean;
3148
3195
  /**
3149
3196
  * Save a SKILL.md as the caller's skill ``slug`` (``skills/<slug>/SKILL.md``, ``wp_type=skill``).
3150
3197
  * Private (the uploader's own) unless ``shared``: saving a skill never publishes it to everyone
@@ -3562,21 +3609,38 @@ declare namespace tags {
3562
3609
  /**
3563
3610
  * Contact operations (`/v1/contacts`) — one address book: registered people, pending invitations and plain
3564
3611
  * cards. A card's details are encrypted under its address book's key; a session without that key bridged
3565
- * (the web app bridges it, the CLI does not yet) gets `card: null` for stored cards and cannot write them.
3612
+ * (`Arbi.contacts` bridges it first, through the calendar keys) gets `card: null` for stored cards and
3613
+ * cannot write them (423).
3566
3614
  */
3567
3615
 
3568
- type Contact = components['schemas']['ContactResponse'];
3569
- type ContactCardWrite = components['schemas']['ContactCardWrite'];
3570
- type ContactCreate = components['schemas']['ContactCreate'];
3571
- type PersonSuggestion = components['schemas']['PersonSuggestion'];
3616
+ type S$1 = components['schemas'];
3617
+ type Contact = S$1['ContactResponse'];
3618
+ type ContactStatus = Contact['status'];
3619
+ type ContactCard = S$1['ContactCard'];
3620
+ type ContactCardWrite = S$1['ContactCardWrite'];
3621
+ type ContactCreate = S$1['ContactCreate'];
3622
+ type ContactImportResult = S$1['ContactImportResult'];
3623
+ type PersonSuggestion = S$1['PersonSuggestion'];
3572
3624
  declare function listContacts(arbi: ArbiClient): Promise<Contact[]>;
3573
3625
  /** Invite or link people by e-mail (max 100); one row per address with its `outcome`. */
3574
3626
  declare function inviteContacts(arbi: ArbiClient, emails: string[]): Promise<Contact[]>;
3575
3627
  /** Create a card, optionally linking `email` and inviting it (`invite: true`). */
3576
3628
  declare function createContact(arbi: ArbiClient, body: ContactCreate): Promise<Contact>;
3629
+ /** Replace a contact's card details. */
3577
3630
  declare function updateContact(arbi: ArbiClient, contactId: string, card: ContactCardWrite): Promise<Contact>;
3631
+ /**
3632
+ * Link a card-only contact to an ARBI account in place: `email` becomes its linked address (registered →
3633
+ * linked at once, otherwise the platform invitation is sent); the row keeps its id and card. Rejects with
3634
+ * {@link DuplicateContactError} when `email` already belongs to another of your contacts.
3635
+ */
3636
+ declare function linkContact(arbi: ArbiClient, contactId: string, email: string, card: ContactCardWrite): Promise<Contact>;
3578
3637
  /** Delete a contact (or withdraw its invitation). */
3579
3638
  declare function deleteContact(arbi: ArbiClient, contactId: string): Promise<void>;
3639
+ /**
3640
+ * Import a .vcf file (Pro only: 403 `pro_required` otherwise). New people become cards, people already in
3641
+ * your contacts are matched, the rest come back in `skipped` with a reason. Never invites.
3642
+ */
3643
+ declare function importContacts(arbi: ArbiClient, file: Blob): Promise<ContactImportResult>;
3580
3644
  /** People matching `q`: your contacts and registered people who share a workspace with you. */
3581
3645
  declare function searchContacts(arbi: ArbiClient, q: string): Promise<PersonSuggestion[]>;
3582
3646
  /**
@@ -3591,18 +3655,23 @@ declare function groupContactsByStatus<T extends {
3591
3655
  };
3592
3656
 
3593
3657
  type contacts_Contact = Contact;
3658
+ type contacts_ContactCard = ContactCard;
3594
3659
  type contacts_ContactCardWrite = ContactCardWrite;
3595
3660
  type contacts_ContactCreate = ContactCreate;
3661
+ type contacts_ContactImportResult = ContactImportResult;
3662
+ type contacts_ContactStatus = ContactStatus;
3596
3663
  type contacts_PersonSuggestion = PersonSuggestion;
3597
3664
  declare const contacts_createContact: typeof createContact;
3598
3665
  declare const contacts_deleteContact: typeof deleteContact;
3599
3666
  declare const contacts_groupContactsByStatus: typeof groupContactsByStatus;
3667
+ declare const contacts_importContacts: typeof importContacts;
3600
3668
  declare const contacts_inviteContacts: typeof inviteContacts;
3669
+ declare const contacts_linkContact: typeof linkContact;
3601
3670
  declare const contacts_listContacts: typeof listContacts;
3602
3671
  declare const contacts_searchContacts: typeof searchContacts;
3603
3672
  declare const contacts_updateContact: typeof updateContact;
3604
3673
  declare namespace contacts {
3605
- export { type contacts_Contact as Contact, type contacts_ContactCardWrite as ContactCardWrite, type contacts_ContactCreate as ContactCreate, type contacts_PersonSuggestion as PersonSuggestion, contacts_createContact as createContact, contacts_deleteContact as deleteContact, contacts_groupContactsByStatus as groupContactsByStatus, contacts_inviteContacts as inviteContacts, contacts_listContacts as listContacts, contacts_searchContacts as searchContacts, contacts_updateContact as updateContact };
3674
+ export { type contacts_Contact as Contact, type contacts_ContactCard as ContactCard, type contacts_ContactCardWrite as ContactCardWrite, type contacts_ContactCreate as ContactCreate, type contacts_ContactImportResult as ContactImportResult, type contacts_ContactStatus as ContactStatus, type contacts_PersonSuggestion as PersonSuggestion, contacts_createContact as createContact, contacts_deleteContact as deleteContact, contacts_groupContactsByStatus as groupContactsByStatus, contacts_importContacts as importContacts, contacts_inviteContacts as inviteContacts, contacts_linkContact as linkContact, contacts_listContacts as listContacts, contacts_searchContacts as searchContacts, contacts_updateContact as updateContact };
3606
3675
  }
3607
3676
 
3608
3677
  /**
@@ -3729,6 +3798,26 @@ type DecryptedChatMessage = ChatMessageResponse & {
3729
3798
  * Nothing to decrypt — render it as a "Message deleted" tombstone.
3730
3799
  */
3731
3800
  declare function chatMessageTombstone<T extends ChatMessageResponse>(message: T): T;
3801
+ /** What a stored call-transcript chat message holds (encrypted under the chat key). */
3802
+ interface TranscriptContent {
3803
+ text: string;
3804
+ speaker_identity: string;
3805
+ speaker_name: string;
3806
+ started_at: string | null;
3807
+ }
3808
+ /** A chat message of kind `transcript` (the generated schema does not list the kind yet). */
3809
+ declare function isTranscriptMessage(message: {
3810
+ kind?: string | null;
3811
+ }): boolean;
3812
+ /** The decrypted content of a transcript chat message, or null when it is not one. */
3813
+ declare function parseTranscriptContent(content: string | null | undefined): TranscriptContent | null;
3814
+ /** Shown for a message (or title) that does not open, in a one-line preview. */
3815
+ declare const ENCRYPTED_PREVIEW = "[Encrypted]";
3816
+ /**
3817
+ * A decrypted message as one line (a chat list's preview): the text, what kind of thing it is
3818
+ * (a call, a recording, a transcript line) or the files it carries. Null for a tombstone.
3819
+ */
3820
+ declare function chatMessagePreview(message: DecryptedChatMessage): string | null;
3732
3821
  /** Decrypt one message with the key of its own epoch. Never throws. A tombstone is not decrypted. */
3733
3822
  declare function decryptChatMessage(ring: ChatKeyRing, message: ChatMessageResponse): Promise<DecryptedChatMessage>;
3734
3823
  declare function decryptChatMessages(ring: ChatKeyRing, messages: ChatMessageResponse[]): Promise<DecryptedChatMessage[]>;
@@ -3755,10 +3844,14 @@ declare function createGroupChat(arbi: ArbiClient, crypto: ChatCryptoContext, pa
3755
3844
  /** Set (or clear) a group's title, encrypted under the current epoch. */
3756
3845
  declare function renameChat(arbi: ArbiClient, ring: ChatKeyRing, title: string | null): Promise<ChatResponse>;
3757
3846
  /**
3758
- * Add people to a group: the current epoch is sealed to each, so they read this epoch's history.
3847
+ * Add people to a group or meeting chat: the current epoch is sealed to each, so they read this
3848
+ * epoch's history. A meeting chat's new members also get its call key K sealed to them
3849
+ * (`call_sealed_key`), so every member can always join its call: pass `callKey` for one.
3759
3850
  * A direct chat never grows (the server answers 409) — create a new group instead.
3760
3851
  */
3761
- declare function addChatMembers(arbi: ArbiClient, ring: ChatKeyRing, members: ChatMemberKey[]): Promise<ChatResponse>;
3852
+ declare function addChatMembers(arbi: ArbiClient, ring: ChatKeyRing, members: ChatMemberKey[], options?: {
3853
+ callKey?: Uint8Array | null;
3854
+ }): Promise<ChatResponse>;
3762
3855
  /** Remove a member (owners) or leave (my own id). The chat then needs a new epoch. */
3763
3856
  declare function removeChatMember(arbi: ArbiClient, chatExtId: string, userExtId: string): Promise<void>;
3764
3857
  /**
@@ -3771,6 +3864,8 @@ declare function rotateChatKey(arbi: ArbiClient, chat: ChatResponse, ring: ChatK
3771
3864
  * next epoch. Another member may win the race (409); then the fresh chat is fetched instead.
3772
3865
  */
3773
3866
  declare function ensureChatKeyCurrent(arbi: ArbiClient, chat: ChatResponse, crypto: ChatCryptoContext): Promise<ChatResponse>;
3867
+ /** Messages per page of a thread. */
3868
+ declare const CHAT_PAGE_SIZE = 50;
3774
3869
  /** One page of messages, newest first. Page backwards with `before` = the oldest id you have. */
3775
3870
  declare function listChatMessages(arbi: ArbiClient, chatExtId: string, options?: {
3776
3871
  before?: string;
@@ -3794,6 +3889,8 @@ declare function deleteChatMessage(arbi: ArbiClient, chatExtId: string, messageE
3794
3889
  declare function markChatRead(arbi: ArbiClient, chatExtId: string, messageExtId?: string): Promise<components['schemas']['ChatReadResponse']>;
3795
3890
  /** True when `member` has read `message` (by their watermark). */
3796
3891
  declare function hasRead(member: Pick<ChatMemberResponse, 'last_read_at'> | undefined, message: Pick<ChatMessageResponse, 'created_at'>): boolean;
3892
+ /** True when every member but me has read `message` (a group's or a direct chat's receipt). */
3893
+ declare function readByOthers(chat: Pick<ChatResponse, 'members'>, myExtId: string | null, message: Pick<ChatMessageResponse, 'created_at'>): boolean;
3797
3894
  /**
3798
3895
  * Resolve a peer reference (email OR `usr-`/`agt-` external_id) to `{ extId, pubKey }`. Walks
3799
3896
  * contacts, my agents, then current-workspace members; null when nothing matches.
@@ -3815,6 +3912,7 @@ declare function loadDecryptedChat(arbi: ArbiClient, crypto: ChatCryptoContext,
3815
3912
 
3816
3913
  declare const chats_CHAT_ATTACHMENT_MAX_BYTES: typeof CHAT_ATTACHMENT_MAX_BYTES;
3817
3914
  declare const chats_CHAT_ATTACHMENT_MAX_FILES: typeof CHAT_ATTACHMENT_MAX_FILES;
3915
+ declare const chats_CHAT_PAGE_SIZE: typeof CHAT_PAGE_SIZE;
3818
3916
  type chats_ChatAttachmentFile = ChatAttachmentFile;
3819
3917
  type chats_ChatAttachmentInput = ChatAttachmentInput;
3820
3918
  type chats_ChatCryptoContext = ChatCryptoContext;
@@ -3827,9 +3925,12 @@ type chats_ChatResponse = ChatResponse;
3827
3925
  declare const chats_DECRYPTION_FAILED: typeof DECRYPTION_FAILED;
3828
3926
  type chats_DecryptedChat = DecryptedChat;
3829
3927
  type chats_DecryptedChatMessage = DecryptedChatMessage;
3928
+ declare const chats_ENCRYPTED_PREVIEW: typeof ENCRYPTED_PREVIEW;
3830
3929
  type chats_ResolvedRecipient = ResolvedRecipient;
3831
3930
  type chats_SendChatMessageOptions = SendChatMessageOptions;
3931
+ type chats_TranscriptContent = TranscriptContent;
3832
3932
  declare const chats_addChatMembers: typeof addChatMembers;
3933
+ declare const chats_chatMessagePreview: typeof chatMessagePreview;
3833
3934
  declare const chats_chatMessageTombstone: typeof chatMessageTombstone;
3834
3935
  declare const chats_checkChatAttachmentLimits: typeof checkChatAttachmentLimits;
3835
3936
  declare const chats_createChatCryptoContext: typeof createChatCryptoContext;
@@ -3846,6 +3947,7 @@ declare const chats_ensureChatKeyCurrent: typeof ensureChatKeyCurrent;
3846
3947
  declare const chats_getChat: typeof getChat;
3847
3948
  declare const chats_hasRead: typeof hasRead;
3848
3949
  declare const chats_isAgentExtId: typeof isAgentExtId;
3950
+ declare const chats_isTranscriptMessage: typeof isTranscriptMessage;
3849
3951
  declare const chats_listChatMessages: typeof listChatMessages;
3850
3952
  declare const chats_listChats: typeof listChats;
3851
3953
  declare const chats_loadDecryptedChat: typeof loadDecryptedChat;
@@ -3853,6 +3955,8 @@ declare const chats_markChatRead: typeof markChatRead;
3853
3955
  declare const chats_openChatKeyRing: typeof openChatKeyRing;
3854
3956
  declare const chats_openDirectChat: typeof openDirectChat;
3855
3957
  declare const chats_parseChatAttachmentManifest: typeof parseChatAttachmentManifest;
3958
+ declare const chats_parseTranscriptContent: typeof parseTranscriptContent;
3959
+ declare const chats_readByOthers: typeof readByOthers;
3856
3960
  declare const chats_removeChatMember: typeof removeChatMember;
3857
3961
  declare const chats_renameChat: typeof renameChat;
3858
3962
  declare const chats_resolveRecipient: typeof resolveRecipient;
@@ -3863,7 +3967,7 @@ declare const chats_serializeChatAttachmentManifest: typeof serializeChatAttachm
3863
3967
  declare const chats_uploadChatAttachment: typeof uploadChatAttachment;
3864
3968
  declare const chats_uploadChatAttachments: typeof uploadChatAttachments;
3865
3969
  declare namespace chats {
3866
- export { chats_CHAT_ATTACHMENT_MAX_BYTES as CHAT_ATTACHMENT_MAX_BYTES, chats_CHAT_ATTACHMENT_MAX_FILES as CHAT_ATTACHMENT_MAX_FILES, type chats_ChatAttachmentFile as ChatAttachmentFile, type chats_ChatAttachmentInput as ChatAttachmentInput, type chats_ChatCryptoContext as ChatCryptoContext, type chats_ChatKeyRing as ChatKeyRing, type chats_ChatKind as ChatKind, type chats_ChatMemberKey as ChatMemberKey, type chats_ChatMemberResponse as ChatMemberResponse, type chats_ChatMessageResponse as ChatMessageResponse, type chats_ChatResponse as ChatResponse, chats_DECRYPTION_FAILED as DECRYPTION_FAILED, type chats_DecryptedChat as DecryptedChat, type chats_DecryptedChatMessage as DecryptedChatMessage, type chats_ResolvedRecipient as ResolvedRecipient, type chats_SendChatMessageOptions as SendChatMessageOptions, chats_addChatMembers as addChatMembers, chats_chatMessageTombstone as chatMessageTombstone, chats_checkChatAttachmentLimits as checkChatAttachmentLimits, chats_createChatCryptoContext as createChatCryptoContext, chats_createGroupChat as createGroupChat, chats_decryptChatAttachmentManifest as decryptChatAttachmentManifest, chats_decryptChatMessage as decryptChatMessage, chats_decryptChatMessages as decryptChatMessages, chats_decryptChatTitle as decryptChatTitle, chats_deleteChatMessage as deleteChatMessage, chats_directPeer as directPeer, chats_downloadChatAttachment as downloadChatAttachment, chats_encryptChatAttachmentManifest as encryptChatAttachmentManifest, chats_ensureChatKeyCurrent as ensureChatKeyCurrent, chats_getChat as getChat, chats_hasRead as hasRead, chats_isAgentExtId as isAgentExtId, chats_listChatMessages as listChatMessages, chats_listChats as listChats, chats_loadDecryptedChat as loadDecryptedChat, chats_markChatRead as markChatRead, chats_openChatKeyRing as openChatKeyRing, chats_openDirectChat as openDirectChat, chats_parseChatAttachmentManifest as parseChatAttachmentManifest, chats_removeChatMember as removeChatMember, chats_renameChat as renameChat, chats_resolveRecipient as resolveRecipient, chats_rotateChatKey as rotateChatKey, chats_sendChatMessage as sendChatMessage, chats_sendDirectMessage as sendDirectMessage, chats_serializeChatAttachmentManifest as serializeChatAttachmentManifest, chats_uploadChatAttachment as uploadChatAttachment, chats_uploadChatAttachments as uploadChatAttachments };
3970
+ export { chats_CHAT_ATTACHMENT_MAX_BYTES as CHAT_ATTACHMENT_MAX_BYTES, chats_CHAT_ATTACHMENT_MAX_FILES as CHAT_ATTACHMENT_MAX_FILES, chats_CHAT_PAGE_SIZE as CHAT_PAGE_SIZE, type chats_ChatAttachmentFile as ChatAttachmentFile, type chats_ChatAttachmentInput as ChatAttachmentInput, type chats_ChatCryptoContext as ChatCryptoContext, type chats_ChatKeyRing as ChatKeyRing, type chats_ChatKind as ChatKind, type chats_ChatMemberKey as ChatMemberKey, type chats_ChatMemberResponse as ChatMemberResponse, type chats_ChatMessageResponse as ChatMessageResponse, type chats_ChatResponse as ChatResponse, chats_DECRYPTION_FAILED as DECRYPTION_FAILED, type chats_DecryptedChat as DecryptedChat, type chats_DecryptedChatMessage as DecryptedChatMessage, chats_ENCRYPTED_PREVIEW as ENCRYPTED_PREVIEW, type chats_ResolvedRecipient as ResolvedRecipient, type chats_SendChatMessageOptions as SendChatMessageOptions, type chats_TranscriptContent as TranscriptContent, chats_addChatMembers as addChatMembers, chats_chatMessagePreview as chatMessagePreview, chats_chatMessageTombstone as chatMessageTombstone, chats_checkChatAttachmentLimits as checkChatAttachmentLimits, chats_createChatCryptoContext as createChatCryptoContext, chats_createGroupChat as createGroupChat, chats_decryptChatAttachmentManifest as decryptChatAttachmentManifest, chats_decryptChatMessage as decryptChatMessage, chats_decryptChatMessages as decryptChatMessages, chats_decryptChatTitle as decryptChatTitle, chats_deleteChatMessage as deleteChatMessage, chats_directPeer as directPeer, chats_downloadChatAttachment as downloadChatAttachment, chats_encryptChatAttachmentManifest as encryptChatAttachmentManifest, chats_ensureChatKeyCurrent as ensureChatKeyCurrent, chats_getChat as getChat, chats_hasRead as hasRead, chats_isAgentExtId as isAgentExtId, chats_isTranscriptMessage as isTranscriptMessage, chats_listChatMessages as listChatMessages, chats_listChats as listChats, chats_loadDecryptedChat as loadDecryptedChat, chats_markChatRead as markChatRead, chats_openChatKeyRing as openChatKeyRing, chats_openDirectChat as openDirectChat, chats_parseChatAttachmentManifest as parseChatAttachmentManifest, chats_parseTranscriptContent as parseTranscriptContent, chats_readByOthers as readByOthers, chats_removeChatMember as removeChatMember, chats_renameChat as renameChat, chats_resolveRecipient as resolveRecipient, chats_rotateChatKey as rotateChatKey, chats_sendChatMessage as sendChatMessage, chats_sendDirectMessage as sendDirectMessage, chats_serializeChatAttachmentManifest as serializeChatAttachmentManifest, chats_uploadChatAttachment as uploadChatAttachment, chats_uploadChatAttachments as uploadChatAttachments };
3867
3971
  }
3868
3972
 
3869
3973
  /**
@@ -7128,7 +7232,12 @@ declare class Arbi {
7128
7232
  private currentWorkspaceId;
7129
7233
  /** Wrapped workspace keys seen in the last list/create, so selecting needs no re-fetch. */
7130
7234
  private readonly wrappedKeys;
7235
+ /** Workspaces whose key this server session holds (`workspaces.open`), keyed per session key. */
7236
+ private readonly openedWorkspaces;
7237
+ private openedForSessionKey;
7131
7238
  private chatCryptoContext;
7239
+ /** The chat keys I hold, opened once per set of epochs (`chatRingSignature`). */
7240
+ private chatRings;
7132
7241
  private readonly sessionExpiredListeners;
7133
7242
  private readonly options;
7134
7243
  constructor(options: ArbiOptions);
@@ -7182,9 +7291,19 @@ declare class Arbi {
7182
7291
  /** A workspace's key, sealed to the caller's own session (what `/open` and `POST /workspace/users` take). */
7183
7292
  private sealWorkspaceKey;
7184
7293
  /**
7185
- * Select a workspace by ID. Uses the wrapped key from the last workspace list or create (the
7186
- * list is fetched only when the workspace is not known yet), decrypts it, and opens the
7187
- * workspace on the server.
7294
+ * Make a workspace usable for requests that name it, WITHOUT changing the current workspace (on
7295
+ * the server or here): its key, sealed to this server session, is deposited with `/prime-key`.
7296
+ * Idempotent: cached per server session (a re-login rotates it), concurrent calls share one
7297
+ * request, and the current workspace is already open.
7298
+ */
7299
+ private openWorkspace;
7300
+ /** The workspace a call names, opened for this session; `undefined` for the current one. */
7301
+ private targetWorkspace;
7302
+ /**
7303
+ * Make a workspace the CURRENT one: decrypt its key, open it on the server (which makes it the
7304
+ * session's active workspace) and record it in the session. This is navigation: only the host's
7305
+ * workspace switch calls it. Package code that needs another workspace calls
7306
+ * `workspaces.open(id)` and passes the workspace to the request instead.
7188
7307
  */
7189
7308
  selectWorkspace(workspaceId: string): Promise<void>;
7190
7309
  /**
@@ -8597,6 +8716,13 @@ declare class Arbi {
8597
8716
  }>;
8598
8717
  };
8599
8718
  readonly account: {
8719
+ /** Which paid features (native mail, the calendar, hosting calls) this person may use, and why not. */
8720
+ entitlements: () => Promise<{
8721
+ mail: boolean;
8722
+ calendar: boolean;
8723
+ host_calls: boolean;
8724
+ reason?: ("pro_required" | "external_user" | "not_entitled") | null;
8725
+ }>;
8600
8726
  /** Send a verification code to the new address (not for SSO accounts). */
8601
8727
  requestEmailChange: (newEmail: string) => Promise<void>;
8602
8728
  /** Confirm the email change with the emailed code; the session and profile follow. */
@@ -8693,6 +8819,13 @@ declare class Arbi {
8693
8819
  };
8694
8820
  private syncIdentity;
8695
8821
  readonly workspaces: {
8822
+ /**
8823
+ * Make a workspace usable for requests that name it, WITHOUT changing the current workspace
8824
+ * (on the server or in the host). `removeUsers` and `documents.list` open the workspace they
8825
+ * are given themselves; `documents.upload` with `workspaceExtId` needs it opened first.
8826
+ * Idempotent and cached per server session. Navigation uses `selectWorkspace`.
8827
+ */
8828
+ open: (workspaceId: string) => Promise<void>;
8696
8829
  /** Hand this server session a workspace's key (sealed to the session) without opening it. */
8697
8830
  primeKey: (workspaceExtId: string, sessionSealedKey: string) => Promise<void>;
8698
8831
  list: () => Promise<{
@@ -8992,7 +9125,10 @@ declare class Arbi {
8992
9125
  agent_ext_id?: string | null | undefined;
8993
9126
  is_temporary: boolean;
8994
9127
  }[]>;
8995
- removeUsers: (userIds: string[]) => Promise<void>;
9128
+ /** Remove users (or agents) from the current workspace, or from `options.workspaceId`. */
9129
+ removeUsers: (userIds: string[], options?: {
9130
+ workspaceId?: string;
9131
+ }) => Promise<void>;
8996
9132
  setUserRole: (userIds: string[], role: "owner" | "collaborator" | "guest") => Promise<{
8997
9133
  user: {
8998
9134
  external_id: string;
@@ -9076,7 +9212,10 @@ declare class Arbi {
9076
9212
  }>;
9077
9213
  };
9078
9214
  readonly documents: {
9079
- list: () => Promise<{
9215
+ /** The current workspace's documents, or `options.workspaceId`'s (opened, not switched to). */
9216
+ list: (options?: {
9217
+ workspaceId?: string;
9218
+ }) => Promise<{
9080
9219
  external_id: string;
9081
9220
  workspace_ext_id: string;
9082
9221
  file_name?: string | null | undefined;
@@ -10761,6 +10900,13 @@ declare class Arbi {
10761
10900
  is_owner: boolean;
10762
10901
  content?: string | null;
10763
10902
  }[]>;
10903
+ /**
10904
+ * Save a SKILL.md as the caller's skill ``slug``: private unless ``shared`` (pass
10905
+ * ``shared: isSharedSkill(skill)`` when changing an existing skill, so a shared one stays shared).
10906
+ */
10907
+ uploadSkill: (slug: string, markdown: string, options?: {
10908
+ shared?: boolean;
10909
+ }) => Promise<UploadResult>;
10764
10910
  /**
10765
10911
  * Search documents without LLM generation (retrieval only). No `docIds` searches the whole
10766
10912
  * workspace; `searchChunks(result)` ranks the passages found.
@@ -11070,7 +11216,27 @@ declare class Arbi {
11070
11216
  outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
11071
11217
  outcome_detail?: string | null;
11072
11218
  }>;
11219
+ /** Link a card-only contact to `email` (invites it, or links the account at once). */
11220
+ link: (contactId: string, email: string, card: ContactCardWrite) => Promise<{
11221
+ external_id?: string | null;
11222
+ email?: string | null;
11223
+ user?: components["schemas"]["UserResponse"] | null;
11224
+ status: ("registered" | "invited" | "expired" | "card") | "failed";
11225
+ card?: components["schemas"]["ContactCard"] | null;
11226
+ address_book_ext_id?: string | null;
11227
+ created_at: string;
11228
+ shared_workspace_ext_id?: string | null;
11229
+ outcome?: ("invited" | "reinvited" | "not_resent_still_pending" | "contact_added" | "already_contact" | "failed") | null;
11230
+ outcome_detail?: string | null;
11231
+ }>;
11073
11232
  delete: (contactId: string) => Promise<void>;
11233
+ /** Import one .vcf file (Pro). */
11234
+ import: (file: Blob) => Promise<{
11235
+ added: number;
11236
+ matched: number;
11237
+ skipped: components["schemas"]["ContactImportSkipped"][];
11238
+ total: number;
11239
+ }>;
11074
11240
  search: (q: string) => Promise<{
11075
11241
  email: string;
11076
11242
  name?: string | null;
@@ -11841,6 +12007,17 @@ declare class Arbi {
11841
12007
  private requireChatCrypto;
11842
12008
  /** Fetch a chat, sealing a new epoch first when it is `rotation_required`. */
11843
12009
  private readyChat;
12010
+ /**
12011
+ * The keys of `chat` I hold, opened once per set of epochs: a direct chat's pair key depends on
12012
+ * the members' public keys, a group's on the epochs sealed to me.
12013
+ */
12014
+ private chatRing;
12015
+ /**
12016
+ * Chats: direct (a person, myself, or my own agent), group and meeting. Every message, title and
12017
+ * attachment is end-to-end encrypted under the chat key in this process; a caller passes and
12018
+ * gets plaintext and never handles keys. Operations on an open chat take the `ChatResponse`
12019
+ * (no refetch); the by-id forms fetch it first.
12020
+ */
11844
12021
  readonly chats: {
11845
12022
  /** My chats, most recently active first (raw: titles/last messages are ciphertext). */
11846
12023
  list: (kind?: ChatKind) => Promise<{
@@ -11904,13 +12081,47 @@ declare class Arbi {
11904
12081
  last_message?: components["schemas"]["ChatMessageResponse"] | null;
11905
12082
  call_ext_id?: string | null;
11906
12083
  }>;
12084
+ /** Who I am in chats: my external id and the X25519 public key chat keys are sealed to. */
12085
+ identity: () => Promise<{
12086
+ externalId: string;
12087
+ publicKey: string;
12088
+ }>;
12089
+ /** The keys of a chat I hold (cached per set of epochs). */
12090
+ ring: (chat: ChatResponse) => Promise<ChatKeyRing>;
12091
+ /** Make a chat postable: seal the next epoch when it is `rotation_required`. */
12092
+ ready: (chat: ChatResponse) => Promise<{
12093
+ external_id: string;
12094
+ kind: "direct" | "group" | "meeting";
12095
+ title?: string | null;
12096
+ key_version: number;
12097
+ rotation_required: boolean;
12098
+ last_message_at?: string | null;
12099
+ created_at: string;
12100
+ members: components["schemas"]["ChatMemberResponse"][];
12101
+ my_keys?: components["schemas"]["ChatKeyResponse"][];
12102
+ unread_count: number;
12103
+ last_message?: components["schemas"]["ChatMessageResponse"] | null;
12104
+ call_ext_id?: string | null;
12105
+ }>;
12106
+ /** One page of messages decrypted, oldest first; page back with `before` (the oldest id). */
12107
+ page: (chat: ChatResponse, options?: {
12108
+ before?: string;
12109
+ limit?: number;
12110
+ }) => Promise<{
12111
+ messages: DecryptedChatMessage[];
12112
+ hasMore: boolean;
12113
+ }>;
12114
+ /** Decrypt one message of `chat` (never throws: a failure is marked on the row). */
12115
+ decrypt: (chat: ChatResponse, message: ChatMessageResponse) => Promise<DecryptedChatMessage>;
12116
+ /** A group's title in plaintext; null when it has none or it does not open. */
12117
+ title: (chat: ChatResponse) => Promise<string | null>;
11907
12118
  /** A chat with its keys opened, title and newest messages decrypted (oldest first). */
11908
12119
  load: (chatExtId: string, options?: {
11909
12120
  limit?: number;
11910
12121
  }) => Promise<DecryptedChat>;
11911
- /** Post plaintext to a chat (encrypted under its current epoch). */
11912
- send: (chatExtId: string, text: string, options?: SendChatMessageOptions) => Promise<DecryptedChatMessage>;
11913
- rename: (chatExtId: string, title: string | null) => Promise<{
12122
+ /** Post plaintext to a chat (encrypted under its current epoch). Returns it decrypted. */
12123
+ send: (chat: ChatResponse | string, text: string, options?: SendChatMessageOptions) => Promise<DecryptedChatMessage>;
12124
+ rename: (chat: ChatResponse | string, title: string | null) => Promise<{
11914
12125
  external_id: string;
11915
12126
  kind: "direct" | "group" | "meeting";
11916
12127
  title?: string | null;
@@ -11924,7 +12135,10 @@ declare class Arbi {
11924
12135
  last_message?: components["schemas"]["ChatMessageResponse"] | null;
11925
12136
  call_ext_id?: string | null;
11926
12137
  }>;
11927
- addMembers: (chatExtId: string, members: ChatMemberKey[]) => Promise<{
12138
+ /** Add people; a meeting chat also needs its call key, sealed to each (`callKey`). */
12139
+ addMembers: (chat: ChatResponse | string, members: ChatMemberKey[], options?: {
12140
+ callKey?: Uint8Array | null;
12141
+ }) => Promise<{
11928
12142
  external_id: string;
11929
12143
  kind: "direct" | "group" | "meeting";
11930
12144
  title?: string | null;
@@ -11938,13 +12152,20 @@ declare class Arbi {
11938
12152
  last_message?: components["schemas"]["ChatMessageResponse"] | null;
11939
12153
  call_ext_id?: string | null;
11940
12154
  }>;
11941
- /** Remove a member (owner) or leave (own id); a remaining member seals the next epoch. */
11942
- removeMember: (chatExtId: string, userExtId: string) => Promise<void>;
12155
+ /**
12156
+ * Remove a member (owner) or leave (own id). Removing someone seals the next epoch to the rest
12157
+ * straight away; when that fails, the next member to open the chat does it.
12158
+ */
12159
+ removeMember: (chat: ChatResponse | string, userExtId: string) => Promise<void>;
11943
12160
  markRead: (chatExtId: string, messageExtId?: string) => Promise<{
11944
12161
  chat_ext_id: string;
11945
12162
  last_read_at?: string | null;
11946
12163
  }>;
11947
12164
  deleteMessage: (chatExtId: string, messageExtId: string) => Promise<void>;
12165
+ /** Encrypt each file with its own key and upload the ciphertext (limits checked first). */
12166
+ uploadAttachments: (files: ChatAttachmentInput[]) => Promise<ChatAttachmentFile[]>;
12167
+ /** Fetch, decrypt and size-check one attachment. */
12168
+ downloadAttachment: (file: ChatAttachmentFile) => Promise<Uint8Array<ArrayBufferLike>>;
11948
12169
  };
11949
12170
  /** Direct-chat conveniences addressed by peer (email or `usr-`/`agt-` id). */
11950
12171
  readonly dm: {
@@ -13179,10 +13400,13 @@ declare class Arbi {
13179
13400
  required: boolean;
13180
13401
  }[];
13181
13402
  signers: {
13182
- user_ext_id: string;
13403
+ external_id: string;
13404
+ user_ext_id?: string | null | undefined;
13183
13405
  name: string;
13184
13406
  email?: string | null | undefined;
13185
13407
  status: components["schemas"]["SignerStatus"];
13408
+ progress: components["schemas"]["SignerProgress"];
13409
+ viewed_at?: string | null | undefined;
13186
13410
  signed_at?: string | null | undefined;
13187
13411
  reference?: string | null | undefined;
13188
13412
  fields: number;
@@ -13213,10 +13437,13 @@ declare class Arbi {
13213
13437
  required: boolean;
13214
13438
  }[];
13215
13439
  signers: {
13216
- user_ext_id: string;
13440
+ external_id: string;
13441
+ user_ext_id?: string | null | undefined;
13217
13442
  name: string;
13218
13443
  email?: string | null | undefined;
13219
13444
  status: components["schemas"]["SignerStatus"];
13445
+ progress: components["schemas"]["SignerProgress"];
13446
+ viewed_at?: string | null | undefined;
13220
13447
  signed_at?: string | null | undefined;
13221
13448
  reference?: string | null | undefined;
13222
13449
  fields: number;
@@ -13247,10 +13474,13 @@ declare class Arbi {
13247
13474
  required: boolean;
13248
13475
  }[];
13249
13476
  signers: {
13250
- user_ext_id: string;
13477
+ external_id: string;
13478
+ user_ext_id?: string | null | undefined;
13251
13479
  name: string;
13252
13480
  email?: string | null | undefined;
13253
13481
  status: components["schemas"]["SignerStatus"];
13482
+ progress: components["schemas"]["SignerProgress"];
13483
+ viewed_at?: string | null | undefined;
13254
13484
  signed_at?: string | null | undefined;
13255
13485
  reference?: string | null | undefined;
13256
13486
  fields: number;
@@ -13272,6 +13502,10 @@ declare class Arbi {
13272
13502
  group: number;
13273
13503
  role?: string | null | undefined;
13274
13504
  anchor: string;
13505
+ source: "anchor" | "layout";
13506
+ signer_email?: string | null | undefined;
13507
+ signer_name?: string | null | undefined;
13508
+ required: boolean;
13275
13509
  }[]>;
13276
13510
  create: (docId: string, options: CreateSignatureRequestOptions) => Promise<{
13277
13511
  external_id: string;
@@ -13292,10 +13526,13 @@ declare class Arbi {
13292
13526
  required: boolean;
13293
13527
  }[];
13294
13528
  signers: {
13295
- user_ext_id: string;
13529
+ external_id: string;
13530
+ user_ext_id?: string | null | undefined;
13296
13531
  name: string;
13297
13532
  email?: string | null | undefined;
13298
13533
  status: components["schemas"]["SignerStatus"];
13534
+ progress: components["schemas"]["SignerProgress"];
13535
+ viewed_at?: string | null | undefined;
13299
13536
  signed_at?: string | null | undefined;
13300
13537
  reference?: string | null | undefined;
13301
13538
  fields: number;
@@ -13326,10 +13563,13 @@ declare class Arbi {
13326
13563
  required: boolean;
13327
13564
  }[];
13328
13565
  signers: {
13329
- user_ext_id: string;
13566
+ external_id: string;
13567
+ user_ext_id?: string | null | undefined;
13330
13568
  name: string;
13331
13569
  email?: string | null | undefined;
13332
13570
  status: components["schemas"]["SignerStatus"];
13571
+ progress: components["schemas"]["SignerProgress"];
13572
+ viewed_at?: string | null | undefined;
13333
13573
  signed_at?: string | null | undefined;
13334
13574
  reference?: string | null | undefined;
13335
13575
  fields: number;
@@ -13360,10 +13600,13 @@ declare class Arbi {
13360
13600
  required: boolean;
13361
13601
  }[];
13362
13602
  signers: {
13363
- user_ext_id: string;
13603
+ external_id: string;
13604
+ user_ext_id?: string | null | undefined;
13364
13605
  name: string;
13365
13606
  email?: string | null | undefined;
13366
13607
  status: components["schemas"]["SignerStatus"];
13608
+ progress: components["schemas"]["SignerProgress"];
13609
+ viewed_at?: string | null | undefined;
13367
13610
  signed_at?: string | null | undefined;
13368
13611
  reference?: string | null | undefined;
13369
13612
  fields: number;
@@ -13394,10 +13637,13 @@ declare class Arbi {
13394
13637
  required: boolean;
13395
13638
  }[];
13396
13639
  signers: {
13397
- user_ext_id: string;
13640
+ external_id: string;
13641
+ user_ext_id?: string | null | undefined;
13398
13642
  name: string;
13399
13643
  email?: string | null | undefined;
13400
13644
  status: components["schemas"]["SignerStatus"];
13645
+ progress: components["schemas"]["SignerProgress"];
13646
+ viewed_at?: string | null | undefined;
13401
13647
  signed_at?: string | null | undefined;
13402
13648
  reference?: string | null | undefined;
13403
13649
  fields: number;
@@ -14463,25 +14709,27 @@ declare function listSessions(arbi: ArbiClient): Promise<SessionInfoResponse[]>;
14463
14709
  declare function terminateSession(arbi: ArbiClient, sessionId: string): Promise<void>;
14464
14710
  /** Sign the user out of every device (all sessions, this one included) on the server. */
14465
14711
  declare function logoutAllSessions(arbi: ArbiClient): Promise<void>;
14466
- /**
14467
- * The short id (first 12 characters of the token's `sk` claim) this session is listed under in
14468
- * `GET /v1/user/sessions`, so a session list can mark "this device". Unverified decode: used to
14469
- * recognise our own row, never for authorization. `null` for a missing or unreadable token.
14470
- */
14471
- declare function currentSessionId(accessToken: string | null | undefined): string | null;
14472
14712
 
14473
- declare const sessions_currentSessionId: typeof currentSessionId;
14474
14713
  declare const sessions_listSessions: typeof listSessions;
14475
14714
  declare const sessions_logoutAllSessions: typeof logoutAllSessions;
14476
14715
  declare const sessions_terminateSession: typeof terminateSession;
14477
14716
  declare namespace sessions {
14478
- export { sessions_currentSessionId as currentSessionId, sessions_listSessions as listSessions, sessions_logoutAllSessions as logoutAllSessions, sessions_terminateSession as terminateSession };
14717
+ export { sessions_listSessions as listSessions, sessions_logoutAllSessions as logoutAllSessions, sessions_terminateSession as terminateSession };
14479
14718
  }
14480
14719
 
14481
14720
  /**
14482
14721
  * Account operations — change the sign-in email, close the account.
14483
14722
  */
14484
14723
 
14724
+ type FeatureEntitlements = components['schemas']['FeatureEntitlements'];
14725
+ type EntitledFeature = 'mail' | 'calendar' | 'host_calls';
14726
+ type FeatureRefusal = NonNullable<FeatureEntitlements['reason']>;
14727
+ /**
14728
+ * The paid features this person may use: native mail, the calendar and hosting calls. Hosted service:
14729
+ * owning a Pro project (else `reason: 'pro_required'`); a Box: internal users only (`external_user`).
14730
+ * The API refuses gated routes with 403 and the same `reason`.
14731
+ */
14732
+ declare function getEntitlements(arbi: ArbiClient): Promise<FeatureEntitlements>;
14485
14733
  /** Send a verification code to `newEmail`. SSO accounts are refused (their email lives at the IdP). */
14486
14734
  declare function requestEmailChange(arbi: ArbiClient, newEmail: string): Promise<void>;
14487
14735
  /** Confirm the change with the 3-word code from the email. Resolves with the new email. */
@@ -14498,11 +14746,15 @@ declare function requestDeletion(arbi: ArbiClient): Promise<{
14498
14746
  detail: string;
14499
14747
  }>;
14500
14748
 
14749
+ type account_EntitledFeature = EntitledFeature;
14750
+ type account_FeatureEntitlements = FeatureEntitlements;
14751
+ type account_FeatureRefusal = FeatureRefusal;
14501
14752
  declare const account_confirmEmailChange: typeof confirmEmailChange;
14753
+ declare const account_getEntitlements: typeof getEntitlements;
14502
14754
  declare const account_requestDeletion: typeof requestDeletion;
14503
14755
  declare const account_requestEmailChange: typeof requestEmailChange;
14504
14756
  declare namespace account {
14505
- export { account_confirmEmailChange as confirmEmailChange, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
14757
+ export { type account_EntitledFeature as EntitledFeature, type account_FeatureEntitlements as FeatureEntitlements, type account_FeatureRefusal as FeatureRefusal, account_confirmEmailChange as confirmEmailChange, account_getEntitlements as getEntitlements, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
14506
14758
  }
14507
14759
 
14508
14760
  /**
@@ -14548,4 +14800,4 @@ declare namespace identity {
14548
14800
  export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
14549
14801
  }
14550
14802
 
14551
- export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type MessageQueuedEvent as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FactSearchRequest as aA, type FactSearchResponse as aB, type FindTimeParams as aC, type FormattedWsMessage as aD, type FreeBusyEntry as aE, GOOGLE_VENDORS as aF, type HolidayCountry as aG, type HouseTemplateCandidate as aH, IMANAGE_VENDORS as aI, type IdentityErrorCode as aJ, type IdentityPurchase as aK, type IdentityState as aL, type IdentityStatus as aM, type ImportResult as aN, type InvitationRead as aO, type LinkedRun as aP, type ListAllOptions as aQ, type ListEventsParams as aR, type ListFactsOptions as aS, type ListPaginatedOptions as aT, MAILBOX_SYNC_VENDORS as aU, MAX_RETRIEVE_DOC_IDS as aV, MICROSOFT_VENDORS as aW, type MailAttachment as aX, type MailDraftSSEEvent as aY, type MessageLevel as aZ, type MessageMetadataPayload$1 as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, ENTITY_KINDS as at, type EditScope as au, type EntityKind as av, type EventCreateBody as aw, type EventPatchBody as ax, FLAT_TAG_KINDS as ay, type FactResponse as az, type ActivityKind as b, type ShareRead as b$, type OAuthAccountKind as b0, type OutputTokensDetails as b1, type OverlayItem as b2, type OverlayLayerName as b3, PRESENCE_KINDS as b4, type ParsedSlashCommand as b5, type PendingAuthResponse as b6, type PersonKey as b7, PlanStepsError as b8, type PlanWorkRequest as b9, type RespondParams as bA, type RespondPartstat as bB, type ResponseCompletedEvent as bC, type ResponseContentPartAddedEvent as bD, type ResponseCreatedEvent as bE, type ResponseFailedEvent as bF, type ResponseOutputItemAddedEvent as bG, type ResponseOutputItemDoneEvent as bH, type ResponseOutputTextDeltaEvent as bI, type ResponseOutputTextDoneEvent as bJ, type ResponseUsage as bK, type RoomCreateBody as bL, type RoomQuery as bM, type RoomRead as bN, type RunProgress as bO, type RunStep as bP, type RunWaitingOn as bQ, SHAREPOINT_VENDORS as bR, type SSEEvent as bS, type SSEStreamCallbacks as bT, type SSEStreamResult as bU, type SSEStreamStartData as bV, STEP_FIELD_OPTION_TONES as bW, SUPPORTED_EXTENSIONS as bX, type ScopedTarget as bY, type SearchChunk as bZ, type SendBack as b_, type ProbeAnswerEvent as ba, type ProductResponse as bb, type ProjectAddonKind as bc, type ProjectAddonSettingsRequest as bd, type ProjectBudget as be, type ProjectCheckoutRequest as bf, type ProjectConversationUsageResponse as bg, type ProjectCreateOptions as bh, type ProjectDetails as bi, type ProjectEventKind as bj, type ProjectEventResponse as bk, type ProjectInvoicesResponse as bl, type ProjectNextPeriodAddonsRequest as bm, type ProjectPlanChangeRequest as bn, type ProjectQuoteRequest as bo, type ProjectResponse as bp, type ProjectUpdateRequest as bq, type ProjectUsageResponse as br, PublicBookingError as bs, type PublicBookingPage as bt, type QueryOptions as bu, type RaisedSignal as bv, type ReconnectOptions as bw, type ReconnectableWsConnection as bx, type ResolvedCitation as by, type ResolvedRecipient as bz, type ActivityResponse as c, account as c$, type ShareRole as c0, type SkillSummary as c1, type SkippedFile as c2, type SlackConnectionStatus as c3, type StepActionRequest as c4, type StepActivityEvent as c5, type StepAssignee as c6, type StepField as c7, type StepFieldOption as c8, type StepFieldOptionTone as c9, type TimeSuggestion as cA, type TokenBudgetContext as cB, type UpdateConversationRequest as cC, type UpdateFactRequest as cD, type UpdateWorkflowRequest as cE, type UploadBatchResult as cF, type UploadDirectOptions as cG, type UploadDirectResult as cH, type UploadDocumentsOptions as cI, type UploadOptions as cJ, type UploadProgressListener as cK, type UploadResult as cL, type UsageBreakdown as cM, type UserConnectorEntry as cN, type UserDailyUsageResponse as cO, type UserInfo as cP, type UserInputRequestEvent as cQ, type UserMessageEvent as cR, WebSocketAuthError as cS, type WeeklyHoursSpec as cT, type WorkStatus as cU, type WorkflowAuthMode as cV, type WorkflowResponse as cW, type WorkflowRunHistoryResponse as cX, type WorkflowRunResponse as cY, type WorkspaceContext as cZ, type WsConnection as c_, type StepKind as ca, type StepPhase as cb, type StepSignal as cc, type StepSignalWhen as cd, type StepState as ce, type StepStatus as cf, type SubmitBackgroundQueryOptions as cg, type SubscribeParams as ch, type SyncTriggerResult as ci, TAG_KINDS as cj, TAG_NESTING_MAX_DEPTH as ck, type TagChange as cl, type TagFieldDefinition as cm, type TagGroup as cn, type TagKind as co, type TagKindField as cp, type TagKindSchema as cq, type TagLinks as cr, type TagListQuery as cs, type TagNode as ct, type TagResponse as cu, type TagScope as cv, type TagTreeRow as cw, type TaskPlan as cx, type TaskPlanStep as cy, type TaxQuoteResponse as cz, type AgentControlStateEvent as d, isPresenceTag as d$, agentconfig as d0, agents as d1, assistant as d2, authenticatedFetch as d3, bookPublicSlot as d4, buildCitationChunkData as d5, buildDocNameMap as d6, buildFactsContextTool as d7, buildRetrievalChunkTool as d8, buildRetrievalFullContextTool as d9, formatGbp as dA, formatGbpPerMillionTokens as dB, formatItemLabel as dC, formatStreamSummary as dD, formatUserName as dE, formatWorkspaceChoices as dF, formatWsMessage as dG, generateEncryptedWorkspaceKey as dH, generateNewWorkspaceKey as dI, getChildTags as dJ, getEligibleParentTags as dK, getErrorCode as dL, getErrorMessage as dM, getPublicBookingPage as dN, getRawWorkspaceKey as dO, getTagDescendantIds as dP, health as dQ, houseTemplate as dR, identity as dS, identityErrorCode as dT, isAnnotationTag as dU, isConnectorVendorVisible as dV, isDriveSyncVendor as dW, isEntityTag as dX, isFlatKind as dY, isLabelTag as dZ, isMailboxSyncVendor as d_, buildRetrievalTocTool as da, calendar as db, canTagHaveParent as dc, cancelPublicBooking as dd, chats as de, connectErrorMessage as df, connectWebSocket as dg, connectWithReconnect as dh, connectors as di, consumeSSEStream as dj, contacts as dk, conversations as dl, countCitations as dm, createAuthenticatedClient as dn, createDocumentWaiter as dp, defaultKindForFormat as dq, doctags as dr, documents as ds, facts as dt, files as du, filterDocumentTags as dv, filterSkills as dw, flattenTagTree as dx, formatAgentStepLabel as dy, formatFileSize as dz, type AgentStepDeltaEvent as e, isSharePointVendor as e0, isSharedSkill as e1, mail as e2, notifications as e3, parseSSEEvents as e4, parseSlashCommand as e5, parseSlashTokenInProgress as e6, performPasswordLogin as e7, performSigningKeyLogin as e8, performSsoDeviceFlowLogin as e9, workflowSteps as eA, workflows as eB, workspaces as eC, wouldCreateTagCycle as eD, profile as ea, progressFetch as eb, projects as ec, refusalReason as ed, requireData as ee, requireOk as ef, resolveAuth as eg, resolveCitations as eh, resolveWorkspace as ei, responses as ej, searchChunks as ek, selectWorkspace as el, selectWorkspaceById as em, sessions as en, settings as eo, signatureRequests as ep, streamSSE as eq, stripCitationMarkdown as er, summarizeCitations as es, tagUseCount as et, tags as eu, tagsForScope as ev, tagsOfGroup as ew, uploadSkill as ex, usdToGbp as ey, work as ez, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiErrorEvent as j, type ArbiHostSession as k, type ArbiOptions as l, ArbiSessionExpiredError as m, type ArtifactEvent as n, type AttendeeRead as o, type AuthContext as p, type AuthHeaders as q, type AuthMode as r, type AuthenticatedClient as s, type BookingPage as t, type BookingPageWriteBody as u, type BookingRequestBody as v, type BridgeTokensOptions as w, type CalDavProfile as x, type CalendarAccount as y, type CalendarAccountKind as z };
14803
+ export { type ConnectOptions as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarCreateBody as D, type CalendarEvent as E, type CalendarKeys as F, type CalendarRead as G, type CalendarSettings as H, type CalendarSettingsBody as I, type CalendarUpdate as J, type CalendarWindow as K, type ChatAttachmentFile as L, type ChatAttachmentInput as M, type ChatCryptoContext as N, type ChatKeyRing as O, type ChatKind as P, type ChatMemberKey as Q, type ChatMemberResponse as R, type ChatMessageResponse as S, type ChatResponse as T, type ChatSession as U, type CitationSummary as V, type CitationToolSources as W, type CliConfig as X, type CliCredentials as Y, type CommandDescriptor as Z, type ConfigStore as _, type AccountSyncResult as a, type MessageMetadataPayload$1 as a$, type ConnectorCatalogEntry as a0, type ConnectorFolder as a1, type ConnectorSyncProgress as a2, type ConnectorSyncStatus as a3, type ConnectorVendorKey as a4, type ConnectorVisibilitySettings as a5, type ConversationResponse as a6, type ConversationUsageResponse as a7, type CreateFactRequest as a8, type CreateFactsRequest as a9, type FactResponse as aA, type FactSearchRequest as aB, type FactSearchResponse as aC, type FindTimeParams as aD, type FormattedWsMessage as aE, type FreeBusyEntry as aF, GOOGLE_VENDORS as aG, type HolidayCountry as aH, type HouseTemplateCandidate as aI, IMANAGE_VENDORS as aJ, type IdentityErrorCode as aK, type IdentityPurchase as aL, type IdentityState as aM, type IdentityStatus as aN, type ImportResult as aO, type InvitationRead as aP, type LinkedRun as aQ, type ListAllOptions as aR, type ListEventsParams as aS, type ListFactsOptions as aT, type ListPaginatedOptions as aU, MAILBOX_SYNC_VENDORS as aV, MAX_RETRIEVE_DOC_IDS as aW, MICROSOFT_VENDORS as aX, type MailAttachment as aY, type MailDraftSSEEvent as aZ, type MessageLevel as a_, type CreateWorkRequest as aa, type CreateWorkflowRequest as ab, DEFAULT_AI_USD_PER_GBP as ac, DOC_TERMINAL_STATUSES as ad, DRIVE_SYNC_VENDORS as ae, type DateTimeSpec as af, type DecryptedChat as ag, type DecryptedChatMessage as ah, type DeferredInterjectionEvent as ai, type DeploymentHouseTemplate as aj, type DocNameMap as ak, type DocumentAutomationAction as al, type DocumentListFields as am, type DocumentListOrder as an, type DocumentSelector as ao, type DocumentWaiter as ap, type DocumentWaiterOptions as aq, type DriveSyncProgress as ar, type DriveSyncSummary as as, DuplicateContactError as at, ENTITY_KINDS as au, type EditScope as av, type EntityKind as aw, type EventCreateBody as ax, type EventPatchBody as ay, FLAT_TAG_KINDS as az, type ActivityKind as b, type SendBack as b$, type MessageQueuedEvent as b0, type OAuthAccountKind as b1, type OutputTokensDetails as b2, type OverlayItem as b3, type OverlayLayerName as b4, PRESENCE_KINDS as b5, type ParsedSlashCommand as b6, type PendingAuthResponse as b7, type PersonKey as b8, PlanStepsError as b9, type ResolvedRecipient as bA, type RespondParams as bB, type RespondPartstat as bC, type ResponseCompletedEvent as bD, type ResponseContentPartAddedEvent as bE, type ResponseCreatedEvent as bF, type ResponseFailedEvent as bG, type ResponseOutputItemAddedEvent as bH, type ResponseOutputItemDoneEvent as bI, type ResponseOutputTextDeltaEvent as bJ, type ResponseOutputTextDoneEvent as bK, type ResponseUsage as bL, type RoomCreateBody as bM, type RoomQuery as bN, type RoomRead as bO, type RunProgress as bP, type RunStep as bQ, type RunWaitingOn as bR, SHAREPOINT_VENDORS as bS, type SSEEvent as bT, type SSEStreamCallbacks as bU, type SSEStreamResult as bV, type SSEStreamStartData as bW, STEP_FIELD_OPTION_TONES as bX, SUPPORTED_EXTENSIONS as bY, type ScopedTarget as bZ, type SearchChunk as b_, type PlanWorkRequest as ba, type ProbeAnswerEvent as bb, type ProductResponse as bc, type ProjectAddonKind as bd, type ProjectAddonSettingsRequest as be, type ProjectBudget as bf, type ProjectCheckoutRequest as bg, type ProjectConversationUsageResponse as bh, type ProjectCreateOptions as bi, type ProjectDetails as bj, type ProjectEventKind as bk, type ProjectEventResponse as bl, type ProjectInvoicesResponse as bm, type ProjectNextPeriodAddonsRequest as bn, type ProjectPlanChangeRequest as bo, type ProjectQuoteRequest as bp, type ProjectResponse as bq, type ProjectUpdateRequest as br, type ProjectUsageResponse as bs, PublicBookingError as bt, type PublicBookingPage as bu, type QueryOptions as bv, type RaisedSignal as bw, type ReconnectOptions as bx, type ReconnectableWsConnection as by, type ResolvedCitation as bz, type ActivityResponse as c, type WsConnection as c$, type ShareRead as c0, type ShareRole as c1, type SkillSummary as c2, type SkippedFile as c3, type SlackConnectionStatus as c4, type StepActionRequest as c5, type StepActivityEvent as c6, type StepAssignee as c7, type StepField as c8, type StepFieldOption as c9, type TaxQuoteResponse as cA, type TimeSuggestion as cB, type TokenBudgetContext as cC, type UpdateConversationRequest as cD, type UpdateFactRequest as cE, type UpdateWorkflowRequest as cF, type UploadBatchResult as cG, type UploadDirectOptions as cH, type UploadDirectResult as cI, type UploadDocumentsOptions as cJ, type UploadOptions as cK, type UploadProgressListener as cL, type UploadResult as cM, type UsageBreakdown as cN, type UserConnectorEntry as cO, type UserDailyUsageResponse as cP, type UserInfo as cQ, type UserInputRequestEvent as cR, type UserMessageEvent as cS, WebSocketAuthError as cT, type WeeklyHoursSpec as cU, type WorkStatus as cV, type WorkflowAuthMode as cW, type WorkflowResponse as cX, type WorkflowRunHistoryResponse as cY, type WorkflowRunResponse as cZ, type WorkspaceContext as c_, type StepFieldOptionTone as ca, type StepKind as cb, type StepPhase as cc, type StepSignal as cd, type StepSignalWhen as ce, type StepState as cf, type StepStatus as cg, type SubmitBackgroundQueryOptions as ch, type SubscribeParams as ci, type SyncTriggerResult as cj, TAG_KINDS as ck, TAG_NESTING_MAX_DEPTH as cl, type TagChange as cm, type TagFieldDefinition as cn, type TagGroup as co, type TagKind as cp, type TagKindField as cq, type TagKindSchema as cr, type TagLinks as cs, type TagListQuery as ct, type TagNode as cu, type TagResponse as cv, type TagScope as cw, type TagTreeRow as cx, type TaskPlan as cy, type TaskPlanStep as cz, type AgentControlStateEvent as d, isMailboxSyncVendor as d$, account as d0, agentconfig as d1, agents as d2, assistant as d3, authenticatedFetch as d4, bookPublicSlot as d5, buildCitationChunkData as d6, buildDocNameMap as d7, buildFactsContextTool as d8, buildRetrievalChunkTool as d9, formatFileSize as dA, formatGbp as dB, formatGbpPerMillionTokens as dC, formatItemLabel as dD, formatStreamSummary as dE, formatUserName as dF, formatWorkspaceChoices as dG, formatWsMessage as dH, generateEncryptedWorkspaceKey as dI, generateNewWorkspaceKey as dJ, getChildTags as dK, getEligibleParentTags as dL, getErrorCode as dM, getErrorMessage as dN, getPublicBookingPage as dO, getRawWorkspaceKey as dP, getTagDescendantIds as dQ, health as dR, houseTemplate as dS, identity as dT, identityErrorCode as dU, isAnnotationTag as dV, isConnectorVendorVisible as dW, isDriveSyncVendor as dX, isEntityTag as dY, isFlatKind as dZ, isLabelTag as d_, buildRetrievalFullContextTool as da, buildRetrievalTocTool as db, calendar as dc, canTagHaveParent as dd, cancelPublicBooking as de, chats as df, connectErrorMessage as dg, connectWebSocket as dh, connectWithReconnect as di, connectors as dj, consumeSSEStream as dk, contacts as dl, conversations as dm, countCitations as dn, createAuthenticatedClient as dp, createDocumentWaiter as dq, defaultKindForFormat as dr, doctags as ds, documents as dt, facts as du, files as dv, filterDocumentTags as dw, filterSkills as dx, flattenTagTree as dy, formatAgentStepLabel as dz, type AgentStepDeltaEvent as e, isPresenceTag as e0, isSharePointVendor as e1, isSharedSkill as e2, mail as e3, notifications as e4, parseSSEEvents as e5, parseSlashCommand as e6, parseSlashTokenInProgress as e7, performPasswordLogin as e8, performSigningKeyLogin as e9, work as eA, workflowSteps as eB, workflows as eC, workspaces as eD, wouldCreateTagCycle as eE, performSsoDeviceFlowLogin as ea, profile as eb, progressFetch as ec, projects as ed, refusalReason as ee, requireData as ef, requireOk as eg, resolveAuth as eh, resolveCitations as ei, resolveWorkspace as ej, responses as ek, searchChunks as el, selectWorkspace as em, selectWorkspaceById as en, sessions as eo, settings as ep, signatureRequests as eq, streamSSE as er, stripCitationMarkdown as es, summarizeCitations as et, tagUseCount as eu, tags as ev, tagsForScope as ew, tagsOfGroup as ex, uploadSkill as ey, usdToGbp as ez, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiErrorEvent as j, type ArbiHostSession as k, type ArbiOptions as l, ArbiSessionExpiredError as m, type ArtifactEvent as n, type AttendeeRead as o, type AuthContext as p, type AuthHeaders as q, type AuthMode as r, type AuthenticatedClient as s, type BookingPage as t, type BookingPageWriteBody as u, type BookingRequestBody as v, type BridgeTokensOptions as w, type CalDavProfile as x, type CalendarAccount as y, type CalendarAccountKind as z };