@arbidocs/client 0.5.102 → 0.5.104

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
@@ -8627,6 +8627,158 @@ interface paths {
8627
8627
  patch?: never;
8628
8628
  trace?: never;
8629
8629
  };
8630
+ '/v1/mail/accounts/{account_id}/messages/{message_id}/file': {
8631
+ parameters: {
8632
+ query?: never;
8633
+ header?: never;
8634
+ path?: never;
8635
+ cookie?: never;
8636
+ };
8637
+ get?: never;
8638
+ put?: never;
8639
+ /**
8640
+ * File Message
8641
+ * @description Add a message to a workspace, as a document only you can see (the mailbox's filing row for that workspace,
8642
+ * as mailbox sync keeps it). Adding it again changes nothing.
8643
+ */
8644
+ post: operations['file_message_v1_mail_accounts__account_id__messages__message_id__file_post'];
8645
+ delete?: never;
8646
+ options?: never;
8647
+ head?: never;
8648
+ patch?: never;
8649
+ trace?: never;
8650
+ };
8651
+ '/v1/mail/accounts/{account_id}/conversations/file': {
8652
+ parameters: {
8653
+ query?: never;
8654
+ header?: never;
8655
+ path?: never;
8656
+ cookie?: never;
8657
+ };
8658
+ get?: never;
8659
+ put?: never;
8660
+ /**
8661
+ * File Conversation
8662
+ * @description Add a conversation to a workspace: its messages now (``message_ids``), and its replies from now on until
8663
+ * stopped. A native reply is filed the next time you open the workspace; a connected account's by your app as it
8664
+ * lists it.
8665
+ */
8666
+ post: operations['file_conversation_v1_mail_accounts__account_id__conversations_file_post'];
8667
+ delete?: never;
8668
+ options?: never;
8669
+ head?: never;
8670
+ patch?: never;
8671
+ trace?: never;
8672
+ };
8673
+ '/v1/mail/filing/{row_id}/threads': {
8674
+ parameters: {
8675
+ query?: never;
8676
+ header?: never;
8677
+ path?: never;
8678
+ cookie?: never;
8679
+ };
8680
+ get?: never;
8681
+ put?: never;
8682
+ post?: never;
8683
+ /**
8684
+ * Stop Conversation
8685
+ * @description Stop adding a conversation's replies to its workspace. What was filed stays.
8686
+ */
8687
+ delete: operations['stop_conversation_v1_mail_filing__row_id__threads_delete'];
8688
+ options?: never;
8689
+ head?: never;
8690
+ patch?: never;
8691
+ trace?: never;
8692
+ };
8693
+ '/v1/mail/accounts/{account_id}/filing': {
8694
+ parameters: {
8695
+ query?: never;
8696
+ header?: never;
8697
+ path?: never;
8698
+ cookie?: never;
8699
+ };
8700
+ get?: never;
8701
+ put?: never;
8702
+ /**
8703
+ * Filing State
8704
+ * @description Which of these messages are in a workspace (or wait to be), and which of these conversations add their
8705
+ * replies to one.
8706
+ */
8707
+ post: operations['filing_state_v1_mail_accounts__account_id__filing_post'];
8708
+ delete?: never;
8709
+ options?: never;
8710
+ head?: never;
8711
+ patch?: never;
8712
+ trace?: never;
8713
+ };
8714
+ '/v1/mail/native/filing': {
8715
+ parameters: {
8716
+ query?: never;
8717
+ header?: never;
8718
+ path?: never;
8719
+ cookie?: never;
8720
+ };
8721
+ /**
8722
+ * Native Filing
8723
+ * @description Where your ARBI mailbox files mail: per workspace, the folders filed ongoing and the conversations followed.
8724
+ */
8725
+ get: operations['native_filing_v1_mail_native_filing_get'];
8726
+ /**
8727
+ * Set Native Filing
8728
+ * @description File the ARBI mailbox's folders into a workspace, ongoing (as a connected mailbox syncs). The mail already in
8729
+ * them from the backfill window, and what arrives later, waits until you next open the workspace, and is filed
8730
+ * then with your session's keys.
8731
+ */
8732
+ put: operations['set_native_filing_v1_mail_native_filing_put'];
8733
+ post?: never;
8734
+ delete?: never;
8735
+ options?: never;
8736
+ head?: never;
8737
+ patch?: never;
8738
+ trace?: never;
8739
+ };
8740
+ '/v1/mail/native/filing/waiting': {
8741
+ parameters: {
8742
+ query?: never;
8743
+ header?: never;
8744
+ path?: never;
8745
+ cookie?: never;
8746
+ };
8747
+ /**
8748
+ * Native Filing Waiting
8749
+ * @description The sealed keys of ARBI mail waiting to be filed into this workspace, to bridge to the session
8750
+ * (``/native/session-keys``) before ``/native/filing/run``.
8751
+ */
8752
+ get: operations['native_filing_waiting_v1_mail_native_filing_waiting_get'];
8753
+ put?: never;
8754
+ post?: never;
8755
+ delete?: never;
8756
+ options?: never;
8757
+ head?: never;
8758
+ patch?: never;
8759
+ trace?: never;
8760
+ };
8761
+ '/v1/mail/native/filing/run': {
8762
+ parameters: {
8763
+ query?: never;
8764
+ header?: never;
8765
+ path?: never;
8766
+ cookie?: never;
8767
+ };
8768
+ get?: never;
8769
+ put?: never;
8770
+ /**
8771
+ * Run Native Filing
8772
+ * @description File the ARBI mail waiting for this workspace, with this session's keys (the workspace's, and the bridged
8773
+ * message keys). Called when the workspace is opened, like a connected mailbox's auto-sync.
8774
+ */
8775
+ post: operations['run_native_filing_v1_mail_native_filing_run_post'];
8776
+ delete?: never;
8777
+ options?: never;
8778
+ head?: never;
8779
+ patch?: never;
8780
+ trace?: never;
8781
+ };
8630
8782
  }
8631
8783
  type webhooks = Record<string, never>;
8632
8784
  interface components {
@@ -12884,6 +13036,11 @@ interface components {
12884
13036
  * @default 0
12885
13037
  */
12886
13038
  synced_count: number;
13039
+ /**
13040
+ * Threads
13041
+ * @default 0
13042
+ */
13043
+ threads: number;
12887
13044
  };
12888
13045
  /**
12889
13046
  * ConsolidatedHealthResponse
@@ -17409,6 +17566,11 @@ interface components {
17409
17566
  * @default false
17410
17567
  */
17411
17568
  auto_sync: boolean;
17569
+ /**
17570
+ * Threads
17571
+ * @default []
17572
+ */
17573
+ threads: string[];
17412
17574
  /** Last Sync At */
17413
17575
  last_sync_at?: string | null;
17414
17576
  };
@@ -25620,6 +25782,152 @@ interface components {
25620
25782
  /** Secret */
25621
25783
  secret: string;
25622
25784
  };
25785
+ /** MailConversationFiled */
25786
+ MailConversationFiled: {
25787
+ rule: components['schemas']['MailFilingRuleRead'];
25788
+ /** Filed */
25789
+ filed: components['schemas']['MailFiledRead'][];
25790
+ };
25791
+ /**
25792
+ * MailFile
25793
+ * @description Add a message to a workspace (``wrk-``), as a document only its filer can see.
25794
+ */
25795
+ MailFile: {
25796
+ /** Workspace Ext Id */
25797
+ workspace_ext_id: string;
25798
+ };
25799
+ /**
25800
+ * MailFileConversation
25801
+ * @description Add a conversation: its messages now (``message_ids``, the client's thread read) and its future replies.
25802
+ */
25803
+ MailFileConversation: {
25804
+ /** Workspace Ext Id */
25805
+ workspace_ext_id: string;
25806
+ /** Thread Id */
25807
+ thread_id: string;
25808
+ /** Message Ids */
25809
+ message_ids?: string[];
25810
+ };
25811
+ /** MailFiledRead */
25812
+ MailFiledRead: {
25813
+ /** Message Id */
25814
+ message_id: string;
25815
+ /** Workspace Ext Id */
25816
+ workspace_ext_id: string;
25817
+ /** Doc Ext Id */
25818
+ doc_ext_id?: string | null;
25819
+ /**
25820
+ * Pending
25821
+ * @default false
25822
+ */
25823
+ pending: boolean;
25824
+ };
25825
+ /**
25826
+ * MailFilingLookup
25827
+ * @description Which of these messages are in a workspace, and which of these conversations have a rule.
25828
+ */
25829
+ MailFilingLookup: {
25830
+ /** Message Ids */
25831
+ message_ids?: string[];
25832
+ /** Thread Ids */
25833
+ thread_ids?: string[];
25834
+ };
25835
+ /**
25836
+ * MailFilingRuleRead
25837
+ * @description A conversation whose future replies are added to a workspace: a thread of the mailbox's filing row
25838
+ * (``mailbox_sync``) for that workspace. ``id`` is that row's.
25839
+ */
25840
+ MailFilingRuleRead: {
25841
+ /** Id */
25842
+ id: string;
25843
+ /** Account Id */
25844
+ account_id: string;
25845
+ /** Workspace Ext Id */
25846
+ workspace_ext_id: string;
25847
+ /** Thread Id */
25848
+ thread_id?: string | null;
25849
+ /** Created At */
25850
+ created_at: string;
25851
+ };
25852
+ /** MailFilingState */
25853
+ MailFilingState: {
25854
+ /** Filed */
25855
+ filed: components['schemas']['MailFiledRead'][];
25856
+ /** Rules */
25857
+ rules: components['schemas']['MailFilingRuleRead'][];
25858
+ };
25859
+ /**
25860
+ * NativeFilingFolders
25861
+ * @description File the ARBI mailbox's ``folders`` (roles: inbox, sent, archive) into a workspace, ongoing: mail already
25862
+ * there from the last ``backfill_window`` days, then what arrives.
25863
+ */
25864
+ NativeFilingFolders: {
25865
+ /** Workspace Ext Id */
25866
+ workspace_ext_id: string;
25867
+ /** Folders */
25868
+ folders?: ('inbox' | 'sent' | 'archive')[];
25869
+ /**
25870
+ * Backfill Window
25871
+ * @default 90
25872
+ */
25873
+ backfill_window: number;
25874
+ };
25875
+ /**
25876
+ * NativeFilingKeys
25877
+ * @description Sealed keys of the messages waiting to be filed into a workspace (``native_mail_items.id`` → wrapped key),
25878
+ * for the client to bridge to its session (``/native/session-keys``) before ``/native/filing/run``.
25879
+ */
25880
+ NativeFilingKeys: {
25881
+ /** Keys */
25882
+ keys: {
25883
+ [key: string]: string;
25884
+ };
25885
+ };
25886
+ /**
25887
+ * NativeFilingRead
25888
+ * @description The ARBI mailbox's filing into one workspace: folders filed ongoing, conversations followed, and how many
25889
+ * messages wait to be filed (until the workspace is next opened).
25890
+ */
25891
+ NativeFilingRead: {
25892
+ /** Id */
25893
+ id: string;
25894
+ /** Workspace Ext Id */
25895
+ workspace_ext_id: string;
25896
+ /** Folders */
25897
+ folders: string[];
25898
+ /** Threads */
25899
+ threads: number;
25900
+ /** Backfill Window */
25901
+ backfill_window: number;
25902
+ /** Filed */
25903
+ filed: number;
25904
+ /** Waiting */
25905
+ waiting: number;
25906
+ /**
25907
+ * Failed
25908
+ * @default 0
25909
+ */
25910
+ failed: number;
25911
+ /** Last Sync At */
25912
+ last_sync_at?: string | null;
25913
+ };
25914
+ /** NativeFilingRun */
25915
+ NativeFilingRun: {
25916
+ /** Workspace Ext Id */
25917
+ workspace_ext_id: string;
25918
+ };
25919
+ /** NativeFilingRunResult */
25920
+ NativeFilingRunResult: {
25921
+ /** Filed */
25922
+ filed: number;
25923
+ /** Waiting */
25924
+ waiting: number;
25925
+ /**
25926
+ * Failed
25927
+ * @default 0
25928
+ */
25929
+ failed: number;
25930
+ };
25623
25931
  };
25624
25932
  responses: never;
25625
25933
  parameters: never;
@@ -40022,6 +40330,260 @@ interface operations {
40022
40330
  };
40023
40331
  };
40024
40332
  };
40333
+ file_message_v1_mail_accounts__account_id__messages__message_id__file_post: {
40334
+ parameters: {
40335
+ query?: never;
40336
+ header?: never;
40337
+ path: {
40338
+ account_id: string;
40339
+ message_id: string;
40340
+ };
40341
+ cookie?: never;
40342
+ };
40343
+ requestBody: {
40344
+ content: {
40345
+ 'application/json': components['schemas']['MailFile'];
40346
+ };
40347
+ };
40348
+ responses: {
40349
+ /** @description Successful Response */
40350
+ 200: {
40351
+ headers: {
40352
+ [name: string]: unknown;
40353
+ };
40354
+ content: {
40355
+ 'application/json': components['schemas']['MailFiledRead'];
40356
+ };
40357
+ };
40358
+ /** @description Validation Error */
40359
+ 422: {
40360
+ headers: {
40361
+ [name: string]: unknown;
40362
+ };
40363
+ content: {
40364
+ 'application/json': components['schemas']['HTTPValidationError'];
40365
+ };
40366
+ };
40367
+ };
40368
+ };
40369
+ file_conversation_v1_mail_accounts__account_id__conversations_file_post: {
40370
+ parameters: {
40371
+ query?: never;
40372
+ header?: never;
40373
+ path: {
40374
+ account_id: string;
40375
+ };
40376
+ cookie?: never;
40377
+ };
40378
+ requestBody: {
40379
+ content: {
40380
+ 'application/json': components['schemas']['MailFileConversation'];
40381
+ };
40382
+ };
40383
+ responses: {
40384
+ /** @description Successful Response */
40385
+ 200: {
40386
+ headers: {
40387
+ [name: string]: unknown;
40388
+ };
40389
+ content: {
40390
+ 'application/json': components['schemas']['MailConversationFiled'];
40391
+ };
40392
+ };
40393
+ /** @description Validation Error */
40394
+ 422: {
40395
+ headers: {
40396
+ [name: string]: unknown;
40397
+ };
40398
+ content: {
40399
+ 'application/json': components['schemas']['HTTPValidationError'];
40400
+ };
40401
+ };
40402
+ };
40403
+ };
40404
+ stop_conversation_v1_mail_filing__row_id__threads_delete: {
40405
+ parameters: {
40406
+ query: {
40407
+ thread_id: string;
40408
+ };
40409
+ header?: never;
40410
+ path: {
40411
+ row_id: string;
40412
+ };
40413
+ cookie?: never;
40414
+ };
40415
+ requestBody?: never;
40416
+ responses: {
40417
+ /** @description Successful Response */
40418
+ 204: {
40419
+ headers: {
40420
+ [name: string]: unknown;
40421
+ };
40422
+ content?: never;
40423
+ };
40424
+ /** @description Validation Error */
40425
+ 422: {
40426
+ headers: {
40427
+ [name: string]: unknown;
40428
+ };
40429
+ content: {
40430
+ 'application/json': components['schemas']['HTTPValidationError'];
40431
+ };
40432
+ };
40433
+ };
40434
+ };
40435
+ filing_state_v1_mail_accounts__account_id__filing_post: {
40436
+ parameters: {
40437
+ query?: never;
40438
+ header?: never;
40439
+ path: {
40440
+ account_id: string;
40441
+ };
40442
+ cookie?: never;
40443
+ };
40444
+ requestBody: {
40445
+ content: {
40446
+ 'application/json': components['schemas']['MailFilingLookup'];
40447
+ };
40448
+ };
40449
+ responses: {
40450
+ /** @description Successful Response */
40451
+ 200: {
40452
+ headers: {
40453
+ [name: string]: unknown;
40454
+ };
40455
+ content: {
40456
+ 'application/json': components['schemas']['MailFilingState'];
40457
+ };
40458
+ };
40459
+ /** @description Validation Error */
40460
+ 422: {
40461
+ headers: {
40462
+ [name: string]: unknown;
40463
+ };
40464
+ content: {
40465
+ 'application/json': components['schemas']['HTTPValidationError'];
40466
+ };
40467
+ };
40468
+ };
40469
+ };
40470
+ native_filing_v1_mail_native_filing_get: {
40471
+ parameters: {
40472
+ query?: never;
40473
+ header?: never;
40474
+ path?: never;
40475
+ cookie?: never;
40476
+ };
40477
+ requestBody?: never;
40478
+ responses: {
40479
+ /** @description Successful Response */
40480
+ 200: {
40481
+ headers: {
40482
+ [name: string]: unknown;
40483
+ };
40484
+ content: {
40485
+ 'application/json': components['schemas']['NativeFilingRead'][];
40486
+ };
40487
+ };
40488
+ };
40489
+ };
40490
+ set_native_filing_v1_mail_native_filing_put: {
40491
+ parameters: {
40492
+ query?: never;
40493
+ header?: never;
40494
+ path?: never;
40495
+ cookie?: never;
40496
+ };
40497
+ requestBody: {
40498
+ content: {
40499
+ 'application/json': components['schemas']['NativeFilingFolders'];
40500
+ };
40501
+ };
40502
+ responses: {
40503
+ /** @description Successful Response */
40504
+ 200: {
40505
+ headers: {
40506
+ [name: string]: unknown;
40507
+ };
40508
+ content: {
40509
+ 'application/json': components['schemas']['NativeFilingRead'];
40510
+ };
40511
+ };
40512
+ /** @description Validation Error */
40513
+ 422: {
40514
+ headers: {
40515
+ [name: string]: unknown;
40516
+ };
40517
+ content: {
40518
+ 'application/json': components['schemas']['HTTPValidationError'];
40519
+ };
40520
+ };
40521
+ };
40522
+ };
40523
+ native_filing_waiting_v1_mail_native_filing_waiting_get: {
40524
+ parameters: {
40525
+ query: {
40526
+ workspace_ext_id: string;
40527
+ };
40528
+ header?: never;
40529
+ path?: never;
40530
+ cookie?: never;
40531
+ };
40532
+ requestBody?: never;
40533
+ responses: {
40534
+ /** @description Successful Response */
40535
+ 200: {
40536
+ headers: {
40537
+ [name: string]: unknown;
40538
+ };
40539
+ content: {
40540
+ 'application/json': components['schemas']['NativeFilingKeys'];
40541
+ };
40542
+ };
40543
+ /** @description Validation Error */
40544
+ 422: {
40545
+ headers: {
40546
+ [name: string]: unknown;
40547
+ };
40548
+ content: {
40549
+ 'application/json': components['schemas']['HTTPValidationError'];
40550
+ };
40551
+ };
40552
+ };
40553
+ };
40554
+ run_native_filing_v1_mail_native_filing_run_post: {
40555
+ parameters: {
40556
+ query?: never;
40557
+ header?: never;
40558
+ path?: never;
40559
+ cookie?: never;
40560
+ };
40561
+ requestBody: {
40562
+ content: {
40563
+ 'application/json': components['schemas']['NativeFilingRun'];
40564
+ };
40565
+ };
40566
+ responses: {
40567
+ /** @description Successful Response */
40568
+ 200: {
40569
+ headers: {
40570
+ [name: string]: unknown;
40571
+ };
40572
+ content: {
40573
+ 'application/json': components['schemas']['NativeFilingRunResult'];
40574
+ };
40575
+ };
40576
+ /** @description Validation Error */
40577
+ 422: {
40578
+ headers: {
40579
+ [name: string]: unknown;
40580
+ };
40581
+ content: {
40582
+ 'application/json': components['schemas']['HTTPValidationError'];
40583
+ };
40584
+ };
40585
+ };
40586
+ };
40025
40587
  }
40026
40588
 
40027
40589
  /**
package/dist/index.d.ts CHANGED
@@ -8627,6 +8627,158 @@ interface paths {
8627
8627
  patch?: never;
8628
8628
  trace?: never;
8629
8629
  };
8630
+ '/v1/mail/accounts/{account_id}/messages/{message_id}/file': {
8631
+ parameters: {
8632
+ query?: never;
8633
+ header?: never;
8634
+ path?: never;
8635
+ cookie?: never;
8636
+ };
8637
+ get?: never;
8638
+ put?: never;
8639
+ /**
8640
+ * File Message
8641
+ * @description Add a message to a workspace, as a document only you can see (the mailbox's filing row for that workspace,
8642
+ * as mailbox sync keeps it). Adding it again changes nothing.
8643
+ */
8644
+ post: operations['file_message_v1_mail_accounts__account_id__messages__message_id__file_post'];
8645
+ delete?: never;
8646
+ options?: never;
8647
+ head?: never;
8648
+ patch?: never;
8649
+ trace?: never;
8650
+ };
8651
+ '/v1/mail/accounts/{account_id}/conversations/file': {
8652
+ parameters: {
8653
+ query?: never;
8654
+ header?: never;
8655
+ path?: never;
8656
+ cookie?: never;
8657
+ };
8658
+ get?: never;
8659
+ put?: never;
8660
+ /**
8661
+ * File Conversation
8662
+ * @description Add a conversation to a workspace: its messages now (``message_ids``), and its replies from now on until
8663
+ * stopped. A native reply is filed the next time you open the workspace; a connected account's by your app as it
8664
+ * lists it.
8665
+ */
8666
+ post: operations['file_conversation_v1_mail_accounts__account_id__conversations_file_post'];
8667
+ delete?: never;
8668
+ options?: never;
8669
+ head?: never;
8670
+ patch?: never;
8671
+ trace?: never;
8672
+ };
8673
+ '/v1/mail/filing/{row_id}/threads': {
8674
+ parameters: {
8675
+ query?: never;
8676
+ header?: never;
8677
+ path?: never;
8678
+ cookie?: never;
8679
+ };
8680
+ get?: never;
8681
+ put?: never;
8682
+ post?: never;
8683
+ /**
8684
+ * Stop Conversation
8685
+ * @description Stop adding a conversation's replies to its workspace. What was filed stays.
8686
+ */
8687
+ delete: operations['stop_conversation_v1_mail_filing__row_id__threads_delete'];
8688
+ options?: never;
8689
+ head?: never;
8690
+ patch?: never;
8691
+ trace?: never;
8692
+ };
8693
+ '/v1/mail/accounts/{account_id}/filing': {
8694
+ parameters: {
8695
+ query?: never;
8696
+ header?: never;
8697
+ path?: never;
8698
+ cookie?: never;
8699
+ };
8700
+ get?: never;
8701
+ put?: never;
8702
+ /**
8703
+ * Filing State
8704
+ * @description Which of these messages are in a workspace (or wait to be), and which of these conversations add their
8705
+ * replies to one.
8706
+ */
8707
+ post: operations['filing_state_v1_mail_accounts__account_id__filing_post'];
8708
+ delete?: never;
8709
+ options?: never;
8710
+ head?: never;
8711
+ patch?: never;
8712
+ trace?: never;
8713
+ };
8714
+ '/v1/mail/native/filing': {
8715
+ parameters: {
8716
+ query?: never;
8717
+ header?: never;
8718
+ path?: never;
8719
+ cookie?: never;
8720
+ };
8721
+ /**
8722
+ * Native Filing
8723
+ * @description Where your ARBI mailbox files mail: per workspace, the folders filed ongoing and the conversations followed.
8724
+ */
8725
+ get: operations['native_filing_v1_mail_native_filing_get'];
8726
+ /**
8727
+ * Set Native Filing
8728
+ * @description File the ARBI mailbox's folders into a workspace, ongoing (as a connected mailbox syncs). The mail already in
8729
+ * them from the backfill window, and what arrives later, waits until you next open the workspace, and is filed
8730
+ * then with your session's keys.
8731
+ */
8732
+ put: operations['set_native_filing_v1_mail_native_filing_put'];
8733
+ post?: never;
8734
+ delete?: never;
8735
+ options?: never;
8736
+ head?: never;
8737
+ patch?: never;
8738
+ trace?: never;
8739
+ };
8740
+ '/v1/mail/native/filing/waiting': {
8741
+ parameters: {
8742
+ query?: never;
8743
+ header?: never;
8744
+ path?: never;
8745
+ cookie?: never;
8746
+ };
8747
+ /**
8748
+ * Native Filing Waiting
8749
+ * @description The sealed keys of ARBI mail waiting to be filed into this workspace, to bridge to the session
8750
+ * (``/native/session-keys``) before ``/native/filing/run``.
8751
+ */
8752
+ get: operations['native_filing_waiting_v1_mail_native_filing_waiting_get'];
8753
+ put?: never;
8754
+ post?: never;
8755
+ delete?: never;
8756
+ options?: never;
8757
+ head?: never;
8758
+ patch?: never;
8759
+ trace?: never;
8760
+ };
8761
+ '/v1/mail/native/filing/run': {
8762
+ parameters: {
8763
+ query?: never;
8764
+ header?: never;
8765
+ path?: never;
8766
+ cookie?: never;
8767
+ };
8768
+ get?: never;
8769
+ put?: never;
8770
+ /**
8771
+ * Run Native Filing
8772
+ * @description File the ARBI mail waiting for this workspace, with this session's keys (the workspace's, and the bridged
8773
+ * message keys). Called when the workspace is opened, like a connected mailbox's auto-sync.
8774
+ */
8775
+ post: operations['run_native_filing_v1_mail_native_filing_run_post'];
8776
+ delete?: never;
8777
+ options?: never;
8778
+ head?: never;
8779
+ patch?: never;
8780
+ trace?: never;
8781
+ };
8630
8782
  }
8631
8783
  type webhooks = Record<string, never>;
8632
8784
  interface components {
@@ -12884,6 +13036,11 @@ interface components {
12884
13036
  * @default 0
12885
13037
  */
12886
13038
  synced_count: number;
13039
+ /**
13040
+ * Threads
13041
+ * @default 0
13042
+ */
13043
+ threads: number;
12887
13044
  };
12888
13045
  /**
12889
13046
  * ConsolidatedHealthResponse
@@ -17409,6 +17566,11 @@ interface components {
17409
17566
  * @default false
17410
17567
  */
17411
17568
  auto_sync: boolean;
17569
+ /**
17570
+ * Threads
17571
+ * @default []
17572
+ */
17573
+ threads: string[];
17412
17574
  /** Last Sync At */
17413
17575
  last_sync_at?: string | null;
17414
17576
  };
@@ -25620,6 +25782,152 @@ interface components {
25620
25782
  /** Secret */
25621
25783
  secret: string;
25622
25784
  };
25785
+ /** MailConversationFiled */
25786
+ MailConversationFiled: {
25787
+ rule: components['schemas']['MailFilingRuleRead'];
25788
+ /** Filed */
25789
+ filed: components['schemas']['MailFiledRead'][];
25790
+ };
25791
+ /**
25792
+ * MailFile
25793
+ * @description Add a message to a workspace (``wrk-``), as a document only its filer can see.
25794
+ */
25795
+ MailFile: {
25796
+ /** Workspace Ext Id */
25797
+ workspace_ext_id: string;
25798
+ };
25799
+ /**
25800
+ * MailFileConversation
25801
+ * @description Add a conversation: its messages now (``message_ids``, the client's thread read) and its future replies.
25802
+ */
25803
+ MailFileConversation: {
25804
+ /** Workspace Ext Id */
25805
+ workspace_ext_id: string;
25806
+ /** Thread Id */
25807
+ thread_id: string;
25808
+ /** Message Ids */
25809
+ message_ids?: string[];
25810
+ };
25811
+ /** MailFiledRead */
25812
+ MailFiledRead: {
25813
+ /** Message Id */
25814
+ message_id: string;
25815
+ /** Workspace Ext Id */
25816
+ workspace_ext_id: string;
25817
+ /** Doc Ext Id */
25818
+ doc_ext_id?: string | null;
25819
+ /**
25820
+ * Pending
25821
+ * @default false
25822
+ */
25823
+ pending: boolean;
25824
+ };
25825
+ /**
25826
+ * MailFilingLookup
25827
+ * @description Which of these messages are in a workspace, and which of these conversations have a rule.
25828
+ */
25829
+ MailFilingLookup: {
25830
+ /** Message Ids */
25831
+ message_ids?: string[];
25832
+ /** Thread Ids */
25833
+ thread_ids?: string[];
25834
+ };
25835
+ /**
25836
+ * MailFilingRuleRead
25837
+ * @description A conversation whose future replies are added to a workspace: a thread of the mailbox's filing row
25838
+ * (``mailbox_sync``) for that workspace. ``id`` is that row's.
25839
+ */
25840
+ MailFilingRuleRead: {
25841
+ /** Id */
25842
+ id: string;
25843
+ /** Account Id */
25844
+ account_id: string;
25845
+ /** Workspace Ext Id */
25846
+ workspace_ext_id: string;
25847
+ /** Thread Id */
25848
+ thread_id?: string | null;
25849
+ /** Created At */
25850
+ created_at: string;
25851
+ };
25852
+ /** MailFilingState */
25853
+ MailFilingState: {
25854
+ /** Filed */
25855
+ filed: components['schemas']['MailFiledRead'][];
25856
+ /** Rules */
25857
+ rules: components['schemas']['MailFilingRuleRead'][];
25858
+ };
25859
+ /**
25860
+ * NativeFilingFolders
25861
+ * @description File the ARBI mailbox's ``folders`` (roles: inbox, sent, archive) into a workspace, ongoing: mail already
25862
+ * there from the last ``backfill_window`` days, then what arrives.
25863
+ */
25864
+ NativeFilingFolders: {
25865
+ /** Workspace Ext Id */
25866
+ workspace_ext_id: string;
25867
+ /** Folders */
25868
+ folders?: ('inbox' | 'sent' | 'archive')[];
25869
+ /**
25870
+ * Backfill Window
25871
+ * @default 90
25872
+ */
25873
+ backfill_window: number;
25874
+ };
25875
+ /**
25876
+ * NativeFilingKeys
25877
+ * @description Sealed keys of the messages waiting to be filed into a workspace (``native_mail_items.id`` → wrapped key),
25878
+ * for the client to bridge to its session (``/native/session-keys``) before ``/native/filing/run``.
25879
+ */
25880
+ NativeFilingKeys: {
25881
+ /** Keys */
25882
+ keys: {
25883
+ [key: string]: string;
25884
+ };
25885
+ };
25886
+ /**
25887
+ * NativeFilingRead
25888
+ * @description The ARBI mailbox's filing into one workspace: folders filed ongoing, conversations followed, and how many
25889
+ * messages wait to be filed (until the workspace is next opened).
25890
+ */
25891
+ NativeFilingRead: {
25892
+ /** Id */
25893
+ id: string;
25894
+ /** Workspace Ext Id */
25895
+ workspace_ext_id: string;
25896
+ /** Folders */
25897
+ folders: string[];
25898
+ /** Threads */
25899
+ threads: number;
25900
+ /** Backfill Window */
25901
+ backfill_window: number;
25902
+ /** Filed */
25903
+ filed: number;
25904
+ /** Waiting */
25905
+ waiting: number;
25906
+ /**
25907
+ * Failed
25908
+ * @default 0
25909
+ */
25910
+ failed: number;
25911
+ /** Last Sync At */
25912
+ last_sync_at?: string | null;
25913
+ };
25914
+ /** NativeFilingRun */
25915
+ NativeFilingRun: {
25916
+ /** Workspace Ext Id */
25917
+ workspace_ext_id: string;
25918
+ };
25919
+ /** NativeFilingRunResult */
25920
+ NativeFilingRunResult: {
25921
+ /** Filed */
25922
+ filed: number;
25923
+ /** Waiting */
25924
+ waiting: number;
25925
+ /**
25926
+ * Failed
25927
+ * @default 0
25928
+ */
25929
+ failed: number;
25930
+ };
25623
25931
  };
25624
25932
  responses: never;
25625
25933
  parameters: never;
@@ -40022,6 +40330,260 @@ interface operations {
40022
40330
  };
40023
40331
  };
40024
40332
  };
40333
+ file_message_v1_mail_accounts__account_id__messages__message_id__file_post: {
40334
+ parameters: {
40335
+ query?: never;
40336
+ header?: never;
40337
+ path: {
40338
+ account_id: string;
40339
+ message_id: string;
40340
+ };
40341
+ cookie?: never;
40342
+ };
40343
+ requestBody: {
40344
+ content: {
40345
+ 'application/json': components['schemas']['MailFile'];
40346
+ };
40347
+ };
40348
+ responses: {
40349
+ /** @description Successful Response */
40350
+ 200: {
40351
+ headers: {
40352
+ [name: string]: unknown;
40353
+ };
40354
+ content: {
40355
+ 'application/json': components['schemas']['MailFiledRead'];
40356
+ };
40357
+ };
40358
+ /** @description Validation Error */
40359
+ 422: {
40360
+ headers: {
40361
+ [name: string]: unknown;
40362
+ };
40363
+ content: {
40364
+ 'application/json': components['schemas']['HTTPValidationError'];
40365
+ };
40366
+ };
40367
+ };
40368
+ };
40369
+ file_conversation_v1_mail_accounts__account_id__conversations_file_post: {
40370
+ parameters: {
40371
+ query?: never;
40372
+ header?: never;
40373
+ path: {
40374
+ account_id: string;
40375
+ };
40376
+ cookie?: never;
40377
+ };
40378
+ requestBody: {
40379
+ content: {
40380
+ 'application/json': components['schemas']['MailFileConversation'];
40381
+ };
40382
+ };
40383
+ responses: {
40384
+ /** @description Successful Response */
40385
+ 200: {
40386
+ headers: {
40387
+ [name: string]: unknown;
40388
+ };
40389
+ content: {
40390
+ 'application/json': components['schemas']['MailConversationFiled'];
40391
+ };
40392
+ };
40393
+ /** @description Validation Error */
40394
+ 422: {
40395
+ headers: {
40396
+ [name: string]: unknown;
40397
+ };
40398
+ content: {
40399
+ 'application/json': components['schemas']['HTTPValidationError'];
40400
+ };
40401
+ };
40402
+ };
40403
+ };
40404
+ stop_conversation_v1_mail_filing__row_id__threads_delete: {
40405
+ parameters: {
40406
+ query: {
40407
+ thread_id: string;
40408
+ };
40409
+ header?: never;
40410
+ path: {
40411
+ row_id: string;
40412
+ };
40413
+ cookie?: never;
40414
+ };
40415
+ requestBody?: never;
40416
+ responses: {
40417
+ /** @description Successful Response */
40418
+ 204: {
40419
+ headers: {
40420
+ [name: string]: unknown;
40421
+ };
40422
+ content?: never;
40423
+ };
40424
+ /** @description Validation Error */
40425
+ 422: {
40426
+ headers: {
40427
+ [name: string]: unknown;
40428
+ };
40429
+ content: {
40430
+ 'application/json': components['schemas']['HTTPValidationError'];
40431
+ };
40432
+ };
40433
+ };
40434
+ };
40435
+ filing_state_v1_mail_accounts__account_id__filing_post: {
40436
+ parameters: {
40437
+ query?: never;
40438
+ header?: never;
40439
+ path: {
40440
+ account_id: string;
40441
+ };
40442
+ cookie?: never;
40443
+ };
40444
+ requestBody: {
40445
+ content: {
40446
+ 'application/json': components['schemas']['MailFilingLookup'];
40447
+ };
40448
+ };
40449
+ responses: {
40450
+ /** @description Successful Response */
40451
+ 200: {
40452
+ headers: {
40453
+ [name: string]: unknown;
40454
+ };
40455
+ content: {
40456
+ 'application/json': components['schemas']['MailFilingState'];
40457
+ };
40458
+ };
40459
+ /** @description Validation Error */
40460
+ 422: {
40461
+ headers: {
40462
+ [name: string]: unknown;
40463
+ };
40464
+ content: {
40465
+ 'application/json': components['schemas']['HTTPValidationError'];
40466
+ };
40467
+ };
40468
+ };
40469
+ };
40470
+ native_filing_v1_mail_native_filing_get: {
40471
+ parameters: {
40472
+ query?: never;
40473
+ header?: never;
40474
+ path?: never;
40475
+ cookie?: never;
40476
+ };
40477
+ requestBody?: never;
40478
+ responses: {
40479
+ /** @description Successful Response */
40480
+ 200: {
40481
+ headers: {
40482
+ [name: string]: unknown;
40483
+ };
40484
+ content: {
40485
+ 'application/json': components['schemas']['NativeFilingRead'][];
40486
+ };
40487
+ };
40488
+ };
40489
+ };
40490
+ set_native_filing_v1_mail_native_filing_put: {
40491
+ parameters: {
40492
+ query?: never;
40493
+ header?: never;
40494
+ path?: never;
40495
+ cookie?: never;
40496
+ };
40497
+ requestBody: {
40498
+ content: {
40499
+ 'application/json': components['schemas']['NativeFilingFolders'];
40500
+ };
40501
+ };
40502
+ responses: {
40503
+ /** @description Successful Response */
40504
+ 200: {
40505
+ headers: {
40506
+ [name: string]: unknown;
40507
+ };
40508
+ content: {
40509
+ 'application/json': components['schemas']['NativeFilingRead'];
40510
+ };
40511
+ };
40512
+ /** @description Validation Error */
40513
+ 422: {
40514
+ headers: {
40515
+ [name: string]: unknown;
40516
+ };
40517
+ content: {
40518
+ 'application/json': components['schemas']['HTTPValidationError'];
40519
+ };
40520
+ };
40521
+ };
40522
+ };
40523
+ native_filing_waiting_v1_mail_native_filing_waiting_get: {
40524
+ parameters: {
40525
+ query: {
40526
+ workspace_ext_id: string;
40527
+ };
40528
+ header?: never;
40529
+ path?: never;
40530
+ cookie?: never;
40531
+ };
40532
+ requestBody?: never;
40533
+ responses: {
40534
+ /** @description Successful Response */
40535
+ 200: {
40536
+ headers: {
40537
+ [name: string]: unknown;
40538
+ };
40539
+ content: {
40540
+ 'application/json': components['schemas']['NativeFilingKeys'];
40541
+ };
40542
+ };
40543
+ /** @description Validation Error */
40544
+ 422: {
40545
+ headers: {
40546
+ [name: string]: unknown;
40547
+ };
40548
+ content: {
40549
+ 'application/json': components['schemas']['HTTPValidationError'];
40550
+ };
40551
+ };
40552
+ };
40553
+ };
40554
+ run_native_filing_v1_mail_native_filing_run_post: {
40555
+ parameters: {
40556
+ query?: never;
40557
+ header?: never;
40558
+ path?: never;
40559
+ cookie?: never;
40560
+ };
40561
+ requestBody: {
40562
+ content: {
40563
+ 'application/json': components['schemas']['NativeFilingRun'];
40564
+ };
40565
+ };
40566
+ responses: {
40567
+ /** @description Successful Response */
40568
+ 200: {
40569
+ headers: {
40570
+ [name: string]: unknown;
40571
+ };
40572
+ content: {
40573
+ 'application/json': components['schemas']['NativeFilingRunResult'];
40574
+ };
40575
+ };
40576
+ /** @description Validation Error */
40577
+ 422: {
40578
+ headers: {
40579
+ [name: string]: unknown;
40580
+ };
40581
+ content: {
40582
+ 'application/json': components['schemas']['HTTPValidationError'];
40583
+ };
40584
+ };
40585
+ };
40586
+ };
40025
40587
  }
40026
40588
 
40027
40589
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.5.102",
3
+ "version": "0.5.104",
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,