@finueva/drive 0.7.0 → 0.10.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 +28 -0
- package/README.md +27 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -3371
- package/dist/contract.d.ts +1549 -546
- package/dist/core.d.ts +3 -1
- package/dist/core.js +1 -57
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -3371
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1 -2588
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @finueva/drive
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5275884: Add registered-recipient sharing and manager-only readable people pages through `registerItemRecipient` and `listItemSharingPeople`, with normalized email, canonical UTF-8 bounds, strong grant/collection preconditions, exact replay and display-only expiring snapshots. Add incoming external-share discovery and grant-bound metadata writes using the recipient's own personal credential, without issuer membership or permission-management authority.
|
|
8
|
+
|
|
9
|
+
Use additive issued-authority table families that preserve legacy grants, collections, foreign keys and canonical history while sharing the global physical capacity budget. Local populated migration, rollback/retry and legacy/issued coexistence qualification pass.
|
|
10
|
+
|
|
11
|
+
Support external Editor new-file uploads through the existing upload API, including verified zero/nonempty transfers, status, abort and exact replay. Keep upload records in additive families while sharing workspace byte usage and global capacity, route verification jobs across both checkpoint stores, and recheck current grants before atomic publication.
|
|
12
|
+
|
|
13
|
+
Support same-workspace moves with current source/destination grant proofs, stable replay and late-revocation rollback, plus the native historical-version restore operation. Resolve legacy/external ready transfer evidence for descriptors and recheck content authority and transfer identity before URL disclosure.
|
|
14
|
+
|
|
15
|
+
Wire production recipient resolution through the published `@finueva/auth@0.15.0` server SDK with mandatory private signing keys, fresh environment/audience-bound service assertions, bounded key caching and value-free failures. Do not forward incoming User authority or perform recipient lookups on ordinary file reads.
|
|
16
|
+
|
|
17
|
+
The native API has no replacement-upload field; no replacement API is introduced. Older Workers must not serve admission traffic while external reservations are active. Local backend and packed SDK qualification do not establish deployment or hosted acceptance.
|
|
18
|
+
|
|
19
|
+
## 0.9.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 6560cae: Add getCurrentWorkspaceSources, listWorkspaceItems, and getWorkspaceUsage for authorized Files discovery. List recently modified items, actual incoming user/team grants, and trash with authenticated pagination, nullable genuine creation/modification/creator metadata, published version details, and retained mutation ETags. Read exact managed quota byte strings including unresolved reservations. Separate actual managed volumes from known provider kinds without fabricated connections or health. Existing SDK operations retain their contracts. The backend requires generated migration 0010 before these discovery routes are deployed.
|
|
24
|
+
|
|
25
|
+
## 0.8.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- 8809e4e: Add getCurrentWorkspaceSources, listWorkspaceItems, and getWorkspaceUsage for authorized Files discovery. List recently modified items, actual incoming user/team grants, and trash with authenticated pagination, nullable genuine creation/modification/creator metadata, published version details, and retained mutation ETags. Read exact managed quota byte strings including unresolved reservations. Separate actual managed volumes from known provider kinds without fabricated connections or health. Existing SDK operations retain their contracts. The backend requires generated migration 0010 before these discovery routes are deployed.
|
|
30
|
+
|
|
3
31
|
## 0.7.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -78,13 +78,39 @@ const drive = createDriveServerClient({
|
|
|
78
78
|
|
|
79
79
|
Create a client per request when using user authority. A fixed `credential` string is accepted for an explicitly scoped credential, but the SDK does not create, refresh, persist, or infer sessions, cookies, provider tokens, or service authority.
|
|
80
80
|
|
|
81
|
-
The server client exposes all
|
|
81
|
+
The server client exposes all 27 normal-user Native Drive operations plus streaming `downloadItem`, but intentionally has no Blob-only `uploadFile` method. The package root and browser client add `uploadFile`, for 29 methods total.
|
|
82
|
+
|
|
83
|
+
## Workspace Discovery
|
|
84
|
+
|
|
85
|
+
`getCurrentWorkspaceSources()` returns the actual managed volume separately from
|
|
86
|
+
known provider kinds. It does not invent external connections or provider health.
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
const recent = await drive.listWorkspaceItems({ workspaceId, view: "recent", limit: 25 });
|
|
90
|
+
const shared = await drive.listWorkspaceItems({ workspaceId, view: "shared" });
|
|
91
|
+
const trash = await drive.listWorkspaceItems({ workspaceId, view: "trash" });
|
|
92
|
+
const usage = await drive.getWorkspaceUsage({ workspaceId });
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Recent means recorded modification time, not viewing activity. Historical unknown
|
|
96
|
+
timestamps and creator user IDs stay null; unknown modification times are excluded
|
|
97
|
+
from recent results until a real mutation. Shared lists actual incoming direct
|
|
98
|
+
user/team grants, not inherited descendants or all workspace-visible items. Trash
|
|
99
|
+
requires delete authority and retains current ETags for the existing mutation
|
|
100
|
+
methods. Continuations are encrypted, principal/root/filter-bound and short-lived;
|
|
101
|
+
restart on stale-page errors. Optional `kind` and `creatorUserId` filters apply on
|
|
102
|
+
the service before pagination. Quota reads require `usage:read` and return exact
|
|
103
|
+
decimal byte strings, clamped availability and unresolved-reservation evidence.
|
|
104
|
+
These source additions require backend migration `0010`, deployment and SDK release.
|
|
82
105
|
|
|
83
106
|
## Operations
|
|
84
107
|
|
|
85
108
|
Methods use the Native API operation IDs:
|
|
86
109
|
|
|
87
110
|
- `getCurrentWorkspace`
|
|
111
|
+
- `getCurrentWorkspaceSources`
|
|
112
|
+
- `listWorkspaceItems`
|
|
113
|
+
- `getWorkspaceUsage`
|
|
88
114
|
- `getItem`
|
|
89
115
|
- `searchWorkspaceItems`
|
|
90
116
|
- `listFolderChildren`
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as ProtectionClassification, A as IncomingShareContext, B as ManagedDownloadRestorePending, C as FolderItem, Ct as WorkspaceDiscoveryPage, D as GetItemVersionInput, E as GetItemInput, Et as WorkspaceUsage, G as ManagedItemVersionRestoreResult, H as ManagedItemVersion, I as ListItemSharingPeopleInput, K as ManagedLifecycleItem, L as ListItemVersionsInput, M as ItemSharingPeoplePage, N as ListFolderChildrenInput, O as GetUploadStatusInput, P as ListIncomingSharesInput, R as ListWorkspaceItemsInput, St as WorkspaceDiscoveryItem, T as GetCurrentWorkspaceInput, Tt as WorkspaceItemSearchPage, U as ManagedItemVersionPage, V as ManagedItemMetadata, W as ManagedItemVersionResource, _t as UploadFileProgressCallback, at as RestoreItemInput, bt as UploadSession, c as CurrentWorkspace, ct as SearchWorkspaceItemsInput, d as DownloadItemResult, f as DriveClient, ft as UploadCompletion, gt as UploadFileProgress, h as DriveCredentialProvider, ht as UploadFilePhase, it as RegisteredRecipientDisplay, j as IncomingSharePage, k as GetWorkspaceUsageInput, l as CurrentWorkspaceSources, lt as TrashItemInput, mt as UploadFileInput, n as CompleteUploadInput, nt as RecordUploadPartInput, o as CreateUploadInput, ot as RestoreItemVersionInput, p as DriveClientConfig, pt as UploadConfirmedPart, q as PendingUpload, r as CreateDownloadInput, rt as RegisterItemRecipientInput, s as CreateUploadPartDescriptorInput, t as AbortUploadInput, tt as ReadyUpload, u as DeleteItemInput, ut as UpdateItemInput, vt as UploadPartDescriptor, w as FolderPage, wt as WorkspaceItemSearchItem, xt as UploadStatus, yt as UploadPartResult, z as ManagedDownloadDescriptor } from "./contract.js";
|
|
2
2
|
//#region src/client.d.ts
|
|
3
3
|
declare function createDriveClient(config: DriveClientConfig): DriveClient;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { type AbortUploadInput, type CompleteUploadInput, type CreateDownloadInput, type CreateUploadInput, type CreateUploadPartDescriptorInput, type CurrentWorkspace, type DeleteItemInput, type DownloadItemResult, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetUploadStatusInput, type ListFolderChildrenInput, type ListItemVersionsInput, type ManagedDownloadDescriptor, type ManagedDownloadRestorePending, type ManagedItemMetadata, type ManagedItemVersion, type ManagedItemVersionPage, type ManagedItemVersionResource, type ManagedItemVersionRestoreResult, type ManagedLifecycleItem, type PendingUpload, type ProtectionClassification, type ReadyUpload, type RecordUploadPartInput, type RestoreItemInput, type RestoreItemVersionInput, type SearchWorkspaceItemsInput, type TrashItemInput, type UpdateItemInput, type UploadCompletion, type UploadConfirmedPart, type UploadFileInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadPartDescriptor, type UploadPartResult, type UploadSession, type UploadStatus, type WorkspaceItemSearchItem, type WorkspaceItemSearchPage, createDriveClient };
|
|
5
|
+
export { type AbortUploadInput, type CompleteUploadInput, type CreateDownloadInput, type CreateUploadInput, type CreateUploadPartDescriptorInput, type CurrentWorkspace, type CurrentWorkspaceSources, type DeleteItemInput, type DownloadItemResult, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetUploadStatusInput, type GetWorkspaceUsageInput, type IncomingShareContext, type IncomingSharePage, type ItemSharingPeoplePage, type ListFolderChildrenInput, type ListIncomingSharesInput, type ListItemSharingPeopleInput, type ListItemVersionsInput, type ListWorkspaceItemsInput, type ManagedDownloadDescriptor, type ManagedDownloadRestorePending, type ManagedItemMetadata, type ManagedItemVersion, type ManagedItemVersionPage, type ManagedItemVersionResource, type ManagedItemVersionRestoreResult, type ManagedLifecycleItem, type PendingUpload, type ProtectionClassification, type ReadyUpload, type RecordUploadPartInput, type RegisterItemRecipientInput, type RegisteredRecipientDisplay, type RestoreItemInput, type RestoreItemVersionInput, type SearchWorkspaceItemsInput, type TrashItemInput, type UpdateItemInput, type UploadCompletion, type UploadConfirmedPart, type UploadFileInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadPartDescriptor, type UploadPartResult, type UploadSession, type UploadStatus, type WorkspaceDiscoveryItem, type WorkspaceDiscoveryPage, type WorkspaceItemSearchItem, type WorkspaceItemSearchPage, type WorkspaceUsage, createDriveClient };
|