@arbidocs/client 0.4.126 → 0.4.127

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
@@ -1225,7 +1225,13 @@ interface paths {
1225
1225
  get: operations['list_storage_items'];
1226
1226
  put?: never;
1227
1227
  post?: never;
1228
- delete?: never;
1228
+ /**
1229
+ * Purge Storage Items
1230
+ * @description Delete permanently what is in a project's trash now (Empty trash), or only some of it: deleted workspaces
1231
+ * and documents, mail in the Trash, orphaned files. It stops counting at once. This cannot be undone. Items not
1232
+ * in the trash are never touched.
1233
+ */
1234
+ delete: operations['purge_storage_items'];
1229
1235
  options?: never;
1230
1236
  head?: never;
1231
1237
  patch?: never;
@@ -1592,6 +1598,27 @@ interface paths {
1592
1598
  patch: operations['update_workspace'];
1593
1599
  trace?: never;
1594
1600
  };
1601
+ '/v1/workspace/restore': {
1602
+ parameters: {
1603
+ query?: never;
1604
+ header?: never;
1605
+ path?: never;
1606
+ cookie?: never;
1607
+ };
1608
+ get?: never;
1609
+ put?: never;
1610
+ /**
1611
+ * Restore Workspaces
1612
+ * @description Restore deleted workspaces (from Recently deleted) exactly as they were. Their owner only; returns the
1613
+ * workspaces restored. A workspace whose project was deleted cannot come back.
1614
+ */
1615
+ post: operations['restore_workspaces'];
1616
+ delete?: never;
1617
+ options?: never;
1618
+ head?: never;
1619
+ patch?: never;
1620
+ trace?: never;
1621
+ };
1595
1622
  '/v1/workspace/{workspace_ext_id}/project': {
1596
1623
  parameters: {
1597
1624
  query?: never;
@@ -2489,6 +2516,57 @@ interface paths {
2489
2516
  patch?: never;
2490
2517
  trace?: never;
2491
2518
  };
2519
+ '/v1/document/deleted': {
2520
+ parameters: {
2521
+ query?: never;
2522
+ header?: never;
2523
+ path?: never;
2524
+ cookie?: never;
2525
+ };
2526
+ /**
2527
+ * List Deleted Documents
2528
+ * @description The workspace's deleted documents the caller could see live (shared, or theirs), most recently deleted first,
2529
+ * with their names, what they still store and what the caller may do; for a manager, how much other members keep
2530
+ * private in the trash (count and bytes only).
2531
+ */
2532
+ get: operations['list_deleted_documents'];
2533
+ put?: never;
2534
+ post?: never;
2535
+ /**
2536
+ * Purge Deleted Documents
2537
+ * @description Delete deleted documents for good now (Delete permanently / Empty trash): rows, files and search index.
2538
+ * They stop counting against the project's storage. This cannot be undone.
2539
+ *
2540
+ * Empty trash (no ``external_ids``): a manager empties everything they can see (theirs and shared), plus other
2541
+ * members' private deleted documents only with ``include_others_private``; anyone else empties their own.
2542
+ */
2543
+ delete: operations['purge_deleted_documents'];
2544
+ options?: never;
2545
+ head?: never;
2546
+ patch?: never;
2547
+ trace?: never;
2548
+ };
2549
+ '/v1/document/restore': {
2550
+ parameters: {
2551
+ query?: never;
2552
+ header?: never;
2553
+ path?: never;
2554
+ cookie?: never;
2555
+ };
2556
+ get?: never;
2557
+ put?: never;
2558
+ /**
2559
+ * Restore Documents
2560
+ * @description Restore deleted documents (with whatever was deleted together with them: versions' family, an email's
2561
+ * attachments). They are re-indexed in the background from their stored parse output, then searchable again.
2562
+ */
2563
+ post: operations['restore_documents'];
2564
+ delete?: never;
2565
+ options?: never;
2566
+ head?: never;
2567
+ patch?: never;
2568
+ trace?: never;
2569
+ };
2492
2570
  '/v1/document/{document_ext_id}/sign/prepare': {
2493
2571
  parameters: {
2494
2572
  query?: never;
@@ -7387,7 +7465,12 @@ interface paths {
7387
7465
  get: operations['messages_v1_mail_accounts__account_id__messages_get'];
7388
7466
  put?: never;
7389
7467
  post?: never;
7390
- delete?: never;
7468
+ /**
7469
+ * Empty Trash
7470
+ * @description Empty the Trash: every message in it is deleted for good. (Messages left there are purged after the
7471
+ * retention window anyway.)
7472
+ */
7473
+ delete: operations['empty_trash_v1_mail_accounts__account_id__messages_delete'];
7391
7474
  options?: never;
7392
7475
  head?: never;
7393
7476
  patch?: never;
@@ -7404,7 +7487,11 @@ interface paths {
7404
7487
  get: operations['message_v1_mail_accounts__account_id__messages__message_id__get'];
7405
7488
  put?: never;
7406
7489
  post?: never;
7407
- delete?: never;
7490
+ /**
7491
+ * Delete Message
7492
+ * @description Delete a message for good (Delete forever): it stops counting against the personal project's storage.
7493
+ */
7494
+ delete: operations['delete_message_v1_mail_accounts__account_id__messages__message_id__delete'];
7408
7495
  options?: never;
7409
7496
  head?: never;
7410
7497
  /** Update */
@@ -13587,6 +13674,61 @@ interface components {
13587
13674
  /** External Ids */
13588
13675
  external_ids: string[];
13589
13676
  };
13677
+ /** DeletedDocument */
13678
+ DeletedDocument: {
13679
+ /** External Id */
13680
+ external_id: string;
13681
+ /** File Name */
13682
+ file_name: string | null;
13683
+ /** File Type */
13684
+ file_type: string | null;
13685
+ /**
13686
+ * Deleted At
13687
+ * Format: date-time
13688
+ */
13689
+ deleted_at: string;
13690
+ /** Bytes */
13691
+ bytes: number;
13692
+ /** Objects */
13693
+ objects: number;
13694
+ /** Can Restore */
13695
+ can_restore: boolean;
13696
+ /** Can Delete */
13697
+ can_delete: boolean;
13698
+ /** Mine */
13699
+ mine: boolean;
13700
+ };
13701
+ /** DeletedDocumentsPage */
13702
+ DeletedDocumentsPage: {
13703
+ /** Items */
13704
+ items: components['schemas']['DeletedDocument'][];
13705
+ /** Can Manage */
13706
+ can_manage: boolean;
13707
+ others_private?: components['schemas']['OthersPrivateTrash'] | null;
13708
+ };
13709
+ /**
13710
+ * DeletedDocumentsPurge
13711
+ * @description Which deleted documents to delete for good: these, or (omitted) every one the caller may (Empty trash).
13712
+ */
13713
+ DeletedDocumentsPurge: {
13714
+ /** External Ids */
13715
+ external_ids?: string[] | null;
13716
+ /**
13717
+ * Include Others Private
13718
+ * @default false
13719
+ */
13720
+ include_others_private: boolean;
13721
+ };
13722
+ /** DeletedDocumentsRequest */
13723
+ DeletedDocumentsRequest: {
13724
+ /** External Ids */
13725
+ external_ids: string[];
13726
+ };
13727
+ /** DeletedDocumentsResult */
13728
+ DeletedDocumentsResult: {
13729
+ /** External Ids */
13730
+ external_ids: string[];
13731
+ };
13590
13732
  /** DeploymentUserResponse */
13591
13733
  DeploymentUserResponse: {
13592
13734
  /** External Id */
@@ -16092,7 +16234,7 @@ interface components {
16092
16234
  /** Folder Id */
16093
16235
  folder_id?: string | null;
16094
16236
  /** Action */
16095
- action?: 'trash' | null;
16237
+ action?: ('trash' | 'restore') | null;
16096
16238
  };
16097
16239
  /**
16098
16240
  * MailPolicyRead
@@ -16281,6 +16423,11 @@ interface components {
16281
16423
  /** Provider */
16282
16424
  provider: string;
16283
16425
  };
16426
+ /** MailTrashEmptied */
16427
+ MailTrashEmptied: {
16428
+ /** Deleted */
16429
+ deleted: number;
16430
+ };
16284
16431
  /**
16285
16432
  * MailboxSyncRead
16286
16433
  * @description Public shape for a MailboxSync row returned by the enable-sync endpoint.
@@ -17191,6 +17338,16 @@ interface components {
17191
17338
  */
17192
17339
  background_sync: boolean;
17193
17340
  };
17341
+ /**
17342
+ * OthersPrivateTrash
17343
+ * @description Other members' private deleted documents: never listed, only counted, for a workspace manager.
17344
+ */
17345
+ OthersPrivateTrash: {
17346
+ /** Count */
17347
+ count: number;
17348
+ /** Bytes */
17349
+ bytes: number;
17350
+ };
17194
17351
  /**
17195
17352
  * OutputMessage
17196
17353
  * @description A `message` output_item — assistant text (Responses-standard).
@@ -21111,6 +21268,8 @@ interface components {
21111
21268
  folder?: string | null;
21112
21269
  /** Created At */
21113
21270
  created_at: string | null;
21271
+ /** Name */
21272
+ name?: string | null;
21114
21273
  };
21115
21274
  /** StorageItemsResponse */
21116
21275
  StorageItemsResponse: {
@@ -21169,6 +21328,22 @@ interface components {
21169
21328
  projects: components['schemas']['StorageProjectUsage'][];
21170
21329
  deployment?: components['schemas']['StorageDeploymentUsage'] | null;
21171
21330
  };
21331
+ /**
21332
+ * StoragePurgeResult
21333
+ * @description What a Delete permanently / Empty trash removed, and the bytes it freed.
21334
+ */
21335
+ StoragePurgeResult: {
21336
+ /** Workspaces */
21337
+ workspaces: number;
21338
+ /** Documents */
21339
+ documents: number;
21340
+ /** Mail */
21341
+ mail: number;
21342
+ /** Objects */
21343
+ objects: number;
21344
+ /** Bytes */
21345
+ bytes: number;
21346
+ };
21172
21347
  /** StorageSnapshotRead */
21173
21348
  StorageSnapshotRead: {
21174
21349
  /**
@@ -25800,6 +25975,8 @@ interface operations {
25800
25975
  state?: 'live' | 'trash' | 'all';
25801
25976
  limit?: number;
25802
25977
  offset?: number;
25978
+ /** @description names: decrypt documents' names (needs ``workspace`` and its key on the session) */
25979
+ include?: 'names'[];
25803
25980
  };
25804
25981
  header?: never;
25805
25982
  path?: never;
@@ -25827,6 +26004,44 @@ interface operations {
25827
26004
  };
25828
26005
  };
25829
26006
  };
26007
+ purge_storage_items: {
26008
+ parameters: {
26009
+ query: {
26010
+ /** @description The project whose trash to empty (its owner only) */
26011
+ project: string;
26012
+ /** @description Only this workspace's trash */
26013
+ workspace?: string | null;
26014
+ /** @description Only these items (refs from GET /items?state=trash) */
26015
+ refs?: string[];
26016
+ /** @description Also other members' private deleted documents (never listed to the owner; off unless asked) */
26017
+ include_others_private?: boolean;
26018
+ };
26019
+ header?: never;
26020
+ path?: never;
26021
+ cookie?: never;
26022
+ };
26023
+ requestBody?: never;
26024
+ responses: {
26025
+ /** @description Successful Response */
26026
+ 200: {
26027
+ headers: {
26028
+ [name: string]: unknown;
26029
+ };
26030
+ content: {
26031
+ 'application/json': components['schemas']['StoragePurgeResult'];
26032
+ };
26033
+ };
26034
+ /** @description Validation Error */
26035
+ 422: {
26036
+ headers: {
26037
+ [name: string]: unknown;
26038
+ };
26039
+ content: {
26040
+ 'application/json': components['schemas']['HTTPValidationError'];
26041
+ };
26042
+ };
26043
+ };
26044
+ };
25830
26045
  list_storage_snapshots: {
25831
26046
  parameters: {
25832
26047
  query?: {
@@ -26333,6 +26548,39 @@ interface operations {
26333
26548
  };
26334
26549
  };
26335
26550
  };
26551
+ restore_workspaces: {
26552
+ parameters: {
26553
+ query?: never;
26554
+ header?: never;
26555
+ path?: never;
26556
+ cookie?: never;
26557
+ };
26558
+ requestBody: {
26559
+ content: {
26560
+ 'application/json': components['schemas']['DeleteWorkspacesRequest'];
26561
+ };
26562
+ };
26563
+ responses: {
26564
+ /** @description Successful Response */
26565
+ 200: {
26566
+ headers: {
26567
+ [name: string]: unknown;
26568
+ };
26569
+ content: {
26570
+ 'application/json': string[];
26571
+ };
26572
+ };
26573
+ /** @description Validation Error */
26574
+ 422: {
26575
+ headers: {
26576
+ [name: string]: unknown;
26577
+ };
26578
+ content: {
26579
+ 'application/json': components['schemas']['HTTPValidationError'];
26580
+ };
26581
+ };
26582
+ };
26583
+ };
26336
26584
  move_workspace_to_project: {
26337
26585
  parameters: {
26338
26586
  query?: never;
@@ -27812,6 +28060,110 @@ interface operations {
27812
28060
  };
27813
28061
  };
27814
28062
  };
28063
+ list_deleted_documents: {
28064
+ parameters: {
28065
+ query?: {
28066
+ /** @description Destination workspace; defaults to the active workspace */
28067
+ workspace_ext_id?: string | null;
28068
+ };
28069
+ header?: never;
28070
+ path?: never;
28071
+ cookie?: never;
28072
+ };
28073
+ requestBody?: never;
28074
+ responses: {
28075
+ /** @description Successful Response */
28076
+ 200: {
28077
+ headers: {
28078
+ [name: string]: unknown;
28079
+ };
28080
+ content: {
28081
+ 'application/json': components['schemas']['DeletedDocumentsPage'];
28082
+ };
28083
+ };
28084
+ /** @description Validation Error */
28085
+ 422: {
28086
+ headers: {
28087
+ [name: string]: unknown;
28088
+ };
28089
+ content: {
28090
+ 'application/json': components['schemas']['HTTPValidationError'];
28091
+ };
28092
+ };
28093
+ };
28094
+ };
28095
+ purge_deleted_documents: {
28096
+ parameters: {
28097
+ query?: {
28098
+ /** @description Destination workspace; defaults to the active workspace */
28099
+ workspace_ext_id?: string | null;
28100
+ };
28101
+ header?: never;
28102
+ path?: never;
28103
+ cookie?: never;
28104
+ };
28105
+ requestBody?: {
28106
+ content: {
28107
+ 'application/json': components['schemas']['DeletedDocumentsPurge'];
28108
+ };
28109
+ };
28110
+ responses: {
28111
+ /** @description Successful Response */
28112
+ 200: {
28113
+ headers: {
28114
+ [name: string]: unknown;
28115
+ };
28116
+ content: {
28117
+ 'application/json': components['schemas']['DeletedDocumentsResult'];
28118
+ };
28119
+ };
28120
+ /** @description Validation Error */
28121
+ 422: {
28122
+ headers: {
28123
+ [name: string]: unknown;
28124
+ };
28125
+ content: {
28126
+ 'application/json': components['schemas']['HTTPValidationError'];
28127
+ };
28128
+ };
28129
+ };
28130
+ };
28131
+ restore_documents: {
28132
+ parameters: {
28133
+ query?: {
28134
+ /** @description Destination workspace; defaults to the active workspace */
28135
+ workspace_ext_id?: string | null;
28136
+ };
28137
+ header?: never;
28138
+ path?: never;
28139
+ cookie?: never;
28140
+ };
28141
+ requestBody: {
28142
+ content: {
28143
+ 'application/json': components['schemas']['DeletedDocumentsRequest'];
28144
+ };
28145
+ };
28146
+ responses: {
28147
+ /** @description Successful Response */
28148
+ 200: {
28149
+ headers: {
28150
+ [name: string]: unknown;
28151
+ };
28152
+ content: {
28153
+ 'application/json': components['schemas']['DeletedDocumentsResult'];
28154
+ };
28155
+ };
28156
+ /** @description Validation Error */
28157
+ 422: {
28158
+ headers: {
28159
+ [name: string]: unknown;
28160
+ };
28161
+ content: {
28162
+ 'application/json': components['schemas']['HTTPValidationError'];
28163
+ };
28164
+ };
28165
+ };
28166
+ };
27815
28167
  prepare_document_signature: {
27816
28168
  parameters: {
27817
28169
  query?: never;
@@ -36283,6 +36635,40 @@ interface operations {
36283
36635
  };
36284
36636
  };
36285
36637
  };
36638
+ empty_trash_v1_mail_accounts__account_id__messages_delete: {
36639
+ parameters: {
36640
+ query: {
36641
+ /** @description Only the Trash can be emptied */
36642
+ folder: 'trash';
36643
+ };
36644
+ header?: never;
36645
+ path: {
36646
+ account_id: string;
36647
+ };
36648
+ cookie?: never;
36649
+ };
36650
+ requestBody?: never;
36651
+ responses: {
36652
+ /** @description Successful Response */
36653
+ 200: {
36654
+ headers: {
36655
+ [name: string]: unknown;
36656
+ };
36657
+ content: {
36658
+ 'application/json': components['schemas']['MailTrashEmptied'];
36659
+ };
36660
+ };
36661
+ /** @description Validation Error */
36662
+ 422: {
36663
+ headers: {
36664
+ [name: string]: unknown;
36665
+ };
36666
+ content: {
36667
+ 'application/json': components['schemas']['HTTPValidationError'];
36668
+ };
36669
+ };
36670
+ };
36671
+ };
36286
36672
  message_v1_mail_accounts__account_id__messages__message_id__get: {
36287
36673
  parameters: {
36288
36674
  query?: never;
@@ -36315,6 +36701,36 @@ interface operations {
36315
36701
  };
36316
36702
  };
36317
36703
  };
36704
+ delete_message_v1_mail_accounts__account_id__messages__message_id__delete: {
36705
+ parameters: {
36706
+ query?: never;
36707
+ header?: never;
36708
+ path: {
36709
+ message_id: string;
36710
+ account_id: string;
36711
+ };
36712
+ cookie?: never;
36713
+ };
36714
+ requestBody?: never;
36715
+ responses: {
36716
+ /** @description Successful Response */
36717
+ 204: {
36718
+ headers: {
36719
+ [name: string]: unknown;
36720
+ };
36721
+ content?: never;
36722
+ };
36723
+ /** @description Validation Error */
36724
+ 422: {
36725
+ headers: {
36726
+ [name: string]: unknown;
36727
+ };
36728
+ content: {
36729
+ 'application/json': components['schemas']['HTTPValidationError'];
36730
+ };
36731
+ };
36732
+ };
36733
+ };
36318
36734
  update_v1_mail_accounts__account_id__messages__message_id__patch: {
36319
36735
  parameters: {
36320
36736
  query?: never;
package/dist/index.d.ts CHANGED
@@ -1225,7 +1225,13 @@ interface paths {
1225
1225
  get: operations['list_storage_items'];
1226
1226
  put?: never;
1227
1227
  post?: never;
1228
- delete?: never;
1228
+ /**
1229
+ * Purge Storage Items
1230
+ * @description Delete permanently what is in a project's trash now (Empty trash), or only some of it: deleted workspaces
1231
+ * and documents, mail in the Trash, orphaned files. It stops counting at once. This cannot be undone. Items not
1232
+ * in the trash are never touched.
1233
+ */
1234
+ delete: operations['purge_storage_items'];
1229
1235
  options?: never;
1230
1236
  head?: never;
1231
1237
  patch?: never;
@@ -1592,6 +1598,27 @@ interface paths {
1592
1598
  patch: operations['update_workspace'];
1593
1599
  trace?: never;
1594
1600
  };
1601
+ '/v1/workspace/restore': {
1602
+ parameters: {
1603
+ query?: never;
1604
+ header?: never;
1605
+ path?: never;
1606
+ cookie?: never;
1607
+ };
1608
+ get?: never;
1609
+ put?: never;
1610
+ /**
1611
+ * Restore Workspaces
1612
+ * @description Restore deleted workspaces (from Recently deleted) exactly as they were. Their owner only; returns the
1613
+ * workspaces restored. A workspace whose project was deleted cannot come back.
1614
+ */
1615
+ post: operations['restore_workspaces'];
1616
+ delete?: never;
1617
+ options?: never;
1618
+ head?: never;
1619
+ patch?: never;
1620
+ trace?: never;
1621
+ };
1595
1622
  '/v1/workspace/{workspace_ext_id}/project': {
1596
1623
  parameters: {
1597
1624
  query?: never;
@@ -2489,6 +2516,57 @@ interface paths {
2489
2516
  patch?: never;
2490
2517
  trace?: never;
2491
2518
  };
2519
+ '/v1/document/deleted': {
2520
+ parameters: {
2521
+ query?: never;
2522
+ header?: never;
2523
+ path?: never;
2524
+ cookie?: never;
2525
+ };
2526
+ /**
2527
+ * List Deleted Documents
2528
+ * @description The workspace's deleted documents the caller could see live (shared, or theirs), most recently deleted first,
2529
+ * with their names, what they still store and what the caller may do; for a manager, how much other members keep
2530
+ * private in the trash (count and bytes only).
2531
+ */
2532
+ get: operations['list_deleted_documents'];
2533
+ put?: never;
2534
+ post?: never;
2535
+ /**
2536
+ * Purge Deleted Documents
2537
+ * @description Delete deleted documents for good now (Delete permanently / Empty trash): rows, files and search index.
2538
+ * They stop counting against the project's storage. This cannot be undone.
2539
+ *
2540
+ * Empty trash (no ``external_ids``): a manager empties everything they can see (theirs and shared), plus other
2541
+ * members' private deleted documents only with ``include_others_private``; anyone else empties their own.
2542
+ */
2543
+ delete: operations['purge_deleted_documents'];
2544
+ options?: never;
2545
+ head?: never;
2546
+ patch?: never;
2547
+ trace?: never;
2548
+ };
2549
+ '/v1/document/restore': {
2550
+ parameters: {
2551
+ query?: never;
2552
+ header?: never;
2553
+ path?: never;
2554
+ cookie?: never;
2555
+ };
2556
+ get?: never;
2557
+ put?: never;
2558
+ /**
2559
+ * Restore Documents
2560
+ * @description Restore deleted documents (with whatever was deleted together with them: versions' family, an email's
2561
+ * attachments). They are re-indexed in the background from their stored parse output, then searchable again.
2562
+ */
2563
+ post: operations['restore_documents'];
2564
+ delete?: never;
2565
+ options?: never;
2566
+ head?: never;
2567
+ patch?: never;
2568
+ trace?: never;
2569
+ };
2492
2570
  '/v1/document/{document_ext_id}/sign/prepare': {
2493
2571
  parameters: {
2494
2572
  query?: never;
@@ -7387,7 +7465,12 @@ interface paths {
7387
7465
  get: operations['messages_v1_mail_accounts__account_id__messages_get'];
7388
7466
  put?: never;
7389
7467
  post?: never;
7390
- delete?: never;
7468
+ /**
7469
+ * Empty Trash
7470
+ * @description Empty the Trash: every message in it is deleted for good. (Messages left there are purged after the
7471
+ * retention window anyway.)
7472
+ */
7473
+ delete: operations['empty_trash_v1_mail_accounts__account_id__messages_delete'];
7391
7474
  options?: never;
7392
7475
  head?: never;
7393
7476
  patch?: never;
@@ -7404,7 +7487,11 @@ interface paths {
7404
7487
  get: operations['message_v1_mail_accounts__account_id__messages__message_id__get'];
7405
7488
  put?: never;
7406
7489
  post?: never;
7407
- delete?: never;
7490
+ /**
7491
+ * Delete Message
7492
+ * @description Delete a message for good (Delete forever): it stops counting against the personal project's storage.
7493
+ */
7494
+ delete: operations['delete_message_v1_mail_accounts__account_id__messages__message_id__delete'];
7408
7495
  options?: never;
7409
7496
  head?: never;
7410
7497
  /** Update */
@@ -13587,6 +13674,61 @@ interface components {
13587
13674
  /** External Ids */
13588
13675
  external_ids: string[];
13589
13676
  };
13677
+ /** DeletedDocument */
13678
+ DeletedDocument: {
13679
+ /** External Id */
13680
+ external_id: string;
13681
+ /** File Name */
13682
+ file_name: string | null;
13683
+ /** File Type */
13684
+ file_type: string | null;
13685
+ /**
13686
+ * Deleted At
13687
+ * Format: date-time
13688
+ */
13689
+ deleted_at: string;
13690
+ /** Bytes */
13691
+ bytes: number;
13692
+ /** Objects */
13693
+ objects: number;
13694
+ /** Can Restore */
13695
+ can_restore: boolean;
13696
+ /** Can Delete */
13697
+ can_delete: boolean;
13698
+ /** Mine */
13699
+ mine: boolean;
13700
+ };
13701
+ /** DeletedDocumentsPage */
13702
+ DeletedDocumentsPage: {
13703
+ /** Items */
13704
+ items: components['schemas']['DeletedDocument'][];
13705
+ /** Can Manage */
13706
+ can_manage: boolean;
13707
+ others_private?: components['schemas']['OthersPrivateTrash'] | null;
13708
+ };
13709
+ /**
13710
+ * DeletedDocumentsPurge
13711
+ * @description Which deleted documents to delete for good: these, or (omitted) every one the caller may (Empty trash).
13712
+ */
13713
+ DeletedDocumentsPurge: {
13714
+ /** External Ids */
13715
+ external_ids?: string[] | null;
13716
+ /**
13717
+ * Include Others Private
13718
+ * @default false
13719
+ */
13720
+ include_others_private: boolean;
13721
+ };
13722
+ /** DeletedDocumentsRequest */
13723
+ DeletedDocumentsRequest: {
13724
+ /** External Ids */
13725
+ external_ids: string[];
13726
+ };
13727
+ /** DeletedDocumentsResult */
13728
+ DeletedDocumentsResult: {
13729
+ /** External Ids */
13730
+ external_ids: string[];
13731
+ };
13590
13732
  /** DeploymentUserResponse */
13591
13733
  DeploymentUserResponse: {
13592
13734
  /** External Id */
@@ -16092,7 +16234,7 @@ interface components {
16092
16234
  /** Folder Id */
16093
16235
  folder_id?: string | null;
16094
16236
  /** Action */
16095
- action?: 'trash' | null;
16237
+ action?: ('trash' | 'restore') | null;
16096
16238
  };
16097
16239
  /**
16098
16240
  * MailPolicyRead
@@ -16281,6 +16423,11 @@ interface components {
16281
16423
  /** Provider */
16282
16424
  provider: string;
16283
16425
  };
16426
+ /** MailTrashEmptied */
16427
+ MailTrashEmptied: {
16428
+ /** Deleted */
16429
+ deleted: number;
16430
+ };
16284
16431
  /**
16285
16432
  * MailboxSyncRead
16286
16433
  * @description Public shape for a MailboxSync row returned by the enable-sync endpoint.
@@ -17191,6 +17338,16 @@ interface components {
17191
17338
  */
17192
17339
  background_sync: boolean;
17193
17340
  };
17341
+ /**
17342
+ * OthersPrivateTrash
17343
+ * @description Other members' private deleted documents: never listed, only counted, for a workspace manager.
17344
+ */
17345
+ OthersPrivateTrash: {
17346
+ /** Count */
17347
+ count: number;
17348
+ /** Bytes */
17349
+ bytes: number;
17350
+ };
17194
17351
  /**
17195
17352
  * OutputMessage
17196
17353
  * @description A `message` output_item — assistant text (Responses-standard).
@@ -21111,6 +21268,8 @@ interface components {
21111
21268
  folder?: string | null;
21112
21269
  /** Created At */
21113
21270
  created_at: string | null;
21271
+ /** Name */
21272
+ name?: string | null;
21114
21273
  };
21115
21274
  /** StorageItemsResponse */
21116
21275
  StorageItemsResponse: {
@@ -21169,6 +21328,22 @@ interface components {
21169
21328
  projects: components['schemas']['StorageProjectUsage'][];
21170
21329
  deployment?: components['schemas']['StorageDeploymentUsage'] | null;
21171
21330
  };
21331
+ /**
21332
+ * StoragePurgeResult
21333
+ * @description What a Delete permanently / Empty trash removed, and the bytes it freed.
21334
+ */
21335
+ StoragePurgeResult: {
21336
+ /** Workspaces */
21337
+ workspaces: number;
21338
+ /** Documents */
21339
+ documents: number;
21340
+ /** Mail */
21341
+ mail: number;
21342
+ /** Objects */
21343
+ objects: number;
21344
+ /** Bytes */
21345
+ bytes: number;
21346
+ };
21172
21347
  /** StorageSnapshotRead */
21173
21348
  StorageSnapshotRead: {
21174
21349
  /**
@@ -25800,6 +25975,8 @@ interface operations {
25800
25975
  state?: 'live' | 'trash' | 'all';
25801
25976
  limit?: number;
25802
25977
  offset?: number;
25978
+ /** @description names: decrypt documents' names (needs ``workspace`` and its key on the session) */
25979
+ include?: 'names'[];
25803
25980
  };
25804
25981
  header?: never;
25805
25982
  path?: never;
@@ -25827,6 +26004,44 @@ interface operations {
25827
26004
  };
25828
26005
  };
25829
26006
  };
26007
+ purge_storage_items: {
26008
+ parameters: {
26009
+ query: {
26010
+ /** @description The project whose trash to empty (its owner only) */
26011
+ project: string;
26012
+ /** @description Only this workspace's trash */
26013
+ workspace?: string | null;
26014
+ /** @description Only these items (refs from GET /items?state=trash) */
26015
+ refs?: string[];
26016
+ /** @description Also other members' private deleted documents (never listed to the owner; off unless asked) */
26017
+ include_others_private?: boolean;
26018
+ };
26019
+ header?: never;
26020
+ path?: never;
26021
+ cookie?: never;
26022
+ };
26023
+ requestBody?: never;
26024
+ responses: {
26025
+ /** @description Successful Response */
26026
+ 200: {
26027
+ headers: {
26028
+ [name: string]: unknown;
26029
+ };
26030
+ content: {
26031
+ 'application/json': components['schemas']['StoragePurgeResult'];
26032
+ };
26033
+ };
26034
+ /** @description Validation Error */
26035
+ 422: {
26036
+ headers: {
26037
+ [name: string]: unknown;
26038
+ };
26039
+ content: {
26040
+ 'application/json': components['schemas']['HTTPValidationError'];
26041
+ };
26042
+ };
26043
+ };
26044
+ };
25830
26045
  list_storage_snapshots: {
25831
26046
  parameters: {
25832
26047
  query?: {
@@ -26333,6 +26548,39 @@ interface operations {
26333
26548
  };
26334
26549
  };
26335
26550
  };
26551
+ restore_workspaces: {
26552
+ parameters: {
26553
+ query?: never;
26554
+ header?: never;
26555
+ path?: never;
26556
+ cookie?: never;
26557
+ };
26558
+ requestBody: {
26559
+ content: {
26560
+ 'application/json': components['schemas']['DeleteWorkspacesRequest'];
26561
+ };
26562
+ };
26563
+ responses: {
26564
+ /** @description Successful Response */
26565
+ 200: {
26566
+ headers: {
26567
+ [name: string]: unknown;
26568
+ };
26569
+ content: {
26570
+ 'application/json': string[];
26571
+ };
26572
+ };
26573
+ /** @description Validation Error */
26574
+ 422: {
26575
+ headers: {
26576
+ [name: string]: unknown;
26577
+ };
26578
+ content: {
26579
+ 'application/json': components['schemas']['HTTPValidationError'];
26580
+ };
26581
+ };
26582
+ };
26583
+ };
26336
26584
  move_workspace_to_project: {
26337
26585
  parameters: {
26338
26586
  query?: never;
@@ -27812,6 +28060,110 @@ interface operations {
27812
28060
  };
27813
28061
  };
27814
28062
  };
28063
+ list_deleted_documents: {
28064
+ parameters: {
28065
+ query?: {
28066
+ /** @description Destination workspace; defaults to the active workspace */
28067
+ workspace_ext_id?: string | null;
28068
+ };
28069
+ header?: never;
28070
+ path?: never;
28071
+ cookie?: never;
28072
+ };
28073
+ requestBody?: never;
28074
+ responses: {
28075
+ /** @description Successful Response */
28076
+ 200: {
28077
+ headers: {
28078
+ [name: string]: unknown;
28079
+ };
28080
+ content: {
28081
+ 'application/json': components['schemas']['DeletedDocumentsPage'];
28082
+ };
28083
+ };
28084
+ /** @description Validation Error */
28085
+ 422: {
28086
+ headers: {
28087
+ [name: string]: unknown;
28088
+ };
28089
+ content: {
28090
+ 'application/json': components['schemas']['HTTPValidationError'];
28091
+ };
28092
+ };
28093
+ };
28094
+ };
28095
+ purge_deleted_documents: {
28096
+ parameters: {
28097
+ query?: {
28098
+ /** @description Destination workspace; defaults to the active workspace */
28099
+ workspace_ext_id?: string | null;
28100
+ };
28101
+ header?: never;
28102
+ path?: never;
28103
+ cookie?: never;
28104
+ };
28105
+ requestBody?: {
28106
+ content: {
28107
+ 'application/json': components['schemas']['DeletedDocumentsPurge'];
28108
+ };
28109
+ };
28110
+ responses: {
28111
+ /** @description Successful Response */
28112
+ 200: {
28113
+ headers: {
28114
+ [name: string]: unknown;
28115
+ };
28116
+ content: {
28117
+ 'application/json': components['schemas']['DeletedDocumentsResult'];
28118
+ };
28119
+ };
28120
+ /** @description Validation Error */
28121
+ 422: {
28122
+ headers: {
28123
+ [name: string]: unknown;
28124
+ };
28125
+ content: {
28126
+ 'application/json': components['schemas']['HTTPValidationError'];
28127
+ };
28128
+ };
28129
+ };
28130
+ };
28131
+ restore_documents: {
28132
+ parameters: {
28133
+ query?: {
28134
+ /** @description Destination workspace; defaults to the active workspace */
28135
+ workspace_ext_id?: string | null;
28136
+ };
28137
+ header?: never;
28138
+ path?: never;
28139
+ cookie?: never;
28140
+ };
28141
+ requestBody: {
28142
+ content: {
28143
+ 'application/json': components['schemas']['DeletedDocumentsRequest'];
28144
+ };
28145
+ };
28146
+ responses: {
28147
+ /** @description Successful Response */
28148
+ 200: {
28149
+ headers: {
28150
+ [name: string]: unknown;
28151
+ };
28152
+ content: {
28153
+ 'application/json': components['schemas']['DeletedDocumentsResult'];
28154
+ };
28155
+ };
28156
+ /** @description Validation Error */
28157
+ 422: {
28158
+ headers: {
28159
+ [name: string]: unknown;
28160
+ };
28161
+ content: {
28162
+ 'application/json': components['schemas']['HTTPValidationError'];
28163
+ };
28164
+ };
28165
+ };
28166
+ };
27815
28167
  prepare_document_signature: {
27816
28168
  parameters: {
27817
28169
  query?: never;
@@ -36283,6 +36635,40 @@ interface operations {
36283
36635
  };
36284
36636
  };
36285
36637
  };
36638
+ empty_trash_v1_mail_accounts__account_id__messages_delete: {
36639
+ parameters: {
36640
+ query: {
36641
+ /** @description Only the Trash can be emptied */
36642
+ folder: 'trash';
36643
+ };
36644
+ header?: never;
36645
+ path: {
36646
+ account_id: string;
36647
+ };
36648
+ cookie?: never;
36649
+ };
36650
+ requestBody?: never;
36651
+ responses: {
36652
+ /** @description Successful Response */
36653
+ 200: {
36654
+ headers: {
36655
+ [name: string]: unknown;
36656
+ };
36657
+ content: {
36658
+ 'application/json': components['schemas']['MailTrashEmptied'];
36659
+ };
36660
+ };
36661
+ /** @description Validation Error */
36662
+ 422: {
36663
+ headers: {
36664
+ [name: string]: unknown;
36665
+ };
36666
+ content: {
36667
+ 'application/json': components['schemas']['HTTPValidationError'];
36668
+ };
36669
+ };
36670
+ };
36671
+ };
36286
36672
  message_v1_mail_accounts__account_id__messages__message_id__get: {
36287
36673
  parameters: {
36288
36674
  query?: never;
@@ -36315,6 +36701,36 @@ interface operations {
36315
36701
  };
36316
36702
  };
36317
36703
  };
36704
+ delete_message_v1_mail_accounts__account_id__messages__message_id__delete: {
36705
+ parameters: {
36706
+ query?: never;
36707
+ header?: never;
36708
+ path: {
36709
+ message_id: string;
36710
+ account_id: string;
36711
+ };
36712
+ cookie?: never;
36713
+ };
36714
+ requestBody?: never;
36715
+ responses: {
36716
+ /** @description Successful Response */
36717
+ 204: {
36718
+ headers: {
36719
+ [name: string]: unknown;
36720
+ };
36721
+ content?: never;
36722
+ };
36723
+ /** @description Validation Error */
36724
+ 422: {
36725
+ headers: {
36726
+ [name: string]: unknown;
36727
+ };
36728
+ content: {
36729
+ 'application/json': components['schemas']['HTTPValidationError'];
36730
+ };
36731
+ };
36732
+ };
36733
+ };
36318
36734
  update_v1_mail_accounts__account_id__messages__message_id__patch: {
36319
36735
  parameters: {
36320
36736
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.4.126",
3
+ "version": "0.4.127",
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,