@frogbotai/piece-dropbox 0.26.0 → 0.28.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
@@ -64,172 +64,273 @@ export declare const createDropbox: import("frogbot").PieceFactory<{
64
64
  email: string;
65
65
  }>;
66
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<{
67
+ readonly actions: readonly [import("frogbot").PieceActionDefinition<z.ZodObject<{
68
+ query: z.ZodString;
69
+ path: z.ZodDefault<z.ZodString>;
70
+ maxResults: z.ZodDefault<z.ZodNumber>;
71
+ orderBy: z.ZodDefault<z.ZodEnum<{
72
+ relevance: "relevance";
73
+ modified_time: "modified_time";
74
+ }>>;
75
+ fileStatus: z.ZodDefault<z.ZodEnum<{
76
+ deleted: "deleted";
77
+ active: "active";
78
+ }>>;
79
+ filenameOnly: z.ZodDefault<z.ZodBoolean>;
80
+ fileExtensions: z.ZodOptional<z.ZodString>;
81
+ fileCategories: z.ZodOptional<z.ZodString>;
82
+ accountId: z.ZodOptional<z.ZodString>;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ matches: z.ZodArray<z.ZodObject<{
85
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
86
+ '.tag': z.ZodLiteral<"metadata">;
89
87
  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<{
88
+ '.tag': z.ZodLiteral<"file">;
89
+ name: z.ZodString;
90
+ id: z.ZodString;
91
+ path_lower: z.ZodOptional<z.ZodString>;
92
+ path_display: z.ZodOptional<z.ZodString>;
93
+ client_modified: z.ZodOptional<z.ZodString>;
94
+ server_modified: z.ZodOptional<z.ZodString>;
95
+ rev: z.ZodOptional<z.ZodString>;
96
+ size: z.ZodOptional<z.ZodNumber>;
97
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
98
+ '.tag': z.ZodLiteral<"folder">;
99
+ name: z.ZodString;
100
+ id: z.ZodString;
101
+ path_lower: z.ZodOptional<z.ZodString>;
102
+ path_display: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
104
+ '.tag': z.ZodLiteral<"deleted">;
105
+ name: z.ZodString;
106
+ path_lower: z.ZodOptional<z.ZodString>;
107
+ path_display: z.ZodOptional<z.ZodString>;
108
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ '.tag': z.ZodLiteral<"text_content">;
111
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
112
+ '.tag': z.ZodLiteral<"file">;
113
+ name: z.ZodString;
114
+ id: z.ZodString;
115
+ path_lower: z.ZodOptional<z.ZodString>;
116
+ path_display: z.ZodOptional<z.ZodString>;
117
+ client_modified: z.ZodOptional<z.ZodString>;
118
+ server_modified: z.ZodOptional<z.ZodString>;
119
+ rev: z.ZodOptional<z.ZodString>;
120
+ size: z.ZodOptional<z.ZodNumber>;
121
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
122
+ '.tag': z.ZodLiteral<"folder">;
123
+ name: z.ZodString;
124
+ id: z.ZodString;
125
+ path_lower: z.ZodOptional<z.ZodString>;
126
+ path_display: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
128
+ '.tag': z.ZodLiteral<"deleted">;
129
+ name: z.ZodString;
130
+ path_lower: z.ZodOptional<z.ZodString>;
131
+ path_display: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
133
+ }, z.core.$strip>], ".tag">;
134
+ }, z.core.$catchall<z.ZodJSONSchema>>>;
135
+ has_more: z.ZodBoolean;
136
+ cursor: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$catchall<z.ZodJSONSchema>>, Record<string, never>, DropboxClient, {
138
+ [x: string]: z.core.util.JSONType;
139
+ matches: {
160
140
  [x: string]: z.core.util.JSONType;
161
- matches: {
162
- [x: string]: z.core.util.JSONType;
141
+ metadata: {
142
+ '.tag': "metadata";
163
143
  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
- };
144
+ [x: string]: z.core.util.JSONType;
145
+ '.tag': "file";
146
+ name: string;
147
+ id: string;
148
+ path_lower?: string | undefined;
149
+ path_display?: string | undefined;
150
+ client_modified?: string | undefined;
151
+ server_modified?: string | undefined;
152
+ rev?: string | undefined;
153
+ size?: number | undefined;
154
+ } | {
155
+ [x: string]: z.core.util.JSONType;
156
+ '.tag': "folder";
157
+ name: string;
158
+ id: string;
159
+ path_lower?: string | undefined;
160
+ path_display?: string | undefined;
190
161
  } | {
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
- };
162
+ [x: string]: z.core.util.JSONType;
163
+ '.tag': "deleted";
164
+ name: string;
165
+ path_lower?: string | undefined;
166
+ path_display?: string | undefined;
217
167
  };
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;
168
+ } | {
169
+ '.tag': "text_content";
170
+ metadata: {
171
+ [x: string]: z.core.util.JSONType;
172
+ '.tag': "file";
173
+ name: string;
174
+ id: string;
175
+ path_lower?: string | undefined;
176
+ path_display?: string | undefined;
177
+ client_modified?: string | undefined;
178
+ server_modified?: string | undefined;
179
+ rev?: string | undefined;
180
+ size?: number | undefined;
181
+ } | {
182
+ [x: string]: z.core.util.JSONType;
183
+ '.tag': "folder";
184
+ name: string;
185
+ id: string;
186
+ path_lower?: string | undefined;
187
+ path_display?: string | undefined;
188
+ } | {
189
+ [x: string]: z.core.util.JSONType;
190
+ '.tag': "deleted";
191
+ name: string;
192
+ path_lower?: string | undefined;
193
+ path_display?: string | undefined;
194
+ };
195
+ };
196
+ }[];
197
+ has_more: boolean;
198
+ cursor?: string | undefined;
199
+ }> & {
200
+ slug: "searchFiles";
201
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
202
+ autorename: z.ZodDefault<z.ZodBoolean>;
203
+ mute: z.ZodOptional<z.ZodBoolean>;
204
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
205
+ path: z.ZodString;
206
+ text: z.ZodString;
207
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
208
+ '.tag': z.ZodLiteral<"file">;
209
+ name: z.ZodString;
210
+ id: z.ZodString;
211
+ path_lower: z.ZodOptional<z.ZodString>;
212
+ path_display: z.ZodOptional<z.ZodString>;
213
+ client_modified: z.ZodOptional<z.ZodString>;
214
+ server_modified: z.ZodOptional<z.ZodString>;
215
+ rev: z.ZodOptional<z.ZodString>;
216
+ size: z.ZodOptional<z.ZodNumber>;
217
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
218
+ '.tag': z.ZodLiteral<"folder">;
219
+ name: z.ZodString;
220
+ id: z.ZodString;
221
+ path_lower: z.ZodOptional<z.ZodString>;
222
+ path_display: z.ZodOptional<z.ZodString>;
223
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
224
+ '.tag': z.ZodLiteral<"deleted">;
225
+ name: z.ZodString;
226
+ path_lower: z.ZodOptional<z.ZodString>;
227
+ path_display: z.ZodOptional<z.ZodString>;
228
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">, Record<string, never>, DropboxClient, {
229
+ [x: string]: z.core.util.JSONType;
230
+ '.tag': "file";
231
+ name: string;
232
+ id: string;
233
+ path_lower?: string | undefined;
234
+ path_display?: string | undefined;
235
+ client_modified?: string | undefined;
236
+ server_modified?: string | undefined;
237
+ rev?: string | undefined;
238
+ size?: number | undefined;
239
+ } | {
240
+ [x: string]: z.core.util.JSONType;
241
+ '.tag': "folder";
242
+ name: string;
243
+ id: string;
244
+ path_lower?: string | undefined;
245
+ path_display?: string | undefined;
246
+ } | {
247
+ [x: string]: z.core.util.JSONType;
248
+ '.tag': "deleted";
249
+ name: string;
250
+ path_lower?: string | undefined;
251
+ path_display?: string | undefined;
252
+ }> & {
253
+ slug: "createTextFile";
254
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
255
+ autorename: z.ZodDefault<z.ZodBoolean>;
256
+ mute: z.ZodOptional<z.ZodBoolean>;
257
+ strictConflict: z.ZodOptional<z.ZodBoolean>;
258
+ path: z.ZodString;
259
+ file: z.ZodObject<{
260
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
261
+ name: z.ZodOptional<z.ZodString>;
262
+ }, z.core.$strip>;
263
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
264
+ '.tag': z.ZodLiteral<"file">;
265
+ name: z.ZodString;
266
+ id: z.ZodString;
267
+ path_lower: z.ZodOptional<z.ZodString>;
268
+ path_display: z.ZodOptional<z.ZodString>;
269
+ client_modified: z.ZodOptional<z.ZodString>;
270
+ server_modified: z.ZodOptional<z.ZodString>;
271
+ rev: z.ZodOptional<z.ZodString>;
272
+ size: z.ZodOptional<z.ZodNumber>;
273
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
274
+ '.tag': z.ZodLiteral<"folder">;
275
+ name: z.ZodString;
276
+ id: z.ZodString;
277
+ path_lower: z.ZodOptional<z.ZodString>;
278
+ path_display: z.ZodOptional<z.ZodString>;
279
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
280
+ '.tag': z.ZodLiteral<"deleted">;
281
+ name: z.ZodString;
282
+ path_lower: z.ZodOptional<z.ZodString>;
283
+ path_display: z.ZodOptional<z.ZodString>;
284
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">, Record<string, never>, DropboxClient, {
285
+ [x: string]: z.core.util.JSONType;
286
+ '.tag': "file";
287
+ name: string;
288
+ id: string;
289
+ path_lower?: string | undefined;
290
+ path_display?: string | undefined;
291
+ client_modified?: string | undefined;
292
+ server_modified?: string | undefined;
293
+ rev?: string | undefined;
294
+ size?: number | undefined;
295
+ } | {
296
+ [x: string]: z.core.util.JSONType;
297
+ '.tag': "folder";
298
+ name: string;
299
+ id: string;
300
+ path_lower?: string | undefined;
301
+ path_display?: string | undefined;
302
+ } | {
303
+ [x: string]: z.core.util.JSONType;
304
+ '.tag': "deleted";
305
+ name: string;
306
+ path_lower?: string | undefined;
307
+ path_display?: string | undefined;
308
+ }> & {
309
+ slug: "uploadFile";
310
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
311
+ path: z.ZodString;
312
+ }, z.core.$strip>, z.ZodObject<{
313
+ file: z.ZodObject<{
314
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
315
+ name: z.ZodString;
316
+ mimeType: z.ZodString;
317
+ size: z.ZodNumber;
318
+ url: z.ZodOptional<z.ZodString>;
231
319
  }, z.core.$strip>;
232
- output: z.ZodDiscriminatedUnion<[z.ZodObject<{
320
+ }, z.core.$strip>, Record<string, never>, DropboxClient, {
321
+ file: {
322
+ id: string | number;
323
+ name: string;
324
+ mimeType: string;
325
+ size: number;
326
+ url?: string | undefined;
327
+ };
328
+ }> & {
329
+ slug: "downloadFile";
330
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
331
+ path: z.ZodString;
332
+ }, z.core.$strip>, z.ZodObject<{
333
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
233
334
  '.tag': z.ZodLiteral<"file">;
234
335
  name: z.ZodString;
235
336
  id: z.ZodString;
@@ -251,14 +352,10 @@ export declare const createDropbox: import("frogbot").PieceFactory<{
251
352
  path_lower: z.ZodOptional<z.ZodString>;
252
353
  path_display: z.ZodOptional<z.ZodString>;
253
354
  }, 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<{
355
+ link: z.ZodString;
356
+ }, z.core.$catchall<z.ZodJSONSchema>>, Record<string, never>, DropboxClient, {
357
+ [x: string]: z.core.util.JSONType;
358
+ metadata: {
262
359
  [x: string]: z.core.util.JSONType;
263
360
  '.tag': "file";
264
361
  name: string;
@@ -282,21 +379,14 @@ export declare const createDropbox: import("frogbot").PieceFactory<{
282
379
  name: string;
283
380
  path_lower?: string | undefined;
284
381
  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<{
382
+ };
383
+ link: string;
384
+ }> & {
385
+ slug: "getTemporaryLink";
386
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
387
+ path: z.ZodString;
388
+ }, z.core.$strip>, z.ZodObject<{
389
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
300
390
  '.tag': z.ZodLiteral<"file">;
301
391
  name: z.ZodString;
302
392
  id: z.ZodString;
@@ -318,17 +408,9 @@ export declare const createDropbox: import("frogbot").PieceFactory<{
318
408
  path_lower: z.ZodOptional<z.ZodString>;
319
409
  path_display: z.ZodOptional<z.ZodString>;
320
410
  }, 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<{
411
+ }, z.core.$catchall<z.ZodJSONSchema>>, Record<string, never>, DropboxClient, {
412
+ [x: string]: z.core.util.JSONType;
413
+ metadata: {
332
414
  [x: string]: z.core.util.JSONType;
333
415
  '.tag': "file";
334
416
  name: string;
@@ -352,747 +434,498 @@ export declare const createDropbox: import("frogbot").PieceFactory<{
352
434
  name: string;
353
435
  path_lower?: string | undefined;
354
436
  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<{
437
+ };
438
+ }> & {
439
+ slug: "deleteFile";
440
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
441
+ fromPath: z.ZodString;
442
+ toPath: z.ZodString;
443
+ autorename: z.ZodDefault<z.ZodBoolean>;
444
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
445
+ }, z.core.$strip>, z.ZodObject<{
446
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
447
+ '.tag': z.ZodLiteral<"file">;
448
+ name: z.ZodString;
449
+ id: z.ZodString;
450
+ path_lower: z.ZodOptional<z.ZodString>;
451
+ path_display: z.ZodOptional<z.ZodString>;
452
+ client_modified: z.ZodOptional<z.ZodString>;
453
+ server_modified: z.ZodOptional<z.ZodString>;
454
+ rev: z.ZodOptional<z.ZodString>;
455
+ size: z.ZodOptional<z.ZodNumber>;
456
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
457
+ '.tag': z.ZodLiteral<"folder">;
458
+ name: z.ZodString;
459
+ id: z.ZodString;
460
+ path_lower: z.ZodOptional<z.ZodString>;
461
+ path_display: z.ZodOptional<z.ZodString>;
462
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
463
+ '.tag': z.ZodLiteral<"deleted">;
464
+ name: z.ZodString;
465
+ path_lower: z.ZodOptional<z.ZodString>;
466
+ path_display: z.ZodOptional<z.ZodString>;
467
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
468
+ }, z.core.$catchall<z.ZodJSONSchema>>, Record<string, never>, DropboxClient, {
469
+ [x: string]: z.core.util.JSONType;
470
+ metadata: {
418
471
  [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<{
472
+ '.tag': "file";
473
+ name: string;
474
+ id: string;
475
+ path_lower?: string | undefined;
476
+ path_display?: string | undefined;
477
+ client_modified?: string | undefined;
478
+ server_modified?: string | undefined;
479
+ rev?: string | undefined;
480
+ size?: number | undefined;
481
+ } | {
480
482
  [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<{
483
+ '.tag': "folder";
484
+ name: string;
485
+ id: string;
486
+ path_lower?: string | undefined;
487
+ path_display?: string | undefined;
488
+ } | {
547
489
  [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<{
490
+ '.tag': "deleted";
491
+ name: string;
492
+ path_lower?: string | undefined;
493
+ path_display?: string | undefined;
494
+ };
495
+ }> & {
496
+ slug: "moveFile";
497
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
498
+ fromPath: z.ZodString;
499
+ toPath: z.ZodString;
500
+ autorename: z.ZodDefault<z.ZodBoolean>;
501
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
502
+ }, z.core.$strip>, z.ZodObject<{
503
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
504
+ '.tag': z.ZodLiteral<"file">;
505
+ name: z.ZodString;
506
+ id: z.ZodString;
507
+ path_lower: z.ZodOptional<z.ZodString>;
508
+ path_display: z.ZodOptional<z.ZodString>;
509
+ client_modified: z.ZodOptional<z.ZodString>;
510
+ server_modified: z.ZodOptional<z.ZodString>;
511
+ rev: z.ZodOptional<z.ZodString>;
512
+ size: z.ZodOptional<z.ZodNumber>;
513
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
514
+ '.tag': z.ZodLiteral<"folder">;
515
+ name: z.ZodString;
516
+ id: z.ZodString;
517
+ path_lower: z.ZodOptional<z.ZodString>;
518
+ path_display: z.ZodOptional<z.ZodString>;
519
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
520
+ '.tag': z.ZodLiteral<"deleted">;
521
+ name: z.ZodString;
522
+ path_lower: z.ZodOptional<z.ZodString>;
523
+ path_display: z.ZodOptional<z.ZodString>;
524
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
525
+ }, z.core.$catchall<z.ZodJSONSchema>>, Record<string, never>, DropboxClient, {
526
+ [x: string]: z.core.util.JSONType;
527
+ metadata: {
614
528
  [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<{
529
+ '.tag': "file";
530
+ name: string;
531
+ id: string;
532
+ path_lower?: string | undefined;
533
+ path_display?: string | undefined;
534
+ client_modified?: string | undefined;
535
+ server_modified?: string | undefined;
536
+ rev?: string | undefined;
537
+ size?: number | undefined;
538
+ } | {
677
539
  [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<{
540
+ '.tag': "folder";
541
+ name: string;
542
+ id: string;
543
+ path_lower?: string | undefined;
544
+ path_display?: string | undefined;
545
+ } | {
738
546
  [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<{
547
+ '.tag': "deleted";
548
+ name: string;
549
+ path_lower?: string | undefined;
550
+ path_display?: string | undefined;
551
+ };
552
+ }> & {
553
+ slug: "copyFile";
554
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
555
+ path: z.ZodString;
556
+ autorename: z.ZodDefault<z.ZodBoolean>;
557
+ }, z.core.$strip>, z.ZodObject<{
558
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
559
+ '.tag': z.ZodLiteral<"file">;
560
+ name: z.ZodString;
561
+ id: z.ZodString;
562
+ path_lower: z.ZodOptional<z.ZodString>;
563
+ path_display: z.ZodOptional<z.ZodString>;
564
+ client_modified: z.ZodOptional<z.ZodString>;
565
+ server_modified: z.ZodOptional<z.ZodString>;
566
+ rev: z.ZodOptional<z.ZodString>;
567
+ size: z.ZodOptional<z.ZodNumber>;
568
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
569
+ '.tag': z.ZodLiteral<"folder">;
570
+ name: z.ZodString;
571
+ id: z.ZodString;
572
+ path_lower: z.ZodOptional<z.ZodString>;
573
+ path_display: z.ZodOptional<z.ZodString>;
574
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
575
+ '.tag': z.ZodLiteral<"deleted">;
576
+ name: z.ZodString;
577
+ path_lower: z.ZodOptional<z.ZodString>;
578
+ path_display: z.ZodOptional<z.ZodString>;
579
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
580
+ }, z.core.$catchall<z.ZodJSONSchema>>, Record<string, never>, DropboxClient, {
581
+ [x: string]: z.core.util.JSONType;
582
+ metadata: {
805
583
  [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<{
584
+ '.tag': "file";
585
+ name: string;
586
+ id: string;
587
+ path_lower?: string | undefined;
588
+ path_display?: string | undefined;
589
+ client_modified?: string | undefined;
590
+ server_modified?: string | undefined;
591
+ rev?: string | undefined;
592
+ size?: number | undefined;
593
+ } | {
872
594
  [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
- };
595
+ '.tag': "folder";
596
+ name: string;
597
+ id: string;
598
+ path_lower?: string | undefined;
599
+ path_display?: string | undefined;
600
+ } | {
601
+ [x: string]: z.core.util.JSONType;
602
+ '.tag': "deleted";
603
+ name: string;
604
+ path_lower?: string | undefined;
605
+ path_display?: string | undefined;
606
+ };
607
+ }> & {
608
+ slug: "createFolder";
609
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
610
+ path: z.ZodString;
611
+ }, z.core.$strip>, z.ZodObject<{
612
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
613
+ '.tag': z.ZodLiteral<"file">;
614
+ name: z.ZodString;
615
+ id: z.ZodString;
616
+ path_lower: z.ZodOptional<z.ZodString>;
617
+ path_display: z.ZodOptional<z.ZodString>;
618
+ client_modified: z.ZodOptional<z.ZodString>;
619
+ server_modified: z.ZodOptional<z.ZodString>;
620
+ rev: z.ZodOptional<z.ZodString>;
621
+ size: z.ZodOptional<z.ZodNumber>;
622
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
623
+ '.tag': z.ZodLiteral<"folder">;
624
+ name: z.ZodString;
625
+ id: z.ZodString;
626
+ path_lower: z.ZodOptional<z.ZodString>;
627
+ path_display: z.ZodOptional<z.ZodString>;
628
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
629
+ '.tag': z.ZodLiteral<"deleted">;
630
+ name: z.ZodString;
631
+ path_lower: z.ZodOptional<z.ZodString>;
632
+ path_display: z.ZodOptional<z.ZodString>;
633
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
634
+ }, z.core.$catchall<z.ZodJSONSchema>>, Record<string, never>, DropboxClient, {
635
+ [x: string]: z.core.util.JSONType;
636
+ metadata: {
637
+ [x: string]: z.core.util.JSONType;
638
+ '.tag': "file";
639
+ name: string;
640
+ id: string;
641
+ path_lower?: string | undefined;
642
+ path_display?: string | undefined;
643
+ client_modified?: string | undefined;
644
+ server_modified?: string | undefined;
645
+ rev?: string | undefined;
646
+ size?: number | undefined;
647
+ } | {
648
+ [x: string]: z.core.util.JSONType;
649
+ '.tag': "folder";
650
+ name: string;
651
+ id: string;
652
+ path_lower?: string | undefined;
653
+ path_display?: string | undefined;
654
+ } | {
655
+ [x: string]: z.core.util.JSONType;
656
+ '.tag': "deleted";
657
+ name: string;
658
+ path_lower?: string | undefined;
659
+ path_display?: string | undefined;
660
+ };
661
+ }> & {
662
+ slug: "deleteFolder";
663
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
664
+ fromPath: z.ZodString;
665
+ toPath: z.ZodString;
666
+ autorename: z.ZodDefault<z.ZodBoolean>;
667
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
668
+ }, z.core.$strip>, z.ZodObject<{
669
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
670
+ '.tag': z.ZodLiteral<"file">;
671
+ name: z.ZodString;
672
+ id: z.ZodString;
673
+ path_lower: z.ZodOptional<z.ZodString>;
674
+ path_display: z.ZodOptional<z.ZodString>;
675
+ client_modified: z.ZodOptional<z.ZodString>;
676
+ server_modified: z.ZodOptional<z.ZodString>;
677
+ rev: z.ZodOptional<z.ZodString>;
678
+ size: z.ZodOptional<z.ZodNumber>;
679
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
680
+ '.tag': z.ZodLiteral<"folder">;
681
+ name: z.ZodString;
682
+ id: z.ZodString;
683
+ path_lower: z.ZodOptional<z.ZodString>;
684
+ path_display: z.ZodOptional<z.ZodString>;
685
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
686
+ '.tag': z.ZodLiteral<"deleted">;
687
+ name: z.ZodString;
688
+ path_lower: z.ZodOptional<z.ZodString>;
689
+ path_display: z.ZodOptional<z.ZodString>;
690
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
691
+ }, z.core.$catchall<z.ZodJSONSchema>>, Record<string, never>, DropboxClient, {
692
+ [x: string]: z.core.util.JSONType;
693
+ metadata: {
694
+ [x: string]: z.core.util.JSONType;
695
+ '.tag': "file";
696
+ name: string;
697
+ id: string;
698
+ path_lower?: string | undefined;
699
+ path_display?: string | undefined;
700
+ client_modified?: string | undefined;
701
+ server_modified?: string | undefined;
702
+ rev?: string | undefined;
703
+ size?: number | undefined;
704
+ } | {
705
+ [x: string]: z.core.util.JSONType;
706
+ '.tag': "folder";
707
+ name: string;
708
+ id: string;
709
+ path_lower?: string | undefined;
710
+ path_display?: string | undefined;
711
+ } | {
712
+ [x: string]: z.core.util.JSONType;
713
+ '.tag': "deleted";
714
+ name: string;
715
+ path_lower?: string | undefined;
716
+ path_display?: string | undefined;
717
+ };
718
+ }> & {
719
+ slug: "moveFolder";
720
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
721
+ fromPath: z.ZodString;
722
+ toPath: z.ZodString;
723
+ autorename: z.ZodDefault<z.ZodBoolean>;
724
+ allowOwnershipTransfer: z.ZodDefault<z.ZodBoolean>;
725
+ }, z.core.$strip>, z.ZodObject<{
726
+ metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
727
+ '.tag': z.ZodLiteral<"file">;
728
+ name: z.ZodString;
729
+ id: z.ZodString;
730
+ path_lower: z.ZodOptional<z.ZodString>;
731
+ path_display: z.ZodOptional<z.ZodString>;
732
+ client_modified: z.ZodOptional<z.ZodString>;
733
+ server_modified: z.ZodOptional<z.ZodString>;
734
+ rev: z.ZodOptional<z.ZodString>;
735
+ size: z.ZodOptional<z.ZodNumber>;
736
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
737
+ '.tag': z.ZodLiteral<"folder">;
738
+ name: z.ZodString;
739
+ id: z.ZodString;
740
+ path_lower: z.ZodOptional<z.ZodString>;
741
+ path_display: z.ZodOptional<z.ZodString>;
742
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
743
+ '.tag': z.ZodLiteral<"deleted">;
744
+ name: z.ZodString;
745
+ path_lower: z.ZodOptional<z.ZodString>;
746
+ path_display: z.ZodOptional<z.ZodString>;
747
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">;
748
+ }, z.core.$catchall<z.ZodJSONSchema>>, Record<string, never>, DropboxClient, {
749
+ [x: string]: z.core.util.JSONType;
750
+ metadata: {
751
+ [x: string]: z.core.util.JSONType;
752
+ '.tag': "file";
753
+ name: string;
754
+ id: string;
755
+ path_lower?: string | undefined;
756
+ path_display?: string | undefined;
757
+ client_modified?: string | undefined;
758
+ server_modified?: string | undefined;
759
+ rev?: string | undefined;
760
+ size?: number | undefined;
761
+ } | {
762
+ [x: string]: z.core.util.JSONType;
763
+ '.tag': "folder";
764
+ name: string;
765
+ id: string;
766
+ path_lower?: string | undefined;
767
+ path_display?: string | undefined;
768
+ } | {
769
+ [x: string]: z.core.util.JSONType;
770
+ '.tag': "deleted";
771
+ name: string;
772
+ path_lower?: string | undefined;
773
+ path_display?: string | undefined;
774
+ };
775
+ }> & {
776
+ slug: "copyFolder";
777
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
778
+ path: z.ZodString;
779
+ recursive: z.ZodDefault<z.ZodBoolean>;
780
+ limit: z.ZodDefault<z.ZodNumber>;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
783
+ '.tag': z.ZodLiteral<"file">;
784
+ name: z.ZodString;
785
+ id: z.ZodString;
786
+ path_lower: z.ZodOptional<z.ZodString>;
787
+ path_display: z.ZodOptional<z.ZodString>;
788
+ client_modified: z.ZodOptional<z.ZodString>;
789
+ server_modified: z.ZodOptional<z.ZodString>;
790
+ rev: z.ZodOptional<z.ZodString>;
791
+ size: z.ZodOptional<z.ZodNumber>;
792
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
793
+ '.tag': z.ZodLiteral<"folder">;
794
+ name: z.ZodString;
795
+ id: z.ZodString;
796
+ path_lower: z.ZodOptional<z.ZodString>;
797
+ path_display: z.ZodOptional<z.ZodString>;
798
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
799
+ '.tag': z.ZodLiteral<"deleted">;
800
+ name: z.ZodString;
801
+ path_lower: z.ZodOptional<z.ZodString>;
802
+ path_display: z.ZodOptional<z.ZodString>;
803
+ }, z.core.$catchall<z.ZodJSONSchema>>], ".tag">>;
804
+ cursor: z.ZodString;
805
+ }, z.core.$strip>, Record<string, never>, DropboxClient, {
806
+ entries: ({
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
+ cursor: string;
832
+ }> & {
833
+ slug: "listFolder";
834
+ }, import("frogbot").PieceActionDefinition<z.ZodObject<{
835
+ method: z.ZodEnum<{
836
+ POST: "POST";
837
+ GET: "GET";
838
+ PATCH: "PATCH";
839
+ PUT: "PUT";
840
+ DELETE: "DELETE";
841
+ HEAD: "HEAD";
898
842
  }>;
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">;
843
+ path: z.ZodString;
844
+ headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
845
+ query: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
846
+ body: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
847
+ type: z.ZodLiteral<"json">;
848
+ value: z.ZodJSONSchema;
849
+ }, z.core.$strip>, z.ZodObject<{
850
+ type: z.ZodLiteral<"raw">;
851
+ value: z.ZodString;
852
+ }, z.core.$strip>, z.ZodObject<{
853
+ type: z.ZodLiteral<"formData">;
854
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
855
+ type: z.ZodLiteral<"text">;
910
856
  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
857
  value: z.ZodString;
986
858
  }, 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]>;
859
+ type: z.ZodLiteral<"file">;
1015
860
  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">>;
861
+ file: z.ZodObject<{
862
+ fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
863
+ name: z.ZodOptional<z.ZodString>;
864
+ }, z.core.$strip>;
1054
865
  }, 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
- }>;
866
+ }, z.core.$strip>], "type">>;
867
+ responseType: z.ZodDefault<z.ZodEnum<{
868
+ json: "json";
869
+ text: "text";
870
+ binary: "binary";
871
+ }>>;
872
+ fileName: z.ZodDefault<z.ZodString>;
873
+ failsafe: z.ZodDefault<z.ZodBoolean>;
874
+ timeoutSeconds: z.ZodDefault<z.ZodNumber>;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ status: z.ZodNumber;
877
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
878
+ body: z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodObject<{
879
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
880
+ name: z.ZodString;
881
+ mimeType: z.ZodString;
882
+ size: z.ZodNumber;
883
+ url: z.ZodOptional<z.ZodString>;
884
+ }, z.core.$strip>]>;
885
+ }, z.core.$strip>, Record<string, never>, DropboxClient, {
886
+ status: number;
887
+ headers: Record<string, string>;
888
+ body: z.core.util.JSONType | {
889
+ id: string | number;
890
+ name: string;
891
+ mimeType: string;
892
+ size: number;
893
+ url?: string | undefined;
894
+ };
895
+ }> & {
896
+ slug: "customApiCall";
1074
897
  }];
1075
898
  readonly triggers: readonly [{
1076
899
  slug: string;
900
+ label?: string;
1077
901
  description: string;
1078
- type: "polling";
1079
- schedule: string;
1080
902
  input: z.ZodObject<{
1081
903
  path: z.ZodDefault<z.ZodString>;
1082
904
  recursive: z.ZodDefault<z.ZodBoolean>;
1083
905
  }, z.core.$strip>;
1084
- output: z.ZodObject<{
906
+ output?: z.ZodObject<{
1085
907
  '.tag': z.ZodLiteral<"folder">;
1086
908
  name: z.ZodString;
1087
909
  id: z.ZodString;
1088
910
  path_lower: z.ZodOptional<z.ZodString>;
1089
911
  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;
912
+ }, z.core.$catchall<z.ZodJSONSchema>> | undefined;
913
+ sample?: {
914
+ [x: string]: z.core.util.JSONType;
915
+ '.tag': "folder";
916
+ name: string;
917
+ id: string;
918
+ path_lower?: string | undefined;
919
+ path_display?: string | undefined;
920
+ } | undefined;
921
+ } & {
922
+ type: "polling";
923
+ schedule?: string;
924
+ run(args: import("frogbot").PieceRunArgs<{
925
+ path: string;
926
+ recursive: boolean;
927
+ }, Record<string, never>, DropboxClient> & {
928
+ cursor?: import("frogbot").PieceJSON | undefined;
1096
929
  }): Promise<{
1097
930
  events: {
1098
931
  [x: string]: z.core.util.JSONType;
@@ -1102,8 +935,10 @@ export declare const createDropbox: import("frogbot").PieceFactory<{
1102
935
  path_lower?: string | undefined;
1103
936
  path_display?: string | undefined;
1104
937
  }[];
1105
- cursor: string;
938
+ cursor?: import("frogbot").PieceJSON | undefined;
1106
939
  }>;
940
+ } & {
941
+ slug: "newFolder";
1107
942
  }];
1108
943
  }>;
1109
944
  //# sourceMappingURL=index.d.ts.map