@protontech/drive-sdk 0.7.0 → 0.7.2

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