@arbidocs/client 0.5.97 → 0.5.98

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/index.d.cts CHANGED
@@ -8542,6 +8542,91 @@ interface paths {
8542
8542
  patch?: never;
8543
8543
  trace?: never;
8544
8544
  };
8545
+ '/v1/mail/accounts/{account_id}/conversations': {
8546
+ parameters: {
8547
+ query?: never;
8548
+ header?: never;
8549
+ path?: never;
8550
+ cookie?: never;
8551
+ };
8552
+ /**
8553
+ * Conversations
8554
+ * @description The folder's conversations, newest first. ARBI mail pages by conversation and counts the whole folder; a
8555
+ * connected account groups each page of its messages by the provider's thread id (a conversation that spans two
8556
+ * pages comes in both: merge by ``thread_id``).
8557
+ */
8558
+ get: operations['conversations_v1_mail_accounts__account_id__conversations_get'];
8559
+ put?: never;
8560
+ post?: never;
8561
+ delete?: never;
8562
+ options?: never;
8563
+ head?: never;
8564
+ patch?: never;
8565
+ trace?: never;
8566
+ };
8567
+ '/v1/mail/accounts/{account_id}/thread': {
8568
+ parameters: {
8569
+ query?: never;
8570
+ header?: never;
8571
+ path?: never;
8572
+ cookie?: never;
8573
+ };
8574
+ /**
8575
+ * Thread
8576
+ * @description One conversation's messages, oldest first: a conversation's ``thread_id`` from the list. ``folder_id``, the
8577
+ * folder it was opened from: the Trash reads the Trash's; IMAP, which cannot search across folders, that folder.
8578
+ */
8579
+ get: operations['thread_v1_mail_accounts__account_id__thread_get'];
8580
+ put?: never;
8581
+ post?: never;
8582
+ delete?: never;
8583
+ options?: never;
8584
+ head?: never;
8585
+ patch?: never;
8586
+ trace?: never;
8587
+ };
8588
+ '/v1/mail/native/thread-secret': {
8589
+ parameters: {
8590
+ query?: never;
8591
+ header?: never;
8592
+ path?: never;
8593
+ cookie?: never;
8594
+ };
8595
+ /**
8596
+ * Native Thread Secret
8597
+ * @description The caller's key for thread keys of their own native mail, to key older messages (``/native/thread-keys``).
8598
+ */
8599
+ get: operations['native_thread_secret_v1_mail_native_thread_secret_get'];
8600
+ put?: never;
8601
+ post?: never;
8602
+ delete?: never;
8603
+ options?: never;
8604
+ head?: never;
8605
+ patch?: never;
8606
+ trace?: never;
8607
+ };
8608
+ '/v1/mail/native/thread-keys': {
8609
+ parameters: {
8610
+ query?: never;
8611
+ header?: never;
8612
+ path?: never;
8613
+ cookie?: never;
8614
+ };
8615
+ get?: never;
8616
+ put?: never;
8617
+ /**
8618
+ * Native Thread Keys
8619
+ * @description Thread keys the owner's client computed for older messages, which the server cannot key (their Message-IDs
8620
+ * are encrypted). Only messages without keys take them; unknown ids are skipped (row-level security hides others'
8621
+ * mail).
8622
+ */
8623
+ post: operations['native_thread_keys_v1_mail_native_thread_keys_post'];
8624
+ delete?: never;
8625
+ options?: never;
8626
+ head?: never;
8627
+ patch?: never;
8628
+ trace?: never;
8629
+ };
8545
8630
  }
8546
8631
  type webhooks = Record<string, never>;
8547
8632
  interface components {
@@ -17043,8 +17128,17 @@ interface components {
17043
17128
  html?: string | null;
17044
17129
  /** Message Id */
17045
17130
  message_id?: string | null;
17131
+ /** In Reply To */
17132
+ in_reply_to?: string | null;
17046
17133
  /** References */
17047
17134
  references?: string[];
17135
+ /** Thread Id */
17136
+ thread_id?: string | null;
17137
+ /**
17138
+ * Flagged
17139
+ * @default false
17140
+ */
17141
+ flagged: boolean;
17048
17142
  /** Attachments */
17049
17143
  attachments?: components['schemas']['MailAttachment'][];
17050
17144
  /** Drafted By */
@@ -17071,6 +17165,8 @@ interface components {
17071
17165
  folder_id?: string | null;
17072
17166
  /** Action */
17073
17167
  action?: ('trash' | 'restore') | null;
17168
+ /** Flagged */
17169
+ flagged?: boolean | null;
17074
17170
  };
17075
17171
  /**
17076
17172
  * MailPolicyRead
@@ -25436,6 +25532,94 @@ interface components {
25436
25532
  * @enum {string}
25437
25533
  */
25438
25534
  src__models__workflow__AuthMode: 'run_now_temp' | 'scheduled_require_auth' | 'scheduled_permanent';
25535
+ /**
25536
+ * MailConversation
25537
+ * @description One row of the conversation list: a thread's messages in the folder listed, newest first.
25538
+ *
25539
+ * ``thread_id`` is the messages' ``thread_id``, or the message's own ``id`` when it stands alone (it has no thread
25540
+ * key). Counts and ``flagged`` cover the messages in the folder listed.
25541
+ */
25542
+ MailConversation: {
25543
+ /** Thread Id */
25544
+ thread_id: string;
25545
+ /**
25546
+ * Subject
25547
+ * @default
25548
+ */
25549
+ subject: string;
25550
+ /**
25551
+ * Preview
25552
+ * @default
25553
+ */
25554
+ preview: string;
25555
+ /** Senders */
25556
+ senders?: components['schemas']['MailAddress'][];
25557
+ /** Received At */
25558
+ received_at?: string | null;
25559
+ /** Message Count */
25560
+ message_count: number;
25561
+ /**
25562
+ * Unread Count
25563
+ * @default 0
25564
+ */
25565
+ unread_count: number;
25566
+ /**
25567
+ * Flagged
25568
+ * @default false
25569
+ */
25570
+ flagged: boolean;
25571
+ /** Messages */
25572
+ messages?: components['schemas']['MailMessage'][];
25573
+ };
25574
+ /** MailConversationPage */
25575
+ MailConversationPage: {
25576
+ /** Conversations */
25577
+ conversations: components['schemas']['MailConversation'][];
25578
+ /** Next Cursor */
25579
+ next_cursor?: string | null;
25580
+ };
25581
+ /**
25582
+ * MailThread
25583
+ * @description Every message of one conversation, oldest first: across folders (Sent replies too) except the Trash, unless it
25584
+ * is the Trash being read. IMAP has no cross-folder search: there it is the folder's.
25585
+ */
25586
+ MailThread: {
25587
+ /** Thread Id */
25588
+ thread_id: string;
25589
+ /** Messages */
25590
+ messages: components['schemas']['MailMessage'][];
25591
+ };
25592
+ /** NativeThreadKey */
25593
+ NativeThreadKey: {
25594
+ /** Message Id Hmac */
25595
+ message_id_hmac?: string | null;
25596
+ /** Thread Hmac */
25597
+ thread_hmac: string;
25598
+ };
25599
+ /**
25600
+ * NativeThreadKeys
25601
+ * @description Thread keys the owner's client computed for older messages (keyed by ``eml-`` id), which have none.
25602
+ */
25603
+ NativeThreadKeys: {
25604
+ /** Keys */
25605
+ keys: {
25606
+ [key: string]: components['schemas']['NativeThreadKey'];
25607
+ };
25608
+ };
25609
+ /** NativeThreadKeysSaved */
25610
+ NativeThreadKeysSaved: {
25611
+ /** Updated */
25612
+ updated: number;
25613
+ };
25614
+ /**
25615
+ * NativeThreadSecret
25616
+ * @description The owner's key for native mail thread keys (base64): HMAC-SHA256 over ``message:<Message-ID>``, hex, first
25617
+ * 32 characters, as ``email_threading.thread_keys``. Lets the owner's client key older mail the server cannot read.
25618
+ */
25619
+ NativeThreadSecret: {
25620
+ /** Secret */
25621
+ secret: string;
25622
+ };
25439
25623
  };
25440
25624
  responses: never;
25441
25625
  parameters: never;
@@ -39715,6 +39899,129 @@ interface operations {
39715
39899
  };
39716
39900
  };
39717
39901
  };
39902
+ conversations_v1_mail_accounts__account_id__conversations_get: {
39903
+ parameters: {
39904
+ query: {
39905
+ folder_id: string;
39906
+ q?: string;
39907
+ cursor?: string | null;
39908
+ limit?: number;
39909
+ };
39910
+ header?: never;
39911
+ path: {
39912
+ account_id: string;
39913
+ };
39914
+ cookie?: never;
39915
+ };
39916
+ requestBody?: never;
39917
+ responses: {
39918
+ /** @description Successful Response */
39919
+ 200: {
39920
+ headers: {
39921
+ [name: string]: unknown;
39922
+ };
39923
+ content: {
39924
+ 'application/json': components['schemas']['MailConversationPage'];
39925
+ };
39926
+ };
39927
+ /** @description Validation Error */
39928
+ 422: {
39929
+ headers: {
39930
+ [name: string]: unknown;
39931
+ };
39932
+ content: {
39933
+ 'application/json': components['schemas']['HTTPValidationError'];
39934
+ };
39935
+ };
39936
+ };
39937
+ };
39938
+ thread_v1_mail_accounts__account_id__thread_get: {
39939
+ parameters: {
39940
+ query: {
39941
+ thread_id: string;
39942
+ folder_id?: string;
39943
+ };
39944
+ header?: never;
39945
+ path: {
39946
+ account_id: string;
39947
+ };
39948
+ cookie?: never;
39949
+ };
39950
+ requestBody?: never;
39951
+ responses: {
39952
+ /** @description Successful Response */
39953
+ 200: {
39954
+ headers: {
39955
+ [name: string]: unknown;
39956
+ };
39957
+ content: {
39958
+ 'application/json': components['schemas']['MailThread'];
39959
+ };
39960
+ };
39961
+ /** @description Validation Error */
39962
+ 422: {
39963
+ headers: {
39964
+ [name: string]: unknown;
39965
+ };
39966
+ content: {
39967
+ 'application/json': components['schemas']['HTTPValidationError'];
39968
+ };
39969
+ };
39970
+ };
39971
+ };
39972
+ native_thread_secret_v1_mail_native_thread_secret_get: {
39973
+ parameters: {
39974
+ query?: never;
39975
+ header?: never;
39976
+ path?: never;
39977
+ cookie?: never;
39978
+ };
39979
+ requestBody?: never;
39980
+ responses: {
39981
+ /** @description Successful Response */
39982
+ 200: {
39983
+ headers: {
39984
+ [name: string]: unknown;
39985
+ };
39986
+ content: {
39987
+ 'application/json': components['schemas']['NativeThreadSecret'];
39988
+ };
39989
+ };
39990
+ };
39991
+ };
39992
+ native_thread_keys_v1_mail_native_thread_keys_post: {
39993
+ parameters: {
39994
+ query?: never;
39995
+ header?: never;
39996
+ path?: never;
39997
+ cookie?: never;
39998
+ };
39999
+ requestBody: {
40000
+ content: {
40001
+ 'application/json': components['schemas']['NativeThreadKeys'];
40002
+ };
40003
+ };
40004
+ responses: {
40005
+ /** @description Successful Response */
40006
+ 200: {
40007
+ headers: {
40008
+ [name: string]: unknown;
40009
+ };
40010
+ content: {
40011
+ 'application/json': components['schemas']['NativeThreadKeysSaved'];
40012
+ };
40013
+ };
40014
+ /** @description Validation Error */
40015
+ 422: {
40016
+ headers: {
40017
+ [name: string]: unknown;
40018
+ };
40019
+ content: {
40020
+ 'application/json': components['schemas']['HTTPValidationError'];
40021
+ };
40022
+ };
40023
+ };
40024
+ };
39718
40025
  }
39719
40026
 
39720
40027
  /**
package/dist/index.d.ts CHANGED
@@ -8542,6 +8542,91 @@ interface paths {
8542
8542
  patch?: never;
8543
8543
  trace?: never;
8544
8544
  };
8545
+ '/v1/mail/accounts/{account_id}/conversations': {
8546
+ parameters: {
8547
+ query?: never;
8548
+ header?: never;
8549
+ path?: never;
8550
+ cookie?: never;
8551
+ };
8552
+ /**
8553
+ * Conversations
8554
+ * @description The folder's conversations, newest first. ARBI mail pages by conversation and counts the whole folder; a
8555
+ * connected account groups each page of its messages by the provider's thread id (a conversation that spans two
8556
+ * pages comes in both: merge by ``thread_id``).
8557
+ */
8558
+ get: operations['conversations_v1_mail_accounts__account_id__conversations_get'];
8559
+ put?: never;
8560
+ post?: never;
8561
+ delete?: never;
8562
+ options?: never;
8563
+ head?: never;
8564
+ patch?: never;
8565
+ trace?: never;
8566
+ };
8567
+ '/v1/mail/accounts/{account_id}/thread': {
8568
+ parameters: {
8569
+ query?: never;
8570
+ header?: never;
8571
+ path?: never;
8572
+ cookie?: never;
8573
+ };
8574
+ /**
8575
+ * Thread
8576
+ * @description One conversation's messages, oldest first: a conversation's ``thread_id`` from the list. ``folder_id``, the
8577
+ * folder it was opened from: the Trash reads the Trash's; IMAP, which cannot search across folders, that folder.
8578
+ */
8579
+ get: operations['thread_v1_mail_accounts__account_id__thread_get'];
8580
+ put?: never;
8581
+ post?: never;
8582
+ delete?: never;
8583
+ options?: never;
8584
+ head?: never;
8585
+ patch?: never;
8586
+ trace?: never;
8587
+ };
8588
+ '/v1/mail/native/thread-secret': {
8589
+ parameters: {
8590
+ query?: never;
8591
+ header?: never;
8592
+ path?: never;
8593
+ cookie?: never;
8594
+ };
8595
+ /**
8596
+ * Native Thread Secret
8597
+ * @description The caller's key for thread keys of their own native mail, to key older messages (``/native/thread-keys``).
8598
+ */
8599
+ get: operations['native_thread_secret_v1_mail_native_thread_secret_get'];
8600
+ put?: never;
8601
+ post?: never;
8602
+ delete?: never;
8603
+ options?: never;
8604
+ head?: never;
8605
+ patch?: never;
8606
+ trace?: never;
8607
+ };
8608
+ '/v1/mail/native/thread-keys': {
8609
+ parameters: {
8610
+ query?: never;
8611
+ header?: never;
8612
+ path?: never;
8613
+ cookie?: never;
8614
+ };
8615
+ get?: never;
8616
+ put?: never;
8617
+ /**
8618
+ * Native Thread Keys
8619
+ * @description Thread keys the owner's client computed for older messages, which the server cannot key (their Message-IDs
8620
+ * are encrypted). Only messages without keys take them; unknown ids are skipped (row-level security hides others'
8621
+ * mail).
8622
+ */
8623
+ post: operations['native_thread_keys_v1_mail_native_thread_keys_post'];
8624
+ delete?: never;
8625
+ options?: never;
8626
+ head?: never;
8627
+ patch?: never;
8628
+ trace?: never;
8629
+ };
8545
8630
  }
8546
8631
  type webhooks = Record<string, never>;
8547
8632
  interface components {
@@ -17043,8 +17128,17 @@ interface components {
17043
17128
  html?: string | null;
17044
17129
  /** Message Id */
17045
17130
  message_id?: string | null;
17131
+ /** In Reply To */
17132
+ in_reply_to?: string | null;
17046
17133
  /** References */
17047
17134
  references?: string[];
17135
+ /** Thread Id */
17136
+ thread_id?: string | null;
17137
+ /**
17138
+ * Flagged
17139
+ * @default false
17140
+ */
17141
+ flagged: boolean;
17048
17142
  /** Attachments */
17049
17143
  attachments?: components['schemas']['MailAttachment'][];
17050
17144
  /** Drafted By */
@@ -17071,6 +17165,8 @@ interface components {
17071
17165
  folder_id?: string | null;
17072
17166
  /** Action */
17073
17167
  action?: ('trash' | 'restore') | null;
17168
+ /** Flagged */
17169
+ flagged?: boolean | null;
17074
17170
  };
17075
17171
  /**
17076
17172
  * MailPolicyRead
@@ -25436,6 +25532,94 @@ interface components {
25436
25532
  * @enum {string}
25437
25533
  */
25438
25534
  src__models__workflow__AuthMode: 'run_now_temp' | 'scheduled_require_auth' | 'scheduled_permanent';
25535
+ /**
25536
+ * MailConversation
25537
+ * @description One row of the conversation list: a thread's messages in the folder listed, newest first.
25538
+ *
25539
+ * ``thread_id`` is the messages' ``thread_id``, or the message's own ``id`` when it stands alone (it has no thread
25540
+ * key). Counts and ``flagged`` cover the messages in the folder listed.
25541
+ */
25542
+ MailConversation: {
25543
+ /** Thread Id */
25544
+ thread_id: string;
25545
+ /**
25546
+ * Subject
25547
+ * @default
25548
+ */
25549
+ subject: string;
25550
+ /**
25551
+ * Preview
25552
+ * @default
25553
+ */
25554
+ preview: string;
25555
+ /** Senders */
25556
+ senders?: components['schemas']['MailAddress'][];
25557
+ /** Received At */
25558
+ received_at?: string | null;
25559
+ /** Message Count */
25560
+ message_count: number;
25561
+ /**
25562
+ * Unread Count
25563
+ * @default 0
25564
+ */
25565
+ unread_count: number;
25566
+ /**
25567
+ * Flagged
25568
+ * @default false
25569
+ */
25570
+ flagged: boolean;
25571
+ /** Messages */
25572
+ messages?: components['schemas']['MailMessage'][];
25573
+ };
25574
+ /** MailConversationPage */
25575
+ MailConversationPage: {
25576
+ /** Conversations */
25577
+ conversations: components['schemas']['MailConversation'][];
25578
+ /** Next Cursor */
25579
+ next_cursor?: string | null;
25580
+ };
25581
+ /**
25582
+ * MailThread
25583
+ * @description Every message of one conversation, oldest first: across folders (Sent replies too) except the Trash, unless it
25584
+ * is the Trash being read. IMAP has no cross-folder search: there it is the folder's.
25585
+ */
25586
+ MailThread: {
25587
+ /** Thread Id */
25588
+ thread_id: string;
25589
+ /** Messages */
25590
+ messages: components['schemas']['MailMessage'][];
25591
+ };
25592
+ /** NativeThreadKey */
25593
+ NativeThreadKey: {
25594
+ /** Message Id Hmac */
25595
+ message_id_hmac?: string | null;
25596
+ /** Thread Hmac */
25597
+ thread_hmac: string;
25598
+ };
25599
+ /**
25600
+ * NativeThreadKeys
25601
+ * @description Thread keys the owner's client computed for older messages (keyed by ``eml-`` id), which have none.
25602
+ */
25603
+ NativeThreadKeys: {
25604
+ /** Keys */
25605
+ keys: {
25606
+ [key: string]: components['schemas']['NativeThreadKey'];
25607
+ };
25608
+ };
25609
+ /** NativeThreadKeysSaved */
25610
+ NativeThreadKeysSaved: {
25611
+ /** Updated */
25612
+ updated: number;
25613
+ };
25614
+ /**
25615
+ * NativeThreadSecret
25616
+ * @description The owner's key for native mail thread keys (base64): HMAC-SHA256 over ``message:<Message-ID>``, hex, first
25617
+ * 32 characters, as ``email_threading.thread_keys``. Lets the owner's client key older mail the server cannot read.
25618
+ */
25619
+ NativeThreadSecret: {
25620
+ /** Secret */
25621
+ secret: string;
25622
+ };
25439
25623
  };
25440
25624
  responses: never;
25441
25625
  parameters: never;
@@ -39715,6 +39899,129 @@ interface operations {
39715
39899
  };
39716
39900
  };
39717
39901
  };
39902
+ conversations_v1_mail_accounts__account_id__conversations_get: {
39903
+ parameters: {
39904
+ query: {
39905
+ folder_id: string;
39906
+ q?: string;
39907
+ cursor?: string | null;
39908
+ limit?: number;
39909
+ };
39910
+ header?: never;
39911
+ path: {
39912
+ account_id: string;
39913
+ };
39914
+ cookie?: never;
39915
+ };
39916
+ requestBody?: never;
39917
+ responses: {
39918
+ /** @description Successful Response */
39919
+ 200: {
39920
+ headers: {
39921
+ [name: string]: unknown;
39922
+ };
39923
+ content: {
39924
+ 'application/json': components['schemas']['MailConversationPage'];
39925
+ };
39926
+ };
39927
+ /** @description Validation Error */
39928
+ 422: {
39929
+ headers: {
39930
+ [name: string]: unknown;
39931
+ };
39932
+ content: {
39933
+ 'application/json': components['schemas']['HTTPValidationError'];
39934
+ };
39935
+ };
39936
+ };
39937
+ };
39938
+ thread_v1_mail_accounts__account_id__thread_get: {
39939
+ parameters: {
39940
+ query: {
39941
+ thread_id: string;
39942
+ folder_id?: string;
39943
+ };
39944
+ header?: never;
39945
+ path: {
39946
+ account_id: string;
39947
+ };
39948
+ cookie?: never;
39949
+ };
39950
+ requestBody?: never;
39951
+ responses: {
39952
+ /** @description Successful Response */
39953
+ 200: {
39954
+ headers: {
39955
+ [name: string]: unknown;
39956
+ };
39957
+ content: {
39958
+ 'application/json': components['schemas']['MailThread'];
39959
+ };
39960
+ };
39961
+ /** @description Validation Error */
39962
+ 422: {
39963
+ headers: {
39964
+ [name: string]: unknown;
39965
+ };
39966
+ content: {
39967
+ 'application/json': components['schemas']['HTTPValidationError'];
39968
+ };
39969
+ };
39970
+ };
39971
+ };
39972
+ native_thread_secret_v1_mail_native_thread_secret_get: {
39973
+ parameters: {
39974
+ query?: never;
39975
+ header?: never;
39976
+ path?: never;
39977
+ cookie?: never;
39978
+ };
39979
+ requestBody?: never;
39980
+ responses: {
39981
+ /** @description Successful Response */
39982
+ 200: {
39983
+ headers: {
39984
+ [name: string]: unknown;
39985
+ };
39986
+ content: {
39987
+ 'application/json': components['schemas']['NativeThreadSecret'];
39988
+ };
39989
+ };
39990
+ };
39991
+ };
39992
+ native_thread_keys_v1_mail_native_thread_keys_post: {
39993
+ parameters: {
39994
+ query?: never;
39995
+ header?: never;
39996
+ path?: never;
39997
+ cookie?: never;
39998
+ };
39999
+ requestBody: {
40000
+ content: {
40001
+ 'application/json': components['schemas']['NativeThreadKeys'];
40002
+ };
40003
+ };
40004
+ responses: {
40005
+ /** @description Successful Response */
40006
+ 200: {
40007
+ headers: {
40008
+ [name: string]: unknown;
40009
+ };
40010
+ content: {
40011
+ 'application/json': components['schemas']['NativeThreadKeysSaved'];
40012
+ };
40013
+ };
40014
+ /** @description Validation Error */
40015
+ 422: {
40016
+ headers: {
40017
+ [name: string]: unknown;
40018
+ };
40019
+ content: {
40020
+ 'application/json': components['schemas']['HTTPValidationError'];
40021
+ };
40022
+ };
40023
+ };
40024
+ };
39718
40025
  }
39719
40026
 
39720
40027
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.5.97",
3
+ "version": "0.5.98",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "sideEffects": false,