@protontech/drive-sdk 0.6.2 → 0.7.1

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.
Files changed (158) hide show
  1. package/dist/interface/index.d.ts +1 -0
  2. package/dist/interface/index.js.map +1 -1
  3. package/dist/interface/nodes.d.ts +14 -10
  4. package/dist/interface/nodes.js +5 -8
  5. package/dist/interface/nodes.js.map +1 -1
  6. package/dist/interface/photos.d.ts +62 -0
  7. package/dist/interface/photos.js +3 -0
  8. package/dist/interface/photos.js.map +1 -0
  9. package/dist/internal/apiService/apiService.d.ts +2 -2
  10. package/dist/internal/apiService/apiService.js.map +1 -1
  11. package/dist/internal/apiService/driveTypes.d.ts +1294 -517
  12. package/dist/internal/apiService/errors.js +4 -3
  13. package/dist/internal/apiService/errors.js.map +1 -1
  14. package/dist/internal/download/cryptoService.js +8 -6
  15. package/dist/internal/download/cryptoService.js.map +1 -1
  16. package/dist/internal/download/fileDownloader.d.ts +2 -1
  17. package/dist/internal/download/fileDownloader.js +6 -3
  18. package/dist/internal/download/fileDownloader.js.map +1 -1
  19. package/dist/internal/download/index.d.ts +1 -1
  20. package/dist/internal/download/index.js +3 -3
  21. package/dist/internal/download/index.js.map +1 -1
  22. package/dist/internal/errors.d.ts +1 -0
  23. package/dist/internal/errors.js +4 -0
  24. package/dist/internal/errors.js.map +1 -1
  25. package/dist/internal/nodes/apiService.d.ts +68 -16
  26. package/dist/internal/nodes/apiService.js +138 -85
  27. package/dist/internal/nodes/apiService.js.map +1 -1
  28. package/dist/internal/nodes/apiService.test.js +7 -5
  29. package/dist/internal/nodes/apiService.test.js.map +1 -1
  30. package/dist/internal/nodes/cache.d.ts +16 -8
  31. package/dist/internal/nodes/cache.js +19 -5
  32. package/dist/internal/nodes/cache.js.map +1 -1
  33. package/dist/internal/nodes/cache.test.js +1 -0
  34. package/dist/internal/nodes/cache.test.js.map +1 -1
  35. package/dist/internal/nodes/cryptoReporter.d.ts +3 -3
  36. package/dist/internal/nodes/cryptoReporter.js.map +1 -1
  37. package/dist/internal/nodes/cryptoService.d.ts +13 -22
  38. package/dist/internal/nodes/cryptoService.js +47 -16
  39. package/dist/internal/nodes/cryptoService.js.map +1 -1
  40. package/dist/internal/nodes/cryptoService.test.js +262 -17
  41. package/dist/internal/nodes/cryptoService.test.js.map +1 -1
  42. package/dist/internal/nodes/events.d.ts +2 -2
  43. package/dist/internal/nodes/events.js.map +1 -1
  44. package/dist/internal/nodes/index.test.js +1 -0
  45. package/dist/internal/nodes/index.test.js.map +1 -1
  46. package/dist/internal/nodes/interface.d.ts +14 -3
  47. package/dist/internal/nodes/nodesAccess.d.ts +36 -20
  48. package/dist/internal/nodes/nodesAccess.js +54 -29
  49. package/dist/internal/nodes/nodesAccess.js.map +1 -1
  50. package/dist/internal/nodes/nodesManagement.d.ts +34 -14
  51. package/dist/internal/nodes/nodesManagement.js +44 -31
  52. package/dist/internal/nodes/nodesManagement.js.map +1 -1
  53. package/dist/internal/nodes/nodesManagement.test.js +60 -14
  54. package/dist/internal/nodes/nodesManagement.test.js.map +1 -1
  55. package/dist/internal/nodes/nodesRevisions.d.ts +2 -2
  56. package/dist/internal/nodes/nodesRevisions.js.map +1 -1
  57. package/dist/internal/photos/albums.d.ts +2 -2
  58. package/dist/internal/photos/albums.js.map +1 -1
  59. package/dist/internal/photos/index.d.ts +19 -3
  60. package/dist/internal/photos/index.js +38 -8
  61. package/dist/internal/photos/index.js.map +1 -1
  62. package/dist/internal/photos/interface.d.ts +18 -9
  63. package/dist/internal/photos/nodes.d.ts +57 -0
  64. package/dist/internal/photos/nodes.js +165 -0
  65. package/dist/internal/photos/nodes.js.map +1 -0
  66. package/dist/internal/photos/timeline.d.ts +2 -2
  67. package/dist/internal/photos/timeline.js.map +1 -1
  68. package/dist/internal/photos/timeline.test.js.map +1 -1
  69. package/dist/internal/photos/upload.d.ts +2 -2
  70. package/dist/internal/photos/upload.js.map +1 -1
  71. package/dist/internal/sharingPublic/index.d.ts +6 -6
  72. package/dist/internal/sharingPublic/index.js +8 -7
  73. package/dist/internal/sharingPublic/index.js.map +1 -1
  74. package/dist/internal/sharingPublic/nodes.d.ts +16 -3
  75. package/dist/internal/sharingPublic/nodes.js +34 -2
  76. package/dist/internal/sharingPublic/nodes.js.map +1 -1
  77. package/dist/internal/sharingPublic/unauthApiService.d.ts +17 -0
  78. package/dist/internal/sharingPublic/unauthApiService.js +31 -0
  79. package/dist/internal/sharingPublic/unauthApiService.js.map +1 -0
  80. package/dist/internal/sharingPublic/unauthApiService.test.d.ts +1 -0
  81. package/dist/internal/sharingPublic/unauthApiService.test.js +27 -0
  82. package/dist/internal/sharingPublic/unauthApiService.test.js.map +1 -0
  83. package/dist/internal/upload/apiService.d.ts +4 -3
  84. package/dist/internal/upload/apiService.js.map +1 -1
  85. package/dist/internal/upload/cryptoService.d.ts +8 -3
  86. package/dist/internal/upload/cryptoService.js +45 -9
  87. package/dist/internal/upload/cryptoService.js.map +1 -1
  88. package/dist/internal/upload/fileUploader.test.js +1 -1
  89. package/dist/internal/upload/fileUploader.test.js.map +1 -1
  90. package/dist/internal/upload/interface.d.ts +25 -13
  91. package/dist/internal/upload/manager.js +7 -4
  92. package/dist/internal/upload/manager.js.map +1 -1
  93. package/dist/internal/upload/manager.test.js +5 -4
  94. package/dist/internal/upload/manager.test.js.map +1 -1
  95. package/dist/internal/upload/streamUploader.js +9 -4
  96. package/dist/internal/upload/streamUploader.js.map +1 -1
  97. package/dist/internal/upload/streamUploader.test.js +8 -5
  98. package/dist/internal/upload/streamUploader.test.js.map +1 -1
  99. package/dist/protonDriveClient.d.ts +11 -2
  100. package/dist/protonDriveClient.js +20 -4
  101. package/dist/protonDriveClient.js.map +1 -1
  102. package/dist/protonDrivePhotosClient.d.ts +8 -8
  103. package/dist/protonDrivePhotosClient.js +8 -9
  104. package/dist/protonDrivePhotosClient.js.map +1 -1
  105. package/dist/protonDrivePublicLinkClient.d.ts +9 -2
  106. package/dist/protonDrivePublicLinkClient.js +16 -5
  107. package/dist/protonDrivePublicLinkClient.js.map +1 -1
  108. package/dist/transformers.d.ts +7 -2
  109. package/dist/transformers.js +37 -0
  110. package/dist/transformers.js.map +1 -1
  111. package/package.json +1 -1
  112. package/src/interface/index.ts +1 -0
  113. package/src/interface/nodes.ts +14 -11
  114. package/src/interface/photos.ts +67 -0
  115. package/src/internal/apiService/apiService.ts +2 -2
  116. package/src/internal/apiService/driveTypes.ts +1294 -517
  117. package/src/internal/apiService/errors.ts +5 -4
  118. package/src/internal/download/cryptoService.ts +13 -6
  119. package/src/internal/download/fileDownloader.ts +4 -2
  120. package/src/internal/download/index.ts +3 -0
  121. package/src/internal/errors.ts +4 -0
  122. package/src/internal/nodes/apiService.test.ts +7 -5
  123. package/src/internal/nodes/apiService.ts +210 -124
  124. package/src/internal/nodes/cache.test.ts +1 -0
  125. package/src/internal/nodes/cache.ts +32 -13
  126. package/src/internal/nodes/cryptoReporter.ts +3 -3
  127. package/src/internal/nodes/cryptoService.test.ts +380 -18
  128. package/src/internal/nodes/cryptoService.ts +77 -36
  129. package/src/internal/nodes/events.ts +2 -2
  130. package/src/internal/nodes/index.test.ts +1 -0
  131. package/src/internal/nodes/interface.ts +17 -2
  132. package/src/internal/nodes/nodesAccess.ts +99 -54
  133. package/src/internal/nodes/nodesManagement.test.ts +69 -14
  134. package/src/internal/nodes/nodesManagement.ts +94 -48
  135. package/src/internal/nodes/nodesRevisions.ts +3 -3
  136. package/src/internal/photos/albums.ts +2 -2
  137. package/src/internal/photos/index.ts +45 -3
  138. package/src/internal/photos/interface.ts +21 -9
  139. package/src/internal/photos/nodes.ts +233 -0
  140. package/src/internal/photos/timeline.test.ts +2 -2
  141. package/src/internal/photos/timeline.ts +2 -2
  142. package/src/internal/photos/upload.ts +3 -3
  143. package/src/internal/sharingPublic/index.ts +7 -3
  144. package/src/internal/sharingPublic/nodes.ts +43 -2
  145. package/src/internal/sharingPublic/unauthApiService.test.ts +29 -0
  146. package/src/internal/sharingPublic/unauthApiService.ts +32 -0
  147. package/src/internal/upload/apiService.ts +4 -3
  148. package/src/internal/upload/cryptoService.ts +73 -12
  149. package/src/internal/upload/fileUploader.test.ts +1 -1
  150. package/src/internal/upload/interface.ts +24 -13
  151. package/src/internal/upload/manager.test.ts +5 -4
  152. package/src/internal/upload/manager.ts +7 -4
  153. package/src/internal/upload/streamUploader.test.ts +8 -5
  154. package/src/internal/upload/streamUploader.ts +10 -4
  155. package/src/protonDriveClient.ts +27 -5
  156. package/src/protonDrivePhotosClient.ts +23 -23
  157. package/src/protonDrivePublicLinkClient.ts +19 -3
  158. package/src/transformers.ts +49 -2
@@ -763,7 +763,10 @@ export interface paths {
763
763
  };
764
764
  get?: never;
765
765
  put?: never;
766
- /** Load links details */
766
+ /**
767
+ * Load links details
768
+ * @description Usage on Photo Volumes of this endpoint is DEPRECATED
769
+ */
767
770
  post: operations["post_drive-v2-volumes-{volumeID}-links"];
768
771
  delete?: never;
769
772
  options?: never;
@@ -1613,6 +1616,23 @@ export interface paths {
1613
1616
  patch?: never;
1614
1617
  trace?: never;
1615
1618
  };
1619
+ "/drive/photos/volumes/{volumeID}/links": {
1620
+ parameters: {
1621
+ query?: never;
1622
+ header?: never;
1623
+ path?: never;
1624
+ cookie?: never;
1625
+ };
1626
+ get?: never;
1627
+ put?: never;
1628
+ /** Load links details */
1629
+ post: operations["post_drive-photos-volumes-{volumeID}-links"];
1630
+ delete?: never;
1631
+ options?: never;
1632
+ head?: never;
1633
+ patch?: never;
1634
+ trace?: never;
1635
+ };
1616
1636
  "/drive/photos/volumes/{volumeID}/links/{linkID}/revisions/{revisionID}/xattr": {
1617
1637
  parameters: {
1618
1638
  query?: never;
@@ -1653,6 +1673,23 @@ export interface paths {
1653
1673
  patch?: never;
1654
1674
  trace?: never;
1655
1675
  };
1676
+ "/drive/urls/{token}/links/{linkID}/path": {
1677
+ parameters: {
1678
+ query?: never;
1679
+ header?: never;
1680
+ path?: never;
1681
+ cookie?: never;
1682
+ };
1683
+ /** Fetch link parentIDs by token */
1684
+ get: operations["get_drive-urls-{token}-links-{linkID}-path"];
1685
+ put?: never;
1686
+ post?: never;
1687
+ delete?: never;
1688
+ options?: never;
1689
+ head?: never;
1690
+ patch?: never;
1691
+ trace?: never;
1692
+ };
1656
1693
  "/drive/urls/{token}/info": {
1657
1694
  parameters: {
1658
1695
  query?: never;
@@ -1833,23 +1870,6 @@ export interface paths {
1833
1870
  patch?: never;
1834
1871
  trace?: never;
1835
1872
  };
1836
- "/drive/urls/{token}/links/{linkID}/path": {
1837
- parameters: {
1838
- query?: never;
1839
- header?: never;
1840
- path?: never;
1841
- cookie?: never;
1842
- };
1843
- /** Fetch link parentIDs by token */
1844
- get: operations["get_drive-urls-{token}-links-{linkID}-path"];
1845
- put?: never;
1846
- post?: never;
1847
- delete?: never;
1848
- options?: never;
1849
- head?: never;
1850
- patch?: never;
1851
- trace?: never;
1852
- };
1853
1873
  "/drive/urls/{token}/links/{linkID}/rename": {
1854
1874
  parameters: {
1855
1875
  query?: never;
@@ -2020,11 +2040,10 @@ export interface paths {
2020
2040
  path?: never;
2021
2041
  cookie?: never;
2022
2042
  };
2023
- /** List URL links on share. */
2043
+ /** List URLs on share */
2024
2044
  get: operations["get_drive-shares-{shareID}-urls"];
2025
2045
  put?: never;
2026
- /** Share by URL
2027
- * Create a share by URL link. */
2046
+ /** Share by URL */
2028
2047
  post: operations["post_drive-shares-{shareID}-urls"];
2029
2048
  delete?: never;
2030
2049
  options?: never;
@@ -2041,7 +2060,7 @@ export interface paths {
2041
2060
  };
2042
2061
  get?: never;
2043
2062
  /**
2044
- * Update a share by URL link.
2063
+ * Update a Share URL
2045
2064
  * @description Only values which are set in the request are updated. When the password is updated, the password, SharePassphraseKeyPacket and SRPVerifier must be updated together.
2046
2065
  */
2047
2066
  put: operations["put_drive-shares-{shareID}-urls-{urlID}"];
@@ -2062,7 +2081,7 @@ export interface paths {
2062
2081
  };
2063
2082
  get?: never;
2064
2083
  put?: never;
2065
- /** Delete multiple ShareURL in a batch. */
2084
+ /** Delete multiple Share URLs */
2066
2085
  post: operations["post_drive-shares-{shareID}-urls-delete_multiple"];
2067
2086
  delete?: never;
2068
2087
  options?: never;
@@ -2070,129 +2089,135 @@ export interface paths {
2070
2089
  patch?: never;
2071
2090
  trace?: never;
2072
2091
  };
2073
- "/drive/shares/{shareID}/map": {
2092
+ "/drive/unauth/v2/volumes/{volumeID}/links/{linkID}/checkAvailableHashes": {
2074
2093
  parameters: {
2075
2094
  query?: never;
2076
2095
  header?: never;
2077
2096
  path?: never;
2078
2097
  cookie?: never;
2079
2098
  };
2099
+ get?: never;
2100
+ put?: never;
2080
2101
  /**
2081
- * Search map
2082
- * @deprecated
2083
- * @description Used only for search on web that does not scale. Should be replaced by better version in the future.
2102
+ * Check available hashes
2103
+ * @description See /drive/v2/volumes/{volumeID}/links/{linkID}/checkAvailableHashes for full documentation
2084
2104
  */
2085
- get: operations["get_drive-shares-{shareID}-map"];
2086
- put?: never;
2087
- post?: never;
2105
+ post: operations["post_drive-unauth-v2-volumes-{volumeID}-links-{linkID}-checkAvailableHashes"];
2088
2106
  delete?: never;
2089
2107
  options?: never;
2090
2108
  head?: never;
2091
2109
  patch?: never;
2092
2110
  trace?: never;
2093
2111
  };
2094
- "/drive/v2/shares/my-files": {
2112
+ "/drive/unauth/v2/volumes/{volumeID}/files/{linkID}/revisions/{revisionID}": {
2095
2113
  parameters: {
2096
2114
  query?: never;
2097
2115
  header?: never;
2098
2116
  path?: never;
2099
2117
  cookie?: never;
2100
2118
  };
2101
- /** Bootstrap my files */
2102
- get: operations["get_drive-v2-shares-my-files"];
2103
- put?: never;
2119
+ /**
2120
+ * Get revision
2121
+ * @description See /drive/v2/volumes/{volumeID}/files/{linkID}/revisions/{revisionID} for full documentation
2122
+ */
2123
+ get: operations["get_drive-unauth-v2-volumes-{volumeID}-files-{linkID}-revisions-{revisionID}"];
2124
+ /**
2125
+ * Commit a revision
2126
+ * @description See /drive/v2/volumes/{volumeID}/files/{linkID}/revisions/{revisionID} for full documentation
2127
+ */
2128
+ put: operations["put_drive-unauth-v2-volumes-{volumeID}-files-{linkID}-revisions-{revisionID}"];
2104
2129
  post?: never;
2105
- delete?: never;
2130
+ /**
2131
+ * Delete an obsolete/draft revision
2132
+ * @description See /drive/v2/volumes/{volumeID}/files/{linkID}/revisions/{revisionID} for full documentation
2133
+ */
2134
+ delete: operations["delete_drive-unauth-v2-volumes-{volumeID}-files-{linkID}-revisions-{revisionID}"];
2106
2135
  options?: never;
2107
2136
  head?: never;
2108
2137
  patch?: never;
2109
2138
  trace?: never;
2110
2139
  };
2111
- "/drive/v2/shares/photos": {
2140
+ "/drive/unauth/v2/volumes/{volumeID}/documents": {
2112
2141
  parameters: {
2113
2142
  query?: never;
2114
2143
  header?: never;
2115
2144
  path?: never;
2116
2145
  cookie?: never;
2117
2146
  };
2118
- /** Bootstrap photos section */
2119
- get: operations["get_drive-v2-shares-photos"];
2147
+ get?: never;
2120
2148
  put?: never;
2121
- post?: never;
2149
+ /**
2150
+ * Create document
2151
+ * @description See /drive/v2/volumes/{volumeID}/documents for full documentation
2152
+ */
2153
+ post: operations["post_drive-unauth-v2-volumes-{volumeID}-documents"];
2122
2154
  delete?: never;
2123
2155
  options?: never;
2124
2156
  head?: never;
2125
2157
  patch?: never;
2126
2158
  trace?: never;
2127
2159
  };
2128
- "/drive/shares/{shareID}": {
2160
+ "/drive/unauth/v2/volumes/{volumeID}/files": {
2129
2161
  parameters: {
2130
2162
  query?: never;
2131
2163
  header?: never;
2132
2164
  path?: never;
2133
2165
  cookie?: never;
2134
2166
  };
2135
- /** Get share bootstrap */
2136
- get: operations["get_drive-shares-{shareID}"];
2167
+ get?: never;
2137
2168
  put?: never;
2138
- post?: never;
2139
2169
  /**
2140
- * Delete a standard share by ID
2141
- * @description Only standard shares (type 2) can be deleted this way.
2142
- * Will throw 422 with body code 2005 if Members, ShareURLs or Invitations are still attached to the share.
2143
- * Use Force=1 query param to delete the share together with any attached entities.
2170
+ * Create a new draft file
2171
+ * @description See /drive/v2/volumes/{volumeID}/files for full documentation
2144
2172
  */
2145
- delete: operations["delete_drive-shares-{shareID}"];
2173
+ post: operations["post_drive-unauth-v2-volumes-{volumeID}-files"];
2174
+ delete?: never;
2146
2175
  options?: never;
2147
2176
  head?: never;
2148
2177
  patch?: never;
2149
2178
  trace?: never;
2150
2179
  };
2151
- "/drive/volumes/{volumeID}/links/{linkID}/context": {
2180
+ "/drive/unauth/v2/volumes/{volumeID}/folders": {
2152
2181
  parameters: {
2153
2182
  query?: never;
2154
2183
  header?: never;
2155
2184
  path?: never;
2156
2185
  cookie?: never;
2157
2186
  };
2187
+ get?: never;
2188
+ put?: never;
2158
2189
  /**
2159
- * Get context share
2160
- * @description Gets the highest share, meaning closest to the root, for a link
2190
+ * Create a folder (v2)
2191
+ * @description See /drive/v2/volumes/{volumeID}/folders for full documentation
2161
2192
  */
2162
- get: operations["get_drive-volumes-{volumeID}-links-{linkID}-context"];
2163
- put?: never;
2164
- post?: never;
2193
+ post: operations["post_drive-unauth-v2-volumes-{volumeID}-folders"];
2165
2194
  delete?: never;
2166
2195
  options?: never;
2167
2196
  head?: never;
2168
2197
  patch?: never;
2169
2198
  trace?: never;
2170
2199
  };
2171
- "/drive/shares": {
2200
+ "/drive/unauth/v2/volumes/{volumeID}/files/{linkID}/revisions": {
2172
2201
  parameters: {
2173
2202
  query?: never;
2174
2203
  header?: never;
2175
2204
  path?: never;
2176
2205
  cookie?: never;
2177
2206
  };
2207
+ get?: never;
2208
+ put?: never;
2178
2209
  /**
2179
- * List shares
2180
- * @description List shares available to current user.
2181
- *
2182
- * The results can be restricted to a single address by providing the AddressID query parameter.
2183
- * By default, only active shares are shown.
2184
- * Passing the ShowAll=1 query parameter will show locked and disabled shares also.
2210
+ * Create revision
2211
+ * @description See /drive/v2/volumes/{volumeID}/files/{linkID}/revisions for full documentation
2185
2212
  */
2186
- get: operations["get_drive-shares"];
2187
- put?: never;
2188
- post?: never;
2213
+ post: operations["post_drive-unauth-v2-volumes-{volumeID}-files-{linkID}-revisions"];
2189
2214
  delete?: never;
2190
2215
  options?: never;
2191
2216
  head?: never;
2192
2217
  patch?: never;
2193
2218
  trace?: never;
2194
2219
  };
2195
- "/drive/shares/{shareID}/owner": {
2220
+ "/drive/unauth/v2/volumes/{volumeID}/delete_multiple": {
2196
2221
  parameters: {
2197
2222
  query?: never;
2198
2223
  header?: never;
@@ -2202,18 +2227,17 @@ export interface paths {
2202
2227
  get?: never;
2203
2228
  put?: never;
2204
2229
  /**
2205
- * Update ownership of a share
2206
- * @description Replace the signature and related membership of the share.
2207
- * This allows users to change the associated address & key they use for a share, so that they can get rid of it.
2230
+ * Delete multiple (v2)
2231
+ * @description See /drive/v2/volumes/{volumeID}/delete_multiple for full documentation
2208
2232
  */
2209
- post: operations["post_drive-shares-{shareID}-owner"];
2233
+ post: operations["post_drive-unauth-v2-volumes-{volumeID}-delete_multiple"];
2210
2234
  delete?: never;
2211
2235
  options?: never;
2212
2236
  head?: never;
2213
2237
  patch?: never;
2214
2238
  trace?: never;
2215
2239
  };
2216
- "/drive/migrations/shareaccesswithnode": {
2240
+ "/drive/unauth/volumes/{volumeID}/thumbnails": {
2217
2241
  parameters: {
2218
2242
  query?: never;
2219
2243
  header?: never;
@@ -2222,15 +2246,18 @@ export interface paths {
2222
2246
  };
2223
2247
  get?: never;
2224
2248
  put?: never;
2225
- /** Migrate legacy Shares */
2226
- post: operations["post_drive-migrations-shareaccesswithnode"];
2249
+ /**
2250
+ * Fetch thumbnails by IDs.
2251
+ * @description See /drive/volumes/{volumeID}/thumbnails for full documentation
2252
+ */
2253
+ post: operations["post_drive-unauth-volumes-{volumeID}-thumbnails"];
2227
2254
  delete?: never;
2228
2255
  options?: never;
2229
2256
  head?: never;
2230
2257
  patch?: never;
2231
2258
  trace?: never;
2232
2259
  };
2233
- "/drive/migrations/shareaccesswithnode/unmigrated": {
2260
+ "/drive/unauth/v2/volumes/{volumeID}/folders/{linkID}/children": {
2234
2261
  parameters: {
2235
2262
  query?: never;
2236
2263
  header?: never;
@@ -2238,11 +2265,10 @@ export interface paths {
2238
2265
  cookie?: never;
2239
2266
  };
2240
2267
  /**
2241
- * List unmigrated shares
2242
- * @description List shares that have not been migrated to the new PassphraseNodeKeyPacket yet.
2243
- * Will throw a 422 with Code 2000 if the current user doesn't have any active Volume.
2268
+ * List folder children (v2)
2269
+ * @description See /drive/v2/volumes/{volumeID}/folders/{linkID}/children for full documentation
2244
2270
  */
2245
- get: operations["get_drive-migrations-shareaccesswithnode-unmigrated"];
2271
+ get: operations["get_drive-unauth-v2-volumes-{volumeID}-folders-{linkID}-children"];
2246
2272
  put?: never;
2247
2273
  post?: never;
2248
2274
  delete?: never;
@@ -2251,7 +2277,7 @@ export interface paths {
2251
2277
  patch?: never;
2252
2278
  trace?: never;
2253
2279
  };
2254
- "/drive/volumes/{volumeID}/shares": {
2280
+ "/drive/unauth/v2/volumes/{volumeID}/links": {
2255
2281
  parameters: {
2256
2282
  query?: never;
2257
2283
  header?: never;
@@ -2261,29 +2287,29 @@ export interface paths {
2261
2287
  get?: never;
2262
2288
  put?: never;
2263
2289
  /**
2264
- * Create a standard share
2265
- * @description Cannot create two shares on the same link. Throws 422 with code 2500 in case a share already exists.
2290
+ * Load links details
2291
+ * @description See /drive/v2/volumes/{volumeID}/links for full documentation
2266
2292
  */
2267
- post: operations["post_drive-volumes-{volumeID}-shares"];
2293
+ post: operations["post_drive-unauth-v2-volumes-{volumeID}-links"];
2268
2294
  delete?: never;
2269
2295
  options?: never;
2270
2296
  head?: never;
2271
2297
  patch?: never;
2272
2298
  trace?: never;
2273
2299
  };
2274
- "/drive/v2/volumes/{volumeID}/shares": {
2300
+ "/drive/unauth/v2/volumes/{volumeID}/links/{linkID}/rename": {
2275
2301
  parameters: {
2276
2302
  query?: never;
2277
2303
  header?: never;
2278
2304
  path?: never;
2279
2305
  cookie?: never;
2280
2306
  };
2307
+ get?: never;
2281
2308
  /**
2282
- * Shared by me
2283
- * @description List Collaborative Shares in the given volume that are not abandoned, i.e. they either have members, invitations or URLs attached.
2309
+ * Rename link
2310
+ * @description See /drive/v2/volumes/{volumeID}/links/{linkID}/rename for full documentation
2284
2311
  */
2285
- get: operations["get_drive-v2-volumes-{volumeID}-shares"];
2286
- put?: never;
2312
+ put: operations["put_drive-unauth-v2-volumes-{volumeID}-links-{linkID}-rename"];
2287
2313
  post?: never;
2288
2314
  delete?: never;
2289
2315
  options?: never;
@@ -2291,53 +2317,47 @@ export interface paths {
2291
2317
  patch?: never;
2292
2318
  trace?: never;
2293
2319
  };
2294
- "/drive/v2/sharedwithme": {
2320
+ "/drive/unauth/blocks": {
2295
2321
  parameters: {
2296
2322
  query?: never;
2297
2323
  header?: never;
2298
2324
  path?: never;
2299
2325
  cookie?: never;
2300
2326
  };
2327
+ get?: never;
2328
+ put?: never;
2301
2329
  /**
2302
- * Shared with me
2303
- * @description List Collaborative Shares the user has access to as a non-owner
2330
+ * Request block upload
2331
+ * @description See /drive/blocks for full documentation
2304
2332
  */
2305
- get: operations["get_drive-v2-sharedwithme"];
2306
- put?: never;
2307
- post?: never;
2333
+ post: operations["post_drive-unauth-blocks"];
2308
2334
  delete?: never;
2309
2335
  options?: never;
2310
2336
  head?: never;
2311
2337
  patch?: never;
2312
2338
  trace?: never;
2313
2339
  };
2314
- "/drive/v2/shares/{shareID}/external-invitations/{invitationID}": {
2340
+ "/drive/unauth/v2/volumes/{volumeID}/links/{linkID}/revisions/{revisionID}/verification": {
2315
2341
  parameters: {
2316
2342
  query?: never;
2317
2343
  header?: never;
2318
2344
  path?: never;
2319
2345
  cookie?: never;
2320
2346
  };
2321
- get?: never;
2322
2347
  /**
2323
- * Update an external invitation
2324
- * @description Only permissions can be changed. They can be changed when the external invitation is pending or accepted.
2325
- * After the external invitation has been accepted, the invitation's permissions can be edited.
2326
- * The current user must have admin permission on the share.
2348
+ * Get verification data.
2349
+ * @description See /drive/v2/volumes/{volumeID}/links/{linkID}/revisions/{revisionID}/verification for full documentation
2327
2350
  */
2328
- put: operations["put_drive-v2-shares-{shareID}-external-invitations-{invitationID}"];
2351
+ get: operations["get_drive-unauth-v2-volumes-{volumeID}-links-{linkID}-revisions-{revisionID}-verification"];
2352
+ put?: never;
2329
2353
  post?: never;
2330
- /**
2331
- * Delete an external invitation
2332
- * @description The current user must have admin permission on the share.
2333
- */
2334
- delete: operations["delete_drive-v2-shares-{shareID}-external-invitations-{invitationID}"];
2354
+ delete?: never;
2335
2355
  options?: never;
2336
2356
  head?: never;
2337
2357
  patch?: never;
2338
2358
  trace?: never;
2339
2359
  };
2340
- "/drive/v2/shares/{shareID}/external-invitations": {
2360
+ "/drive/shares/{shareID}/map": {
2341
2361
  parameters: {
2342
2362
  query?: never;
2343
2363
  header?: never;
@@ -2345,34 +2365,28 @@ export interface paths {
2345
2365
  cookie?: never;
2346
2366
  };
2347
2367
  /**
2348
- * List external invitations in a share
2349
- * @description The current user must have admin permission on the share.
2368
+ * Search map
2369
+ * @deprecated
2370
+ * @description Used only for search on web that does not scale. Should be replaced by better version in the future.
2350
2371
  */
2351
- get: operations["get_drive-v2-shares-{shareID}-external-invitations"];
2372
+ get: operations["get_drive-shares-{shareID}-map"];
2352
2373
  put?: never;
2353
- /**
2354
- * Invite an external user to a share
2355
- * @description The current user must have admin permission on the share.
2356
- */
2357
- post: operations["post_drive-v2-shares-{shareID}-external-invitations"];
2374
+ post?: never;
2358
2375
  delete?: never;
2359
2376
  options?: never;
2360
2377
  head?: never;
2361
2378
  patch?: never;
2362
2379
  trace?: never;
2363
2380
  };
2364
- "/drive/v2/shares/external-invitations": {
2381
+ "/drive/v2/shares/my-files": {
2365
2382
  parameters: {
2366
2383
  query?: never;
2367
2384
  header?: never;
2368
2385
  path?: never;
2369
2386
  cookie?: never;
2370
2387
  };
2371
- /**
2372
- * List external invitations of a user
2373
- * @description List the UserRegistered external invitations where the current user is the invitee.
2374
- */
2375
- get: operations["get_drive-v2-shares-external-invitations"];
2388
+ /** Bootstrap my files */
2389
+ get: operations["get_drive-v2-shares-my-files"];
2376
2390
  put?: never;
2377
2391
  post?: never;
2378
2392
  delete?: never;
@@ -2381,70 +2395,67 @@ export interface paths {
2381
2395
  patch?: never;
2382
2396
  trace?: never;
2383
2397
  };
2384
- "/drive/v2/shares/{shareID}/external-invitations/{invitationID}/sendemail": {
2398
+ "/drive/v2/shares/photos": {
2385
2399
  parameters: {
2386
2400
  query?: never;
2387
2401
  header?: never;
2388
2402
  path?: never;
2389
2403
  cookie?: never;
2390
2404
  };
2391
- get?: never;
2405
+ /** Bootstrap photos section */
2406
+ get: operations["get_drive-v2-shares-photos"];
2392
2407
  put?: never;
2393
- /**
2394
- * Send the external invitation email to the invitee
2395
- * @description The current user must have admin permission on the share.
2396
- */
2397
- post: operations["post_drive-v2-shares-{shareID}-external-invitations-{invitationID}-sendemail"];
2408
+ post?: never;
2398
2409
  delete?: never;
2399
2410
  options?: never;
2400
2411
  head?: never;
2401
2412
  patch?: never;
2402
2413
  trace?: never;
2403
2414
  };
2404
- "/drive/v2/shares/invitations/{invitationID}/accept": {
2415
+ "/drive/shares/{shareID}": {
2405
2416
  parameters: {
2406
2417
  query?: never;
2407
2418
  header?: never;
2408
2419
  path?: never;
2409
2420
  cookie?: never;
2410
2421
  };
2411
- get?: never;
2422
+ /** Get share bootstrap */
2423
+ get: operations["get_drive-shares-{shareID}"];
2412
2424
  put?: never;
2413
- /** Accept an invitation */
2414
- post: operations["post_drive-v2-shares-invitations-{invitationID}-accept"];
2415
- delete?: never;
2425
+ post?: never;
2426
+ /**
2427
+ * Delete a standard share by ID
2428
+ * @description Only standard shares (type 2) can be deleted this way.
2429
+ * Will throw 422 with body code 2005 if Members, ShareURLs or Invitations are still attached to the share.
2430
+ * Use Force=1 query param to delete the share together with any attached entities.
2431
+ */
2432
+ delete: operations["delete_drive-shares-{shareID}"];
2416
2433
  options?: never;
2417
2434
  head?: never;
2418
2435
  patch?: never;
2419
2436
  trace?: never;
2420
2437
  };
2421
- "/drive/v2/shares/{shareID}/invitations/{invitationID}": {
2438
+ "/drive/volumes/{volumeID}/links/{linkID}/context": {
2422
2439
  parameters: {
2423
2440
  query?: never;
2424
2441
  header?: never;
2425
2442
  path?: never;
2426
2443
  cookie?: never;
2427
2444
  };
2428
- get?: never;
2429
2445
  /**
2430
- * Update an invitation
2431
- * @description Only permissions can be changed. They can be changed when the invitation is pending and when it has been rejected.
2432
- * The owner should not be aware of rejection. After the invitation has been accepted, membership permissions can be edited.
2433
- * The current user must have admin permission on the share.
2446
+ * Get context share
2447
+ * @description Gets the highest share, meaning closest to the root, for a link
2434
2448
  */
2435
- put: operations["put_drive-v2-shares-{shareID}-invitations-{invitationID}"];
2449
+ get: operations["get_drive-volumes-{volumeID}-links-{linkID}-context"];
2450
+ put?: never;
2436
2451
  post?: never;
2437
- /**
2438
- * Delete an invitation
2439
- * @description The current user must have admin permission on the share.
2440
- */
2441
- delete: operations["delete_drive-v2-shares-{shareID}-invitations-{invitationID}"];
2452
+ delete?: never;
2442
2453
  options?: never;
2443
2454
  head?: never;
2444
2455
  patch?: never;
2445
2456
  trace?: never;
2446
2457
  };
2447
- "/drive/v2/shares/{shareID}/invitations": {
2458
+ "/drive/shares": {
2448
2459
  parameters: {
2449
2460
  query?: never;
2450
2461
  header?: never;
@@ -2452,43 +2463,44 @@ export interface paths {
2452
2463
  cookie?: never;
2453
2464
  };
2454
2465
  /**
2455
- * List invitations in a share
2456
- * @description The current user must have admin permission on the share.
2466
+ * List shares
2467
+ * @description List shares available to current user.
2468
+ *
2469
+ * The results can be restricted to a single address by providing the AddressID query parameter.
2470
+ * By default, only active shares are shown.
2471
+ * Passing the ShowAll=1 query parameter will show locked and disabled shares also.
2457
2472
  */
2458
- get: operations["get_drive-v2-shares-{shareID}-invitations"];
2473
+ get: operations["get_drive-shares"];
2459
2474
  put?: never;
2460
- /**
2461
- * Invite a Proton user to a share
2462
- * @description The current user must have admin permission on the share.
2463
- */
2464
- post: operations["post_drive-v2-shares-{shareID}-invitations"];
2475
+ post?: never;
2465
2476
  delete?: never;
2466
2477
  options?: never;
2467
2478
  head?: never;
2468
2479
  patch?: never;
2469
2480
  trace?: never;
2470
2481
  };
2471
- "/drive/v2/shares/invitations": {
2482
+ "/drive/shares/{shareID}/owner": {
2472
2483
  parameters: {
2473
2484
  query?: never;
2474
2485
  header?: never;
2475
2486
  path?: never;
2476
2487
  cookie?: never;
2477
2488
  };
2489
+ get?: never;
2490
+ put?: never;
2478
2491
  /**
2479
- * List invitations of a user
2480
- * @description List the pending invitations where the current user is the invitee.
2492
+ * Update ownership of a share
2493
+ * @description Replace the signature and related membership of the share.
2494
+ * This allows users to change the associated address & key they use for a share, so that they can get rid of it.
2481
2495
  */
2482
- get: operations["get_drive-v2-shares-invitations"];
2483
- put?: never;
2484
- post?: never;
2496
+ post: operations["post_drive-shares-{shareID}-owner"];
2485
2497
  delete?: never;
2486
2498
  options?: never;
2487
2499
  head?: never;
2488
2500
  patch?: never;
2489
2501
  trace?: never;
2490
2502
  };
2491
- "/drive/v2/shares/invitations/{invitationID}/reject": {
2503
+ "/drive/migrations/shareaccesswithnode": {
2492
2504
  parameters: {
2493
2505
  query?: never;
2494
2506
  header?: never;
@@ -2497,55 +2509,56 @@ export interface paths {
2497
2509
  };
2498
2510
  get?: never;
2499
2511
  put?: never;
2500
- /** Reject an invitation */
2501
- post: operations["post_drive-v2-shares-invitations-{invitationID}-reject"];
2512
+ /** Migrate legacy Shares */
2513
+ post: operations["post_drive-migrations-shareaccesswithnode"];
2502
2514
  delete?: never;
2503
2515
  options?: never;
2504
2516
  head?: never;
2505
2517
  patch?: never;
2506
2518
  trace?: never;
2507
2519
  };
2508
- "/drive/v2/shares/{shareID}/invitations/{invitationID}/sendemail": {
2520
+ "/drive/migrations/shareaccesswithnode/unmigrated": {
2509
2521
  parameters: {
2510
2522
  query?: never;
2511
2523
  header?: never;
2512
2524
  path?: never;
2513
2525
  cookie?: never;
2514
2526
  };
2515
- get?: never;
2516
- put?: never;
2517
2527
  /**
2518
- * Send the invitation email to the invitee
2519
- * @description The current user must have admin permission on the share.
2528
+ * List unmigrated shares
2529
+ * @description List shares that have not been migrated to the new PassphraseNodeKeyPacket yet.
2530
+ * Will throw a 422 with Code 2000 if the current user doesn't have any active Volume.
2520
2531
  */
2521
- post: operations["post_drive-v2-shares-{shareID}-invitations-{invitationID}-sendemail"];
2532
+ get: operations["get_drive-migrations-shareaccesswithnode-unmigrated"];
2533
+ put?: never;
2534
+ post?: never;
2522
2535
  delete?: never;
2523
2536
  options?: never;
2524
2537
  head?: never;
2525
2538
  patch?: never;
2526
2539
  trace?: never;
2527
2540
  };
2528
- "/drive/v2/shares/invitations/{invitationID}": {
2541
+ "/drive/volumes/{volumeID}/shares": {
2529
2542
  parameters: {
2530
2543
  query?: never;
2531
2544
  header?: never;
2532
2545
  path?: never;
2533
2546
  cookie?: never;
2534
2547
  };
2548
+ get?: never;
2549
+ put?: never;
2535
2550
  /**
2536
- * Return invitation information
2537
- * @description Get the information about a pending invitation where the current user is the invitee.
2551
+ * Create a standard share
2552
+ * @description Cannot create two shares on the same link. Throws 422 with code 2500 in case a share already exists.
2538
2553
  */
2539
- get: operations["get_drive-v2-shares-invitations-{invitationID}"];
2540
- put?: never;
2541
- post?: never;
2554
+ post: operations["post_drive-volumes-{volumeID}-shares"];
2542
2555
  delete?: never;
2543
2556
  options?: never;
2544
2557
  head?: never;
2545
2558
  patch?: never;
2546
2559
  trace?: never;
2547
2560
  };
2548
- "/drive/v2/user-link-access": {
2561
+ "/drive/v2/volumes/{volumeID}/shares": {
2549
2562
  parameters: {
2550
2563
  query?: never;
2551
2564
  header?: never;
@@ -2553,10 +2566,10 @@ export interface paths {
2553
2566
  cookie?: never;
2554
2567
  };
2555
2568
  /**
2556
- * List link accesses for a share url.
2557
- * @description RFC: https://drive.gitlab-pages.protontech.ch/documentation/rfcs/0031-share-resolution-from-copied-url/
2569
+ * Shared by me
2570
+ * @description List Collaborative Shares in the given volume that are not abandoned, i.e. they either have members, invitations or URLs attached.
2558
2571
  */
2559
- get: operations["get_drive-v2-user-link-access"];
2572
+ get: operations["get_drive-v2-volumes-{volumeID}-shares"];
2560
2573
  put?: never;
2561
2574
  post?: never;
2562
2575
  delete?: never;
@@ -2565,7 +2578,7 @@ export interface paths {
2565
2578
  patch?: never;
2566
2579
  trace?: never;
2567
2580
  };
2568
- "/drive/v2/shares/{shareID}/members": {
2581
+ "/drive/v2/sharedwithme": {
2569
2582
  parameters: {
2570
2583
  query?: never;
2571
2584
  header?: never;
@@ -2573,10 +2586,10 @@ export interface paths {
2573
2586
  cookie?: never;
2574
2587
  };
2575
2588
  /**
2576
- * List members in a share
2577
- * @description The current user must have admin permission on the share.
2589
+ * Shared with me
2590
+ * @description List Collaborative Shares the user has access to as a non-owner
2578
2591
  */
2579
- get: operations["get_drive-v2-shares-{shareID}-members"];
2592
+ get: operations["get_drive-v2-sharedwithme"];
2580
2593
  put?: never;
2581
2594
  post?: never;
2582
2595
  delete?: never;
@@ -2585,7 +2598,7 @@ export interface paths {
2585
2598
  patch?: never;
2586
2599
  trace?: never;
2587
2600
  };
2588
- "/drive/v2/shares/{shareID}/members/{memberID}": {
2601
+ "/drive/v2/shares/{shareID}/external-invitations/{invitationID}": {
2589
2602
  parameters: {
2590
2603
  query?: never;
2591
2604
  header?: never;
@@ -2594,45 +2607,68 @@ export interface paths {
2594
2607
  };
2595
2608
  get?: never;
2596
2609
  /**
2597
- * Update a member
2598
- * @description Only permissions can be changed. They can be changed when the member is active.
2610
+ * Update an external invitation
2611
+ * @description Only permissions can be changed. They can be changed when the external invitation is pending or accepted.
2612
+ * After the external invitation has been accepted, the invitation's permissions can be edited.
2599
2613
  * The current user must have admin permission on the share.
2600
2614
  */
2601
- put: operations["put_drive-v2-shares-{shareID}-members-{memberID}"];
2615
+ put: operations["put_drive-v2-shares-{shareID}-external-invitations-{invitationID}"];
2602
2616
  post?: never;
2603
2617
  /**
2604
- * Remove a share member
2605
- * @description If the current user is an admin of the share they can remove other members.
2606
- * If the current user is not an admin they can only remove themselves.
2618
+ * Delete an external invitation
2619
+ * @description The current user must have admin permission on the share.
2607
2620
  */
2608
- delete: operations["delete_drive-v2-shares-{shareID}-members-{memberID}"];
2621
+ delete: operations["delete_drive-v2-shares-{shareID}-external-invitations-{invitationID}"];
2609
2622
  options?: never;
2610
2623
  head?: never;
2611
2624
  patch?: never;
2612
2625
  trace?: never;
2613
2626
  };
2614
- "/drive/v2/shares/{shareID}/security": {
2627
+ "/drive/v2/shares/{shareID}/external-invitations": {
2615
2628
  parameters: {
2616
2629
  query?: never;
2617
2630
  header?: never;
2618
2631
  path?: never;
2619
2632
  cookie?: never;
2620
2633
  };
2621
- get?: never;
2634
+ /**
2635
+ * List external invitations in a share
2636
+ * @description The current user must have admin permission on the share.
2637
+ */
2638
+ get: operations["get_drive-v2-shares-{shareID}-external-invitations"];
2622
2639
  put?: never;
2623
2640
  /**
2624
- * Scan for malware (direct sharing)
2625
- * @description Performs virus checks on hashes of files received in the request payload.
2626
- * See https://drive.gitlab-pages.protontech.ch/documentation/specifications/data/virus-scanning/
2641
+ * Invite an external user to a share
2642
+ * @description The current user must have admin permission on the share.
2627
2643
  */
2628
- post: operations["post_drive-v2-shares-{shareID}-security"];
2644
+ post: operations["post_drive-v2-shares-{shareID}-external-invitations"];
2629
2645
  delete?: never;
2630
2646
  options?: never;
2631
2647
  head?: never;
2632
2648
  patch?: never;
2633
2649
  trace?: never;
2634
2650
  };
2635
- "/drive/urls/{token}/security": {
2651
+ "/drive/v2/shares/external-invitations": {
2652
+ parameters: {
2653
+ query?: never;
2654
+ header?: never;
2655
+ path?: never;
2656
+ cookie?: never;
2657
+ };
2658
+ /**
2659
+ * List external invitations of a user
2660
+ * @description List the UserRegistered external invitations where the current user is the invitee.
2661
+ */
2662
+ get: operations["get_drive-v2-shares-external-invitations"];
2663
+ put?: never;
2664
+ post?: never;
2665
+ delete?: never;
2666
+ options?: never;
2667
+ head?: never;
2668
+ patch?: never;
2669
+ trace?: never;
2670
+ };
2671
+ "/drive/v2/shares/{shareID}/external-invitations/{invitationID}/sendemail": {
2636
2672
  parameters: {
2637
2673
  query?: never;
2638
2674
  header?: never;
@@ -2642,18 +2678,17 @@ export interface paths {
2642
2678
  get?: never;
2643
2679
  put?: never;
2644
2680
  /**
2645
- * Scan for malware (public share URL)
2646
- * @description Performs virus checks on hashes of files received in the request payload.
2647
- * See https://drive.gitlab-pages.protontech.ch/documentation/specifications/data/virus-scanning/
2681
+ * Send the external invitation email to the invitee
2682
+ * @description The current user must have admin permission on the share.
2648
2683
  */
2649
- post: operations["post_drive-urls-{token}-security"];
2684
+ post: operations["post_drive-v2-shares-{shareID}-external-invitations-{invitationID}-sendemail"];
2650
2685
  delete?: never;
2651
2686
  options?: never;
2652
2687
  head?: never;
2653
2688
  patch?: never;
2654
2689
  trace?: never;
2655
2690
  };
2656
- "/drive/volumes/{volumeID}/thumbnails": {
2691
+ "/drive/v2/shares/invitations/{invitationID}/accept": {
2657
2692
  parameters: {
2658
2693
  query?: never;
2659
2694
  header?: never;
@@ -2662,36 +2697,41 @@ export interface paths {
2662
2697
  };
2663
2698
  get?: never;
2664
2699
  put?: never;
2665
- /** Fetch thumbnails by IDs. */
2666
- post: operations["post_drive-volumes-{volumeID}-thumbnails"];
2700
+ /** Accept an invitation */
2701
+ post: operations["post_drive-v2-shares-invitations-{invitationID}-accept"];
2667
2702
  delete?: never;
2668
2703
  options?: never;
2669
2704
  head?: never;
2670
2705
  patch?: never;
2671
2706
  trace?: never;
2672
2707
  };
2673
- "/drive/me/settings": {
2708
+ "/drive/v2/shares/{shareID}/invitations/{invitationID}": {
2674
2709
  parameters: {
2675
2710
  query?: never;
2676
2711
  header?: never;
2677
2712
  path?: never;
2678
2713
  cookie?: never;
2679
2714
  };
2680
- /** Get user settings */
2681
- get: operations["get_drive-me-settings"];
2715
+ get?: never;
2682
2716
  /**
2683
- * Update user settings
2684
- * @description At least one setting must be provided.
2717
+ * Update an invitation
2718
+ * @description Only permissions can be changed. They can be changed when the invitation is pending and when it has been rejected.
2719
+ * The owner should not be aware of rejection. After the invitation has been accepted, membership permissions can be edited.
2720
+ * The current user must have admin permission on the share.
2685
2721
  */
2686
- put: operations["put_drive-me-settings"];
2722
+ put: operations["put_drive-v2-shares-{shareID}-invitations-{invitationID}"];
2687
2723
  post?: never;
2688
- delete?: never;
2724
+ /**
2725
+ * Delete an invitation
2726
+ * @description The current user must have admin permission on the share.
2727
+ */
2728
+ delete: operations["delete_drive-v2-shares-{shareID}-invitations-{invitationID}"];
2689
2729
  options?: never;
2690
2730
  head?: never;
2691
2731
  patch?: never;
2692
2732
  trace?: never;
2693
2733
  };
2694
- "/drive/volumes": {
2734
+ "/drive/v2/shares/{shareID}/invitations": {
2695
2735
  parameters: {
2696
2736
  query?: never;
2697
2737
  header?: never;
@@ -2699,43 +2739,35 @@ export interface paths {
2699
2739
  cookie?: never;
2700
2740
  };
2701
2741
  /**
2702
- * List volumes
2703
- * @description List all volumes owned by the current user - can be between zero and two: none, regular and/or photo.
2704
- * It can also return volumes in locked state, which are - upon creation of new volumes - re-activated with new root shares.
2705
- * The pagination params Page and PageSize are deprecated.
2742
+ * List invitations in a share
2743
+ * @description The current user must have admin permission on the share.
2706
2744
  */
2707
- get: operations["get_drive-volumes"];
2745
+ get: operations["get_drive-v2-shares-{shareID}-invitations"];
2708
2746
  put?: never;
2709
2747
  /**
2710
- * Create volume
2711
- * @description Creating a new volume also creates :
2712
- * + root folder for the new Volume
2713
- * + Main share for the new Volume
2714
- * + Adds ShareMember with given Address ID
2715
- *
2716
- * If the user already has a locked volume, then this locked volume is re-activated
2717
- * with a new root share and folder instead of creating a new volume.
2748
+ * Invite a Proton user to a share
2749
+ * @description The current user must have admin permission on the share.
2718
2750
  */
2719
- post: operations["post_drive-volumes"];
2751
+ post: operations["post_drive-v2-shares-{shareID}-invitations"];
2720
2752
  delete?: never;
2721
2753
  options?: never;
2722
2754
  head?: never;
2723
2755
  patch?: never;
2724
2756
  trace?: never;
2725
2757
  };
2726
- "/drive/volumes/{volumeID}/delete_locked": {
2758
+ "/drive/v2/shares/invitations": {
2727
2759
  parameters: {
2728
2760
  query?: never;
2729
2761
  header?: never;
2730
2762
  path?: never;
2731
2763
  cookie?: never;
2732
2764
  };
2733
- get?: never;
2734
2765
  /**
2735
- * Delete the whole volume if is locked or the locked root shares in the volume.
2736
- * @description Web client calls this endpoint when the user decides to delete their locked data and not recover it.
2766
+ * List invitations of a user
2767
+ * @description List the pending invitations where the current user is the invitee.
2737
2768
  */
2738
- put: operations["put_drive-volumes-{volumeID}-delete_locked"];
2769
+ get: operations["get_drive-v2-shares-invitations"];
2770
+ put?: never;
2739
2771
  post?: never;
2740
2772
  delete?: never;
2741
2773
  options?: never;
@@ -2743,18 +2775,55 @@ export interface paths {
2743
2775
  patch?: never;
2744
2776
  trace?: never;
2745
2777
  };
2746
- "/drive/volumes/{volumeID}": {
2778
+ "/drive/v2/shares/invitations/{invitationID}/reject": {
2779
+ parameters: {
2780
+ query?: never;
2781
+ header?: never;
2782
+ path?: never;
2783
+ cookie?: never;
2784
+ };
2785
+ get?: never;
2786
+ put?: never;
2787
+ /** Reject an invitation */
2788
+ post: operations["post_drive-v2-shares-invitations-{invitationID}-reject"];
2789
+ delete?: never;
2790
+ options?: never;
2791
+ head?: never;
2792
+ patch?: never;
2793
+ trace?: never;
2794
+ };
2795
+ "/drive/v2/shares/{shareID}/invitations/{invitationID}/sendemail": {
2747
2796
  parameters: {
2748
2797
  query?: never;
2749
2798
  header?: never;
2750
2799
  path?: never;
2751
2800
  cookie?: never;
2752
2801
  };
2802
+ get?: never;
2803
+ put?: never;
2753
2804
  /**
2754
- * Get volume
2755
- * @description Return the attributes of a specific volume.
2805
+ * Send the invitation email to the invitee
2806
+ * @description The current user must have admin permission on the share.
2756
2807
  */
2757
- get: operations["get_drive-volumes-{volumeID}"];
2808
+ post: operations["post_drive-v2-shares-{shareID}-invitations-{invitationID}-sendemail"];
2809
+ delete?: never;
2810
+ options?: never;
2811
+ head?: never;
2812
+ patch?: never;
2813
+ trace?: never;
2814
+ };
2815
+ "/drive/v2/shares/invitations/{invitationID}": {
2816
+ parameters: {
2817
+ query?: never;
2818
+ header?: never;
2819
+ path?: never;
2820
+ cookie?: never;
2821
+ };
2822
+ /**
2823
+ * Return invitation information
2824
+ * @description Get the information about a pending invitation where the current user is the invitee.
2825
+ */
2826
+ get: operations["get_drive-v2-shares-invitations-{invitationID}"];
2758
2827
  put?: never;
2759
2828
  post?: never;
2760
2829
  delete?: never;
@@ -2763,20 +2832,19 @@ export interface paths {
2763
2832
  patch?: never;
2764
2833
  trace?: never;
2765
2834
  };
2766
- "/drive/volumes/{volumeID}/restore": {
2835
+ "/drive/v2/user-link-access": {
2767
2836
  parameters: {
2768
2837
  query?: never;
2769
2838
  header?: never;
2770
2839
  path?: never;
2771
2840
  cookie?: never;
2772
2841
  };
2773
- get?: never;
2774
2842
  /**
2775
- * Restore locked data in volume.
2776
- * @description The locked root shares in the volume can be recovered by providing the new encryption material for each share.
2777
- * This operation used to be heavy and processed async. But now it's quick and done synchronously.
2843
+ * List link accesses for a share url.
2844
+ * @description RFC: https://drive.gitlab-pages.protontech.ch/documentation/rfcs/0031-share-resolution-from-copied-url/
2778
2845
  */
2779
- put: operations["put_drive-volumes-{volumeID}-restore"];
2846
+ get: operations["get_drive-v2-user-link-access"];
2847
+ put?: never;
2780
2848
  post?: never;
2781
2849
  delete?: never;
2782
2850
  options?: never;
@@ -2784,22 +2852,241 @@ export interface paths {
2784
2852
  patch?: never;
2785
2853
  trace?: never;
2786
2854
  };
2787
- }
2788
- export type webhooks = Record<string, never>;
2789
- export interface components {
2790
- schemas: {
2855
+ "/drive/v2/shares/{shareID}/members": {
2856
+ parameters: {
2857
+ query?: never;
2858
+ header?: never;
2859
+ path?: never;
2860
+ cookie?: never;
2861
+ };
2791
2862
  /**
2792
- * ProtonResponseCode
2793
- * @enum {integer}
2863
+ * List members in a share
2864
+ * @description The current user must have admin permission on the share.
2794
2865
  */
2795
- ResponseCodeSuccess: 1000;
2796
- ProtonSuccess: {
2797
- Code: components["schemas"]["ResponseCodeSuccess"];
2798
- };
2799
- ProtonError: {
2800
- /** ErrorCode */
2801
- Code: number;
2802
- /** @description Error message */
2866
+ get: operations["get_drive-v2-shares-{shareID}-members"];
2867
+ put?: never;
2868
+ post?: never;
2869
+ delete?: never;
2870
+ options?: never;
2871
+ head?: never;
2872
+ patch?: never;
2873
+ trace?: never;
2874
+ };
2875
+ "/drive/v2/shares/{shareID}/members/{memberID}": {
2876
+ parameters: {
2877
+ query?: never;
2878
+ header?: never;
2879
+ path?: never;
2880
+ cookie?: never;
2881
+ };
2882
+ get?: never;
2883
+ /**
2884
+ * Update a member
2885
+ * @description Only permissions can be changed. They can be changed when the member is active.
2886
+ * The current user must have admin permission on the share.
2887
+ */
2888
+ put: operations["put_drive-v2-shares-{shareID}-members-{memberID}"];
2889
+ post?: never;
2890
+ /**
2891
+ * Remove a share member
2892
+ * @description If the current user is an admin of the share they can remove other members.
2893
+ * If the current user is not an admin they can only remove themselves.
2894
+ */
2895
+ delete: operations["delete_drive-v2-shares-{shareID}-members-{memberID}"];
2896
+ options?: never;
2897
+ head?: never;
2898
+ patch?: never;
2899
+ trace?: never;
2900
+ };
2901
+ "/drive/v2/shares/{shareID}/security": {
2902
+ parameters: {
2903
+ query?: never;
2904
+ header?: never;
2905
+ path?: never;
2906
+ cookie?: never;
2907
+ };
2908
+ get?: never;
2909
+ put?: never;
2910
+ /**
2911
+ * Scan for malware (direct sharing)
2912
+ * @description Performs virus checks on hashes of files received in the request payload.
2913
+ * See https://drive.gitlab-pages.protontech.ch/documentation/specifications/data/virus-scanning/
2914
+ */
2915
+ post: operations["post_drive-v2-shares-{shareID}-security"];
2916
+ delete?: never;
2917
+ options?: never;
2918
+ head?: never;
2919
+ patch?: never;
2920
+ trace?: never;
2921
+ };
2922
+ "/drive/urls/{token}/security": {
2923
+ parameters: {
2924
+ query?: never;
2925
+ header?: never;
2926
+ path?: never;
2927
+ cookie?: never;
2928
+ };
2929
+ get?: never;
2930
+ put?: never;
2931
+ /**
2932
+ * Scan for malware (public share URL)
2933
+ * @description Performs virus checks on hashes of files received in the request payload.
2934
+ * See https://drive.gitlab-pages.protontech.ch/documentation/specifications/data/virus-scanning/
2935
+ */
2936
+ post: operations["post_drive-urls-{token}-security"];
2937
+ delete?: never;
2938
+ options?: never;
2939
+ head?: never;
2940
+ patch?: never;
2941
+ trace?: never;
2942
+ };
2943
+ "/drive/volumes/{volumeID}/thumbnails": {
2944
+ parameters: {
2945
+ query?: never;
2946
+ header?: never;
2947
+ path?: never;
2948
+ cookie?: never;
2949
+ };
2950
+ get?: never;
2951
+ put?: never;
2952
+ /** Fetch thumbnails by IDs. */
2953
+ post: operations["post_drive-volumes-{volumeID}-thumbnails"];
2954
+ delete?: never;
2955
+ options?: never;
2956
+ head?: never;
2957
+ patch?: never;
2958
+ trace?: never;
2959
+ };
2960
+ "/drive/me/settings": {
2961
+ parameters: {
2962
+ query?: never;
2963
+ header?: never;
2964
+ path?: never;
2965
+ cookie?: never;
2966
+ };
2967
+ /** Get user settings */
2968
+ get: operations["get_drive-me-settings"];
2969
+ /**
2970
+ * Update user settings
2971
+ * @description At least one setting must be provided.
2972
+ */
2973
+ put: operations["put_drive-me-settings"];
2974
+ post?: never;
2975
+ delete?: never;
2976
+ options?: never;
2977
+ head?: never;
2978
+ patch?: never;
2979
+ trace?: never;
2980
+ };
2981
+ "/drive/volumes": {
2982
+ parameters: {
2983
+ query?: never;
2984
+ header?: never;
2985
+ path?: never;
2986
+ cookie?: never;
2987
+ };
2988
+ /**
2989
+ * List volumes
2990
+ * @description List all volumes owned by the current user - can be between zero and two: none, regular and/or photo.
2991
+ * It can also return volumes in locked state, which are - upon creation of new volumes - re-activated with new root shares.
2992
+ * The pagination params Page and PageSize are deprecated.
2993
+ */
2994
+ get: operations["get_drive-volumes"];
2995
+ put?: never;
2996
+ /**
2997
+ * Create volume
2998
+ * @description Creating a new volume also creates :
2999
+ * + root folder for the new Volume
3000
+ * + Main share for the new Volume
3001
+ * + Adds ShareMember with given Address ID
3002
+ *
3003
+ * If the user already has a locked volume, then this locked volume is re-activated
3004
+ * with a new root share and folder instead of creating a new volume.
3005
+ */
3006
+ post: operations["post_drive-volumes"];
3007
+ delete?: never;
3008
+ options?: never;
3009
+ head?: never;
3010
+ patch?: never;
3011
+ trace?: never;
3012
+ };
3013
+ "/drive/volumes/{volumeID}/delete_locked": {
3014
+ parameters: {
3015
+ query?: never;
3016
+ header?: never;
3017
+ path?: never;
3018
+ cookie?: never;
3019
+ };
3020
+ get?: never;
3021
+ /**
3022
+ * Delete the whole volume if is locked or the locked root shares in the volume.
3023
+ * @description Web client calls this endpoint when the user decides to delete their locked data and not recover it.
3024
+ */
3025
+ put: operations["put_drive-volumes-{volumeID}-delete_locked"];
3026
+ post?: never;
3027
+ delete?: never;
3028
+ options?: never;
3029
+ head?: never;
3030
+ patch?: never;
3031
+ trace?: never;
3032
+ };
3033
+ "/drive/volumes/{volumeID}": {
3034
+ parameters: {
3035
+ query?: never;
3036
+ header?: never;
3037
+ path?: never;
3038
+ cookie?: never;
3039
+ };
3040
+ /**
3041
+ * Get volume
3042
+ * @description Return the attributes of a specific volume.
3043
+ */
3044
+ get: operations["get_drive-volumes-{volumeID}"];
3045
+ put?: never;
3046
+ post?: never;
3047
+ delete?: never;
3048
+ options?: never;
3049
+ head?: never;
3050
+ patch?: never;
3051
+ trace?: never;
3052
+ };
3053
+ "/drive/volumes/{volumeID}/restore": {
3054
+ parameters: {
3055
+ query?: never;
3056
+ header?: never;
3057
+ path?: never;
3058
+ cookie?: never;
3059
+ };
3060
+ get?: never;
3061
+ /**
3062
+ * Restore locked data in volume.
3063
+ * @description The locked root shares in the volume can be recovered by providing the new encryption material for each share.
3064
+ * This operation used to be heavy and processed async. But now it's quick and done synchronously.
3065
+ */
3066
+ put: operations["put_drive-volumes-{volumeID}-restore"];
3067
+ post?: never;
3068
+ delete?: never;
3069
+ options?: never;
3070
+ head?: never;
3071
+ patch?: never;
3072
+ trace?: never;
3073
+ };
3074
+ }
3075
+ export type webhooks = Record<string, never>;
3076
+ export interface components {
3077
+ schemas: {
3078
+ /**
3079
+ * ProtonResponseCode
3080
+ * @enum {integer}
3081
+ */
3082
+ ResponseCodeSuccess: 1000;
3083
+ ProtonSuccess: {
3084
+ Code: components["schemas"]["ResponseCodeSuccess"];
3085
+ };
3086
+ ProtonError: {
3087
+ /** ErrorCode */
3088
+ Code: number;
3089
+ /** @description Error message */
2803
3090
  Error: string;
2804
3091
  /** @description Error description (can be an empty object) */
2805
3092
  Details: Record<string, never>;
@@ -3474,7 +3761,7 @@ export interface components {
3474
3761
  */
3475
3762
  ClientUID: string | null;
3476
3763
  /**
3477
- * @description Intended upload file size, to check if the user is trying to upload a bigger filesize than allowed.
3764
+ * @description Intended upload file size, future BE size validation
3478
3765
  * @default null
3479
3766
  */
3480
3767
  IntendedUploadSize: number | null;
@@ -3510,7 +3797,7 @@ export interface components {
3510
3797
  */
3511
3798
  ClientUID: string | null;
3512
3799
  /**
3513
- * @description Intended upload file size, to check if the user is trying to upload a bigger filesize than allowed.
3800
+ * @description Intended upload file size, future BE size validation
3514
3801
  * @default null
3515
3802
  */
3516
3803
  IntendedUploadSize: number | null;
@@ -3784,6 +4071,15 @@ export interface components {
3784
4071
  */
3785
4072
  Code: 1000;
3786
4073
  };
4074
+ LoadPhotoVolumeLinkDetailsResponseDto: {
4075
+ Links: (components["schemas"]["PhotoDetailsDto"] | components["schemas"]["PhotoAlbumDetailsDto"] | components["schemas"]["PhotoRootFolderDetailsDto"])[];
4076
+ /**
4077
+ * ProtonResponseCode
4078
+ * @example 1000
4079
+ * @enum {integer}
4080
+ */
4081
+ Code: 1000;
4082
+ };
3787
4083
  RemoveTagsRequestDto: {
3788
4084
  Tags: components["schemas"]["TagType"][];
3789
4085
  };
@@ -3829,6 +4125,15 @@ export interface components {
3829
4125
  */
3830
4126
  Code: 1000;
3831
4127
  };
4128
+ ParentEncryptedLinkIDsResponseDto: {
4129
+ ParentLinkIDs: components["schemas"]["Id2"][];
4130
+ /**
4131
+ * ProtonResponseCode
4132
+ * @example 1000
4133
+ * @enum {integer}
4134
+ */
4135
+ Code: 1000;
4136
+ };
3832
4137
  InitSRPSessionResponseDto: {
3833
4138
  Modulus: string;
3834
4139
  ServerEphemeral: components["schemas"]["BinaryString2"];
@@ -3926,7 +4231,7 @@ export interface components {
3926
4231
  */
3927
4232
  ClientUID: string | null;
3928
4233
  /**
3929
- * @description Intended upload file size, to check if the user is trying to upload a bigger filesize than allowed.
4234
+ * @description Intended upload file size, future BE size validation
3930
4235
  * @default null
3931
4236
  */
3932
4237
  IntendedUploadSize: number | null;
@@ -3976,15 +4281,6 @@ export interface components {
3976
4281
  DeleteChildrenRequestDto: {
3977
4282
  Links: components["schemas"]["LinkWithAuthorizationTokenDto"][];
3978
4283
  };
3979
- ParentEncryptedLinkIDsResponseDto: {
3980
- ParentLinkIDs: string[];
3981
- /**
3982
- * ProtonResponseCode
3983
- * @example 1000
3984
- * @enum {integer}
3985
- */
3986
- Code: 1000;
3987
- };
3988
4284
  RenameAnonymousLinkRequestDto: {
3989
4285
  /** @description Name, reusing same session key as previously. */
3990
4286
  Name: string;
@@ -4165,15 +4461,29 @@ export interface components {
4165
4461
  /** @description List of ShareURL ids to delete. */
4166
4462
  ShareURLIDs: components["schemas"]["EncryptedId"][];
4167
4463
  };
4168
- LinkMapQueryParameters: {
4169
- /** @default null */
4170
- SessionName: string | null;
4171
- /** @default null */
4172
- LastIndex: number | null;
4173
- /** @default 500 */
4174
- PageSize: number;
4175
- };
4176
- LinkMapResponse: {
4464
+ ThumbnailIDsListInput: {
4465
+ /** @description List of encrypted ThumbnailIDs. Maximum 30. */
4466
+ ThumbnailIDs: components["schemas"]["Id"][];
4467
+ };
4468
+ ListThumbnailsResponse: {
4469
+ Thumbnails: components["schemas"]["ThumbnailResponse"][];
4470
+ Errors: components["schemas"]["ThumbnailErrorResponse"][];
4471
+ /**
4472
+ * ProtonResponseCode
4473
+ * @example 1000
4474
+ * @enum {integer}
4475
+ */
4476
+ Code: 1000;
4477
+ };
4478
+ LinkMapQueryParameters: {
4479
+ /** @default null */
4480
+ SessionName: string | null;
4481
+ /** @default null */
4482
+ LastIndex: number | null;
4483
+ /** @default 500 */
4484
+ PageSize: number;
4485
+ };
4486
+ LinkMapResponse: {
4177
4487
  SessionName: string;
4178
4488
  More: number;
4179
4489
  Total: number;
@@ -4518,20 +4828,6 @@ export interface components {
4518
4828
  */
4519
4829
  Code: 1000;
4520
4830
  };
4521
- ThumbnailIDsListInput: {
4522
- /** @description List of encrypted ThumbnailIDs. Maximum 30. */
4523
- ThumbnailIDs: components["schemas"]["Id"][];
4524
- };
4525
- ListThumbnailsResponse: {
4526
- Thumbnails: components["schemas"]["ThumbnailResponse"][];
4527
- Errors: components["schemas"]["ThumbnailErrorResponse"][];
4528
- /**
4529
- * ProtonResponseCode
4530
- * @example 1000
4531
- * @enum {integer}
4532
- */
4533
- Code: 1000;
4534
- };
4535
4831
  SettingsResponse: {
4536
4832
  UserSettings: components["schemas"]["UserSettings"];
4537
4833
  Defaults: components["schemas"]["Defaults"];
@@ -5457,6 +5753,44 @@ export interface components {
5457
5753
  /** @default [] */
5458
5754
  RelatedPhotos: components["schemas"]["PhotoListingRelatedItemResponse"][];
5459
5755
  };
5756
+ PhotoDetailsDto: {
5757
+ Link: components["schemas"]["LinkDto"];
5758
+ Photo: components["schemas"]["PhotoFileDto"];
5759
+ /** @default null */
5760
+ Sharing: components["schemas"]["SharingDto"] | null;
5761
+ /**
5762
+ * @description Will be null if the user is not a member or is the owner.
5763
+ * @default null
5764
+ */
5765
+ Membership: components["schemas"]["MembershipDto"] | null;
5766
+ /** @default null */
5767
+ Album: null | null;
5768
+ };
5769
+ PhotoAlbumDetailsDto: {
5770
+ Link: components["schemas"]["LinkDto"];
5771
+ Album: components["schemas"]["AlbumDto"];
5772
+ /** @default null */
5773
+ Sharing: components["schemas"]["SharingDto"] | null;
5774
+ /** @default null */
5775
+ Membership: components["schemas"]["MembershipDto"] | null;
5776
+ /** @default null */
5777
+ Photo: null | null;
5778
+ };
5779
+ PhotoRootFolderDetailsDto: {
5780
+ Link: components["schemas"]["LinkDto"];
5781
+ Folder: components["schemas"]["FolderDto"];
5782
+ /** @default null */
5783
+ Sharing: components["schemas"]["SharingDto"] | null;
5784
+ /**
5785
+ * @description Will be null if the user is not a member or is the owner.
5786
+ * @default null
5787
+ */
5788
+ Membership: components["schemas"]["MembershipDto"] | null;
5789
+ /** @default null */
5790
+ Photo: null | null;
5791
+ /** @default null */
5792
+ Album: null | null;
5793
+ };
5460
5794
  AuthShareDataResponseDto: {
5461
5795
  VolumeID: components["schemas"]["Id2"];
5462
5796
  LinkID: components["schemas"]["Id2"];
@@ -5817,6 +6151,16 @@ export interface components {
5817
6151
  Tags?: number[];
5818
6152
  } | null;
5819
6153
  } & components["schemas"]["LinkTransformer"];
6154
+ ThumbnailResponse: {
6155
+ ThumbnailID: components["schemas"]["Id2"];
6156
+ BareURL: string;
6157
+ Token: string;
6158
+ };
6159
+ ThumbnailErrorResponse: {
6160
+ ThumbnailID: components["schemas"]["Id2"];
6161
+ Error: string;
6162
+ Code: number;
6163
+ };
5820
6164
  LinkMapItemResponse: {
5821
6165
  Index: number;
5822
6166
  LinkID: components["schemas"]["Id2"];
@@ -5874,10 +6218,10 @@ export interface components {
5874
6218
  */
5875
6219
  ShareType: 1 | 2 | 3 | 4;
5876
6220
  /**
5877
- * @description <p>1=Active, 3=Restored</p><details><summary>See values descriptions</summary><details><summary>See values descriptions</summary><table><tr><th>Value</th><th>Description</th></tr><tr><td>1</td><td>Active</td></tr><tr><td>2</td><td>Deleted</td></tr><tr><td>3</td><td>Restored</td></tr><tr><td>5</td><td>Migrated</td></tr><tr><td>6</td><td>Locked</td></tr></table></details></details>
6221
+ * @description <p>1=Active, 3=Restored</p><details><summary>See values descriptions</summary><details><summary>See values descriptions</summary><table><tr><th>Value</th><th>Description</th></tr><tr><td>1</td><td>Active</td></tr><tr><td>2</td><td>Deleted</td></tr><tr><td>3</td><td>Restored</td></tr><tr><td>6</td><td>Locked</td></tr></table></details></details>
5878
6222
  * @enum {integer}
5879
6223
  */
5880
- ShareState: 1 | 2 | 3 | 5 | 6;
6224
+ ShareState: 1 | 2 | 3 | 6;
5881
6225
  /**
5882
6226
  * @description <p>1=Regular, 2=Photo</p><details><summary>See values descriptions</summary><details><summary>See values descriptions</summary><table><tr><th>Value</th><th>Description</th></tr><tr><td>1</td><td>Regular</td></tr><tr><td>2</td><td>Photo</td></tr></table></details></details>
5883
6227
  * @enum {integer}
@@ -6137,16 +6481,6 @@ export interface components {
6137
6481
  */
6138
6482
  Error: string;
6139
6483
  };
6140
- ThumbnailResponse: {
6141
- ThumbnailID: components["schemas"]["Id2"];
6142
- BareURL: string;
6143
- Token: string;
6144
- };
6145
- ThumbnailErrorResponse: {
6146
- ThumbnailID: components["schemas"]["Id2"];
6147
- Error: string;
6148
- Code: number;
6149
- };
6150
6484
  UserSettings: {
6151
6485
  /**
6152
6486
  * @deprecated
@@ -6542,10 +6876,10 @@ export interface components {
6542
6876
  DirectPermissions: number | null;
6543
6877
  };
6544
6878
  FileDto: {
6879
+ ActiveRevision?: components["schemas"]["ActiveRevisionDto"] | null;
6545
6880
  TotalEncryptedSize: number;
6546
6881
  ContentKeyPacket: components["schemas"]["BinaryString"];
6547
6882
  MediaType?: string | null;
6548
- ActiveRevision?: components["schemas"]["ActiveRevisionDto"] | null;
6549
6883
  ContentKeyPacketSignature?: components["schemas"]["PGPSignature"] | null;
6550
6884
  };
6551
6885
  SharingDto: {
@@ -6615,6 +6949,20 @@ export interface components {
6615
6949
  /** @description Photo content hash, Hashmac of content using parent folder's hash key */
6616
6950
  ContentHash?: string | null;
6617
6951
  };
6952
+ PhotoFileDto: {
6953
+ ActiveRevision?: components["schemas"]["ActivePhotoRevisionDto"] | null;
6954
+ CaptureTime: number;
6955
+ MainPhotoLinkID?: components["schemas"]["Id"] | null;
6956
+ ContentHash?: string | null;
6957
+ RelatedPhotosLinkIDs: components["schemas"]["Id"][];
6958
+ Albums: components["schemas"]["PhotoAlbumDto"][];
6959
+ /** @description Will be empty if the user is not the owner. */
6960
+ Tags: components["schemas"]["TagType"][];
6961
+ TotalEncryptedSize: number;
6962
+ ContentKeyPacket: components["schemas"]["BinaryString"];
6963
+ MediaType?: string | null;
6964
+ ContentKeyPacketSignature?: components["schemas"]["PGPSignature"] | null;
6965
+ };
6618
6966
  /**
6619
6967
  * @description <p>Types: Folder - 1, File - 2}</p><details><summary>See values descriptions</summary><details><summary>See values descriptions</summary><table><tr><th>Value</th><th>Description</th></tr><tr><td>1</td><td>Folder</td></tr><tr><td>2</td><td>File</td></tr><tr><td>3</td><td>Album</td></tr></table></details></details>
6620
6968
  * @enum {integer}
@@ -6839,21 +7187,32 @@ export interface components {
6839
7187
  */
6840
7188
  LinkState3: 0 | 1 | 2;
6841
7189
  ActiveRevisionDto: {
7190
+ /** @deprecated */
7191
+ Photo?: components["schemas"]["PhotoDto"] | null;
6842
7192
  RevisionID: components["schemas"]["Id"];
6843
7193
  CreateTime: number;
6844
7194
  EncryptedSize: number;
6845
7195
  ManifestSignature?: components["schemas"]["PGPSignature"] | null;
6846
7196
  XAttr?: components["schemas"]["PGPMessage"] | null;
6847
7197
  Thumbnails: components["schemas"]["ThumbnailDto"][];
6848
- Photo?: components["schemas"]["PhotoDto"] | null;
6849
7198
  /** Format: email */
6850
7199
  SignatureEmail?: string | null;
6851
7200
  };
6852
- ThumbnailDto: {
6853
- ThumbnailID: components["schemas"]["Id"];
6854
- Type: components["schemas"]["ThumbnailType"];
6855
- Hash: components["schemas"]["BinaryString"];
7201
+ ActivePhotoRevisionDto: {
7202
+ RevisionID: components["schemas"]["Id"];
7203
+ CreateTime: number;
6856
7204
  EncryptedSize: number;
7205
+ ManifestSignature?: components["schemas"]["PGPSignature"] | null;
7206
+ XAttr?: components["schemas"]["PGPMessage"] | null;
7207
+ Thumbnails: components["schemas"]["ThumbnailDto"][];
7208
+ /** Format: email */
7209
+ SignatureEmail?: string | null;
7210
+ };
7211
+ PhotoAlbumDto: {
7212
+ AlbumLinkID: components["schemas"]["Id"];
7213
+ Hash: string;
7214
+ ContentHash: string;
7215
+ AddedTime: number;
6857
7216
  };
6858
7217
  PhotoDto: {
6859
7218
  CaptureTime: number;
@@ -6861,6 +7220,12 @@ export interface components {
6861
7220
  ContentHash?: string | null;
6862
7221
  RelatedPhotosLinkIDs: components["schemas"]["Id"][];
6863
7222
  };
7223
+ ThumbnailDto: {
7224
+ ThumbnailID: components["schemas"]["Id"];
7225
+ Type: components["schemas"]["ThumbnailType"];
7226
+ Hash: components["schemas"]["BinaryString"];
7227
+ EncryptedSize: number;
7228
+ };
6864
7229
  };
6865
7230
  responses: {
6866
7231
  /** @description Plain success response without additional information */
@@ -8376,7 +8741,7 @@ export interface operations {
8376
8741
  header?: never;
8377
8742
  path: {
8378
8743
  volumeID: string;
8379
- linkID: string;
8744
+ linkID: components["schemas"]["Id"];
8380
8745
  };
8381
8746
  cookie?: never;
8382
8747
  };
@@ -8404,7 +8769,7 @@ export interface operations {
8404
8769
  header?: never;
8405
8770
  path: {
8406
8771
  shareID: string;
8407
- linkID: string;
8772
+ linkID: components["schemas"]["Id"];
8408
8773
  };
8409
8774
  cookie?: never;
8410
8775
  };
@@ -8572,7 +8937,7 @@ export interface operations {
8572
8937
  header?: never;
8573
8938
  path: {
8574
8939
  shareID: string;
8575
- linkID: string;
8940
+ linkID: components["schemas"]["Id"];
8576
8941
  };
8577
8942
  cookie?: never;
8578
8943
  };
@@ -8721,7 +9086,7 @@ export interface operations {
8721
9086
  header?: never;
8722
9087
  path: {
8723
9088
  shareID: string;
8724
- linkID: string;
9089
+ linkID: components["schemas"]["Id"];
8725
9090
  };
8726
9091
  cookie?: never;
8727
9092
  };
@@ -8816,7 +9181,7 @@ export interface operations {
8816
9181
  header?: never;
8817
9182
  path: {
8818
9183
  volumeID: string;
8819
- linkID: string;
9184
+ linkID: components["schemas"]["Id"];
8820
9185
  };
8821
9186
  cookie?: never;
8822
9187
  };
@@ -8862,7 +9227,7 @@ export interface operations {
8862
9227
  header?: never;
8863
9228
  path: {
8864
9229
  volumeID: string;
8865
- linkID: string;
9230
+ linkID: components["schemas"]["Id"];
8866
9231
  revisionID: components["schemas"]["Id"];
8867
9232
  };
8868
9233
  cookie?: never;
@@ -8886,7 +9251,7 @@ export interface operations {
8886
9251
  header?: never;
8887
9252
  path: {
8888
9253
  volumeID: string;
8889
- linkID: string;
9254
+ linkID: components["schemas"]["Id"];
8890
9255
  revisionID: components["schemas"]["Id"];
8891
9256
  };
8892
9257
  cookie?: never;
@@ -8915,7 +9280,6 @@ export interface operations {
8915
9280
  content: {
8916
9281
  "application/json": {
8917
9282
  /** @description Potential codes and their meaning:
8918
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
8919
9283
  * - 200303: Cannot commit related photo with main already in album
8920
9284
  * */
8921
9285
  Code: number;
@@ -8979,7 +9343,7 @@ export interface operations {
8979
9343
  header?: never;
8980
9344
  path: {
8981
9345
  shareID: string;
8982
- linkID: string;
9346
+ linkID: components["schemas"]["Id"];
8983
9347
  revisionID: components["schemas"]["Id"];
8984
9348
  };
8985
9349
  cookie?: never;
@@ -9003,7 +9367,7 @@ export interface operations {
9003
9367
  header?: never;
9004
9368
  path: {
9005
9369
  shareID: string;
9006
- linkID: string;
9370
+ linkID: components["schemas"]["Id"];
9007
9371
  revisionID: components["schemas"]["Id"];
9008
9372
  };
9009
9373
  cookie?: never;
@@ -9032,7 +9396,6 @@ export interface operations {
9032
9396
  content: {
9033
9397
  "application/json": {
9034
9398
  /** @description Potential codes and their meaning:
9035
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
9036
9399
  * - 200303: Cannot commit related photo with main already in album
9037
9400
  * */
9038
9401
  Code: number;
@@ -9120,7 +9483,6 @@ export interface operations {
9120
9483
  * - 200301: max folder depth reached
9121
9484
  * - 2500: file or folder with same name already exists
9122
9485
  * - 2501: parent folder was not found
9123
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
9124
9486
  * - 200701: A document type cannot create a revision
9125
9487
  * */
9126
9488
  Code: number;
@@ -9166,7 +9528,6 @@ export interface operations {
9166
9528
  * - 200301: max folder depth reached
9167
9529
  * - 2500: file or folder with same name already exists
9168
9530
  * - 2501: parent folder was not found
9169
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
9170
9531
  * - 200701: A document type cannot create a revision
9171
9532
  * */
9172
9533
  Code: number;
@@ -9181,7 +9542,7 @@ export interface operations {
9181
9542
  header?: never;
9182
9543
  path: {
9183
9544
  volumeID: string;
9184
- linkID: string;
9545
+ linkID: components["schemas"]["Id"];
9185
9546
  };
9186
9547
  cookie?: never;
9187
9548
  };
@@ -9205,7 +9566,7 @@ export interface operations {
9205
9566
  header?: never;
9206
9567
  path: {
9207
9568
  volumeID: string;
9208
- linkID: string;
9569
+ linkID: components["schemas"]["Id"];
9209
9570
  };
9210
9571
  cookie?: never;
9211
9572
  };
@@ -9247,7 +9608,6 @@ export interface operations {
9247
9608
  content: {
9248
9609
  "application/json": {
9249
9610
  /** @description Potential codes and their meaning:
9250
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
9251
9611
  * - 200700: A document type cannot create a revision
9252
9612
  * */
9253
9613
  Code: number;
@@ -9262,7 +9622,7 @@ export interface operations {
9262
9622
  header?: never;
9263
9623
  path: {
9264
9624
  shareID: string;
9265
- linkID: string;
9625
+ linkID: components["schemas"]["Id"];
9266
9626
  };
9267
9627
  cookie?: never;
9268
9628
  };
@@ -9286,7 +9646,7 @@ export interface operations {
9286
9646
  header?: never;
9287
9647
  path: {
9288
9648
  shareID: string;
9289
- linkID: string;
9649
+ linkID: components["schemas"]["Id"];
9290
9650
  };
9291
9651
  cookie?: never;
9292
9652
  };
@@ -9328,7 +9688,6 @@ export interface operations {
9328
9688
  content: {
9329
9689
  "application/json": {
9330
9690
  /** @description Potential codes and their meaning:
9331
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
9332
9691
  * - 200700: A document type cannot create a revision
9333
9692
  * */
9334
9693
  Code: number;
@@ -9346,7 +9705,7 @@ export interface operations {
9346
9705
  header?: never;
9347
9706
  path: {
9348
9707
  shareID: string;
9349
- linkID: string;
9708
+ linkID: components["schemas"]["Id"];
9350
9709
  revisionID: components["schemas"]["Id"];
9351
9710
  };
9352
9711
  cookie?: never;
@@ -9433,7 +9792,7 @@ export interface operations {
9433
9792
  header?: never;
9434
9793
  path: {
9435
9794
  volumeID: string;
9436
- linkID: string;
9795
+ linkID: components["schemas"]["Id"];
9437
9796
  revisionID: components["schemas"]["Id"];
9438
9797
  };
9439
9798
  cookie?: never;
@@ -9458,7 +9817,7 @@ export interface operations {
9458
9817
  header?: never;
9459
9818
  path: {
9460
9819
  shareID: string;
9461
- linkID: string;
9820
+ linkID: components["schemas"]["Id"];
9462
9821
  revisionID: components["schemas"]["Id"];
9463
9822
  };
9464
9823
  cookie?: never;
@@ -9900,7 +10259,7 @@ export interface operations {
9900
10259
  /** @description Potential codes and their meaning:
9901
10260
  * - 2501: The parent link does not exist or is trashed
9902
10261
  * - 2011: The user does not have write permission on the link
9903
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
10262
+ * - 200003: Small file upload can only be used for revisions up to 128 KiB in size (encrypted content + thumbnails)
9904
10263
  * - 200002: Storage quota exceeded
9905
10264
  * - 2001: PGP data is not correct
9906
10265
  * - 200701: A document type cannot create a revision
@@ -10021,7 +10380,7 @@ export interface operations {
10021
10380
  /** @description Potential codes and their meaning:
10022
10381
  * - 2501: The link does not exist or is trashed
10023
10382
  * - 2011: The user does not have write permission on the link
10024
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
10383
+ * - 200003: Small file upload can only be used for revisions up to 128 KiB in size (encrypted content + thumbnails)
10025
10384
  * - 200002: Storage quota exceeded
10026
10385
  * - 2001: PGP data is not correct
10027
10386
  * - 200700: A document type cannot create a revision
@@ -10511,6 +10870,33 @@ export interface operations {
10511
10870
  };
10512
10871
  };
10513
10872
  };
10873
+ "post_drive-photos-volumes-{volumeID}-links": {
10874
+ parameters: {
10875
+ query?: never;
10876
+ header?: never;
10877
+ path: {
10878
+ volumeID: string;
10879
+ };
10880
+ cookie?: never;
10881
+ };
10882
+ requestBody?: {
10883
+ content: {
10884
+ "application/json": components["schemas"]["LinkIDsRequestDto"];
10885
+ };
10886
+ };
10887
+ responses: {
10888
+ /** @description Success */
10889
+ 200: {
10890
+ headers: {
10891
+ "x-pm-code": 1000;
10892
+ [name: string]: unknown;
10893
+ };
10894
+ content: {
10895
+ "application/json": components["schemas"]["LoadPhotoVolumeLinkDetailsResponseDto"];
10896
+ };
10897
+ };
10898
+ };
10899
+ };
10514
10900
  "put_drive-photos-volumes-{volumeID}-links-{linkID}-revisions-{revisionID}-xattr": {
10515
10901
  parameters: {
10516
10902
  query?: never;
@@ -10602,6 +10988,43 @@ export interface operations {
10602
10988
  422: components["responses"]["ProtonErrorResponse"];
10603
10989
  };
10604
10990
  };
10991
+ "get_drive-urls-{token}-links-{linkID}-path": {
10992
+ parameters: {
10993
+ query?: never;
10994
+ header?: never;
10995
+ path: {
10996
+ token: string;
10997
+ linkID: string;
10998
+ };
10999
+ cookie?: never;
11000
+ };
11001
+ requestBody?: never;
11002
+ responses: {
11003
+ /** @description Success */
11004
+ 200: {
11005
+ headers: {
11006
+ "x-pm-code": 1000;
11007
+ [name: string]: unknown;
11008
+ };
11009
+ content: {
11010
+ "application/json": components["schemas"]["ParentEncryptedLinkIDsResponseDto"];
11011
+ };
11012
+ };
11013
+ /** @description Unprocessable entity */
11014
+ 400: {
11015
+ headers: {
11016
+ [name: string]: unknown;
11017
+ };
11018
+ content: {
11019
+ "application/json": {
11020
+ /** @description Potential codes and their meaning:
11021
+ * - 2061: Invalid ID. */
11022
+ Code: number;
11023
+ };
11024
+ };
11025
+ };
11026
+ };
11027
+ };
10605
11028
  "get_drive-urls-{token}-info": {
10606
11029
  parameters: {
10607
11030
  query?: never;
@@ -10675,7 +11098,7 @@ export interface operations {
10675
11098
  header?: never;
10676
11099
  path: {
10677
11100
  token: string;
10678
- linkID: string;
11101
+ linkID: components["schemas"]["Id"];
10679
11102
  revisionID: components["schemas"]["Id"];
10680
11103
  };
10681
11104
  cookie?: never;
@@ -10705,7 +11128,6 @@ export interface operations {
10705
11128
  "application/json": {
10706
11129
  /** @description Potential codes and their meaning:
10707
11130
  * - 2011: The current ShareURL does not have read+write permissions.
10708
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
10709
11131
  * - 200303: Cannot commit related photo with main already in album
10710
11132
  * */
10711
11133
  Code: number;
@@ -10857,7 +11279,6 @@ export interface operations {
10857
11279
  * - 2500: file or folder with same name already exists
10858
11280
  * - 2501: parent folder was not found
10859
11281
  * - 2011: The current ShareURL does not have read+write permissions
10860
- * - 200003: Max file size limited to 100 MB on your plan. Please upgrade.
10861
11282
  * - 200701: A document type cannot create a revision
10862
11283
  * */
10863
11284
  Code: number;
@@ -10997,7 +11418,7 @@ export interface operations {
10997
11418
  };
10998
11419
  };
10999
11420
  };
11000
- "get_drive-urls-{token}-links-{linkID}-path": {
11421
+ "put_drive-urls-{token}-links-{linkID}-rename": {
11001
11422
  parameters: {
11002
11423
  query?: never;
11003
11424
  header?: never;
@@ -11007,73 +11428,479 @@ export interface operations {
11007
11428
  };
11008
11429
  cookie?: never;
11009
11430
  };
11010
- requestBody?: never;
11011
- responses: {
11012
- /** @description Success */
11013
- 200: {
11014
- headers: {
11015
- "x-pm-code": 1000;
11016
- [name: string]: unknown;
11017
- };
11018
- content: {
11019
- "application/json": components["schemas"]["ParentEncryptedLinkIDsResponseDto"];
11020
- };
11431
+ requestBody?: {
11432
+ content: {
11433
+ "application/json": components["schemas"]["RenameAnonymousLinkRequestDto"];
11021
11434
  };
11022
- /** @description Unprocessable entity */
11023
- 400: {
11435
+ };
11436
+ responses: {
11437
+ 200: components["responses"]["ProtonSuccessResponse"];
11438
+ /** @description Conflict, a file or folder with the new name already exists in the current folder. */
11439
+ 422: {
11024
11440
  headers: {
11025
11441
  [name: string]: unknown;
11026
11442
  };
11027
11443
  content: {
11028
- "application/json": {
11029
- /** @description Potential codes and their meaning:
11030
- * - 2061: Invalid ID. */
11031
- Code: number;
11032
- };
11444
+ "application/json": components["schemas"]["ConflictErrorResponseDto"];
11033
11445
  };
11034
11446
  };
11035
11447
  };
11036
11448
  };
11037
- "put_drive-urls-{token}-links-{linkID}-rename": {
11449
+ "post_drive-urls-{token}-blocks": {
11038
11450
  parameters: {
11039
11451
  query?: never;
11040
11452
  header?: never;
11041
11453
  path: {
11042
11454
  token: string;
11043
- linkID: string;
11044
11455
  };
11045
11456
  cookie?: never;
11046
11457
  };
11047
11458
  requestBody?: {
11048
11459
  content: {
11049
- "application/json": components["schemas"]["RenameAnonymousLinkRequestDto"];
11460
+ "application/json": components["schemas"]["RequestAnonymousUploadRequestDto"];
11461
+ };
11462
+ };
11463
+ responses: {
11464
+ /** @description Success */
11465
+ 200: {
11466
+ headers: {
11467
+ "x-pm-code": 1000;
11468
+ [name: string]: unknown;
11469
+ };
11470
+ content: {
11471
+ "application/json": components["schemas"]["RequestUploadResponse"];
11472
+ };
11473
+ };
11474
+ /** @description Unprocessable Entity */
11475
+ 422: {
11476
+ headers: {
11477
+ [name: string]: unknown;
11478
+ };
11479
+ content: {
11480
+ "application/json": {
11481
+ /** @description Potential codes and their meaning:
11482
+ * - 2011: The current ShareURL does not have read+write permissions
11483
+ * */
11484
+ Code: number;
11485
+ };
11486
+ };
11487
+ };
11488
+ };
11489
+ };
11490
+ "get_drive-urls-{token}-links-{linkID}-revisions-{revisionID}-verification": {
11491
+ parameters: {
11492
+ query?: never;
11493
+ header?: never;
11494
+ path: {
11495
+ token: string;
11496
+ linkID: string;
11497
+ revisionID: components["schemas"]["Id"];
11498
+ };
11499
+ cookie?: never;
11500
+ };
11501
+ requestBody?: never;
11502
+ responses: {
11503
+ /** @description Success */
11504
+ 200: {
11505
+ headers: {
11506
+ "x-pm-code": 1000;
11507
+ [name: string]: unknown;
11508
+ };
11509
+ content: {
11510
+ "application/json": components["schemas"]["VerificationData"];
11511
+ };
11512
+ };
11513
+ /** @description Unprocessable Entity */
11514
+ 422: {
11515
+ headers: {
11516
+ [name: string]: unknown;
11517
+ };
11518
+ content: {
11519
+ "application/json": {
11520
+ /** @description Potential codes and their meaning:
11521
+ * - 2011: The current ShareURL does not have read+write permissions
11522
+ * */
11523
+ Code: number;
11524
+ };
11525
+ };
11526
+ };
11527
+ };
11528
+ };
11529
+ "get_drive-urls-{token}": {
11530
+ parameters: {
11531
+ query?: never;
11532
+ header?: never;
11533
+ path: {
11534
+ token: string;
11535
+ };
11536
+ cookie?: never;
11537
+ };
11538
+ requestBody?: never;
11539
+ responses: {
11540
+ /** @description Success */
11541
+ 200: {
11542
+ headers: {
11543
+ "x-pm-code": 1000;
11544
+ [name: string]: unknown;
11545
+ };
11546
+ content: {
11547
+ "application/json": components["schemas"]["BootstrapShareTokenResponseDto"];
11548
+ };
11549
+ };
11550
+ 422: components["responses"]["ProtonErrorResponse"];
11551
+ };
11552
+ };
11553
+ "get_drive-urls-{token}-folders-{linkID}-children": {
11554
+ parameters: {
11555
+ query?: {
11556
+ /** @description Field to sort by */
11557
+ Sort?: "MIMEType" | "Size" | "ModifyTime" | "CreateTime" | "Type";
11558
+ /** @description Sort order */
11559
+ Desc?: 0 | 1;
11560
+ /** @description Show all files including those in non-active (drafts) state. */
11561
+ ShowAll?: 0 | 1;
11562
+ /** @description Show folders only */
11563
+ FoldersOnly?: 0 | 1;
11564
+ /**
11565
+ * @deprecated
11566
+ * @description Get thumbnail download URLs
11567
+ */
11568
+ Thumbnails?: 0 | 1;
11569
+ PageSize?: components["schemas"]["OffsetPagination"]["PageSize"] & unknown;
11570
+ Page?: components["schemas"]["OffsetPagination"]["Page"] & unknown;
11571
+ };
11572
+ header?: never;
11573
+ path: {
11574
+ token: string;
11575
+ linkID: string;
11576
+ };
11577
+ cookie?: never;
11578
+ };
11579
+ requestBody?: never;
11580
+ responses: {
11581
+ /** @description Links */
11582
+ 200: {
11583
+ headers: {
11584
+ [name: string]: unknown;
11585
+ };
11586
+ content: {
11587
+ "application/json": {
11588
+ Code: components["schemas"]["ResponseCodeSuccess"];
11589
+ Links: components["schemas"]["ExtendedLinkTransformer"][];
11590
+ };
11591
+ };
11592
+ };
11593
+ 422: components["responses"]["ProtonErrorResponse"];
11594
+ };
11595
+ };
11596
+ "get_drive-urls-{token}-files-{linkID}": {
11597
+ parameters: {
11598
+ query?: {
11599
+ /** @description Number of blocks */
11600
+ PageSize?: components["schemas"]["GetRevisionQueryParameters"]["PageSize"];
11601
+ /** @description Block index from which to fetch block list */
11602
+ FromBlockIndex?: components["schemas"]["GetRevisionQueryParameters"]["FromBlockIndex"];
11603
+ /** @description Do not generate download URLs for blocks */
11604
+ NoBlockUrls?: components["schemas"]["GetRevisionQueryParameters"]["NoBlockUrls"];
11605
+ };
11606
+ header?: never;
11607
+ path: {
11608
+ token: string;
11609
+ linkID: string;
11610
+ };
11611
+ cookie?: never;
11612
+ };
11613
+ requestBody?: never;
11614
+ responses: {
11615
+ /** @description Success */
11616
+ 200: {
11617
+ headers: {
11618
+ "x-pm-code": 1000;
11619
+ [name: string]: unknown;
11620
+ };
11621
+ content: {
11622
+ "application/json": components["schemas"]["GetRevisionResponseDto"];
11623
+ };
11624
+ };
11625
+ 422: components["responses"]["ProtonErrorResponse"];
11626
+ };
11627
+ };
11628
+ "post_drive-urls-{token}-file": {
11629
+ parameters: {
11630
+ query?: never;
11631
+ header?: never;
11632
+ path: {
11633
+ /** @description ShareURL Token */
11634
+ token: string;
11635
+ };
11636
+ cookie?: never;
11637
+ };
11638
+ requestBody?: {
11639
+ content: {
11640
+ "application/json": components["schemas"]["GetSharedFileInfoRequestDto"];
11641
+ };
11642
+ };
11643
+ responses: {
11644
+ /** @description Success */
11645
+ 200: {
11646
+ headers: {
11647
+ "x-pm-code": 1000;
11648
+ [name: string]: unknown;
11649
+ };
11650
+ content: {
11651
+ "application/json": components["schemas"]["GetSharedFileInfoResponseDto"];
11652
+ };
11653
+ };
11654
+ 422: components["responses"]["ProtonErrorResponse"];
11655
+ };
11656
+ };
11657
+ "get_drive-volumes-{volumeID}-urls": {
11658
+ parameters: {
11659
+ query?: {
11660
+ PageSize?: components["schemas"]["OffsetPagination"]["PageSize"] & unknown;
11661
+ Page?: components["schemas"]["OffsetPagination"]["Page"] & unknown;
11662
+ };
11663
+ header?: never;
11664
+ path: {
11665
+ volumeID: string;
11666
+ };
11667
+ cookie?: never;
11668
+ };
11669
+ requestBody?: never;
11670
+ responses: {
11671
+ /** @description Success */
11672
+ 200: {
11673
+ headers: {
11674
+ "x-pm-code": 1000;
11675
+ [name: string]: unknown;
11676
+ };
11677
+ content: {
11678
+ "application/json": components["schemas"]["ShareURLContextsCollection"];
11679
+ };
11680
+ };
11681
+ };
11682
+ };
11683
+ "get_drive-shares-{shareID}-urls": {
11684
+ parameters: {
11685
+ query?: {
11686
+ /** @description By default, only shareURL pointing to the share are returned. With Recursive=1, list all shareURLs in the subtree reachable from the Share. 1 (true) or 0 (false). */
11687
+ Recursive?: 0 | 1;
11688
+ /** @description Fetch Thumbnail URLs */
11689
+ Thumbnails?: 0 | 1;
11690
+ PageSize?: components["schemas"]["OffsetPagination"]["PageSize"] & unknown;
11691
+ Page?: components["schemas"]["OffsetPagination"]["Page"] & unknown;
11692
+ };
11693
+ header?: never;
11694
+ path: {
11695
+ shareID: string;
11696
+ };
11697
+ cookie?: never;
11698
+ };
11699
+ requestBody?: never;
11700
+ responses: {
11701
+ /** @description Success */
11702
+ 200: {
11703
+ headers: {
11704
+ "x-pm-code": 1000;
11705
+ [name: string]: unknown;
11706
+ };
11707
+ content: {
11708
+ "application/json": components["schemas"]["ListShareURLsResponseDto"];
11709
+ };
11710
+ };
11711
+ };
11712
+ };
11713
+ "post_drive-shares-{shareID}-urls": {
11714
+ parameters: {
11715
+ query?: never;
11716
+ header?: never;
11717
+ path: {
11718
+ shareID: string;
11719
+ };
11720
+ cookie?: never;
11721
+ };
11722
+ requestBody?: {
11723
+ content: {
11724
+ "application/json": components["schemas"]["CreateShareURLRequestDto"];
11725
+ };
11726
+ };
11727
+ responses: {
11728
+ /** @description Share URL created */
11729
+ 200: {
11730
+ headers: {
11731
+ [name: string]: unknown;
11732
+ };
11733
+ content: {
11734
+ "application/json": {
11735
+ Code: components["schemas"]["ResponseCodeSuccess"];
11736
+ ShareURL: components["schemas"]["ShareURLResponseDto"];
11737
+ };
11738
+ };
11739
+ };
11740
+ };
11741
+ };
11742
+ "put_drive-shares-{shareID}-urls-{urlID}": {
11743
+ parameters: {
11744
+ query?: never;
11745
+ header?: never;
11746
+ path: {
11747
+ shareID: string;
11748
+ urlID: components["schemas"]["Id"];
11749
+ };
11750
+ cookie?: never;
11751
+ };
11752
+ requestBody?: {
11753
+ content: {
11754
+ "application/json": components["schemas"]["UpdateShareURLRequestDto"];
11755
+ };
11756
+ };
11757
+ responses: {
11758
+ /** @description Share URL updated */
11759
+ 200: {
11760
+ headers: {
11761
+ [name: string]: unknown;
11762
+ };
11763
+ content: {
11764
+ "application/json": {
11765
+ Code: components["schemas"]["ResponseCodeSuccess"];
11766
+ ShareURL: components["schemas"]["ShareURLResponseDto"];
11767
+ };
11768
+ };
11769
+ };
11770
+ 422: components["responses"]["ProtonErrorResponse"];
11771
+ };
11772
+ };
11773
+ "delete_drive-shares-{shareID}-urls-{urlID}": {
11774
+ parameters: {
11775
+ query?: never;
11776
+ header?: never;
11777
+ path: {
11778
+ shareID: string;
11779
+ urlID: components["schemas"]["Id"];
11780
+ };
11781
+ cookie?: never;
11782
+ };
11783
+ requestBody?: never;
11784
+ responses: {
11785
+ /** @description Success */
11786
+ 200: {
11787
+ headers: {
11788
+ "x-pm-code": 1000;
11789
+ [name: string]: unknown;
11790
+ };
11791
+ content: {
11792
+ "application/json": components["schemas"]["SuccessfulResponse"];
11793
+ };
11794
+ };
11795
+ };
11796
+ };
11797
+ "post_drive-shares-{shareID}-urls-delete_multiple": {
11798
+ parameters: {
11799
+ query?: never;
11800
+ header?: never;
11801
+ path: {
11802
+ shareID: string;
11803
+ };
11804
+ cookie?: never;
11805
+ };
11806
+ requestBody?: {
11807
+ content: {
11808
+ "application/json": components["schemas"]["DeleteMultipleShareURLsRequestDto"];
11809
+ };
11810
+ };
11811
+ responses: {
11812
+ /** @description Responses */
11813
+ 200: {
11814
+ headers: {
11815
+ [name: string]: unknown;
11816
+ };
11817
+ content: {
11818
+ "application/json": {
11819
+ /** @enum {integer} */
11820
+ Code?: 1001;
11821
+ Responses?: {
11822
+ ShareURLID: string;
11823
+ Response: {
11824
+ /** @enum {integer} */
11825
+ Code: 1000 | 2501;
11826
+ Error?: string;
11827
+ };
11828
+ }[];
11829
+ };
11830
+ };
11831
+ };
11832
+ };
11833
+ };
11834
+ "post_drive-unauth-v2-volumes-{volumeID}-links-{linkID}-checkAvailableHashes": {
11835
+ parameters: {
11836
+ query?: never;
11837
+ header?: never;
11838
+ path: {
11839
+ volumeID: string;
11840
+ linkID: components["schemas"]["Id"];
11841
+ };
11842
+ cookie?: never;
11843
+ };
11844
+ requestBody?: {
11845
+ content: {
11846
+ "application/json": components["schemas"]["CheckAvailableHashesRequestDto"];
11847
+ };
11848
+ };
11849
+ responses: {
11850
+ /** @description Success */
11851
+ 200: {
11852
+ headers: {
11853
+ "x-pm-code": 1000;
11854
+ [name: string]: unknown;
11855
+ };
11856
+ content: {
11857
+ "application/json": components["schemas"]["AvailableHashesResponseDto"];
11858
+ };
11859
+ };
11860
+ };
11861
+ };
11862
+ "get_drive-unauth-v2-volumes-{volumeID}-files-{linkID}-revisions-{revisionID}": {
11863
+ parameters: {
11864
+ query?: {
11865
+ /** @description Number of blocks */
11866
+ PageSize?: components["schemas"]["GetRevisionQueryParameters"]["PageSize"];
11867
+ /** @description Block index from which to fetch block list */
11868
+ FromBlockIndex?: components["schemas"]["GetRevisionQueryParameters"]["FromBlockIndex"];
11869
+ /** @description Do not generate download URLs for blocks */
11870
+ NoBlockUrls?: components["schemas"]["GetRevisionQueryParameters"]["NoBlockUrls"];
11871
+ };
11872
+ header?: never;
11873
+ path: {
11874
+ volumeID: string;
11875
+ linkID: components["schemas"]["Id"];
11876
+ revisionID: components["schemas"]["Id"];
11050
11877
  };
11878
+ cookie?: never;
11051
11879
  };
11880
+ requestBody?: never;
11052
11881
  responses: {
11053
- 200: components["responses"]["ProtonSuccessResponse"];
11054
- /** @description Conflict, a file or folder with the new name already exists in the current folder. */
11055
- 422: {
11882
+ default: {
11056
11883
  headers: {
11057
11884
  [name: string]: unknown;
11058
11885
  };
11059
- content: {
11060
- "application/json": components["schemas"]["ConflictErrorResponseDto"];
11061
- };
11886
+ content?: never;
11062
11887
  };
11063
11888
  };
11064
11889
  };
11065
- "post_drive-urls-{token}-blocks": {
11890
+ "put_drive-unauth-v2-volumes-{volumeID}-files-{linkID}-revisions-{revisionID}": {
11066
11891
  parameters: {
11067
11892
  query?: never;
11068
11893
  header?: never;
11069
11894
  path: {
11070
- token: string;
11895
+ volumeID: string;
11896
+ linkID: components["schemas"]["Id"];
11897
+ revisionID: components["schemas"]["Id"];
11071
11898
  };
11072
11899
  cookie?: never;
11073
11900
  };
11074
11901
  requestBody?: {
11075
11902
  content: {
11076
- "application/json": components["schemas"]["RequestAnonymousUploadRequestDto"];
11903
+ "application/json": components["schemas"]["CommitRevisionDto"];
11077
11904
  };
11078
11905
  };
11079
11906
  responses: {
@@ -11084,31 +11911,17 @@ export interface operations {
11084
11911
  [name: string]: unknown;
11085
11912
  };
11086
11913
  content: {
11087
- "application/json": components["schemas"]["RequestUploadResponse"];
11088
- };
11089
- };
11090
- /** @description Unprocessable Entity */
11091
- 422: {
11092
- headers: {
11093
- [name: string]: unknown;
11094
- };
11095
- content: {
11096
- "application/json": {
11097
- /** @description Potential codes and their meaning:
11098
- * - 2011: The current ShareURL does not have read+write permissions
11099
- * */
11100
- Code: number;
11101
- };
11914
+ "application/json": components["schemas"]["SuccessfulResponse"];
11102
11915
  };
11103
11916
  };
11104
11917
  };
11105
11918
  };
11106
- "get_drive-urls-{token}-links-{linkID}-revisions-{revisionID}-verification": {
11919
+ "delete_drive-unauth-v2-volumes-{volumeID}-files-{linkID}-revisions-{revisionID}": {
11107
11920
  parameters: {
11108
11921
  query?: never;
11109
11922
  header?: never;
11110
11923
  path: {
11111
- token: string;
11924
+ volumeID: string;
11112
11925
  linkID: string;
11113
11926
  revisionID: components["schemas"]["Id"];
11114
11927
  };
@@ -11123,35 +11936,25 @@ export interface operations {
11123
11936
  [name: string]: unknown;
11124
11937
  };
11125
11938
  content: {
11126
- "application/json": components["schemas"]["VerificationData"];
11127
- };
11128
- };
11129
- /** @description Unprocessable Entity */
11130
- 422: {
11131
- headers: {
11132
- [name: string]: unknown;
11133
- };
11134
- content: {
11135
- "application/json": {
11136
- /** @description Potential codes and their meaning:
11137
- * - 2011: The current ShareURL does not have read+write permissions
11138
- * */
11139
- Code: number;
11140
- };
11939
+ "application/json": components["schemas"]["SuccessfulResponse"];
11141
11940
  };
11142
11941
  };
11143
11942
  };
11144
11943
  };
11145
- "get_drive-urls-{token}": {
11944
+ "post_drive-unauth-v2-volumes-{volumeID}-documents": {
11146
11945
  parameters: {
11147
11946
  query?: never;
11148
11947
  header?: never;
11149
11948
  path: {
11150
- token: string;
11949
+ volumeID: string;
11151
11950
  };
11152
11951
  cookie?: never;
11153
11952
  };
11154
- requestBody?: never;
11953
+ requestBody?: {
11954
+ content: {
11955
+ "application/json": components["schemas"]["CreateDocumentDto"];
11956
+ };
11957
+ };
11155
11958
  responses: {
11156
11959
  /** @description Success */
11157
11960
  200: {
@@ -11160,73 +11963,52 @@ export interface operations {
11160
11963
  [name: string]: unknown;
11161
11964
  };
11162
11965
  content: {
11163
- "application/json": components["schemas"]["BootstrapShareTokenResponseDto"];
11966
+ "application/json": components["schemas"]["CreateDocumentResponseDto"];
11164
11967
  };
11165
11968
  };
11166
- 422: components["responses"]["ProtonErrorResponse"];
11167
11969
  };
11168
11970
  };
11169
- "get_drive-urls-{token}-folders-{linkID}-children": {
11971
+ "post_drive-unauth-v2-volumes-{volumeID}-files": {
11170
11972
  parameters: {
11171
- query?: {
11172
- /** @description Field to sort by */
11173
- Sort?: "MIMEType" | "Size" | "ModifyTime" | "CreateTime" | "Type";
11174
- /** @description Sort order */
11175
- Desc?: 0 | 1;
11176
- /** @description Show all files including those in non-active (drafts) state. */
11177
- ShowAll?: 0 | 1;
11178
- /** @description Show folders only */
11179
- FoldersOnly?: 0 | 1;
11180
- /**
11181
- * @deprecated
11182
- * @description Get thumbnail download URLs
11183
- */
11184
- Thumbnails?: 0 | 1;
11185
- PageSize?: components["schemas"]["OffsetPagination"]["PageSize"] & unknown;
11186
- Page?: components["schemas"]["OffsetPagination"]["Page"] & unknown;
11187
- };
11973
+ query?: never;
11188
11974
  header?: never;
11189
11975
  path: {
11190
- token: string;
11191
- linkID: string;
11976
+ volumeID: string;
11192
11977
  };
11193
11978
  cookie?: never;
11194
11979
  };
11195
- requestBody?: never;
11980
+ requestBody?: {
11981
+ content: {
11982
+ "application/json": components["schemas"]["CreateFileDto"];
11983
+ };
11984
+ };
11196
11985
  responses: {
11197
- /** @description Links */
11986
+ /** @description Success */
11198
11987
  200: {
11199
11988
  headers: {
11989
+ "x-pm-code": 1000;
11200
11990
  [name: string]: unknown;
11201
11991
  };
11202
11992
  content: {
11203
- "application/json": {
11204
- Code: components["schemas"]["ResponseCodeSuccess"];
11205
- Links: components["schemas"]["ExtendedLinkTransformer"][];
11206
- };
11993
+ "application/json": components["schemas"]["CreateDraftFileResponseDto"];
11207
11994
  };
11208
11995
  };
11209
- 422: components["responses"]["ProtonErrorResponse"];
11210
11996
  };
11211
11997
  };
11212
- "get_drive-urls-{token}-files-{linkID}": {
11998
+ "post_drive-unauth-v2-volumes-{volumeID}-folders": {
11213
11999
  parameters: {
11214
- query?: {
11215
- /** @description Number of blocks */
11216
- PageSize?: components["schemas"]["GetRevisionQueryParameters"]["PageSize"];
11217
- /** @description Block index from which to fetch block list */
11218
- FromBlockIndex?: components["schemas"]["GetRevisionQueryParameters"]["FromBlockIndex"];
11219
- /** @description Do not generate download URLs for blocks */
11220
- NoBlockUrls?: components["schemas"]["GetRevisionQueryParameters"]["NoBlockUrls"];
11221
- };
12000
+ query?: never;
11222
12001
  header?: never;
11223
12002
  path: {
11224
- token: string;
11225
- linkID: string;
12003
+ volumeID: string;
11226
12004
  };
11227
12005
  cookie?: never;
11228
12006
  };
11229
- requestBody?: never;
12007
+ requestBody?: {
12008
+ content: {
12009
+ "application/json": components["schemas"]["CreateFolderRequestDto2"];
12010
+ };
12011
+ };
11230
12012
  responses: {
11231
12013
  /** @description Success */
11232
12014
  200: {
@@ -11235,54 +12017,72 @@ export interface operations {
11235
12017
  [name: string]: unknown;
11236
12018
  };
11237
12019
  content: {
11238
- "application/json": components["schemas"]["GetRevisionResponseDto"];
12020
+ "application/json": components["schemas"]["CreateFolderResponseDto"];
11239
12021
  };
11240
12022
  };
11241
- 422: components["responses"]["ProtonErrorResponse"];
11242
12023
  };
11243
12024
  };
11244
- "post_drive-urls-{token}-file": {
12025
+ "post_drive-unauth-v2-volumes-{volumeID}-files-{linkID}-revisions": {
11245
12026
  parameters: {
11246
12027
  query?: never;
11247
12028
  header?: never;
11248
12029
  path: {
11249
- /** @description ShareURL Token */
11250
- token: string;
12030
+ volumeID: string;
12031
+ linkID: components["schemas"]["Id"];
11251
12032
  };
11252
12033
  cookie?: never;
11253
12034
  };
11254
12035
  requestBody?: {
11255
12036
  content: {
11256
- "application/json": components["schemas"]["GetSharedFileInfoRequestDto"];
12037
+ "application/json": components["schemas"]["CreateRevisionRequestDto"];
11257
12038
  };
11258
12039
  };
11259
12040
  responses: {
11260
- /** @description Success */
11261
- 200: {
12041
+ default: {
11262
12042
  headers: {
11263
- "x-pm-code": 1000;
11264
12043
  [name: string]: unknown;
11265
12044
  };
11266
- content: {
11267
- "application/json": components["schemas"]["GetSharedFileInfoResponseDto"];
11268
- };
12045
+ content?: never;
11269
12046
  };
11270
- 422: components["responses"]["ProtonErrorResponse"];
11271
12047
  };
11272
12048
  };
11273
- "get_drive-volumes-{volumeID}-urls": {
12049
+ "post_drive-unauth-v2-volumes-{volumeID}-delete_multiple": {
11274
12050
  parameters: {
11275
- query?: {
11276
- PageSize?: components["schemas"]["OffsetPagination"]["PageSize"] & unknown;
11277
- Page?: components["schemas"]["OffsetPagination"]["Page"] & unknown;
12051
+ query?: never;
12052
+ header?: never;
12053
+ path: {
12054
+ volumeID: string;
12055
+ };
12056
+ cookie?: never;
12057
+ };
12058
+ requestBody?: {
12059
+ content: {
12060
+ "application/json": components["schemas"]["LinkIDsRequestDto"];
12061
+ };
12062
+ };
12063
+ responses: {
12064
+ default: {
12065
+ headers: {
12066
+ [name: string]: unknown;
12067
+ };
12068
+ content?: never;
11278
12069
  };
12070
+ };
12071
+ };
12072
+ "post_drive-unauth-volumes-{volumeID}-thumbnails": {
12073
+ parameters: {
12074
+ query?: never;
11279
12075
  header?: never;
11280
12076
  path: {
11281
12077
  volumeID: string;
11282
12078
  };
11283
12079
  cookie?: never;
11284
12080
  };
11285
- requestBody?: never;
12081
+ requestBody?: {
12082
+ content: {
12083
+ "application/json": components["schemas"]["ThumbnailIDsListInput"];
12084
+ };
12085
+ };
11286
12086
  responses: {
11287
12087
  /** @description Success */
11288
12088
  200: {
@@ -11291,24 +12091,21 @@ export interface operations {
11291
12091
  [name: string]: unknown;
11292
12092
  };
11293
12093
  content: {
11294
- "application/json": components["schemas"]["ShareURLContextsCollection"];
12094
+ "application/json": components["schemas"]["ListThumbnailsResponse"];
11295
12095
  };
11296
12096
  };
11297
12097
  };
11298
12098
  };
11299
- "get_drive-shares-{shareID}-urls": {
12099
+ "get_drive-unauth-v2-volumes-{volumeID}-folders-{linkID}-children": {
11300
12100
  parameters: {
11301
12101
  query?: {
11302
- /** @description By default, only shareURL pointing to the share are returned. With Recursive=1, list all shareURLs in the subtree reachable from the Share. 1 (true) or 0 (false). */
11303
- Recursive?: 0 | 1;
11304
- /** @description Fetch Thumbnail URLs */
11305
- Thumbnails?: 0 | 1;
11306
- PageSize?: components["schemas"]["OffsetPagination"]["PageSize"] & unknown;
11307
- Page?: components["schemas"]["OffsetPagination"]["Page"] & unknown;
12102
+ AnchorID?: components["schemas"]["Id"] | null;
12103
+ FoldersOnly?: number;
11308
12104
  };
11309
12105
  header?: never;
11310
12106
  path: {
11311
- shareID: string;
12107
+ volumeID: string;
12108
+ linkID: string;
11312
12109
  };
11313
12110
  cookie?: never;
11314
12111
  };
@@ -11321,82 +12118,74 @@ export interface operations {
11321
12118
  [name: string]: unknown;
11322
12119
  };
11323
12120
  content: {
11324
- "application/json": components["schemas"]["ListShareURLsResponseDto"];
12121
+ "application/json": components["schemas"]["ListChildrenResponseDto"];
11325
12122
  };
11326
12123
  };
11327
12124
  };
11328
12125
  };
11329
- "post_drive-shares-{shareID}-urls": {
12126
+ "post_drive-unauth-v2-volumes-{volumeID}-links": {
11330
12127
  parameters: {
11331
12128
  query?: never;
11332
12129
  header?: never;
11333
12130
  path: {
11334
- shareID: string;
12131
+ volumeID: string;
11335
12132
  };
11336
12133
  cookie?: never;
11337
12134
  };
11338
12135
  requestBody?: {
11339
12136
  content: {
11340
- "application/json": components["schemas"]["CreateShareURLRequestDto"];
12137
+ "application/json": components["schemas"]["LinkIDsRequestDto"];
11341
12138
  };
11342
12139
  };
11343
12140
  responses: {
11344
- /** @description Share URL created */
12141
+ /** @description Success */
11345
12142
  200: {
11346
12143
  headers: {
12144
+ "x-pm-code": 1000;
11347
12145
  [name: string]: unknown;
11348
12146
  };
11349
12147
  content: {
11350
- "application/json": {
11351
- Code: components["schemas"]["ResponseCodeSuccess"];
11352
- ShareURL: components["schemas"]["ShareURLResponseDto"];
11353
- };
12148
+ "application/json": components["schemas"]["LoadLinkDetailsResponseDto"];
11354
12149
  };
11355
12150
  };
11356
12151
  };
11357
12152
  };
11358
- "put_drive-shares-{shareID}-urls-{urlID}": {
12153
+ "put_drive-unauth-v2-volumes-{volumeID}-links-{linkID}-rename": {
11359
12154
  parameters: {
11360
12155
  query?: never;
11361
12156
  header?: never;
11362
12157
  path: {
11363
- shareID: string;
11364
- urlID: components["schemas"]["Id"];
12158
+ volumeID: string;
12159
+ linkID: string;
11365
12160
  };
11366
12161
  cookie?: never;
11367
12162
  };
11368
12163
  requestBody?: {
11369
12164
  content: {
11370
- "application/json": components["schemas"]["UpdateShareURLRequestDto"];
12165
+ "application/json": components["schemas"]["RenameLinkRequestDto"];
11371
12166
  };
11372
12167
  };
11373
12168
  responses: {
11374
- /** @description Share URL updated */
11375
- 200: {
12169
+ default: {
11376
12170
  headers: {
11377
12171
  [name: string]: unknown;
11378
12172
  };
11379
- content: {
11380
- "application/json": {
11381
- Code: components["schemas"]["ResponseCodeSuccess"];
11382
- ShareURL: components["schemas"]["ShareURLResponseDto"];
11383
- };
11384
- };
12173
+ content?: never;
11385
12174
  };
11386
- 422: components["responses"]["ProtonErrorResponse"];
11387
12175
  };
11388
12176
  };
11389
- "delete_drive-shares-{shareID}-urls-{urlID}": {
12177
+ "post_drive-unauth-blocks": {
11390
12178
  parameters: {
11391
12179
  query?: never;
11392
12180
  header?: never;
11393
- path: {
11394
- shareID: string;
11395
- urlID: components["schemas"]["Id"];
11396
- };
12181
+ path?: never;
11397
12182
  cookie?: never;
11398
12183
  };
11399
- requestBody?: never;
12184
+ requestBody?: {
12185
+ content: {
12186
+ "application/json": components["schemas"]["RequestUploadInput"];
12187
+ };
12188
+ };
11400
12189
  responses: {
11401
12190
  /** @description Success */
11402
12191
  200: {
@@ -11405,44 +12194,32 @@ export interface operations {
11405
12194
  [name: string]: unknown;
11406
12195
  };
11407
12196
  content: {
11408
- "application/json": components["schemas"]["SuccessfulResponse"];
12197
+ "application/json": components["schemas"]["RequestUploadResponse"];
11409
12198
  };
11410
12199
  };
11411
12200
  };
11412
12201
  };
11413
- "post_drive-shares-{shareID}-urls-delete_multiple": {
12202
+ "get_drive-unauth-v2-volumes-{volumeID}-links-{linkID}-revisions-{revisionID}-verification": {
11414
12203
  parameters: {
11415
12204
  query?: never;
11416
12205
  header?: never;
11417
12206
  path: {
11418
- shareID: string;
12207
+ volumeID: string;
12208
+ linkID: components["schemas"]["Id"];
12209
+ revisionID: components["schemas"]["Id"];
11419
12210
  };
11420
12211
  cookie?: never;
11421
12212
  };
11422
- requestBody?: {
11423
- content: {
11424
- "application/json": components["schemas"]["DeleteMultipleShareURLsRequestDto"];
11425
- };
11426
- };
12213
+ requestBody?: never;
11427
12214
  responses: {
11428
- /** @description Responses */
12215
+ /** @description Success */
11429
12216
  200: {
11430
12217
  headers: {
12218
+ "x-pm-code": 1000;
11431
12219
  [name: string]: unknown;
11432
12220
  };
11433
12221
  content: {
11434
- "application/json": {
11435
- /** @enum {integer} */
11436
- Code?: 1001;
11437
- Responses?: {
11438
- ShareURLID: string;
11439
- Response: {
11440
- /** @enum {integer} */
11441
- Code: 1000 | 2501;
11442
- Error?: string;
11443
- };
11444
- }[];
11445
- };
12222
+ "application/json": components["schemas"]["VerificationData"];
11446
12223
  };
11447
12224
  };
11448
12225
  };