@frogbotai/piece-dropbox 0.21.0 → 0.23.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.
@@ -0,0 +1,676 @@
1
+ import { z } from 'zod';
2
+ import { type DropboxRunArgs } from '../client.js';
3
+ declare const pathInput: z.ZodObject<{
4
+ path: z.ZodString;
5
+ }, z.core.$strip>;
6
+ declare const transferInput: z.ZodObject<{
7
+ fromPath: z.ZodString;
8
+ toPath: z.ZodString;
9
+ autorename: z.ZodDefault<z.ZodBoolean>;
10
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
11
+ }, z.core.$strip>;
12
+ export declare const copyFile: {
13
+ slug: "copyFile" | "copyFolder" | "moveFile" | "moveFolder";
14
+ description: string;
15
+ input: z.ZodObject<{
16
+ fromPath: z.ZodString;
17
+ toPath: z.ZodString;
18
+ autorename: z.ZodDefault<z.ZodBoolean>;
19
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
20
+ }, z.core.$strip>;
21
+ output: z.ZodObject<{
22
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ '.tag': z.ZodLiteral<"file">;
24
+ name: z.ZodString;
25
+ id: z.ZodString;
26
+ path_lower: z.ZodOptional<z.ZodString>;
27
+ path_display: z.ZodOptional<z.ZodString>;
28
+ client_modified: z.ZodOptional<z.ZodString>;
29
+ server_modified: z.ZodOptional<z.ZodString>;
30
+ rev: z.ZodOptional<z.ZodString>;
31
+ size: z.ZodOptional<z.ZodNumber>;
32
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
33
+ '.tag': z.ZodLiteral<"folder">;
34
+ name: z.ZodString;
35
+ id: z.ZodString;
36
+ path_lower: z.ZodOptional<z.ZodString>;
37
+ path_display: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
39
+ '.tag': z.ZodLiteral<"deleted">;
40
+ name: z.ZodString;
41
+ path_lower: z.ZodOptional<z.ZodString>;
42
+ path_display: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
44
+ }, z.core.$catchall<z.ZodJSONSchema>>;
45
+ idempotent: boolean;
46
+ run({ client, input, req }: DropboxRunArgs<typeof transferInput>): Promise<{
47
+ [x: string]: z.core.util.JSONType;
48
+ metadata: {
49
+ [x: string]: z.core.util.JSONType;
50
+ '.tag': "file";
51
+ name: string;
52
+ id: string;
53
+ path_lower?: string | undefined;
54
+ path_display?: string | undefined;
55
+ client_modified?: string | undefined;
56
+ server_modified?: string | undefined;
57
+ rev?: string | undefined;
58
+ size?: number | undefined;
59
+ } | {
60
+ [x: string]: z.core.util.JSONType;
61
+ '.tag': "folder";
62
+ name: string;
63
+ id: string;
64
+ path_lower?: string | undefined;
65
+ path_display?: string | undefined;
66
+ } | {
67
+ [x: string]: z.core.util.JSONType;
68
+ '.tag': "deleted";
69
+ name: string;
70
+ path_lower?: string | undefined;
71
+ path_display?: string | undefined;
72
+ };
73
+ }>;
74
+ };
75
+ export declare const copyFolder: {
76
+ slug: "copyFile" | "copyFolder" | "moveFile" | "moveFolder";
77
+ description: string;
78
+ input: z.ZodObject<{
79
+ fromPath: z.ZodString;
80
+ toPath: z.ZodString;
81
+ autorename: z.ZodDefault<z.ZodBoolean>;
82
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
83
+ }, z.core.$strip>;
84
+ output: z.ZodObject<{
85
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
86
+ '.tag': z.ZodLiteral<"file">;
87
+ name: z.ZodString;
88
+ id: z.ZodString;
89
+ path_lower: z.ZodOptional<z.ZodString>;
90
+ path_display: z.ZodOptional<z.ZodString>;
91
+ client_modified: z.ZodOptional<z.ZodString>;
92
+ server_modified: z.ZodOptional<z.ZodString>;
93
+ rev: z.ZodOptional<z.ZodString>;
94
+ size: z.ZodOptional<z.ZodNumber>;
95
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
96
+ '.tag': z.ZodLiteral<"folder">;
97
+ name: z.ZodString;
98
+ id: z.ZodString;
99
+ path_lower: z.ZodOptional<z.ZodString>;
100
+ path_display: z.ZodOptional<z.ZodString>;
101
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
102
+ '.tag': z.ZodLiteral<"deleted">;
103
+ name: z.ZodString;
104
+ path_lower: z.ZodOptional<z.ZodString>;
105
+ path_display: z.ZodOptional<z.ZodString>;
106
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
107
+ }, z.core.$catchall<z.ZodJSONSchema>>;
108
+ idempotent: boolean;
109
+ run({ client, input, req }: DropboxRunArgs<typeof transferInput>): Promise<{
110
+ [x: string]: z.core.util.JSONType;
111
+ metadata: {
112
+ [x: string]: z.core.util.JSONType;
113
+ '.tag': "file";
114
+ name: string;
115
+ id: string;
116
+ path_lower?: string | undefined;
117
+ path_display?: string | undefined;
118
+ client_modified?: string | undefined;
119
+ server_modified?: string | undefined;
120
+ rev?: string | undefined;
121
+ size?: number | undefined;
122
+ } | {
123
+ [x: string]: z.core.util.JSONType;
124
+ '.tag': "folder";
125
+ name: string;
126
+ id: string;
127
+ path_lower?: string | undefined;
128
+ path_display?: string | undefined;
129
+ } | {
130
+ [x: string]: z.core.util.JSONType;
131
+ '.tag': "deleted";
132
+ name: string;
133
+ path_lower?: string | undefined;
134
+ path_display?: string | undefined;
135
+ };
136
+ }>;
137
+ };
138
+ export declare const moveFile: {
139
+ slug: "copyFile" | "copyFolder" | "moveFile" | "moveFolder";
140
+ description: string;
141
+ input: z.ZodObject<{
142
+ fromPath: z.ZodString;
143
+ toPath: z.ZodString;
144
+ autorename: z.ZodDefault<z.ZodBoolean>;
145
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
146
+ }, z.core.$strip>;
147
+ output: z.ZodObject<{
148
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ '.tag': z.ZodLiteral<"file">;
150
+ name: z.ZodString;
151
+ id: z.ZodString;
152
+ path_lower: z.ZodOptional<z.ZodString>;
153
+ path_display: z.ZodOptional<z.ZodString>;
154
+ client_modified: z.ZodOptional<z.ZodString>;
155
+ server_modified: z.ZodOptional<z.ZodString>;
156
+ rev: z.ZodOptional<z.ZodString>;
157
+ size: z.ZodOptional<z.ZodNumber>;
158
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
159
+ '.tag': z.ZodLiteral<"folder">;
160
+ name: z.ZodString;
161
+ id: z.ZodString;
162
+ path_lower: z.ZodOptional<z.ZodString>;
163
+ path_display: z.ZodOptional<z.ZodString>;
164
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
165
+ '.tag': z.ZodLiteral<"deleted">;
166
+ name: z.ZodString;
167
+ path_lower: z.ZodOptional<z.ZodString>;
168
+ path_display: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
170
+ }, z.core.$catchall<z.ZodJSONSchema>>;
171
+ idempotent: boolean;
172
+ run({ client, input, req }: DropboxRunArgs<typeof transferInput>): Promise<{
173
+ [x: string]: z.core.util.JSONType;
174
+ metadata: {
175
+ [x: string]: z.core.util.JSONType;
176
+ '.tag': "file";
177
+ name: string;
178
+ id: string;
179
+ path_lower?: string | undefined;
180
+ path_display?: string | undefined;
181
+ client_modified?: string | undefined;
182
+ server_modified?: string | undefined;
183
+ rev?: string | undefined;
184
+ size?: number | undefined;
185
+ } | {
186
+ [x: string]: z.core.util.JSONType;
187
+ '.tag': "folder";
188
+ name: string;
189
+ id: string;
190
+ path_lower?: string | undefined;
191
+ path_display?: string | undefined;
192
+ } | {
193
+ [x: string]: z.core.util.JSONType;
194
+ '.tag': "deleted";
195
+ name: string;
196
+ path_lower?: string | undefined;
197
+ path_display?: string | undefined;
198
+ };
199
+ }>;
200
+ };
201
+ export declare const moveFolder: {
202
+ slug: "copyFile" | "copyFolder" | "moveFile" | "moveFolder";
203
+ description: string;
204
+ input: z.ZodObject<{
205
+ fromPath: z.ZodString;
206
+ toPath: z.ZodString;
207
+ autorename: z.ZodDefault<z.ZodBoolean>;
208
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
209
+ }, z.core.$strip>;
210
+ output: z.ZodObject<{
211
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
212
+ '.tag': z.ZodLiteral<"file">;
213
+ name: z.ZodString;
214
+ id: z.ZodString;
215
+ path_lower: z.ZodOptional<z.ZodString>;
216
+ path_display: z.ZodOptional<z.ZodString>;
217
+ client_modified: z.ZodOptional<z.ZodString>;
218
+ server_modified: z.ZodOptional<z.ZodString>;
219
+ rev: z.ZodOptional<z.ZodString>;
220
+ size: z.ZodOptional<z.ZodNumber>;
221
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
222
+ '.tag': z.ZodLiteral<"folder">;
223
+ name: z.ZodString;
224
+ id: z.ZodString;
225
+ path_lower: z.ZodOptional<z.ZodString>;
226
+ path_display: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
228
+ '.tag': z.ZodLiteral<"deleted">;
229
+ name: z.ZodString;
230
+ path_lower: z.ZodOptional<z.ZodString>;
231
+ path_display: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
233
+ }, z.core.$catchall<z.ZodJSONSchema>>;
234
+ idempotent: boolean;
235
+ run({ client, input, req }: DropboxRunArgs<typeof transferInput>): Promise<{
236
+ [x: string]: z.core.util.JSONType;
237
+ metadata: {
238
+ [x: string]: z.core.util.JSONType;
239
+ '.tag': "file";
240
+ name: string;
241
+ id: string;
242
+ path_lower?: string | undefined;
243
+ path_display?: string | undefined;
244
+ client_modified?: string | undefined;
245
+ server_modified?: string | undefined;
246
+ rev?: string | undefined;
247
+ size?: number | undefined;
248
+ } | {
249
+ [x: string]: z.core.util.JSONType;
250
+ '.tag': "folder";
251
+ name: string;
252
+ id: string;
253
+ path_lower?: string | undefined;
254
+ path_display?: string | undefined;
255
+ } | {
256
+ [x: string]: z.core.util.JSONType;
257
+ '.tag': "deleted";
258
+ name: string;
259
+ path_lower?: string | undefined;
260
+ path_display?: string | undefined;
261
+ };
262
+ }>;
263
+ };
264
+ export declare const deleteFile: {
265
+ slug: "deleteFile" | "deleteFolder";
266
+ description: string;
267
+ input: z.ZodObject<{
268
+ path: z.ZodString;
269
+ }, z.core.$strip>;
270
+ output: z.ZodObject<{
271
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
272
+ '.tag': z.ZodLiteral<"file">;
273
+ name: z.ZodString;
274
+ id: z.ZodString;
275
+ path_lower: z.ZodOptional<z.ZodString>;
276
+ path_display: z.ZodOptional<z.ZodString>;
277
+ client_modified: z.ZodOptional<z.ZodString>;
278
+ server_modified: z.ZodOptional<z.ZodString>;
279
+ rev: z.ZodOptional<z.ZodString>;
280
+ size: z.ZodOptional<z.ZodNumber>;
281
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
282
+ '.tag': z.ZodLiteral<"folder">;
283
+ name: z.ZodString;
284
+ id: z.ZodString;
285
+ path_lower: z.ZodOptional<z.ZodString>;
286
+ path_display: z.ZodOptional<z.ZodString>;
287
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
288
+ '.tag': z.ZodLiteral<"deleted">;
289
+ name: z.ZodString;
290
+ path_lower: z.ZodOptional<z.ZodString>;
291
+ path_display: z.ZodOptional<z.ZodString>;
292
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
293
+ }, z.core.$catchall<z.ZodJSONSchema>>;
294
+ idempotent: boolean;
295
+ run({ client, input, req }: DropboxRunArgs<typeof pathInput>): Promise<{
296
+ [x: string]: z.core.util.JSONType;
297
+ metadata: {
298
+ [x: string]: z.core.util.JSONType;
299
+ '.tag': "file";
300
+ name: string;
301
+ id: string;
302
+ path_lower?: string | undefined;
303
+ path_display?: string | undefined;
304
+ client_modified?: string | undefined;
305
+ server_modified?: string | undefined;
306
+ rev?: string | undefined;
307
+ size?: number | undefined;
308
+ } | {
309
+ [x: string]: z.core.util.JSONType;
310
+ '.tag': "folder";
311
+ name: string;
312
+ id: string;
313
+ path_lower?: string | undefined;
314
+ path_display?: string | undefined;
315
+ } | {
316
+ [x: string]: z.core.util.JSONType;
317
+ '.tag': "deleted";
318
+ name: string;
319
+ path_lower?: string | undefined;
320
+ path_display?: string | undefined;
321
+ };
322
+ }>;
323
+ };
324
+ export declare const deleteFolder: {
325
+ slug: "deleteFile" | "deleteFolder";
326
+ description: string;
327
+ input: z.ZodObject<{
328
+ path: z.ZodString;
329
+ }, z.core.$strip>;
330
+ output: z.ZodObject<{
331
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
332
+ '.tag': z.ZodLiteral<"file">;
333
+ name: z.ZodString;
334
+ id: z.ZodString;
335
+ path_lower: z.ZodOptional<z.ZodString>;
336
+ path_display: z.ZodOptional<z.ZodString>;
337
+ client_modified: z.ZodOptional<z.ZodString>;
338
+ server_modified: z.ZodOptional<z.ZodString>;
339
+ rev: z.ZodOptional<z.ZodString>;
340
+ size: z.ZodOptional<z.ZodNumber>;
341
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
342
+ '.tag': z.ZodLiteral<"folder">;
343
+ name: z.ZodString;
344
+ id: z.ZodString;
345
+ path_lower: z.ZodOptional<z.ZodString>;
346
+ path_display: z.ZodOptional<z.ZodString>;
347
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
348
+ '.tag': z.ZodLiteral<"deleted">;
349
+ name: z.ZodString;
350
+ path_lower: z.ZodOptional<z.ZodString>;
351
+ path_display: z.ZodOptional<z.ZodString>;
352
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
353
+ }, z.core.$catchall<z.ZodJSONSchema>>;
354
+ idempotent: boolean;
355
+ run({ client, input, req }: DropboxRunArgs<typeof pathInput>): Promise<{
356
+ [x: string]: z.core.util.JSONType;
357
+ metadata: {
358
+ [x: string]: z.core.util.JSONType;
359
+ '.tag': "file";
360
+ name: string;
361
+ id: string;
362
+ path_lower?: string | undefined;
363
+ path_display?: string | undefined;
364
+ client_modified?: string | undefined;
365
+ server_modified?: string | undefined;
366
+ rev?: string | undefined;
367
+ size?: number | undefined;
368
+ } | {
369
+ [x: string]: z.core.util.JSONType;
370
+ '.tag': "folder";
371
+ name: string;
372
+ id: string;
373
+ path_lower?: string | undefined;
374
+ path_display?: string | undefined;
375
+ } | {
376
+ [x: string]: z.core.util.JSONType;
377
+ '.tag': "deleted";
378
+ name: string;
379
+ path_lower?: string | undefined;
380
+ path_display?: string | undefined;
381
+ };
382
+ }>;
383
+ };
384
+ declare const createFolderInput: z.ZodObject<{
385
+ path: z.ZodString;
386
+ autorename: z.ZodDefault<z.ZodBoolean>;
387
+ }, z.core.$strip>;
388
+ export declare const createFolder: {
389
+ slug: string;
390
+ description: string;
391
+ input: z.ZodObject<{
392
+ path: z.ZodString;
393
+ autorename: z.ZodDefault<z.ZodBoolean>;
394
+ }, z.core.$strip>;
395
+ output: z.ZodObject<{
396
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
397
+ '.tag': z.ZodLiteral<"file">;
398
+ name: z.ZodString;
399
+ id: z.ZodString;
400
+ path_lower: z.ZodOptional<z.ZodString>;
401
+ path_display: z.ZodOptional<z.ZodString>;
402
+ client_modified: z.ZodOptional<z.ZodString>;
403
+ server_modified: z.ZodOptional<z.ZodString>;
404
+ rev: z.ZodOptional<z.ZodString>;
405
+ size: z.ZodOptional<z.ZodNumber>;
406
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
407
+ '.tag': z.ZodLiteral<"folder">;
408
+ name: z.ZodString;
409
+ id: z.ZodString;
410
+ path_lower: z.ZodOptional<z.ZodString>;
411
+ path_display: z.ZodOptional<z.ZodString>;
412
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
413
+ '.tag': z.ZodLiteral<"deleted">;
414
+ name: z.ZodString;
415
+ path_lower: z.ZodOptional<z.ZodString>;
416
+ path_display: z.ZodOptional<z.ZodString>;
417
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
418
+ }, z.core.$catchall<z.ZodJSONSchema>>;
419
+ idempotent: boolean;
420
+ run({ client, input, req }: DropboxRunArgs<typeof createFolderInput>): Promise<{
421
+ [x: string]: z.core.util.JSONType;
422
+ metadata: {
423
+ [x: string]: z.core.util.JSONType;
424
+ '.tag': "file";
425
+ name: string;
426
+ id: string;
427
+ path_lower?: string | undefined;
428
+ path_display?: string | undefined;
429
+ client_modified?: string | undefined;
430
+ server_modified?: string | undefined;
431
+ rev?: string | undefined;
432
+ size?: number | undefined;
433
+ } | {
434
+ [x: string]: z.core.util.JSONType;
435
+ '.tag': "folder";
436
+ name: string;
437
+ id: string;
438
+ path_lower?: string | undefined;
439
+ path_display?: string | undefined;
440
+ } | {
441
+ [x: string]: z.core.util.JSONType;
442
+ '.tag': "deleted";
443
+ name: string;
444
+ path_lower?: string | undefined;
445
+ path_display?: string | undefined;
446
+ };
447
+ }>;
448
+ };
449
+ declare const createTextFileInput: z.ZodObject<{
450
+ autorename: z.ZodDefault<z.ZodBoolean>;
451
+ mute: z.ZodOptional<z.ZodBoolean>;
452
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
453
+ path: z.ZodString;
454
+ text: z.ZodString;
455
+ }, z.core.$strip>;
456
+ export declare const createTextFile: {
457
+ slug: string;
458
+ description: string;
459
+ input: z.ZodObject<{
460
+ autorename: z.ZodDefault<z.ZodBoolean>;
461
+ mute: z.ZodOptional<z.ZodBoolean>;
462
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
463
+ path: z.ZodString;
464
+ text: z.ZodString;
465
+ }, z.core.$strip>;
466
+ output: z.ZodDiscriminatedUnion<[z.ZodObject<{
467
+ '.tag': z.ZodLiteral<"file">;
468
+ name: z.ZodString;
469
+ id: z.ZodString;
470
+ path_lower: z.ZodOptional<z.ZodString>;
471
+ path_display: z.ZodOptional<z.ZodString>;
472
+ client_modified: z.ZodOptional<z.ZodString>;
473
+ server_modified: z.ZodOptional<z.ZodString>;
474
+ rev: z.ZodOptional<z.ZodString>;
475
+ size: z.ZodOptional<z.ZodNumber>;
476
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
477
+ '.tag': z.ZodLiteral<"folder">;
478
+ name: z.ZodString;
479
+ id: z.ZodString;
480
+ path_lower: z.ZodOptional<z.ZodString>;
481
+ path_display: z.ZodOptional<z.ZodString>;
482
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
483
+ '.tag': z.ZodLiteral<"deleted">;
484
+ name: z.ZodString;
485
+ path_lower: z.ZodOptional<z.ZodString>;
486
+ path_display: z.ZodOptional<z.ZodString>;
487
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
488
+ idempotent: boolean;
489
+ run({ client, input, req }: DropboxRunArgs<typeof createTextFileInput>): Promise<{
490
+ [x: string]: z.core.util.JSONType;
491
+ '.tag': "file";
492
+ name: string;
493
+ id: string;
494
+ path_lower?: string | undefined;
495
+ path_display?: string | undefined;
496
+ client_modified?: string | undefined;
497
+ server_modified?: string | undefined;
498
+ rev?: string | undefined;
499
+ size?: number | undefined;
500
+ } | {
501
+ [x: string]: z.core.util.JSONType;
502
+ '.tag': "folder";
503
+ name: string;
504
+ id: string;
505
+ path_lower?: string | undefined;
506
+ path_display?: string | undefined;
507
+ } | {
508
+ [x: string]: z.core.util.JSONType;
509
+ '.tag': "deleted";
510
+ name: string;
511
+ path_lower?: string | undefined;
512
+ path_display?: string | undefined;
513
+ }>;
514
+ };
515
+ declare const uploadFileInput: z.ZodObject<{
516
+ autorename: z.ZodDefault<z.ZodBoolean>;
517
+ mute: z.ZodOptional<z.ZodBoolean>;
518
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
519
+ path: z.ZodString;
520
+ file: z.ZodObject<{
521
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
522
+ name: z.ZodOptional<z.ZodString>;
523
+ }, z.core.$strip>;
524
+ }, z.core.$strip>;
525
+ export declare const uploadFile: {
526
+ slug: string;
527
+ description: string;
528
+ input: z.ZodObject<{
529
+ autorename: z.ZodDefault<z.ZodBoolean>;
530
+ mute: z.ZodOptional<z.ZodBoolean>;
531
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
532
+ path: z.ZodString;
533
+ file: z.ZodObject<{
534
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
535
+ name: z.ZodOptional<z.ZodString>;
536
+ }, z.core.$strip>;
537
+ }, z.core.$strip>;
538
+ output: z.ZodDiscriminatedUnion<[z.ZodObject<{
539
+ '.tag': z.ZodLiteral<"file">;
540
+ name: z.ZodString;
541
+ id: z.ZodString;
542
+ path_lower: z.ZodOptional<z.ZodString>;
543
+ path_display: z.ZodOptional<z.ZodString>;
544
+ client_modified: z.ZodOptional<z.ZodString>;
545
+ server_modified: z.ZodOptional<z.ZodString>;
546
+ rev: z.ZodOptional<z.ZodString>;
547
+ size: z.ZodOptional<z.ZodNumber>;
548
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
549
+ '.tag': z.ZodLiteral<"folder">;
550
+ name: z.ZodString;
551
+ id: z.ZodString;
552
+ path_lower: z.ZodOptional<z.ZodString>;
553
+ path_display: z.ZodOptional<z.ZodString>;
554
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
555
+ '.tag': z.ZodLiteral<"deleted">;
556
+ name: z.ZodString;
557
+ path_lower: z.ZodOptional<z.ZodString>;
558
+ path_display: z.ZodOptional<z.ZodString>;
559
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
560
+ idempotent: boolean;
561
+ run({ client, input, req }: DropboxRunArgs<typeof uploadFileInput>): Promise<{
562
+ [x: string]: z.core.util.JSONType;
563
+ '.tag': "file";
564
+ name: string;
565
+ id: string;
566
+ path_lower?: string | undefined;
567
+ path_display?: string | undefined;
568
+ client_modified?: string | undefined;
569
+ server_modified?: string | undefined;
570
+ rev?: string | undefined;
571
+ size?: number | undefined;
572
+ } | {
573
+ [x: string]: z.core.util.JSONType;
574
+ '.tag': "folder";
575
+ name: string;
576
+ id: string;
577
+ path_lower?: string | undefined;
578
+ path_display?: string | undefined;
579
+ } | {
580
+ [x: string]: z.core.util.JSONType;
581
+ '.tag': "deleted";
582
+ name: string;
583
+ path_lower?: string | undefined;
584
+ path_display?: string | undefined;
585
+ }>;
586
+ };
587
+ export declare const downloadFile: {
588
+ slug: string;
589
+ description: string;
590
+ input: z.ZodObject<{
591
+ path: z.ZodString;
592
+ }, z.core.$strip>;
593
+ output: z.ZodObject<{
594
+ file: z.ZodObject<{
595
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
596
+ name: z.ZodString;
597
+ mimeType: z.ZodString;
598
+ size: z.ZodNumber;
599
+ url: z.ZodOptional<z.ZodString>;
600
+ }, z.core.$strip>;
601
+ }, z.core.$strip>;
602
+ idempotent: boolean;
603
+ run({ client, input, req }: DropboxRunArgs<typeof pathInput>): Promise<{
604
+ file: {
605
+ id: string | number;
606
+ name: string;
607
+ mimeType: string;
608
+ size: number;
609
+ url?: string | undefined;
610
+ };
611
+ }>;
612
+ };
613
+ export declare const getTemporaryLink: {
614
+ slug: string;
615
+ description: string;
616
+ input: z.ZodObject<{
617
+ path: z.ZodString;
618
+ }, z.core.$strip>;
619
+ output: z.ZodObject<{
620
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
621
+ '.tag': z.ZodLiteral<"file">;
622
+ name: z.ZodString;
623
+ id: z.ZodString;
624
+ path_lower: z.ZodOptional<z.ZodString>;
625
+ path_display: z.ZodOptional<z.ZodString>;
626
+ client_modified: z.ZodOptional<z.ZodString>;
627
+ server_modified: z.ZodOptional<z.ZodString>;
628
+ rev: z.ZodOptional<z.ZodString>;
629
+ size: z.ZodOptional<z.ZodNumber>;
630
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
631
+ '.tag': z.ZodLiteral<"folder">;
632
+ name: z.ZodString;
633
+ id: z.ZodString;
634
+ path_lower: z.ZodOptional<z.ZodString>;
635
+ path_display: z.ZodOptional<z.ZodString>;
636
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
637
+ '.tag': z.ZodLiteral<"deleted">;
638
+ name: z.ZodString;
639
+ path_lower: z.ZodOptional<z.ZodString>;
640
+ path_display: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
642
+ link: z.ZodString;
643
+ }, z.core.$catchall<z.ZodJSONSchema>>;
644
+ idempotent: boolean;
645
+ run({ client, input, req }: DropboxRunArgs<typeof pathInput>): Promise<{
646
+ [x: string]: z.core.util.JSONType;
647
+ metadata: {
648
+ [x: string]: z.core.util.JSONType;
649
+ '.tag': "file";
650
+ name: string;
651
+ id: string;
652
+ path_lower?: string | undefined;
653
+ path_display?: string | undefined;
654
+ client_modified?: string | undefined;
655
+ server_modified?: string | undefined;
656
+ rev?: string | undefined;
657
+ size?: number | undefined;
658
+ } | {
659
+ [x: string]: z.core.util.JSONType;
660
+ '.tag': "folder";
661
+ name: string;
662
+ id: string;
663
+ path_lower?: string | undefined;
664
+ path_display?: string | undefined;
665
+ } | {
666
+ [x: string]: z.core.util.JSONType;
667
+ '.tag': "deleted";
668
+ name: string;
669
+ path_lower?: string | undefined;
670
+ path_display?: string | undefined;
671
+ };
672
+ link: string;
673
+ }>;
674
+ };
675
+ export {};
676
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/actions/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,cAAc,CAAC;AAIlE,QAAA,MAAM,SAAS;;iBAAiC,CAAC;AACjD,QAAA,MAAM,aAAa;;;;;iBAKjB,CAAC;AAiDH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAlCiB,cAAc,CAAC,OAAO,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCnB,CAAC;AACxD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAnCe,cAAc,CAAC,OAAO,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCf,CAAC;AAC5D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCApCiB,cAAc,CAAC,OAAO,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCnB,CAAC;AACxD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCArCe,cAAc,CAAC,OAAO,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCf,CAAC;AAC5D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAfe,cAAc,CAAC,OAAO,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAexB,CAAC;AAC/C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAhBa,cAAc,CAAC,OAAO,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBpB,CAAC;AAEnD,QAAA,MAAM,iBAAiB;;;iBAGrB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAMW,cAAc,CAAC,OAAO,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG3E,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;iBAIvB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAMS,cAAc,CAAC,OAAO,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAe7E,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;iBAInB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAMa,cAAc,CAAC,OAAO,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAiBzE,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;gCAMW,cAAc,CAAC,OAAO,SAAS,CAAC;;;;;;;;;CAkBnE,CAAC;AASF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAMO,cAAc,CAAC,OAAO,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnE,CAAC"}