@finueva/drive 0.29.0 → 0.30.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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @finueva/drive
2
2
 
3
+ ## 0.30.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6764e73: Add `registerItemRecipients`, which shares one item with up to 15 registered recipients in one request. Every new grant commits atomically under one collection `If-Match` and one `Idempotency-Key`; results report each recipient in request order as `added` (or replayed), `already_present` or `refused` with `recipient_unavailable`, `registration_conflict` or `duplicate_recipient`. Resolver throttling or outage fails the whole batch before any write; reusing the batch key for a different batch is `409 idempotency_conflict`. Workspace sharing ceilings apply to the whole batch: needing more grants or history than remain is a nonretryable `409 precondition_failed` with reason `sharing_grant_limit_reached` or `sharing_history_limit_reached`, and nothing is written. Requires a Drive backend that serves `POST /api/v1/workspaces/{workspaceId}/items/{itemId}/sharing/batch`.
8
+
9
+ Deployment order: the matching Drive backend signs recipient assertions with `actorUserId`, which Auth accepts only from Ifkafin/auth#399. Deploy Auth #399 (with its migration `0090`) before that Drive backend; an older Auth rejects the assertion and every recipient registration fails with `identity_authority_unavailable`.
10
+
11
+ ### Patch Changes
12
+
13
+ - 7a4f1d7: Accept a file access `validUntil` from 60 seconds before to 120 seconds after the device clock. The SDK previously rejected any value more than 60 seconds ahead, so a client clock running even a second behind Drive failed every healthy `getFileAccessContext` answer with `invalid_response`. Drive now issues the expiry at 55 seconds so older SDKs stop failing too.
14
+ - ff86503: Recognize `sharing_grant_limit_reached` and `sharing_history_limit_reached` error reasons on nonretryable `409 precondition_failed` permission and registered-sharing refusals. These distinguish the retained 64-grant and 4,160-change workspace ceilings from temporary sharing maintenance failures.
15
+
3
16
  ## 0.29.0
4
17
 
5
18
  ### Minor Changes
package/README.md CHANGED
@@ -134,6 +134,7 @@ Methods use the current API operation IDs; `downloadItem` and `uploadVerifiedFil
134
134
  - `getWorkspaceSharingPolicy`
135
135
  - `updateWorkspaceSharingPolicy`
136
136
  - `registerItemRecipient`
137
+ - `registerItemRecipients`
137
138
  - `listItemSharingPeople`
138
139
  - `listIncomingShares`
139
140
  - `getCurrentWorkspace`
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as ListFolderChildrenInput, A as DriveUploadConfig, At as RecoverVerifiedTransferInput, B as FolderListedItem, Bt as UpdateItemInput, C as DriveEditingClientConfig, Dt as PublishVerifiedTransferInput, Et as ProtectionClassification, G as GetVisitorGrantInput, Gt as UploadFileProgressCallback, H as GetCurrentWorkspaceInput, Ht as UpdateWorkspaceSharingPolicyInput, It as RevokeVisitorGrantInput, J as IncomingItemPage, Jt as UploadVerifiedFileInput, K as GetWorkspaceUsageInput, Kt as UploadFileStage, L as FileAccessContext, Lt as SearchWorkspaceItemsInput, M as DriveVisitorClientConfig, Mt as RegisteredRecipientDisplay, N as EditingSession, Nt as RestoreItemInput, Ot as PublishedVerifiedTransfer, P as EditingSessionCreation, Pt as RestoreItemVersionInput, Q as ItemSharingPeoplePage, R as FolderItem, Rt as TransferItemOwnershipInput, S as DriveEditingClient, Tt as PreparedVerifiedTransfer, U as GetItemInput, Ut as UploadFilePhase, V as FolderPage, W as GetItemVersionInput, Wt as UploadFileProgress, X as IncomingSharePage, Xt as VisitorChildren, Y as IncomingShareContext, Yt as VerifiedTransferOperations, Z as ItemOwnershipTransfer, _ as DownloadItemResult, _t as OwnedItem, a as CollectOwnedItemsInput, an as VisitorSession, at as ListOwnedItemsInput, c as CreateEditingSessionInput, cn as WorkspaceItemSearchItem, ct as ManagedDownloadRestorePending, dn as WorkspaceUsage, dt as ManagedItemVersionPage, en as VisitorGrant, et as ListIncomingItemsInput, f as CreateVisitorGrantInput, ft as ManagedItemVersionResource, g as DeleteItemInput, h as CurrentWorkspaceSources, i as ChangeEditingSessionInput, it as ListItemVersionsInput, j as DriveVisitorClient, jt as RegisterItemRecipientInput, ln as WorkspaceItemSearchPage, lt as ManagedItemMetadata, m as CurrentWorkspace, mt as ManagedLifecycleItem, n as ArchiveItemInput, nn as VisitorGrantPage, o as CollectedOwnedItems, on as WorkspaceDiscoveryItem, ot as ListWorkspaceItemsInput, pt as ManagedItemVersionRestoreResult, q as IncomingItemMetadata, qt as UploadSmallVerifiedFileInput, r as ArchivedItem, rn as VisitorItem, rt as ListItemSharingPeopleInput, s as CreateDownloadInput, sn as WorkspaceDiscoveryPage, st as ManagedDownloadDescriptor, t as AdmittedVerifiedTransfer, tn as VisitorGrantCreation, tt as ListIncomingSharesInput, un as WorkspaceSharingPolicy, ut as ManagedItemVersion, v as DriveClient, vt as OwnedItemPage, wt as PrepareVerifiedTransferInput, x as DriveCredentialProvider, y as DriveClientConfig, z as FolderListInclude, zt as TrashItemInput } from "./contract.js";
1
+ import { $ as ItemSharingBatch, $t as VerifiedTransferOperations, A as DriveUploadConfig, At as PublishVerifiedTransferInput, B as FolderListedItem, Bt as RevokeVisitorGrantInput, C as DriveEditingClientConfig, Dt as PrepareVerifiedTransferInput, Ft as RegisterItemRecipientsInput, G as GetVisitorGrantInput, H as GetCurrentWorkspaceInput, Ht as TransferItemOwnershipInput, It as RegisteredRecipientDisplay, J as IncomingItemPage, Jt as UploadFileProgress, K as GetWorkspaceUsageInput, Kt as UpdateWorkspaceSharingPolicyInput, L as FileAccessContext, Lt as RestoreItemInput, M as DriveVisitorClientConfig, N as EditingSession, Nt as RecoverVerifiedTransferInput, Ot as PreparedVerifiedTransfer, P as EditingSessionCreation, Pt as RegisterItemRecipientInput, Q as ItemRecipientBatchEntry, Qt as UploadVerifiedFileInput, R as FolderItem, Rt as RestoreItemVersionInput, S as DriveEditingClient, U as GetItemInput, Ut as TrashItemInput, V as FolderPage, Vt as SearchWorkspaceItemsInput, W as GetItemVersionInput, Wt as UpdateItemInput, X as IncomingSharePage, Xt as UploadFileStage, Y as IncomingShareContext, Yt as UploadFileProgressCallback, Z as ItemOwnershipTransfer, Zt as UploadSmallVerifiedFileInput, _ as DownloadItemResult, _t as ManagedLifecycleItem, a as CollectOwnedItemsInput, an as VisitorGrantCreation, bt as OwnedItem, c as CreateEditingSessionInput, ct as ListOwnedItemsInput, dn as WorkspaceDiscoveryPage, dt as ManagedDownloadRestorePending, en as VisitorChildren, et as ItemSharingBatchResult, f as CreateVisitorGrantInput, fn as WorkspaceItemSearchItem, ft as ManagedItemMetadata, g as DeleteItemInput, gt as ManagedItemVersionRestoreResult, h as CurrentWorkspaceSources, hn as WorkspaceUsage, ht as ManagedItemVersionResource, i as ChangeEditingSessionInput, in as VisitorGrant, it as ListIncomingSharesInput, j as DriveVisitorClient, jt as PublishedVerifiedTransfer, kt as ProtectionClassification, ln as VisitorSession, lt as ListWorkspaceItemsInput, m as CurrentWorkspace, mn as WorkspaceSharingPolicy, mt as ManagedItemVersionPage, n as ArchiveItemInput, nt as ListFolderChildrenInput, o as CollectedOwnedItems, on as VisitorGrantPage, ot as ListItemSharingPeopleInput, pn as WorkspaceItemSearchPage, pt as ManagedItemVersion, q as IncomingItemMetadata, qt as UploadFilePhase, r as ArchivedItem, rt as ListIncomingItemsInput, s as CreateDownloadInput, sn as VisitorItem, st as ListItemVersionsInput, t as AdmittedVerifiedTransfer, tt as ItemSharingPeoplePage, un as WorkspaceDiscoveryItem, ut as ManagedDownloadDescriptor, v as DriveClient, x as DriveCredentialProvider, xt as OwnedItemPage, y as DriveClientConfig, z as FolderListInclude } from "./contract.js";
2
2
  import { n as createDriveVisitorClient, r as createVisitorSessionToken, t as collectOwnedItems } from "./contract2.js";
3
3
  import { n as createDriveEditingClient, r as createUploadProgressFetch, t as createDriveClient } from "./contract3.js";
4
- export { type AdmittedVerifiedTransfer, type ArchiveItemInput, type ArchivedItem, type ChangeEditingSessionInput, type CollectOwnedItemsInput, type CollectedOwnedItems, type CreateDownloadInput, type CreateEditingSessionInput, type CreateVisitorGrantInput, type CurrentWorkspace, type CurrentWorkspaceSources, type DeleteItemInput, type DownloadItemResult, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, type DriveEditingClient, type DriveEditingClientConfig, type DriveUploadConfig, type DriveVisitorClient, type DriveVisitorClientConfig, type EditingSession, type EditingSessionCreation, type FileAccessContext, type FolderItem, type FolderListInclude, type FolderListedItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetVisitorGrantInput, type GetWorkspaceUsageInput, type IncomingItemMetadata, type IncomingItemPage, type IncomingShareContext, type IncomingSharePage, type ItemOwnershipTransfer, type ItemSharingPeoplePage, type ListFolderChildrenInput, type ListIncomingItemsInput, type ListIncomingSharesInput, type ListItemSharingPeopleInput, type ListItemVersionsInput, type ListOwnedItemsInput, type ListWorkspaceItemsInput, type ManagedDownloadDescriptor, type ManagedDownloadRestorePending, type ManagedItemMetadata, type ManagedItemVersion, type ManagedItemVersionPage, type ManagedItemVersionResource, type ManagedItemVersionRestoreResult, type ManagedLifecycleItem, type OwnedItem, type OwnedItemPage, type PrepareVerifiedTransferInput, type PreparedVerifiedTransfer, type ProtectionClassification, type PublishVerifiedTransferInput, type PublishedVerifiedTransfer, type RecoverVerifiedTransferInput, type RegisterItemRecipientInput, type RegisteredRecipientDisplay, type RestoreItemInput, type RestoreItemVersionInput, type RevokeVisitorGrantInput, type SearchWorkspaceItemsInput, type TransferItemOwnershipInput, type TrashItemInput, type UpdateItemInput, type UpdateWorkspaceSharingPolicyInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadFileStage, type UploadSmallVerifiedFileInput, type UploadVerifiedFileInput, type VerifiedTransferOperations, type VisitorChildren, type VisitorGrant, type VisitorGrantCreation, type VisitorGrantPage, type VisitorItem, type VisitorSession, type WorkspaceDiscoveryItem, type WorkspaceDiscoveryPage, type WorkspaceItemSearchItem, type WorkspaceItemSearchPage, type WorkspaceSharingPolicy, type WorkspaceUsage, collectOwnedItems, createDriveClient, createDriveEditingClient, createDriveVisitorClient, createUploadProgressFetch, createVisitorSessionToken };
4
+ export { type AdmittedVerifiedTransfer, type ArchiveItemInput, type ArchivedItem, type ChangeEditingSessionInput, type CollectOwnedItemsInput, type CollectedOwnedItems, type CreateDownloadInput, type CreateEditingSessionInput, type CreateVisitorGrantInput, type CurrentWorkspace, type CurrentWorkspaceSources, type DeleteItemInput, type DownloadItemResult, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, type DriveEditingClient, type DriveEditingClientConfig, type DriveUploadConfig, type DriveVisitorClient, type DriveVisitorClientConfig, type EditingSession, type EditingSessionCreation, type FileAccessContext, type FolderItem, type FolderListInclude, type FolderListedItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetVisitorGrantInput, type GetWorkspaceUsageInput, type IncomingItemMetadata, type IncomingItemPage, type IncomingShareContext, type IncomingSharePage, type ItemOwnershipTransfer, type ItemRecipientBatchEntry, type ItemSharingBatch, type ItemSharingBatchResult, type ItemSharingPeoplePage, type ListFolderChildrenInput, type ListIncomingItemsInput, type ListIncomingSharesInput, type ListItemSharingPeopleInput, type ListItemVersionsInput, type ListOwnedItemsInput, type ListWorkspaceItemsInput, type ManagedDownloadDescriptor, type ManagedDownloadRestorePending, type ManagedItemMetadata, type ManagedItemVersion, type ManagedItemVersionPage, type ManagedItemVersionResource, type ManagedItemVersionRestoreResult, type ManagedLifecycleItem, type OwnedItem, type OwnedItemPage, type PrepareVerifiedTransferInput, type PreparedVerifiedTransfer, type ProtectionClassification, type PublishVerifiedTransferInput, type PublishedVerifiedTransfer, type RecoverVerifiedTransferInput, type RegisterItemRecipientInput, type RegisterItemRecipientsInput, type RegisteredRecipientDisplay, type RestoreItemInput, type RestoreItemVersionInput, type RevokeVisitorGrantInput, type SearchWorkspaceItemsInput, type TransferItemOwnershipInput, type TrashItemInput, type UpdateItemInput, type UpdateWorkspaceSharingPolicyInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadFileStage, type UploadSmallVerifiedFileInput, type UploadVerifiedFileInput, type VerifiedTransferOperations, type VisitorChildren, type VisitorGrant, type VisitorGrantCreation, type VisitorGrantPage, type VisitorItem, type VisitorSession, type WorkspaceDiscoveryItem, type WorkspaceDiscoveryPage, type WorkspaceItemSearchItem, type WorkspaceItemSearchPage, type WorkspaceSharingPolicy, type WorkspaceUsage, collectOwnedItems, createDriveClient, createDriveEditingClient, createDriveVisitorClient, createUploadProgressFetch, createVisitorSessionToken };