@finueva/drive 0.32.1 → 0.33.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.
- package/CHANGELOG.md +10 -0
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/contract.d.ts +958 -1
- package/dist/contract2.d.ts +1 -1
- package/dist/contract3.d.ts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1 -1
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/contract.d.ts
CHANGED
|
@@ -1342,6 +1342,898 @@ interface operations {
|
|
|
1342
1342
|
};
|
|
1343
1343
|
};
|
|
1344
1344
|
};
|
|
1345
|
+
getArchiveConnection: {
|
|
1346
|
+
parameters: {
|
|
1347
|
+
query?: never;
|
|
1348
|
+
header?: never;
|
|
1349
|
+
path?: never;
|
|
1350
|
+
cookie?: never;
|
|
1351
|
+
};
|
|
1352
|
+
requestBody?: never;
|
|
1353
|
+
responses: {
|
|
1354
|
+
/** @description The connection, or null. */
|
|
1355
|
+
200: {
|
|
1356
|
+
headers: {
|
|
1357
|
+
/** @description Connection revision for If-Match. */
|
|
1358
|
+
ETag?: string;
|
|
1359
|
+
[name: string]: unknown;
|
|
1360
|
+
};
|
|
1361
|
+
content: {
|
|
1362
|
+
"application/json": {
|
|
1363
|
+
connection: {
|
|
1364
|
+
accessKeyHint: string;
|
|
1365
|
+
/** @enum {string} */
|
|
1366
|
+
addressingMode: "path" | "virtual-hosted";
|
|
1367
|
+
bucket: string;
|
|
1368
|
+
checkedAt: number;
|
|
1369
|
+
/** Format: uuid */
|
|
1370
|
+
connectionId: string;
|
|
1371
|
+
createdAt: number;
|
|
1372
|
+
endpoint: string;
|
|
1373
|
+
hasCloudflareApiToken: boolean;
|
|
1374
|
+
prefix: string;
|
|
1375
|
+
profile: {
|
|
1376
|
+
conditionalCreate: boolean;
|
|
1377
|
+
cors: boolean;
|
|
1378
|
+
/** @enum {string} */
|
|
1379
|
+
lifecycleRead: "s3" | "cloudflare-api" | "none";
|
|
1380
|
+
quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
|
|
1381
|
+
responseOverrides: boolean;
|
|
1382
|
+
sha256FullObject: boolean;
|
|
1383
|
+
sseC: boolean;
|
|
1384
|
+
/** @enum {number} */
|
|
1385
|
+
version: 1;
|
|
1386
|
+
};
|
|
1387
|
+
/** @enum {string} */
|
|
1388
|
+
provider: "s3" | "r2";
|
|
1389
|
+
region: string;
|
|
1390
|
+
report: {
|
|
1391
|
+
bindable: boolean;
|
|
1392
|
+
checkedAt: number;
|
|
1393
|
+
checks: {
|
|
1394
|
+
detail?: string;
|
|
1395
|
+
explanation: string;
|
|
1396
|
+
/** @enum {string} */
|
|
1397
|
+
id: "access" | "write" | "read" | "range" | "if-match" | "empty-object" | "multipart" | "conditional-create" | "sha256" | "sse-c" | "response-overrides" | "cors" | "lifecycle" | "cleanup";
|
|
1398
|
+
/** @enum {string} */
|
|
1399
|
+
outcome: "pass" | "fail" | "skipped";
|
|
1400
|
+
required: boolean;
|
|
1401
|
+
}[];
|
|
1402
|
+
profile: {
|
|
1403
|
+
conditionalCreate: boolean;
|
|
1404
|
+
cors: boolean;
|
|
1405
|
+
/** @enum {string} */
|
|
1406
|
+
lifecycleRead: "s3" | "cloudflare-api" | "none";
|
|
1407
|
+
quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
|
|
1408
|
+
responseOverrides: boolean;
|
|
1409
|
+
sha256FullObject: boolean;
|
|
1410
|
+
sseC: boolean;
|
|
1411
|
+
/** @enum {number} */
|
|
1412
|
+
version: 1;
|
|
1413
|
+
} & unknown;
|
|
1414
|
+
/** @enum {number} */
|
|
1415
|
+
version: 1;
|
|
1416
|
+
};
|
|
1417
|
+
revision: number;
|
|
1418
|
+
/** @enum {string} */
|
|
1419
|
+
status: "healthy" | "degraded" | "failing";
|
|
1420
|
+
updatedAt: number;
|
|
1421
|
+
} | null;
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
};
|
|
1425
|
+
/** @description A valid Drive user credential is required. */
|
|
1426
|
+
401: {
|
|
1427
|
+
headers: {
|
|
1428
|
+
[name: string]: unknown;
|
|
1429
|
+
};
|
|
1430
|
+
content: {
|
|
1431
|
+
"application/json": {
|
|
1432
|
+
error: {
|
|
1433
|
+
/** @enum {string} */
|
|
1434
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1435
|
+
details: Record<string, never>;
|
|
1436
|
+
message: string;
|
|
1437
|
+
requestId: string;
|
|
1438
|
+
};
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
};
|
|
1442
|
+
/** @description The caller is not an owner of the organization. */
|
|
1443
|
+
403: {
|
|
1444
|
+
headers: {
|
|
1445
|
+
[name: string]: unknown;
|
|
1446
|
+
};
|
|
1447
|
+
content: {
|
|
1448
|
+
"application/json": {
|
|
1449
|
+
error: {
|
|
1450
|
+
/** @enum {string} */
|
|
1451
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1452
|
+
details: Record<string, never>;
|
|
1453
|
+
message: string;
|
|
1454
|
+
requestId: string;
|
|
1455
|
+
};
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
/** @description The credential selects a personal workspace or an unavailable organization. */
|
|
1460
|
+
404: {
|
|
1461
|
+
headers: {
|
|
1462
|
+
[name: string]: unknown;
|
|
1463
|
+
};
|
|
1464
|
+
content: {
|
|
1465
|
+
"application/json": {
|
|
1466
|
+
error: {
|
|
1467
|
+
/** @enum {string} */
|
|
1468
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1469
|
+
details: Record<string, never>;
|
|
1470
|
+
message: string;
|
|
1471
|
+
requestId: string;
|
|
1472
|
+
};
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
/** @description Unsupported query, header or body input. */
|
|
1477
|
+
422: {
|
|
1478
|
+
headers: {
|
|
1479
|
+
[name: string]: unknown;
|
|
1480
|
+
};
|
|
1481
|
+
content: {
|
|
1482
|
+
"application/json": {
|
|
1483
|
+
error: {
|
|
1484
|
+
/** @enum {string} */
|
|
1485
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1486
|
+
details: Record<string, never>;
|
|
1487
|
+
message: string;
|
|
1488
|
+
requestId: string;
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
/** @description Identity authority, storage or connection keys are unavailable. */
|
|
1494
|
+
503: {
|
|
1495
|
+
headers: {
|
|
1496
|
+
[name: string]: unknown;
|
|
1497
|
+
};
|
|
1498
|
+
content: {
|
|
1499
|
+
"application/json": {
|
|
1500
|
+
error: {
|
|
1501
|
+
/** @enum {string} */
|
|
1502
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1503
|
+
details: Record<string, never>;
|
|
1504
|
+
message: string;
|
|
1505
|
+
requestId: string;
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
saveArchiveConnection: {
|
|
1513
|
+
parameters: {
|
|
1514
|
+
query?: never;
|
|
1515
|
+
header?: {
|
|
1516
|
+
"If-Match"?: string;
|
|
1517
|
+
"If-None-Match"?: string;
|
|
1518
|
+
};
|
|
1519
|
+
path?: never;
|
|
1520
|
+
cookie?: never;
|
|
1521
|
+
};
|
|
1522
|
+
requestBody: {
|
|
1523
|
+
content: {
|
|
1524
|
+
"application/json": {
|
|
1525
|
+
accessKeyId: string;
|
|
1526
|
+
/** @enum {string} */
|
|
1527
|
+
addressingMode: "path" | "virtual-hosted";
|
|
1528
|
+
bucket: string;
|
|
1529
|
+
cloudflareApiToken?: string;
|
|
1530
|
+
endpoint: string;
|
|
1531
|
+
prefix: string;
|
|
1532
|
+
/** @enum {string} */
|
|
1533
|
+
provider: "s3" | "r2";
|
|
1534
|
+
region: string;
|
|
1535
|
+
secretAccessKey: string;
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
};
|
|
1539
|
+
responses: {
|
|
1540
|
+
/** @description The saved connection. */
|
|
1541
|
+
200: {
|
|
1542
|
+
headers: {
|
|
1543
|
+
/** @description Connection revision for If-Match. */
|
|
1544
|
+
ETag?: string;
|
|
1545
|
+
[name: string]: unknown;
|
|
1546
|
+
};
|
|
1547
|
+
content: {
|
|
1548
|
+
"application/json": {
|
|
1549
|
+
connection: {
|
|
1550
|
+
accessKeyHint: string;
|
|
1551
|
+
/** @enum {string} */
|
|
1552
|
+
addressingMode: "path" | "virtual-hosted";
|
|
1553
|
+
bucket: string;
|
|
1554
|
+
checkedAt: number;
|
|
1555
|
+
/** Format: uuid */
|
|
1556
|
+
connectionId: string;
|
|
1557
|
+
createdAt: number;
|
|
1558
|
+
endpoint: string;
|
|
1559
|
+
hasCloudflareApiToken: boolean;
|
|
1560
|
+
prefix: string;
|
|
1561
|
+
profile: {
|
|
1562
|
+
conditionalCreate: boolean;
|
|
1563
|
+
cors: boolean;
|
|
1564
|
+
/** @enum {string} */
|
|
1565
|
+
lifecycleRead: "s3" | "cloudflare-api" | "none";
|
|
1566
|
+
quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
|
|
1567
|
+
responseOverrides: boolean;
|
|
1568
|
+
sha256FullObject: boolean;
|
|
1569
|
+
sseC: boolean;
|
|
1570
|
+
/** @enum {number} */
|
|
1571
|
+
version: 1;
|
|
1572
|
+
};
|
|
1573
|
+
/** @enum {string} */
|
|
1574
|
+
provider: "s3" | "r2";
|
|
1575
|
+
region: string;
|
|
1576
|
+
report: {
|
|
1577
|
+
bindable: boolean;
|
|
1578
|
+
checkedAt: number;
|
|
1579
|
+
checks: {
|
|
1580
|
+
detail?: string;
|
|
1581
|
+
explanation: string;
|
|
1582
|
+
/** @enum {string} */
|
|
1583
|
+
id: "access" | "write" | "read" | "range" | "if-match" | "empty-object" | "multipart" | "conditional-create" | "sha256" | "sse-c" | "response-overrides" | "cors" | "lifecycle" | "cleanup";
|
|
1584
|
+
/** @enum {string} */
|
|
1585
|
+
outcome: "pass" | "fail" | "skipped";
|
|
1586
|
+
required: boolean;
|
|
1587
|
+
}[];
|
|
1588
|
+
profile: {
|
|
1589
|
+
conditionalCreate: boolean;
|
|
1590
|
+
cors: boolean;
|
|
1591
|
+
/** @enum {string} */
|
|
1592
|
+
lifecycleRead: "s3" | "cloudflare-api" | "none";
|
|
1593
|
+
quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
|
|
1594
|
+
responseOverrides: boolean;
|
|
1595
|
+
sha256FullObject: boolean;
|
|
1596
|
+
sseC: boolean;
|
|
1597
|
+
/** @enum {number} */
|
|
1598
|
+
version: 1;
|
|
1599
|
+
} & unknown;
|
|
1600
|
+
/** @enum {number} */
|
|
1601
|
+
version: 1;
|
|
1602
|
+
};
|
|
1603
|
+
revision: number;
|
|
1604
|
+
/** @enum {string} */
|
|
1605
|
+
status: "healthy" | "degraded" | "failing";
|
|
1606
|
+
updatedAt: number;
|
|
1607
|
+
} | null;
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
1611
|
+
/** @description A valid Drive user credential is required. */
|
|
1612
|
+
401: {
|
|
1613
|
+
headers: {
|
|
1614
|
+
[name: string]: unknown;
|
|
1615
|
+
};
|
|
1616
|
+
content: {
|
|
1617
|
+
"application/json": {
|
|
1618
|
+
error: {
|
|
1619
|
+
/** @enum {string} */
|
|
1620
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1621
|
+
details: Record<string, never>;
|
|
1622
|
+
message: string;
|
|
1623
|
+
requestId: string;
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
};
|
|
1627
|
+
};
|
|
1628
|
+
/** @description The caller is not an owner of the organization. */
|
|
1629
|
+
403: {
|
|
1630
|
+
headers: {
|
|
1631
|
+
[name: string]: unknown;
|
|
1632
|
+
};
|
|
1633
|
+
content: {
|
|
1634
|
+
"application/json": {
|
|
1635
|
+
error: {
|
|
1636
|
+
/** @enum {string} */
|
|
1637
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1638
|
+
details: Record<string, never>;
|
|
1639
|
+
message: string;
|
|
1640
|
+
requestId: string;
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
/** @description The credential selects a personal workspace or an unavailable organization. */
|
|
1646
|
+
404: {
|
|
1647
|
+
headers: {
|
|
1648
|
+
[name: string]: unknown;
|
|
1649
|
+
};
|
|
1650
|
+
content: {
|
|
1651
|
+
"application/json": {
|
|
1652
|
+
error: {
|
|
1653
|
+
/** @enum {string} */
|
|
1654
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1655
|
+
details: Record<string, never>;
|
|
1656
|
+
message: string;
|
|
1657
|
+
requestId: string;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
/** @description The connection changed, already exists, or does not exist. */
|
|
1663
|
+
412: {
|
|
1664
|
+
headers: {
|
|
1665
|
+
[name: string]: unknown;
|
|
1666
|
+
};
|
|
1667
|
+
content: {
|
|
1668
|
+
"application/json": {
|
|
1669
|
+
error: {
|
|
1670
|
+
/** @enum {string} */
|
|
1671
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1672
|
+
details: Record<string, never>;
|
|
1673
|
+
message: string;
|
|
1674
|
+
requestId: string;
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
/** @description Unsupported query, header or body input. */
|
|
1680
|
+
422: {
|
|
1681
|
+
headers: {
|
|
1682
|
+
[name: string]: unknown;
|
|
1683
|
+
};
|
|
1684
|
+
content: {
|
|
1685
|
+
"application/json": {
|
|
1686
|
+
error: {
|
|
1687
|
+
/** @enum {string} */
|
|
1688
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1689
|
+
details: Record<string, never>;
|
|
1690
|
+
message: string;
|
|
1691
|
+
requestId: string;
|
|
1692
|
+
};
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
};
|
|
1696
|
+
/** @description Identity authority, storage or connection keys are unavailable. */
|
|
1697
|
+
503: {
|
|
1698
|
+
headers: {
|
|
1699
|
+
[name: string]: unknown;
|
|
1700
|
+
};
|
|
1701
|
+
content: {
|
|
1702
|
+
"application/json": {
|
|
1703
|
+
error: {
|
|
1704
|
+
/** @enum {string} */
|
|
1705
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1706
|
+
details: Record<string, never>;
|
|
1707
|
+
message: string;
|
|
1708
|
+
requestId: string;
|
|
1709
|
+
};
|
|
1710
|
+
};
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1714
|
+
};
|
|
1715
|
+
deleteArchiveConnection: {
|
|
1716
|
+
parameters: {
|
|
1717
|
+
query?: never;
|
|
1718
|
+
header?: {
|
|
1719
|
+
"If-Match"?: string;
|
|
1720
|
+
};
|
|
1721
|
+
path?: never;
|
|
1722
|
+
cookie?: never;
|
|
1723
|
+
};
|
|
1724
|
+
requestBody?: never;
|
|
1725
|
+
responses: {
|
|
1726
|
+
/** @description Disconnected. */
|
|
1727
|
+
200: {
|
|
1728
|
+
headers: {
|
|
1729
|
+
[name: string]: unknown;
|
|
1730
|
+
};
|
|
1731
|
+
content: {
|
|
1732
|
+
"application/json": {
|
|
1733
|
+
connection: {
|
|
1734
|
+
accessKeyHint: string;
|
|
1735
|
+
/** @enum {string} */
|
|
1736
|
+
addressingMode: "path" | "virtual-hosted";
|
|
1737
|
+
bucket: string;
|
|
1738
|
+
checkedAt: number;
|
|
1739
|
+
/** Format: uuid */
|
|
1740
|
+
connectionId: string;
|
|
1741
|
+
createdAt: number;
|
|
1742
|
+
endpoint: string;
|
|
1743
|
+
hasCloudflareApiToken: boolean;
|
|
1744
|
+
prefix: string;
|
|
1745
|
+
profile: {
|
|
1746
|
+
conditionalCreate: boolean;
|
|
1747
|
+
cors: boolean;
|
|
1748
|
+
/** @enum {string} */
|
|
1749
|
+
lifecycleRead: "s3" | "cloudflare-api" | "none";
|
|
1750
|
+
quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
|
|
1751
|
+
responseOverrides: boolean;
|
|
1752
|
+
sha256FullObject: boolean;
|
|
1753
|
+
sseC: boolean;
|
|
1754
|
+
/** @enum {number} */
|
|
1755
|
+
version: 1;
|
|
1756
|
+
};
|
|
1757
|
+
/** @enum {string} */
|
|
1758
|
+
provider: "s3" | "r2";
|
|
1759
|
+
region: string;
|
|
1760
|
+
report: {
|
|
1761
|
+
bindable: boolean;
|
|
1762
|
+
checkedAt: number;
|
|
1763
|
+
checks: {
|
|
1764
|
+
detail?: string;
|
|
1765
|
+
explanation: string;
|
|
1766
|
+
/** @enum {string} */
|
|
1767
|
+
id: "access" | "write" | "read" | "range" | "if-match" | "empty-object" | "multipart" | "conditional-create" | "sha256" | "sse-c" | "response-overrides" | "cors" | "lifecycle" | "cleanup";
|
|
1768
|
+
/** @enum {string} */
|
|
1769
|
+
outcome: "pass" | "fail" | "skipped";
|
|
1770
|
+
required: boolean;
|
|
1771
|
+
}[];
|
|
1772
|
+
profile: {
|
|
1773
|
+
conditionalCreate: boolean;
|
|
1774
|
+
cors: boolean;
|
|
1775
|
+
/** @enum {string} */
|
|
1776
|
+
lifecycleRead: "s3" | "cloudflare-api" | "none";
|
|
1777
|
+
quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
|
|
1778
|
+
responseOverrides: boolean;
|
|
1779
|
+
sha256FullObject: boolean;
|
|
1780
|
+
sseC: boolean;
|
|
1781
|
+
/** @enum {number} */
|
|
1782
|
+
version: 1;
|
|
1783
|
+
} & unknown;
|
|
1784
|
+
/** @enum {number} */
|
|
1785
|
+
version: 1;
|
|
1786
|
+
};
|
|
1787
|
+
revision: number;
|
|
1788
|
+
/** @enum {string} */
|
|
1789
|
+
status: "healthy" | "degraded" | "failing";
|
|
1790
|
+
updatedAt: number;
|
|
1791
|
+
} | null;
|
|
1792
|
+
};
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
/** @description A valid Drive user credential is required. */
|
|
1796
|
+
401: {
|
|
1797
|
+
headers: {
|
|
1798
|
+
[name: string]: unknown;
|
|
1799
|
+
};
|
|
1800
|
+
content: {
|
|
1801
|
+
"application/json": {
|
|
1802
|
+
error: {
|
|
1803
|
+
/** @enum {string} */
|
|
1804
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1805
|
+
details: Record<string, never>;
|
|
1806
|
+
message: string;
|
|
1807
|
+
requestId: string;
|
|
1808
|
+
};
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
};
|
|
1812
|
+
/** @description The caller is not an owner of the organization. */
|
|
1813
|
+
403: {
|
|
1814
|
+
headers: {
|
|
1815
|
+
[name: string]: unknown;
|
|
1816
|
+
};
|
|
1817
|
+
content: {
|
|
1818
|
+
"application/json": {
|
|
1819
|
+
error: {
|
|
1820
|
+
/** @enum {string} */
|
|
1821
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1822
|
+
details: Record<string, never>;
|
|
1823
|
+
message: string;
|
|
1824
|
+
requestId: string;
|
|
1825
|
+
};
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1828
|
+
};
|
|
1829
|
+
/** @description The credential selects a personal workspace or an unavailable organization. */
|
|
1830
|
+
404: {
|
|
1831
|
+
headers: {
|
|
1832
|
+
[name: string]: unknown;
|
|
1833
|
+
};
|
|
1834
|
+
content: {
|
|
1835
|
+
"application/json": {
|
|
1836
|
+
error: {
|
|
1837
|
+
/** @enum {string} */
|
|
1838
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1839
|
+
details: Record<string, never>;
|
|
1840
|
+
message: string;
|
|
1841
|
+
requestId: string;
|
|
1842
|
+
};
|
|
1843
|
+
};
|
|
1844
|
+
};
|
|
1845
|
+
};
|
|
1846
|
+
/** @description The connection changed since the supplied ETag. */
|
|
1847
|
+
412: {
|
|
1848
|
+
headers: {
|
|
1849
|
+
[name: string]: unknown;
|
|
1850
|
+
};
|
|
1851
|
+
content: {
|
|
1852
|
+
"application/json": {
|
|
1853
|
+
error: {
|
|
1854
|
+
/** @enum {string} */
|
|
1855
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1856
|
+
details: Record<string, never>;
|
|
1857
|
+
message: string;
|
|
1858
|
+
requestId: string;
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1863
|
+
/** @description Unsupported query, header or body input. */
|
|
1864
|
+
422: {
|
|
1865
|
+
headers: {
|
|
1866
|
+
[name: string]: unknown;
|
|
1867
|
+
};
|
|
1868
|
+
content: {
|
|
1869
|
+
"application/json": {
|
|
1870
|
+
error: {
|
|
1871
|
+
/** @enum {string} */
|
|
1872
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1873
|
+
details: Record<string, never>;
|
|
1874
|
+
message: string;
|
|
1875
|
+
requestId: string;
|
|
1876
|
+
};
|
|
1877
|
+
};
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
/** @description Identity authority, storage or connection keys are unavailable. */
|
|
1881
|
+
503: {
|
|
1882
|
+
headers: {
|
|
1883
|
+
[name: string]: unknown;
|
|
1884
|
+
};
|
|
1885
|
+
content: {
|
|
1886
|
+
"application/json": {
|
|
1887
|
+
error: {
|
|
1888
|
+
/** @enum {string} */
|
|
1889
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1890
|
+
details: Record<string, never>;
|
|
1891
|
+
message: string;
|
|
1892
|
+
requestId: string;
|
|
1893
|
+
};
|
|
1894
|
+
};
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
recheckArchiveConnection: {
|
|
1900
|
+
parameters: {
|
|
1901
|
+
query?: never;
|
|
1902
|
+
header?: never;
|
|
1903
|
+
path?: never;
|
|
1904
|
+
cookie?: never;
|
|
1905
|
+
};
|
|
1906
|
+
requestBody?: never;
|
|
1907
|
+
responses: {
|
|
1908
|
+
/** @description The connection with its new status and report. */
|
|
1909
|
+
200: {
|
|
1910
|
+
headers: {
|
|
1911
|
+
/** @description Connection revision for If-Match. */
|
|
1912
|
+
ETag?: string;
|
|
1913
|
+
[name: string]: unknown;
|
|
1914
|
+
};
|
|
1915
|
+
content: {
|
|
1916
|
+
"application/json": {
|
|
1917
|
+
connection: {
|
|
1918
|
+
accessKeyHint: string;
|
|
1919
|
+
/** @enum {string} */
|
|
1920
|
+
addressingMode: "path" | "virtual-hosted";
|
|
1921
|
+
bucket: string;
|
|
1922
|
+
checkedAt: number;
|
|
1923
|
+
/** Format: uuid */
|
|
1924
|
+
connectionId: string;
|
|
1925
|
+
createdAt: number;
|
|
1926
|
+
endpoint: string;
|
|
1927
|
+
hasCloudflareApiToken: boolean;
|
|
1928
|
+
prefix: string;
|
|
1929
|
+
profile: {
|
|
1930
|
+
conditionalCreate: boolean;
|
|
1931
|
+
cors: boolean;
|
|
1932
|
+
/** @enum {string} */
|
|
1933
|
+
lifecycleRead: "s3" | "cloudflare-api" | "none";
|
|
1934
|
+
quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
|
|
1935
|
+
responseOverrides: boolean;
|
|
1936
|
+
sha256FullObject: boolean;
|
|
1937
|
+
sseC: boolean;
|
|
1938
|
+
/** @enum {number} */
|
|
1939
|
+
version: 1;
|
|
1940
|
+
};
|
|
1941
|
+
/** @enum {string} */
|
|
1942
|
+
provider: "s3" | "r2";
|
|
1943
|
+
region: string;
|
|
1944
|
+
report: {
|
|
1945
|
+
bindable: boolean;
|
|
1946
|
+
checkedAt: number;
|
|
1947
|
+
checks: {
|
|
1948
|
+
detail?: string;
|
|
1949
|
+
explanation: string;
|
|
1950
|
+
/** @enum {string} */
|
|
1951
|
+
id: "access" | "write" | "read" | "range" | "if-match" | "empty-object" | "multipart" | "conditional-create" | "sha256" | "sse-c" | "response-overrides" | "cors" | "lifecycle" | "cleanup";
|
|
1952
|
+
/** @enum {string} */
|
|
1953
|
+
outcome: "pass" | "fail" | "skipped";
|
|
1954
|
+
required: boolean;
|
|
1955
|
+
}[];
|
|
1956
|
+
profile: {
|
|
1957
|
+
conditionalCreate: boolean;
|
|
1958
|
+
cors: boolean;
|
|
1959
|
+
/** @enum {string} */
|
|
1960
|
+
lifecycleRead: "s3" | "cloudflare-api" | "none";
|
|
1961
|
+
quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
|
|
1962
|
+
responseOverrides: boolean;
|
|
1963
|
+
sha256FullObject: boolean;
|
|
1964
|
+
sseC: boolean;
|
|
1965
|
+
/** @enum {number} */
|
|
1966
|
+
version: 1;
|
|
1967
|
+
} & unknown;
|
|
1968
|
+
/** @enum {number} */
|
|
1969
|
+
version: 1;
|
|
1970
|
+
};
|
|
1971
|
+
revision: number;
|
|
1972
|
+
/** @enum {string} */
|
|
1973
|
+
status: "healthy" | "degraded" | "failing";
|
|
1974
|
+
updatedAt: number;
|
|
1975
|
+
} | null;
|
|
1976
|
+
};
|
|
1977
|
+
};
|
|
1978
|
+
};
|
|
1979
|
+
/** @description A valid Drive user credential is required. */
|
|
1980
|
+
401: {
|
|
1981
|
+
headers: {
|
|
1982
|
+
[name: string]: unknown;
|
|
1983
|
+
};
|
|
1984
|
+
content: {
|
|
1985
|
+
"application/json": {
|
|
1986
|
+
error: {
|
|
1987
|
+
/** @enum {string} */
|
|
1988
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
1989
|
+
details: Record<string, never>;
|
|
1990
|
+
message: string;
|
|
1991
|
+
requestId: string;
|
|
1992
|
+
};
|
|
1993
|
+
};
|
|
1994
|
+
};
|
|
1995
|
+
};
|
|
1996
|
+
/** @description The caller is not an owner of the organization. */
|
|
1997
|
+
403: {
|
|
1998
|
+
headers: {
|
|
1999
|
+
[name: string]: unknown;
|
|
2000
|
+
};
|
|
2001
|
+
content: {
|
|
2002
|
+
"application/json": {
|
|
2003
|
+
error: {
|
|
2004
|
+
/** @enum {string} */
|
|
2005
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2006
|
+
details: Record<string, never>;
|
|
2007
|
+
message: string;
|
|
2008
|
+
requestId: string;
|
|
2009
|
+
};
|
|
2010
|
+
};
|
|
2011
|
+
};
|
|
2012
|
+
};
|
|
2013
|
+
/** @description The credential selects a personal workspace or an unavailable organization. */
|
|
2014
|
+
404: {
|
|
2015
|
+
headers: {
|
|
2016
|
+
[name: string]: unknown;
|
|
2017
|
+
};
|
|
2018
|
+
content: {
|
|
2019
|
+
"application/json": {
|
|
2020
|
+
error: {
|
|
2021
|
+
/** @enum {string} */
|
|
2022
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2023
|
+
details: Record<string, never>;
|
|
2024
|
+
message: string;
|
|
2025
|
+
requestId: string;
|
|
2026
|
+
};
|
|
2027
|
+
};
|
|
2028
|
+
};
|
|
2029
|
+
};
|
|
2030
|
+
/** @description The connection changed during the check. */
|
|
2031
|
+
412: {
|
|
2032
|
+
headers: {
|
|
2033
|
+
[name: string]: unknown;
|
|
2034
|
+
};
|
|
2035
|
+
content: {
|
|
2036
|
+
"application/json": {
|
|
2037
|
+
error: {
|
|
2038
|
+
/** @enum {string} */
|
|
2039
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2040
|
+
details: Record<string, never>;
|
|
2041
|
+
message: string;
|
|
2042
|
+
requestId: string;
|
|
2043
|
+
};
|
|
2044
|
+
};
|
|
2045
|
+
};
|
|
2046
|
+
};
|
|
2047
|
+
/** @description Unsupported query, header or body input. */
|
|
2048
|
+
422: {
|
|
2049
|
+
headers: {
|
|
2050
|
+
[name: string]: unknown;
|
|
2051
|
+
};
|
|
2052
|
+
content: {
|
|
2053
|
+
"application/json": {
|
|
2054
|
+
error: {
|
|
2055
|
+
/** @enum {string} */
|
|
2056
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2057
|
+
details: Record<string, never>;
|
|
2058
|
+
message: string;
|
|
2059
|
+
requestId: string;
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
2062
|
+
};
|
|
2063
|
+
};
|
|
2064
|
+
/** @description Identity authority, storage or connection keys are unavailable. */
|
|
2065
|
+
503: {
|
|
2066
|
+
headers: {
|
|
2067
|
+
[name: string]: unknown;
|
|
2068
|
+
};
|
|
2069
|
+
content: {
|
|
2070
|
+
"application/json": {
|
|
2071
|
+
error: {
|
|
2072
|
+
/** @enum {string} */
|
|
2073
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2074
|
+
details: Record<string, never>;
|
|
2075
|
+
message: string;
|
|
2076
|
+
requestId: string;
|
|
2077
|
+
};
|
|
2078
|
+
};
|
|
2079
|
+
};
|
|
2080
|
+
};
|
|
2081
|
+
};
|
|
2082
|
+
};
|
|
2083
|
+
testArchiveConnection: {
|
|
2084
|
+
parameters: {
|
|
2085
|
+
query?: never;
|
|
2086
|
+
header?: never;
|
|
2087
|
+
path?: never;
|
|
2088
|
+
cookie?: never;
|
|
2089
|
+
};
|
|
2090
|
+
requestBody: {
|
|
2091
|
+
content: {
|
|
2092
|
+
"application/json": {
|
|
2093
|
+
accessKeyId: string;
|
|
2094
|
+
/** @enum {string} */
|
|
2095
|
+
addressingMode: "path" | "virtual-hosted";
|
|
2096
|
+
bucket: string;
|
|
2097
|
+
cloudflareApiToken?: string;
|
|
2098
|
+
endpoint: string;
|
|
2099
|
+
prefix: string;
|
|
2100
|
+
/** @enum {string} */
|
|
2101
|
+
provider: "s3" | "r2";
|
|
2102
|
+
region: string;
|
|
2103
|
+
secretAccessKey: string;
|
|
2104
|
+
};
|
|
2105
|
+
};
|
|
2106
|
+
};
|
|
2107
|
+
responses: {
|
|
2108
|
+
/** @description Field errors, or the probe report. */
|
|
2109
|
+
200: {
|
|
2110
|
+
headers: {
|
|
2111
|
+
[name: string]: unknown;
|
|
2112
|
+
};
|
|
2113
|
+
content: {
|
|
2114
|
+
"application/json": {
|
|
2115
|
+
errors: {
|
|
2116
|
+
/** @enum {string} */
|
|
2117
|
+
field: "provider" | "endpoint" | "region" | "bucket" | "prefix" | "addressingMode" | "accessKeyId" | "secretAccessKey" | "cloudflareApiToken";
|
|
2118
|
+
reason: string;
|
|
2119
|
+
}[];
|
|
2120
|
+
report: {
|
|
2121
|
+
bindable: boolean;
|
|
2122
|
+
checkedAt: number;
|
|
2123
|
+
checks: {
|
|
2124
|
+
detail?: string;
|
|
2125
|
+
explanation: string;
|
|
2126
|
+
/** @enum {string} */
|
|
2127
|
+
id: "access" | "write" | "read" | "range" | "if-match" | "empty-object" | "multipart" | "conditional-create" | "sha256" | "sse-c" | "response-overrides" | "cors" | "lifecycle" | "cleanup";
|
|
2128
|
+
/** @enum {string} */
|
|
2129
|
+
outcome: "pass" | "fail" | "skipped";
|
|
2130
|
+
required: boolean;
|
|
2131
|
+
}[];
|
|
2132
|
+
profile: {
|
|
2133
|
+
conditionalCreate: boolean;
|
|
2134
|
+
cors: boolean;
|
|
2135
|
+
/** @enum {string} */
|
|
2136
|
+
lifecycleRead: "s3" | "cloudflare-api" | "none";
|
|
2137
|
+
quirks: ("md5-with-sha256-rejected" | "single-region-only")[];
|
|
2138
|
+
responseOverrides: boolean;
|
|
2139
|
+
sha256FullObject: boolean;
|
|
2140
|
+
sseC: boolean;
|
|
2141
|
+
/** @enum {number} */
|
|
2142
|
+
version: 1;
|
|
2143
|
+
} & unknown;
|
|
2144
|
+
/** @enum {number} */
|
|
2145
|
+
version: 1;
|
|
2146
|
+
} & unknown;
|
|
2147
|
+
};
|
|
2148
|
+
};
|
|
2149
|
+
};
|
|
2150
|
+
/** @description A valid Drive user credential is required. */
|
|
2151
|
+
401: {
|
|
2152
|
+
headers: {
|
|
2153
|
+
[name: string]: unknown;
|
|
2154
|
+
};
|
|
2155
|
+
content: {
|
|
2156
|
+
"application/json": {
|
|
2157
|
+
error: {
|
|
2158
|
+
/** @enum {string} */
|
|
2159
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2160
|
+
details: Record<string, never>;
|
|
2161
|
+
message: string;
|
|
2162
|
+
requestId: string;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
};
|
|
2166
|
+
};
|
|
2167
|
+
/** @description The caller is not an owner of the organization. */
|
|
2168
|
+
403: {
|
|
2169
|
+
headers: {
|
|
2170
|
+
[name: string]: unknown;
|
|
2171
|
+
};
|
|
2172
|
+
content: {
|
|
2173
|
+
"application/json": {
|
|
2174
|
+
error: {
|
|
2175
|
+
/** @enum {string} */
|
|
2176
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2177
|
+
details: Record<string, never>;
|
|
2178
|
+
message: string;
|
|
2179
|
+
requestId: string;
|
|
2180
|
+
};
|
|
2181
|
+
};
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
2184
|
+
/** @description The credential selects a personal workspace or an unavailable organization. */
|
|
2185
|
+
404: {
|
|
2186
|
+
headers: {
|
|
2187
|
+
[name: string]: unknown;
|
|
2188
|
+
};
|
|
2189
|
+
content: {
|
|
2190
|
+
"application/json": {
|
|
2191
|
+
error: {
|
|
2192
|
+
/** @enum {string} */
|
|
2193
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2194
|
+
details: Record<string, never>;
|
|
2195
|
+
message: string;
|
|
2196
|
+
requestId: string;
|
|
2197
|
+
};
|
|
2198
|
+
};
|
|
2199
|
+
};
|
|
2200
|
+
};
|
|
2201
|
+
/** @description Unsupported query, header or body input. */
|
|
2202
|
+
422: {
|
|
2203
|
+
headers: {
|
|
2204
|
+
[name: string]: unknown;
|
|
2205
|
+
};
|
|
2206
|
+
content: {
|
|
2207
|
+
"application/json": {
|
|
2208
|
+
error: {
|
|
2209
|
+
/** @enum {string} */
|
|
2210
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2211
|
+
details: Record<string, never>;
|
|
2212
|
+
message: string;
|
|
2213
|
+
requestId: string;
|
|
2214
|
+
};
|
|
2215
|
+
};
|
|
2216
|
+
};
|
|
2217
|
+
};
|
|
2218
|
+
/** @description Identity authority, storage or connection keys are unavailable. */
|
|
2219
|
+
503: {
|
|
2220
|
+
headers: {
|
|
2221
|
+
[name: string]: unknown;
|
|
2222
|
+
};
|
|
2223
|
+
content: {
|
|
2224
|
+
"application/json": {
|
|
2225
|
+
error: {
|
|
2226
|
+
/** @enum {string} */
|
|
2227
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "precondition_failed" | "service_unavailable";
|
|
2228
|
+
details: Record<string, never>;
|
|
2229
|
+
message: string;
|
|
2230
|
+
requestId: string;
|
|
2231
|
+
};
|
|
2232
|
+
};
|
|
2233
|
+
};
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
};
|
|
1345
2237
|
getWorkspaceLinkPolicy: {
|
|
1346
2238
|
parameters: {
|
|
1347
2239
|
query?: never;
|
|
@@ -9834,6 +10726,61 @@ interface UpdateWorkspaceLinkPolicyInput {
|
|
|
9834
10726
|
readonly ifMatch: string;
|
|
9835
10727
|
readonly signal?: AbortSignal;
|
|
9836
10728
|
}
|
|
10729
|
+
type ArchiveConnectionReadBody = JsonResponse<"getArchiveConnection", 200>;
|
|
10730
|
+
type GeneratedArchiveConnection = NonNullable<ArchiveConnectionReadBody["connection"]>;
|
|
10731
|
+
type GeneratedArchiveProbeReport = NonNullable<JsonResponse<"testArchiveConnection", 200>["report"]>;
|
|
10732
|
+
/** What the bucket supports, fixed when it was connected. */
|
|
10733
|
+
type ArchiveCapabilityProfile = Readonly<GeneratedArchiveConnection["profile"]>;
|
|
10734
|
+
/**
|
|
10735
|
+
* One probe run: a checklist with a plain explanation per check. `profile` is null while a required check fails,
|
|
10736
|
+
* and `bindable` is true only when every check passes.
|
|
10737
|
+
*/
|
|
10738
|
+
type ArchiveProbeReport = Readonly<Omit<GeneratedArchiveProbeReport, "profile"> & {
|
|
10739
|
+
profile: ArchiveCapabilityProfile | null;
|
|
10740
|
+
}>;
|
|
10741
|
+
/** The organization workspace's own archive bucket. Credentials are never returned; only a four-character key hint. */
|
|
10742
|
+
type ArchiveConnection = Readonly<Omit<GeneratedArchiveConnection, "report"> & {
|
|
10743
|
+
report: ArchiveProbeReport;
|
|
10744
|
+
}>;
|
|
10745
|
+
/** The current connection, or null while the workspace uses Finueva's managed archive. Organization owners only. */
|
|
10746
|
+
type ArchiveConnectionRead = Readonly<{
|
|
10747
|
+
connection: ArchiveConnection | null;
|
|
10748
|
+
}>;
|
|
10749
|
+
/** Field errors (and no report) for an invalid form, or the probe report (and no errors). Nothing is stored. */
|
|
10750
|
+
type ArchiveConnectionTest = Readonly<Omit<JsonResponse<"testArchiveConnection", 200>, "report"> & {
|
|
10751
|
+
report: ArchiveProbeReport | null;
|
|
10752
|
+
}>;
|
|
10753
|
+
/** The connect form. Secrets are sent to Drive only; the SDK never logs or echoes them. */
|
|
10754
|
+
interface ArchiveConnectionInput {
|
|
10755
|
+
readonly provider: "s3" | "r2";
|
|
10756
|
+
/** The provider's HTTPS S3 endpoint origin. R2 uses `https://<account id>.r2.cloudflarestorage.com`. */
|
|
10757
|
+
readonly endpoint: string;
|
|
10758
|
+
readonly region: string;
|
|
10759
|
+
readonly bucket: string;
|
|
10760
|
+
readonly prefix: string;
|
|
10761
|
+
readonly addressingMode: "path" | "virtual-hosted";
|
|
10762
|
+
readonly accessKeyId: string;
|
|
10763
|
+
readonly secretAccessKey: string;
|
|
10764
|
+
/** Required for R2 (lifecycle read); not allowed for other providers. */
|
|
10765
|
+
readonly cloudflareApiToken?: string;
|
|
10766
|
+
readonly signal?: AbortSignal;
|
|
10767
|
+
}
|
|
10768
|
+
/**
|
|
10769
|
+
* Connects a bucket (`create: true`, sent as `If-None-Match: *`) or replaces the keys of the connected bucket at
|
|
10770
|
+
* the same location (`ifMatch`, the `validators.etag` of the current connection). Exactly one is required.
|
|
10771
|
+
*/
|
|
10772
|
+
type SaveArchiveConnectionInput = ArchiveConnectionInput & ({
|
|
10773
|
+
readonly create: true;
|
|
10774
|
+
readonly ifMatch?: never;
|
|
10775
|
+
} | {
|
|
10776
|
+
readonly ifMatch: string;
|
|
10777
|
+
readonly create?: never;
|
|
10778
|
+
});
|
|
10779
|
+
interface DeleteArchiveConnectionInput {
|
|
10780
|
+
/** The `validators.etag` of the connection to disconnect. */
|
|
10781
|
+
readonly ifMatch: string;
|
|
10782
|
+
readonly signal?: AbortSignal;
|
|
10783
|
+
}
|
|
9837
10784
|
/**
|
|
9838
10785
|
* One organization file's general access. `viewer` or `editor` lets every current member of the organization
|
|
9839
10786
|
* open the exact file under their own credential; it never lists the file for them or lets them reshare it.
|
|
@@ -10132,6 +11079,16 @@ interface DriveOperations {
|
|
|
10132
11079
|
getWorkspaceLinkPolicy(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<WorkspaceLinkPolicy, 200>>;
|
|
10133
11080
|
/** Present from SDK 0.32. Organization owners and admins only. */
|
|
10134
11081
|
updateWorkspaceLinkPolicy(input: UpdateWorkspaceLinkPolicyInput): Promise<DriveOperationResult<WorkspaceLinkPolicy, 200>>;
|
|
11082
|
+
/** Present from SDK 0.33. Organization owners only. */
|
|
11083
|
+
getArchiveConnection(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<ArchiveConnectionRead, 200>>;
|
|
11084
|
+
/** Present from SDK 0.33. Probes the bucket without saving anything. Organization owners only. */
|
|
11085
|
+
testArchiveConnection(input: ArchiveConnectionInput): Promise<DriveOperationResult<ArchiveConnectionTest, 200>>;
|
|
11086
|
+
/** Present from SDK 0.33. Re-probes, then connects a bucket or replaces its keys. Organization owners only. */
|
|
11087
|
+
saveArchiveConnection(input: SaveArchiveConnectionInput): Promise<DriveOperationResult<ArchiveConnectionRead, 200>>;
|
|
11088
|
+
/** Present from SDK 0.33. Probes the connected bucket again with its stored keys. Organization owners only. */
|
|
11089
|
+
recheckArchiveConnection(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<ArchiveConnectionRead, 200>>;
|
|
11090
|
+
/** Present from SDK 0.33. Erases the stored keys; nothing in the bucket is deleted. Organization owners only. */
|
|
11091
|
+
deleteArchiveConnection(input: DeleteArchiveConnectionInput): Promise<DriveOperationResult<ArchiveConnectionRead, 200>>;
|
|
10135
11092
|
/** Present from SDK 0.32. Organization files only. */
|
|
10136
11093
|
getItemGeneralAccess(input: GetItemGeneralAccessInput): Promise<DriveOperationResult<ItemGeneralAccess, 200>>;
|
|
10137
11094
|
/** Present from SDK 0.32. The file's manager or owner only. */
|
|
@@ -10224,4 +11181,4 @@ interface DriveClient extends DriveOperations, VerifiedTransferOperations {
|
|
|
10224
11181
|
uploadVerifiedFile(input: UploadVerifiedFileInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
|
|
10225
11182
|
}
|
|
10226
11183
|
//#endregion
|
|
10227
|
-
export {
|
|
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 };
|