@superdurable/connector-dropbox 0.2.1 → 0.3.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/README.md +4 -2
- package/dex-connector.json +265 -2
- package/dist/{chunk-HC4YIUZK.js → chunk-RMQLFGNQ.js} +387 -2
- package/dist/{connection-DtKKxEuC.d.ts → connection-Csm3tCeA.d.ts} +94 -1
- package/dist/index.d.ts +270 -5
- package/dist/index.js +460 -6
- package/dist/mock.d.ts +91 -2
- package/dist/mock.js +85 -1
- package/package.json +2 -2
|
@@ -97,6 +97,32 @@ var UploadFileInputSchema = z.strictObject({
|
|
|
97
97
|
var UploadedFileSchema = z.strictObject({
|
|
98
98
|
"file": EntryMetadataSchema
|
|
99
99
|
});
|
|
100
|
+
var SearchFilesInputSchema = z.strictObject({
|
|
101
|
+
"query": z.string(),
|
|
102
|
+
"path": z.string().optional(),
|
|
103
|
+
"maxResults": z.number().int().optional()
|
|
104
|
+
});
|
|
105
|
+
var SearchFilesPageSchema = z.strictObject({
|
|
106
|
+
"entries": z.array(EntryMetadataSchema).nullable(),
|
|
107
|
+
"cursor": z.string().optional(),
|
|
108
|
+
"hasMore": z.boolean()
|
|
109
|
+
});
|
|
110
|
+
var EnsureFolderInputSchema = z.strictObject({
|
|
111
|
+
"path": z.string()
|
|
112
|
+
});
|
|
113
|
+
var EnsuredFolderSchema = z.strictObject({
|
|
114
|
+
"path": z.string()
|
|
115
|
+
});
|
|
116
|
+
var DeletePathInputSchema = z.strictObject({
|
|
117
|
+
"path": z.string()
|
|
118
|
+
});
|
|
119
|
+
var DeletedPathSchema = z.strictObject({
|
|
120
|
+
"path": z.string()
|
|
121
|
+
});
|
|
122
|
+
var TransferPathInputSchema = z.strictObject({
|
|
123
|
+
"fromPath": z.string(),
|
|
124
|
+
"toPath": z.string()
|
|
125
|
+
});
|
|
100
126
|
|
|
101
127
|
// src/generated/definitions.ts
|
|
102
128
|
var ConnectorID = "dropbox";
|
|
@@ -218,9 +244,121 @@ var UploadFileDefinition = {
|
|
|
218
244
|
{ id: "invalidResponse", description: "Retained for compatibility and no longer selected: malformed or oversized upload metadata now retries the overwrite.", optional: true },
|
|
219
245
|
{ id: "defect", description: "Local input or connection credentials are invalid.", optional: true }
|
|
220
246
|
],
|
|
221
|
-
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
|
|
247
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
|
|
248
|
+
repeatOnUnknown: "safe"
|
|
222
249
|
};
|
|
223
250
|
var UploadFileMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
251
|
+
var SearchFilesBranch = {
|
|
252
|
+
Found: "found",
|
|
253
|
+
ProviderRejected: "providerRejected",
|
|
254
|
+
InvalidResponse: "invalidResponse",
|
|
255
|
+
Defect: "defect"
|
|
256
|
+
};
|
|
257
|
+
var SearchFilesBranchFound = SearchFilesBranch.Found;
|
|
258
|
+
var SearchFilesBranchProviderRejected = SearchFilesBranch.ProviderRejected;
|
|
259
|
+
var SearchFilesBranchInvalidResponse = SearchFilesBranch.InvalidResponse;
|
|
260
|
+
var SearchFilesBranchDefect = SearchFilesBranch.Defect;
|
|
261
|
+
var SearchFilesDefinition = {
|
|
262
|
+
operation: { connectorId: ConnectorID, operationId: "searchFiles" },
|
|
263
|
+
branches: [
|
|
264
|
+
{ id: "found", description: "Dropbox returned a search page." },
|
|
265
|
+
{ id: "providerRejected", description: "Dropbox conclusively rejected the search.", optional: true },
|
|
266
|
+
{ id: "invalidResponse", description: "Dropbox returned malformed or oversized search results.", optional: true },
|
|
267
|
+
{ id: "defect", description: "Local input or connection credentials are invalid.", optional: true }
|
|
268
|
+
],
|
|
269
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
|
|
270
|
+
};
|
|
271
|
+
var SearchFilesMetadata = { kind: "query", idempotency: "none", authorization: "required" };
|
|
272
|
+
var EnsureFolderBranch = {
|
|
273
|
+
Ensured: "ensured",
|
|
274
|
+
ProviderRejected: "providerRejected",
|
|
275
|
+
InvalidResponse: "invalidResponse",
|
|
276
|
+
Defect: "defect"
|
|
277
|
+
};
|
|
278
|
+
var EnsureFolderBranchEnsured = EnsureFolderBranch.Ensured;
|
|
279
|
+
var EnsureFolderBranchProviderRejected = EnsureFolderBranch.ProviderRejected;
|
|
280
|
+
var EnsureFolderBranchInvalidResponse = EnsureFolderBranch.InvalidResponse;
|
|
281
|
+
var EnsureFolderBranchDefect = EnsureFolderBranch.Defect;
|
|
282
|
+
var EnsureFolderDefinition = {
|
|
283
|
+
operation: { connectorId: ConnectorID, operationId: "ensureFolder" },
|
|
284
|
+
branches: [
|
|
285
|
+
{ id: "ensured", description: "Dropbox created the folder or confirmed it already exists." },
|
|
286
|
+
{ id: "providerRejected", description: "Dropbox conclusively rejected the folder request.", optional: true },
|
|
287
|
+
{ id: "invalidResponse", description: "Dropbox returned malformed or oversized folder metadata.", optional: true },
|
|
288
|
+
{ id: "defect", description: "Local input or connection credentials are invalid.", optional: true }
|
|
289
|
+
],
|
|
290
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
|
|
291
|
+
repeatOnUnknown: "safe"
|
|
292
|
+
};
|
|
293
|
+
var EnsureFolderMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
294
|
+
var DeletePathBranch = {
|
|
295
|
+
Deleted: "deleted",
|
|
296
|
+
ProviderRejected: "providerRejected",
|
|
297
|
+
InvalidResponse: "invalidResponse",
|
|
298
|
+
Defect: "defect"
|
|
299
|
+
};
|
|
300
|
+
var DeletePathBranchDeleted = DeletePathBranch.Deleted;
|
|
301
|
+
var DeletePathBranchProviderRejected = DeletePathBranch.ProviderRejected;
|
|
302
|
+
var DeletePathBranchInvalidResponse = DeletePathBranch.InvalidResponse;
|
|
303
|
+
var DeletePathBranchDefect = DeletePathBranch.Defect;
|
|
304
|
+
var DeletePathDefinition = {
|
|
305
|
+
operation: { connectorId: ConnectorID, operationId: "deletePath" },
|
|
306
|
+
branches: [
|
|
307
|
+
{ id: "deleted", description: "Dropbox deleted the path or confirmed it was already absent." },
|
|
308
|
+
{ id: "providerRejected", description: "Dropbox conclusively rejected the deletion.", optional: true },
|
|
309
|
+
{ id: "invalidResponse", description: "Dropbox returned malformed or oversized deletion metadata.", optional: true },
|
|
310
|
+
{ id: "defect", description: "Local input or connection credentials are invalid.", optional: true }
|
|
311
|
+
],
|
|
312
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
|
|
313
|
+
repeatOnUnknown: "safe"
|
|
314
|
+
};
|
|
315
|
+
var DeletePathMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
316
|
+
var CopyPathBranch = {
|
|
317
|
+
Copied: "copied",
|
|
318
|
+
ProviderRejected: "providerRejected",
|
|
319
|
+
Uncertain: "uncertain",
|
|
320
|
+
Defect: "defect"
|
|
321
|
+
};
|
|
322
|
+
var CopyPathBranchCopied = CopyPathBranch.Copied;
|
|
323
|
+
var CopyPathBranchProviderRejected = CopyPathBranch.ProviderRejected;
|
|
324
|
+
var CopyPathBranchUncertain = CopyPathBranch.Uncertain;
|
|
325
|
+
var CopyPathBranchDefect = CopyPathBranch.Defect;
|
|
326
|
+
var CopyPathDefinition = {
|
|
327
|
+
operation: { connectorId: ConnectorID, operationId: "copyPath" },
|
|
328
|
+
branches: [
|
|
329
|
+
{ id: "copied", description: "Dropbox confirmed the destination entry." },
|
|
330
|
+
{ id: "providerRejected", description: "Dropbox conclusively rejected the copy.", optional: true },
|
|
331
|
+
{ id: "uncertain", description: "A copy may have completed but its destination cannot be attributed to this call.", optional: true },
|
|
332
|
+
{ id: "defect", description: "Local paths, credentials, or dispatch checkpoint are invalid.", optional: true }
|
|
333
|
+
],
|
|
334
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
|
|
335
|
+
repeatOnUnknown: "limited",
|
|
336
|
+
maxSends: 3
|
|
337
|
+
};
|
|
338
|
+
var CopyPathMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
339
|
+
var MovePathBranch = {
|
|
340
|
+
Moved: "moved",
|
|
341
|
+
ProviderRejected: "providerRejected",
|
|
342
|
+
Uncertain: "uncertain",
|
|
343
|
+
Defect: "defect"
|
|
344
|
+
};
|
|
345
|
+
var MovePathBranchMoved = MovePathBranch.Moved;
|
|
346
|
+
var MovePathBranchProviderRejected = MovePathBranch.ProviderRejected;
|
|
347
|
+
var MovePathBranchUncertain = MovePathBranch.Uncertain;
|
|
348
|
+
var MovePathBranchDefect = MovePathBranch.Defect;
|
|
349
|
+
var MovePathDefinition = {
|
|
350
|
+
operation: { connectorId: ConnectorID, operationId: "movePath" },
|
|
351
|
+
branches: [
|
|
352
|
+
{ id: "moved", description: "Dropbox confirmed the destination entry." },
|
|
353
|
+
{ id: "providerRejected", description: "Dropbox conclusively rejected the move.", optional: true },
|
|
354
|
+
{ id: "uncertain", description: "A move may have completed but its destination cannot be attributed to this call.", optional: true },
|
|
355
|
+
{ id: "defect", description: "Local paths, credentials, or dispatch checkpoint are invalid.", optional: true }
|
|
356
|
+
],
|
|
357
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
|
|
358
|
+
repeatOnUnknown: "limited",
|
|
359
|
+
maxSends: 3
|
|
360
|
+
};
|
|
361
|
+
var MovePathMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
224
362
|
|
|
225
363
|
// src/generated/connection.ts
|
|
226
364
|
import { ConnectionRefSchema } from "@superdurable/connectors-sdk";
|
|
@@ -250,7 +388,7 @@ function newProjectCredentialProvider(project, connectionName, decode, encode, d
|
|
|
250
388
|
}
|
|
251
389
|
|
|
252
390
|
// src/generated/mock.ts
|
|
253
|
-
import { branchCase, retryCase, newMutation, newQuery } from "@superdurable/connectors-sdk/connectormock";
|
|
391
|
+
import { branchCase, retryCase, uncertainCase, newMutation, newQuery } from "@superdurable/connectors-sdk/connectormock";
|
|
254
392
|
var emptyListFolderInput = ListFolderInputSchema.parse({
|
|
255
393
|
"limit": 0
|
|
256
394
|
});
|
|
@@ -286,6 +424,29 @@ var emptyUploadFileInput = UploadFileInputSchema.parse({
|
|
|
286
424
|
var emptyUploadedFile = UploadedFileSchema.parse({
|
|
287
425
|
"file": emptyEntryMetadata
|
|
288
426
|
});
|
|
427
|
+
var emptySearchFilesInput = SearchFilesInputSchema.parse({
|
|
428
|
+
"query": ""
|
|
429
|
+
});
|
|
430
|
+
var emptySearchFilesPage = SearchFilesPageSchema.parse({
|
|
431
|
+
"entries": [],
|
|
432
|
+
"hasMore": false
|
|
433
|
+
});
|
|
434
|
+
var emptyEnsureFolderInput = EnsureFolderInputSchema.parse({
|
|
435
|
+
"path": ""
|
|
436
|
+
});
|
|
437
|
+
var emptyEnsuredFolder = EnsuredFolderSchema.parse({
|
|
438
|
+
"path": ""
|
|
439
|
+
});
|
|
440
|
+
var emptyDeletePathInput = DeletePathInputSchema.parse({
|
|
441
|
+
"path": ""
|
|
442
|
+
});
|
|
443
|
+
var emptyDeletedPath = DeletedPathSchema.parse({
|
|
444
|
+
"path": ""
|
|
445
|
+
});
|
|
446
|
+
var emptyTransferPathInput = TransferPathInputSchema.parse({
|
|
447
|
+
"fromPath": "",
|
|
448
|
+
"toPath": ""
|
|
449
|
+
});
|
|
289
450
|
function listFolderListed(value, failure) {
|
|
290
451
|
return branchCase("listed", value, failure);
|
|
291
452
|
}
|
|
@@ -411,12 +572,127 @@ function uploadFileUploadedDefault() {
|
|
|
411
572
|
function uploadFileDefault() {
|
|
412
573
|
return uploadFileUploadedDefault();
|
|
413
574
|
}
|
|
575
|
+
function searchFilesFound(value, failure) {
|
|
576
|
+
return branchCase("found", value, failure);
|
|
577
|
+
}
|
|
578
|
+
function searchFilesProviderRejected(value, failure) {
|
|
579
|
+
return branchCase("providerRejected", value, failure);
|
|
580
|
+
}
|
|
581
|
+
function searchFilesInvalidResponse(value, failure) {
|
|
582
|
+
return branchCase("invalidResponse", value, failure);
|
|
583
|
+
}
|
|
584
|
+
function searchFilesDefect(value, failure) {
|
|
585
|
+
return branchCase("defect", value, failure);
|
|
586
|
+
}
|
|
587
|
+
function searchFilesRetry(failure, retryAfterMs = 0) {
|
|
588
|
+
return retryCase(failure, retryAfterMs);
|
|
589
|
+
}
|
|
590
|
+
function searchFilesFoundDefault() {
|
|
591
|
+
const value = SearchFilesPageSchema.parse({ "entries": [{ "id": "id:example", "kind": "file", "name": "example.txt", "pathDisplay": "/example.txt" }], "hasMore": false });
|
|
592
|
+
return branchCase("found", value);
|
|
593
|
+
}
|
|
594
|
+
function searchFilesDefault() {
|
|
595
|
+
return searchFilesFoundDefault();
|
|
596
|
+
}
|
|
597
|
+
function ensureFolderEnsured(value, failure) {
|
|
598
|
+
return branchCase("ensured", value, failure);
|
|
599
|
+
}
|
|
600
|
+
function ensureFolderProviderRejected(value, failure) {
|
|
601
|
+
return branchCase("providerRejected", value, failure);
|
|
602
|
+
}
|
|
603
|
+
function ensureFolderInvalidResponse(value, failure) {
|
|
604
|
+
return branchCase("invalidResponse", value, failure);
|
|
605
|
+
}
|
|
606
|
+
function ensureFolderDefect(value, failure) {
|
|
607
|
+
return branchCase("defect", value, failure);
|
|
608
|
+
}
|
|
609
|
+
function ensureFolderRetry(failure, retryAfterMs = 0) {
|
|
610
|
+
return retryCase(failure, retryAfterMs);
|
|
611
|
+
}
|
|
612
|
+
function ensureFolderEnsuredDefault() {
|
|
613
|
+
const value = EnsuredFolderSchema.parse({ "path": "/example" });
|
|
614
|
+
return branchCase("ensured", value);
|
|
615
|
+
}
|
|
616
|
+
function ensureFolderDefault() {
|
|
617
|
+
return ensureFolderEnsuredDefault();
|
|
618
|
+
}
|
|
619
|
+
function deletePathDeleted(value, failure) {
|
|
620
|
+
return branchCase("deleted", value, failure);
|
|
621
|
+
}
|
|
622
|
+
function deletePathProviderRejected(value, failure) {
|
|
623
|
+
return branchCase("providerRejected", value, failure);
|
|
624
|
+
}
|
|
625
|
+
function deletePathInvalidResponse(value, failure) {
|
|
626
|
+
return branchCase("invalidResponse", value, failure);
|
|
627
|
+
}
|
|
628
|
+
function deletePathDefect(value, failure) {
|
|
629
|
+
return branchCase("defect", value, failure);
|
|
630
|
+
}
|
|
631
|
+
function deletePathRetry(failure, retryAfterMs = 0) {
|
|
632
|
+
return retryCase(failure, retryAfterMs);
|
|
633
|
+
}
|
|
634
|
+
function deletePathDeletedDefault() {
|
|
635
|
+
const value = DeletedPathSchema.parse({ "path": "/example.txt" });
|
|
636
|
+
return branchCase("deleted", value);
|
|
637
|
+
}
|
|
638
|
+
function deletePathDefault() {
|
|
639
|
+
return deletePathDeletedDefault();
|
|
640
|
+
}
|
|
641
|
+
function copyPathCopied(value, failure) {
|
|
642
|
+
return branchCase("copied", value, failure);
|
|
643
|
+
}
|
|
644
|
+
function copyPathProviderRejected(value, failure) {
|
|
645
|
+
return branchCase("providerRejected", value, failure);
|
|
646
|
+
}
|
|
647
|
+
function copyPathDefect(value, failure) {
|
|
648
|
+
return branchCase("defect", value, failure);
|
|
649
|
+
}
|
|
650
|
+
function copyPathRetry(failure, retryAfterMs = 0) {
|
|
651
|
+
return retryCase(failure, retryAfterMs);
|
|
652
|
+
}
|
|
653
|
+
function copyPathUncertain(value, failure) {
|
|
654
|
+
return uncertainCase(value, failure);
|
|
655
|
+
}
|
|
656
|
+
function copyPathCopiedDefault() {
|
|
657
|
+
const value = EntryMetadataSchema.parse({ "id": "id:copy", "kind": "file", "name": "copy.txt", "pathDisplay": "/copy.txt" });
|
|
658
|
+
return branchCase("copied", value);
|
|
659
|
+
}
|
|
660
|
+
function copyPathDefault() {
|
|
661
|
+
return copyPathCopiedDefault();
|
|
662
|
+
}
|
|
663
|
+
function movePathMoved(value, failure) {
|
|
664
|
+
return branchCase("moved", value, failure);
|
|
665
|
+
}
|
|
666
|
+
function movePathProviderRejected(value, failure) {
|
|
667
|
+
return branchCase("providerRejected", value, failure);
|
|
668
|
+
}
|
|
669
|
+
function movePathDefect(value, failure) {
|
|
670
|
+
return branchCase("defect", value, failure);
|
|
671
|
+
}
|
|
672
|
+
function movePathRetry(failure, retryAfterMs = 0) {
|
|
673
|
+
return retryCase(failure, retryAfterMs);
|
|
674
|
+
}
|
|
675
|
+
function movePathUncertain(value, failure) {
|
|
676
|
+
return uncertainCase(value, failure);
|
|
677
|
+
}
|
|
678
|
+
function movePathMovedDefault() {
|
|
679
|
+
const value = EntryMetadataSchema.parse({ "id": "id:example", "kind": "file", "name": "moved.txt", "pathDisplay": "/moved.txt" });
|
|
680
|
+
return branchCase("moved", value);
|
|
681
|
+
}
|
|
682
|
+
function movePathDefault() {
|
|
683
|
+
return movePathMovedDefault();
|
|
684
|
+
}
|
|
414
685
|
var GeneratedMock = class {
|
|
415
686
|
#listFolder;
|
|
416
687
|
#getMetadata;
|
|
417
688
|
#continueFolder;
|
|
418
689
|
#downloadFile;
|
|
419
690
|
#uploadFile;
|
|
691
|
+
#searchFiles;
|
|
692
|
+
#ensureFolder;
|
|
693
|
+
#deletePath;
|
|
694
|
+
#copyPath;
|
|
695
|
+
#movePath;
|
|
420
696
|
#connection;
|
|
421
697
|
constructor(connectionName) {
|
|
422
698
|
this.#listFolder = newQuery(ListFolderDefinition).default(listFolderDefault());
|
|
@@ -424,6 +700,11 @@ var GeneratedMock = class {
|
|
|
424
700
|
this.#continueFolder = newQuery(ContinueFolderDefinition).default(continueFolderDefault());
|
|
425
701
|
this.#downloadFile = newQuery(DownloadFileDefinition).default(downloadFileDefault());
|
|
426
702
|
this.#uploadFile = newMutation(UploadFileDefinition).default(uploadFileDefault());
|
|
703
|
+
this.#searchFiles = newQuery(SearchFilesDefinition).default(searchFilesDefault());
|
|
704
|
+
this.#ensureFolder = newMutation(EnsureFolderDefinition).default(ensureFolderDefault());
|
|
705
|
+
this.#deletePath = newMutation(DeletePathDefinition).default(deletePathDefault());
|
|
706
|
+
this.#copyPath = newMutation(CopyPathDefinition).default(copyPathDefault());
|
|
707
|
+
this.#movePath = newMutation(MovePathDefinition).default(movePathDefault());
|
|
427
708
|
this.#connection = newConnectionWithOperations(this, { provider: ProviderID, name: connectionName });
|
|
428
709
|
}
|
|
429
710
|
connection() {
|
|
@@ -444,12 +725,32 @@ var GeneratedMock = class {
|
|
|
444
725
|
uploadFile() {
|
|
445
726
|
return this.#uploadFile;
|
|
446
727
|
}
|
|
728
|
+
searchFiles() {
|
|
729
|
+
return this.#searchFiles;
|
|
730
|
+
}
|
|
731
|
+
ensureFolder() {
|
|
732
|
+
return this.#ensureFolder;
|
|
733
|
+
}
|
|
734
|
+
deletePath() {
|
|
735
|
+
return this.#deletePath;
|
|
736
|
+
}
|
|
737
|
+
copyPath() {
|
|
738
|
+
return this.#copyPath;
|
|
739
|
+
}
|
|
740
|
+
movePath() {
|
|
741
|
+
return this.#movePath;
|
|
742
|
+
}
|
|
447
743
|
assertNoFailures() {
|
|
448
744
|
this.#listFolder.assertNoFailures();
|
|
449
745
|
this.#getMetadata.assertNoFailures();
|
|
450
746
|
this.#continueFolder.assertNoFailures();
|
|
451
747
|
this.#downloadFile.assertNoFailures();
|
|
452
748
|
this.#uploadFile.assertNoFailures();
|
|
749
|
+
this.#searchFiles.assertNoFailures();
|
|
750
|
+
this.#ensureFolder.assertNoFailures();
|
|
751
|
+
this.#deletePath.assertNoFailures();
|
|
752
|
+
this.#copyPath.assertNoFailures();
|
|
753
|
+
this.#movePath.assertNoFailures();
|
|
453
754
|
}
|
|
454
755
|
};
|
|
455
756
|
|
|
@@ -468,6 +769,13 @@ export {
|
|
|
468
769
|
DownloadedFileSchema,
|
|
469
770
|
UploadFileInputSchema,
|
|
470
771
|
UploadedFileSchema,
|
|
772
|
+
SearchFilesInputSchema,
|
|
773
|
+
SearchFilesPageSchema,
|
|
774
|
+
EnsureFolderInputSchema,
|
|
775
|
+
EnsuredFolderSchema,
|
|
776
|
+
DeletePathInputSchema,
|
|
777
|
+
DeletedPathSchema,
|
|
778
|
+
TransferPathInputSchema,
|
|
471
779
|
ConnectorID,
|
|
472
780
|
ProviderID,
|
|
473
781
|
ListFolderBranch,
|
|
@@ -510,6 +818,41 @@ export {
|
|
|
510
818
|
UploadFileBranchDefect,
|
|
511
819
|
UploadFileDefinition,
|
|
512
820
|
UploadFileMetadata,
|
|
821
|
+
SearchFilesBranch,
|
|
822
|
+
SearchFilesBranchFound,
|
|
823
|
+
SearchFilesBranchProviderRejected,
|
|
824
|
+
SearchFilesBranchInvalidResponse,
|
|
825
|
+
SearchFilesBranchDefect,
|
|
826
|
+
SearchFilesDefinition,
|
|
827
|
+
SearchFilesMetadata,
|
|
828
|
+
EnsureFolderBranch,
|
|
829
|
+
EnsureFolderBranchEnsured,
|
|
830
|
+
EnsureFolderBranchProviderRejected,
|
|
831
|
+
EnsureFolderBranchInvalidResponse,
|
|
832
|
+
EnsureFolderBranchDefect,
|
|
833
|
+
EnsureFolderDefinition,
|
|
834
|
+
EnsureFolderMetadata,
|
|
835
|
+
DeletePathBranch,
|
|
836
|
+
DeletePathBranchDeleted,
|
|
837
|
+
DeletePathBranchProviderRejected,
|
|
838
|
+
DeletePathBranchInvalidResponse,
|
|
839
|
+
DeletePathBranchDefect,
|
|
840
|
+
DeletePathDefinition,
|
|
841
|
+
DeletePathMetadata,
|
|
842
|
+
CopyPathBranch,
|
|
843
|
+
CopyPathBranchCopied,
|
|
844
|
+
CopyPathBranchProviderRejected,
|
|
845
|
+
CopyPathBranchUncertain,
|
|
846
|
+
CopyPathBranchDefect,
|
|
847
|
+
CopyPathDefinition,
|
|
848
|
+
CopyPathMetadata,
|
|
849
|
+
MovePathBranch,
|
|
850
|
+
MovePathBranchMoved,
|
|
851
|
+
MovePathBranchProviderRejected,
|
|
852
|
+
MovePathBranchUncertain,
|
|
853
|
+
MovePathBranchDefect,
|
|
854
|
+
MovePathDefinition,
|
|
855
|
+
MovePathMetadata,
|
|
513
856
|
Connection,
|
|
514
857
|
newConnection,
|
|
515
858
|
newConnectionWithOperations,
|
|
@@ -523,6 +866,13 @@ export {
|
|
|
523
866
|
emptyDownloadedFile,
|
|
524
867
|
emptyUploadFileInput,
|
|
525
868
|
emptyUploadedFile,
|
|
869
|
+
emptySearchFilesInput,
|
|
870
|
+
emptySearchFilesPage,
|
|
871
|
+
emptyEnsureFolderInput,
|
|
872
|
+
emptyEnsuredFolder,
|
|
873
|
+
emptyDeletePathInput,
|
|
874
|
+
emptyDeletedPath,
|
|
875
|
+
emptyTransferPathInput,
|
|
526
876
|
listFolderListed,
|
|
527
877
|
listFolderNotFound,
|
|
528
878
|
listFolderProviderRejected,
|
|
@@ -563,5 +913,40 @@ export {
|
|
|
563
913
|
uploadFileRetry,
|
|
564
914
|
uploadFileUploadedDefault,
|
|
565
915
|
uploadFileDefault,
|
|
916
|
+
searchFilesFound,
|
|
917
|
+
searchFilesProviderRejected,
|
|
918
|
+
searchFilesInvalidResponse,
|
|
919
|
+
searchFilesDefect,
|
|
920
|
+
searchFilesRetry,
|
|
921
|
+
searchFilesFoundDefault,
|
|
922
|
+
searchFilesDefault,
|
|
923
|
+
ensureFolderEnsured,
|
|
924
|
+
ensureFolderProviderRejected,
|
|
925
|
+
ensureFolderInvalidResponse,
|
|
926
|
+
ensureFolderDefect,
|
|
927
|
+
ensureFolderRetry,
|
|
928
|
+
ensureFolderEnsuredDefault,
|
|
929
|
+
ensureFolderDefault,
|
|
930
|
+
deletePathDeleted,
|
|
931
|
+
deletePathProviderRejected,
|
|
932
|
+
deletePathInvalidResponse,
|
|
933
|
+
deletePathDefect,
|
|
934
|
+
deletePathRetry,
|
|
935
|
+
deletePathDeletedDefault,
|
|
936
|
+
deletePathDefault,
|
|
937
|
+
copyPathCopied,
|
|
938
|
+
copyPathProviderRejected,
|
|
939
|
+
copyPathDefect,
|
|
940
|
+
copyPathRetry,
|
|
941
|
+
copyPathUncertain,
|
|
942
|
+
copyPathCopiedDefault,
|
|
943
|
+
copyPathDefault,
|
|
944
|
+
movePathMoved,
|
|
945
|
+
movePathProviderRejected,
|
|
946
|
+
movePathDefect,
|
|
947
|
+
movePathRetry,
|
|
948
|
+
movePathUncertain,
|
|
949
|
+
movePathMovedDefault,
|
|
950
|
+
movePathDefault,
|
|
566
951
|
GeneratedMock
|
|
567
952
|
};
|
|
@@ -111,6 +111,51 @@ interface UploadedFile {
|
|
|
111
111
|
/** File is the stored Dropbox file identity. */
|
|
112
112
|
"file": EntryMetadata;
|
|
113
113
|
}
|
|
114
|
+
/** SearchFilesInput selects one bounded search page by name. */
|
|
115
|
+
interface SearchFilesInput {
|
|
116
|
+
/** Query is a nonempty name fragment, up to 1000 characters. */
|
|
117
|
+
"query": string;
|
|
118
|
+
/** Path limits the search to one folder; blank searches the connected root. */
|
|
119
|
+
"path"?: string | undefined;
|
|
120
|
+
/** MaxResults is the requested page size, from 1 to 1000; zero selects 20. */
|
|
121
|
+
"maxResults"?: number | undefined;
|
|
122
|
+
}
|
|
123
|
+
/** SearchFilesPage contains one page of matching file and folder identities. */
|
|
124
|
+
interface SearchFilesPage {
|
|
125
|
+
/** Entries contains the file and folder matches. */
|
|
126
|
+
"entries": Array<EntryMetadata> | null;
|
|
127
|
+
/** Cursor continues the search when HasMore is true. */
|
|
128
|
+
"cursor"?: string | undefined;
|
|
129
|
+
/** HasMore reports whether another page is available. */
|
|
130
|
+
"hasMore": boolean;
|
|
131
|
+
}
|
|
132
|
+
/** EnsureFolderInput selects an absolute folder path to create if absent. */
|
|
133
|
+
interface EnsureFolderInput {
|
|
134
|
+
/** Path is the absolute Dropbox folder path. */
|
|
135
|
+
"path": string;
|
|
136
|
+
}
|
|
137
|
+
/** EnsuredFolder confirms that the selected folder exists. */
|
|
138
|
+
interface EnsuredFolder {
|
|
139
|
+
/** Path is the absolute folder path. */
|
|
140
|
+
"path": string;
|
|
141
|
+
}
|
|
142
|
+
/** DeletePathInput selects a file or folder to delete if present. */
|
|
143
|
+
interface DeletePathInput {
|
|
144
|
+
/** Path is an absolute Dropbox path or stable file or folder ID. */
|
|
145
|
+
"path": string;
|
|
146
|
+
}
|
|
147
|
+
/** DeletedPath confirms that the selected path is absent. */
|
|
148
|
+
interface DeletedPath {
|
|
149
|
+
/** Path is the requested file or folder path or ID. */
|
|
150
|
+
"path": string;
|
|
151
|
+
}
|
|
152
|
+
/** TransferPathInput identifies a source file or folder and a fixed destination path. */
|
|
153
|
+
interface TransferPathInput {
|
|
154
|
+
/** FromPath is an absolute Dropbox path or stable file or folder ID. */
|
|
155
|
+
"fromPath": string;
|
|
156
|
+
/** ToPath is an absolute destination path; autorename is disabled. */
|
|
157
|
+
"toPath": string;
|
|
158
|
+
}
|
|
114
159
|
/** Runtime validator for ListFolderInput. */
|
|
115
160
|
declare const ListFolderInputSchema: z.ZodObject<{
|
|
116
161
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -171,6 +216,44 @@ declare const UploadedFileSchema: z.ZodObject<{
|
|
|
171
216
|
kind: z.ZodString;
|
|
172
217
|
}, z.core.$strict>;
|
|
173
218
|
}, z.core.$strict>;
|
|
219
|
+
/** Runtime validator for SearchFilesInput. */
|
|
220
|
+
declare const SearchFilesInputSchema: z.ZodObject<{
|
|
221
|
+
query: z.ZodString;
|
|
222
|
+
path: z.ZodOptional<z.ZodString>;
|
|
223
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
}, z.core.$strict>;
|
|
225
|
+
/** Runtime validator for SearchFilesPage. */
|
|
226
|
+
declare const SearchFilesPageSchema: z.ZodObject<{
|
|
227
|
+
entries: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
228
|
+
id: z.ZodString;
|
|
229
|
+
name: z.ZodString;
|
|
230
|
+
pathDisplay: z.ZodString;
|
|
231
|
+
kind: z.ZodString;
|
|
232
|
+
}, z.core.$strict>>>;
|
|
233
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
234
|
+
hasMore: z.ZodBoolean;
|
|
235
|
+
}, z.core.$strict>;
|
|
236
|
+
/** Runtime validator for EnsureFolderInput. */
|
|
237
|
+
declare const EnsureFolderInputSchema: z.ZodObject<{
|
|
238
|
+
path: z.ZodString;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
/** Runtime validator for EnsuredFolder. */
|
|
241
|
+
declare const EnsuredFolderSchema: z.ZodObject<{
|
|
242
|
+
path: z.ZodString;
|
|
243
|
+
}, z.core.$strict>;
|
|
244
|
+
/** Runtime validator for DeletePathInput. */
|
|
245
|
+
declare const DeletePathInputSchema: z.ZodObject<{
|
|
246
|
+
path: z.ZodString;
|
|
247
|
+
}, z.core.$strict>;
|
|
248
|
+
/** Runtime validator for DeletedPath. */
|
|
249
|
+
declare const DeletedPathSchema: z.ZodObject<{
|
|
250
|
+
path: z.ZodString;
|
|
251
|
+
}, z.core.$strict>;
|
|
252
|
+
/** Runtime validator for TransferPathInput. */
|
|
253
|
+
declare const TransferPathInputSchema: z.ZodObject<{
|
|
254
|
+
fromPath: z.ZodString;
|
|
255
|
+
toPath: z.ZodString;
|
|
256
|
+
}, z.core.$strict>;
|
|
174
257
|
|
|
175
258
|
/** Typed operations supplied by a client or mock. */
|
|
176
259
|
interface Operations {
|
|
@@ -184,6 +267,16 @@ interface Operations {
|
|
|
184
267
|
downloadFile(): Query<DownloadFileInput, DownloadedFile>;
|
|
185
268
|
/** Invoke uploadFile through this connection. */
|
|
186
269
|
uploadFile(): Mutation<UploadFileInput, UploadedFile>;
|
|
270
|
+
/** Invoke searchFiles through this connection. */
|
|
271
|
+
searchFiles(): Query<SearchFilesInput, SearchFilesPage>;
|
|
272
|
+
/** Invoke ensureFolder through this connection. */
|
|
273
|
+
ensureFolder(): Mutation<EnsureFolderInput, EnsuredFolder>;
|
|
274
|
+
/** Invoke deletePath through this connection. */
|
|
275
|
+
deletePath(): Mutation<DeletePathInput, DeletedPath>;
|
|
276
|
+
/** Invoke copyPath through this connection. */
|
|
277
|
+
copyPath(): Mutation<TransferPathInput, EntryMetadata>;
|
|
278
|
+
/** Invoke movePath through this connection. */
|
|
279
|
+
movePath(): Mutation<TransferPathInput, EntryMetadata>;
|
|
187
280
|
}
|
|
188
281
|
/** Named connector connection kept outside Flow state. */
|
|
189
282
|
declare class Connection<BoundOperations = Operations> {
|
|
@@ -199,4 +292,4 @@ declare function newConnection(client: Operations, reference: ConnectionRef): Co
|
|
|
199
292
|
/** Bind scripted operations to a named connection. */
|
|
200
293
|
declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
|
|
201
294
|
|
|
202
|
-
export { type ContinueFolderInput as C, type DownloadFileInput as D, type EntryMetadata as E, type FolderPage as F, type GetMetadataInput as G, type ListFolderInput as L, type Operations as O, type UploadFileInput as U, type DownloadedFile as a, type UploadedFile as b, type
|
|
295
|
+
export { TransferPathInputSchema as A, UploadFileInputSchema as B, type ContinueFolderInput as C, type DownloadFileInput as D, type EntryMetadata as E, type FolderPage as F, type GetMetadataInput as G, UploadedFileSchema as H, decodeCredentials as I, decodeSharedCredentials as J, isCredentialMaterialError as K, type ListFolderInput as L, newConnection as M, newConnectionWithOperations as N, type Operations as O, type SearchFilesInput as S, type TransferPathInput as T, type UploadFileInput as U, type DownloadedFile as a, type UploadedFile as b, type SearchFilesPage as c, type EnsureFolderInput as d, type EnsuredFolder as e, type DeletePathInput as f, type DeletedPath as g, type Config as h, type Credentials as i, Connection as j, ConfigSchema as k, ContinueFolderInputSchema as l, CredentialMaterialError as m, type CredentialSource as n, DeletePathInputSchema as o, DeletedPathSchema as p, DownloadFileInputSchema as q, DownloadedFileSchema as r, EnsureFolderInputSchema as s, EnsuredFolderSchema as t, EntryMetadataSchema as u, FolderPageSchema as v, GetMetadataInputSchema as w, ListFolderInputSchema as x, SearchFilesInputSchema as y, SearchFilesPageSchema as z };
|