@finueva/drive 0.33.0 → 0.34.0

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.
@@ -1379,6 +1379,7 @@ interface operations {
1379
1379
  lifecycleRead: "s3" | "cloudflare-api" | "none";
1380
1380
  quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
1381
1381
  responseOverrides: boolean;
1382
+ sha256Composite?: boolean;
1382
1383
  sha256FullObject: boolean;
1383
1384
  sseC: boolean;
1384
1385
  /** @enum {number} */
@@ -1406,6 +1407,7 @@ interface operations {
1406
1407
  lifecycleRead: "s3" | "cloudflare-api" | "none";
1407
1408
  quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
1408
1409
  responseOverrides: boolean;
1410
+ sha256Composite?: boolean;
1409
1411
  sha256FullObject: boolean;
1410
1412
  sseC: boolean;
1411
1413
  /** @enum {number} */
@@ -1565,6 +1567,7 @@ interface operations {
1565
1567
  lifecycleRead: "s3" | "cloudflare-api" | "none";
1566
1568
  quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
1567
1569
  responseOverrides: boolean;
1570
+ sha256Composite?: boolean;
1568
1571
  sha256FullObject: boolean;
1569
1572
  sseC: boolean;
1570
1573
  /** @enum {number} */
@@ -1592,6 +1595,7 @@ interface operations {
1592
1595
  lifecycleRead: "s3" | "cloudflare-api" | "none";
1593
1596
  quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
1594
1597
  responseOverrides: boolean;
1598
+ sha256Composite?: boolean;
1595
1599
  sha256FullObject: boolean;
1596
1600
  sseC: boolean;
1597
1601
  /** @enum {number} */
@@ -1749,6 +1753,7 @@ interface operations {
1749
1753
  lifecycleRead: "s3" | "cloudflare-api" | "none";
1750
1754
  quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
1751
1755
  responseOverrides: boolean;
1756
+ sha256Composite?: boolean;
1752
1757
  sha256FullObject: boolean;
1753
1758
  sseC: boolean;
1754
1759
  /** @enum {number} */
@@ -1776,6 +1781,7 @@ interface operations {
1776
1781
  lifecycleRead: "s3" | "cloudflare-api" | "none";
1777
1782
  quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
1778
1783
  responseOverrides: boolean;
1784
+ sha256Composite?: boolean;
1779
1785
  sha256FullObject: boolean;
1780
1786
  sseC: boolean;
1781
1787
  /** @enum {number} */
@@ -1896,6 +1902,791 @@ interface operations {
1896
1902
  };
1897
1903
  };
1898
1904
  };
1905
+ getArchiveMove: {
1906
+ parameters: {
1907
+ query?: never;
1908
+ header?: never;
1909
+ path?: never;
1910
+ cookie?: never;
1911
+ };
1912
+ requestBody?: never;
1913
+ responses: {
1914
+ /** @description The latest move, or null. */
1915
+ 200: {
1916
+ headers: {
1917
+ [name: string]: unknown;
1918
+ };
1919
+ content: {
1920
+ "application/json": {
1921
+ move: {
1922
+ createdAt: number;
1923
+ failedBytes: number;
1924
+ failedVersions: number;
1925
+ finishedAt: number | null;
1926
+ lastError: string | null;
1927
+ /** Format: uuid */
1928
+ moveId: string;
1929
+ movedBytes: number;
1930
+ movedVersions: number;
1931
+ /** @enum {string|null} */
1932
+ pauseReason: "owner" | "connection_unavailable" | "bucket_unavailable" | null;
1933
+ pendingDeletions: number;
1934
+ skippedVersions: number;
1935
+ /** @enum {string} */
1936
+ state: "running" | "paused" | "cancelled" | "completed";
1937
+ totalBytes: number;
1938
+ totalVersions: number;
1939
+ updatedAt: number;
1940
+ } | null;
1941
+ };
1942
+ };
1943
+ };
1944
+ /** @description A valid Drive user credential is required. */
1945
+ 401: {
1946
+ headers: {
1947
+ [name: string]: unknown;
1948
+ };
1949
+ content: {
1950
+ "application/json": {
1951
+ error: {
1952
+ /** @enum {string} */
1953
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
1954
+ details: {
1955
+ /** @enum {string} */
1956
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
1957
+ };
1958
+ message: string;
1959
+ requestId: string;
1960
+ };
1961
+ };
1962
+ };
1963
+ };
1964
+ /** @description The caller is not an owner of the organization. */
1965
+ 403: {
1966
+ headers: {
1967
+ [name: string]: unknown;
1968
+ };
1969
+ content: {
1970
+ "application/json": {
1971
+ error: {
1972
+ /** @enum {string} */
1973
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
1974
+ details: {
1975
+ /** @enum {string} */
1976
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
1977
+ };
1978
+ message: string;
1979
+ requestId: string;
1980
+ };
1981
+ };
1982
+ };
1983
+ };
1984
+ /** @description The credential selects a personal workspace or an unavailable organization. */
1985
+ 404: {
1986
+ headers: {
1987
+ [name: string]: unknown;
1988
+ };
1989
+ content: {
1990
+ "application/json": {
1991
+ error: {
1992
+ /** @enum {string} */
1993
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
1994
+ details: {
1995
+ /** @enum {string} */
1996
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
1997
+ };
1998
+ message: string;
1999
+ requestId: string;
2000
+ };
2001
+ };
2002
+ };
2003
+ };
2004
+ /** @description Unsupported query, header or body input. */
2005
+ 422: {
2006
+ headers: {
2007
+ [name: string]: unknown;
2008
+ };
2009
+ content: {
2010
+ "application/json": {
2011
+ error: {
2012
+ /** @enum {string} */
2013
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2014
+ details: {
2015
+ /** @enum {string} */
2016
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2017
+ };
2018
+ message: string;
2019
+ requestId: string;
2020
+ };
2021
+ };
2022
+ };
2023
+ };
2024
+ /** @description Identity authority or storage is unavailable, or the connected bucket is not healthy (`archive_connection_unavailable`). */
2025
+ 503: {
2026
+ headers: {
2027
+ [name: string]: unknown;
2028
+ };
2029
+ content: {
2030
+ "application/json": {
2031
+ error: {
2032
+ /** @enum {string} */
2033
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2034
+ details: {
2035
+ /** @enum {string} */
2036
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2037
+ };
2038
+ message: string;
2039
+ requestId: string;
2040
+ };
2041
+ };
2042
+ };
2043
+ };
2044
+ };
2045
+ };
2046
+ startArchiveMove: {
2047
+ parameters: {
2048
+ query?: never;
2049
+ header?: never;
2050
+ path?: never;
2051
+ cookie?: never;
2052
+ };
2053
+ requestBody?: never;
2054
+ responses: {
2055
+ /** @description The started move. */
2056
+ 200: {
2057
+ headers: {
2058
+ [name: string]: unknown;
2059
+ };
2060
+ content: {
2061
+ "application/json": {
2062
+ move: {
2063
+ createdAt: number;
2064
+ failedBytes: number;
2065
+ failedVersions: number;
2066
+ finishedAt: number | null;
2067
+ lastError: string | null;
2068
+ /** Format: uuid */
2069
+ moveId: string;
2070
+ movedBytes: number;
2071
+ movedVersions: number;
2072
+ /** @enum {string|null} */
2073
+ pauseReason: "owner" | "connection_unavailable" | "bucket_unavailable" | null;
2074
+ pendingDeletions: number;
2075
+ skippedVersions: number;
2076
+ /** @enum {string} */
2077
+ state: "running" | "paused" | "cancelled" | "completed";
2078
+ totalBytes: number;
2079
+ totalVersions: number;
2080
+ updatedAt: number;
2081
+ } | null;
2082
+ };
2083
+ };
2084
+ };
2085
+ /** @description A valid Drive user credential is required. */
2086
+ 401: {
2087
+ headers: {
2088
+ [name: string]: unknown;
2089
+ };
2090
+ content: {
2091
+ "application/json": {
2092
+ error: {
2093
+ /** @enum {string} */
2094
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2095
+ details: {
2096
+ /** @enum {string} */
2097
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2098
+ };
2099
+ message: string;
2100
+ requestId: string;
2101
+ };
2102
+ };
2103
+ };
2104
+ };
2105
+ /** @description The caller is not an owner of the organization. */
2106
+ 403: {
2107
+ headers: {
2108
+ [name: string]: unknown;
2109
+ };
2110
+ content: {
2111
+ "application/json": {
2112
+ error: {
2113
+ /** @enum {string} */
2114
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2115
+ details: {
2116
+ /** @enum {string} */
2117
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2118
+ };
2119
+ message: string;
2120
+ requestId: string;
2121
+ };
2122
+ };
2123
+ };
2124
+ };
2125
+ /** @description The credential selects a personal workspace or an unavailable organization. */
2126
+ 404: {
2127
+ headers: {
2128
+ [name: string]: unknown;
2129
+ };
2130
+ content: {
2131
+ "application/json": {
2132
+ error: {
2133
+ /** @enum {string} */
2134
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2135
+ details: {
2136
+ /** @enum {string} */
2137
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2138
+ };
2139
+ message: string;
2140
+ requestId: string;
2141
+ };
2142
+ };
2143
+ };
2144
+ };
2145
+ /** @description Another move is unfinished. */
2146
+ 412: {
2147
+ headers: {
2148
+ [name: string]: unknown;
2149
+ };
2150
+ content: {
2151
+ "application/json": {
2152
+ error: {
2153
+ /** @enum {string} */
2154
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2155
+ details: {
2156
+ /** @enum {string} */
2157
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2158
+ };
2159
+ message: string;
2160
+ requestId: string;
2161
+ };
2162
+ };
2163
+ };
2164
+ };
2165
+ /** @description Unsupported query, header or body input. */
2166
+ 422: {
2167
+ headers: {
2168
+ [name: string]: unknown;
2169
+ };
2170
+ content: {
2171
+ "application/json": {
2172
+ error: {
2173
+ /** @enum {string} */
2174
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2175
+ details: {
2176
+ /** @enum {string} */
2177
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2178
+ };
2179
+ message: string;
2180
+ requestId: string;
2181
+ };
2182
+ };
2183
+ };
2184
+ };
2185
+ /** @description Identity authority or storage is unavailable, or the connected bucket is not healthy (`archive_connection_unavailable`). */
2186
+ 503: {
2187
+ headers: {
2188
+ [name: string]: unknown;
2189
+ };
2190
+ content: {
2191
+ "application/json": {
2192
+ error: {
2193
+ /** @enum {string} */
2194
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2195
+ details: {
2196
+ /** @enum {string} */
2197
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2198
+ };
2199
+ message: string;
2200
+ requestId: string;
2201
+ };
2202
+ };
2203
+ };
2204
+ };
2205
+ };
2206
+ };
2207
+ cancelArchiveMove: {
2208
+ parameters: {
2209
+ query?: never;
2210
+ header?: never;
2211
+ path?: never;
2212
+ cookie?: never;
2213
+ };
2214
+ requestBody?: never;
2215
+ responses: {
2216
+ /** @description The cancelled move. */
2217
+ 200: {
2218
+ headers: {
2219
+ [name: string]: unknown;
2220
+ };
2221
+ content: {
2222
+ "application/json": {
2223
+ move: {
2224
+ createdAt: number;
2225
+ failedBytes: number;
2226
+ failedVersions: number;
2227
+ finishedAt: number | null;
2228
+ lastError: string | null;
2229
+ /** Format: uuid */
2230
+ moveId: string;
2231
+ movedBytes: number;
2232
+ movedVersions: number;
2233
+ /** @enum {string|null} */
2234
+ pauseReason: "owner" | "connection_unavailable" | "bucket_unavailable" | null;
2235
+ pendingDeletions: number;
2236
+ skippedVersions: number;
2237
+ /** @enum {string} */
2238
+ state: "running" | "paused" | "cancelled" | "completed";
2239
+ totalBytes: number;
2240
+ totalVersions: number;
2241
+ updatedAt: number;
2242
+ } | null;
2243
+ };
2244
+ };
2245
+ };
2246
+ /** @description A valid Drive user credential is required. */
2247
+ 401: {
2248
+ headers: {
2249
+ [name: string]: unknown;
2250
+ };
2251
+ content: {
2252
+ "application/json": {
2253
+ error: {
2254
+ /** @enum {string} */
2255
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2256
+ details: {
2257
+ /** @enum {string} */
2258
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2259
+ };
2260
+ message: string;
2261
+ requestId: string;
2262
+ };
2263
+ };
2264
+ };
2265
+ };
2266
+ /** @description The caller is not an owner of the organization. */
2267
+ 403: {
2268
+ headers: {
2269
+ [name: string]: unknown;
2270
+ };
2271
+ content: {
2272
+ "application/json": {
2273
+ error: {
2274
+ /** @enum {string} */
2275
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2276
+ details: {
2277
+ /** @enum {string} */
2278
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2279
+ };
2280
+ message: string;
2281
+ requestId: string;
2282
+ };
2283
+ };
2284
+ };
2285
+ };
2286
+ /** @description The credential selects a personal workspace or an unavailable organization. */
2287
+ 404: {
2288
+ headers: {
2289
+ [name: string]: unknown;
2290
+ };
2291
+ content: {
2292
+ "application/json": {
2293
+ error: {
2294
+ /** @enum {string} */
2295
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2296
+ details: {
2297
+ /** @enum {string} */
2298
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2299
+ };
2300
+ message: string;
2301
+ requestId: string;
2302
+ };
2303
+ };
2304
+ };
2305
+ };
2306
+ /** @description The move is already finished or cancelled. */
2307
+ 412: {
2308
+ headers: {
2309
+ [name: string]: unknown;
2310
+ };
2311
+ content: {
2312
+ "application/json": {
2313
+ error: {
2314
+ /** @enum {string} */
2315
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2316
+ details: {
2317
+ /** @enum {string} */
2318
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2319
+ };
2320
+ message: string;
2321
+ requestId: string;
2322
+ };
2323
+ };
2324
+ };
2325
+ };
2326
+ /** @description Unsupported query, header or body input. */
2327
+ 422: {
2328
+ headers: {
2329
+ [name: string]: unknown;
2330
+ };
2331
+ content: {
2332
+ "application/json": {
2333
+ error: {
2334
+ /** @enum {string} */
2335
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2336
+ details: {
2337
+ /** @enum {string} */
2338
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2339
+ };
2340
+ message: string;
2341
+ requestId: string;
2342
+ };
2343
+ };
2344
+ };
2345
+ };
2346
+ /** @description Identity authority or storage is unavailable, or the connected bucket is not healthy (`archive_connection_unavailable`). */
2347
+ 503: {
2348
+ headers: {
2349
+ [name: string]: unknown;
2350
+ };
2351
+ content: {
2352
+ "application/json": {
2353
+ error: {
2354
+ /** @enum {string} */
2355
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2356
+ details: {
2357
+ /** @enum {string} */
2358
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2359
+ };
2360
+ message: string;
2361
+ requestId: string;
2362
+ };
2363
+ };
2364
+ };
2365
+ };
2366
+ };
2367
+ };
2368
+ pauseArchiveMove: {
2369
+ parameters: {
2370
+ query?: never;
2371
+ header?: never;
2372
+ path?: never;
2373
+ cookie?: never;
2374
+ };
2375
+ requestBody?: never;
2376
+ responses: {
2377
+ /** @description The paused move. */
2378
+ 200: {
2379
+ headers: {
2380
+ [name: string]: unknown;
2381
+ };
2382
+ content: {
2383
+ "application/json": {
2384
+ move: {
2385
+ createdAt: number;
2386
+ failedBytes: number;
2387
+ failedVersions: number;
2388
+ finishedAt: number | null;
2389
+ lastError: string | null;
2390
+ /** Format: uuid */
2391
+ moveId: string;
2392
+ movedBytes: number;
2393
+ movedVersions: number;
2394
+ /** @enum {string|null} */
2395
+ pauseReason: "owner" | "connection_unavailable" | "bucket_unavailable" | null;
2396
+ pendingDeletions: number;
2397
+ skippedVersions: number;
2398
+ /** @enum {string} */
2399
+ state: "running" | "paused" | "cancelled" | "completed";
2400
+ totalBytes: number;
2401
+ totalVersions: number;
2402
+ updatedAt: number;
2403
+ } | null;
2404
+ };
2405
+ };
2406
+ };
2407
+ /** @description A valid Drive user credential is required. */
2408
+ 401: {
2409
+ headers: {
2410
+ [name: string]: unknown;
2411
+ };
2412
+ content: {
2413
+ "application/json": {
2414
+ error: {
2415
+ /** @enum {string} */
2416
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2417
+ details: {
2418
+ /** @enum {string} */
2419
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2420
+ };
2421
+ message: string;
2422
+ requestId: string;
2423
+ };
2424
+ };
2425
+ };
2426
+ };
2427
+ /** @description The caller is not an owner of the organization. */
2428
+ 403: {
2429
+ headers: {
2430
+ [name: string]: unknown;
2431
+ };
2432
+ content: {
2433
+ "application/json": {
2434
+ error: {
2435
+ /** @enum {string} */
2436
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2437
+ details: {
2438
+ /** @enum {string} */
2439
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2440
+ };
2441
+ message: string;
2442
+ requestId: string;
2443
+ };
2444
+ };
2445
+ };
2446
+ };
2447
+ /** @description The credential selects a personal workspace or an unavailable organization. */
2448
+ 404: {
2449
+ headers: {
2450
+ [name: string]: unknown;
2451
+ };
2452
+ content: {
2453
+ "application/json": {
2454
+ error: {
2455
+ /** @enum {string} */
2456
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2457
+ details: {
2458
+ /** @enum {string} */
2459
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2460
+ };
2461
+ message: string;
2462
+ requestId: string;
2463
+ };
2464
+ };
2465
+ };
2466
+ };
2467
+ /** @description The move is not running. */
2468
+ 412: {
2469
+ headers: {
2470
+ [name: string]: unknown;
2471
+ };
2472
+ content: {
2473
+ "application/json": {
2474
+ error: {
2475
+ /** @enum {string} */
2476
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2477
+ details: {
2478
+ /** @enum {string} */
2479
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2480
+ };
2481
+ message: string;
2482
+ requestId: string;
2483
+ };
2484
+ };
2485
+ };
2486
+ };
2487
+ /** @description Unsupported query, header or body input. */
2488
+ 422: {
2489
+ headers: {
2490
+ [name: string]: unknown;
2491
+ };
2492
+ content: {
2493
+ "application/json": {
2494
+ error: {
2495
+ /** @enum {string} */
2496
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2497
+ details: {
2498
+ /** @enum {string} */
2499
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2500
+ };
2501
+ message: string;
2502
+ requestId: string;
2503
+ };
2504
+ };
2505
+ };
2506
+ };
2507
+ /** @description Identity authority or storage is unavailable, or the connected bucket is not healthy (`archive_connection_unavailable`). */
2508
+ 503: {
2509
+ headers: {
2510
+ [name: string]: unknown;
2511
+ };
2512
+ content: {
2513
+ "application/json": {
2514
+ error: {
2515
+ /** @enum {string} */
2516
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2517
+ details: {
2518
+ /** @enum {string} */
2519
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2520
+ };
2521
+ message: string;
2522
+ requestId: string;
2523
+ };
2524
+ };
2525
+ };
2526
+ };
2527
+ };
2528
+ };
2529
+ resumeArchiveMove: {
2530
+ parameters: {
2531
+ query?: never;
2532
+ header?: never;
2533
+ path?: never;
2534
+ cookie?: never;
2535
+ };
2536
+ requestBody?: never;
2537
+ responses: {
2538
+ /** @description The running move. */
2539
+ 200: {
2540
+ headers: {
2541
+ [name: string]: unknown;
2542
+ };
2543
+ content: {
2544
+ "application/json": {
2545
+ move: {
2546
+ createdAt: number;
2547
+ failedBytes: number;
2548
+ failedVersions: number;
2549
+ finishedAt: number | null;
2550
+ lastError: string | null;
2551
+ /** Format: uuid */
2552
+ moveId: string;
2553
+ movedBytes: number;
2554
+ movedVersions: number;
2555
+ /** @enum {string|null} */
2556
+ pauseReason: "owner" | "connection_unavailable" | "bucket_unavailable" | null;
2557
+ pendingDeletions: number;
2558
+ skippedVersions: number;
2559
+ /** @enum {string} */
2560
+ state: "running" | "paused" | "cancelled" | "completed";
2561
+ totalBytes: number;
2562
+ totalVersions: number;
2563
+ updatedAt: number;
2564
+ } | null;
2565
+ };
2566
+ };
2567
+ };
2568
+ /** @description A valid Drive user credential is required. */
2569
+ 401: {
2570
+ headers: {
2571
+ [name: string]: unknown;
2572
+ };
2573
+ content: {
2574
+ "application/json": {
2575
+ error: {
2576
+ /** @enum {string} */
2577
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2578
+ details: {
2579
+ /** @enum {string} */
2580
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2581
+ };
2582
+ message: string;
2583
+ requestId: string;
2584
+ };
2585
+ };
2586
+ };
2587
+ };
2588
+ /** @description The caller is not an owner of the organization. */
2589
+ 403: {
2590
+ headers: {
2591
+ [name: string]: unknown;
2592
+ };
2593
+ content: {
2594
+ "application/json": {
2595
+ error: {
2596
+ /** @enum {string} */
2597
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2598
+ details: {
2599
+ /** @enum {string} */
2600
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2601
+ };
2602
+ message: string;
2603
+ requestId: string;
2604
+ };
2605
+ };
2606
+ };
2607
+ };
2608
+ /** @description The credential selects a personal workspace or an unavailable organization. */
2609
+ 404: {
2610
+ headers: {
2611
+ [name: string]: unknown;
2612
+ };
2613
+ content: {
2614
+ "application/json": {
2615
+ error: {
2616
+ /** @enum {string} */
2617
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2618
+ details: {
2619
+ /** @enum {string} */
2620
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2621
+ };
2622
+ message: string;
2623
+ requestId: string;
2624
+ };
2625
+ };
2626
+ };
2627
+ };
2628
+ /** @description The move is finished or cancelled. */
2629
+ 412: {
2630
+ headers: {
2631
+ [name: string]: unknown;
2632
+ };
2633
+ content: {
2634
+ "application/json": {
2635
+ error: {
2636
+ /** @enum {string} */
2637
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2638
+ details: {
2639
+ /** @enum {string} */
2640
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2641
+ };
2642
+ message: string;
2643
+ requestId: string;
2644
+ };
2645
+ };
2646
+ };
2647
+ };
2648
+ /** @description Unsupported query, header or body input. */
2649
+ 422: {
2650
+ headers: {
2651
+ [name: string]: unknown;
2652
+ };
2653
+ content: {
2654
+ "application/json": {
2655
+ error: {
2656
+ /** @enum {string} */
2657
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2658
+ details: {
2659
+ /** @enum {string} */
2660
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2661
+ };
2662
+ message: string;
2663
+ requestId: string;
2664
+ };
2665
+ };
2666
+ };
2667
+ };
2668
+ /** @description Identity authority or storage is unavailable, or the connected bucket is not healthy (`archive_connection_unavailable`). */
2669
+ 503: {
2670
+ headers: {
2671
+ [name: string]: unknown;
2672
+ };
2673
+ content: {
2674
+ "application/json": {
2675
+ error: {
2676
+ /** @enum {string} */
2677
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
2678
+ details: {
2679
+ /** @enum {string} */
2680
+ reason?: "archive_connection_unavailable" | "archive_move_in_progress";
2681
+ };
2682
+ message: string;
2683
+ requestId: string;
2684
+ };
2685
+ };
2686
+ };
2687
+ };
2688
+ };
2689
+ };
1899
2690
  recheckArchiveConnection: {
1900
2691
  parameters: {
1901
2692
  query?: never;
@@ -1933,6 +2724,7 @@ interface operations {
1933
2724
  lifecycleRead: "s3" | "cloudflare-api" | "none";
1934
2725
  quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
1935
2726
  responseOverrides: boolean;
2727
+ sha256Composite?: boolean;
1936
2728
  sha256FullObject: boolean;
1937
2729
  sseC: boolean;
1938
2730
  /** @enum {number} */
@@ -1960,6 +2752,7 @@ interface operations {
1960
2752
  lifecycleRead: "s3" | "cloudflare-api" | "none";
1961
2753
  quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
1962
2754
  responseOverrides: boolean;
2755
+ sha256Composite?: boolean;
1963
2756
  sha256FullObject: boolean;
1964
2757
  sseC: boolean;
1965
2758
  /** @enum {number} */
@@ -2136,6 +2929,7 @@ interface operations {
2136
2929
  lifecycleRead: "s3" | "cloudflare-api" | "none";
2137
2930
  quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
2138
2931
  responseOverrides: boolean;
2932
+ sha256Composite?: boolean;
2139
2933
  sha256FullObject: boolean;
2140
2934
  sseC: boolean;
2141
2935
  /** @enum {number} */
@@ -10746,6 +11540,26 @@ type ArchiveConnection = Readonly<Omit<GeneratedArchiveConnection, "report"> & {
10746
11540
  type ArchiveConnectionRead = Readonly<{
10747
11541
  connection: ArchiveConnection | null;
10748
11542
  }>;
11543
+ interface ArchiveMove {
11544
+ readonly moveId: string;
11545
+ readonly state: "running" | "paused" | "cancelled" | "completed";
11546
+ readonly pauseReason: "owner" | "connection_unavailable" | "bucket_unavailable" | null;
11547
+ readonly lastError: string | null;
11548
+ readonly totalVersions: number;
11549
+ readonly totalBytes: number;
11550
+ readonly movedVersions: number;
11551
+ readonly movedBytes: number;
11552
+ readonly failedVersions: number;
11553
+ readonly failedBytes: number;
11554
+ readonly skippedVersions: number;
11555
+ readonly pendingDeletions: number;
11556
+ readonly createdAt: number;
11557
+ readonly updatedAt: number;
11558
+ readonly finishedAt: number | null;
11559
+ }
11560
+ type ArchiveMoveRead = Readonly<{
11561
+ move: ArchiveMove | null;
11562
+ }>;
10749
11563
  /** Field errors (and no report) for an invalid form, or the probe report (and no errors). Nothing is stored. */
10750
11564
  type ArchiveConnectionTest = Readonly<Omit<JsonResponse<"testArchiveConnection", 200>, "report"> & {
10751
11565
  report: ArchiveProbeReport | null;
@@ -11081,6 +11895,11 @@ interface DriveOperations {
11081
11895
  updateWorkspaceLinkPolicy(input: UpdateWorkspaceLinkPolicyInput): Promise<DriveOperationResult<WorkspaceLinkPolicy, 200>>;
11082
11896
  /** Present from SDK 0.33. Organization owners only. */
11083
11897
  getArchiveConnection(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<ArchiveConnectionRead, 200>>;
11898
+ getArchiveMove(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<ArchiveMoveRead, 200>>;
11899
+ startArchiveMove(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<ArchiveMoveRead, 200>>;
11900
+ pauseArchiveMove(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<ArchiveMoveRead, 200>>;
11901
+ resumeArchiveMove(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<ArchiveMoveRead, 200>>;
11902
+ cancelArchiveMove(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<ArchiveMoveRead, 200>>;
11084
11903
  /** Present from SDK 0.33. Probes the bucket without saving anything. Organization owners only. */
11085
11904
  testArchiveConnection(input: ArchiveConnectionInput): Promise<DriveOperationResult<ArchiveConnectionTest, 200>>;
11086
11905
  /** Present from SDK 0.33. Re-probes, then connects a bucket or replaces its keys. Organization owners only. */
@@ -11181,4 +12000,4 @@ interface DriveClient extends DriveOperations, VerifiedTransferOperations {
11181
12000
  uploadVerifiedFile(input: UploadVerifiedFileInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
11182
12001
  }
11183
12002
  //#endregion
11184
- export { GetItemInput as $, RestoreItemVersionInput as $t, DriveCredentialProvider as A, WorkspaceCount as An, ManagedLifecycleItem as At, DriveVisitorClient as B, operations as Bn, PrepareVerifiedTransferInput as Bt, CurrentWorkspaceSources as C, VisitorEditingSession as Cn, ManagedDownloadDescriptor as Ct, DriveClient as D, VisitorItem as Dn, ManagedItemVersionPage as Dt, DownloadItemResult as E, VisitorGrantPage as En, ManagedItemVersion as Et, DriveOperations as F, WorkspaceItemSearchItem as Fn, PermissionAction as Ft, EffectivePermissionResponse as G, ReadEffectiveItemPermissionsInput as Gt, EditingSession as H, ProtectionClassification as Ht, DriveResponseValidators as I, WorkspaceItemSearchPage as In, PermissionGrant as It, FolderListInclude as J, RegisterItemRecipientsInput as Jt, FileAccessContext as K, RecoverVerifiedTransferInput as Kt, DriveServerClient as L, WorkspaceLinkPolicy as Ln, PermissionGrantee as Lt, DriveEditingClientConfig as M, WorkspaceCountsInput as Mn, OrganizationMemberStorageUsageInput as Mt, DriveEditingServerClient as N, WorkspaceDiscoveryItem as Nn, OwnedItem as Nt, DriveClientConfig as O, VisitorReadInput as On, ManagedItemVersionResource as Ot, DriveOperationResult as P, WorkspaceDiscoveryPage as Pn, OwnedItemPage as Pt, GetItemGeneralAccessInput as Q, RestoreItemInput as Qt, DriveServerClientConfig as R, WorkspaceSharingPolicy as Rn, PermissionMutation as Rt, CurrentWorkspace as S, VisitorDownloadInput as Sn, ListWorkspaceItemsInput as St, DeleteItemInput as T, VisitorGrantCreation as Tn, ManagedItemMetadata as Tt, EditingSessionCreation as U, PublishVerifiedTransferInput as Ut, DriveVisitorClientConfig as V, PreparedVerifiedTransfer as Vt, EffectivePermissionAction as W, PublishedVerifiedTransfer as Wt, FolderPage as X, RenditionDescriptor as Xt, FolderListedItem as Y, RegisteredRecipientDisplay as Yt, GetCurrentWorkspaceInput as Z, RenditionDescriptorBatch as Zt, CreateRenditionDescriptorInput as _, UploadSmallVerifiedFileInput as _n, ListIncomingSharesInput as _t, ArchiveConnectionRead as a, TransferItemOwnershipInput as an, IncomingShareContext as at, CreateVisitorGrantInput as b, VisitorChildren as bn, ListItemVersionsInput as bt, ArchiveProbeReport as c, UpdateItemGeneralAccessInput as cn, ItemGeneralAccess as ct, CollectOwnedItemsInput as d, UpdateWorkspaceLinkPolicyInput as dn, ItemSharingBatch as dt, RevokeItemPermissionInput as en, GetItemVersionInput as et, CollectedOwnedItems as f, UpdateWorkspaceSharingPolicyInput as fn, ItemSharingBatchResult as ft, CreateItemPermissionInput as g, UploadFileStage as gn, ListIncomingItemsInput as gt, CreateFolderInput as h, UploadFileProgressCallback as hn, ListFolderChildrenInput as ht, ArchiveConnectionInput as i, StarItemInput as in, IncomingItemPage as it, DriveEditingClient as j, WorkspaceCounts as jn, OrganizationMemberStorageUsage as jt, DriveCredentialContext as k, VisitorSession as kn, ManagedItemVersionRestoreResult as kt, ArchivedItem as l, UpdateItemInput as ln, ItemOwnershipTransfer as lt, CreateEditingSessionInput as m, UploadFileProgress as mn, ListFavoriteItemsInput as mt, ArchiveCapabilityProfile as n, SaveArchiveConnectionInput as nn, GetWorkspaceUsageInput as nt, ArchiveConnectionTest as o, TrashItemInput as on, IncomingSharePage as ot, CreateDownloadInput as p, UploadFilePhase as pn, ItemSharingPeoplePage as pt, FolderItem as q, RegisterItemRecipientInput as qt, ArchiveConnection as r, SearchWorkspaceItemsInput as rn, IncomingItemMetadata as rt, ArchiveItemInput as s, UnstarItemInput as sn, ItemFavorite as st, AdmittedVerifiedTransfer as t, RevokeVisitorGrantInput as tn, GetVisitorGrantInput as tt, ChangeEditingSessionInput as u, UpdateItemPermissionInput as un, ItemRecipientBatchEntry as ut, CreateRenditionDescriptorsInput as v, UploadVerifiedFileInput as vn, ListItemPermissionsInput as vt, DeleteArchiveConnectionInput as w, VisitorGrant as wn, ManagedDownloadRestorePending as wt, CurrentUserWorkspaceUsage as x, VisitorChildrenInput as xn, ListOwnedItemsInput as xt, CreateVisitorEditingSessionInput as y, VerifiedTransferOperations as yn, ListItemSharingPeopleInput as yt, DriveUploadConfig as z, WorkspaceUsage as zn, PermissionPage as zt };
12003
+ export { GetCurrentWorkspaceInput as $, RenditionDescriptorBatch as $t, DriveClientConfig as A, VisitorReadInput as An, ManagedItemVersionResource as At, DriveServerClientConfig as B, WorkspaceSharingPolicy as Bn, PermissionMutation as Bt, CurrentUserWorkspaceUsage as C, VisitorChildrenInput as Cn, ListOwnedItemsInput as Ct, DeleteItemInput as D, VisitorGrantCreation as Dn, ManagedItemMetadata as Dt, DeleteArchiveConnectionInput as E, VisitorGrant as En, ManagedDownloadRestorePending as Et, DriveEditingServerClient as F, WorkspaceDiscoveryItem as Fn, OwnedItem as Ft, EditingSessionCreation as G, PublishVerifiedTransferInput as Gt, DriveVisitorClient as H, operations as Hn, PrepareVerifiedTransferInput as Ht, DriveOperationResult as I, WorkspaceDiscoveryPage as In, OwnedItemPage as It, FileAccessContext as J, RecoverVerifiedTransferInput as Jt, EffectivePermissionAction as K, PublishedVerifiedTransfer as Kt, DriveOperations as L, WorkspaceItemSearchItem as Ln, PermissionAction as Lt, DriveCredentialProvider as M, WorkspaceCount as Mn, ManagedLifecycleItem as Mt, DriveEditingClient as N, WorkspaceCounts as Nn, OrganizationMemberStorageUsage as Nt, DownloadItemResult as O, VisitorGrantPage as On, ManagedItemVersion as Ot, DriveEditingClientConfig as P, WorkspaceCountsInput as Pn, OrganizationMemberStorageUsageInput as Pt, FolderPage as Q, RenditionDescriptor as Qt, DriveResponseValidators as R, WorkspaceItemSearchPage as Rn, PermissionGrant as Rt, CreateVisitorGrantInput as S, VisitorChildren as Sn, ListItemVersionsInput as St, CurrentWorkspaceSources as T, VisitorEditingSession as Tn, ManagedDownloadDescriptor as Tt, DriveVisitorClientConfig as U, PreparedVerifiedTransfer as Ut, DriveUploadConfig as V, WorkspaceUsage as Vn, PermissionPage as Vt, EditingSession as W, ProtectionClassification as Wt, FolderListInclude as X, RegisterItemRecipientsInput as Xt, FolderItem as Y, RegisterItemRecipientInput as Yt, FolderListedItem as Z, RegisteredRecipientDisplay as Zt, CreateFolderInput as _, UploadFileProgressCallback as _n, ListFolderChildrenInput as _t, ArchiveConnectionRead as a, SearchWorkspaceItemsInput as an, IncomingItemMetadata as at, CreateRenditionDescriptorsInput as b, UploadVerifiedFileInput as bn, ListItemPermissionsInput as bt, ArchiveMove as c, TrashItemInput as cn, IncomingSharePage as ct, ArchivedItem as d, UpdateItemInput as dn, ItemOwnershipTransfer as dt, RestoreItemInput as en, GetItemGeneralAccessInput as et, ChangeEditingSessionInput as f, UpdateItemPermissionInput as fn, ItemRecipientBatchEntry as ft, CreateEditingSessionInput as g, UploadFileProgress as gn, ListFavoriteItemsInput as gt, CreateDownloadInput as h, UploadFilePhase as hn, ItemSharingPeoplePage as ht, ArchiveConnectionInput as i, SaveArchiveConnectionInput as in, GetWorkspaceUsageInput as it, DriveCredentialContext as j, VisitorSession as jn, ManagedItemVersionRestoreResult as jt, DriveClient as k, VisitorItem as kn, ManagedItemVersionPage as kt, ArchiveMoveRead as l, UnstarItemInput as ln, ItemFavorite as lt, CollectedOwnedItems as m, UpdateWorkspaceSharingPolicyInput as mn, ItemSharingBatchResult as mt, ArchiveCapabilityProfile as n, RevokeItemPermissionInput as nn, GetItemVersionInput as nt, ArchiveConnectionTest as o, StarItemInput as on, IncomingItemPage as ot, CollectOwnedItemsInput as p, UpdateWorkspaceLinkPolicyInput as pn, ItemSharingBatch as pt, EffectivePermissionResponse as q, ReadEffectiveItemPermissionsInput as qt, ArchiveConnection as r, RevokeVisitorGrantInput as rn, GetVisitorGrantInput as rt, ArchiveItemInput as s, TransferItemOwnershipInput as sn, IncomingShareContext as st, AdmittedVerifiedTransfer as t, RestoreItemVersionInput as tn, GetItemInput as tt, ArchiveProbeReport as u, UpdateItemGeneralAccessInput as un, ItemGeneralAccess as ut, CreateItemPermissionInput as v, UploadFileStage as vn, ListIncomingItemsInput as vt, CurrentWorkspace as w, VisitorDownloadInput as wn, ListWorkspaceItemsInput as wt, CreateVisitorEditingSessionInput as x, VerifiedTransferOperations as xn, ListItemSharingPeopleInput as xt, CreateRenditionDescriptorInput as y, UploadSmallVerifiedFileInput as yn, ListIncomingSharesInput as yt, DriveServerClient as z, WorkspaceLinkPolicy as zn, PermissionGrantee as zt };