@finueva/drive 0.25.0 → 0.26.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 +6 -0
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/contract.d.ts +91 -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
|
@@ -289,6 +289,88 @@ interface operations {
|
|
|
289
289
|
};
|
|
290
290
|
};
|
|
291
291
|
};
|
|
292
|
+
listIncomingItems: {
|
|
293
|
+
parameters: {
|
|
294
|
+
query?: {
|
|
295
|
+
limit?: number;
|
|
296
|
+
cursor?: string;
|
|
297
|
+
/** @description Comma-separated exact lowercase media types (1–32 unique values). Filters published current files before pagination. */
|
|
298
|
+
mediaTypes?: string;
|
|
299
|
+
};
|
|
300
|
+
header?: never;
|
|
301
|
+
path?: never;
|
|
302
|
+
cookie?: never;
|
|
303
|
+
};
|
|
304
|
+
requestBody?: never;
|
|
305
|
+
responses: {
|
|
306
|
+
/** @description Current guarded shared-item metadata; no owner root or membership. */
|
|
307
|
+
200: {
|
|
308
|
+
headers: {
|
|
309
|
+
[name: string]: unknown;
|
|
310
|
+
};
|
|
311
|
+
content: {
|
|
312
|
+
"application/json": {
|
|
313
|
+
items: {
|
|
314
|
+
currentVersion: {
|
|
315
|
+
byteLength: number;
|
|
316
|
+
mediaType: string;
|
|
317
|
+
/** @enum {string} */
|
|
318
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
319
|
+
/** @enum {string} */
|
|
320
|
+
state: "current";
|
|
321
|
+
versionId: string;
|
|
322
|
+
} | null;
|
|
323
|
+
itemId: string;
|
|
324
|
+
/** @enum {string} */
|
|
325
|
+
lifecycleState: "active";
|
|
326
|
+
name: string;
|
|
327
|
+
parentId: string | null;
|
|
328
|
+
revision: number;
|
|
329
|
+
/** @enum {string} */
|
|
330
|
+
type: "file" | "folder";
|
|
331
|
+
workspaceId: string;
|
|
332
|
+
}[];
|
|
333
|
+
nextCursor: string | null;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
/** @description Authentication required. */
|
|
338
|
+
401: {
|
|
339
|
+
headers: {
|
|
340
|
+
[name: string]: unknown;
|
|
341
|
+
};
|
|
342
|
+
content?: never;
|
|
343
|
+
};
|
|
344
|
+
/** @description Personal workspace not found. */
|
|
345
|
+
404: {
|
|
346
|
+
headers: {
|
|
347
|
+
[name: string]: unknown;
|
|
348
|
+
};
|
|
349
|
+
content?: never;
|
|
350
|
+
};
|
|
351
|
+
/** @description Authority changed. */
|
|
352
|
+
409: {
|
|
353
|
+
headers: {
|
|
354
|
+
[name: string]: unknown;
|
|
355
|
+
};
|
|
356
|
+
content?: never;
|
|
357
|
+
};
|
|
358
|
+
/** @description Invalid request or cursor. */
|
|
359
|
+
422: {
|
|
360
|
+
headers: {
|
|
361
|
+
[name: string]: unknown;
|
|
362
|
+
};
|
|
363
|
+
content?: never;
|
|
364
|
+
};
|
|
365
|
+
/** @description Service unavailable. */
|
|
366
|
+
503: {
|
|
367
|
+
headers: {
|
|
368
|
+
[name: string]: unknown;
|
|
369
|
+
};
|
|
370
|
+
content?: never;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
292
374
|
prepareVerifiedTransfer: {
|
|
293
375
|
parameters: {
|
|
294
376
|
query?: never;
|
|
@@ -7454,6 +7536,13 @@ interface RegisterItemRecipientInput {
|
|
|
7454
7536
|
readonly signal?: AbortSignal;
|
|
7455
7537
|
}
|
|
7456
7538
|
type ListItemSharingPeopleInput = ListItemPermissionsInput;
|
|
7539
|
+
type GeneratedIncomingItemPage = JsonResponse<"listIncomingItems", 200>;
|
|
7540
|
+
type IncomingItemMetadata = Readonly<GeneratedIncomingItemPage["items"][number]>;
|
|
7541
|
+
type IncomingItemPage = Readonly<{
|
|
7542
|
+
items: readonly IncomingItemMetadata[];
|
|
7543
|
+
nextCursor: string | null;
|
|
7544
|
+
}>;
|
|
7545
|
+
type ListIncomingItemsInput = ListIncomingSharesInput;
|
|
7457
7546
|
type GeneratedIncomingPage = JsonResponse<"listIncomingShares", 200>;
|
|
7458
7547
|
type IncomingShareContext = Readonly<GeneratedIncomingPage["items"][number]>;
|
|
7459
7548
|
type IncomingSharePage = Readonly<{
|
|
@@ -7723,6 +7812,7 @@ interface DriveOperations {
|
|
|
7723
7812
|
registerItemRecipient(input: RegisterItemRecipientInput): Promise<DriveOperationResult<PermissionMutation, 200 | 201>>;
|
|
7724
7813
|
listItemSharingPeople(input: ListItemSharingPeopleInput): Promise<DriveOperationResult<ItemSharingPeoplePage, 200>>;
|
|
7725
7814
|
listIncomingShares(input?: ListIncomingSharesInput): Promise<DriveOperationResult<IncomingSharePage, 200>>;
|
|
7815
|
+
listIncomingItems(input?: ListIncomingItemsInput): Promise<DriveOperationResult<IncomingItemPage, 200>>;
|
|
7726
7816
|
listWorkspaceItems(input: ListWorkspaceItemsInput): Promise<DriveOperationResult<WorkspaceDiscoveryPage, 200>>;
|
|
7727
7817
|
getCurrentUserWorkspaceUsage(input: GetWorkspaceUsageInput): Promise<DriveOperationResult<CurrentUserWorkspaceUsage, 200>>;
|
|
7728
7818
|
getWorkspaceUsage(input: GetWorkspaceUsageInput): Promise<DriveOperationResult<WorkspaceUsage, 200>>;
|
|
@@ -7808,4 +7898,4 @@ interface DriveClient extends DriveOperations, VerifiedTransferOperations {
|
|
|
7808
7898
|
uploadVerifiedFile(input: UploadVerifiedFileInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
|
|
7809
7899
|
}
|
|
7810
7900
|
//#endregion
|
|
7811
|
-
export {
|
|
7901
|
+
export { ListItemPermissionsInput as $, WorkspaceDiscoveryItem as $t, DriveVisitorClient as A, RevokeItemPermissionInput as At, GetItemInput as B, UploadFileProgressCallback as Bt, DriveEditingClientConfig as C, PublishedVerifiedTransfer as Ct, DriveResponseValidators as D, RegisteredRecipientDisplay as Dt, DriveOperations as E, RegisterItemRecipientInput as Et, EffectivePermissionResponse as F, UpdateItemInput as Ft, IncomingItemPage as G, VisitorDownloadInput as Gt, GetVisitorGrantInput as H, VerifiedTransferOperations as Ht, FileAccessContext as I, UpdateItemPermissionInput as It, ItemOwnershipTransfer as J, VisitorGrantCreation as Jt, IncomingShareContext as K, VisitorEditingSession as Kt, FolderItem as L, UpdateWorkspaceSharingPolicyInput as Lt, EditingSession as M, SearchWorkspaceItemsInput as Mt, EditingSessionCreation as N, TransferItemOwnershipInput as Nt, DriveServerClient as O, RestoreItemInput as Ot, EffectivePermissionAction as P, TrashItemInput as Pt, ListIncomingSharesInput as Q, VisitorSession as Qt, FolderPage as R, UploadFilePhase as Rt, DriveEditingClient as S, PublishVerifiedTransferInput as St, DriveOperationResult as T, RecoverVerifiedTransferInput as Tt, GetWorkspaceUsageInput as U, VisitorChildren as Ut, GetItemVersionInput as V, UploadVerifiedFileInput as Vt, IncomingItemMetadata as W, VisitorChildrenInput as Wt, ListFolderChildrenInput as X, VisitorItem as Xt, ItemSharingPeoplePage as Y, VisitorGrantPage as Yt, ListIncomingItemsInput as Z, VisitorReadInput as Zt, DownloadItemResult as _, PermissionMutation as _t, CollectOwnedItemsInput as a, operations as an, ManagedDownloadRestorePending as at, DriveCredentialContext as b, PreparedVerifiedTransfer as bt, CreateEditingSessionInput as c, ManagedItemVersionPage as ct, CreateVisitorEditingSessionInput as d, ManagedLifecycleItem as dt, WorkspaceDiscoveryPage as en, ListItemSharingPeopleInput as et, CreateVisitorGrantInput as f, OwnedItem as ft, DeleteItemInput as g, PermissionGrantee as gt, CurrentWorkspaceSources as h, PermissionGrant as ht, ChangeEditingSessionInput as i, WorkspaceUsage as in, ManagedDownloadDescriptor as it, DriveVisitorClientConfig as j, RevokeVisitorGrantInput as jt, DriveServerClientConfig as k, RestoreItemVersionInput as kt, CreateFolderInput as l, ManagedItemVersionResource as lt, CurrentWorkspace as m, PermissionAction as mt, ArchiveItemInput as n, WorkspaceItemSearchPage as nn, ListOwnedItemsInput as nt, CollectedOwnedItems as o, ManagedItemMetadata as ot, CurrentUserWorkspaceUsage as p, OwnedItemPage as pt, IncomingSharePage as q, VisitorGrant as qt, ArchivedItem as r, WorkspaceSharingPolicy as rn, ListWorkspaceItemsInput as rt, CreateDownloadInput as s, ManagedItemVersion as st, AdmittedVerifiedTransfer as t, WorkspaceItemSearchItem as tn, ListItemVersionsInput as tt, CreateItemPermissionInput as u, ManagedItemVersionRestoreResult as ut, DriveClient as v, PermissionPage as vt, DriveEditingServerClient as w, ReadEffectiveItemPermissionsInput as wt, DriveCredentialProvider as x, ProtectionClassification as xt, DriveClientConfig as y, PrepareVerifiedTransferInput as yt, GetCurrentWorkspaceInput as z, UploadFileProgress as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as ListItemPermissionsInput, $t as WorkspaceDiscoveryItem, A as DriveVisitorClient, At as RevokeItemPermissionInput, B as GetItemInput, Bt as UploadFileProgressCallback, C as DriveEditingClientConfig, Ct as PublishedVerifiedTransfer, D as DriveResponseValidators, E as DriveOperations, Ft as UpdateItemInput, G as IncomingItemPage, Gt as VisitorDownloadInput, H as GetVisitorGrantInput, Ht as VerifiedTransferOperations, I as FileAccessContext, It as UpdateItemPermissionInput, J as ItemOwnershipTransfer, Jt as VisitorGrantCreation, L as FolderItem, Lt as UpdateWorkspaceSharingPolicyInput, M as EditingSession, Mt as SearchWorkspaceItemsInput, N as EditingSessionCreation, Nt as TransferItemOwnershipInput, Ot as RestoreItemInput, P as EffectivePermissionAction, Pt as TrashItemInput, Qt as VisitorSession, R as FolderPage, Rt as UploadFilePhase, S as DriveEditingClient, St as PublishVerifiedTransferInput, T as DriveOperationResult, Tt as RecoverVerifiedTransferInput, U as GetWorkspaceUsageInput, Ut as VisitorChildren, V as GetItemVersionInput, Vt as UploadVerifiedFileInput, W as IncomingItemMetadata, Wt as VisitorChildrenInput, X as ListFolderChildrenInput, Xt as VisitorItem, Yt as VisitorGrantPage, Z as ListIncomingItemsInput, Zt as VisitorReadInput, _ as DownloadItemResult, _t as PermissionMutation, a as CollectOwnedItemsInput, at as ManagedDownloadRestorePending, bt as PreparedVerifiedTransfer, c as CreateEditingSessionInput, ct as ManagedItemVersionPage, dt as ManagedLifecycleItem, en as WorkspaceDiscoveryPage, f as CreateVisitorGrantInput, ft as OwnedItem, g as DeleteItemInput, gt as PermissionGrantee, h as CurrentWorkspaceSources, ht as PermissionGrant, i as ChangeEditingSessionInput, in as WorkspaceUsage, it as ManagedDownloadDescriptor, j as DriveVisitorClientConfig, jt as RevokeVisitorGrantInput, kt as RestoreItemVersionInput, l as CreateFolderInput, lt as ManagedItemVersionResource, m as CurrentWorkspace, mt as PermissionAction, n as ArchiveItemInput, nn as WorkspaceItemSearchPage, nt as ListOwnedItemsInput, o as CollectedOwnedItems, ot as ManagedItemMetadata, p as CurrentUserWorkspaceUsage, pt as OwnedItemPage, qt as VisitorGrant, r as ArchivedItem, rn as WorkspaceSharingPolicy, rt as ListWorkspaceItemsInput, s as CreateDownloadInput, st as ManagedItemVersion, t as AdmittedVerifiedTransfer, tn as WorkspaceItemSearchItem, tt as ListItemVersionsInput, u as CreateItemPermissionInput, ut as ManagedItemVersionRestoreResult, v as DriveClient, wt as ReadEffectiveItemPermissionsInput, x as DriveCredentialProvider, xt as ProtectionClassification, y as DriveClientConfig, yt as PrepareVerifiedTransferInput, z as GetCurrentWorkspaceInput, zt as UploadFileProgress } from "./contract.js";
|
|
2
2
|
import { DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, DRIVE_API_ERROR_REASONS, DriveApiErrorCode, DriveError, DriveErrorCode, DriveErrorDetails, DriveErrorReason, DriveSdkErrorCode } from "./core.js";
|
|
3
3
|
import { n as createDriveVisitorClient, r as createVisitorSessionToken, t as collectOwnedItems } from "./contract2.js";
|
|
4
4
|
import { createDriveClient, createDriveEditingClient } from "./client.js";
|
|
@@ -6,4 +6,4 @@ import { createDriveClient, createDriveEditingClient } from "./client.js";
|
|
|
6
6
|
/** Generate once per logical operation and retain the exact key across ambiguous retries. */
|
|
7
7
|
declare function createVerifiedOperationKey(issuedAtEpochMilliseconds?: number): string;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { type AdmittedVerifiedTransfer, type ArchiveItemInput, type ArchivedItem, type ChangeEditingSessionInput, type CollectOwnedItemsInput, type CollectedOwnedItems, type CreateDownloadInput, type CreateEditingSessionInput, type CreateFolderInput, type CreateItemPermissionInput, type CreateVisitorGrantInput, type CurrentUserWorkspaceUsage, type CurrentWorkspace, type CurrentWorkspaceSources, DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, DRIVE_API_ERROR_REASONS, type DeleteItemInput, type DownloadItemResult, type DriveApiErrorCode, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, type DriveEditingClient, type DriveEditingClientConfig, DriveError, type DriveErrorCode, type DriveErrorDetails, type DriveErrorReason, type DriveOperationResult, type DriveOperations, type DriveResponseValidators, type DriveSdkErrorCode, type DriveVisitorClient, type DriveVisitorClientConfig, type EditingSession, type EditingSessionCreation, type EffectivePermissionAction, type FileAccessContext, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetVisitorGrantInput, type GetWorkspaceUsageInput, type ItemOwnershipTransfer, type ListFolderChildrenInput, type ListItemPermissionsInput, 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 PermissionAction, type PermissionGrant, type PermissionGrantee, type PermissionMutation, type PrepareVerifiedTransferInput, type PreparedVerifiedTransfer, type ProtectionClassification, type PublishVerifiedTransferInput, type PublishedVerifiedTransfer, type ReadEffectiveItemPermissionsInput, type RecoverVerifiedTransferInput, type RestoreItemInput, type RestoreItemVersionInput, type RevokeItemPermissionInput, type RevokeVisitorGrantInput, type SearchWorkspaceItemsInput, type TransferItemOwnershipInput, type TrashItemInput, type UpdateItemInput, type UpdateItemPermissionInput, type UpdateWorkspaceSharingPolicyInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadVerifiedFileInput, type VerifiedTransferOperations, type VisitorChildren, type VisitorChildrenInput, type VisitorDownloadInput, type VisitorGrant, type VisitorGrantCreation, type VisitorGrantPage, type VisitorItem, type VisitorReadInput, type VisitorSession, type WorkspaceDiscoveryItem, type WorkspaceDiscoveryPage, type WorkspaceItemSearchItem, type WorkspaceItemSearchPage, type WorkspaceSharingPolicy, type WorkspaceUsage, collectOwnedItems, createDriveClient, createDriveEditingClient, createDriveVisitorClient, createVerifiedOperationKey, createVisitorSessionToken };
|
|
9
|
+
export { type AdmittedVerifiedTransfer, type ArchiveItemInput, type ArchivedItem, type ChangeEditingSessionInput, type CollectOwnedItemsInput, type CollectedOwnedItems, type CreateDownloadInput, type CreateEditingSessionInput, type CreateFolderInput, type CreateItemPermissionInput, type CreateVisitorGrantInput, type CurrentUserWorkspaceUsage, type CurrentWorkspace, type CurrentWorkspaceSources, DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, DRIVE_API_ERROR_REASONS, type DeleteItemInput, type DownloadItemResult, type DriveApiErrorCode, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, type DriveEditingClient, type DriveEditingClientConfig, DriveError, type DriveErrorCode, type DriveErrorDetails, type DriveErrorReason, type DriveOperationResult, type DriveOperations, type DriveResponseValidators, type DriveSdkErrorCode, type DriveVisitorClient, type DriveVisitorClientConfig, type EditingSession, type EditingSessionCreation, type EffectivePermissionAction, type FileAccessContext, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetVisitorGrantInput, type GetWorkspaceUsageInput, type IncomingItemMetadata, type IncomingItemPage, type ItemOwnershipTransfer, type ListFolderChildrenInput, type ListIncomingItemsInput, type ListItemPermissionsInput, 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 PermissionAction, type PermissionGrant, type PermissionGrantee, type PermissionMutation, type PrepareVerifiedTransferInput, type PreparedVerifiedTransfer, type ProtectionClassification, type PublishVerifiedTransferInput, type PublishedVerifiedTransfer, type ReadEffectiveItemPermissionsInput, type RecoverVerifiedTransferInput, type RestoreItemInput, type RestoreItemVersionInput, type RevokeItemPermissionInput, type RevokeVisitorGrantInput, type SearchWorkspaceItemsInput, type TransferItemOwnershipInput, type TrashItemInput, type UpdateItemInput, type UpdateItemPermissionInput, type UpdateWorkspaceSharingPolicyInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadVerifiedFileInput, type VerifiedTransferOperations, type VisitorChildren, type VisitorChildrenInput, type VisitorDownloadInput, type VisitorGrant, type VisitorGrantCreation, type VisitorGrantPage, type VisitorItem, type VisitorReadInput, type VisitorSession, type WorkspaceDiscoveryItem, type WorkspaceDiscoveryPage, type WorkspaceItemSearchItem, type WorkspaceItemSearchPage, type WorkspaceSharingPolicy, type WorkspaceUsage, collectOwnedItems, createDriveClient, createDriveEditingClient, createDriveVisitorClient, createVerifiedOperationKey, createVisitorSessionToken };
|