@prismatic-io/components-box 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1343 @@
1
+ //#region node_modules/axios/index.d.ts
2
+ type UppercaseMethod = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'PURGE' | 'LINK' | 'UNLINK' | 'QUERY';
3
+ type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
4
+ type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata';
5
+ //#endregion
6
+ //#region npm-dist/.entry.d.ts
7
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
8
+ key: "box";
9
+ documentationUrl: "https://prismatic.io/docs/components/box/";
10
+ public: true;
11
+ display: {
12
+ label: string;
13
+ description: string;
14
+ iconPath: string;
15
+ category: "Data Platforms";
16
+ };
17
+ actions: {
18
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
19
+ url: {
20
+ comments: string;
21
+ example: string;
22
+ label: string;
23
+ placeholder: string;
24
+ type: "string";
25
+ required: true;
26
+ clean: (value: unknown) => string;
27
+ };
28
+ method: {
29
+ label: string;
30
+ type: "string";
31
+ required: true;
32
+ model: {
33
+ label: Method;
34
+ value: Method;
35
+ }[];
36
+ comments: string;
37
+ clean: (value: unknown) => string;
38
+ };
39
+ data: {
40
+ label: string;
41
+ placeholder: string;
42
+ type: "string";
43
+ required: false;
44
+ comments: string;
45
+ example: string;
46
+ };
47
+ formData: {
48
+ label: string;
49
+ placeholder: string;
50
+ type: "string";
51
+ collection: "keyvaluelist";
52
+ required: false;
53
+ comments: string;
54
+ example: string;
55
+ };
56
+ fileData: {
57
+ label: string;
58
+ placeholder: string;
59
+ type: "string";
60
+ collection: "keyvaluelist";
61
+ required: false;
62
+ comments: string;
63
+ example: string;
64
+ };
65
+ fileDataFileNames: {
66
+ label: string;
67
+ placeholder: string;
68
+ type: "string";
69
+ collection: "keyvaluelist";
70
+ required: false;
71
+ comments: string;
72
+ clean: (values: any) => Record<string, string> | undefined;
73
+ };
74
+ queryParams: {
75
+ label: string;
76
+ placeholder: string;
77
+ type: "string";
78
+ collection: "keyvaluelist";
79
+ required: false;
80
+ comments: string;
81
+ };
82
+ headers: {
83
+ label: string;
84
+ placeholder: string;
85
+ type: "string";
86
+ collection: "keyvaluelist";
87
+ required: false;
88
+ comments: string;
89
+ example: string;
90
+ };
91
+ responseType: {
92
+ label: string;
93
+ placeholder: string;
94
+ type: "string";
95
+ default: string;
96
+ required: true;
97
+ comments: string;
98
+ model: {
99
+ label: ResponseType;
100
+ value: ResponseType;
101
+ }[];
102
+ clean: (value: unknown) => ResponseType;
103
+ };
104
+ timeout: {
105
+ label: string;
106
+ type: "string";
107
+ required: false;
108
+ comments: string;
109
+ example: string;
110
+ clean: (value: unknown) => number;
111
+ };
112
+ debugRequest: {
113
+ label: string;
114
+ type: "boolean";
115
+ required: false;
116
+ comments: string;
117
+ clean: (value: unknown) => boolean;
118
+ };
119
+ retryDelayMS: {
120
+ label: string;
121
+ placeholder: string;
122
+ type: "string";
123
+ required: false;
124
+ comments: string;
125
+ default: string;
126
+ clean: (value: unknown) => number;
127
+ };
128
+ retryAllErrors: {
129
+ label: string;
130
+ type: "boolean";
131
+ default: string;
132
+ required: false;
133
+ comments: string;
134
+ clean: (value: unknown) => boolean;
135
+ };
136
+ maxRetries: {
137
+ label: string;
138
+ placeholder: string;
139
+ type: "string";
140
+ required: false;
141
+ comments: string;
142
+ default: string;
143
+ clean: (value: unknown) => number;
144
+ };
145
+ useExponentialBackoff: {
146
+ label: string;
147
+ type: "boolean";
148
+ default: string;
149
+ required: false;
150
+ comments: string;
151
+ clean: (value: unknown) => boolean;
152
+ };
153
+ connection: {
154
+ label: string;
155
+ type: "connection";
156
+ required: true;
157
+ comments: string;
158
+ };
159
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
160
+ data: any;
161
+ }>;
162
+ createWebhook: import("@prismatic-io/spectral").ActionDefinition<{
163
+ address: {
164
+ label: string;
165
+ placeholder: string;
166
+ comments: string;
167
+ type: "string";
168
+ required: true;
169
+ example: string;
170
+ clean: (value: unknown, defaultValue?: string) => string;
171
+ };
172
+ targetId: {
173
+ label: string;
174
+ placeholder: string;
175
+ comments: string;
176
+ type: "string";
177
+ example: string;
178
+ required: true;
179
+ dataSource: string;
180
+ clean: (value: unknown, defaultValue?: string) => string;
181
+ };
182
+ targetType: {
183
+ label: string;
184
+ placeholder: string;
185
+ comments: string;
186
+ type: "string";
187
+ example: string;
188
+ model: {
189
+ label: string;
190
+ value: string;
191
+ }[];
192
+ required: true;
193
+ clean: (value: unknown, defaultValue?: string) => string;
194
+ };
195
+ triggerTypes: {
196
+ label: string;
197
+ placeholder: string;
198
+ comments: string;
199
+ type: "string";
200
+ required: true;
201
+ collection: "valuelist";
202
+ model: {
203
+ label: string;
204
+ value: "FILE.UPLOADED" | "FILE.PREVIEWED" | "FILE.DOWNLOADED" | "FILE.TRASHED" | "FILE.DELETED" | "FILE.RESTORED" | "FILE.COPIED" | "FILE.MOVED" | "FILE.LOCKED" | "FILE.UNLOCKED" | "FILE.RENAMED" | "COMMENT.CREATED" | "COMMENT.UPDATED" | "COMMENT.DELETED" | "TASK_ASSIGNMENT.CREATED" | "TASK_ASSIGNMENT.UPDATED" | "METADATA_INSTANCE.CREATED" | "METADATA_INSTANCE.UPDATED" | "METADATA_INSTANCE.DELETED" | "FOLDER.CREATED" | "FOLDER.DOWNLOADED" | "FOLDER.RESTORED" | "FOLDER.DELETED" | "FOLDER.COPIED" | "FOLDER.MOVED" | "FOLDER.TRASHED" | "FOLDER.RENAMED" | "WEBHOOK.DELETED" | "COLLABORATION.CREATED" | "COLLABORATION.ACCEPTED" | "COLLABORATION.REJECTED" | "COLLABORATION.REMOVED" | "COLLABORATION.UPDATED" | "SHARED_LINK.DELETED" | "SHARED_LINK.CREATED" | "SHARED_LINK.UPDATED" | "SIGN_REQUEST.COMPLETED" | "SIGN_REQUEST.DECLINED" | "SIGN_REQUEST.EXPIRED";
205
+ }[];
206
+ clean: (values: unknown) => string[];
207
+ };
208
+ primarySignatureKey: {
209
+ label: string;
210
+ placeholder: string;
211
+ comments: string;
212
+ type: "password";
213
+ example: string;
214
+ required: false;
215
+ clean: (value: unknown, defaultValue?: string) => string;
216
+ };
217
+ secondarySignatureKey: {
218
+ label: string;
219
+ placeholder: string;
220
+ comments: string;
221
+ type: "password";
222
+ example: string;
223
+ required: false;
224
+ clean: (value: unknown, defaultValue?: string) => string;
225
+ };
226
+ boxConnection: {
227
+ label: string;
228
+ type: "connection";
229
+ required: true;
230
+ comments: string;
231
+ };
232
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
233
+ data: unknown;
234
+ }>;
235
+ deleteWebhook: import("@prismatic-io/spectral").ActionDefinition<{
236
+ boxConnection: {
237
+ label: string;
238
+ type: "connection";
239
+ required: true;
240
+ comments: string;
241
+ };
242
+ webhookId: {
243
+ label: string;
244
+ placeholder: string;
245
+ comments: string;
246
+ type: "string";
247
+ example: string;
248
+ required: true;
249
+ dataSource: string;
250
+ clean: (value: unknown, defaultValue?: string) => string;
251
+ };
252
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
253
+ data: any;
254
+ }>;
255
+ listWebhooks: import("@prismatic-io/spectral").ActionDefinition<{
256
+ boxConnection: {
257
+ label: string;
258
+ type: "connection";
259
+ required: true;
260
+ comments: string;
261
+ };
262
+ fetchAll: {
263
+ label: string;
264
+ type: "boolean";
265
+ required: false;
266
+ default: string;
267
+ comments: string;
268
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
269
+ };
270
+ pagination: {
271
+ label: string;
272
+ required: boolean;
273
+ comments: string;
274
+ inputs: {
275
+ limit: {
276
+ label: string;
277
+ type: "string";
278
+ required: false;
279
+ placeholder: string;
280
+ comments: string;
281
+ example: string;
282
+ clean: (value: unknown, defaultValue?: number) => number;
283
+ };
284
+ marker: {
285
+ label: string;
286
+ type: "string";
287
+ required: false;
288
+ placeholder: string;
289
+ comments: string;
290
+ example: string;
291
+ clean: (value: unknown) => string | undefined;
292
+ };
293
+ };
294
+ } & {
295
+ type: "structuredObject";
296
+ };
297
+ showOnlyInstanceWebhooks: {
298
+ label: string;
299
+ comments: string;
300
+ type: "boolean";
301
+ required: false;
302
+ default: string;
303
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
304
+ };
305
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
306
+ data: {
307
+ entries: Record<string, unknown>[];
308
+ };
309
+ }>;
310
+ deleteInstanceWebhooks: import("@prismatic-io/spectral").ActionDefinition<{
311
+ boxConnection: {
312
+ label: string;
313
+ type: "connection";
314
+ required: true;
315
+ comments: string;
316
+ };
317
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
318
+ data: {};
319
+ }>;
320
+ getCurrentUser: import("@prismatic-io/spectral").ActionDefinition<{
321
+ boxConnection: {
322
+ label: string;
323
+ type: "connection";
324
+ required: true;
325
+ comments: string;
326
+ };
327
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
328
+ data: import("box-node-sdk/lib/serialization/json").SerializedData;
329
+ }>;
330
+ addSharedLinkToFile: import("@prismatic-io/spectral").ActionDefinition<{
331
+ fileId: {
332
+ label: string;
333
+ placeholder: string;
334
+ type: "string";
335
+ required: true;
336
+ comments: string;
337
+ example: string;
338
+ dataSource: string;
339
+ clean: (value: unknown, defaultValue?: string) => string;
340
+ };
341
+ fields: {
342
+ label: string;
343
+ placeholder: string;
344
+ type: "string";
345
+ required: true;
346
+ comments: string;
347
+ example: string;
348
+ clean: (value: unknown, defaultValue?: string) => string;
349
+ };
350
+ sharedLinkAccess: {
351
+ label: string;
352
+ placeholder: string;
353
+ type: "string";
354
+ required: true;
355
+ comments: string;
356
+ example: string;
357
+ clean: (value: unknown, defaultValue?: string) => string;
358
+ };
359
+ additionalFields: {
360
+ label: string;
361
+ required: boolean;
362
+ comments: string;
363
+ inputs: {
364
+ sharedLinkPassword: {
365
+ label: string;
366
+ placeholder: string;
367
+ type: "password";
368
+ required: false;
369
+ comments: string;
370
+ clean: (value: unknown, defaultValue?: string) => string;
371
+ };
372
+ sharedLinkPermissions: {
373
+ label: string;
374
+ placeholder: string;
375
+ type: "code";
376
+ language: "json";
377
+ default: string;
378
+ required: false;
379
+ comments: string;
380
+ clean: (value: unknown) => object;
381
+ };
382
+ sharedLinkVanityName: {
383
+ label: string;
384
+ placeholder: string;
385
+ type: "string";
386
+ required: false;
387
+ comments: string;
388
+ example: string;
389
+ clean: (value: unknown) => string | undefined;
390
+ };
391
+ };
392
+ } & {
393
+ type: "structuredObject";
394
+ };
395
+ boxConnection: {
396
+ label: string;
397
+ type: "connection";
398
+ required: true;
399
+ comments: string;
400
+ };
401
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
402
+ data: any;
403
+ }>;
404
+ addSharedLinkToFolder: import("@prismatic-io/spectral").ActionDefinition<{
405
+ folderId: {
406
+ label: string;
407
+ placeholder: string;
408
+ type: "string";
409
+ required: true;
410
+ comments: string;
411
+ example: string;
412
+ dataSource: string;
413
+ clean: (value: unknown, defaultValue?: string) => string;
414
+ };
415
+ sharedLink: {
416
+ label: string;
417
+ placeholder: string;
418
+ type: "string";
419
+ required: true;
420
+ comments: string;
421
+ example: string;
422
+ clean: (value: unknown, defaultValue?: string) => string;
423
+ };
424
+ sharedLinkAccess: {
425
+ label: string;
426
+ placeholder: string;
427
+ type: "string";
428
+ required: true;
429
+ comments: string;
430
+ example: string;
431
+ clean: (value: unknown, defaultValue?: string) => string;
432
+ };
433
+ additionalFields: {
434
+ label: string;
435
+ required: boolean;
436
+ comments: string;
437
+ inputs: {
438
+ sharedLinkPassword: {
439
+ label: string;
440
+ placeholder: string;
441
+ type: "password";
442
+ required: false;
443
+ comments: string;
444
+ clean: (value: unknown, defaultValue?: string) => string;
445
+ };
446
+ sharedLinkPermissions: {
447
+ label: string;
448
+ placeholder: string;
449
+ type: "code";
450
+ language: "json";
451
+ default: string;
452
+ required: false;
453
+ comments: string;
454
+ clean: (value: unknown) => object;
455
+ };
456
+ sharedLinkVanityName: {
457
+ label: string;
458
+ placeholder: string;
459
+ type: "string";
460
+ required: false;
461
+ comments: string;
462
+ example: string;
463
+ clean: (value: unknown) => string | undefined;
464
+ };
465
+ };
466
+ } & {
467
+ type: "structuredObject";
468
+ };
469
+ boxConnection: {
470
+ label: string;
471
+ type: "connection";
472
+ required: true;
473
+ comments: string;
474
+ };
475
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
476
+ data: any;
477
+ }>;
478
+ findFileForSharedLink: import("@prismatic-io/spectral").ActionDefinition<{
479
+ sharedLink: {
480
+ label: string;
481
+ placeholder: string;
482
+ type: "string";
483
+ required: true;
484
+ comments: string;
485
+ example: string;
486
+ clean: (value: unknown, defaultValue?: string) => string;
487
+ };
488
+ sharedLinkPassword: {
489
+ label: string;
490
+ placeholder: string;
491
+ type: "password";
492
+ required: false;
493
+ comments: string;
494
+ clean: (value: unknown, defaultValue?: string) => string;
495
+ };
496
+ fields: {
497
+ label: string;
498
+ placeholder: string;
499
+ type: "string";
500
+ required: false;
501
+ comments: string;
502
+ example: string;
503
+ clean: (value: unknown) => string | undefined;
504
+ };
505
+ boxConnection: {
506
+ label: string;
507
+ type: "connection";
508
+ required: true;
509
+ comments: string;
510
+ };
511
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
512
+ data: any;
513
+ }>;
514
+ findFolderForSharedLink: import("@prismatic-io/spectral").ActionDefinition<{
515
+ sharedLink: {
516
+ label: string;
517
+ placeholder: string;
518
+ type: "string";
519
+ required: true;
520
+ comments: string;
521
+ example: string;
522
+ clean: (value: unknown, defaultValue?: string) => string;
523
+ };
524
+ sharedLinkPassword: {
525
+ label: string;
526
+ placeholder: string;
527
+ type: "password";
528
+ required: false;
529
+ comments: string;
530
+ clean: (value: unknown, defaultValue?: string) => string;
531
+ };
532
+ fields: {
533
+ label: string;
534
+ placeholder: string;
535
+ type: "string";
536
+ required: false;
537
+ comments: string;
538
+ example: string;
539
+ clean: (value: unknown) => string | undefined;
540
+ };
541
+ boxConnection: {
542
+ label: string;
543
+ type: "connection";
544
+ required: true;
545
+ comments: string;
546
+ };
547
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
548
+ data: any;
549
+ }>;
550
+ getSharedLinkForFile: import("@prismatic-io/spectral").ActionDefinition<{
551
+ fileId: {
552
+ label: string;
553
+ placeholder: string;
554
+ type: "string";
555
+ required: true;
556
+ comments: string;
557
+ example: string;
558
+ dataSource: string;
559
+ clean: (value: unknown, defaultValue?: string) => string;
560
+ };
561
+ boxConnection: {
562
+ label: string;
563
+ type: "connection";
564
+ required: true;
565
+ comments: string;
566
+ };
567
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
568
+ data: {
569
+ sharedLink: any;
570
+ };
571
+ }>;
572
+ getSharedLinkForFolder: import("@prismatic-io/spectral").ActionDefinition<{
573
+ folderId: {
574
+ label: string;
575
+ placeholder: string;
576
+ type: "string";
577
+ required: true;
578
+ comments: string;
579
+ example: string;
580
+ dataSource: string;
581
+ clean: (value: unknown, defaultValue?: string) => string;
582
+ };
583
+ boxConnection: {
584
+ label: string;
585
+ type: "connection";
586
+ required: true;
587
+ comments: string;
588
+ };
589
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
590
+ data: {
591
+ sharedLink: any;
592
+ };
593
+ }>;
594
+ removeSharedLinkFromFile: import("@prismatic-io/spectral").ActionDefinition<{
595
+ fileId: {
596
+ label: string;
597
+ placeholder: string;
598
+ type: "string";
599
+ required: true;
600
+ comments: string;
601
+ example: string;
602
+ dataSource: string;
603
+ clean: (value: unknown, defaultValue?: string) => string;
604
+ };
605
+ boxConnection: {
606
+ label: string;
607
+ type: "connection";
608
+ required: true;
609
+ comments: string;
610
+ };
611
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
612
+ data: any;
613
+ }>;
614
+ removeSharedLinkFromFolder: import("@prismatic-io/spectral").ActionDefinition<{
615
+ folderId: {
616
+ label: string;
617
+ placeholder: string;
618
+ type: "string";
619
+ required: true;
620
+ comments: string;
621
+ example: string;
622
+ dataSource: string;
623
+ clean: (value: unknown, defaultValue?: string) => string;
624
+ };
625
+ boxConnection: {
626
+ label: string;
627
+ type: "connection";
628
+ required: true;
629
+ comments: string;
630
+ };
631
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
632
+ data: any;
633
+ }>;
634
+ updateSharedLinkOnFolder: import("@prismatic-io/spectral").ActionDefinition<{
635
+ folderId: {
636
+ label: string;
637
+ placeholder: string;
638
+ type: "string";
639
+ required: true;
640
+ comments: string;
641
+ example: string;
642
+ dataSource: string;
643
+ clean: (value: unknown, defaultValue?: string) => string;
644
+ };
645
+ sharedLink: {
646
+ label: string;
647
+ placeholder: string;
648
+ type: "string";
649
+ required: true;
650
+ comments: string;
651
+ example: string;
652
+ clean: (value: unknown, defaultValue?: string) => string;
653
+ };
654
+ sharedLinkAccess: {
655
+ label: string;
656
+ placeholder: string;
657
+ type: "string";
658
+ required: true;
659
+ comments: string;
660
+ example: string;
661
+ clean: (value: unknown, defaultValue?: string) => string;
662
+ };
663
+ additionalFields: {
664
+ label: string;
665
+ required: boolean;
666
+ comments: string;
667
+ inputs: {
668
+ sharedLinkPassword: {
669
+ label: string;
670
+ placeholder: string;
671
+ type: "password";
672
+ required: false;
673
+ comments: string;
674
+ clean: (value: unknown, defaultValue?: string) => string;
675
+ };
676
+ sharedLinkPermissions: {
677
+ label: string;
678
+ placeholder: string;
679
+ type: "code";
680
+ language: "json";
681
+ default: string;
682
+ required: false;
683
+ comments: string;
684
+ clean: (value: unknown) => object;
685
+ };
686
+ sharedLinkVanityName: {
687
+ label: string;
688
+ placeholder: string;
689
+ type: "string";
690
+ required: false;
691
+ comments: string;
692
+ example: string;
693
+ clean: (value: unknown) => string | undefined;
694
+ };
695
+ };
696
+ } & {
697
+ type: "structuredObject";
698
+ };
699
+ boxConnection: {
700
+ label: string;
701
+ type: "connection";
702
+ required: true;
703
+ comments: string;
704
+ };
705
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
706
+ data: any;
707
+ }>;
708
+ updateSharedLinkToFile: import("@prismatic-io/spectral").ActionDefinition<{
709
+ fileId: {
710
+ label: string;
711
+ placeholder: string;
712
+ type: "string";
713
+ required: true;
714
+ comments: string;
715
+ example: string;
716
+ dataSource: string;
717
+ clean: (value: unknown, defaultValue?: string) => string;
718
+ };
719
+ sharedLink: {
720
+ label: string;
721
+ placeholder: string;
722
+ type: "string";
723
+ required: true;
724
+ comments: string;
725
+ example: string;
726
+ clean: (value: unknown, defaultValue?: string) => string;
727
+ };
728
+ sharedLinkAccess: {
729
+ label: string;
730
+ placeholder: string;
731
+ type: "string";
732
+ required: true;
733
+ comments: string;
734
+ example: string;
735
+ clean: (value: unknown, defaultValue?: string) => string;
736
+ };
737
+ additionalFields: {
738
+ label: string;
739
+ required: boolean;
740
+ comments: string;
741
+ inputs: {
742
+ sharedLinkPassword: {
743
+ label: string;
744
+ placeholder: string;
745
+ type: "password";
746
+ required: false;
747
+ comments: string;
748
+ clean: (value: unknown, defaultValue?: string) => string;
749
+ };
750
+ sharedLinkPermissions: {
751
+ label: string;
752
+ placeholder: string;
753
+ type: "code";
754
+ language: "json";
755
+ default: string;
756
+ required: false;
757
+ comments: string;
758
+ clean: (value: unknown) => object;
759
+ };
760
+ sharedLinkVanityName: {
761
+ label: string;
762
+ placeholder: string;
763
+ type: "string";
764
+ required: false;
765
+ comments: string;
766
+ example: string;
767
+ clean: (value: unknown) => string | undefined;
768
+ };
769
+ };
770
+ } & {
771
+ type: "structuredObject";
772
+ };
773
+ boxConnection: {
774
+ label: string;
775
+ type: "connection";
776
+ required: true;
777
+ comments: string;
778
+ };
779
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
780
+ data: any;
781
+ }>;
782
+ copyObject: import("@prismatic-io/spectral").ActionDefinition<{
783
+ fromPath: {
784
+ label: string;
785
+ placeholder: string;
786
+ type: "string";
787
+ required: true;
788
+ comments: string;
789
+ example: string;
790
+ clean: (value: unknown, defaultValue?: string) => string;
791
+ };
792
+ toPath: {
793
+ label: string;
794
+ placeholder: string;
795
+ type: "string";
796
+ required: true;
797
+ comments: string;
798
+ example: string;
799
+ clean: (value: unknown, defaultValue?: string) => string;
800
+ };
801
+ boxConnection: {
802
+ label: string;
803
+ type: "connection";
804
+ required: true;
805
+ comments: string;
806
+ };
807
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
808
+ data: unknown;
809
+ }>;
810
+ deleteObject: import("@prismatic-io/spectral").ActionDefinition<{
811
+ path: {
812
+ label: string;
813
+ placeholder: string;
814
+ type: "string";
815
+ required: true;
816
+ comments: string;
817
+ example: string;
818
+ clean: (value: unknown, defaultValue?: string) => string;
819
+ };
820
+ boxConnection: {
821
+ label: string;
822
+ type: "connection";
823
+ required: true;
824
+ comments: string;
825
+ };
826
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
827
+ data: {};
828
+ }>;
829
+ moveObject: import("@prismatic-io/spectral").ActionDefinition<{
830
+ fromPath: {
831
+ label: string;
832
+ placeholder: string;
833
+ type: "string";
834
+ required: true;
835
+ comments: string;
836
+ example: string;
837
+ clean: (value: unknown, defaultValue?: string) => string;
838
+ };
839
+ toPath: {
840
+ label: string;
841
+ placeholder: string;
842
+ type: "string";
843
+ required: true;
844
+ comments: string;
845
+ example: string;
846
+ clean: (value: unknown, defaultValue?: string) => string;
847
+ };
848
+ boxConnection: {
849
+ label: string;
850
+ type: "connection";
851
+ required: true;
852
+ comments: string;
853
+ };
854
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
855
+ data: unknown;
856
+ }>;
857
+ pathDetails: import("@prismatic-io/spectral").ActionDefinition<{
858
+ path: {
859
+ label: string;
860
+ placeholder: string;
861
+ type: "string";
862
+ required: true;
863
+ comments: string;
864
+ example: string;
865
+ clean: (value: unknown, defaultValue?: string) => string;
866
+ };
867
+ boxConnection: {
868
+ label: string;
869
+ type: "connection";
870
+ required: true;
871
+ comments: string;
872
+ };
873
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
874
+ data: unknown;
875
+ }>;
876
+ createFolder: import("@prismatic-io/spectral").ActionDefinition<{
877
+ path: {
878
+ label: string;
879
+ placeholder: string;
880
+ type: "string";
881
+ required: true;
882
+ comments: string;
883
+ example: string;
884
+ clean: (value: unknown, defaultValue?: string) => string;
885
+ };
886
+ boxConnection: {
887
+ label: string;
888
+ type: "connection";
889
+ required: true;
890
+ comments: string;
891
+ };
892
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
893
+ data: unknown;
894
+ }>;
895
+ listFolderWithPagination: import("@prismatic-io/spectral").ActionDefinition<{
896
+ path: {
897
+ label: string;
898
+ placeholder: string;
899
+ type: "string";
900
+ required: true;
901
+ comments: string;
902
+ example: string;
903
+ clean: (value: unknown, defaultValue?: string) => string;
904
+ };
905
+ fetchAll: {
906
+ label: string;
907
+ type: "boolean";
908
+ required: false;
909
+ default: string;
910
+ comments: string;
911
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
912
+ };
913
+ pagination: {
914
+ label: string;
915
+ required: boolean;
916
+ comments: string;
917
+ inputs: {
918
+ limit: {
919
+ label: string;
920
+ type: "string";
921
+ required: false;
922
+ placeholder: string;
923
+ comments: string;
924
+ example: string;
925
+ clean: (value: unknown, defaultValue?: number) => number;
926
+ };
927
+ marker: {
928
+ label: string;
929
+ type: "string";
930
+ required: false;
931
+ placeholder: string;
932
+ comments: string;
933
+ example: string;
934
+ clean: (value: unknown) => string | undefined;
935
+ };
936
+ offset: {
937
+ label: string;
938
+ type: "string";
939
+ required: false;
940
+ placeholder: string;
941
+ comments: string;
942
+ example: string;
943
+ clean: (value: unknown, defaultValue?: number) => number;
944
+ };
945
+ };
946
+ } & {
947
+ type: "structuredObject";
948
+ };
949
+ fields: {
950
+ label: string;
951
+ type: "string";
952
+ required: false;
953
+ placeholder: string;
954
+ comments: string;
955
+ example: string;
956
+ clean: (value: unknown) => string | undefined;
957
+ };
958
+ boxConnection: {
959
+ label: string;
960
+ type: "connection";
961
+ required: true;
962
+ comments: string;
963
+ };
964
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
965
+ data: unknown;
966
+ }>;
967
+ downloadFile: import("@prismatic-io/spectral").ActionDefinition<{
968
+ path: {
969
+ label: string;
970
+ placeholder: string;
971
+ type: "string";
972
+ required: true;
973
+ comments: string;
974
+ example: string;
975
+ clean: (value: unknown, defaultValue?: string) => string;
976
+ };
977
+ boxConnection: {
978
+ label: string;
979
+ type: "connection";
980
+ required: true;
981
+ comments: string;
982
+ };
983
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
984
+ data: any;
985
+ contentType: string;
986
+ }>;
987
+ getFileDownloadUrl: import("@prismatic-io/spectral").ActionDefinition<{
988
+ path: {
989
+ label: string;
990
+ placeholder: string;
991
+ type: "string";
992
+ required: true;
993
+ comments: string;
994
+ example: string;
995
+ clean: (value: unknown, defaultValue?: string) => string;
996
+ };
997
+ boxConnection: {
998
+ label: string;
999
+ type: "connection";
1000
+ required: true;
1001
+ comments: string;
1002
+ };
1003
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1004
+ data: unknown;
1005
+ }>;
1006
+ uploadFile: import("@prismatic-io/spectral").ActionDefinition<{
1007
+ path: {
1008
+ label: string;
1009
+ placeholder: string;
1010
+ type: "string";
1011
+ required: true;
1012
+ comments: string;
1013
+ example: string;
1014
+ clean: (value: unknown, defaultValue?: string) => string;
1015
+ };
1016
+ fileContents: {
1017
+ label: string;
1018
+ placeholder: string;
1019
+ type: "data";
1020
+ required: true;
1021
+ comments: string;
1022
+ example: string;
1023
+ };
1024
+ boxConnection: {
1025
+ label: string;
1026
+ type: "connection";
1027
+ required: true;
1028
+ comments: string;
1029
+ };
1030
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1031
+ data: unknown;
1032
+ }>;
1033
+ };
1034
+ connections: (import("@prismatic-io/spectral").KeyedConnection<{
1035
+ oauth2Type: import("@prismatic-io/spectral").OAuth2Type.AuthorizationCode;
1036
+ key: "oauth2";
1037
+ display: {
1038
+ label: string;
1039
+ description: string;
1040
+ };
1041
+ inputs: {
1042
+ authorizeUrl: {
1043
+ label: string;
1044
+ placeholder: string;
1045
+ type: "string";
1046
+ required: true;
1047
+ shown: false;
1048
+ comments: string;
1049
+ default: string;
1050
+ };
1051
+ tokenUrl: {
1052
+ label: string;
1053
+ placeholder: string;
1054
+ type: "string";
1055
+ required: true;
1056
+ shown: false;
1057
+ comments: string;
1058
+ default: string;
1059
+ };
1060
+ clientId: {
1061
+ label: string;
1062
+ placeholder: string;
1063
+ type: "string";
1064
+ required: true;
1065
+ shown: true;
1066
+ comments: string;
1067
+ example: string;
1068
+ };
1069
+ clientSecret: {
1070
+ label: string;
1071
+ placeholder: string;
1072
+ type: "password";
1073
+ required: true;
1074
+ shown: true;
1075
+ comments: string;
1076
+ };
1077
+ scopes: {
1078
+ label: string;
1079
+ placeholder: string;
1080
+ type: "string";
1081
+ required: false;
1082
+ shown: true;
1083
+ comments: string;
1084
+ default: string;
1085
+ };
1086
+ };
1087
+ }, "oauth2"> | import("@prismatic-io/spectral").KeyedConnection<{
1088
+ key: "apiKey";
1089
+ display: {
1090
+ label: string;
1091
+ description: string;
1092
+ };
1093
+ inputs: {
1094
+ apiKey: {
1095
+ label: string;
1096
+ placeholder: string;
1097
+ type: "password";
1098
+ required: true;
1099
+ shown: true;
1100
+ comments: string;
1101
+ example: string;
1102
+ };
1103
+ };
1104
+ }, "apiKey">)[];
1105
+ triggers: {
1106
+ webhook: import("@prismatic-io/spectral").TriggerDefinition<{
1107
+ primarySignatureKey: {
1108
+ label: string;
1109
+ placeholder: string;
1110
+ comments: string;
1111
+ type: "password";
1112
+ example: string;
1113
+ required: false;
1114
+ clean: (value: unknown, defaultValue?: string) => string;
1115
+ };
1116
+ secondarySignatureKey: {
1117
+ label: string;
1118
+ placeholder: string;
1119
+ comments: string;
1120
+ type: "password";
1121
+ example: string;
1122
+ required: false;
1123
+ clean: (value: unknown, defaultValue?: string) => string;
1124
+ };
1125
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1126
+ payload: import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>;
1127
+ }, import("@prismatic-io/spectral").Inputs>;
1128
+ managedWebhook: import("@prismatic-io/spectral").TriggerDefinition<{
1129
+ connection: {
1130
+ label: string;
1131
+ type: "connection";
1132
+ required: true;
1133
+ comments: string;
1134
+ };
1135
+ targetId: {
1136
+ label: string;
1137
+ placeholder: string;
1138
+ comments: string;
1139
+ type: "string";
1140
+ example: string;
1141
+ required: true;
1142
+ dataSource: string;
1143
+ clean: (value: unknown, defaultValue?: string) => string;
1144
+ };
1145
+ targetType: {
1146
+ label: string;
1147
+ placeholder: string;
1148
+ comments: string;
1149
+ type: "string";
1150
+ example: string;
1151
+ model: {
1152
+ label: string;
1153
+ value: string;
1154
+ }[];
1155
+ required: true;
1156
+ clean: (value: unknown, defaultValue?: string) => string;
1157
+ };
1158
+ triggerTypes: {
1159
+ label: string;
1160
+ placeholder: string;
1161
+ comments: string;
1162
+ type: "string";
1163
+ required: true;
1164
+ collection: "valuelist";
1165
+ model: {
1166
+ label: string;
1167
+ value: "FILE.UPLOADED" | "FILE.PREVIEWED" | "FILE.DOWNLOADED" | "FILE.TRASHED" | "FILE.DELETED" | "FILE.RESTORED" | "FILE.COPIED" | "FILE.MOVED" | "FILE.LOCKED" | "FILE.UNLOCKED" | "FILE.RENAMED" | "COMMENT.CREATED" | "COMMENT.UPDATED" | "COMMENT.DELETED" | "TASK_ASSIGNMENT.CREATED" | "TASK_ASSIGNMENT.UPDATED" | "METADATA_INSTANCE.CREATED" | "METADATA_INSTANCE.UPDATED" | "METADATA_INSTANCE.DELETED" | "FOLDER.CREATED" | "FOLDER.DOWNLOADED" | "FOLDER.RESTORED" | "FOLDER.DELETED" | "FOLDER.COPIED" | "FOLDER.MOVED" | "FOLDER.TRASHED" | "FOLDER.RENAMED" | "WEBHOOK.DELETED" | "COLLABORATION.CREATED" | "COLLABORATION.ACCEPTED" | "COLLABORATION.REJECTED" | "COLLABORATION.REMOVED" | "COLLABORATION.UPDATED" | "SHARED_LINK.DELETED" | "SHARED_LINK.CREATED" | "SHARED_LINK.UPDATED" | "SIGN_REQUEST.COMPLETED" | "SIGN_REQUEST.DECLINED" | "SIGN_REQUEST.EXPIRED";
1168
+ }[];
1169
+ clean: (values: unknown) => string[];
1170
+ };
1171
+ primarySignatureKey: {
1172
+ label: string;
1173
+ placeholder: string;
1174
+ comments: string;
1175
+ type: "password";
1176
+ example: string;
1177
+ required: false;
1178
+ clean: (value: unknown, defaultValue?: string) => string;
1179
+ };
1180
+ secondarySignatureKey: {
1181
+ label: string;
1182
+ placeholder: string;
1183
+ comments: string;
1184
+ type: "password";
1185
+ example: string;
1186
+ required: false;
1187
+ clean: (value: unknown, defaultValue?: string) => string;
1188
+ };
1189
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
1190
+ payload: import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>;
1191
+ }, import("@prismatic-io/spectral").Inputs>;
1192
+ newOrUpdatedFile: import("@prismatic-io/spectral").PollingTriggerDefinition<{
1193
+ connection: {
1194
+ label: string;
1195
+ type: "connection";
1196
+ required: true;
1197
+ comments: string;
1198
+ };
1199
+ folderId: {
1200
+ label: string;
1201
+ placeholder: string;
1202
+ type: "string";
1203
+ required: true;
1204
+ comments: string;
1205
+ example: string;
1206
+ dataSource: string;
1207
+ clean: (value: unknown, defaultValue?: string) => string;
1208
+ };
1209
+ lookBackDate: {
1210
+ label: string;
1211
+ placeholder: string;
1212
+ type: "string";
1213
+ required: false;
1214
+ comments: string;
1215
+ example: string;
1216
+ clean: (value: unknown) => string;
1217
+ };
1218
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
1219
+ payload: import("@prismatic-io/spectral").TriggerPayload;
1220
+ }, import("@prismatic-io/spectral").Inputs>;
1221
+ newFolder: import("@prismatic-io/spectral").PollingTriggerDefinition<{
1222
+ connection: {
1223
+ label: string;
1224
+ type: "connection";
1225
+ required: true;
1226
+ comments: string;
1227
+ };
1228
+ folderId: {
1229
+ label: string;
1230
+ placeholder: string;
1231
+ type: "string";
1232
+ required: true;
1233
+ comments: string;
1234
+ example: string;
1235
+ dataSource: string;
1236
+ clean: (value: unknown, defaultValue?: string) => string;
1237
+ };
1238
+ lookBackDate: {
1239
+ label: string;
1240
+ placeholder: string;
1241
+ type: "string";
1242
+ required: false;
1243
+ comments: string;
1244
+ example: string;
1245
+ clean: (value: unknown) => string;
1246
+ };
1247
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
1248
+ payload: import("@prismatic-io/spectral").TriggerPayload;
1249
+ }, import("@prismatic-io/spectral").Inputs>;
1250
+ newFileComments: import("@prismatic-io/spectral").PollingTriggerDefinition<{
1251
+ connection: {
1252
+ label: string;
1253
+ type: "connection";
1254
+ required: true;
1255
+ comments: string;
1256
+ };
1257
+ fileId: {
1258
+ label: string;
1259
+ placeholder: string;
1260
+ type: "string";
1261
+ required: true;
1262
+ comments: string;
1263
+ example: string;
1264
+ dataSource: string;
1265
+ clean: (value: unknown, defaultValue?: string) => string;
1266
+ };
1267
+ lookBackDate: {
1268
+ label: string;
1269
+ placeholder: string;
1270
+ type: "string";
1271
+ required: false;
1272
+ comments: string;
1273
+ example: string;
1274
+ clean: (value: unknown) => string;
1275
+ };
1276
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, false, {
1277
+ payload: import("@prismatic-io/spectral").TriggerPayload;
1278
+ }, import("@prismatic-io/spectral").Inputs>;
1279
+ };
1280
+ dataSources: {
1281
+ selectContent: import("@prismatic-io/spectral").DataSourceDefinition<{
1282
+ boxConnection: {
1283
+ label: string;
1284
+ type: "connection";
1285
+ required: true;
1286
+ comments: string;
1287
+ };
1288
+ contentType: {
1289
+ label: string;
1290
+ placeholder: string;
1291
+ comments: string;
1292
+ type: "string";
1293
+ example: string;
1294
+ model: {
1295
+ label: string;
1296
+ value: string;
1297
+ }[];
1298
+ default: string;
1299
+ required: true;
1300
+ clean: (value: unknown, defaultValue?: string) => string;
1301
+ };
1302
+ limit: {
1303
+ label: string;
1304
+ type: "string";
1305
+ required: false;
1306
+ placeholder: string;
1307
+ comments: string;
1308
+ example: string;
1309
+ clean: (value: unknown, defaultValue?: number) => number;
1310
+ };
1311
+ marker: {
1312
+ label: string;
1313
+ type: "string";
1314
+ required: false;
1315
+ placeholder: string;
1316
+ comments: string;
1317
+ example: string;
1318
+ clean: (value: unknown) => string | undefined;
1319
+ };
1320
+ offset: {
1321
+ label: string;
1322
+ type: "string";
1323
+ required: false;
1324
+ placeholder: string;
1325
+ comments: string;
1326
+ example: string;
1327
+ clean: (value: unknown, defaultValue?: number) => number;
1328
+ };
1329
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1330
+ selectWebhook: import("@prismatic-io/spectral").DataSourceDefinition<{
1331
+ boxConnection: {
1332
+ label: string;
1333
+ type: "connection";
1334
+ required: true;
1335
+ comments: string;
1336
+ };
1337
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
1338
+ };
1339
+ hooks: {
1340
+ error: (error: unknown) => unknown;
1341
+ };
1342
+ }>;
1343
+ export = _default;