@finueva/drive 0.26.0 → 0.28.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 +14 -0
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/contract.d.ts +280 -11
- 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
|
@@ -487,6 +487,82 @@ interface operations {
|
|
|
487
487
|
};
|
|
488
488
|
};
|
|
489
489
|
};
|
|
490
|
+
uploadSmallVerifiedFile: {
|
|
491
|
+
parameters: {
|
|
492
|
+
query?: never;
|
|
493
|
+
header: {
|
|
494
|
+
"drive-transfer-metadata": string;
|
|
495
|
+
};
|
|
496
|
+
path?: never;
|
|
497
|
+
cookie?: never;
|
|
498
|
+
};
|
|
499
|
+
requestBody: {
|
|
500
|
+
content: {
|
|
501
|
+
"application/octet-stream": string;
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
responses: {
|
|
505
|
+
/** @description Published exact current immutable version or qualified replay. */
|
|
506
|
+
200: {
|
|
507
|
+
headers: {
|
|
508
|
+
[name: string]: unknown;
|
|
509
|
+
};
|
|
510
|
+
content: {
|
|
511
|
+
"application/json": {
|
|
512
|
+
byteLength: number;
|
|
513
|
+
etag: string;
|
|
514
|
+
item: {
|
|
515
|
+
creatorUserId: string | null;
|
|
516
|
+
name: string | null;
|
|
517
|
+
ownerUserId: string | null;
|
|
518
|
+
parentItemId: string | null;
|
|
519
|
+
revision: number;
|
|
520
|
+
/** @enum {string} */
|
|
521
|
+
visibility: "workspace" | "restricted";
|
|
522
|
+
};
|
|
523
|
+
itemId: string;
|
|
524
|
+
mediaType: string;
|
|
525
|
+
/** @constant */
|
|
526
|
+
outcome: "published";
|
|
527
|
+
/** @enum {string} */
|
|
528
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
529
|
+
sha256: string;
|
|
530
|
+
transferId: string;
|
|
531
|
+
versionId: string;
|
|
532
|
+
workspaceId: string;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
/** @description Current workspace credential required. */
|
|
537
|
+
401: {
|
|
538
|
+
headers: {
|
|
539
|
+
[name: string]: unknown;
|
|
540
|
+
};
|
|
541
|
+
content?: never;
|
|
542
|
+
};
|
|
543
|
+
/** @description The original transfer operation has retired and cannot be recreated. */
|
|
544
|
+
409: {
|
|
545
|
+
headers: {
|
|
546
|
+
[name: string]: unknown;
|
|
547
|
+
};
|
|
548
|
+
content?: never;
|
|
549
|
+
};
|
|
550
|
+
/** @description Invalid or oversized transfer identity. */
|
|
551
|
+
422: {
|
|
552
|
+
headers: {
|
|
553
|
+
[name: string]: unknown;
|
|
554
|
+
};
|
|
555
|
+
content?: never;
|
|
556
|
+
};
|
|
557
|
+
/** @description Current authority, persistence or provider proof unavailable. */
|
|
558
|
+
503: {
|
|
559
|
+
headers: {
|
|
560
|
+
[name: string]: unknown;
|
|
561
|
+
};
|
|
562
|
+
content?: never;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
};
|
|
490
566
|
publishVerifiedTransfer: {
|
|
491
567
|
parameters: {
|
|
492
568
|
query?: never;
|
|
@@ -2839,6 +2915,8 @@ interface operations {
|
|
|
2839
2915
|
query?: {
|
|
2840
2916
|
limit?: number;
|
|
2841
2917
|
cursor?: string;
|
|
2918
|
+
/** @description Opt in to current version size and type, creation and modification time, creator, and effective owner on every item. Absent keeps the minimal item shape. */
|
|
2919
|
+
include?: "metadata";
|
|
2842
2920
|
};
|
|
2843
2921
|
header?: never;
|
|
2844
2922
|
path: {
|
|
@@ -2857,14 +2935,27 @@ interface operations {
|
|
|
2857
2935
|
content: {
|
|
2858
2936
|
"application/json": {
|
|
2859
2937
|
items: {
|
|
2938
|
+
createdAtEpochMilliseconds?: number | null;
|
|
2939
|
+
creatorUserId?: string | null;
|
|
2940
|
+
currentVersion?: {
|
|
2941
|
+
byteLength: number;
|
|
2942
|
+
mediaType: string;
|
|
2943
|
+
/** @enum {string} */
|
|
2944
|
+
protectionClassification: "ordinary" | "opaque-encrypted";
|
|
2945
|
+
/** @enum {string} */
|
|
2946
|
+
state: "current";
|
|
2947
|
+
versionId: string;
|
|
2948
|
+
} | null;
|
|
2860
2949
|
itemId: string;
|
|
2861
2950
|
/** @enum {string} */
|
|
2862
2951
|
kind: "file" | "folder";
|
|
2952
|
+
modifiedAtEpochMilliseconds?: number | null;
|
|
2863
2953
|
/**
|
|
2864
2954
|
* Format: finueva-safe-filename
|
|
2865
2955
|
* @description NFC-normalized filename of at most 255 Unicode code points and 255 UTF-8 bytes. Slash, backslash, control characters, U+2028/U+2029, trailing dot/space, dot entries, and Windows reserved base names are forbidden.
|
|
2866
2956
|
*/
|
|
2867
2957
|
name: string;
|
|
2958
|
+
ownerUserId?: string | null;
|
|
2868
2959
|
parentItemId: string;
|
|
2869
2960
|
revision: number;
|
|
2870
2961
|
/** @enum {string} */
|
|
@@ -5339,12 +5430,14 @@ interface operations {
|
|
|
5339
5430
|
content: {
|
|
5340
5431
|
"application/json": {
|
|
5341
5432
|
/** @description Normalized email, at most 320 UTF-8 bytes. */
|
|
5342
|
-
email
|
|
5433
|
+
email?: string;
|
|
5343
5434
|
/** @description Require the freshly resolved Auth user ID to match before creating a grant. A mismatch returns registration_conflict without mutation. */
|
|
5344
5435
|
expectedRecipientUserId?: string;
|
|
5345
5436
|
/** @enum {string} */
|
|
5346
5437
|
role: "viewer" | "editor";
|
|
5347
|
-
|
|
5438
|
+
/** @description Exact canonical Auth User ID; Auth verifies current recipient eligibility. */
|
|
5439
|
+
userId?: string;
|
|
5440
|
+
} & (unknown | unknown);
|
|
5348
5441
|
};
|
|
5349
5442
|
};
|
|
5350
5443
|
responses: {
|
|
@@ -7434,6 +7527,154 @@ interface operations {
|
|
|
7434
7527
|
};
|
|
7435
7528
|
};
|
|
7436
7529
|
};
|
|
7530
|
+
getOrganizationMemberStorageUsage: {
|
|
7531
|
+
parameters: {
|
|
7532
|
+
query?: never;
|
|
7533
|
+
header?: {
|
|
7534
|
+
/** @description Current opaque Auth bearer session. Required unless the actor cookie header is present; bearer takes precedence. */
|
|
7535
|
+
"x-finueva-actor-authorization"?: string;
|
|
7536
|
+
/** @description Current Auth session cookie, forwarded only to the configured Auth origin. */
|
|
7537
|
+
"x-finueva-actor-cookie"?: string;
|
|
7538
|
+
};
|
|
7539
|
+
path: {
|
|
7540
|
+
workspaceId: string;
|
|
7541
|
+
};
|
|
7542
|
+
cookie?: never;
|
|
7543
|
+
};
|
|
7544
|
+
requestBody: {
|
|
7545
|
+
content: {
|
|
7546
|
+
"application/json": {
|
|
7547
|
+
applicationCredential: string;
|
|
7548
|
+
applicationId: string;
|
|
7549
|
+
/** Format: uri */
|
|
7550
|
+
applicationOrigin: string;
|
|
7551
|
+
userIds: string[];
|
|
7552
|
+
};
|
|
7553
|
+
};
|
|
7554
|
+
};
|
|
7555
|
+
responses: {
|
|
7556
|
+
/** @description Fresh manual-administrator authority; no file names, content or grants. */
|
|
7557
|
+
200: {
|
|
7558
|
+
headers: {
|
|
7559
|
+
[name: string]: unknown;
|
|
7560
|
+
};
|
|
7561
|
+
content: {
|
|
7562
|
+
"application/json": {
|
|
7563
|
+
/** @enum {string} */
|
|
7564
|
+
accounting: "owned-current-versions";
|
|
7565
|
+
members: {
|
|
7566
|
+
fileCount: number;
|
|
7567
|
+
usedBytes: string;
|
|
7568
|
+
userId: string;
|
|
7569
|
+
}[];
|
|
7570
|
+
workspaceId: string;
|
|
7571
|
+
};
|
|
7572
|
+
};
|
|
7573
|
+
};
|
|
7574
|
+
/** @description Authentication required. */
|
|
7575
|
+
401: {
|
|
7576
|
+
headers: {
|
|
7577
|
+
[name: string]: unknown;
|
|
7578
|
+
};
|
|
7579
|
+
content: {
|
|
7580
|
+
"application/json": {
|
|
7581
|
+
error: {
|
|
7582
|
+
/** @enum {string} */
|
|
7583
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
7584
|
+
details: Record<string, never>;
|
|
7585
|
+
message: string;
|
|
7586
|
+
requestId: string;
|
|
7587
|
+
};
|
|
7588
|
+
};
|
|
7589
|
+
};
|
|
7590
|
+
};
|
|
7591
|
+
/** @description The action is not permitted. */
|
|
7592
|
+
403: {
|
|
7593
|
+
headers: {
|
|
7594
|
+
[name: string]: unknown;
|
|
7595
|
+
};
|
|
7596
|
+
content: {
|
|
7597
|
+
"application/json": {
|
|
7598
|
+
error: {
|
|
7599
|
+
/** @enum {string} */
|
|
7600
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
7601
|
+
details: Record<string, never>;
|
|
7602
|
+
message: string;
|
|
7603
|
+
requestId: string;
|
|
7604
|
+
};
|
|
7605
|
+
};
|
|
7606
|
+
};
|
|
7607
|
+
};
|
|
7608
|
+
/** @description Workspace not found. */
|
|
7609
|
+
404: {
|
|
7610
|
+
headers: {
|
|
7611
|
+
[name: string]: unknown;
|
|
7612
|
+
};
|
|
7613
|
+
content: {
|
|
7614
|
+
"application/json": {
|
|
7615
|
+
error: {
|
|
7616
|
+
/** @enum {string} */
|
|
7617
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
7618
|
+
details: Record<string, never>;
|
|
7619
|
+
message: string;
|
|
7620
|
+
requestId: string;
|
|
7621
|
+
};
|
|
7622
|
+
};
|
|
7623
|
+
};
|
|
7624
|
+
};
|
|
7625
|
+
/** @description The selected authority or page changed; restart the query. */
|
|
7626
|
+
409: {
|
|
7627
|
+
headers: {
|
|
7628
|
+
[name: string]: unknown;
|
|
7629
|
+
};
|
|
7630
|
+
content: {
|
|
7631
|
+
"application/json": {
|
|
7632
|
+
error: {
|
|
7633
|
+
/** @enum {string} */
|
|
7634
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
7635
|
+
details: Record<string, never>;
|
|
7636
|
+
message: string;
|
|
7637
|
+
requestId: string;
|
|
7638
|
+
};
|
|
7639
|
+
};
|
|
7640
|
+
};
|
|
7641
|
+
};
|
|
7642
|
+
/** @description Invalid request or cursor. */
|
|
7643
|
+
422: {
|
|
7644
|
+
headers: {
|
|
7645
|
+
[name: string]: unknown;
|
|
7646
|
+
};
|
|
7647
|
+
content: {
|
|
7648
|
+
"application/json": {
|
|
7649
|
+
error: {
|
|
7650
|
+
/** @enum {string} */
|
|
7651
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
7652
|
+
details: Record<string, never>;
|
|
7653
|
+
message: string;
|
|
7654
|
+
requestId: string;
|
|
7655
|
+
};
|
|
7656
|
+
};
|
|
7657
|
+
};
|
|
7658
|
+
};
|
|
7659
|
+
/** @description Authoritative state is unavailable. */
|
|
7660
|
+
503: {
|
|
7661
|
+
headers: {
|
|
7662
|
+
[name: string]: unknown;
|
|
7663
|
+
};
|
|
7664
|
+
content: {
|
|
7665
|
+
"application/json": {
|
|
7666
|
+
error: {
|
|
7667
|
+
/** @enum {string} */
|
|
7668
|
+
code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "resource_not_found" | "invalid_request" | "invalid_pagination_cursor" | "precondition_failed" | "service_unavailable";
|
|
7669
|
+
details: Record<string, never>;
|
|
7670
|
+
message: string;
|
|
7671
|
+
requestId: string;
|
|
7672
|
+
};
|
|
7673
|
+
};
|
|
7674
|
+
};
|
|
7675
|
+
};
|
|
7676
|
+
};
|
|
7677
|
+
};
|
|
7437
7678
|
}
|
|
7438
7679
|
//#endregion
|
|
7439
7680
|
//#region src/types.d.ts
|
|
@@ -7470,7 +7711,12 @@ type UploadVerifiedFileInput = Readonly<Omit<PrepareVerifiedTransferInput, "byte
|
|
|
7470
7711
|
completionIdempotencyKey: string;
|
|
7471
7712
|
onProgress?: UploadFileProgressCallback;
|
|
7472
7713
|
}>;
|
|
7714
|
+
type UploadSmallVerifiedFileInput = Readonly<PrepareVerifiedTransferInput & {
|
|
7715
|
+
source: Blob;
|
|
7716
|
+
completionIdempotencyKey: string;
|
|
7717
|
+
}>;
|
|
7473
7718
|
interface VerifiedTransferOperations {
|
|
7719
|
+
uploadSmallVerifiedFile(input: UploadSmallVerifiedFileInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
|
|
7474
7720
|
prepareVerifiedTransfer(input: PrepareVerifiedTransferInput): Promise<DriveOperationResult<PreparedVerifiedTransfer, 200>>;
|
|
7475
7721
|
publishVerifiedTransfer(input: PublishVerifiedTransferInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
|
|
7476
7722
|
recoverVerifiedTransfer(input: RecoverVerifiedTransferInput): Promise<DriveOperationResult<AdmittedVerifiedTransfer, 200>>;
|
|
@@ -7496,7 +7742,8 @@ type DriveEditingClient = DriveEditingServerClient & {
|
|
|
7496
7742
|
uploadVerifiedFile(input: UploadVerifiedFileInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
|
|
7497
7743
|
};
|
|
7498
7744
|
type ResourcePath = operations["listFolderChildren"]["parameters"]["path"];
|
|
7499
|
-
type
|
|
7745
|
+
type FolderChildrenQuery = NonNullable<operations["listFolderChildren"]["parameters"]["query"]>;
|
|
7746
|
+
type PageQuery = Pick<FolderChildrenQuery, "limit" | "cursor">;
|
|
7500
7747
|
type SearchWorkspaceItemsPath = operations["searchWorkspaceItems"]["parameters"]["path"];
|
|
7501
7748
|
type SearchWorkspaceItemsQuery = NonNullable<operations["searchWorkspaceItems"]["parameters"]["query"]>;
|
|
7502
7749
|
type CreateFolderBody = JsonRequest<"createFolder">;
|
|
@@ -7524,17 +7771,22 @@ type ItemSharingPeoplePage = Readonly<Omit<JsonResponse<"listItemSharingPeople",
|
|
|
7524
7771
|
readonly recipient: RegisteredRecipientDisplay | null;
|
|
7525
7772
|
})[];
|
|
7526
7773
|
}>;
|
|
7527
|
-
|
|
7774
|
+
type RegisterItemRecipientInput = {
|
|
7528
7775
|
readonly workspaceId: string;
|
|
7529
7776
|
readonly itemId: string;
|
|
7530
|
-
readonly email: string;
|
|
7531
7777
|
/** Assert the freshly resolved Auth identity before any grant is created. */
|
|
7532
7778
|
readonly expectedRecipientUserId?: string;
|
|
7533
7779
|
readonly role: "viewer" | "editor";
|
|
7534
7780
|
readonly ifMatch: string;
|
|
7535
7781
|
readonly idempotencyKey: string;
|
|
7536
7782
|
readonly signal?: AbortSignal;
|
|
7537
|
-
}
|
|
7783
|
+
} & ({
|
|
7784
|
+
readonly email: string;
|
|
7785
|
+
readonly userId?: never;
|
|
7786
|
+
} | {
|
|
7787
|
+
readonly userId: string;
|
|
7788
|
+
readonly email?: never;
|
|
7789
|
+
});
|
|
7538
7790
|
type ListItemSharingPeopleInput = ListItemPermissionsInput;
|
|
7539
7791
|
type GeneratedIncomingItemPage = JsonResponse<"listIncomingItems", 200>;
|
|
7540
7792
|
type IncomingItemMetadata = Readonly<GeneratedIncomingItemPage["items"][number]>;
|
|
@@ -7564,6 +7816,14 @@ type WorkspaceDiscoveryPage = Readonly<{
|
|
|
7564
7816
|
nextCursor: string | null;
|
|
7565
7817
|
}>;
|
|
7566
7818
|
type CurrentUserWorkspaceUsage = Readonly<JsonResponse<"getCurrentUserWorkspaceUsage", 200>>;
|
|
7819
|
+
type OrganizationMemberStorageUsage = Readonly<JsonResponse<"getOrganizationMemberStorageUsage", 200>>;
|
|
7820
|
+
type OrganizationMemberStorageUsageInput = Readonly<Omit<JsonRequest<"getOrganizationMemberStorageUsage">, "userIds"> & {
|
|
7821
|
+
workspaceId: string;
|
|
7822
|
+
userIds: readonly string[];
|
|
7823
|
+
actorAuthorization?: string;
|
|
7824
|
+
actorCookie?: string;
|
|
7825
|
+
signal?: AbortSignal;
|
|
7826
|
+
}>;
|
|
7567
7827
|
type GeneratedWorkspaceUsage = JsonResponse<"getWorkspaceUsage", 200>;
|
|
7568
7828
|
type WorkspaceUsage = Readonly<Omit<GeneratedWorkspaceUsage, "warnings"> & {
|
|
7569
7829
|
readonly warnings: readonly GeneratedWorkspaceUsage["warnings"][number][];
|
|
@@ -7647,6 +7907,11 @@ type CurrentWorkspace = Readonly<Omit<GeneratedCurrentWorkspace, "workspaceRefer
|
|
|
7647
7907
|
readonly workspaceReference: Readonly<GeneratedCurrentWorkspace["workspaceReference"]>;
|
|
7648
7908
|
}>;
|
|
7649
7909
|
type FolderItem = Readonly<JsonResponse<"createFolder", 201>>;
|
|
7910
|
+
type GeneratedFolderPage = JsonResponse<"listFolderChildren", 200>;
|
|
7911
|
+
/** `metadata` adds current version size and type, timestamps, creator and effective owner to every listed item. */
|
|
7912
|
+
type FolderListInclude = NonNullable<FolderChildrenQuery["include"]>;
|
|
7913
|
+
/** A listed child. Detail fields are present exactly when the listing requested `include: "metadata"`. */
|
|
7914
|
+
type FolderListedItem = Readonly<GeneratedFolderPage["items"][number]>;
|
|
7650
7915
|
type ManagedLifecycleItem = Readonly<JsonResponse<"updateItem", 200>>;
|
|
7651
7916
|
type GeneratedManagedItemMetadata = JsonResponse<"getItem", 200>;
|
|
7652
7917
|
type ManagedItemMetadata = Readonly<Omit<GeneratedManagedItemMetadata, "currentVersion"> & {
|
|
@@ -7688,8 +7953,8 @@ type PermissionMutation = Readonly<Omit<GeneratedPermissionMutation, "grant"> &
|
|
|
7688
7953
|
}>;
|
|
7689
7954
|
type GeneratedEffectivePermissionResponse = JsonResponse<"readEffectiveItemPermissions", 200>;
|
|
7690
7955
|
type EffectivePermissionAction = Readonly<GeneratedEffectivePermissionResponse["actions"][number]>;
|
|
7691
|
-
type FolderPage = Readonly<Omit<
|
|
7692
|
-
readonly items: readonly
|
|
7956
|
+
type FolderPage = Readonly<Omit<GeneratedFolderPage, "items"> & {
|
|
7957
|
+
readonly items: readonly FolderListedItem[];
|
|
7693
7958
|
}>;
|
|
7694
7959
|
type PermissionPage = Readonly<Omit<JsonResponse<"listItemPermissions", 200>, "items"> & {
|
|
7695
7960
|
readonly items: readonly PermissionGrant[];
|
|
@@ -7728,7 +7993,9 @@ type ResourceInput = Readonly<ResourcePath> & {
|
|
|
7728
7993
|
readonly signal?: AbortSignal;
|
|
7729
7994
|
};
|
|
7730
7995
|
type PageInput = ResourceInput & Readonly<PageQuery>;
|
|
7731
|
-
type ListFolderChildrenInput = PageInput
|
|
7996
|
+
type ListFolderChildrenInput = PageInput & {
|
|
7997
|
+
readonly include?: FolderListInclude;
|
|
7998
|
+
};
|
|
7732
7999
|
type GetItemInput = ResourceInput;
|
|
7733
8000
|
type SearchWorkspaceItemsInput = Readonly<SearchWorkspaceItemsPath> & Readonly<SearchWorkspaceItemsQuery> & {
|
|
7734
8001
|
readonly signal?: AbortSignal;
|
|
@@ -7893,9 +8160,11 @@ interface DriveVisitorClient {
|
|
|
7893
8160
|
}): Promise<DriveOperationResult<VisitorSession, 200>>;
|
|
7894
8161
|
createEditingSession(input: CreateVisitorEditingSessionInput): Promise<DriveOperationResult<VisitorEditingSession, 201>>;
|
|
7895
8162
|
}
|
|
7896
|
-
interface DriveServerClient extends DriveOperations, VerifiedTransferOperations {
|
|
8163
|
+
interface DriveServerClient extends DriveOperations, VerifiedTransferOperations {
|
|
8164
|
+
getOrganizationMemberStorageUsage(input: OrganizationMemberStorageUsageInput): Promise<DriveOperationResult<OrganizationMemberStorageUsage, 200>>;
|
|
8165
|
+
}
|
|
7897
8166
|
interface DriveClient extends DriveOperations, VerifiedTransferOperations {
|
|
7898
8167
|
uploadVerifiedFile(input: UploadVerifiedFileInput): Promise<DriveOperationResult<PublishedVerifiedTransfer, 200>>;
|
|
7899
8168
|
}
|
|
7900
8169
|
//#endregion
|
|
7901
|
-
export {
|
|
8170
|
+
export { ListIncomingItemsInput as $, VisitorGrantCreation as $t, DriveVisitorClient as A, RegisterItemRecipientInput as At, FolderPage as B, UpdateItemPermissionInput as Bt, DriveEditingClientConfig as C, PrepareVerifiedTransferInput as Ct, DriveResponseValidators as D, PublishedVerifiedTransfer as Dt, DriveOperations as E, PublishVerifiedTransferInput as Et, EffectivePermissionResponse as F, RevokeVisitorGrantInput as Ft, GetWorkspaceUsageInput as G, UploadSmallVerifiedFileInput as Gt, GetItemInput as H, UploadFilePhase as Ht, FileAccessContext as I, SearchWorkspaceItemsInput as It, IncomingShareContext as J, VisitorChildren as Jt, IncomingItemMetadata as K, UploadVerifiedFileInput as Kt, FolderItem as L, TransferItemOwnershipInput as Lt, EditingSession as M, RestoreItemInput as Mt, EditingSessionCreation as N, RestoreItemVersionInput as Nt, DriveServerClient as O, ReadEffectiveItemPermissionsInput as Ot, EffectivePermissionAction as P, RevokeItemPermissionInput as Pt, ListFolderChildrenInput as Q, VisitorGrant as Qt, FolderListInclude as R, TrashItemInput as Rt, DriveEditingClient as S, PermissionPage as St, DriveOperationResult as T, ProtectionClassification as Tt, GetItemVersionInput as U, UploadFileProgress as Ut, GetCurrentWorkspaceInput as V, UpdateWorkspaceSharingPolicyInput as Vt, GetVisitorGrantInput as W, UploadFileProgressCallback as Wt, ItemOwnershipTransfer as X, VisitorDownloadInput as Xt, IncomingSharePage as Y, VisitorChildrenInput as Yt, ItemSharingPeoplePage as Z, VisitorEditingSession as Zt, DownloadItemResult as _, OwnedItemPage as _t, CollectOwnedItemsInput as a, WorkspaceDiscoveryPage as an, ListWorkspaceItemsInput as at, DriveCredentialContext as b, PermissionGrantee as bt, CreateEditingSessionInput as c, WorkspaceSharingPolicy as cn, ManagedItemMetadata as ct, CreateVisitorEditingSessionInput as d, ManagedItemVersionResource as dt, VisitorGrantPage as en, ListIncomingSharesInput as et, CreateVisitorGrantInput as f, ManagedItemVersionRestoreResult as ft, DeleteItemInput as g, OwnedItem as gt, CurrentWorkspaceSources as h, OrganizationMemberStorageUsageInput as ht, ChangeEditingSessionInput as i, WorkspaceDiscoveryItem as in, ListOwnedItemsInput as it, DriveVisitorClientConfig as j, RegisteredRecipientDisplay as jt, DriveServerClientConfig as k, RecoverVerifiedTransferInput as kt, CreateFolderInput as l, WorkspaceUsage as ln, ManagedItemVersion as lt, CurrentWorkspace as m, OrganizationMemberStorageUsage as mt, ArchiveItemInput as n, VisitorReadInput as nn, ListItemSharingPeopleInput as nt, CollectedOwnedItems as o, WorkspaceItemSearchItem as on, ManagedDownloadDescriptor as ot, CurrentUserWorkspaceUsage as p, ManagedLifecycleItem as pt, IncomingItemPage as q, VerifiedTransferOperations as qt, ArchivedItem as r, VisitorSession as rn, ListItemVersionsInput as rt, CreateDownloadInput as s, WorkspaceItemSearchPage as sn, ManagedDownloadRestorePending as st, AdmittedVerifiedTransfer as t, VisitorItem as tn, ListItemPermissionsInput as tt, CreateItemPermissionInput as u, operations as un, ManagedItemVersionPage as ut, DriveClient as v, PermissionAction as vt, DriveEditingServerClient as w, PreparedVerifiedTransfer as wt, DriveCredentialProvider as x, PermissionMutation as xt, DriveClientConfig as y, PermissionGrant as yt, FolderListedItem as z, UpdateItemInput as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as ListIncomingItemsInput, $t as VisitorGrantCreation, A as DriveVisitorClient, B as FolderPage, Bt as UpdateItemPermissionInput, C as DriveEditingClientConfig, Ct as PrepareVerifiedTransferInput, D as DriveResponseValidators, Dt as PublishedVerifiedTransfer, E as DriveOperations, Et as PublishVerifiedTransferInput, Ft as RevokeVisitorGrantInput, G as GetWorkspaceUsageInput, H as GetItemInput, Ht as UploadFilePhase, I as FileAccessContext, It as SearchWorkspaceItemsInput, Jt as VisitorChildren, K as IncomingItemMetadata, Kt as UploadVerifiedFileInput, L as FolderItem, Lt as TransferItemOwnershipInput, M as EditingSession, Mt as RestoreItemInput, N as EditingSessionCreation, Nt as RestoreItemVersionInput, Ot as ReadEffectiveItemPermissionsInput, P as EffectivePermissionAction, Pt as RevokeItemPermissionInput, Q as ListFolderChildrenInput, Qt as VisitorGrant, R as FolderListInclude, Rt as TrashItemInput, S as DriveEditingClient, T as DriveOperationResult, Tt as ProtectionClassification, U as GetItemVersionInput, Ut as UploadFileProgress, V as GetCurrentWorkspaceInput, Vt as UpdateWorkspaceSharingPolicyInput, W as GetVisitorGrantInput, Wt as UploadFileProgressCallback, X as ItemOwnershipTransfer, Xt as VisitorDownloadInput, Yt as VisitorChildrenInput, _ as DownloadItemResult, _t as OwnedItemPage, a as CollectOwnedItemsInput, an as WorkspaceDiscoveryPage, at as ListWorkspaceItemsInput, bt as PermissionGrantee, c as CreateEditingSessionInput, cn as WorkspaceSharingPolicy, ct as ManagedItemMetadata, dt as ManagedItemVersionResource, en as VisitorGrantPage, f as CreateVisitorGrantInput, ft as ManagedItemVersionRestoreResult, g as DeleteItemInput, gt as OwnedItem, h as CurrentWorkspaceSources, i as ChangeEditingSessionInput, in as WorkspaceDiscoveryItem, it as ListOwnedItemsInput, j as DriveVisitorClientConfig, kt as RecoverVerifiedTransferInput, l as CreateFolderInput, ln as WorkspaceUsage, lt as ManagedItemVersion, m as CurrentWorkspace, n as ArchiveItemInput, nn as VisitorReadInput, o as CollectedOwnedItems, on as WorkspaceItemSearchItem, ot as ManagedDownloadDescriptor, p as CurrentUserWorkspaceUsage, pt as ManagedLifecycleItem, q as IncomingItemPage, qt as VerifiedTransferOperations, r as ArchivedItem, rn as VisitorSession, rt as ListItemVersionsInput, s as CreateDownloadInput, sn as WorkspaceItemSearchPage, st as ManagedDownloadRestorePending, t as AdmittedVerifiedTransfer, tn as VisitorItem, tt as ListItemPermissionsInput, u as CreateItemPermissionInput, ut as ManagedItemVersionPage, v as DriveClient, vt as PermissionAction, wt as PreparedVerifiedTransfer, x as DriveCredentialProvider, xt as PermissionMutation, y as DriveClientConfig, yt as PermissionGrant, z as FolderListedItem, zt as UpdateItemInput } 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 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 };
|
|
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 FolderListInclude, type FolderListedItem, 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 };
|