@finueva/drive 0.14.0 → 0.16.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 +13 -0
- package/dist/client.d.ts +3 -2
- package/dist/client.js +1 -1
- package/dist/contract.d.ts +295 -9
- package/dist/contract2.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/server.d.ts +3 -2
- package/dist/server.js +1 -1
- package/dist/types.d.ts +2 -2
- package/package.json +4 -2
package/dist/contract.d.ts
CHANGED
|
@@ -228,6 +228,8 @@ interface operations {
|
|
|
228
228
|
query?: {
|
|
229
229
|
limit?: number;
|
|
230
230
|
cursor?: string;
|
|
231
|
+
/** @description Comma-separated exact lowercase media types (1–16 unique values). Filters published current files before pagination. */
|
|
232
|
+
mediaTypes?: string;
|
|
231
233
|
};
|
|
232
234
|
header?: never;
|
|
233
235
|
path?: never;
|
|
@@ -1006,6 +1008,93 @@ interface operations {
|
|
|
1006
1008
|
};
|
|
1007
1009
|
};
|
|
1008
1010
|
};
|
|
1011
|
+
changeEditingSession: {
|
|
1012
|
+
parameters: {
|
|
1013
|
+
query?: never;
|
|
1014
|
+
header?: never;
|
|
1015
|
+
path: {
|
|
1016
|
+
workspaceId: string;
|
|
1017
|
+
sessionId: string;
|
|
1018
|
+
};
|
|
1019
|
+
cookie?: never;
|
|
1020
|
+
};
|
|
1021
|
+
requestBody: {
|
|
1022
|
+
content: {
|
|
1023
|
+
"application/json": {
|
|
1024
|
+
/** @enum {string} */
|
|
1025
|
+
operation: "renew" | "close" | "revoke";
|
|
1026
|
+
};
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
responses: {
|
|
1030
|
+
/** @description Current lease state. */
|
|
1031
|
+
200: {
|
|
1032
|
+
headers: {
|
|
1033
|
+
[name: string]: unknown;
|
|
1034
|
+
};
|
|
1035
|
+
content: {
|
|
1036
|
+
"application/json": {
|
|
1037
|
+
audience: string;
|
|
1038
|
+
/** Format: uuid */
|
|
1039
|
+
contentGeneration: string;
|
|
1040
|
+
expectedVersionId: string;
|
|
1041
|
+
expiresAt: number;
|
|
1042
|
+
itemId: string;
|
|
1043
|
+
leaseUntil: number;
|
|
1044
|
+
revoked: boolean;
|
|
1045
|
+
/** Format: uuid */
|
|
1046
|
+
sessionId: string;
|
|
1047
|
+
sourceVersionId: string;
|
|
1048
|
+
subject: string;
|
|
1049
|
+
workspaceId: string;
|
|
1050
|
+
writable: boolean;
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
/** @description Fresh user authority required; delegation cannot mint or renew. */
|
|
1055
|
+
401: {
|
|
1056
|
+
headers: {
|
|
1057
|
+
[name: string]: unknown;
|
|
1058
|
+
};
|
|
1059
|
+
content?: never;
|
|
1060
|
+
};
|
|
1061
|
+
/** @description Authority expired, revoked or insufficient. */
|
|
1062
|
+
403: {
|
|
1063
|
+
headers: {
|
|
1064
|
+
[name: string]: unknown;
|
|
1065
|
+
};
|
|
1066
|
+
content?: never;
|
|
1067
|
+
};
|
|
1068
|
+
/** @description Resource unavailable. */
|
|
1069
|
+
404: {
|
|
1070
|
+
headers: {
|
|
1071
|
+
[name: string]: unknown;
|
|
1072
|
+
};
|
|
1073
|
+
content?: never;
|
|
1074
|
+
};
|
|
1075
|
+
/** @description Authority changed or active-session limit reached. */
|
|
1076
|
+
409: {
|
|
1077
|
+
headers: {
|
|
1078
|
+
[name: string]: unknown;
|
|
1079
|
+
};
|
|
1080
|
+
content?: never;
|
|
1081
|
+
};
|
|
1082
|
+
/** @description Invalid input. */
|
|
1083
|
+
422: {
|
|
1084
|
+
headers: {
|
|
1085
|
+
[name: string]: unknown;
|
|
1086
|
+
};
|
|
1087
|
+
content?: never;
|
|
1088
|
+
};
|
|
1089
|
+
/** @description Persistence unavailable. */
|
|
1090
|
+
503: {
|
|
1091
|
+
headers: {
|
|
1092
|
+
[name: string]: unknown;
|
|
1093
|
+
};
|
|
1094
|
+
content?: never;
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1009
1098
|
listWorkspaceItems: {
|
|
1010
1099
|
parameters: {
|
|
1011
1100
|
query?: {
|
|
@@ -2388,6 +2477,95 @@ interface operations {
|
|
|
2388
2477
|
};
|
|
2389
2478
|
};
|
|
2390
2479
|
};
|
|
2480
|
+
createEditingSession: {
|
|
2481
|
+
parameters: {
|
|
2482
|
+
query?: never;
|
|
2483
|
+
header?: never;
|
|
2484
|
+
path: {
|
|
2485
|
+
workspaceId: string;
|
|
2486
|
+
itemId: string;
|
|
2487
|
+
};
|
|
2488
|
+
cookie?: never;
|
|
2489
|
+
};
|
|
2490
|
+
requestBody: {
|
|
2491
|
+
content: {
|
|
2492
|
+
"application/json": {
|
|
2493
|
+
audience: string;
|
|
2494
|
+
sourceVersionId?: string;
|
|
2495
|
+
writable: boolean;
|
|
2496
|
+
};
|
|
2497
|
+
};
|
|
2498
|
+
};
|
|
2499
|
+
responses: {
|
|
2500
|
+
/** @description Scoped capability; token is returned once. */
|
|
2501
|
+
201: {
|
|
2502
|
+
headers: {
|
|
2503
|
+
[name: string]: unknown;
|
|
2504
|
+
};
|
|
2505
|
+
content: {
|
|
2506
|
+
"application/json": {
|
|
2507
|
+
audience: string;
|
|
2508
|
+
/** Format: uuid */
|
|
2509
|
+
contentGeneration: string;
|
|
2510
|
+
expectedVersionId: string;
|
|
2511
|
+
expiresAt: number;
|
|
2512
|
+
itemId: string;
|
|
2513
|
+
leaseUntil: number;
|
|
2514
|
+
revoked: boolean;
|
|
2515
|
+
/** Format: uuid */
|
|
2516
|
+
sessionId: string;
|
|
2517
|
+
sourceVersionId: string;
|
|
2518
|
+
subject: string;
|
|
2519
|
+
token: string;
|
|
2520
|
+
workspaceId: string;
|
|
2521
|
+
writable: boolean;
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
};
|
|
2525
|
+
/** @description Fresh user authority required; delegation cannot mint or renew. */
|
|
2526
|
+
401: {
|
|
2527
|
+
headers: {
|
|
2528
|
+
[name: string]: unknown;
|
|
2529
|
+
};
|
|
2530
|
+
content?: never;
|
|
2531
|
+
};
|
|
2532
|
+
/** @description Authority expired, revoked or insufficient. */
|
|
2533
|
+
403: {
|
|
2534
|
+
headers: {
|
|
2535
|
+
[name: string]: unknown;
|
|
2536
|
+
};
|
|
2537
|
+
content?: never;
|
|
2538
|
+
};
|
|
2539
|
+
/** @description Resource unavailable. */
|
|
2540
|
+
404: {
|
|
2541
|
+
headers: {
|
|
2542
|
+
[name: string]: unknown;
|
|
2543
|
+
};
|
|
2544
|
+
content?: never;
|
|
2545
|
+
};
|
|
2546
|
+
/** @description Authority changed or active-session limit reached. */
|
|
2547
|
+
409: {
|
|
2548
|
+
headers: {
|
|
2549
|
+
[name: string]: unknown;
|
|
2550
|
+
};
|
|
2551
|
+
content?: never;
|
|
2552
|
+
};
|
|
2553
|
+
/** @description Invalid input. */
|
|
2554
|
+
422: {
|
|
2555
|
+
headers: {
|
|
2556
|
+
[name: string]: unknown;
|
|
2557
|
+
};
|
|
2558
|
+
content?: never;
|
|
2559
|
+
};
|
|
2560
|
+
/** @description Persistence unavailable. */
|
|
2561
|
+
503: {
|
|
2562
|
+
headers: {
|
|
2563
|
+
[name: string]: unknown;
|
|
2564
|
+
};
|
|
2565
|
+
content?: never;
|
|
2566
|
+
};
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2391
2569
|
listItemPermissions: {
|
|
2392
2570
|
parameters: {
|
|
2393
2571
|
query?: {
|
|
@@ -4184,6 +4362,7 @@ interface operations {
|
|
|
4184
4362
|
content: {
|
|
4185
4363
|
"application/json": {
|
|
4186
4364
|
byteLength: number;
|
|
4365
|
+
contentMd5?: string;
|
|
4187
4366
|
digest: string;
|
|
4188
4367
|
expectedVersionId: string;
|
|
4189
4368
|
};
|
|
@@ -4200,11 +4379,29 @@ interface operations {
|
|
|
4200
4379
|
expiresAtEpochMilliseconds: number;
|
|
4201
4380
|
itemId: string;
|
|
4202
4381
|
/** @enum {string} */
|
|
4203
|
-
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
4382
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
|
|
4204
4383
|
/** @enum {number} */
|
|
4205
4384
|
partByteLength: 33554432;
|
|
4206
4385
|
partCount: number;
|
|
4207
4386
|
revision: number;
|
|
4387
|
+
singleUpload?: {
|
|
4388
|
+
descriptor: {
|
|
4389
|
+
expectedByteLength: number;
|
|
4390
|
+
expiresAtEpochMilliseconds: number;
|
|
4391
|
+
headers: {
|
|
4392
|
+
"content-md5": string;
|
|
4393
|
+
"content-type": string;
|
|
4394
|
+
/** @enum {string} */
|
|
4395
|
+
"if-none-match": "*";
|
|
4396
|
+
};
|
|
4397
|
+
/** @enum {string} */
|
|
4398
|
+
method: "PUT";
|
|
4399
|
+
/** Format: uri */
|
|
4400
|
+
url: string;
|
|
4401
|
+
} | null;
|
|
4402
|
+
/** @enum {string} */
|
|
4403
|
+
state: "uploading" | "completing" | "ready";
|
|
4404
|
+
};
|
|
4208
4405
|
uploadId: string;
|
|
4209
4406
|
versionId: string;
|
|
4210
4407
|
};
|
|
@@ -4220,11 +4417,29 @@ interface operations {
|
|
|
4220
4417
|
expiresAtEpochMilliseconds: number;
|
|
4221
4418
|
itemId: string;
|
|
4222
4419
|
/** @enum {string} */
|
|
4223
|
-
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
4420
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
|
|
4224
4421
|
/** @enum {number} */
|
|
4225
4422
|
partByteLength: 33554432;
|
|
4226
4423
|
partCount: number;
|
|
4227
4424
|
revision: number;
|
|
4425
|
+
singleUpload?: {
|
|
4426
|
+
descriptor: {
|
|
4427
|
+
expectedByteLength: number;
|
|
4428
|
+
expiresAtEpochMilliseconds: number;
|
|
4429
|
+
headers: {
|
|
4430
|
+
"content-md5": string;
|
|
4431
|
+
"content-type": string;
|
|
4432
|
+
/** @enum {string} */
|
|
4433
|
+
"if-none-match": "*";
|
|
4434
|
+
};
|
|
4435
|
+
/** @enum {string} */
|
|
4436
|
+
method: "PUT";
|
|
4437
|
+
/** Format: uri */
|
|
4438
|
+
url: string;
|
|
4439
|
+
} | null;
|
|
4440
|
+
/** @enum {string} */
|
|
4441
|
+
state: "uploading" | "completing" | "ready";
|
|
4442
|
+
};
|
|
4228
4443
|
uploadId: string;
|
|
4229
4444
|
versionId: string;
|
|
4230
4445
|
};
|
|
@@ -5330,6 +5545,8 @@ interface operations {
|
|
|
5330
5545
|
"application/json": {
|
|
5331
5546
|
/** @description Caller-declared whole-file SHA-256 metadata; it is not archive verification evidence. */
|
|
5332
5547
|
callerDeclaredContentDigest: string;
|
|
5548
|
+
/** @description Requests a conditional single PUT for a nonempty file up to 8 MiB. */
|
|
5549
|
+
contentMd5?: string;
|
|
5333
5550
|
displayFilename: string;
|
|
5334
5551
|
expectedByteLength: number;
|
|
5335
5552
|
mediaType: string;
|
|
@@ -5350,11 +5567,29 @@ interface operations {
|
|
|
5350
5567
|
expiresAtEpochMilliseconds: number;
|
|
5351
5568
|
itemId: string;
|
|
5352
5569
|
/** @enum {string} */
|
|
5353
|
-
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
5570
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
|
|
5354
5571
|
/** @enum {number} */
|
|
5355
5572
|
partByteLength: 33554432;
|
|
5356
5573
|
partCount: number;
|
|
5357
5574
|
revision: number;
|
|
5575
|
+
singleUpload?: {
|
|
5576
|
+
descriptor: {
|
|
5577
|
+
expectedByteLength: number;
|
|
5578
|
+
expiresAtEpochMilliseconds: number;
|
|
5579
|
+
headers: {
|
|
5580
|
+
"content-md5": string;
|
|
5581
|
+
"content-type": string;
|
|
5582
|
+
/** @enum {string} */
|
|
5583
|
+
"if-none-match": "*";
|
|
5584
|
+
};
|
|
5585
|
+
/** @enum {string} */
|
|
5586
|
+
method: "PUT";
|
|
5587
|
+
/** Format: uri */
|
|
5588
|
+
url: string;
|
|
5589
|
+
} | null;
|
|
5590
|
+
/** @enum {string} */
|
|
5591
|
+
state: "uploading" | "completing" | "ready";
|
|
5592
|
+
};
|
|
5358
5593
|
uploadId: string;
|
|
5359
5594
|
versionId: string;
|
|
5360
5595
|
};
|
|
@@ -5370,11 +5605,29 @@ interface operations {
|
|
|
5370
5605
|
expiresAtEpochMilliseconds: number;
|
|
5371
5606
|
itemId: string;
|
|
5372
5607
|
/** @enum {string} */
|
|
5373
|
-
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
5608
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
|
|
5374
5609
|
/** @enum {number} */
|
|
5375
5610
|
partByteLength: 33554432;
|
|
5376
5611
|
partCount: number;
|
|
5377
5612
|
revision: number;
|
|
5613
|
+
singleUpload?: {
|
|
5614
|
+
descriptor: {
|
|
5615
|
+
expectedByteLength: number;
|
|
5616
|
+
expiresAtEpochMilliseconds: number;
|
|
5617
|
+
headers: {
|
|
5618
|
+
"content-md5": string;
|
|
5619
|
+
"content-type": string;
|
|
5620
|
+
/** @enum {string} */
|
|
5621
|
+
"if-none-match": "*";
|
|
5622
|
+
};
|
|
5623
|
+
/** @enum {string} */
|
|
5624
|
+
method: "PUT";
|
|
5625
|
+
/** Format: uri */
|
|
5626
|
+
url: string;
|
|
5627
|
+
} | null;
|
|
5628
|
+
/** @enum {string} */
|
|
5629
|
+
state: "uploading" | "completing" | "ready";
|
|
5630
|
+
};
|
|
5378
5631
|
uploadId: string;
|
|
5379
5632
|
versionId: string;
|
|
5380
5633
|
};
|
|
@@ -5566,7 +5819,7 @@ interface operations {
|
|
|
5566
5819
|
/** @enum {string} */
|
|
5567
5820
|
lifecycle: "initiating" | "recovery-required" | "uploading" | "completing" | "provider-completed" | "verifying" | "failed" | "ready" | "aborting" | "aborted";
|
|
5568
5821
|
/** @enum {string} */
|
|
5569
|
-
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
5822
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte" | "presigned-single";
|
|
5570
5823
|
nextAfterPartNumber: number | null;
|
|
5571
5824
|
partPolicy: {
|
|
5572
5825
|
/** @enum {number} */
|
|
@@ -5577,7 +5830,7 @@ interface operations {
|
|
|
5577
5830
|
};
|
|
5578
5831
|
ready: {
|
|
5579
5832
|
byteLength: number;
|
|
5580
|
-
/** @description Caller-declared whole-file SHA-256.
|
|
5833
|
+
/** @description Caller-declared whole-file SHA-256. Drive independently verifies archive bytes before publication. */
|
|
5581
5834
|
callerDeclaredContentDigest: string;
|
|
5582
5835
|
displayFilename: string;
|
|
5583
5836
|
itemId: string;
|
|
@@ -5870,7 +6123,7 @@ interface operations {
|
|
|
5870
6123
|
content: {
|
|
5871
6124
|
"application/json": {
|
|
5872
6125
|
byteLength: number;
|
|
5873
|
-
/** @description Caller-declared whole-file SHA-256.
|
|
6126
|
+
/** @description Caller-declared whole-file SHA-256. Drive independently verifies archive bytes before publication. */
|
|
5874
6127
|
callerDeclaredContentDigest: string;
|
|
5875
6128
|
displayFilename: string;
|
|
5876
6129
|
itemId: string;
|
|
@@ -6396,7 +6649,7 @@ interface operations {
|
|
|
6396
6649
|
content: {
|
|
6397
6650
|
"application/json": {
|
|
6398
6651
|
byteLength: number;
|
|
6399
|
-
/** @description Caller-declared whole-file SHA-256.
|
|
6652
|
+
/** @description Caller-declared whole-file SHA-256. Drive independently verifies archive bytes before publication. */
|
|
6400
6653
|
callerDeclaredContentDigest: string;
|
|
6401
6654
|
displayFilename: string;
|
|
6402
6655
|
itemId: string;
|
|
@@ -6630,6 +6883,34 @@ type CreateFileVersionUploadInput = Readonly<JsonRequest<"createFileVersionUploa
|
|
|
6630
6883
|
signal?: AbortSignal;
|
|
6631
6884
|
}>;
|
|
6632
6885
|
type FileAccessContext = Readonly<JsonResponse<"getFileAccessContext", 200>>;
|
|
6886
|
+
type EditingSession = Readonly<JsonResponse<"changeEditingSession", 200>>;
|
|
6887
|
+
type EditingSessionCreation = Readonly<JsonResponse<"createEditingSession", 201>>;
|
|
6888
|
+
type CreateEditingSessionInput = GetItemInput & Readonly<JsonRequest<"createEditingSession">>;
|
|
6889
|
+
interface ChangeEditingSessionInput {
|
|
6890
|
+
readonly workspaceId: string;
|
|
6891
|
+
readonly sessionId: string;
|
|
6892
|
+
readonly signal?: AbortSignal;
|
|
6893
|
+
}
|
|
6894
|
+
interface DriveEditingClientConfig {
|
|
6895
|
+
readonly baseUrl: string;
|
|
6896
|
+
readonly token: string;
|
|
6897
|
+
readonly audience: string;
|
|
6898
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
6899
|
+
readonly timeoutMilliseconds?: number;
|
|
6900
|
+
}
|
|
6901
|
+
type DriveEditingServerClient = Pick<DriveOperations, "getFileAccessContext" | "createDownload" | "downloadItem" | "createFileVersionUpload" | "commitFileVersion" | "getUploadStatus" | "createUploadPartDescriptor" | "recordUploadPart" | "abortUpload">;
|
|
6902
|
+
interface EditingFileMetadata {
|
|
6903
|
+
readonly parentItemId: string;
|
|
6904
|
+
readonly displayFilename: string;
|
|
6905
|
+
readonly mediaType: string;
|
|
6906
|
+
readonly protectionClassification: ProtectionClassification;
|
|
6907
|
+
}
|
|
6908
|
+
type EditingFileVersionInput = UploadFileVersionInput & {
|
|
6909
|
+
readonly metadata: EditingFileMetadata;
|
|
6910
|
+
};
|
|
6911
|
+
type DriveEditingClient = DriveEditingServerClient & {
|
|
6912
|
+
uploadFileVersion(input: EditingFileVersionInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
|
|
6913
|
+
};
|
|
6633
6914
|
type CommitFileVersionInput = Readonly<JsonRequest<"commitFileVersion"> & {
|
|
6634
6915
|
workspaceId: string;
|
|
6635
6916
|
itemId: string;
|
|
@@ -6695,6 +6976,7 @@ type IncomingSharePage = Readonly<{
|
|
|
6695
6976
|
nextCursor: string | null;
|
|
6696
6977
|
}>;
|
|
6697
6978
|
interface ListIncomingSharesInput {
|
|
6979
|
+
readonly mediaTypes?: readonly string[];
|
|
6698
6980
|
readonly limit?: number;
|
|
6699
6981
|
readonly cursor?: string;
|
|
6700
6982
|
readonly signal?: AbortSignal;
|
|
@@ -6946,6 +7228,10 @@ interface GetCurrentWorkspaceInput {
|
|
|
6946
7228
|
readonly signal?: AbortSignal;
|
|
6947
7229
|
}
|
|
6948
7230
|
interface DriveOperations {
|
|
7231
|
+
createEditingSession(input: CreateEditingSessionInput): Promise<DriveOperationResult<EditingSessionCreation, 201>>;
|
|
7232
|
+
renewEditingSession(input: ChangeEditingSessionInput): Promise<DriveOperationResult<EditingSession, 200>>;
|
|
7233
|
+
closeEditingSession(input: ChangeEditingSessionInput): Promise<DriveOperationResult<EditingSession, 200>>;
|
|
7234
|
+
revokeEditingSession(input: ChangeEditingSessionInput): Promise<DriveOperationResult<EditingSession, 200>>;
|
|
6949
7235
|
getFileAccessContext(input: GetItemInput): Promise<DriveOperationResult<FileAccessContext, 200>>;
|
|
6950
7236
|
createFileVersionUpload(input: CreateFileVersionUploadInput): Promise<DriveOperationResult<UploadSession, 200 | 201>>;
|
|
6951
7237
|
commitFileVersion(input: CommitFileVersionInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
|
|
@@ -7035,4 +7321,4 @@ interface DriveClient extends DriveOperations {
|
|
|
7035
7321
|
uploadFile(input: UploadFileInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
|
|
7036
7322
|
}
|
|
7037
7323
|
//#endregion
|
|
7038
|
-
export {
|
|
7324
|
+
export { ListItemVersionsInput as $, WorkspaceUsage as $t, DriveVisitorClientConfig as A, UploadConfirmedPart as At, GetCurrentWorkspaceInput as B, VisitorChildren as Bt, DriveEditingServerClient as C, RevokeItemPermissionInput as Ct, DriveServerClient as D, UpdateItemInput as Dt, DriveResponseValidators as E, TrashItemInput as Et, EffectivePermissionAction as F, UploadFileVersionInput as Ft, GetWorkspaceUsageInput as G, VisitorGrantPage as Gt, GetItemVersionInput as H, VisitorDownloadInput as Ht, EffectivePermissionResponse as I, UploadPartDescriptor as It, ItemSharingPeoplePage as J, VisitorSession as Jt, IncomingShareContext as K, VisitorItem as Kt, FileAccessContext as L, UploadPartResult as Lt, EditingFileVersionInput as M, UploadFilePhase as Mt, EditingSession as N, UploadFileProgress as Nt, DriveServerClientConfig as O, UpdateItemPermissionInput as Ot, EditingSessionCreation as P, UploadFileProgressCallback as Pt, ListItemSharingPeopleInput as Q, WorkspaceItemSearchPage as Qt, FolderItem as R, UploadSession as Rt, DriveEditingClientConfig as S, RestoreItemVersionInput as St, DriveOperations as T, SearchWorkspaceItemsInput as Tt, GetUploadStatusInput as U, VisitorGrant as Ut, GetItemInput as V, VisitorChildrenInput as Vt, GetVisitorGrantInput as W, VisitorGrantCreation as Wt, ListIncomingSharesInput as X, WorkspaceDiscoveryPage as Xt, ListFolderChildrenInput as Y, WorkspaceDiscoveryItem as Yt, ListItemPermissionsInput as Z, WorkspaceItemSearchItem as Zt, DriveClient as _, ReadyUpload as _t, CreateDownloadInput as a, ManagedItemVersionPage as at, DriveCredentialProvider as b, RegisteredRecipientDisplay as bt, CreateFolderInput as c, ManagedLifecycleItem as ct, CreateUploadPartDescriptorInput as d, PermissionGrant as dt, operations as en, ListWorkspaceItemsInput as et, CreateVisitorGrantInput as f, PermissionGrantee as ft, DownloadItemResult as g, ReadEffectiveItemPermissionsInput as gt, DeleteItemInput as h, ProtectionClassification as ht, CompleteUploadInput as i, ManagedItemVersion as it, EditingFileMetadata as j, UploadFileInput as jt, DriveVisitorClient as k, UploadCompletion as kt, CreateItemPermissionInput as l, PendingUpload as lt, CurrentWorkspaceSources as m, PermissionPage as mt, ChangeEditingSessionInput as n, ManagedDownloadRestorePending as nt, CreateEditingSessionInput as o, ManagedItemVersionResource as ot, CurrentWorkspace as p, PermissionMutation as pt, IncomingSharePage as q, VisitorReadInput as qt, CommitFileVersionInput as r, ManagedItemMetadata as rt, CreateFileVersionUploadInput as s, ManagedItemVersionRestoreResult as st, AbortUploadInput as t, ManagedDownloadDescriptor as tt, CreateUploadInput as u, PermissionAction as ut, DriveClientConfig as v, RecordUploadPartInput as vt, DriveOperationResult as w, RevokeVisitorGrantInput as wt, DriveEditingClient as x, RestoreItemInput as xt, DriveCredentialContext as y, RegisterItemRecipientInput as yt, FolderPage as z, UploadStatus as zt };
|
package/dist/contract2.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as DriveVisitorClientConfig, k as DriveVisitorClient } from "./contract.js";
|
|
2
2
|
//#region src/internal/client/visitors.d.ts
|
|
3
3
|
declare function createDriveVisitorClient(config: DriveVisitorClientConfig): DriveVisitorClient;
|
|
4
4
|
declare function createVisitorSessionToken(): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as ListItemVersionsInput, $t as WorkspaceUsage, A as DriveVisitorClientConfig, At as UploadConfirmedPart, B as GetCurrentWorkspaceInput, Bt as VisitorChildren, Ct as RevokeItemPermissionInput, Dt as UpdateItemInput, E as DriveResponseValidators, Et as TrashItemInput, F as EffectivePermissionAction, Ft as UploadFileVersionInput, G as GetWorkspaceUsageInput, Gt as VisitorGrantPage, H as GetItemVersionInput, Ht as VisitorDownloadInput, It as UploadPartDescriptor, Jt as VisitorSession, Kt as VisitorItem, L as FileAccessContext, Lt as UploadPartResult, M as EditingFileVersionInput, Mt as UploadFilePhase, N as EditingSession, Nt as UploadFileProgress, Ot as UpdateItemPermissionInput, P as EditingSessionCreation, Pt as UploadFileProgressCallback, Qt as WorkspaceItemSearchPage, R as FolderItem, Rt as UploadSession, S as DriveEditingClientConfig, St as RestoreItemVersionInput, T as DriveOperations, Tt as SearchWorkspaceItemsInput, U as GetUploadStatusInput, Ut as VisitorGrant, V as GetItemInput, Vt as VisitorChildrenInput, W as GetVisitorGrantInput, Wt as VisitorGrantCreation, Xt as WorkspaceDiscoveryPage, Y as ListFolderChildrenInput, Yt as WorkspaceDiscoveryItem, Z as ListItemPermissionsInput, Zt as WorkspaceItemSearchItem, _ as DriveClient, _t as ReadyUpload, a as CreateDownloadInput, at as ManagedItemVersionPage, b as DriveCredentialProvider, c as CreateFolderInput, ct as ManagedLifecycleItem, d as CreateUploadPartDescriptorInput, dt as PermissionGrant, et as ListWorkspaceItemsInput, f as CreateVisitorGrantInput, ft as PermissionGrantee, g as DownloadItemResult, gt as ReadEffectiveItemPermissionsInput, h as DeleteItemInput, ht as ProtectionClassification, i as CompleteUploadInput, it as ManagedItemVersion, j as EditingFileMetadata, jt as UploadFileInput, k as DriveVisitorClient, kt as UploadCompletion, l as CreateItemPermissionInput, lt as PendingUpload, m as CurrentWorkspaceSources, n as ChangeEditingSessionInput, nt as ManagedDownloadRestorePending, o as CreateEditingSessionInput, ot as ManagedItemVersionResource, p as CurrentWorkspace, pt as PermissionMutation, qt as VisitorReadInput, r as CommitFileVersionInput, rt as ManagedItemMetadata, s as CreateFileVersionUploadInput, st as ManagedItemVersionRestoreResult, t as AbortUploadInput, tt as ManagedDownloadDescriptor, u as CreateUploadInput, ut as PermissionAction, v as DriveClientConfig, vt as RecordUploadPartInput, w as DriveOperationResult, wt as RevokeVisitorGrantInput, x as DriveEditingClient, xt as RestoreItemInput, z as FolderPage, zt as UploadStatus } from "./contract.js";
|
|
2
2
|
import { DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, DriveApiErrorCode, DriveError, DriveErrorCode, DriveSdkErrorCode } from "./core.js";
|
|
3
3
|
import { n as createVisitorSessionToken, t as createDriveVisitorClient } from "./contract2.js";
|
|
4
|
-
import { createDriveClient } from "./client.js";
|
|
5
|
-
export { type AbortUploadInput, type CommitFileVersionInput, type CompleteUploadInput, type CreateDownloadInput, type CreateFileVersionUploadInput, type CreateFolderInput, type CreateItemPermissionInput, type CreateUploadInput, type CreateUploadPartDescriptorInput, type CreateVisitorGrantInput, type CurrentWorkspace, type CurrentWorkspaceSources, DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, type DeleteItemInput, type DownloadItemResult, type DriveApiErrorCode, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, DriveError, type DriveErrorCode, type DriveOperationResult, type DriveOperations, type DriveResponseValidators, type DriveSdkErrorCode, type DriveVisitorClient, type DriveVisitorClientConfig, type EffectivePermissionAction, type FileAccessContext, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetUploadStatusInput, type GetVisitorGrantInput, type GetWorkspaceUsageInput, type ListFolderChildrenInput, type ListItemPermissionsInput, type ListItemVersionsInput, type ListWorkspaceItemsInput, type ManagedDownloadDescriptor, type ManagedDownloadRestorePending, type ManagedItemMetadata, type ManagedItemVersion, type ManagedItemVersionPage, type ManagedItemVersionResource, type ManagedItemVersionRestoreResult, type ManagedLifecycleItem, type PendingUpload, type PermissionAction, type PermissionGrant, type PermissionGrantee, type PermissionMutation, type ProtectionClassification, type ReadEffectiveItemPermissionsInput, type ReadyUpload, type RecordUploadPartInput, type RestoreItemInput, type RestoreItemVersionInput, type RevokeItemPermissionInput, type RevokeVisitorGrantInput, type SearchWorkspaceItemsInput, type TrashItemInput, type UpdateItemInput, type UpdateItemPermissionInput, type UploadCompletion, type UploadConfirmedPart, type UploadFileInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadFileVersionInput, type UploadPartDescriptor, type UploadPartResult, type UploadSession, type UploadStatus, 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 WorkspaceUsage, createDriveClient, createDriveVisitorClient, createVisitorSessionToken };
|
|
4
|
+
import { createDriveClient, createDriveEditingClient } from "./client.js";
|
|
5
|
+
export { type AbortUploadInput, type ChangeEditingSessionInput, type CommitFileVersionInput, type CompleteUploadInput, type CreateDownloadInput, type CreateEditingSessionInput, type CreateFileVersionUploadInput, type CreateFolderInput, type CreateItemPermissionInput, type CreateUploadInput, type CreateUploadPartDescriptorInput, type CreateVisitorGrantInput, type CurrentWorkspace, type CurrentWorkspaceSources, DRIVE_API_ERROR_CODES, DRIVE_API_ERROR_MESSAGES, type DeleteItemInput, type DownloadItemResult, type DriveApiErrorCode, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, type DriveEditingClient, type DriveEditingClientConfig, DriveError, type DriveErrorCode, type DriveOperationResult, type DriveOperations, type DriveResponseValidators, type DriveSdkErrorCode, type DriveVisitorClient, type DriveVisitorClientConfig, type EditingFileMetadata, type EditingFileVersionInput, type EditingSession, type EditingSessionCreation, type EffectivePermissionAction, type FileAccessContext, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetUploadStatusInput, type GetVisitorGrantInput, type GetWorkspaceUsageInput, type ListFolderChildrenInput, type ListItemPermissionsInput, type ListItemVersionsInput, type ListWorkspaceItemsInput, type ManagedDownloadDescriptor, type ManagedDownloadRestorePending, type ManagedItemMetadata, type ManagedItemVersion, type ManagedItemVersionPage, type ManagedItemVersionResource, type ManagedItemVersionRestoreResult, type ManagedLifecycleItem, type PendingUpload, type PermissionAction, type PermissionGrant, type PermissionGrantee, type PermissionMutation, type ProtectionClassification, type ReadEffectiveItemPermissionsInput, type ReadyUpload, type RecordUploadPartInput, type RestoreItemInput, type RestoreItemVersionInput, type RevokeItemPermissionInput, type RevokeVisitorGrantInput, type SearchWorkspaceItemsInput, type TrashItemInput, type UpdateItemInput, type UpdateItemPermissionInput, type UploadCompletion, type UploadConfirmedPart, type UploadFileInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadFileVersionInput, type UploadPartDescriptor, type UploadPartResult, type UploadSession, type UploadStatus, 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 WorkspaceUsage, createDriveClient, createDriveEditingClient, createDriveVisitorClient, createVisitorSessionToken };
|