@frogbotai/piece-dropbox 0.22.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.
package/dist/index.d.ts CHANGED
@@ -1,34 +1,1109 @@
1
- import { type PieceFactoryConfig } from 'frogbot/pieces';
2
- export declare const dropboxActions: readonly ["search_dropbox", "create_new_dropbox_text_file", "upload_dropbox_file", "downloadFile", "get_dropbox_file_link", "delete_dropbox_file", "move_dropbox_file", "copy_dropbox_file", "create_new_dropbox_folder", "list_dropbox_folder"];
3
- export declare const dropboxScopes: readonly ["files.metadata.write", "files.metadata.read", "files.content.write", "files.content.read"];
4
- export declare function createDropbox(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
5
- /** Search: Search for files and folders */
6
- searchDropbox: import("node_modules/frogbot/dist/tools/types").AnyTool;
7
- /** Create New Text File: Create a new text file from text input */
8
- createNewDropboxTextFile: import("node_modules/frogbot/dist/tools/types").AnyTool;
9
- /** Upload file: Upload a file */
10
- uploadDropboxFile: import("node_modules/frogbot/dist/tools/types").AnyTool;
11
- /** Download File: Download a File from Dropbox */
12
- downloadFile: import("node_modules/frogbot/dist/tools/types").AnyTool;
13
- /** Get temporary file link: Get a temporary file link */
14
- getDropboxFileLink: import("node_modules/frogbot/dist/tools/types").AnyTool;
15
- /** Delete file: Delete a file */
16
- deleteDropboxFile: import("node_modules/frogbot/dist/tools/types").AnyTool;
17
- /** Move file: Move a file */
18
- moveDropboxFile: import("node_modules/frogbot/dist/tools/types").AnyTool;
19
- /** Copy file: Copy a file */
20
- copyDropboxFile: import("node_modules/frogbot/dist/tools/types").AnyTool;
21
- /** Create New Folder: Create a new empty folder */
22
- createNewDropboxFolder: import("node_modules/frogbot/dist/tools/types").AnyTool;
23
- /** Delete folder: Delete a folder */
24
- deleteDropboxFolder: import("node_modules/frogbot/dist/tools/types").AnyTool;
25
- /** Move folder: Move a folder */
26
- moveDropboxFolder: import("node_modules/frogbot/dist/tools/types").AnyTool;
27
- /** Copy folder: Copy a folder */
28
- copyDropboxFolder: import("node_modules/frogbot/dist/tools/types").AnyTool;
29
- /** List a folder: List the contents of a folder */
30
- listDropboxFolder: import("node_modules/frogbot/dist/tools/types").AnyTool;
31
- /** Custom API Call: Make a custom API call to a specific endpoint */
32
- customApiCall: import("node_modules/frogbot/dist/tools/types").AnyTool;
1
+ import { z } from 'zod';
2
+ import { createDropboxClient, type DropboxClient } from './client.js';
3
+ export type { DropboxAuth, DropboxClient } from './client.js';
4
+ export { dropboxAuth } from './client.js';
5
+ export declare const dropboxActions: string[];
6
+ export declare const dropboxScopes: string[];
7
+ export declare const dropboxOAuth: {
8
+ authorizationUrl: string;
9
+ tokenUrl: string;
10
+ scopes: string[];
11
+ pkce: true;
12
+ params: {
13
+ token_access_type: string;
14
+ };
15
+ toAuth: ({ tokens }: {
16
+ tokens: import("frogbot").OAuthTokens;
17
+ }) => {
18
+ accessToken: string;
19
+ refreshToken: string | undefined;
20
+ };
21
+ account({ client, req }: {
22
+ tokens: import("frogbot").OAuthTokens;
23
+ client: DropboxClient;
24
+ req: import("frogbot").FrogbotRequest;
25
+ }): Promise<{
26
+ id: string;
27
+ label: string;
28
+ email: string;
29
+ }>;
33
30
  };
31
+ export declare const createDropbox: import("frogbot").PieceFactory<{
32
+ readonly slug: "dropbox";
33
+ readonly label: "Dropbox";
34
+ readonly admin: {
35
+ readonly description: "Store, find, organize, and download Dropbox files and folders";
36
+ readonly group: "Content and Files";
37
+ };
38
+ readonly auth: z.ZodObject<{
39
+ accessToken: z.ZodString;
40
+ refreshToken: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strip>;
42
+ readonly client: typeof createDropboxClient;
43
+ readonly oauth: {
44
+ authorizationUrl: string;
45
+ tokenUrl: string;
46
+ scopes: string[];
47
+ pkce: true;
48
+ params: {
49
+ token_access_type: string;
50
+ };
51
+ toAuth: ({ tokens }: {
52
+ tokens: import("frogbot").OAuthTokens;
53
+ }) => {
54
+ accessToken: string;
55
+ refreshToken: string | undefined;
56
+ };
57
+ account({ client, req }: {
58
+ tokens: import("frogbot").OAuthTokens;
59
+ client: DropboxClient;
60
+ req: import("frogbot").FrogbotRequest;
61
+ }): Promise<{
62
+ id: string;
63
+ label: string;
64
+ email: string;
65
+ }>;
66
+ };
67
+ readonly actions: readonly [{
68
+ slug: string;
69
+ description: string;
70
+ input: z.ZodObject<{
71
+ query: z.ZodString;
72
+ path: z.ZodDefault<z.ZodString>;
73
+ maxResults: z.ZodDefault<z.ZodNumber>;
74
+ orderBy: z.ZodDefault<z.ZodEnum<{
75
+ relevance: "relevance";
76
+ modified_time: "modified_time";
77
+ }>>;
78
+ fileStatus: z.ZodDefault<z.ZodEnum<{
79
+ deleted: "deleted";
80
+ active: "active";
81
+ }>>;
82
+ filenameOnly: z.ZodDefault<z.ZodBoolean>;
83
+ fileExtensions: z.ZodOptional<z.ZodString>;
84
+ fileCategories: z.ZodOptional<z.ZodString>;
85
+ accountId: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>;
87
+ output: z.ZodObject<{
88
+ matches: z.ZodArray<z.ZodObject<{
89
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
90
+ '.tag': z.ZodLiteral<"metadata">;
91
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
92
+ '.tag': z.ZodLiteral<"file">;
93
+ name: z.ZodString;
94
+ id: z.ZodString;
95
+ path_lower: z.ZodOptional<z.ZodString>;
96
+ path_display: z.ZodOptional<z.ZodString>;
97
+ client_modified: z.ZodOptional<z.ZodString>;
98
+ server_modified: z.ZodOptional<z.ZodString>;
99
+ rev: z.ZodOptional<z.ZodString>;
100
+ size: z.ZodOptional<z.ZodNumber>;
101
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
102
+ '.tag': z.ZodLiteral<"folder">;
103
+ name: z.ZodString;
104
+ id: z.ZodString;
105
+ path_lower: z.ZodOptional<z.ZodString>;
106
+ path_display: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
108
+ '.tag': z.ZodLiteral<"deleted">;
109
+ name: z.ZodString;
110
+ path_lower: z.ZodOptional<z.ZodString>;
111
+ path_display: z.ZodOptional<z.ZodString>;
112
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
113
+ }, z.core.$strip>, z.ZodObject<{
114
+ '.tag': z.ZodLiteral<"text_content">;
115
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
116
+ '.tag': z.ZodLiteral<"file">;
117
+ name: z.ZodString;
118
+ id: z.ZodString;
119
+ path_lower: z.ZodOptional<z.ZodString>;
120
+ path_display: z.ZodOptional<z.ZodString>;
121
+ client_modified: z.ZodOptional<z.ZodString>;
122
+ server_modified: z.ZodOptional<z.ZodString>;
123
+ rev: z.ZodOptional<z.ZodString>;
124
+ size: z.ZodOptional<z.ZodNumber>;
125
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
126
+ '.tag': z.ZodLiteral<"folder">;
127
+ name: z.ZodString;
128
+ id: z.ZodString;
129
+ path_lower: z.ZodOptional<z.ZodString>;
130
+ path_display: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
132
+ '.tag': z.ZodLiteral<"deleted">;
133
+ name: z.ZodString;
134
+ path_lower: z.ZodOptional<z.ZodString>;
135
+ path_display: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
137
+ }, z.core.$strip>], ".tag">;
138
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
139
+ has_more: z.ZodBoolean;
140
+ cursor: z.ZodOptional<z.ZodString>;
141
+ }, z.core.$catchall<z.ZodJSONSchema>>;
142
+ idempotent: boolean;
143
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
144
+ query: z.ZodString;
145
+ path: z.ZodDefault<z.ZodString>;
146
+ maxResults: z.ZodDefault<z.ZodNumber>;
147
+ orderBy: z.ZodDefault<z.ZodEnum<{
148
+ relevance: "relevance";
149
+ modified_time: "modified_time";
150
+ }>>;
151
+ fileStatus: z.ZodDefault<z.ZodEnum<{
152
+ deleted: "deleted";
153
+ active: "active";
154
+ }>>;
155
+ filenameOnly: z.ZodDefault<z.ZodBoolean>;
156
+ fileExtensions: z.ZodOptional<z.ZodString>;
157
+ fileCategories: z.ZodOptional<z.ZodString>;
158
+ accountId: z.ZodOptional<z.ZodString>;
159
+ }, z.core.$strip>>): Promise<{
160
+ [x: string]: z.core.util.JSONType;
161
+ matches: {
162
+ [x: string]: z.core.util.JSONType;
163
+ metadata: {
164
+ '.tag': "metadata";
165
+ metadata: {
166
+ [x: string]: z.core.util.JSONType;
167
+ '.tag': "file";
168
+ name: string;
169
+ id: string;
170
+ path_lower?: string | undefined;
171
+ path_display?: string | undefined;
172
+ client_modified?: string | undefined;
173
+ server_modified?: string | undefined;
174
+ rev?: string | undefined;
175
+ size?: number | undefined;
176
+ } | {
177
+ [x: string]: z.core.util.JSONType;
178
+ '.tag': "folder";
179
+ name: string;
180
+ id: string;
181
+ path_lower?: string | undefined;
182
+ path_display?: string | undefined;
183
+ } | {
184
+ [x: string]: z.core.util.JSONType;
185
+ '.tag': "deleted";
186
+ name: string;
187
+ path_lower?: string | undefined;
188
+ path_display?: string | undefined;
189
+ };
190
+ } | {
191
+ '.tag': "text_content";
192
+ metadata: {
193
+ [x: string]: z.core.util.JSONType;
194
+ '.tag': "file";
195
+ name: string;
196
+ id: string;
197
+ path_lower?: string | undefined;
198
+ path_display?: string | undefined;
199
+ client_modified?: string | undefined;
200
+ server_modified?: string | undefined;
201
+ rev?: string | undefined;
202
+ size?: number | undefined;
203
+ } | {
204
+ [x: string]: z.core.util.JSONType;
205
+ '.tag': "folder";
206
+ name: string;
207
+ id: string;
208
+ path_lower?: string | undefined;
209
+ path_display?: string | undefined;
210
+ } | {
211
+ [x: string]: z.core.util.JSONType;
212
+ '.tag': "deleted";
213
+ name: string;
214
+ path_lower?: string | undefined;
215
+ path_display?: string | undefined;
216
+ };
217
+ };
218
+ }[];
219
+ has_more: boolean;
220
+ cursor?: string | undefined;
221
+ }>;
222
+ }, {
223
+ slug: string;
224
+ description: string;
225
+ input: z.ZodObject<{
226
+ autorename: z.ZodDefault<z.ZodBoolean>;
227
+ mute: z.ZodOptional<z.ZodBoolean>;
228
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
229
+ path: z.ZodString;
230
+ text: z.ZodString;
231
+ }, z.core.$strip>;
232
+ output: z.ZodDiscriminatedUnion<[z.ZodObject<{
233
+ '.tag': z.ZodLiteral<"file">;
234
+ name: z.ZodString;
235
+ id: z.ZodString;
236
+ path_lower: z.ZodOptional<z.ZodString>;
237
+ path_display: z.ZodOptional<z.ZodString>;
238
+ client_modified: z.ZodOptional<z.ZodString>;
239
+ server_modified: z.ZodOptional<z.ZodString>;
240
+ rev: z.ZodOptional<z.ZodString>;
241
+ size: z.ZodOptional<z.ZodNumber>;
242
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
243
+ '.tag': z.ZodLiteral<"folder">;
244
+ name: z.ZodString;
245
+ id: z.ZodString;
246
+ path_lower: z.ZodOptional<z.ZodString>;
247
+ path_display: z.ZodOptional<z.ZodString>;
248
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
249
+ '.tag': z.ZodLiteral<"deleted">;
250
+ name: z.ZodString;
251
+ path_lower: z.ZodOptional<z.ZodString>;
252
+ path_display: z.ZodOptional<z.ZodString>;
253
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
254
+ idempotent: boolean;
255
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
256
+ autorename: z.ZodDefault<z.ZodBoolean>;
257
+ mute: z.ZodOptional<z.ZodBoolean>;
258
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
259
+ path: z.ZodString;
260
+ text: z.ZodString;
261
+ }, z.core.$strip>>): Promise<{
262
+ [x: string]: z.core.util.JSONType;
263
+ '.tag': "file";
264
+ name: string;
265
+ id: string;
266
+ path_lower?: string | undefined;
267
+ path_display?: string | undefined;
268
+ client_modified?: string | undefined;
269
+ server_modified?: string | undefined;
270
+ rev?: string | undefined;
271
+ size?: number | undefined;
272
+ } | {
273
+ [x: string]: z.core.util.JSONType;
274
+ '.tag': "folder";
275
+ name: string;
276
+ id: string;
277
+ path_lower?: string | undefined;
278
+ path_display?: string | undefined;
279
+ } | {
280
+ [x: string]: z.core.util.JSONType;
281
+ '.tag': "deleted";
282
+ name: string;
283
+ path_lower?: string | undefined;
284
+ path_display?: string | undefined;
285
+ }>;
286
+ }, {
287
+ slug: string;
288
+ description: string;
289
+ input: z.ZodObject<{
290
+ autorename: z.ZodDefault<z.ZodBoolean>;
291
+ mute: z.ZodOptional<z.ZodBoolean>;
292
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
293
+ path: z.ZodString;
294
+ file: z.ZodObject<{
295
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
296
+ name: z.ZodOptional<z.ZodString>;
297
+ }, z.core.$strip>;
298
+ }, z.core.$strip>;
299
+ output: z.ZodDiscriminatedUnion<[z.ZodObject<{
300
+ '.tag': z.ZodLiteral<"file">;
301
+ name: z.ZodString;
302
+ id: z.ZodString;
303
+ path_lower: z.ZodOptional<z.ZodString>;
304
+ path_display: z.ZodOptional<z.ZodString>;
305
+ client_modified: z.ZodOptional<z.ZodString>;
306
+ server_modified: z.ZodOptional<z.ZodString>;
307
+ rev: z.ZodOptional<z.ZodString>;
308
+ size: z.ZodOptional<z.ZodNumber>;
309
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
310
+ '.tag': z.ZodLiteral<"folder">;
311
+ name: z.ZodString;
312
+ id: z.ZodString;
313
+ path_lower: z.ZodOptional<z.ZodString>;
314
+ path_display: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
316
+ '.tag': z.ZodLiteral<"deleted">;
317
+ name: z.ZodString;
318
+ path_lower: z.ZodOptional<z.ZodString>;
319
+ path_display: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
321
+ idempotent: boolean;
322
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
323
+ autorename: z.ZodDefault<z.ZodBoolean>;
324
+ mute: z.ZodOptional<z.ZodBoolean>;
325
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
326
+ path: z.ZodString;
327
+ file: z.ZodObject<{
328
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
329
+ name: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strip>;
331
+ }, z.core.$strip>>): Promise<{
332
+ [x: string]: z.core.util.JSONType;
333
+ '.tag': "file";
334
+ name: string;
335
+ id: string;
336
+ path_lower?: string | undefined;
337
+ path_display?: string | undefined;
338
+ client_modified?: string | undefined;
339
+ server_modified?: string | undefined;
340
+ rev?: string | undefined;
341
+ size?: number | undefined;
342
+ } | {
343
+ [x: string]: z.core.util.JSONType;
344
+ '.tag': "folder";
345
+ name: string;
346
+ id: string;
347
+ path_lower?: string | undefined;
348
+ path_display?: string | undefined;
349
+ } | {
350
+ [x: string]: z.core.util.JSONType;
351
+ '.tag': "deleted";
352
+ name: string;
353
+ path_lower?: string | undefined;
354
+ path_display?: string | undefined;
355
+ }>;
356
+ }, {
357
+ slug: string;
358
+ description: string;
359
+ input: z.ZodObject<{
360
+ path: z.ZodString;
361
+ }, z.core.$strip>;
362
+ output: z.ZodObject<{
363
+ file: z.ZodObject<{
364
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
365
+ name: z.ZodString;
366
+ mimeType: z.ZodString;
367
+ size: z.ZodNumber;
368
+ url: z.ZodOptional<z.ZodString>;
369
+ }, z.core.$strip>;
370
+ }, z.core.$strip>;
371
+ idempotent: boolean;
372
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
373
+ path: z.ZodString;
374
+ }, z.core.$strip>>): Promise<{
375
+ file: {
376
+ id: string | number;
377
+ name: string;
378
+ mimeType: string;
379
+ size: number;
380
+ url?: string | undefined;
381
+ };
382
+ }>;
383
+ }, {
384
+ slug: string;
385
+ description: string;
386
+ input: z.ZodObject<{
387
+ path: z.ZodString;
388
+ }, z.core.$strip>;
389
+ output: z.ZodObject<{
390
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
391
+ '.tag': z.ZodLiteral<"file">;
392
+ name: z.ZodString;
393
+ id: z.ZodString;
394
+ path_lower: z.ZodOptional<z.ZodString>;
395
+ path_display: z.ZodOptional<z.ZodString>;
396
+ client_modified: z.ZodOptional<z.ZodString>;
397
+ server_modified: z.ZodOptional<z.ZodString>;
398
+ rev: z.ZodOptional<z.ZodString>;
399
+ size: z.ZodOptional<z.ZodNumber>;
400
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
401
+ '.tag': z.ZodLiteral<"folder">;
402
+ name: z.ZodString;
403
+ id: z.ZodString;
404
+ path_lower: z.ZodOptional<z.ZodString>;
405
+ path_display: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
407
+ '.tag': z.ZodLiteral<"deleted">;
408
+ name: z.ZodString;
409
+ path_lower: z.ZodOptional<z.ZodString>;
410
+ path_display: z.ZodOptional<z.ZodString>;
411
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
412
+ link: z.ZodString;
413
+ }, z.core.$catchall<z.ZodJSONSchema>>;
414
+ idempotent: boolean;
415
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
416
+ path: z.ZodString;
417
+ }, z.core.$strip>>): Promise<{
418
+ [x: string]: z.core.util.JSONType;
419
+ metadata: {
420
+ [x: string]: z.core.util.JSONType;
421
+ '.tag': "file";
422
+ name: string;
423
+ id: string;
424
+ path_lower?: string | undefined;
425
+ path_display?: string | undefined;
426
+ client_modified?: string | undefined;
427
+ server_modified?: string | undefined;
428
+ rev?: string | undefined;
429
+ size?: number | undefined;
430
+ } | {
431
+ [x: string]: z.core.util.JSONType;
432
+ '.tag': "folder";
433
+ name: string;
434
+ id: string;
435
+ path_lower?: string | undefined;
436
+ path_display?: string | undefined;
437
+ } | {
438
+ [x: string]: z.core.util.JSONType;
439
+ '.tag': "deleted";
440
+ name: string;
441
+ path_lower?: string | undefined;
442
+ path_display?: string | undefined;
443
+ };
444
+ link: string;
445
+ }>;
446
+ }, {
447
+ slug: "deleteFile" | "deleteFolder";
448
+ description: string;
449
+ input: z.ZodObject<{
450
+ path: z.ZodString;
451
+ }, z.core.$strip>;
452
+ output: z.ZodObject<{
453
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
454
+ '.tag': z.ZodLiteral<"file">;
455
+ name: z.ZodString;
456
+ id: z.ZodString;
457
+ path_lower: z.ZodOptional<z.ZodString>;
458
+ path_display: z.ZodOptional<z.ZodString>;
459
+ client_modified: z.ZodOptional<z.ZodString>;
460
+ server_modified: z.ZodOptional<z.ZodString>;
461
+ rev: z.ZodOptional<z.ZodString>;
462
+ size: z.ZodOptional<z.ZodNumber>;
463
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
464
+ '.tag': z.ZodLiteral<"folder">;
465
+ name: z.ZodString;
466
+ id: z.ZodString;
467
+ path_lower: z.ZodOptional<z.ZodString>;
468
+ path_display: z.ZodOptional<z.ZodString>;
469
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
470
+ '.tag': z.ZodLiteral<"deleted">;
471
+ name: z.ZodString;
472
+ path_lower: z.ZodOptional<z.ZodString>;
473
+ path_display: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
475
+ }, z.core.$catchall<z.ZodJSONSchema>>;
476
+ idempotent: boolean;
477
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
478
+ path: z.ZodString;
479
+ }, z.core.$strip>>): Promise<{
480
+ [x: string]: z.core.util.JSONType;
481
+ metadata: {
482
+ [x: string]: z.core.util.JSONType;
483
+ '.tag': "file";
484
+ name: string;
485
+ id: string;
486
+ path_lower?: string | undefined;
487
+ path_display?: string | undefined;
488
+ client_modified?: string | undefined;
489
+ server_modified?: string | undefined;
490
+ rev?: string | undefined;
491
+ size?: number | undefined;
492
+ } | {
493
+ [x: string]: z.core.util.JSONType;
494
+ '.tag': "folder";
495
+ name: string;
496
+ id: string;
497
+ path_lower?: string | undefined;
498
+ path_display?: string | undefined;
499
+ } | {
500
+ [x: string]: z.core.util.JSONType;
501
+ '.tag': "deleted";
502
+ name: string;
503
+ path_lower?: string | undefined;
504
+ path_display?: string | undefined;
505
+ };
506
+ }>;
507
+ }, {
508
+ slug: "copyFile" | "copyFolder" | "moveFile" | "moveFolder";
509
+ description: string;
510
+ input: z.ZodObject<{
511
+ fromPath: z.ZodString;
512
+ toPath: z.ZodString;
513
+ autorename: z.ZodDefault<z.ZodBoolean>;
514
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
515
+ }, z.core.$strip>;
516
+ output: z.ZodObject<{
517
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
518
+ '.tag': z.ZodLiteral<"file">;
519
+ name: z.ZodString;
520
+ id: z.ZodString;
521
+ path_lower: z.ZodOptional<z.ZodString>;
522
+ path_display: z.ZodOptional<z.ZodString>;
523
+ client_modified: z.ZodOptional<z.ZodString>;
524
+ server_modified: z.ZodOptional<z.ZodString>;
525
+ rev: z.ZodOptional<z.ZodString>;
526
+ size: z.ZodOptional<z.ZodNumber>;
527
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
528
+ '.tag': z.ZodLiteral<"folder">;
529
+ name: z.ZodString;
530
+ id: z.ZodString;
531
+ path_lower: z.ZodOptional<z.ZodString>;
532
+ path_display: z.ZodOptional<z.ZodString>;
533
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
534
+ '.tag': z.ZodLiteral<"deleted">;
535
+ name: z.ZodString;
536
+ path_lower: z.ZodOptional<z.ZodString>;
537
+ path_display: z.ZodOptional<z.ZodString>;
538
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
539
+ }, z.core.$catchall<z.ZodJSONSchema>>;
540
+ idempotent: boolean;
541
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
542
+ fromPath: z.ZodString;
543
+ toPath: z.ZodString;
544
+ autorename: z.ZodDefault<z.ZodBoolean>;
545
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
546
+ }, z.core.$strip>>): Promise<{
547
+ [x: string]: z.core.util.JSONType;
548
+ metadata: {
549
+ [x: string]: z.core.util.JSONType;
550
+ '.tag': "file";
551
+ name: string;
552
+ id: string;
553
+ path_lower?: string | undefined;
554
+ path_display?: string | undefined;
555
+ client_modified?: string | undefined;
556
+ server_modified?: string | undefined;
557
+ rev?: string | undefined;
558
+ size?: number | undefined;
559
+ } | {
560
+ [x: string]: z.core.util.JSONType;
561
+ '.tag': "folder";
562
+ name: string;
563
+ id: string;
564
+ path_lower?: string | undefined;
565
+ path_display?: string | undefined;
566
+ } | {
567
+ [x: string]: z.core.util.JSONType;
568
+ '.tag': "deleted";
569
+ name: string;
570
+ path_lower?: string | undefined;
571
+ path_display?: string | undefined;
572
+ };
573
+ }>;
574
+ }, {
575
+ slug: "copyFile" | "copyFolder" | "moveFile" | "moveFolder";
576
+ description: string;
577
+ input: z.ZodObject<{
578
+ fromPath: z.ZodString;
579
+ toPath: z.ZodString;
580
+ autorename: z.ZodDefault<z.ZodBoolean>;
581
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
582
+ }, z.core.$strip>;
583
+ output: z.ZodObject<{
584
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
585
+ '.tag': z.ZodLiteral<"file">;
586
+ name: z.ZodString;
587
+ id: z.ZodString;
588
+ path_lower: z.ZodOptional<z.ZodString>;
589
+ path_display: z.ZodOptional<z.ZodString>;
590
+ client_modified: z.ZodOptional<z.ZodString>;
591
+ server_modified: z.ZodOptional<z.ZodString>;
592
+ rev: z.ZodOptional<z.ZodString>;
593
+ size: z.ZodOptional<z.ZodNumber>;
594
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
595
+ '.tag': z.ZodLiteral<"folder">;
596
+ name: z.ZodString;
597
+ id: z.ZodString;
598
+ path_lower: z.ZodOptional<z.ZodString>;
599
+ path_display: z.ZodOptional<z.ZodString>;
600
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
601
+ '.tag': z.ZodLiteral<"deleted">;
602
+ name: z.ZodString;
603
+ path_lower: z.ZodOptional<z.ZodString>;
604
+ path_display: z.ZodOptional<z.ZodString>;
605
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
606
+ }, z.core.$catchall<z.ZodJSONSchema>>;
607
+ idempotent: boolean;
608
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
609
+ fromPath: z.ZodString;
610
+ toPath: z.ZodString;
611
+ autorename: z.ZodDefault<z.ZodBoolean>;
612
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
613
+ }, z.core.$strip>>): Promise<{
614
+ [x: string]: z.core.util.JSONType;
615
+ metadata: {
616
+ [x: string]: z.core.util.JSONType;
617
+ '.tag': "file";
618
+ name: string;
619
+ id: string;
620
+ path_lower?: string | undefined;
621
+ path_display?: string | undefined;
622
+ client_modified?: string | undefined;
623
+ server_modified?: string | undefined;
624
+ rev?: string | undefined;
625
+ size?: number | undefined;
626
+ } | {
627
+ [x: string]: z.core.util.JSONType;
628
+ '.tag': "folder";
629
+ name: string;
630
+ id: string;
631
+ path_lower?: string | undefined;
632
+ path_display?: string | undefined;
633
+ } | {
634
+ [x: string]: z.core.util.JSONType;
635
+ '.tag': "deleted";
636
+ name: string;
637
+ path_lower?: string | undefined;
638
+ path_display?: string | undefined;
639
+ };
640
+ }>;
641
+ }, {
642
+ slug: string;
643
+ description: string;
644
+ input: z.ZodObject<{
645
+ path: z.ZodString;
646
+ autorename: z.ZodDefault<z.ZodBoolean>;
647
+ }, z.core.$strip>;
648
+ output: z.ZodObject<{
649
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
650
+ '.tag': z.ZodLiteral<"file">;
651
+ name: z.ZodString;
652
+ id: z.ZodString;
653
+ path_lower: z.ZodOptional<z.ZodString>;
654
+ path_display: z.ZodOptional<z.ZodString>;
655
+ client_modified: z.ZodOptional<z.ZodString>;
656
+ server_modified: z.ZodOptional<z.ZodString>;
657
+ rev: z.ZodOptional<z.ZodString>;
658
+ size: z.ZodOptional<z.ZodNumber>;
659
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
660
+ '.tag': z.ZodLiteral<"folder">;
661
+ name: z.ZodString;
662
+ id: z.ZodString;
663
+ path_lower: z.ZodOptional<z.ZodString>;
664
+ path_display: z.ZodOptional<z.ZodString>;
665
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
666
+ '.tag': z.ZodLiteral<"deleted">;
667
+ name: z.ZodString;
668
+ path_lower: z.ZodOptional<z.ZodString>;
669
+ path_display: z.ZodOptional<z.ZodString>;
670
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
671
+ }, z.core.$catchall<z.ZodJSONSchema>>;
672
+ idempotent: boolean;
673
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
674
+ path: z.ZodString;
675
+ autorename: z.ZodDefault<z.ZodBoolean>;
676
+ }, z.core.$strip>>): Promise<{
677
+ [x: string]: z.core.util.JSONType;
678
+ metadata: {
679
+ [x: string]: z.core.util.JSONType;
680
+ '.tag': "file";
681
+ name: string;
682
+ id: string;
683
+ path_lower?: string | undefined;
684
+ path_display?: string | undefined;
685
+ client_modified?: string | undefined;
686
+ server_modified?: string | undefined;
687
+ rev?: string | undefined;
688
+ size?: number | undefined;
689
+ } | {
690
+ [x: string]: z.core.util.JSONType;
691
+ '.tag': "folder";
692
+ name: string;
693
+ id: string;
694
+ path_lower?: string | undefined;
695
+ path_display?: string | undefined;
696
+ } | {
697
+ [x: string]: z.core.util.JSONType;
698
+ '.tag': "deleted";
699
+ name: string;
700
+ path_lower?: string | undefined;
701
+ path_display?: string | undefined;
702
+ };
703
+ }>;
704
+ }, {
705
+ slug: "deleteFile" | "deleteFolder";
706
+ description: string;
707
+ input: z.ZodObject<{
708
+ path: z.ZodString;
709
+ }, z.core.$strip>;
710
+ output: z.ZodObject<{
711
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
712
+ '.tag': z.ZodLiteral<"file">;
713
+ name: z.ZodString;
714
+ id: z.ZodString;
715
+ path_lower: z.ZodOptional<z.ZodString>;
716
+ path_display: z.ZodOptional<z.ZodString>;
717
+ client_modified: z.ZodOptional<z.ZodString>;
718
+ server_modified: z.ZodOptional<z.ZodString>;
719
+ rev: z.ZodOptional<z.ZodString>;
720
+ size: z.ZodOptional<z.ZodNumber>;
721
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
722
+ '.tag': z.ZodLiteral<"folder">;
723
+ name: z.ZodString;
724
+ id: z.ZodString;
725
+ path_lower: z.ZodOptional<z.ZodString>;
726
+ path_display: z.ZodOptional<z.ZodString>;
727
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
728
+ '.tag': z.ZodLiteral<"deleted">;
729
+ name: z.ZodString;
730
+ path_lower: z.ZodOptional<z.ZodString>;
731
+ path_display: z.ZodOptional<z.ZodString>;
732
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
733
+ }, z.core.$catchall<z.ZodJSONSchema>>;
734
+ idempotent: boolean;
735
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
736
+ path: z.ZodString;
737
+ }, z.core.$strip>>): Promise<{
738
+ [x: string]: z.core.util.JSONType;
739
+ metadata: {
740
+ [x: string]: z.core.util.JSONType;
741
+ '.tag': "file";
742
+ name: string;
743
+ id: string;
744
+ path_lower?: string | undefined;
745
+ path_display?: string | undefined;
746
+ client_modified?: string | undefined;
747
+ server_modified?: string | undefined;
748
+ rev?: string | undefined;
749
+ size?: number | undefined;
750
+ } | {
751
+ [x: string]: z.core.util.JSONType;
752
+ '.tag': "folder";
753
+ name: string;
754
+ id: string;
755
+ path_lower?: string | undefined;
756
+ path_display?: string | undefined;
757
+ } | {
758
+ [x: string]: z.core.util.JSONType;
759
+ '.tag': "deleted";
760
+ name: string;
761
+ path_lower?: string | undefined;
762
+ path_display?: string | undefined;
763
+ };
764
+ }>;
765
+ }, {
766
+ slug: "copyFile" | "copyFolder" | "moveFile" | "moveFolder";
767
+ description: string;
768
+ input: z.ZodObject<{
769
+ fromPath: z.ZodString;
770
+ toPath: z.ZodString;
771
+ autorename: z.ZodDefault<z.ZodBoolean>;
772
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
773
+ }, z.core.$strip>;
774
+ output: z.ZodObject<{
775
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
776
+ '.tag': z.ZodLiteral<"file">;
777
+ name: z.ZodString;
778
+ id: z.ZodString;
779
+ path_lower: z.ZodOptional<z.ZodString>;
780
+ path_display: z.ZodOptional<z.ZodString>;
781
+ client_modified: z.ZodOptional<z.ZodString>;
782
+ server_modified: z.ZodOptional<z.ZodString>;
783
+ rev: z.ZodOptional<z.ZodString>;
784
+ size: z.ZodOptional<z.ZodNumber>;
785
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
786
+ '.tag': z.ZodLiteral<"folder">;
787
+ name: z.ZodString;
788
+ id: z.ZodString;
789
+ path_lower: z.ZodOptional<z.ZodString>;
790
+ path_display: z.ZodOptional<z.ZodString>;
791
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
792
+ '.tag': z.ZodLiteral<"deleted">;
793
+ name: z.ZodString;
794
+ path_lower: z.ZodOptional<z.ZodString>;
795
+ path_display: z.ZodOptional<z.ZodString>;
796
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
797
+ }, z.core.$catchall<z.ZodJSONSchema>>;
798
+ idempotent: boolean;
799
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
800
+ fromPath: z.ZodString;
801
+ toPath: z.ZodString;
802
+ autorename: z.ZodDefault<z.ZodBoolean>;
803
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
804
+ }, z.core.$strip>>): Promise<{
805
+ [x: string]: z.core.util.JSONType;
806
+ metadata: {
807
+ [x: string]: z.core.util.JSONType;
808
+ '.tag': "file";
809
+ name: string;
810
+ id: string;
811
+ path_lower?: string | undefined;
812
+ path_display?: string | undefined;
813
+ client_modified?: string | undefined;
814
+ server_modified?: string | undefined;
815
+ rev?: string | undefined;
816
+ size?: number | undefined;
817
+ } | {
818
+ [x: string]: z.core.util.JSONType;
819
+ '.tag': "folder";
820
+ name: string;
821
+ id: string;
822
+ path_lower?: string | undefined;
823
+ path_display?: string | undefined;
824
+ } | {
825
+ [x: string]: z.core.util.JSONType;
826
+ '.tag': "deleted";
827
+ name: string;
828
+ path_lower?: string | undefined;
829
+ path_display?: string | undefined;
830
+ };
831
+ }>;
832
+ }, {
833
+ slug: "copyFile" | "copyFolder" | "moveFile" | "moveFolder";
834
+ description: string;
835
+ input: z.ZodObject<{
836
+ fromPath: z.ZodString;
837
+ toPath: z.ZodString;
838
+ autorename: z.ZodDefault<z.ZodBoolean>;
839
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
840
+ }, z.core.$strip>;
841
+ output: z.ZodObject<{
842
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
843
+ '.tag': z.ZodLiteral<"file">;
844
+ name: z.ZodString;
845
+ id: z.ZodString;
846
+ path_lower: z.ZodOptional<z.ZodString>;
847
+ path_display: z.ZodOptional<z.ZodString>;
848
+ client_modified: z.ZodOptional<z.ZodString>;
849
+ server_modified: z.ZodOptional<z.ZodString>;
850
+ rev: z.ZodOptional<z.ZodString>;
851
+ size: z.ZodOptional<z.ZodNumber>;
852
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
853
+ '.tag': z.ZodLiteral<"folder">;
854
+ name: z.ZodString;
855
+ id: z.ZodString;
856
+ path_lower: z.ZodOptional<z.ZodString>;
857
+ path_display: z.ZodOptional<z.ZodString>;
858
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
859
+ '.tag': z.ZodLiteral<"deleted">;
860
+ name: z.ZodString;
861
+ path_lower: z.ZodOptional<z.ZodString>;
862
+ path_display: z.ZodOptional<z.ZodString>;
863
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
864
+ }, z.core.$catchall<z.ZodJSONSchema>>;
865
+ idempotent: boolean;
866
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
867
+ fromPath: z.ZodString;
868
+ toPath: z.ZodString;
869
+ autorename: z.ZodDefault<z.ZodBoolean>;
870
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
871
+ }, z.core.$strip>>): Promise<{
872
+ [x: string]: z.core.util.JSONType;
873
+ metadata: {
874
+ [x: string]: z.core.util.JSONType;
875
+ '.tag': "file";
876
+ name: string;
877
+ id: string;
878
+ path_lower?: string | undefined;
879
+ path_display?: string | undefined;
880
+ client_modified?: string | undefined;
881
+ server_modified?: string | undefined;
882
+ rev?: string | undefined;
883
+ size?: number | undefined;
884
+ } | {
885
+ [x: string]: z.core.util.JSONType;
886
+ '.tag': "folder";
887
+ name: string;
888
+ id: string;
889
+ path_lower?: string | undefined;
890
+ path_display?: string | undefined;
891
+ } | {
892
+ [x: string]: z.core.util.JSONType;
893
+ '.tag': "deleted";
894
+ name: string;
895
+ path_lower?: string | undefined;
896
+ path_display?: string | undefined;
897
+ };
898
+ }>;
899
+ }, {
900
+ slug: string;
901
+ description: string;
902
+ input: z.ZodObject<{
903
+ path: z.ZodString;
904
+ recursive: z.ZodDefault<z.ZodBoolean>;
905
+ limit: z.ZodDefault<z.ZodNumber>;
906
+ }, z.core.$strip>;
907
+ output: z.ZodObject<{
908
+ entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
909
+ '.tag': z.ZodLiteral<"file">;
910
+ name: z.ZodString;
911
+ id: z.ZodString;
912
+ path_lower: z.ZodOptional<z.ZodString>;
913
+ path_display: z.ZodOptional<z.ZodString>;
914
+ client_modified: z.ZodOptional<z.ZodString>;
915
+ server_modified: z.ZodOptional<z.ZodString>;
916
+ rev: z.ZodOptional<z.ZodString>;
917
+ size: z.ZodOptional<z.ZodNumber>;
918
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
919
+ '.tag': z.ZodLiteral<"folder">;
920
+ name: z.ZodString;
921
+ id: z.ZodString;
922
+ path_lower: z.ZodOptional<z.ZodString>;
923
+ path_display: z.ZodOptional<z.ZodString>;
924
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
925
+ '.tag': z.ZodLiteral<"deleted">;
926
+ name: z.ZodString;
927
+ path_lower: z.ZodOptional<z.ZodString>;
928
+ path_display: z.ZodOptional<z.ZodString>;
929
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">>;
930
+ cursor: z.ZodString;
931
+ }, z.core.$strip>;
932
+ idempotent: boolean;
933
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
934
+ path: z.ZodString;
935
+ recursive: z.ZodDefault<z.ZodBoolean>;
936
+ limit: z.ZodDefault<z.ZodNumber>;
937
+ }, z.core.$strip>>): Promise<{
938
+ entries: ({
939
+ [x: string]: z.core.util.JSONType;
940
+ '.tag': "file";
941
+ name: string;
942
+ id: string;
943
+ path_lower?: string | undefined;
944
+ path_display?: string | undefined;
945
+ client_modified?: string | undefined;
946
+ server_modified?: string | undefined;
947
+ rev?: string | undefined;
948
+ size?: number | undefined;
949
+ } | {
950
+ [x: string]: z.core.util.JSONType;
951
+ '.tag': "folder";
952
+ name: string;
953
+ id: string;
954
+ path_lower?: string | undefined;
955
+ path_display?: string | undefined;
956
+ } | {
957
+ [x: string]: z.core.util.JSONType;
958
+ '.tag': "deleted";
959
+ name: string;
960
+ path_lower?: string | undefined;
961
+ path_display?: string | undefined;
962
+ })[];
963
+ cursor: string;
964
+ }>;
965
+ }, {
966
+ slug: string;
967
+ description: string;
968
+ input: z.ZodObject<{
969
+ method: z.ZodEnum<{
970
+ POST: "POST";
971
+ GET: "GET";
972
+ PATCH: "PATCH";
973
+ PUT: "PUT";
974
+ DELETE: "DELETE";
975
+ HEAD: "HEAD";
976
+ }>;
977
+ path: z.ZodString;
978
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
979
+ query: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
980
+ body: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
981
+ type: z.ZodLiteral<"json">;
982
+ value: z.ZodJSONSchema;
983
+ }, z.core.$strip>, z.ZodObject<{
984
+ type: z.ZodLiteral<"raw">;
985
+ value: z.ZodString;
986
+ }, z.core.$strip>, z.ZodObject<{
987
+ type: z.ZodLiteral<"formData">;
988
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
989
+ type: z.ZodLiteral<"text">;
990
+ name: z.ZodString;
991
+ value: z.ZodString;
992
+ }, z.core.$strip>, z.ZodObject<{
993
+ type: z.ZodLiteral<"file">;
994
+ name: z.ZodString;
995
+ file: z.ZodObject<{
996
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
997
+ name: z.ZodOptional<z.ZodString>;
998
+ }, z.core.$strip>;
999
+ }, z.core.$strip>], "type">>;
1000
+ }, z.core.$strip>], "type">>;
1001
+ responseType: z.ZodDefault<z.ZodEnum<{
1002
+ json: "json";
1003
+ text: "text";
1004
+ binary: "binary";
1005
+ }>>;
1006
+ fileName: z.ZodDefault<z.ZodString>;
1007
+ failsafe: z.ZodDefault<z.ZodBoolean>;
1008
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1009
+ }, z.core.$strip>;
1010
+ output: z.ZodObject<{
1011
+ status: z.ZodNumber;
1012
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
1013
+ body: z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodObject<{
1014
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1015
+ name: z.ZodString;
1016
+ mimeType: z.ZodString;
1017
+ size: z.ZodNumber;
1018
+ url: z.ZodOptional<z.ZodString>;
1019
+ }, z.core.$strip>]>;
1020
+ }, z.core.$strip>;
1021
+ idempotent: boolean;
1022
+ run({ client, input, req }: import("./client.js").DropboxRunArgs<z.ZodObject<{
1023
+ method: z.ZodEnum<{
1024
+ POST: "POST";
1025
+ GET: "GET";
1026
+ PATCH: "PATCH";
1027
+ PUT: "PUT";
1028
+ DELETE: "DELETE";
1029
+ HEAD: "HEAD";
1030
+ }>;
1031
+ path: z.ZodString;
1032
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1033
+ query: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1034
+ body: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1035
+ type: z.ZodLiteral<"json">;
1036
+ value: z.ZodJSONSchema;
1037
+ }, z.core.$strip>, z.ZodObject<{
1038
+ type: z.ZodLiteral<"raw">;
1039
+ value: z.ZodString;
1040
+ }, z.core.$strip>, z.ZodObject<{
1041
+ type: z.ZodLiteral<"formData">;
1042
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1043
+ type: z.ZodLiteral<"text">;
1044
+ name: z.ZodString;
1045
+ value: z.ZodString;
1046
+ }, z.core.$strip>, z.ZodObject<{
1047
+ type: z.ZodLiteral<"file">;
1048
+ name: z.ZodString;
1049
+ file: z.ZodObject<{
1050
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1051
+ name: z.ZodOptional<z.ZodString>;
1052
+ }, z.core.$strip>;
1053
+ }, z.core.$strip>], "type">>;
1054
+ }, z.core.$strip>], "type">>;
1055
+ responseType: z.ZodDefault<z.ZodEnum<{
1056
+ json: "json";
1057
+ text: "text";
1058
+ binary: "binary";
1059
+ }>>;
1060
+ fileName: z.ZodDefault<z.ZodString>;
1061
+ failsafe: z.ZodDefault<z.ZodBoolean>;
1062
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
1063
+ }, z.core.$strip>>): Promise<{
1064
+ status: number;
1065
+ headers: Record<string, string>;
1066
+ body: z.core.util.JSONType | {
1067
+ id: string | number;
1068
+ name: string;
1069
+ mimeType: string;
1070
+ size: number;
1071
+ url?: string | undefined;
1072
+ };
1073
+ }>;
1074
+ }];
1075
+ readonly triggers: readonly [{
1076
+ slug: string;
1077
+ description: string;
1078
+ type: "polling";
1079
+ schedule: string;
1080
+ input: z.ZodObject<{
1081
+ path: z.ZodDefault<z.ZodString>;
1082
+ recursive: z.ZodDefault<z.ZodBoolean>;
1083
+ }, z.core.$strip>;
1084
+ output: z.ZodObject<{
1085
+ '.tag': z.ZodLiteral<"folder">;
1086
+ name: z.ZodString;
1087
+ id: z.ZodString;
1088
+ path_lower: z.ZodOptional<z.ZodString>;
1089
+ path_display: z.ZodOptional<z.ZodString>;
1090
+ }, z.core.$catchall<z.ZodJSONSchema>>;
1091
+ run({ client, input, cursor, req, }: import("frogbot").PieceRunArgs<z.output<z.ZodObject<{
1092
+ path: z.ZodDefault<z.ZodString>;
1093
+ recursive: z.ZodDefault<z.ZodBoolean>;
1094
+ }, z.core.$strip>>, Record<string, never>, DropboxClient> & {
1095
+ cursor?: string;
1096
+ }): Promise<{
1097
+ events: {
1098
+ [x: string]: z.core.util.JSONType;
1099
+ '.tag': "folder";
1100
+ name: string;
1101
+ id: string;
1102
+ path_lower?: string | undefined;
1103
+ path_display?: string | undefined;
1104
+ }[];
1105
+ cursor: string;
1106
+ }>;
1107
+ }];
1108
+ }>;
34
1109
  //# sourceMappingURL=index.d.ts.map