@finueva/drive 0.13.0 → 0.14.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 +9 -0
- package/README.md +13 -0
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/contract.d.ts +444 -1
- package/dist/contract2.d.ts +1 -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
|
@@ -729,6 +729,138 @@ interface operations {
|
|
|
729
729
|
};
|
|
730
730
|
};
|
|
731
731
|
};
|
|
732
|
+
ensureOrganizationWorkspaceAccess: {
|
|
733
|
+
parameters: {
|
|
734
|
+
query?: never;
|
|
735
|
+
header?: never;
|
|
736
|
+
path?: never;
|
|
737
|
+
cookie?: never;
|
|
738
|
+
};
|
|
739
|
+
requestBody?: never;
|
|
740
|
+
responses: {
|
|
741
|
+
/** @description Current workspace is accessible to the verified organization subject. */
|
|
742
|
+
200: {
|
|
743
|
+
headers: {
|
|
744
|
+
[name: string]: unknown;
|
|
745
|
+
};
|
|
746
|
+
content: {
|
|
747
|
+
"application/json": {
|
|
748
|
+
rootItemId: string;
|
|
749
|
+
rootVolumeId: string;
|
|
750
|
+
workspaceId: string;
|
|
751
|
+
workspaceReference: {
|
|
752
|
+
/** @enum {string} */
|
|
753
|
+
type: "personal";
|
|
754
|
+
userId: string;
|
|
755
|
+
} | {
|
|
756
|
+
organizationId: string;
|
|
757
|
+
/** @enum {string} */
|
|
758
|
+
type: "organization";
|
|
759
|
+
};
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
/** @description A valid user credential is required. */
|
|
764
|
+
401: {
|
|
765
|
+
headers: {
|
|
766
|
+
[name: string]: unknown;
|
|
767
|
+
};
|
|
768
|
+
content: {
|
|
769
|
+
"application/json": {
|
|
770
|
+
error: {
|
|
771
|
+
/** @enum {string} */
|
|
772
|
+
code: "authentication_required";
|
|
773
|
+
details: Record<string, never>;
|
|
774
|
+
/** @enum {string} */
|
|
775
|
+
message: "Authentication is required.";
|
|
776
|
+
requestId: string;
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
/** @description Organization context is required or storage is disabled. */
|
|
782
|
+
403: {
|
|
783
|
+
headers: {
|
|
784
|
+
[name: string]: unknown;
|
|
785
|
+
};
|
|
786
|
+
content: {
|
|
787
|
+
"application/json": {
|
|
788
|
+
error: {
|
|
789
|
+
/** @enum {string} */
|
|
790
|
+
code: "permission_denied";
|
|
791
|
+
details: Record<string, never>;
|
|
792
|
+
/** @enum {string} */
|
|
793
|
+
message: "The requested action is not permitted.";
|
|
794
|
+
requestId: string;
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
/** @description The selected workspace is not provisioned. */
|
|
800
|
+
404: {
|
|
801
|
+
headers: {
|
|
802
|
+
[name: string]: unknown;
|
|
803
|
+
};
|
|
804
|
+
content: {
|
|
805
|
+
"application/json": {
|
|
806
|
+
error: {
|
|
807
|
+
/** @enum {string} */
|
|
808
|
+
code: "resource_not_found";
|
|
809
|
+
details: Record<string, never>;
|
|
810
|
+
/** @enum {string} */
|
|
811
|
+
message: "The requested resource was not found.";
|
|
812
|
+
requestId: string;
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
/** @description Body and query input are not accepted. */
|
|
818
|
+
422: {
|
|
819
|
+
headers: {
|
|
820
|
+
[name: string]: unknown;
|
|
821
|
+
};
|
|
822
|
+
content: {
|
|
823
|
+
"application/json": {
|
|
824
|
+
error: {
|
|
825
|
+
/** @enum {string} */
|
|
826
|
+
code: "invalid_request";
|
|
827
|
+
details: Record<string, never>;
|
|
828
|
+
/** @enum {string} */
|
|
829
|
+
message: "The request is invalid.";
|
|
830
|
+
requestId: string;
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
/** @description Authority or canonical storage state is unavailable. */
|
|
836
|
+
503: {
|
|
837
|
+
headers: {
|
|
838
|
+
[name: string]: unknown;
|
|
839
|
+
};
|
|
840
|
+
content: {
|
|
841
|
+
"application/json": {
|
|
842
|
+
error: {
|
|
843
|
+
/** @enum {string} */
|
|
844
|
+
code: "identity_authority_unavailable";
|
|
845
|
+
details: Record<string, never>;
|
|
846
|
+
/** @enum {string} */
|
|
847
|
+
message: "Authentication is temporarily unavailable.";
|
|
848
|
+
requestId: string;
|
|
849
|
+
};
|
|
850
|
+
} | {
|
|
851
|
+
error: {
|
|
852
|
+
/** @enum {string} */
|
|
853
|
+
code: "service_unavailable";
|
|
854
|
+
details: Record<string, never>;
|
|
855
|
+
/** @enum {string} */
|
|
856
|
+
message: "The service is temporarily unavailable.";
|
|
857
|
+
requestId: string;
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
};
|
|
732
864
|
getCurrentWorkspaceSources: {
|
|
733
865
|
parameters: {
|
|
734
866
|
query?: never;
|
|
@@ -880,6 +1012,8 @@ interface operations {
|
|
|
880
1012
|
view?: "recent" | "shared" | "trash";
|
|
881
1013
|
kind?: "file" | "folder";
|
|
882
1014
|
creatorUserId?: string;
|
|
1015
|
+
/** @description Comma-separated exact lowercase media types (1–16 unique values). Matches published current file versions, not filename extensions. */
|
|
1016
|
+
mediaTypes?: string;
|
|
883
1017
|
limit?: number;
|
|
884
1018
|
cursor?: string;
|
|
885
1019
|
};
|
|
@@ -1576,6 +1710,74 @@ interface operations {
|
|
|
1576
1710
|
};
|
|
1577
1711
|
};
|
|
1578
1712
|
};
|
|
1713
|
+
getFileAccessContext: {
|
|
1714
|
+
parameters: {
|
|
1715
|
+
query?: never;
|
|
1716
|
+
header?: never;
|
|
1717
|
+
path: {
|
|
1718
|
+
workspaceId: string;
|
|
1719
|
+
itemId: string;
|
|
1720
|
+
};
|
|
1721
|
+
cookie?: never;
|
|
1722
|
+
};
|
|
1723
|
+
requestBody?: never;
|
|
1724
|
+
responses: {
|
|
1725
|
+
/** @description Current file version, generation and access snapshot; not a write credential. */
|
|
1726
|
+
200: {
|
|
1727
|
+
headers: {
|
|
1728
|
+
[name: string]: unknown;
|
|
1729
|
+
};
|
|
1730
|
+
content: {
|
|
1731
|
+
"application/json": {
|
|
1732
|
+
canRead: boolean;
|
|
1733
|
+
canWrite: boolean;
|
|
1734
|
+
/** Format: uuid */
|
|
1735
|
+
contentGeneration: string | null;
|
|
1736
|
+
itemId: string;
|
|
1737
|
+
subject: string;
|
|
1738
|
+
validUntil: number;
|
|
1739
|
+
versionId: string;
|
|
1740
|
+
workspaceId: string;
|
|
1741
|
+
};
|
|
1742
|
+
};
|
|
1743
|
+
};
|
|
1744
|
+
/** @description User authentication required. */
|
|
1745
|
+
401: {
|
|
1746
|
+
headers: {
|
|
1747
|
+
[name: string]: unknown;
|
|
1748
|
+
};
|
|
1749
|
+
content?: never;
|
|
1750
|
+
};
|
|
1751
|
+
/** @description File unavailable. */
|
|
1752
|
+
404: {
|
|
1753
|
+
headers: {
|
|
1754
|
+
[name: string]: unknown;
|
|
1755
|
+
};
|
|
1756
|
+
content?: never;
|
|
1757
|
+
};
|
|
1758
|
+
/** @description Authority changed. */
|
|
1759
|
+
409: {
|
|
1760
|
+
headers: {
|
|
1761
|
+
[name: string]: unknown;
|
|
1762
|
+
};
|
|
1763
|
+
content?: never;
|
|
1764
|
+
};
|
|
1765
|
+
/** @description Invalid request. */
|
|
1766
|
+
422: {
|
|
1767
|
+
headers: {
|
|
1768
|
+
[name: string]: unknown;
|
|
1769
|
+
};
|
|
1770
|
+
content?: never;
|
|
1771
|
+
};
|
|
1772
|
+
/** @description Authority unavailable. */
|
|
1773
|
+
503: {
|
|
1774
|
+
headers: {
|
|
1775
|
+
[name: string]: unknown;
|
|
1776
|
+
};
|
|
1777
|
+
content?: never;
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1579
1781
|
listFolderChildren: {
|
|
1580
1782
|
parameters: {
|
|
1581
1783
|
query?: {
|
|
@@ -3965,6 +4167,113 @@ interface operations {
|
|
|
3965
4167
|
};
|
|
3966
4168
|
};
|
|
3967
4169
|
};
|
|
4170
|
+
createFileVersionUpload: {
|
|
4171
|
+
parameters: {
|
|
4172
|
+
query?: never;
|
|
4173
|
+
header: {
|
|
4174
|
+
"Idempotency-Key": string;
|
|
4175
|
+
"If-Match": string;
|
|
4176
|
+
};
|
|
4177
|
+
path: {
|
|
4178
|
+
workspaceId: string;
|
|
4179
|
+
itemId: string;
|
|
4180
|
+
};
|
|
4181
|
+
cookie?: never;
|
|
4182
|
+
};
|
|
4183
|
+
requestBody: {
|
|
4184
|
+
content: {
|
|
4185
|
+
"application/json": {
|
|
4186
|
+
byteLength: number;
|
|
4187
|
+
digest: string;
|
|
4188
|
+
expectedVersionId: string;
|
|
4189
|
+
};
|
|
4190
|
+
};
|
|
4191
|
+
};
|
|
4192
|
+
responses: {
|
|
4193
|
+
/** @description Exact replay of the admitted checkpoint upload. */
|
|
4194
|
+
200: {
|
|
4195
|
+
headers: {
|
|
4196
|
+
[name: string]: unknown;
|
|
4197
|
+
};
|
|
4198
|
+
content: {
|
|
4199
|
+
"application/json": {
|
|
4200
|
+
expiresAtEpochMilliseconds: number;
|
|
4201
|
+
itemId: string;
|
|
4202
|
+
/** @enum {string} */
|
|
4203
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
4204
|
+
/** @enum {number} */
|
|
4205
|
+
partByteLength: 33554432;
|
|
4206
|
+
partCount: number;
|
|
4207
|
+
revision: number;
|
|
4208
|
+
uploadId: string;
|
|
4209
|
+
versionId: string;
|
|
4210
|
+
};
|
|
4211
|
+
};
|
|
4212
|
+
};
|
|
4213
|
+
/** @description New checkpoint upload using ordinary archive multipart operations. */
|
|
4214
|
+
201: {
|
|
4215
|
+
headers: {
|
|
4216
|
+
[name: string]: unknown;
|
|
4217
|
+
};
|
|
4218
|
+
content: {
|
|
4219
|
+
"application/json": {
|
|
4220
|
+
expiresAtEpochMilliseconds: number;
|
|
4221
|
+
itemId: string;
|
|
4222
|
+
/** @enum {string} */
|
|
4223
|
+
mode: "presigned-multipart" | "server-mediated-zero-byte";
|
|
4224
|
+
/** @enum {number} */
|
|
4225
|
+
partByteLength: 33554432;
|
|
4226
|
+
partCount: number;
|
|
4227
|
+
revision: number;
|
|
4228
|
+
uploadId: string;
|
|
4229
|
+
versionId: string;
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
4232
|
+
};
|
|
4233
|
+
/** @description Drive user authentication required. */
|
|
4234
|
+
401: {
|
|
4235
|
+
headers: {
|
|
4236
|
+
[name: string]: unknown;
|
|
4237
|
+
};
|
|
4238
|
+
content?: never;
|
|
4239
|
+
};
|
|
4240
|
+
/** @description Current file update permission required. */
|
|
4241
|
+
403: {
|
|
4242
|
+
headers: {
|
|
4243
|
+
[name: string]: unknown;
|
|
4244
|
+
};
|
|
4245
|
+
content?: never;
|
|
4246
|
+
};
|
|
4247
|
+
/** @description File or upload unavailable. */
|
|
4248
|
+
404: {
|
|
4249
|
+
headers: {
|
|
4250
|
+
[name: string]: unknown;
|
|
4251
|
+
};
|
|
4252
|
+
content?: never;
|
|
4253
|
+
};
|
|
4254
|
+
/** @description Expected version, quota or idempotency conflict. */
|
|
4255
|
+
409: {
|
|
4256
|
+
headers: {
|
|
4257
|
+
[name: string]: unknown;
|
|
4258
|
+
};
|
|
4259
|
+
content?: never;
|
|
4260
|
+
};
|
|
4261
|
+
/** @description Invalid conditional version request. */
|
|
4262
|
+
422: {
|
|
4263
|
+
headers: {
|
|
4264
|
+
[name: string]: unknown;
|
|
4265
|
+
};
|
|
4266
|
+
content?: never;
|
|
4267
|
+
};
|
|
4268
|
+
/** @description Archive or persistence unavailable; retain operation identity for retry. */
|
|
4269
|
+
503: {
|
|
4270
|
+
headers: {
|
|
4271
|
+
[name: string]: unknown;
|
|
4272
|
+
};
|
|
4273
|
+
content?: never;
|
|
4274
|
+
};
|
|
4275
|
+
};
|
|
4276
|
+
};
|
|
3968
4277
|
listItemVersions: {
|
|
3969
4278
|
parameters: {
|
|
3970
4279
|
query?: {
|
|
@@ -6058,6 +6367,109 @@ interface operations {
|
|
|
6058
6367
|
};
|
|
6059
6368
|
};
|
|
6060
6369
|
};
|
|
6370
|
+
commitFileVersion: {
|
|
6371
|
+
parameters: {
|
|
6372
|
+
query?: never;
|
|
6373
|
+
header: {
|
|
6374
|
+
"Idempotency-Key": string;
|
|
6375
|
+
"If-Match": string;
|
|
6376
|
+
};
|
|
6377
|
+
path: {
|
|
6378
|
+
workspaceId: string;
|
|
6379
|
+
uploadId: string;
|
|
6380
|
+
};
|
|
6381
|
+
cookie?: never;
|
|
6382
|
+
};
|
|
6383
|
+
requestBody: {
|
|
6384
|
+
content: {
|
|
6385
|
+
"application/json": {
|
|
6386
|
+
expectedVersionId: string;
|
|
6387
|
+
};
|
|
6388
|
+
};
|
|
6389
|
+
};
|
|
6390
|
+
responses: {
|
|
6391
|
+
/** @description Archive verified and exact-version checkpoint committed or replayed. */
|
|
6392
|
+
200: {
|
|
6393
|
+
headers: {
|
|
6394
|
+
[name: string]: unknown;
|
|
6395
|
+
};
|
|
6396
|
+
content: {
|
|
6397
|
+
"application/json": {
|
|
6398
|
+
byteLength: number;
|
|
6399
|
+
/** @description Caller-declared whole-file SHA-256. Portable profiles independently verify file bytes before publication; legacy profiles retain provider-checksum semantics. */
|
|
6400
|
+
callerDeclaredContentDigest: string;
|
|
6401
|
+
displayFilename: string;
|
|
6402
|
+
itemId: string;
|
|
6403
|
+
mediaType: string;
|
|
6404
|
+
/** @enum {string} */
|
|
6405
|
+
state: "ready";
|
|
6406
|
+
uploadId: string;
|
|
6407
|
+
versionId: string;
|
|
6408
|
+
};
|
|
6409
|
+
};
|
|
6410
|
+
};
|
|
6411
|
+
/** @description Archive hash verification still pending; retain the same operation identity. */
|
|
6412
|
+
202: {
|
|
6413
|
+
headers: {
|
|
6414
|
+
[name: string]: unknown;
|
|
6415
|
+
};
|
|
6416
|
+
content: {
|
|
6417
|
+
"application/json": {
|
|
6418
|
+
itemId: string;
|
|
6419
|
+
/** @enum {string} */
|
|
6420
|
+
state: "verifying";
|
|
6421
|
+
totalByteLength: number;
|
|
6422
|
+
uploadId: string;
|
|
6423
|
+
verificationRevision: number;
|
|
6424
|
+
verifiedByteLength: number;
|
|
6425
|
+
versionId: string;
|
|
6426
|
+
};
|
|
6427
|
+
};
|
|
6428
|
+
};
|
|
6429
|
+
/** @description Drive user authentication required. */
|
|
6430
|
+
401: {
|
|
6431
|
+
headers: {
|
|
6432
|
+
[name: string]: unknown;
|
|
6433
|
+
};
|
|
6434
|
+
content?: never;
|
|
6435
|
+
};
|
|
6436
|
+
/** @description Current file update permission required. */
|
|
6437
|
+
403: {
|
|
6438
|
+
headers: {
|
|
6439
|
+
[name: string]: unknown;
|
|
6440
|
+
};
|
|
6441
|
+
content?: never;
|
|
6442
|
+
};
|
|
6443
|
+
/** @description File or upload unavailable. */
|
|
6444
|
+
404: {
|
|
6445
|
+
headers: {
|
|
6446
|
+
[name: string]: unknown;
|
|
6447
|
+
};
|
|
6448
|
+
content?: never;
|
|
6449
|
+
};
|
|
6450
|
+
/** @description Expected version, quota or idempotency conflict. */
|
|
6451
|
+
409: {
|
|
6452
|
+
headers: {
|
|
6453
|
+
[name: string]: unknown;
|
|
6454
|
+
};
|
|
6455
|
+
content?: never;
|
|
6456
|
+
};
|
|
6457
|
+
/** @description Invalid conditional version request. */
|
|
6458
|
+
422: {
|
|
6459
|
+
headers: {
|
|
6460
|
+
[name: string]: unknown;
|
|
6461
|
+
};
|
|
6462
|
+
content?: never;
|
|
6463
|
+
};
|
|
6464
|
+
/** @description Archive or persistence unavailable; retain operation identity for retry. */
|
|
6465
|
+
503: {
|
|
6466
|
+
headers: {
|
|
6467
|
+
[name: string]: unknown;
|
|
6468
|
+
};
|
|
6469
|
+
content?: never;
|
|
6470
|
+
};
|
|
6471
|
+
};
|
|
6472
|
+
};
|
|
6061
6473
|
getWorkspaceUsage: {
|
|
6062
6474
|
parameters: {
|
|
6063
6475
|
query?: never;
|
|
@@ -6211,6 +6623,20 @@ type JsonRequest<Name extends keyof operations> = operations[Name] extends {
|
|
|
6211
6623
|
};
|
|
6212
6624
|
};
|
|
6213
6625
|
} ? Body : never;
|
|
6626
|
+
type CreateFileVersionUploadInput = Readonly<JsonRequest<"createFileVersionUpload"> & {
|
|
6627
|
+
workspaceId: string;
|
|
6628
|
+
itemId: string;
|
|
6629
|
+
idempotencyKey: string;
|
|
6630
|
+
signal?: AbortSignal;
|
|
6631
|
+
}>;
|
|
6632
|
+
type FileAccessContext = Readonly<JsonResponse<"getFileAccessContext", 200>>;
|
|
6633
|
+
type CommitFileVersionInput = Readonly<JsonRequest<"commitFileVersion"> & {
|
|
6634
|
+
workspaceId: string;
|
|
6635
|
+
itemId: string;
|
|
6636
|
+
uploadId: string;
|
|
6637
|
+
idempotencyKey: string;
|
|
6638
|
+
signal?: AbortSignal;
|
|
6639
|
+
}>;
|
|
6214
6640
|
type ResourcePath = operations["listFolderChildren"]["parameters"]["path"];
|
|
6215
6641
|
type PageQuery = NonNullable<operations["listFolderChildren"]["parameters"]["query"]>;
|
|
6216
6642
|
type SearchWorkspaceItemsPath = operations["searchWorkspaceItems"]["parameters"]["path"];
|
|
@@ -6290,6 +6716,7 @@ interface GetWorkspaceUsageInput {
|
|
|
6290
6716
|
readonly signal?: AbortSignal;
|
|
6291
6717
|
}
|
|
6292
6718
|
interface ListWorkspaceItemsInput extends GetWorkspaceUsageInput {
|
|
6719
|
+
readonly mediaTypes?: readonly string[];
|
|
6293
6720
|
readonly view?: "recent" | "shared" | "trash";
|
|
6294
6721
|
readonly kind?: "file" | "folder";
|
|
6295
6722
|
readonly creatorUserId?: string;
|
|
@@ -6505,10 +6932,23 @@ interface UploadFileInput {
|
|
|
6505
6932
|
readonly signal?: AbortSignal;
|
|
6506
6933
|
readonly onProgress?: UploadFileProgressCallback;
|
|
6507
6934
|
}
|
|
6935
|
+
interface UploadFileVersionInput {
|
|
6936
|
+
readonly workspaceId: string;
|
|
6937
|
+
readonly itemId: string;
|
|
6938
|
+
readonly expectedVersionId: string;
|
|
6939
|
+
readonly source: Blob;
|
|
6940
|
+
readonly idempotencyKey: string;
|
|
6941
|
+
readonly completionIdempotencyKey: string;
|
|
6942
|
+
readonly signal?: AbortSignal;
|
|
6943
|
+
readonly onProgress?: UploadFileProgressCallback;
|
|
6944
|
+
}
|
|
6508
6945
|
interface GetCurrentWorkspaceInput {
|
|
6509
6946
|
readonly signal?: AbortSignal;
|
|
6510
6947
|
}
|
|
6511
6948
|
interface DriveOperations {
|
|
6949
|
+
getFileAccessContext(input: GetItemInput): Promise<DriveOperationResult<FileAccessContext, 200>>;
|
|
6950
|
+
createFileVersionUpload(input: CreateFileVersionUploadInput): Promise<DriveOperationResult<UploadSession, 200 | 201>>;
|
|
6951
|
+
commitFileVersion(input: CommitFileVersionInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
|
|
6512
6952
|
createVisitorGrant(input: CreateVisitorGrantInput): Promise<DriveOperationResult<VisitorGrantCreation, 200>>;
|
|
6513
6953
|
getVisitorGrant(input: GetVisitorGrantInput): Promise<DriveOperationResult<VisitorGrantCreation, 200>>;
|
|
6514
6954
|
listVisitorGrants(input: GetItemInput): Promise<DriveOperationResult<VisitorGrantPage, 200>>;
|
|
@@ -6520,6 +6960,7 @@ interface DriveOperations {
|
|
|
6520
6960
|
getWorkspaceUsage(input: GetWorkspaceUsageInput): Promise<DriveOperationResult<WorkspaceUsage, 200>>;
|
|
6521
6961
|
getCurrentWorkspaceSources(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspaceSources, 200>>;
|
|
6522
6962
|
getCurrentWorkspace(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspace, 200>>;
|
|
6963
|
+
ensureOrganizationWorkspaceAccess(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspace, 200>>;
|
|
6523
6964
|
getItem(input: GetItemInput): Promise<DriveOperationResult<ManagedItemMetadata, 200>>;
|
|
6524
6965
|
searchWorkspaceItems(input: SearchWorkspaceItemsInput): Promise<DriveOperationResult<WorkspaceItemSearchPage, 200>>;
|
|
6525
6966
|
listFolderChildren(input: ListFolderChildrenInput): Promise<DriveOperationResult<FolderPage, 200>>;
|
|
@@ -6582,6 +7023,7 @@ interface DriveVisitorClient {
|
|
|
6582
7023
|
readItem(input?: VisitorReadInput): Promise<DriveOperationResult<VisitorItem, 200>>;
|
|
6583
7024
|
listChildren(input?: VisitorChildrenInput): Promise<DriveOperationResult<VisitorChildren, 200>>;
|
|
6584
7025
|
createDownload(input?: VisitorDownloadInput): Promise<DriveOperationResult<ManagedDownloadDescriptor, 200>>;
|
|
7026
|
+
downloadItem(input?: VisitorDownloadInput): Promise<Response>;
|
|
6585
7027
|
redeemInvitation(input: {
|
|
6586
7028
|
readonly sessionToken: string;
|
|
6587
7029
|
readonly signal?: AbortSignal;
|
|
@@ -6589,7 +7031,8 @@ interface DriveVisitorClient {
|
|
|
6589
7031
|
}
|
|
6590
7032
|
interface DriveServerClient extends DriveOperations {}
|
|
6591
7033
|
interface DriveClient extends DriveOperations {
|
|
7034
|
+
uploadFileVersion(input: UploadFileVersionInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
|
|
6592
7035
|
uploadFile(input: UploadFileInput): Promise<DriveOperationResult<UploadCompletion, 200 | 202>>;
|
|
6593
7036
|
}
|
|
6594
7037
|
//#endregion
|
|
6595
|
-
export {
|
|
7038
|
+
export { ManagedLifecycleItem as $, FolderPage as A, UploadStatus as At, ListFolderChildrenInput as B, WorkspaceDiscoveryItem as Bt, DriveServerClientConfig as C, UploadFilePhase as Ct, EffectivePermissionResponse as D, UploadPartDescriptor as Dt, EffectivePermissionAction as E, UploadFileVersionInput as Et, GetVisitorGrantInput as F, VisitorGrantCreation as Ft, ListWorkspaceItemsInput as G, operations as Gt, ListItemPermissionsInput as H, WorkspaceItemSearchItem as Ht, GetWorkspaceUsageInput as I, VisitorGrantPage as It, ManagedItemMetadata as J, ManagedDownloadDescriptor as K, IncomingShareContext as L, VisitorItem as Lt, GetItemInput as M, VisitorChildrenInput as Mt, GetItemVersionInput as N, VisitorDownloadInput as Nt, FileAccessContext as O, UploadPartResult as Ot, GetUploadStatusInput as P, VisitorGrant as Pt, ManagedItemVersionRestoreResult as Q, IncomingSharePage as R, VisitorReadInput as Rt, DriveServerClient as S, UploadFileInput as St, DriveVisitorClientConfig as T, UploadFileProgressCallback as Tt, ListItemSharingPeopleInput as U, WorkspaceItemSearchPage as Ut, ListIncomingSharesInput as V, WorkspaceDiscoveryPage as Vt, ListItemVersionsInput as W, WorkspaceUsage as Wt, ManagedItemVersionPage as X, ManagedItemVersion as Y, ManagedItemVersionResource as Z, DriveCredentialContext as _, TrashItemInput as _t, CreateFileVersionUploadInput as a, PermissionPage as at, DriveOperations as b, UploadCompletion as bt, CreateUploadInput as c, ReadyUpload as ct, CurrentWorkspace as d, RegisteredRecipientDisplay as dt, PendingUpload as et, CurrentWorkspaceSources as f, RestoreItemInput as ft, DriveClientConfig as g, SearchWorkspaceItemsInput as gt, DriveClient as h, RevokeVisitorGrantInput as ht, CreateDownloadInput as i, PermissionMutation as it, GetCurrentWorkspaceInput as j, VisitorChildren as jt, FolderItem as k, UploadSession as kt, CreateUploadPartDescriptorInput as l, RecordUploadPartInput as lt, DownloadItemResult as m, RevokeItemPermissionInput as mt, CommitFileVersionInput as n, PermissionGrant as nt, CreateFolderInput as o, ProtectionClassification as ot, DeleteItemInput as p, RestoreItemVersionInput as pt, ManagedDownloadRestorePending as q, CompleteUploadInput as r, PermissionGrantee as rt, CreateItemPermissionInput as s, ReadEffectiveItemPermissionsInput as st, AbortUploadInput as t, PermissionAction as tt, CreateVisitorGrantInput as u, RegisterItemRecipientInput as ut, DriveCredentialProvider as v, UpdateItemInput as vt, DriveVisitorClient as w, UploadFileProgress as wt, DriveResponseValidators as x, UploadConfirmedPart as xt, DriveOperationResult as y, UpdateItemPermissionInput as yt, ItemSharingPeoplePage as z, VisitorSession as zt };
|
package/dist/contract2.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as DriveVisitorClientConfig, w 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 ManagedLifecycleItem, A as FolderPage, At as UploadStatus, B as ListFolderChildrenInput, Bt as WorkspaceDiscoveryItem, Ct as UploadFilePhase, Dt as UploadPartDescriptor, E as EffectivePermissionAction, Et as UploadFileVersionInput, F as GetVisitorGrantInput, Ft as VisitorGrantCreation, G as ListWorkspaceItemsInput, H as ListItemPermissionsInput, Ht as WorkspaceItemSearchItem, I as GetWorkspaceUsageInput, It as VisitorGrantPage, J as ManagedItemMetadata, K as ManagedDownloadDescriptor, Lt as VisitorItem, M as GetItemInput, Mt as VisitorChildrenInput, N as GetItemVersionInput, Nt as VisitorDownloadInput, O as FileAccessContext, Ot as UploadPartResult, P as GetUploadStatusInput, Pt as VisitorGrant, Q as ManagedItemVersionRestoreResult, Rt as VisitorReadInput, St as UploadFileInput, T as DriveVisitorClientConfig, Tt as UploadFileProgressCallback, Ut as WorkspaceItemSearchPage, Vt as WorkspaceDiscoveryPage, W as ListItemVersionsInput, Wt as WorkspaceUsage, X as ManagedItemVersionPage, Y as ManagedItemVersion, Z as ManagedItemVersionResource, _t as TrashItemInput, a as CreateFileVersionUploadInput, b as DriveOperations, bt as UploadCompletion, c as CreateUploadInput, ct as ReadyUpload, d as CurrentWorkspace, et as PendingUpload, f as CurrentWorkspaceSources, ft as RestoreItemInput, g as DriveClientConfig, gt as SearchWorkspaceItemsInput, h as DriveClient, ht as RevokeVisitorGrantInput, i as CreateDownloadInput, it as PermissionMutation, j as GetCurrentWorkspaceInput, jt as VisitorChildren, k as FolderItem, kt as UploadSession, l as CreateUploadPartDescriptorInput, lt as RecordUploadPartInput, m as DownloadItemResult, mt as RevokeItemPermissionInput, n as CommitFileVersionInput, nt as PermissionGrant, o as CreateFolderInput, ot as ProtectionClassification, p as DeleteItemInput, pt as RestoreItemVersionInput, q as ManagedDownloadRestorePending, r as CompleteUploadInput, rt as PermissionGrantee, s as CreateItemPermissionInput, st as ReadEffectiveItemPermissionsInput, t as AbortUploadInput, tt as PermissionAction, u as CreateVisitorGrantInput, v as DriveCredentialProvider, vt as UpdateItemInput, w as DriveVisitorClient, wt as UploadFileProgress, x as DriveResponseValidators, xt as UploadConfirmedPart, y as DriveOperationResult, yt as UpdateItemPermissionInput, zt as VisitorSession } 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
4
|
import { createDriveClient } from "./client.js";
|
|
5
|
-
export { type AbortUploadInput, type CompleteUploadInput, type CreateDownloadInput, 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 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 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 };
|
|
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 };
|